* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: transparent;
  color: #333;
}

.video-feed {
  width: 100%;
  padding: 2rem 0;
  background: transparent;
}

.video-feed__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
}

.video-feed__title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
}

.video-feed__controls {
  display: flex;
  gap: 0.75rem;
}

.video-feed__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background-color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.video-feed__arrow:hover:not(.video-feed__arrow--hidden) {
  background-color: #f5f5f5;
  border-color: #333;
}

.video-feed__arrow:active:not(.video-feed__arrow--hidden) {
  transform: scale(0.95);
}

.video-feed__arrow--hidden {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.video-feed__arrow-icon {
  width: 20px;
  height: 20px;
  color: #333;
}

.video-feed__container {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0 1rem;

  /* Hide scrollbar */
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.video-feed__container::-webkit-scrollbar {
  display: none;
}

.video-feed__item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-shrink: 0;
  width: 220px;
}

.video-feed__video-button {
  position: relative;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.video-feed__video-button:hover .video-feed__thumbnail {
  transform: scale(1.02);
}

.video-feed__video-button:focus {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
  border-radius: 4px;
}

.video-feed__thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  background-color: #000;
  transition: transform 0.3s ease;
}

.video-feed__thumbnail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-feed__play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.video-feed__video-button:hover .video-feed__play-icon {
  background-color: #ffffff;
  transform: translate(-50%, -50%) scale(1.1);
}

.video-feed__play-svg {
  width: 24px;
  height: 24px;
  color: #000;
  margin-left: 2px;
}

.video-feed__duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background-color: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 500;
}

.video-feed__item-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-feed__item-description {
  margin: 0.5rem 0 0 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tags Section */
.video-feed__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  border-top: 1px solid #e0e0e0;
  margin-top: 1rem;
}

.video-feed__tag-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.video-feed__tag-button:hover {
  background-color: #efefef;
  border-color: #999;
}

.video-feed__tag-button.video-feed__tag-button--active {
  background-color: #0066cc;
  border-color: #0052a3;
  color: #ffffff;
}

.video-feed__tag-button.video-feed__tag-button--active:hover {
  background-color: #0052a3;
  border-color: #003d7a;
}

.video-feed__tag-count {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
  .video-feed__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .video-feed__title {
    font-size: 1.5rem;
  }

  .video-feed__item {
    width: 200px;
  }

  .video-feed__container {
    gap: 0.75rem;
    padding: 0 0.75rem;
  }

  .video-feed__tags {
    padding: 1rem 0.75rem;
  }
}

@media (max-width: 480px) {
  .video-feed {
    padding: 1rem 0;
  }

  .video-feed__header {
    margin-bottom: 1rem;
    padding: 0 0.75rem;
  }

  .video-feed__title {
    font-size: 1.25rem;
  }

  .video-feed__controls {
    gap: 0.5rem;
  }

  .video-feed__arrow {
    width: 36px;
    height: 36px;
  }

  .video-feed__item {
    width: 160px;
  }

  .video-feed__item-title {
    font-size: 0.85rem;
  }

  .video-feed__item-description {
    font-size: 0.75rem;
  }

  .video-feed__tag-button {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }
}
