/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0c0a13;
  --bg-card: #1a1a2e;
  --bg-skeleton: #222;
  --bg-skeleton-hl: #333;
  --text: #ffffff;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --border: rgba(255,255,255,0.1);
  --accent: #f5c518;
  --radius: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  font-family: 'Clash Display', -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; color: inherit; }

/* ===== LOADING SCREEN ===== */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.loading-screen.visible {
  opacity: 1;
  pointer-events: all;
}

.loader-spinner {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-sm {
  width: 50px;
  height: 50px;
}

.loader-ring {
  position: absolute;
  inset: 0;
  animation: spin 3s linear infinite;
  width: 100%;
  height: 100%;
}

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

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 14.5px 0;
  transition: all 0.3s;
  background: transparent;
}

.nav-inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 66px;
  width: auto;
  object-fit: contain;
  filter: contrast(1.25);
}

.nav-gap {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 6px;
  border-radius: 999px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-item i {
  font-size: 15px;
}

.nav-item:hover {
  color: var(--text);
}

.nav-item.active {
  background: white;
  color: #000 !important;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.icon-btn {
  font-size: 22px;
  color: white;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.8));
}

.icon-btn:hover {
  transform: scale(1.1);
}

.discord-link:hover {
  color: #5865F2 !important;
}

/* ===== SEARCH OVERLAY ===== */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  padding-top: 120px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.search-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.search-overlay-content {
  width: 100%;
  max-width: 640px;
  padding: 0 24px;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 20px;
}

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

.search-input-wrapper i {
  color: var(--text-muted);
  font-size: 20px;
}

.search-input-wrapper input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 18px;
  font-family: inherit;
}

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

.search-close {
  font-size: 20px;
  color: var(--text-muted);
  padding: 4px;
}

.search-close:hover {
  color: var(--text);
}

.search-results {
  margin-top: 24px;
  max-height: 60vh;
  overflow-y: auto;
}

.search-loading, .search-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 40px 20px;
  font-size: 15px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.search-result-item:hover {
  background: rgba(255,255,255,0.06);
}

.search-result-item img {
  width: 46px;
  height: 69px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.search-result-info strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.search-result-info span {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== BOTTOM NAV (Mobile) ===== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(12,10,19,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 8px 4px 12px;
  box-shadow: 0 -8px 25px rgba(0,0,0,0.55);
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 4px;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  border-radius: 0;
  background: none;
}

.bottom-nav-item i {
  font-size: 20px;
}

.bottom-nav-item.active {
  color: white;
  font-weight: 700;
}

.bottom-nav-item.active i {
  color: white;
}

/* ===== APP SHELL ===== */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  min-height: 100vh;
}

/* ===== HERO SWIPER (clone of arrowtv.net) ===== */
.hero-swiper {
  position: relative;
  width: 100%;
  height: 85vh;
  max-height: 800px;
  min-height: 480px;
  overflow: hidden;
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease, transform 1.2s ease;
  transform: scale(1.08);
  z-index: 1;
  will-change: transform, opacity;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.hero-slide.active .hero-slide-text > * {
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
}

.hero-slide.active .hero-slide-text > *:nth-child(1) { animation-delay: 0.1s; }
.hero-slide.active .hero-slide-text > *:nth-child(2) { animation-delay: 0.2s; }
.hero-slide.active .hero-slide-text > *:nth-child(3) { animation-delay: 0.3s; }
.hero-slide.active .hero-slide-text > *:nth-child(4) { animation-delay: 0.4s; }

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

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  transition: background-image 0.8s;
}

.hero-gradient-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  -webkit-mask-image: linear-gradient(to top, transparent 0%, black 14%, black 100%);
  mask-image: linear-gradient(to top, transparent 0%, black 14%, black 100%);
}

.hero-slide-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(32px, 6vh, 64px);
}

.hero-slide-text {
  max-width: min(700px, 80%);
  padding: 0 clamp(16px, 5vw, 64px);
  color: #d1d5db;
}

.hero-slide-logo {
  max-width: 220px;
  margin-bottom: 12px;
}

.hero-slide-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
}

.hero-slide-title {
  font-size: clamp(28px, 4.5vw, 56px);
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-slide-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 700;
}

.hero-slide-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.4);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.2);
  color: #f5c518;
}

.hero-slide-rating i {
  font-size: 12px;
}

.hero-slide-year {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.4);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.2);
  color: #d1d5db;
}

.hero-slide-year i {
  font-size: 12px;
}

.hero-slide-desc {
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.6;
  color: #d1d5db;
  margin-bottom: 24px;
  max-width: 600px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-slide-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: clamp(10px, 1.2vw, 14px) clamp(20px, 2.5vw, 36px);
  background: white;
  color: black;
  border: none;
  border-radius: 999px;
  font-size: clamp(14px, 1vw, 17px);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}

.hero-play-btn:hover {
  background: #e5e7eb;
}

.hero-play-btn i {
  font-size: 14px;
}

.hero-info-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: clamp(10px, 1.2vw, 14px) clamp(18px, 2vw, 28px);
  background: rgba(51,51,51,0.8);
  backdrop-filter: blur(4px);
  color: white;
  border: 1px solid #6b7280;
  border-radius: 999px;
  font-size: clamp(14px, 1vw, 17px);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}

.hero-info-btn:hover {
  background: rgba(75,75,75,0.9);
}

.hero-info-btn i {
  font-size: 18px;
}

/* Hero Dots */
.hero-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.hero-dot.active {
  background: white;
  transform: scale(1.3);
}

.hero-dot:hover {
  background: rgba(255,255,255,0.8);
}

/* ===== TOP 10 SECTION ===== */
.top10-section {
  padding: 32px 48px 8px;
  max-width: 1400px;
  margin: 0 auto;
}

.top10-header {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
}

.top10-svg {
  width: 320px;
  height: auto;
  flex-shrink: 0;
}

.top10-label {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  margin-left: 12px;
}

.top10-label span {
  color: white;
  font-weight: 400;
  letter-spacing: 0.2em;
  font-size: 16px;
  text-transform: uppercase;
}

.top10-track {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 360px;
}

.top10-cards {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 8px 4px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  flex: 1;
}

.top10-cards::-webkit-scrollbar { display: none; }

.top10-item {
  display: flex;
  align-items: flex-end;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
}

.top10-rank {
  font-size: clamp(140px, 13vw, 200px);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,0.9);
  line-height: 1;
  letter-spacing: -4px;
  user-select: none;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 0;
  transition: color 0.25s, -webkit-text-stroke 0.25s;
}

.top10-item:hover .top10-rank {
  -webkit-text-stroke: 2px #f5c518;
}

.top10-card {
  position: relative;
  width: 220px;
  height: 330px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.3s;
  z-index: 10;
  flex-shrink: 0;
  margin-left: 80px;
}

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

.top10-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top10-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 20;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top10-badge svg {
  position: absolute;
}

.top10-badge span {
  position: absolute;
  font-size: 11px;
  font-weight: 700;
  color: white;
  line-height: 1;
  letter-spacing: -0.5px;
}

.top10-scroll-btn {
  position: absolute;
  z-index: 30;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  cursor: pointer;
  font-size: 16px;
}

.top10-scroll-btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-50%) scale(1.1);
  color: white;
}

.top10-scroll-btn.left { left: -8px; }
.top10-scroll-btn.right { right: -8px; }

/* ===== POSTER SWIPER SECTION ===== */
.poster-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 48px 8px;
  contain: layout style;
}

.poster-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 0 4px;
}

.poster-header-left {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

.poster-header-icon {
  width: 20px;
  height: 20px;
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
  position: relative;
  top: -1px;
}

.poster-title {
  font-size: 20px;
  font-weight: 700;
  font-family: 'Clash Display', sans-serif;
  color: #fff;
  line-height: 1;
  margin: 0;
}

.poster-view-all {
  font-size: 14px;
  font-weight: 500;
  color: #3b82f6;
  text-decoration: none;
  font-family: 'Clash Display', sans-serif;
  line-height: 1;
  margin-bottom: 1px;
}

.poster-view-all:hover { text-decoration: underline; }

.poster-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.poster-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.7);
  transition: all 0.2s;
  cursor: pointer;
}

.poster-nav-btn svg { width: 14px; height: 14px; }

.poster-nav-btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
  color: white;
}

.poster-swiper { position: relative; }

.poster-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 4px;
  list-style: none;
  -ms-overflow-style: none;
  scrollbar-width: none;
  contain: paint;
}

.poster-track::-webkit-scrollbar { display: none; }

.poster-slide {
  flex-shrink: 0;
  width: calc(100% / 2.2);
  max-width: 180px;
  cursor: pointer;
  transition: transform 0.2s;
  will-change: transform;
}

.poster-slide:hover { transform: translateY(-4px); }

.poster-card { position: relative; }
.poster-card-link { display: block; text-decoration: none; color: inherit; }

.poster-card-sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0);
}

.poster-card-figure {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  border-radius: 12px;
  background: #1a1825;
}

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

.poster-slide:hover .poster-card-figure img { transform: scale(1.05); }

.poster-card-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #2563eb;
  color: white;
  font-weight: 700;
  padding: 4px 8px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 0 0 12px 12px;
  font-size: 11px;
  font-family: 'Clash Display', sans-serif;
}

.poster-section[data-show-badge] .poster-card-badge { display: flex; }

.poster-card-star {
  width: 14px;
  height: 14px;
  display: none;
}

@media (min-width: 768px) { .poster-card-star { display: block; } }

.poster-card-rating {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  pointer-events: none;
}

.poster-rating-circle {
  --size: 32px;
  --thickness: 3px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.poster-rating-circle::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(var(--rating-color, #22c55e) calc(var(--value) * 1%), transparent calc(var(--value) * 1%));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--thickness)), #000 calc(100% - var(--thickness) + 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - var(--thickness)), #000 calc(100% - var(--thickness) + 1px));
}

.poster-rating-text {
  font-size: 10px;
  font-weight: 700;
  color: white;
  font-family: 'Clash Display', sans-serif;
  z-index: 1;
}

@media (min-width: 480px) { .poster-slide { width: calc(100% / 3.2); max-width: 180px; } }
@media (min-width: 640px) { .poster-slide { width: calc(100% / 4.2); max-width: 180px; } }
@media (min-width: 1024px) { .poster-slide { width: calc(100% / 5.2); max-width: 180px; } }
@media (min-width: 1280px) { .poster-slide { width: calc(100% / 6); max-width: 180px; } }
@media (min-width: 1536px) { .poster-slide { width: calc(100% / 7); max-width: 180px; } }

/* ===== PLATFORM SECTION (Series on Netflix) ===== */
.platform-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 48px 8px;
}

.platform-header {
  margin-bottom: 16px;
  padding: 0 4px;
}

.platform-header-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 12px;
}

.platform-title-wrap {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

.platform-bar {
  width: 4px;
  height: 24px;
  background: white;
  border-radius: 4px;
  flex-shrink: 0;
}

.platform-title {
  font-size: 20px;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, 'Nunito', sans-serif;
  color: #f9fafb;
}

.platform-title-highlight {
  color: white;
}

.platform-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.platform-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.7);
  transition: all 0.2s;
}

.platform-nav-btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
  color: white;
}

.platform-tabs {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0;
}

.platform-tabs::-webkit-scrollbar { display: none; }

.platform-tab {
  font-size: 14px;
  font-weight: 600;
  padding: 6px 10px;
  border-bottom: 2px solid transparent;
  color: #9ca3af;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.platform-tab:hover { color: white; }

.platform-tab.active {
  color: white;
  border-bottom-color: white;
}

.platform-tab-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.platform-tab-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.platform-tab-logo {
  height: 20px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(0.6);
  transition: filter 0.2s;
}

.platform-tab.active .platform-tab-logo,
.platform-tab:hover .platform-tab-logo {
  filter: none;
}

.platform-slider {
  position: relative;
  min-height: 150px;
}

.platform-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.platform-track::-webkit-scrollbar { display: none; }

.platform-card {
  flex-shrink: 0;
  cursor: pointer;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.platform-card:hover { transform: scale(1.03); }

.platform-card-img {
  position: relative;
  width: 175px;
  height: 99px;
  border-radius: 16px;
  overflow: hidden;
  background: #1f1f1f;
}

@media (min-width: 480px) {
  .platform-card-img { width: 220px; height: 124px; }
}

@media (min-width: 640px) {
  .platform-card-img { width: 290px; height: 163px; }
}

@media (min-width: 768px) {
  .platform-card-img { width: 360px; height: 203px; }
}

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

.platform-card:hover .platform-card-img img {
  transform: scale(1.07);
}

.platform-card-gradient {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 40%;
  background: linear-gradient(to left, rgba(0,0,0,0.8), rgba(0,0,0,0.3), transparent);
  border-radius: 0 16px 16px 0;
  pointer-events: none;
  z-index: 1;
}

.platform-card-logo {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  max-width: 45%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

.platform-card-logo img {
  max-width: 75%;
  max-height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

@media (min-width: 640px) {
  .platform-card-logo img { max-height: 80px; }
}

.platform-card-skeleton {
  width: 100%;
  height: 100%;
  background: #1a1825;
  position: relative;
  overflow: hidden;
}

.platform-card-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
  animation: shimmer 1.5s infinite;
}

.hide-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.hide-scrollbar::-webkit-scrollbar { display: none; }

/* ===== HOME CONTAINER ===== */
.home-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px 40px;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
  padding: 32px 0 16px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 24px;
  font-weight: 700;
}

/* ===== CARD ROW ===== */
.card-row {
  position: relative;
  display: flex;
  align-items: center;
}

.card-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 8px 4px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.card-track::-webkit-scrollbar { display: none; }

.scroll-btn {
  position: absolute;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(12,10,19,0.85);
  backdrop-filter: blur(4px);
  color: white;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  opacity: 0;
  border: none;
  cursor: pointer;
}

.card-row:hover .scroll-btn, .cast-row:hover .scroll-btn {
  opacity: 1;
}

.scroll-btn.left { left: -12px; }
.scroll-btn.right { right: -12px; }
.scroll-btn:hover { background: var(--accent); transform: scale(1.1); }

/* ===== CARD (Home slider) ===== */
.card {
  min-width: 180px;
  max-width: 180px;
  cursor: pointer;
  transition: all 0.3s ease;
  scroll-snap-align: start;
  flex-shrink: 0;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
}

.card-img {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 2/3;
  background: var(--bg-card);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

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

.card:hover .card-img img {
  transform: scale(1.08);
}

.card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.6));
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover .card-img::after {
  opacity: 1;
}

.card-rating {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.8);
  color: #f5c518;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(6px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 3px;
}

.card-rating::before {
  content: '\f005';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 10px;
}

.card-body {
  padding: 12px 6px 4px;
}

.card-body h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}

.card:hover .card-body h3 {
  color: #f5c518;
}

.card-body span {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== CATEGORY BANNER ===== */
.category-banner {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 32px;
  background: linear-gradient(135deg, #1a1a2e, #0c0a13);
}

.banner-gradient {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.banner-gradient-rl {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, transparent 50%, rgba(0,0,0,0.8) 100%);
}

.banner-gradient-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 96px;
  background: linear-gradient(to top, var(--bg), transparent);
}

.banner-gradient-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(to bottom, rgba(12,10,19,0.8), transparent);
}

.banner-title {
  position: relative;
  z-index: 2;
  font-size: 60px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
  user-select: none;
  text-align: center;
}

/* ===== CATEGORY CONTAINER ===== */
.category-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px 60px;
}

.category-tabs {
  width: 100%;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.tabs-left {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs-left::-webkit-scrollbar { display: none; }

.tab-btn {
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all 0.2s;
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
  font-family: inherit;
}

.tab-btn:hover {
  color: var(--text);
}

.tab-btn.active {
  color: var(--text);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: white;
  border-radius: 2px 2px 0 0;
}

/* ===== GENRE BAR ===== */
.genre-bar {
  position: relative;
  width: 100%;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.genre-bar:hover .genre-scroll-arrow {
  opacity: 1;
}

.genre-bar-scroll {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 0;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  scroll-behavior: smooth;
}

.genre-bar-scroll:active {
  cursor: grabbing;
}

.genre-bar-scroll::-webkit-scrollbar { display: none; }

.genre-btn {
  flex-shrink: 0;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
  transition: all 0.2s;
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
  font-family: inherit;
  letter-spacing: 0.02em;
}

.genre-btn:hover {
  color: rgba(255,255,255,0.7);
}

.genre-btn.active {
  color: #fff;
  font-weight: 600;
}

.genre-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 4px;
  right: 4px;
  height: 2px;
  background: #f5c518;
  border-radius: 2px 2px 0 0;
}

.genre-btn-sort {
  font-weight: 600;
  font-size: 14px;
}

.genre-btn-sort.active {
  color: #fff;
}

.genre-divider {
  flex-shrink: 0;
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.12);
  margin: auto 8px;
}

.genre-fade {
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 48px;
  background: linear-gradient(to left, var(--bg, #0c0a13), transparent);
  z-index: 2;
}

.genre-scroll-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  background: rgba(12,10,19,0.7);
  border: none;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
  font-size: 18px;
}

.genre-scroll-arrow:hover {
  color: #fff;
  opacity: 1 !important;
}

.genre-scroll-arrow-left { left: 0; }
.genre-scroll-arrow-right { right: 0; }

/* ===== CATEGORY GRID ===== */
.category-grid,
.category-poster-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

@media (min-width: 1600px) {
  .category-grid, .category-poster-grid { grid-template-columns: repeat(6, 1fr); gap: 18px; }
}

@media (min-width: 2000px) {
  .category-grid, .category-poster-grid { grid-template-columns: repeat(7, 1fr); gap: 20px; }
}

.cat-poster-card {
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.cat-poster-card:hover {
  transform: translateY(-6px);
}

.cat-poster-figure {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  margin: 0;
}

.cat-poster-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cat-poster-card:hover .cat-poster-figure img {
  transform: scale(1.08);
}

.cat-poster-figure .poster-card-rating {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
}

.cat-poster-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 10px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  z-index: 1;
}

.cat-poster-info h4 {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 2px;
  color: #fff;
}

.cat-poster-info span {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}

.cat-poster-card:hover .cat-poster-info h4 {
  color: #f5c518;
}

/* ===== SKELETON LOADING ===== */
.skeleton-card {
  width: 100%;
}

.skeleton-img {
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: 16px;
  background: linear-gradient(135deg, #1e1e3a, #2a2a4a);
  animation: shimmer 1.8s ease-in-out infinite;
  background-size: 200% 200%;
}

@keyframes shimmer {
  0% { opacity: 0.4; background-position: 0% 50%; }
  50% { opacity: 0.8; background-position: 100% 50%; }
  100% { opacity: 0.4; background-position: 0% 50%; }
}

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

/* ===== CATEGORY LOADER ===== */
.category-loader {
  display: flex;
  justify-content: center;
  padding: 32px 0;
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 32px 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.page-btn {
  padding: 8px 20px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.15);
}

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

/* ===== DETAIL PAGE ===== */
/* ===== DETAIL PAGE (New) ===== */
.detail-page {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px 60px;
}

.detail-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

/* Hero backdrop */
.detail-hero {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 560px;
  background-size: cover;
  background-position: center top;
  z-index: 0;
}

.detail-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(12,10,19,0.7) 50%, transparent 100%);
}

.detail-hero-gradient-rl {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg) 0%, transparent 40%);
}

.detail-hero-gradient-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg), transparent);
}

/* Layout grid */
.detail-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: 40px;
  padding-top: 100px;
}

/* Poster column */
.detail-poster-sticky {
  position: sticky;
  top: 80px;
}

.detail-poster-frame {
  position: relative;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0,0,0,0.6);
  background: var(--bg-card);
}

.detail-poster-frame img {
  width: 100%;
  display: block;
}

.detail-poster-rating {
  position: absolute;
  top: 10px;
  left: 10px;
}

/* Info column */
.detail-title {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.detail-year-badge {
  display: inline-flex;
  padding: 2px 12px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}

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

.detail-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}

.detail-meta-item svg {
  flex-shrink: 0;
  opacity: 0.5;
}

.detail-genres-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.detail-genre-tag {
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  transition: all 0.2s;
  cursor: default;
}

.detail-genre-tag:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.detail-overview {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
  max-width: 680px;
}

.detail-actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.detail-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
  will-change: transform;
}

.detail-btn-primary {
  background: #f5c518;
  color: #000;
}

.detail-btn-primary:hover {
  background: #e0b416;
  transform: translateY(-1px);
}

.detail-btn-secondary {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
}

.detail-btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-1px);
}

.detail-creator {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  margin-bottom: 20px;
  max-width: 320px;
}

.detail-creator-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.detail-creator-avatar svg {
  opacity: 0.4;
}

.detail-creator strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.detail-creator span {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}

.detail-section-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

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

.detail-producer-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.detail-producer-logo {
  width: 80px;
  height: 48px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  overflow: hidden;
}

.detail-producer-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(0.7);
}

.detail-producer-logo span {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  text-align: center;
  line-height: 1.2;
}

/* Cast column */
.detail-cast-sticky {
  position: sticky;
  top: 80px;
}

.detail-cast-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px;
}

.detail-cast-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.detail-cast-list::-webkit-scrollbar {
  width: 4px;
}

.detail-cast-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}

.detail-cast-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 0.2s;
  cursor: pointer;
}

.detail-cast-item:hover {
  background: rgba(255,255,255,0.04);
}

.detail-cast-item img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-card);
}

.detail-cast-item strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-cast-item span {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Media section */
.detail-section {
  position: relative;
  z-index: 1;
  margin-top: 40px;
}

.detail-section-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 20px;
}

.detail-media-row {
  position: relative;
  display: flex;
  align-items: center;
}

.detail-media-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.detail-media-track::-webkit-scrollbar { display: none; }

.detail-media-item {
  flex-shrink: 0;
  width: 320px;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--bg-card);
}

.detail-media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.detail-media-item:hover img {
  transform: scale(1.05);
}

.detail-media-video {
  position: relative;
}

.detail-media-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  transition: background 0.2s;
}

.detail-media-play svg {
  width: 48px;
  height: 48px;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.detail-media-video:hover .detail-media-play {
  background: rgba(0,0,0,0.45);
}

/* Rec grid */
.detail-rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
}

/* Responsive */
@media (min-width: 1600px) {
  .detail-layout { grid-template-columns: 300px 1fr 300px; gap: 48px; }
  .detail-page { padding: 0 64px 80px; }
  .detail-title { font-size: 42px; }
  .detail-hero { height: 640px; }
}

@media (max-width: 1200px) {
  .detail-layout { grid-template-columns: 220px 1fr 220px; gap: 28px; }
  .detail-page { padding: 0 32px 50px; }
}

@media (max-width: 1024px) {
  .detail-layout { grid-template-columns: 180px 1fr 200px; gap: 20px; }
  .detail-page { padding: 0 24px 40px; }
  .detail-hero { height: 400px; }
  .detail-title { font-size: 28px; }
}

@media (max-width: 820px) {
  .detail-layout { grid-template-columns: 130px 1fr; gap: 14px; }
  .detail-cast-col { display: none; }
  .detail-page { padding: 0 16px 30px; }
  .detail-hero { height: 300px; }
  .detail-title { font-size: 24px; }
  .detail-overview { font-size: 14px; }
  .detail-rec-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .detail-layout { display: block; padding-top: 140px; }
  .detail-poster-col { display: block; width: 110px; float: left; margin: 0 14px 14px 0; }
  .detail-poster-sticky { position: static; }
  .detail-poster-frame { border-radius: 10px; }
  .detail-poster-rating { top: 5px; left: 5px; }
  .detail-poster-rating .poster-rating-circle { --size: 26px !important; --thickness: 2.5px !important; }
  .detail-poster-rating .poster-rating-text { font-size: 8px !important; }
  .detail-page { padding: 0 12px 24px; }
  .detail-hero { height: 200px; }
  .detail-title { font-size: 20px; margin-top: 0; }
  .detail-year-badge { font-size: 11px; margin-bottom: 10px; }
  .detail-meta-row { gap: 6px; margin-bottom: 12px; }
  .detail-meta-item { font-size: 11px; padding: 3px 8px; }
  .detail-genres-row { margin-bottom: 14px; }
  .detail-genre-tag { font-size: 11px; padding: 3px 10px; }
  .detail-overview { font-size: 13px; margin-bottom: 16px; }
  .detail-btn { padding: 6px 12px; font-size: 12px; }
  .detail-actions-row { margin-bottom: 18px; gap: 6px; }
  .detail-creator { margin-bottom: 14px; padding: 10px 14px; }
  .detail-section { margin-top: 24px; }
  .detail-section-title { font-size: 16px; margin-bottom: 14px; }
  .detail-media-item { width: 160px; }
  .detail-rec-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .detail-cast-col { display: block; clear: both; padding-top: 8px; }
  .detail-cast-sticky { position: static; }
  .detail-cast-title { font-size: 14px; margin-bottom: 8px; }
  .detail-cast-list { flex-direction: row; overflow-x: auto; gap: 8px; max-height: none; padding-bottom: 4px; }
  .detail-cast-item { flex-direction: column; text-align: center; min-width: 76px; padding: 4px; }
  .detail-cast-item img { width: 44px; height: 44px; }
  .detail-cast-item strong { font-size: 11px; }
  .detail-cast-item span { font-size: 10px; }
  .detail-producers { margin-bottom: 14px; }
  .detail-producer-logo { width: 60px; height: 36px; }
}

@media (max-width: 400px) {
  .detail-title { font-size: 17px; }
  .detail-poster-col { width: 85px; margin: 0 10px 10px 0; }
  .detail-media-item { width: 130px; }
  .detail-rec-grid { gap: 6px; }
  .detail-cast-item { min-width: 64px; }
  .detail-cast-item img { width: 36px; height: 36px; }
}

/* ===== WATCH PAGE ===== */
.watch-page {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px 60px;
  min-height: 100vh;
}

.watch-hero {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 480px;
  background-size: cover;
  background-position: center top;
  z-index: 0;
}

.watch-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(12,10,19,0.7) 50%, transparent 100%);
}

.watch-hero-gradient-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg), transparent);
}

.watch-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 20px;
  padding-top: 120px;
  margin-bottom: 24px;
}

.watch-back {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.12);
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.watch-back:hover {
  background: rgba(255,255,255,0.18);
  transform: scale(1.05);
}

.watch-top-info h1 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.watch-top-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.watch-top-rating i { color: #f5c518; margin-right: 4px; }
.watch-top-dot { color: rgba(255,255,255,0.15); }

/* Player */
.watch-frame-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 40px rgba(0,0,0,0.5);
}

.watch-frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.watch-frame.active {
  opacity: 1;
  pointer-events: all;
}

.watch-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Server bar */
.watch-servers-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding: 16px 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
}

.watch-servers-label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.watch-servers-label i { font-size: 14px; }

.watch-servers-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.watch-server-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.07);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.watch-server-btn i { font-size: 15px; }

.watch-server-btn:hover {
  background: rgba(255,255,255,0.09);
  color: #fff;
}

.watch-server-btn.active {
  background: #f5c518;
  color: #000;
  border-color: #f5c518;
}

.watch-server-btn.active i { color: #000; }

/* Season / Episode selector */
.watch-ep-selector {
  position: relative;
  z-index: 1;
  margin-top: 28px;
}

.watch-ep-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.watch-season-select {
  display: flex;
  align-items: center;
  gap: 10px;
}

.watch-season-select label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
}

.watch-season-select select {
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  outline: none;
}

.watch-season-select select:focus {
  border-color: #f5c518;
}

.watch-ep-count {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.35);
}

.watch-ep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  max-height: 420px;
  overflow-y: auto;
  padding: 4px 2px;
}

.watch-ep-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.watch-ep-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
}

.watch-ep-card.active {
  background: rgba(245,197,24,0.1);
  border-color: rgba(245,197,24,0.3);
}

.watch-ep-img {
  width: 100px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.watch-ep-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.watch-ep-img .watch-ep-num-lg {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
}

.watch-ep-card.active .watch-ep-img .watch-ep-num-lg {
  background: #f5c518;
  color: #000;
}

.watch-ep-info {
  min-width: 0;
}

.watch-ep-info strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.watch-ep-info span {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
}

.watch-ep-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: rgba(255,255,255,0.25);
  font-size: 14px;
}

/* Details */
.watch-details {
  position: relative;
  z-index: 1;
  padding: 28px 0 0;
}

.watch-overview {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  margin: 0 0 16px;
}

.watch-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.watch-genre-tag {
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

.watch-cast-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.watch-cast-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.watch-cast-chip img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-card);
}

.watch-cast-chip span {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
}

/* Watch page recommendations */
.watch-section {
  margin-top: 32px;
}

.watch-section-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 20px;
}

.watch-rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
}

/* Responsive */
@media (max-width: 900px) {
  .watch-page { padding: 0 24px 40px; }
  .watch-hero { height: 320px; }
  .watch-top { padding-top: 80px; }
  .watch-top-info h1 { font-size: 24px; }
  .watch-servers-bar { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .watch-rec-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .watch-page { padding: 0 12px 30px; }
  .watch-hero { height: 220px; }
  .watch-top { flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 60px; }
  .watch-top-info h1 { font-size: 18px; }
  .watch-servers-bar { padding: 12px; }
  .watch-server-btn { padding: 6px 14px; font-size: 12px; }
  .watch-ep-grid { grid-template-columns: 1fr; max-height: 300px; }
  .watch-overview { font-size: 13px; }
  .watch-rec-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  padding: 32px 0;
  text-align: center;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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

.footer p {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 16px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.footer-link {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--text);
}

/* ===== ERROR STATE ===== */
.error-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  color: var(--text-muted);
  font-size: 18px;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 1800px) {
  .category-grid, .category-poster-grid { grid-template-columns: repeat(7, 1fr); gap: 20px; }
  .poster-slide { width: calc(100% / 8); }
}

@media (min-width: 2200px) {
  .category-grid, .category-poster-grid { grid-template-columns: repeat(8, 1fr); gap: 22px; }
}

@media (max-width: 1400px) {
  .category-grid, .category-poster-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 1100px) {
  .category-grid, .category-poster-grid { grid-template-columns: repeat(4, 1fr); }
}

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

@media (max-width: 600px) {
  .category-grid, .category-poster-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

@media (max-width: 900px) {
  .detail-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .detail-poster { width: 200px; }
  .detail-desc { max-width: 100%; }
  .detail-meta, .detail-genres, .detail-actions { justify-content: center; }
}

@media (max-width: 768px) {
  .hidden-mobile { display: none !important; }

  .bottom-nav { display: flex; }
  .footer { padding-bottom: 80px; }
  .app-shell { padding-bottom: 60px; }

  .header { padding: 10px 0; }
  .nav-inner { padding: 0 16px; }
  .logo-img { height: 52px; }

  .nav-pill { display: none; }
  .nav-gap { gap: 12px; }

  .hero-swiper { height: 65vh; min-height: 400px; max-height: 520px; }
  .hero-slide-text { padding: 0 32px; }

  .poster-section { padding: 24px 16px 0; }
  .platform-section { padding: 24px 16px 0; }
  .platform-nav { display: none; }
  .platform-title { font-size: 18px; }
  .poster-title { font-size: 18px; }
  .poster-view-all { font-size: 13px; }
  .poster-header-icon { width: 18px; height: 18px; }
  .poster-header-left { gap: 12px; }
  .poster-track { gap: 12px; }

  .top10-section { padding: 24px 16px 0; }
  .top10-svg { width: 170px; }
  .top10-label span { font-size: 12px; letter-spacing: 0.15em; }
  .top10-card { width: 160px; height: 240px; margin-left: 56px; }
  .top10-cards { gap: 24px; }
  .top10-rank { font-size: clamp(90px, 15vw, 140px); }
  .top10-track { min-height: 260px; }

  .home-container { padding: 0 16px 30px; }

  .content-section { padding: 24px 0 12px; }
  .section-header h2 { font-size: 20px; }

  .card { min-width: 140px; max-width: 140px; }

  .category-banner { height: 160px; }
  .banner-title { font-size: 32px; }
  .category-container { padding: 0 16px 30px; }
  .genre-bar { margin-bottom: 16px; }

  .search-overlay { padding-top: 80px; }
  .search-overlay-content { padding: 0 16px; }
  .search-input-wrapper { padding: 12px 16px; }
  .search-input-wrapper input { font-size: 16px; }

  .footer-inner { padding: 0 16px; }

  /* Watch page mobile */
  .watch-page { padding: 0 12px 24px; }
  .watch-hero { height: 200px; }
  .watch-top { padding-top: 56px; gap: 12px; }
  .watch-top-info h1 { font-size: 18px; }
  .watch-servers-bar { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px 16px; }
  .watch-server-btn { padding: 8px 16px; font-size: 12px; }
  .watch-ep-grid { grid-template-columns: 1fr; max-height: 300px; }
  .watch-overview { font-size: 13px; }
  .watch-cast-chip { padding: 4px 10px 4px 4px; }
  .watch-cast-chip span { font-size: 11px; }
  .watch-cast-chip img { width: 24px; height: 24px; }
}

@media (max-width: 480px) {
  .category-banner { height: 140px; }
  .banner-title { font-size: 26px; letter-spacing: 0.1em; }
  .card { min-width: 120px; max-width: 120px; }
  .hero-swiper { height: 55vh; min-height: 340px; max-height: 460px; }
  .hero-slide-text { padding: 0 16px; }
  .hero-slide-desc { -webkit-line-clamp: 2; }
  .poster-section { padding: 16px 12px 0; }
  .platform-section { padding: 16px 12px 0; }
  .platform-track { gap: 12px; }
  .poster-title { font-size: 15px; }
  .poster-track { gap: 10px; }
  .poster-header-left { gap: 8px; }
  .poster-header-icon { width: 16px; height: 16px; }

  .top10-section { padding: 16px 12px 0; }
  .top10-svg { width: 130px; }
  .top10-label span { font-size: 10px; letter-spacing: 0.1em; }
  .top10-card { width: 130px; height: 195px; margin-left: 44px; }
  .top10-cards { gap: 16px; }
  .top10-rank { font-size: clamp(70px, 13vw, 100px); -webkit-text-stroke: 1.5px rgba(255,255,255,0.9); }
  .top10-track { min-height: 210px; }
}

/* ===== SEARCH OVERLAY RESPONSIVE ===== */
@media (max-width: 768px) {
  .search-overlay { padding-top: 64px; }
}

/* ===== WATCHLIST ===== */
.watchlist-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #f5c518;
  color: #000;
  font-size: 10px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

.icon-btn {
  position: relative;
}

.watchlist-count {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
  margin-top: -8px;
  text-align: center;
}

.watchlist-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
}

.watchlist-empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.2);
}

.watchlist-empty h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
}

.watchlist-empty p {
  color: rgba(255,255,255,0.4);
  margin: 0 0 24px;
  font-size: 14px;
}

.watchlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.watchlist-card {
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
  will-change: transform;
}

.watchlist-card:hover {
  transform: translateY(-4px);
}

.watchlist-card-figure {
  position: relative;
  margin: 0;
  aspect-ratio: 2/3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
}

.watchlist-card-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.watchlist-card:hover .watchlist-card-figure img {
  transform: scale(1.06);
}

.watchlist-card-figure .poster-card-rating {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
}

.watchlist-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  opacity: 0;
}

.watchlist-card:hover .watchlist-remove {
  opacity: 1;
}

.watchlist-remove:hover {
  background: rgba(239,68,68,0.8);
  color: #fff;
}

.watchlist-card-info {
  padding: 10px 4px 6px;
}

.watchlist-card-info h4 {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.watchlist-card-info span {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}

.detail-btn-secondary.active {
  background: rgba(245,197,24,0.15);
  color: #f5c518;
  border: 1px solid rgba(245,197,24,0.3);
}

@media (max-width: 640px) {
  .watchlist-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .watchlist-empty { padding: 60px 16px; }
}

@media (max-width: 480px) {
  .watchlist-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
