* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0f0f1a;
  --bg-secondary: #1a1a2e;
  --bg-card: #16213e;
  --bg-card-hover: #1c2b4a;
  --accent: #e94560;
  --accent-hover: #ff6b81;
  --text-primary: #eee;
  --text-secondary: #aab;
  --text-muted: #667;
  --border: #2a2a4a;
  --shadow: rgba(0, 0, 0, 0.4);
  --radius: 8px;
  --header-height: 60px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-hover);
}

/* Header */
.site-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  cursor: pointer;
}

.site-logo span {
  color: var(--accent);
}

.site-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: none;
}

@media (min-width: 768px) {
  .site-tagline {
    display: block;
  }
}

/* Navigation */
.main-nav {
  display: none;
  gap: 4px;
}

@media (min-width: 900px) {
  .main-nav {
    display: flex;
  }
}

.main-nav a {
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text-primary);
  background: rgba(233, 69, 96, 0.1);
}

.main-nav a.active {
  color: var(--accent);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-toggle,
.mobile-menu-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-toggle:hover,
.mobile-menu-toggle:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-toggle {
  display: flex;
}

@media (min-width: 900px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* Search Bar */
.search-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 200;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
}

.search-overlay.active {
  display: flex;
}

.search-box {
  width: 90%;
  max-width: 600px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 16px 50px 16px 20px;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 1.1rem;
  outline: none;
  transition: border-color 0.2s;
}

.search-box input:focus {
  border-color: var(--accent);
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 1.2rem;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  color: var(--text-secondary);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

/* Page Layout */
.page-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 1100px) {
  .page-container {
    grid-template-columns: 1fr 280px;
  }
}

/* Category Header */
.category-header {
  margin-bottom: 8px;
}

.category-header h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.category-header h1 span {
  color: var(--accent);
}

.results-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

@media (min-width: 640px) {
  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

/* Video Card */
.video-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.25s ease;
  cursor: pointer;
}

.video-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--shadow);
}

.card-thumbnail {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-secondary);
}

.card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.video-card:hover .card-thumbnail img {
  transform: scale(1.05);
}

.card-category {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-size {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.card-body {
  padding: 14px;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.card-cast {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.card-magnet {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--accent);
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  transition: background 0.2s;
}

.card-magnet:hover {
  background: var(--accent-hover);
  color: white;
}

/* Sidebar */
.sidebar {
  display: none;
}

@media (min-width: 1100px) {
  .sidebar {
    display: block;
  }
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.sidebar-widget h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ad-slot {
  display: flex;
  min-height: 250px;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ad-slot .ad-label {
  position: absolute;
  top: -4px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-list {
  list-style: none;
}

.sidebar-list li {
  margin-bottom: 2px;
}

.sidebar-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  color: var(--text-secondary);
  border-radius: 4px;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.sidebar-list a:hover {
  background: rgba(233, 69, 96, 0.1);
  color: var(--text-primary);
}

.sidebar-list .count {
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 1px 8px;
  border-radius: 10px;
}

/* Studio filters */
.studio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.studio-tag {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
}

.studio-tag:hover,
.studio-tag.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.pagination button {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
  min-width: 40px;
}

.pagination button:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.pagination button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Detail View */
.detail-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 300;
  overflow-y: auto;
  padding: 40px 20px;
  display: none;
}

.detail-overlay.active {
  display: block;
}

.detail-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.detail-close {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 310;
}

.detail-close:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.detail-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.detail-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s;
}

.detail-nav-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--text-primary);
}

.detail-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.detail-nav-pos {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.detail-image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}

.detail-body {
  padding: 24px;
}

.detail-category {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.detail-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.detail-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.detail-meta-item strong {
  color: var(--text-primary);
}

.detail-meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.detail-cast {
  margin-bottom: 20px;
}

.detail-cast h3 {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.cast-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cast-tag {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
}

.cast-tag.clickable {
  cursor: pointer;
  transition: all 0.2s;
}

.cast-tag.clickable:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: white;
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

/* Related Videos */
.related-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.related-section h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.related-card {
  background: var(--bg-card);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}

.related-card:hover {
  border-color: var(--accent);
}

.related-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.related-card .related-info {
  padding: 8px 10px;
}

.related-card .related-info h4 {
  font-size: 0.85rem;
  font-weight: 600;
}

.related-card .related-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 24px 20px;
  text-align: center;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-inner p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Stats Banner */
.stats-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat-item {
  text-align: center;
}

.stat-item .stat-number {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
}

.stat-item .stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Card animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.video-card {
  animation: fadeInUp 0.3s ease forwards;
}

.video-card:nth-child(1) { animation-delay: 0s; }
.video-card:nth-child(2) { animation-delay: 0.03s; }
.video-card:nth-child(3) { animation-delay: 0.06s; }
.video-card:nth-child(4) { animation-delay: 0.09s; }
.video-card:nth-child(5) { animation-delay: 0.12s; }
.video-card:nth-child(6) { animation-delay: 0.15s; }

/* Detail overlay animation */
@keyframes overlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.detail-overlay.active {
  animation: overlayFadeIn 0.2s ease forwards;
}

.detail-overlay.active .detail-container {
  animation: slideUp 0.25s ease forwards;
}

/* Mobile improvements */
@media (max-width: 480px) {
  .header-inner {
    padding: 0 12px;
  }

  .site-logo {
    font-size: 1.2rem;
  }

  .page-container {
    padding: 16px 12px;
  }

  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
  }

  .card-body {
    padding: 10px;
  }

  .card-title {
    font-size: 0.9rem;
  }

  .card-cast {
    font-size: 0.75rem;
  }

  .studio-filters {
    gap: 4px;
  }

  .studio-tag {
    padding: 4px 10px;
    font-size: 0.72rem;
  }

  .stats-banner {
    grid-template-columns: repeat(2, 1fr);
    padding: 12px;
    gap: 8px;
  }

  .stat-item .stat-number {
    font-size: 1.1rem;
  }

  .detail-overlay {
    padding: 20px 10px;
  }

  .detail-title {
    font-size: 1.3rem;
  }

  .detail-meta {
    gap: 12px;
  }

  .detail-close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
  }
}

/* Loading */
.loading {
  display: flex;
  justify-content: center;
  padding: 60px 0;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state svg {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-state h3 {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--accent);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 50;
  box-shadow: 0 4px 12px var(--shadow);
}

.scroll-top.visible {
  display: flex;
}

.scroll-top:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

/* Sort bar */
.sort-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.sort-bar select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  cursor: pointer;
}

.sort-bar select:focus {
  outline: none;
  border-color: var(--accent);
}

.view-toggles {
  display: flex;
  gap: 4px;
}

.view-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.view-toggle:first-child {
  border-radius: var(--radius) 0 0 var(--radius);
}

.view-toggle:last-child {
  border-radius: 0 var(--radius) var(--radius) 0;
}

.view-toggle.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* List view */
.video-grid.list-view {
  grid-template-columns: 1fr;
}

.video-grid.list-view .video-card {
  display: grid;
  grid-template-columns: 200px 1fr;
}

.video-grid.list-view .card-thumbnail {
  aspect-ratio: auto;
  height: 100%;
}

@media (max-width: 600px) {
  .video-grid.list-view .video-card {
    grid-template-columns: 1fr;
  }
}

/* Genre filters */
.genre-filters {
  margin-top: -12px;
}

.genre-tag {
  background: var(--bg-secondary);
}

/* Card genre mini tags */
.card-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}

.genre-mini {
  background: rgba(233, 69, 96, 0.15);
  color: var(--accent);
  padding: 1px 7px;
  border-radius: 3px;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.genre-mini:hover {
  background: var(--accent);
  color: white;
}

/* Card studio */
.card-studio {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* Card seeders badge */
.card-seeders {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(46, 213, 115, 0.85);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

/* No magnet indicator */
.card-no-magnet {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-style: italic;
}

.video-card.no-magnet {
  opacity: 0.7;
}

/* Date range select */
#dateRangeSelect {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  cursor: pointer;
}

#dateRangeSelect:focus {
  outline: none;
  border-color: var(--accent);
}

/* Detail genres section */
.detail-genres {
  margin-bottom: 20px;
}

.detail-genres h3 {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

/* Image gallery in detail */
.detail-gallery {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.detail-gallery h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.gallery-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.gallery-scroll::-webkit-scrollbar {
  height: 6px;
}

.gallery-scroll::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 3px;
}

.gallery-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.gallery-scroll img {
  height: 160px;
  width: auto;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.gallery-scroll img:hover {
  transform: scale(1.05);
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 6px;
}

.lightbox-counter {
  color: white;
  font-size: 0.9rem;
  margin-top: 10px;
  font-weight: 600;
}

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 410;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.25);
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 410;
  transition: background 0.2s;
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.25);
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* Gallery item wrapper */
.gallery-item {
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s;
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item img {
  height: 160px;
  width: auto;
  border-radius: 6px;
}

/* Sort bar select + date range side by side */
.sort-bar select + select {
  margin-left: 8px;
}

/* New This Week section */
.new-this-week {
  margin-bottom: 24px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.08), rgba(233, 69, 96, 0.02));
  border: 1px solid rgba(233, 69, 96, 0.2);
  border-radius: 12px;
}

.new-this-week h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.new-week-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 14px !important;
}

.new-release .card-category {
  background: #2ed573 !important;
}

/* Collection buttons */
.collect-btn {
  transition: all 0.25s;
}

.collect-btn.collected {
  background: rgba(233, 69, 96, 0.2);
  border-color: var(--accent);
  color: var(--accent);
}

.collection-export-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

/* Nav collection count badge */
#collectionCount {
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 4px;
  font-weight: 700;
}
