.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  min-height: 1px;
}

.archive-recommended {
  font-size: 1rem;
  font-weight: 400;
  color: #f0f0f0;
  margin-bottom: 30px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: 0.3px;
}

.video-card {
  background: transparent;
  backdrop-filter: none;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.video-card img {
  width: 100%;
  display: block;
}

.video-card h3 {
  padding: 16px;
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  color: #f0f0f0;
  background: transparent;
  backdrop-filter: none;
  letter-spacing: 0.3px;
  line-height: 1.4;
}

.video-card:hover {
  /* hover effects disabled */
}

/* Scrollable Section for Full Game Endings */
.scrollable-section {
  margin-bottom: 48px;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #f0f0f0;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.scrollable-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.scrollable-row::-webkit-scrollbar {
  height: 8px;
}

.scrollable-row::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.scrollable-row::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.scrollable-row::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.scrollable-video-card {
  background: rgba(26, 26, 26, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  flex: 0 0 240px;
  min-width: 240px;
}

.scrollable-video-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
}

.scrollable-video-card h3 {
  padding: 12px;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f0f0f0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  letter-spacing: 0.3px;
  line-height: 1.3;
  max-height: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.scrollable-video-card:hover {
  /* hover effects disabled */
}

/* Videos Section */
.videos-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.videos-header {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 30px;
}

.header-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.videos-controls {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  backdrop-filter: blur(5px);
  width: 100%;
  box-sizing: border-box;
  justify-content: space-between;
  position: relative;
  z-index: 50;
}

.search-bar-inline {
  width: 500px;
  max-width: 60%;
  flex: 0 0 auto;
}

.search-bar-inline input {
  width: 100%;
  padding: 12px 18px;
  background: rgba(26, 26, 26, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #f0f0f0;
  font-size: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  transition: all 0.2s ease;
}

.search-bar-inline input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(26, 26, 26, 0.98);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.12);
}

.search-bar-inline input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.category-container-inline {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
}

.category-container-inline button#categoryBtn {
  padding: 12px 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.category-container-inline button#categoryBtn:hover {
  /* hover effects disabled */
}

.category-container-inline button#categoryBtn:active {
  transform: scale(0.98);
}

.category-dropdown-inline {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 15, 15, 0.98);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 10px;
  min-width: 240px;
  z-index: 100;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  margin-top: 8px;
  max-width: 90vw;
}

.category-dropdown-inline.show {
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.category-option {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  padding: 11px 14px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  letter-spacing: 0.2px;
}

.category-option:hover {
  /* hover effects disabled */
}

.category-option:active {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(0.98);
}

/* Load More Button Container */
.load-more-container {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 40px;
}

.load-more-btn,
.close-btn {
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(26, 26, 26, 0.8);
  color: #f0f0f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.5px;
}

.load-more-btn:hover {
  /* hover effects disabled */
}

.close-btn:hover {
  /* hover effects disabled */
}

.close-btn.hidden {
  display: none;
}

/* Responsive Design */
@media (max-width: 1400px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1200px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .scrollable-video-card {
    flex: 0 0 200px;
    min-width: 200px;
  }

  .videos-controls {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    justify-content: flex-start;
  }

  .search-bar-inline {
    width: 100%;
    max-width: 100%;
  }

  .category-container-inline button#categoryBtn {
    width: 100%;
  }

  .category-dropdown-inline {
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
  }
}

@media (max-width: 700px) {
  .video-grid {
    grid-template-columns: 1fr;
  }

  .scrollable-video-card {
    flex: 0 0 180px;
    min-width: 180px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .load-more-btn,
  .close-btn {
    padding: 10px 24px;
    font-size: 0.95rem;
  }
}
