@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Cormorant+Garamond:wght@400;500;600;700&display=swap');

/* ─── DESIGN TOKENS ─────────────────────────────────────── */
:root {
  --bg-primary:    #080c14;
  --bg-secondary:  #0e1422;
  --bg-tertiary:   #141b2e;
  --bg-card:       #111827;
  --text-primary:  #f0f4ff;
  --text-secondary:#8da0c0;
  --text-muted:    #4a5568;
  --accent:        #c9a84c;
  --accent-hover:  #e2bc6a;
  --accent-dim:    rgba(201,168,76,0.12);
  --accent-glow:   rgba(201,168,76,0.25);
  --blue-accent:   #3d6be8;
  --glass:         rgba(14,20,34,0.85);
  --glass-light:   rgba(20,27,46,0.7);
  --border:        rgba(255,255,255,0.07);
  --border-accent: rgba(201,168,76,0.3);
  --shadow:        0 24px 60px rgba(0,0,0,0.7);
  --shadow-card:   0 8px 32px rgba(0,0,0,0.5);
  --radius:        12px;
  --radius-lg:     18px;
}

[data-theme="light"] {
  --bg-primary:    #f0f4fb;
  --bg-secondary:  #e8eef8;
  --bg-tertiary:   #dde5f3;
  --bg-card:       #ffffff;
  --text-primary:  #0d1526;
  --text-secondary:#4a5f80;
  --text-muted:    #8da0c0;
  --glass:         rgba(240,244,251,0.92);
  --glass-light:   rgba(255,255,255,0.8);
  --border:        rgba(0,0,0,0.08);
  --border-accent: rgba(201,168,76,0.4);
  --shadow:        0 24px 60px rgba(0,0,0,0.12);
  --shadow-card:   0 8px 32px rgba(0,0,0,0.1);
}

/* ─── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: background 0.4s, color 0.3s;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 40% at 20% -10%, rgba(61,107,232,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 30% at 80% 110%, rgba(201,168,76,0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ─── HEADER ─────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon svg {
  width: 36px; height: 36px;
  display: block;
}

.logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-wordmark .logo-main {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.logo-wordmark .logo-sub {
  font-family: 'Outfit', sans-serif;
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 1px;
}

/* Keep backward compat if span still used */
.logo span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-menu {
  display: flex;
  gap: 0.25rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.nav-link.active {
  color: var(--accent);
  background: var(--accent-dim);
}

.theme-toggle {
  width: 36px; height: 36px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.theme-toggle:hover { border-color: var(--accent); background: var(--accent-dim); }

/* 3-dot menu */
.three-dot-menu-container { position: relative; display: none; }
.three-dot-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  width: 36px; height: 36px;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.three-dot-dropdown {
  position: absolute;
  top: 46px; right: 0;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 170px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 2000;
  box-shadow: var(--shadow);
}
.three-dot-dropdown.open { display: flex; }
.dropdown-item {
  padding: 0.8rem 1.2rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s;
}
.dropdown-item:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.dropdown-item.active-item { color: var(--accent); background: var(--accent-dim); }

/* Header Search */
.header-search { flex: 1; max-width: 380px; position: relative; }
.search-box-small {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 30px;
  display: flex;
  height: 38px;
  transition: border-color 0.2s;
}
.search-box-small:focus-within { border-color: var(--accent); }
.search-input-small {
  flex: 1;
  padding: 0 1.1rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  outline: none;
  font-size: 0.875rem;
  font-family: 'Outfit', sans-serif;
}
.search-input-small::placeholder { color: var(--text-muted); }
.search-icon-small { padding: 0 1rem; background: none; border: none; cursor: pointer; font-size: 0.95rem; }
.search-results-container-small {
  position: absolute; top: 48px; left: 0; right: 0;
  background: var(--glass);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  max-height: 400px;
  overflow-y: auto;
  display: none;
  z-index: 2000;
  box-shadow: var(--shadow);
}
.search-results-container-small.active { display: block; }
.search-result-item-small {
  display: flex; gap: 0.75rem; padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background 0.15s;
}
.search-result-item-small:hover { background: var(--bg-tertiary); }
.result-poster-small img { width: 32px; height: 48px; object-fit: cover; border-radius: 5px; }
.result-title-small { font-size: 0.875rem; font-weight: 500; }
.result-meta-small { font-size: 0.75rem; color: var(--text-secondary); margin-top: 2px; }

/* ─── MAIN ───────────────────────────────────────────────── */
.main-content { margin-top: 64px; min-height: 90vh; position: relative; z-index: 1; }

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 5rem 2rem 4rem;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(61,107,232,0.12), transparent 70%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  padding: 0.35rem 1rem;
  border-radius: 30px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.hero-title span {
  background: linear-gradient(135deg, var(--accent), #f0d78c, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-weight: 400;
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

/* Search Bar */
.hero-search { max-width: 580px; margin: 0 auto; }

.search-box {
  display: flex;
  background: var(--glass-light);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
  backdrop-filter: blur(10px);
}
.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-input {
  flex: 1;
  padding: 1rem 1.75rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  outline: none;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
}
.search-input::placeholder { color: var(--text-muted); }

.search-icon {
  padding: 0 1.5rem;
  background: linear-gradient(135deg, var(--accent), #b8942e);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: opacity 0.2s;
}
.search-icon:hover { opacity: 0.85; }

.search-results-container {
  max-width: 580px;
  margin: 0.5rem auto 0;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: none;
}
.search-results-container.active { display: block; }

.search-result-item {
  display: flex; gap: 1rem; padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background 0.15s;
  text-align: left;
}
.search-result-item:hover { background: var(--bg-tertiary); }
.result-poster img { width: 40px; height: 58px; object-fit: cover; border-radius: 6px; }
.result-info .result-title { font-weight: 600; font-size: 0.9rem; }
.result-info .result-meta { font-size: 0.75rem; color: var(--text-secondary); margin-top: 3px; }

.search-loading, .search-empty { padding: 1.25rem; text-align: center; color: var(--text-secondary); font-size: 0.9rem; }

/* ─── EXPLORE / HOME ─────────────────────────────────────── */
.explore-section { padding: 1rem 2rem 3rem; max-width: 1400px; margin: 0 auto; }
.explore-container {}

.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; margin-top: 2.5rem; }
.section-title-group { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Tabs */
.tab-group {
  display: flex;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 30px;
  overflow: hidden;
  padding: 3px;
  gap: 3px;
}
.tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 0.35rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  border-radius: 30px;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}
.tab-btn.active { background: var(--accent); color: #0d0d0d; }

.refresh-trending-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s;
}
.refresh-trending-btn:hover { background: var(--accent-dim); color: var(--accent); border-color: var(--border-accent); transform: rotate(90deg); }

/* ─── CONTENT GRID & CARDS ───────────────────────────────── */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 1.1rem;
}

.content-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: transform 0.25s cubic-bezier(.22,.68,0,1.2), box-shadow 0.25s, border-color 0.25s;
  position: relative;
}
.content-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 0 1px var(--border-accent);
  border-color: var(--border-accent);
}

.content-card-poster {
  aspect-ratio: 2/3;
  position: relative;
  background: var(--bg-tertiary);
  overflow: hidden;
}
.content-card-poster img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.content-card:hover .content-card-poster img { transform: scale(1.08); }

.content-card-placeholder { font-size: 3rem; opacity: 0.25; display: flex; align-items: center; justify-content: center; height: 100%; }

.content-card-badge {
  position: absolute;
  top: 7px; right: 7px;
  background: rgba(201,168,76,0.92);
  color: #0d0d0d;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
  letter-spacing: 0.02em;
}

.content-card-info { padding: 0.8rem; }
.content-card-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  font-size: 0.875rem;
}
.content-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
}

.content-loading { grid-column: 1 / -1; text-align: center; padding: 4rem; color: var(--text-muted); }

/* Shimmer loader */
.content-loading p::after {
  content: '';
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 6px;
  animation: dot-pulse 1.4s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%,80%,100% { opacity: 0.2; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.2); }
}

/* ─── BROWSE PAGES ───────────────────────────────────────── */
.browse-hero {
  padding: 4rem 2rem 3rem;
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(61,107,232,0.06) 0%, transparent 100%);
}
.browse-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.browse-hero-sub { color: var(--text-secondary); margin-bottom: 2rem; font-size: 0.95rem; }

.browse-search-bar { max-width: 500px; margin: 0 auto; position: relative; }

.browse-section { padding: 2rem 2rem 4rem; max-width: 1400px; margin: 0 auto; }

/* Genre Buttons */
.genre-filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.genre-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.45rem 1.1rem;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
  transition: all 0.2s;
  white-space: nowrap;
}
.genre-btn:hover { border-color: var(--border-accent); color: var(--accent); background: var(--accent-dim); }
.genre-btn.active { background: var(--accent); color: #0d0d0d; border-color: var(--accent); font-weight: 700; }

.load-more-container { text-align: center; margin-top: 3rem; }
.load-more-btn {
  background: transparent;
  border: 1.5px solid var(--border-accent);
  color: var(--accent);
  padding: 0.8rem 3rem;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.04em;
  transition: all 0.2s;
}
.load-more-btn:hover { background: var(--accent); color: #0d0d0d; border-color: var(--accent); box-shadow: 0 4px 20px var(--accent-glow); }

/* ─── PLAYER PAGE ─────────────────────────────────────────── */

/* Backdrop */
.player-backdrop {
  display: none;
  position: absolute;
  top: 64px; left: 0; right: 0;
  height: 550px;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: 0;
}
.player-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(8,12,20,0.5) 0%,
    rgba(8,12,20,0.75) 50%,
    var(--bg-primary) 100%);
}
[data-theme="light"] .player-backdrop::after {
  background: linear-gradient(to bottom,
    rgba(240,244,251,0.5) 0%,
    rgba(240,244,251,0.8) 60%,
    var(--bg-primary) 100%);
}

.player-section {
  padding: 1.5rem 1.5rem 0;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.player-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--border), var(--shadow);
}

.player-content {
  position: relative;
  height: 540px;
  background: #000;
}
.player-iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
.player-content video.player-iframe {
  object-fit: contain;
  background: #000;
}

/* ─── TV CONTROLS (Detached) ──────────────────────────────── */
.tv-controls {
  display: none;
  max-width: 1000px;
  margin: 1rem auto 0;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}
.tv-controls.active { display: block; }

.tv-controls-inner {
  background: var(--bg-secondary);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  box-shadow: 0 0 30px var(--accent-glow);
}

.control-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.control-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.control-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-tertiary);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.control-btn {
  width: 36px; height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 7px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  transition: all 0.2s;
}
.control-btn:hover { background: var(--accent); color: #0d0d0d; border-color: var(--accent); }

.control-display {
  width: 44px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.episode-details { font-size: 0.85rem; color: var(--text-secondary); text-align: center; }
.episode-name { font-weight: 500; }

/* ─── SERVER SELECTION (Detached) ─────────────────────────── */
.server-selection-outer {
  max-width: 1000px;
  margin: 1rem auto 0;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.server-selection {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1.25rem;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.server-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-shrink: 0;
}

.server-list { display: flex; gap: 0.5rem; }

.server-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.45rem 1.1rem;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
  flex-shrink: 0;
  transition: all 0.2s;
}
.server-btn:hover { border-color: var(--border-accent); color: var(--accent); }
.server-btn.active { background: var(--accent); color: #0d0d0d; border-color: var(--accent); font-weight: 700; }

.action-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 0.25rem;
  transition: color 0.2s, transform 0.3s;
  flex-shrink: 0;
}
.action-btn:hover { color: var(--accent); transform: rotate(180deg); }

/* ─── MOVIE DETAILS ──────────────────────────────────────── */
.movie-details-section {
  max-width: 1000px;
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.movie-details-inner {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.movie-details-poster { flex-shrink: 0; width: 165px; }
.movie-details-poster img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
  box-shadow: var(--shadow-card);
}
.details-no-poster {
  width: 165px; height: 247px;
  background: var(--bg-tertiary);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  opacity: 0.3;
}

.movie-details-info { flex: 1; min-width: 0; }

.details-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.85rem;
  line-height: 1.15;
}

.details-badges {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 1.1rem;
}
.badge {
  display: inline-flex; align-items: center;
  padding: 0.28rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.badge-hd { background: var(--blue-accent); color: #fff; }
.badge-imdb { background: var(--accent); color: #0d0d0d; }
.badge-runtime { background: var(--bg-tertiary); color: var(--text-secondary); border: 1px solid var(--border); }
.badge-year { background: var(--bg-tertiary); color: var(--text-secondary); border: 1px solid var(--border); }

.details-overview {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.details-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 2rem;
}
.details-meta-item {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.meta-label { color: var(--accent); font-weight: 600; margin-right: 0.4rem; }

/* ─── RELATED SECTION ──────────────────────────────────────── */
.related-section { padding: 2rem 1.5rem 3rem; max-width: 1000px; margin: 0 auto; }
.related-container { margin-top: 0.5rem; }
.related-card { cursor: pointer; }

/* ─── BACK BUTTON ──────────────────────────────────────────── */
.back-btn {
  color: var(--text-primary) !important;
  background: var(--bg-tertiary) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  padding: 0.4rem 0.75rem !important;
  font-size: 1.1rem !important;
  font-weight: bold !important;
  text-decoration: none !important;
  transition: all 0.2s !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 38px !important;
  height: 38px !important;
}
.back-btn:hover { background: var(--accent-dim) !important; border-color: var(--border-accent) !important; color: var(--accent) !important; }

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  margin-top: 3rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.footer-logo span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}
.footer p { margin-top: 0.5rem; }
.footer-bottom { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .three-dot-menu-container { display: block; }
  .header-search { display: none; }
  .header-content { padding: 0 1rem; }

  .hero { padding: 3.5rem 1.25rem 2.5rem; }
  .hero-title { font-size: 2.4rem; }
  .hero-subtitle { font-size: 0.9rem; }

  .browse-hero { padding: 3rem 1.25rem 2rem; }
  .browse-section { padding: 1.5rem 1.25rem 3rem; }
  .explore-section { padding: 1rem 1.25rem 3rem; }

  .content-grid { grid-template-columns: repeat(auto-fill, minmax(115px, 1fr)); gap: 0.75rem; }

  .genre-filter-bar { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.5rem; -webkit-overflow-scrolling: touch; }
  .genre-btn { flex-shrink: 0; }

  .player-section { padding: 0.75rem 0.75rem 0; }
  .player-content { height: 56vw; min-height: 220px; }
  .movie-details-section { padding: 0 0.75rem; }
  .movie-details-inner { flex-direction: column; gap: 1.25rem; }
  .movie-details-poster { width: 100px; }
  .details-title { font-size: 1.3rem; }
  .details-meta-grid { grid-template-columns: 1fr; }

  .tv-controls { padding: 0 0.75rem; }
  .tv-controls-inner { gap: 1.5rem; padding: 1rem 1.5rem; }
  .control-btn { width: 40px; height: 40px; }

  .server-selection-outer { padding: 0 0.75rem; }
  .related-section { padding: 1.5rem 0.75rem 2rem; }

  .section-title { font-size: 1.3rem; }
  .section-title-group { gap: 0.6rem; }
}

@media (min-width: 769px) {
  .three-dot-menu-container { display: none; }
}

/* ─── DETAIL PAGE ─────────────────────────────────────────── */
.detail-backdrop {
  display: none;
  position: absolute;
  top: 64px; left: 0; right: 0;
  height: 600px;
  background-size: cover;
  background-position: center top;
  z-index: 0;
}
.detail-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(8,12,20,0.45) 0%,
    rgba(8,12,20,0.7) 40%,
    var(--bg-primary) 100%);
}
[data-theme="light"] .detail-backdrop::after {
  background: linear-gradient(to bottom,
    rgba(240,244,251,0.4) 0%,
    rgba(240,244,251,0.8) 50%,
    var(--bg-primary) 100%);
}

.detail-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 1.5rem;
  color: var(--text-secondary);
}
.detail-loading-spinner {
  width: 48px; height: 48px;
  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); } }

.detail-hero {
  position: relative;
  z-index: 1;
  padding: 3rem 2rem 0;
  max-width: 1100px;
  margin: 0 auto;
}
.detail-hero-inner {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

/* Poster */
.detail-poster-col { flex-shrink: 0; width: 220px; }
.detail-poster-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
  border: 1px solid var(--border-accent);
  aspect-ratio: 2/3;
  background: var(--bg-tertiary);
  display: flex; align-items: center; justify-content: center;
}
.detail-poster-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-poster-placeholder { font-size: 4rem; opacity: 0.25; }

/* Info col */
.detail-info-col { flex: 1; min-width: 0; padding-top: 0.5rem; }

.detail-breadcrumb { margin-bottom: 1.25rem; }
.detail-back-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}
.detail-back-btn:hover { border-color: var(--border-accent); color: var(--accent); }

.detail-type-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  padding: 0.3rem 0.85rem;
  border-radius: 30px;
  margin-bottom: 0.85rem;
}

.detail-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.detail-tagline {
  color: var(--text-secondary);
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.detail-meta-pill {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.28rem 0.75rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
}
.detail-rating-pill {
  background: var(--accent);
  color: #0d0d0d;
  border-color: var(--accent);
}

.detail-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.detail-genre-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.15s;
}

.detail-overview {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
  max-width: 680px;
}

.detail-cast-row, .detail-production-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}
.detail-cast-label {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-shrink: 0;
  margin-top: 1px;
}
.detail-cast-names { line-height: 1.5; }

/* TV Season/Episode picker */
.detail-tv-picker {
  background: var(--bg-secondary);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  box-shadow: 0 0 20px var(--accent-glow);
}
.detail-picker-row { display: flex; gap: 2rem; align-items: center; }
.detail-picker-group { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.detail-picker-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.detail-picker-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
}
.detail-picker-btn {
  width: 32px; height: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.detail-picker-btn:hover { background: var(--accent); color: #0d0d0d; border-color: var(--accent); }
.detail-picker-val { width: 38px; text-align: center; font-size: 1.05rem; font-weight: 700; }

/* Watch block */
.detail-watch-block { margin-top: 1.5rem; }
.detail-server-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.detail-server-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-shrink: 0;
}
.detail-server-list { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.detail-server-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.4rem 1rem;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
  transition: all 0.2s;
}
.detail-server-btn:hover { border-color: var(--border-accent); color: var(--accent); }
.detail-server-btn.active { background: var(--accent); color: #0d0d0d; border-color: var(--accent); font-weight: 700; }

.detail-action-btns { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }

.detail-watch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--accent), #b8942e);
  color: #0d0d0d;
  border: none;
  padding: 0.85rem 2.25rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: all 0.25s;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 24px rgba(201,168,76,0.35);
}
.detail-watch-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px rgba(201,168,76,0.5);
}
.detail-watch-icon { font-size: 0.9rem; }

.detail-watchlist-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1.5px solid var(--border-accent);
  color: var(--accent);
  padding: 0.82rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.detail-watchlist-btn:hover { background: var(--accent-dim); }
.detail-watchlist-btn.in-watchlist {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

/* Episodes section */
.detail-episodes-section {
  max-width: 1100px;
  margin: 2.5rem auto 0;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}
.detail-episodes-inner {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.detail-episodes-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}
.detail-episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.85rem;
}
.detail-ep-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}
.detail-ep-card:hover, .detail-ep-card.active {
  border-color: var(--border-accent);
  box-shadow: 0 4px 20px var(--accent-glow);
  transform: translateY(-3px);
}
.detail-ep-card.active { border-color: var(--accent); }
.detail-ep-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-tertiary);
  display: flex; align-items: center; justify-content: center;
}
.detail-ep-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-ep-thumb-placeholder { font-size: 1.5rem; opacity: 0.3; }
.detail-ep-info { padding: 0.6rem 0.75rem; }
.detail-ep-num {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.detail-ep-name {
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.detail-ep-rating { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }
.detail-ep-loading { text-align: center; color: var(--text-muted); padding: 2rem; grid-column: 1/-1; }

/* Related */
.detail-related-section {
  max-width: 1100px;
  margin: 2.5rem auto 0;
  padding: 0 2rem 4rem;
  position: relative;
  z-index: 1;
}
.detail-related-inner { }

/* ─── PLAYER WATCHLIST BTN ───────────────────────────────── */
.player-watchlist-btn {
  background: transparent;
  border: 1px solid var(--border-accent);
  color: var(--accent);
  padding: 0.35rem 0.9rem;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  transition: all 0.2s;
  margin-left: auto;
}
.player-watchlist-btn:hover { background: var(--accent-dim); }
.player-watchlist-btn.in-watchlist { background: var(--accent-dim); border-color: var(--accent); }

/* ─── TOAST NOTIFICATIONS ────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}
.toast-item {
  background: var(--glass);
  border: 1px solid var(--border-accent);
  backdrop-filter: blur(20px);
  color: var(--text-primary);
  padding: 0.65rem 1.4rem;
  border-radius: 30px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.3s cubic-bezier(.22,.68,0,1.2);
  white-space: nowrap;
}
.toast-item.show { opacity: 1; transform: translateY(0); }

/* ─── CONTINUE WATCHING & WATCHLIST (Homepage) ───────────── */
#continue-watching-section, #watchlist-section { margin-bottom: 0; }

.clear-history-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.clear-history-btn:hover { border-color: #e05555; color: #e05555; }

/* ─── DETAIL PAGE RESPONSIVE ─────────────────────────────── */
@media (max-width: 768px) {
  .detail-hero { padding: 2rem 1.25rem 0; }
  .detail-hero-inner { flex-direction: column; gap: 1.5rem; }
  .detail-poster-col { width: 130px; }
  .detail-title { font-size: 1.7rem; }
  .detail-episodes-section, .detail-related-section { padding: 0 1.25rem 3rem; }
  .detail-episodes-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .detail-picker-row { gap: 1.25rem; }
  .detail-watch-btn { padding: 0.75rem 1.5rem; font-size: 0.92rem; }
  .player-watchlist-btn { display: none; }
}

/* ─── TRAILER MODAL ──────────────────────────────────────── */
.trailer-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.trailer-modal.open { opacity: 1; pointer-events: all; }
.trailer-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(8px);
}
.trailer-modal-inner {
  position: relative;
  z-index: 1;
  width: 90vw;
  max-width: 960px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(.22,.68,0,1.2);
  box-shadow: 0 40px 100px rgba(0,0,0,0.8);
}
.trailer-modal.open .trailer-modal-inner { transform: scale(1); }
.trailer-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.trailer-modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trailer-modal-close {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}
.trailer-modal-close:hover { background: var(--accent-dim); color: var(--accent); border-color: var(--border-accent); }
.trailer-modal-frame {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
}
.trailer-modal-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: none;
}

/* Trailer button */
.detail-trailer-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  padding: 0.82rem 1.4rem;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.detail-trailer-btn:hover { border-color: var(--border-accent); color: var(--accent); background: var(--accent-dim); }

/* ─── STAR RATING ────────────────────────────────────────── */
.detail-star-rating { margin-bottom: 1.25rem; }
.star-rating-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.star-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.star-btns { display: flex; gap: 2px; }
.star-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 2px;
  transition: color 0.15s, transform 0.15s;
  line-height: 1;
}
.star-btn:hover, .star-btn.hover { color: var(--accent); transform: scale(1.15); }
.star-btn.active { color: var(--accent); }

/* ─── SEASON DROPDOWN ────────────────────────────────────── */
.detail-season-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  min-width: 120px;
  transition: border-color 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238da0c0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.2rem;
}
.detail-season-select:focus { border-color: var(--border-accent); }
.detail-season-select option { background: var(--bg-secondary); color: var(--text-primary); }

/* ─── MOBILE SEARCH OVERLAY ──────────────────────────────── */
.mobile-search-btn {
  display: none;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  width: 36px; height: 36px;
  font-size: 1rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.mobile-search-btn:hover { border-color: var(--border-accent); color: var(--accent); }

.mobile-search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: var(--bg-primary);
  flex-direction: column;
  padding: 1rem;
}
.mobile-search-overlay.open { display: flex; }
.mobile-search-inner {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}
.mobile-search-input {
  flex: 1;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-accent);
  border-radius: 50px;
  padding: 0.75rem 1.25rem;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: 'Outfit', sans-serif;
  outline: none;
}
.mobile-search-close {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 42px; height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.mobile-search-results {
  flex: 1;
  overflow-y: auto;
  border-radius: var(--radius);
}
.mobile-search-result-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
  border-radius: var(--radius);
}
.mobile-search-result-item:hover { background: var(--bg-secondary); }
.mobile-search-result-item img { width: 44px; height: 66px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.mobile-result-title { font-weight: 600; font-size: 0.9rem; }
.mobile-result-meta { font-size: 0.75rem; color: var(--text-secondary); margin-top: 2px; }

@media (max-width: 768px) {
  .mobile-search-btn { display: flex; }
  .detail-trailer-btn { padding: 0.7rem 1.1rem; font-size: 0.82rem; }
  .trailer-modal-inner { width: 96vw; }
  .star-btn { font-size: 1.75rem; }
}

/* ─── USER RATING CARD BADGE ─────────────────────────────── */
.content-card-user-badge {
  position: absolute;
  bottom: 7px;
  left: 7px;
  background: rgba(8,12,20,0.82);
  color: var(--accent);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(201,168,76,0.35);
}

/* ─── POSTER USER RATING BADGE ───────────────────────────── */
.detail-poster-user-rating {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(8,12,20,0.95) 0%, transparent 100%);
  padding: 1.5rem 1rem 0.85rem;
  text-align: center;
  color: var(--accent);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
}
.detail-poster-user-rating em {
  display: block;
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ─── STAR CURRENT VAL ───────────────────────────────────── */
.star-current-val {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
}
