/* ============================================================
   StreamVault Theme — Main Stylesheet
   Style: PsyPlay-inspired — dark, green accent #79c142
   ============================================================ */

/* ═══════════════════════════════════════════════════════════
   1. VARIABLES
═══════════════════════════════════════════════════════════ */
:root {
  --sv-green:       #79c142;
  --sv-green-dark:  #5fa030;
  --sv-green-glow:  rgba(121,193,66,0.18);
  --sv-dark:        #1e1e1e;
  --sv-darker:      #171717;
  --sv-dark2:       #252525;
  --sv-dark3:       #2e2e2e;
  --sv-border:      #333333;
  --sv-border-lite: #3d3d3d;
  --sv-text:        #cccccc;
  --sv-text-light:  #888888;
  --sv-text-white:  #f0f0f0;
  --sv-red:         #e50914;
  --sv-yellow:      #f5c518;
  --sv-card-bg:     #1a1a1a;
  --sv-header-h:    62px;
  --sv-radius:      6px;
  --sv-radius-lg:   10px;
  --sv-ease:        0.22s ease;
}

/* ═══════════════════════════════════════════════════════════
   2. RESET / BASE
═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sv-darker);
  color: var(--sv-text);
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--sv-green);
  text-decoration: none;
  transition: color var(--sv-ease);
}
a:hover { color: #fff; }

img { max-width: 100%; height: auto; display: block; }

ul, ol { padding: 0; list-style: none; margin: 0; }

h1,h2,h3,h4,h5,h6 {
  color: var(--sv-text-white);
  font-weight: 700;
  margin-top: 0;
  line-height: 1.25;
}

p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }

input, select, button, textarea { font-family: inherit; }

/* ═══════════════════════════════════════════════════════════
   3. PAGE LOADER
═══════════════════════════════════════════════════════════ */
.sv-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--sv-darker);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}
.sv-loader.hidden { opacity: 0; pointer-events: none; }
.sv-loader .spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--sv-border);
  border-top-color: var(--sv-green);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════
   4. HEADER
═══════════════════════════════════════════════════════════ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--sv-header-h);
  background: rgba(23,23,23,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sv-border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 0 20px;
  max-width: 1440px;
  margin: 0 auto;
}

/* Logo */
.site-logo {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-logo span { color: var(--sv-green); }
.site-logo:hover { color: #fff; }

/* Search */
.header-search {
  flex: 1;
  max-width: 460px;
  position: relative;
}
.header-search input[type="text"] {
  width: 100%;
  height: 38px;
  border-radius: 4px;
  background: var(--sv-dark2);
  border: 1px solid var(--sv-border);
  color: #fff;
  padding: 0 42px 0 14px;
  font-size: 13px;
  outline: none;
  transition: border-color var(--sv-ease);
}
.header-search input[type="text"]:focus { border-color: var(--sv-green); }
.header-search input::placeholder { color: var(--sv-text-light); }
.header-search button {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 40px;
  background: transparent;
  border: none;
  color: var(--sv-text-light);
  cursor: pointer;
  font-size: 15px;
  transition: color var(--sv-ease);
}
.header-search button:hover { color: var(--sv-green); }

/* Live search dropdown */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--sv-dark2);
  border: 1px solid var(--sv-border);
  border-radius: 4px;
  max-height: 420px;
  overflow-y: auto;
  z-index: 200;
  display: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}
.search-results-dropdown.open { display: block; }
.srd-header {
  padding: 8px 12px 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--sv-text-light);
  border-bottom: 1px solid var(--sv-border);
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--sv-border);
  transition: background var(--sv-ease);
  cursor: pointer;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--sv-dark3); }
.search-result-item img {
  width: 34px;
  height: 50px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
}
.search-result-item .sri-info { flex: 1; min-width: 0; }
.search-result-item .sri-title {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-item .sri-meta { color: var(--sv-text-light); font-size: 11px; margin-top: 2px; }
.srd-see-all {
  display: block;
  text-align: center;
  padding: 10px;
  color: var(--sv-green);
  font-size: 13px;
  font-weight: 600;
  border-top: 1px solid var(--sv-border);
}
.srd-see-all:hover { background: var(--sv-dark3); color: var(--sv-green); }

/* Primary nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.header-nav > a,
.nav-dropdown > a {
  color: var(--sv-text);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 4px;
  letter-spacing: 0.4px;
  white-space: nowrap;
  transition: color var(--sv-ease), background var(--sv-ease);
  display: block;
}
.header-nav > a:hover,
.header-nav > a.active,
.nav-dropdown > a:hover { color: #fff; background: var(--sv-green); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 9px; opacity: 0.7; }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--sv-dark2);
  border: 1px solid var(--sv-border);
  border-radius: 4px;
  min-width: 170px;
  display: none;
  z-index: 300;
  padding: 4px 0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 7px 14px;
  color: var(--sv-text);
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  transition: background var(--sv-ease), color var(--sv-ease);
}
.nav-dropdown-menu a:hover { color: #fff; background: var(--sv-green); }

/* User menu */
.header-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.btn-signin {
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  color: var(--sv-text);
  border: 1px solid var(--sv-border);
  cursor: pointer;
  transition: border-color var(--sv-ease), color var(--sv-ease);
}
.btn-signin:hover { border-color: var(--sv-green); color: var(--sv-green); }
.btn-register {
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  background: var(--sv-green);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background var(--sv-ease);
}
.btn-register:hover { background: var(--sv-green-dark); }

/* User avatar dropdown */
.user-menu { position: relative; }
.user-avatar-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--sv-green);
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--sv-dark2);
  border: 1px solid var(--sv-border);
  border-radius: 6px;
  min-width: 180px;
  display: none;
  z-index: 300;
  padding: 4px 0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}
.user-menu:hover .user-dropdown { display: block; }
.user-dropdown a {
  display: block;
  padding: 8px 14px;
  color: var(--sv-text);
  font-size: 13px;
  transition: background var(--sv-ease);
}
.user-dropdown a:hover { background: var(--sv-dark3); color: #fff; }
.user-dropdown .ud-divider { border-top: 1px solid var(--sv-border); margin: 4px 0; }
.user-dropdown .ud-logout { color: var(--sv-red); }

/* Mobile hamburger */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: var(--sv-header-h) 0 0 0;
  background: var(--sv-darker);
  z-index: 900;
  padding: 20px;
  overflow-y: auto;
}
.mobile-menu-overlay.open { display: block; }
.mobile-menu-overlay a {
  display: block;
  padding: 12px 0;
  color: var(--sv-text);
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid var(--sv-border);
}
.mobile-menu-overlay a:hover { color: var(--sv-green); }

/* Header spacer */
.header-pad { height: var(--sv-header-h); }

/* ═══════════════════════════════════════════════════════════
   5. LAYOUT
═══════════════════════════════════════════════════════════ */
.site-main { min-height: 70vh; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Content + Sidebar */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 1024px) {
  .content-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

/* Section title */
.sv-section { padding: 28px 0; }
.sv-section + .sv-section { border-top: 1px solid var(--sv-border); }

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sv-border);
}
.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 20px;
  background: var(--sv-green);
  border-radius: 2px;
  flex-shrink: 0;
}
.section-title h2,
.section-title span {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}
.section-title .see-all {
  margin-left: auto;
  font-size: 12px;
  color: var(--sv-text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.section-title .see-all:hover { color: var(--sv-green); }

/* ═══════════════════════════════════════════════════════════
   6. HERO SLIDER
═══════════════════════════════════════════════════════════ */
.hero-slider {
  position: relative;
  height: 500px;
  overflow: hidden;
  margin-bottom: 36px;
  border-radius: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10,10,10,0.96) 0%,
    rgba(10,10,10,0.7) 40%,
    rgba(10,10,10,0.15) 75%,
    transparent 100%
  );
}
.hero-content {
  position: absolute;
  bottom: 0; left: 0;
  padding: 0 48px 56px;
  max-width: 560px;
  z-index: 2;
}
.hero-genre {
  color: var(--sv-green);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-bottom: 10px;
}
.hero-title {
  font-size: 38px;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.hero-meta {
  color: var(--sv-text-light);
  font-size: 13px;
  margin-bottom: 14px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-meta .imdb-badge {
  background: var(--sv-yellow);
  color: #111;
  font-weight: 700;
  font-size: 12px;
  padding: 2px 7px;
  border-radius: 3px;
}
.hero-desc {
  color: var(--sv-text);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 22px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-hero-watch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sv-green);
  color: #fff;
  padding: 11px 26px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: background var(--sv-ease);
  text-decoration: none;
}
.btn-hero-watch:hover { background: var(--sv-green-dark); color: #fff; }

.btn-hero-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  padding: 11px 22px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: background var(--sv-ease), border-color var(--sv-ease);
  text-decoration: none;
}
.btn-hero-info:hover { background: rgba(255,255,255,0.15); color: #fff; border-color: rgba(255,255,255,0.4); }

/* Slider dots */
.hero-dots {
  position: absolute;
  bottom: 20px;
  right: 28px;
  display: flex;
  gap: 7px;
  z-index: 3;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--sv-ease), transform var(--sv-ease);
}
.hero-dot.active { background: var(--sv-green); transform: scale(1.3); }

/* Mobile hero */
@media (max-width: 768px) {
  .hero-slider { height: 300px; }
  .hero-content { padding: 0 20px 32px; max-width: 100%; }
  .hero-title { font-size: 22px; }
  .hero-desc { display: none; }
  .hero-slide::after {
    background: linear-gradient(
      to top,
      rgba(10,10,10,0.97) 0%,
      rgba(10,10,10,0.6) 50%,
      rgba(10,10,10,0.1) 100%
    );
  }
}

/* ═══════════════════════════════════════════════════════════
   7. MOVIE CARD
═══════════════════════════════════════════════════════════ */
.movie-card {
  position: relative;
  border-radius: var(--sv-radius);
  overflow: hidden;
  background: var(--sv-card-bg);
  transition: transform var(--sv-ease), box-shadow var(--sv-ease);
  display: block;
  cursor: pointer;
}
.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.7);
  z-index: 2;
}

.movie-card-poster {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--sv-dark2);
}
.movie-card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.movie-card:hover .movie-card-poster img { transform: scale(1.07); }

/* Badges */
.card-quality {
  position: absolute;
  top: 6px; left: 6px;
  z-index: 2;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.4;
}
.card-quality.hd,
.card-quality.hdrip,
.card-quality.webrip,
.card-quality.bluray { background: var(--sv-green); color: #fff; }
.card-quality.cam,
.card-quality.hdcam   { background: #e67e22; color: #fff; }
.card-quality.ts,
.card-quality.hdts    { background: #e74c3c; color: #fff; }
.card-quality.dvd,
.card-quality.dvdrip  { background: #9b59b6; color: #fff; }
.card-quality.web,
.card-quality.webdl,
.card-quality.webd    { background: #3498db; color: #fff; }

.card-type {
  position: absolute;
  top: 6px; right: 6px;
  z-index: 2;
  background: rgba(0,0,0,0.72);
  color: var(--sv-text-light);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  backdrop-filter: blur(2px);
}

.card-imdb {
  position: absolute;
  bottom: 6px; left: 6px;
  z-index: 2;
  background: var(--sv-yellow);
  color: #111;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  line-height: 1.4;
}

/* Hover overlay */
.card-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.9) 0%,
    rgba(0,0,0,0.4) 40%,
    transparent 65%
  );
  opacity: 0;
  transition: opacity var(--sv-ease);
  display: flex;
  align-items: center;
  justify-content: center;
}
.movie-card:hover .card-overlay { opacity: 1; }

.card-play-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--sv-green);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--sv-ease), transform var(--sv-ease);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.6);
}
.card-play-btn:hover { background: var(--sv-green-dark); color: #fff; transform: scale(1.1); }
.card-play-btn svg { margin-left: 3px; }

.movie-card-info {
  padding: 8px 10px 10px;
  background: var(--sv-card-bg);
}
.movie-card-title {
  color: var(--sv-text-white);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 4px;
  display: block;
  transition: color var(--sv-ease);
}
.movie-card-title:hover { color: var(--sv-green); }
.movie-card-meta { color: var(--sv-text-light); font-size: 11px; }

/* ═══════════════════════════════════════════════════════════
   8. MOVIES GRID
═══════════════════════════════════════════════════════════ */
.movies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (min-width: 480px) { .movies-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 768px) { .movies-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 992px) { .movies-grid { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 1200px){ .movies-grid { grid-template-columns: repeat(7, 1fr); gap: 16px; } }

/* ═══════════════════════════════════════════════════════════
   9. HORIZONTAL SCROLL ROW
═══════════════════════════════════════════════════════════ */
.movies-row { position: relative; }
.movies-row-inner {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--sv-border) transparent;
  padding-bottom: 6px;
}
.movies-row-inner::-webkit-scrollbar { height: 3px; }
.movies-row-inner::-webkit-scrollbar-track { background: transparent; }
.movies-row-inner::-webkit-scrollbar-thumb { background: var(--sv-border); border-radius: 2px; }
.movies-row-inner .movie-card {
  min-width: 148px;
  max-width: 148px;
  flex-shrink: 0;
  scroll-snap-align: start;
}
@media (min-width: 768px) {
  .movies-row-inner .movie-card { min-width: 162px; max-width: 162px; }
}

.row-arrow {
  position: absolute;
  top: 35%; /* poster area middle */
  transform: translateY(-50%);
  z-index: 10;
  width: 34px;
  height: 56px;
  background: rgba(0,0,0,0.75);
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--sv-ease);
}
.row-arrow:hover { background: var(--sv-green); }
.row-arrow.prev { left: -17px; border-radius: 0 4px 4px 0; }
.row-arrow.next { right: -17px; border-radius: 4px 0 0 4px; }

/* ═══════════════════════════════════════════════════════════
   10. SIDEBAR
═══════════════════════════════════════════════════════════ */
.sidebar { min-width: 0; }

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

.sidebar-widget-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #fff;
  border-bottom: 2px solid var(--sv-green);
  padding-bottom: 8px;
  margin-bottom: 14px;
}

.sidebar-list-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--sv-border);
}
.sidebar-list-item:last-child { border-bottom: none; }
.sidebar-list-item img {
  width: 42px;
  height: 60px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
}
.sidebar-list-info { flex: 1; min-width: 0; }
.sidebar-list-title {
  color: var(--sv-text-white);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  transition: color var(--sv-ease);
}
.sidebar-list-title:hover { color: var(--sv-green); }
.sidebar-list-meta { color: var(--sv-text-light); font-size: 11px; margin-top: 3px; }

/* Genre tag cloud */
.genre-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.genre-tag {
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  background: var(--sv-dark);
  color: var(--sv-text);
  border: 1px solid var(--sv-border);
  transition: all var(--sv-ease);
}
.genre-tag:hover { background: var(--sv-green); border-color: var(--sv-green); color: #fff; }

/* ═══════════════════════════════════════════════════════════
   11. SINGLE MOVIE / TV HERO
═══════════════════════════════════════════════════════════ */
.single-hero {
  position: relative;
  padding: 56px 0 40px;
  background: var(--sv-dark);
  margin-bottom: 32px;
  overflow: hidden;
}
.single-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  filter: blur(6px);
  transform: scale(1.08);
}

.single-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.single-poster {
  flex-shrink: 0;
  width: 200px;
  border-radius: var(--sv-radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.8);
}
.single-poster img { display: block; width: 100%; }

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

.single-title {
  font-size: 30px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.15;
}
.single-original-title {
  color: var(--sv-text-light);
  font-size: 14px;
  margin-bottom: 12px;
  font-style: italic;
}

.single-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-bottom: 14px;
}

/* Meta badges */
.meta-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1.5;
}
.meta-badge.quality { background: var(--sv-green); color: #fff; }
.meta-badge.year    { background: var(--sv-dark3); color: var(--sv-text); border: 1px solid var(--sv-border); }
.meta-badge.runtime { background: var(--sv-dark3); color: var(--sv-text); border: 1px solid var(--sv-border); }
.meta-badge.genre   { background: var(--sv-dark3); color: var(--sv-text); border: 1px solid var(--sv-border); }
.meta-badge.genre:hover { background: var(--sv-green); border-color: var(--sv-green); color: #fff; }
.meta-badge.rating  { background: var(--sv-yellow); color: #111; }
.meta-badge.status-ongoing  { background: rgba(52,211,153,0.2); color: #34d399; border: 1px solid rgba(52,211,153,0.3); }
.meta-badge.status-ended    { background: rgba(229,9,20,0.15); color: #ff6b6b; border: 1px solid rgba(229,9,20,0.3); }

.imdb-score {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--sv-yellow);
  font-weight: 700;
  font-size: 14px;
}
.imdb-score i { font-size: 12px; }
.imdb-score .imdb-label { color: var(--sv-text-light); font-size: 11px; font-weight: 400; }

.single-plot {
  color: var(--sv-text);
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 20px;
  max-width: 680px;
}

.single-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }

.btn-watch-now {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sv-green);
  color: #fff;
  padding: 10px 26px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: background var(--sv-ease);
  text-decoration: none;
}
.btn-watch-now:hover { background: var(--sv-green-dark); color: #fff; }

.btn-watchlist,
.btn-trailer,
.btn-share,
.btn-imdb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 13px;
  border: 1px solid var(--sv-border);
  background: transparent;
  color: var(--sv-text);
  cursor: pointer;
  transition: border-color var(--sv-ease), color var(--sv-ease), background var(--sv-ease);
  text-decoration: none;
}
.btn-watchlist:hover,
.btn-trailer:hover,
.btn-share:hover,
.btn-imdb:hover {
  border-color: var(--sv-green);
  color: var(--sv-green);
}
.btn-watchlist.active { background: var(--sv-green); border-color: var(--sv-green); color: #fff; }

/* Movie detail table */
.movie-detail-table { font-size: 13px; }
.movie-detail-table dl { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; }
.movie-detail-table dt { color: var(--sv-text-light); }
.movie-detail-table dd { color: var(--sv-text-white); margin: 0; }
.movie-detail-table a { color: var(--sv-green); }
.movie-detail-table a:hover { color: #fff; }

/* Responsive single hero */
@media (max-width: 768px) {
  .single-hero-inner { flex-direction: column; align-items: center; text-align: center; }
  .single-poster { width: 140px; }
  .single-title { font-size: 22px; }
  .single-meta-row { justify-content: center; }
  .single-actions { justify-content: center; }
  .single-plot { text-align: left; }
}

/* ═══════════════════════════════════════════════════════════
   12. DETAIL TABS
═══════════════════════════════════════════════════════════ */
.detail-tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--sv-border);
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.detail-tabs-nav::-webkit-scrollbar { display: none; }
.detail-tab-btn {
  padding: 10px 20px;
  border: none;
  background: transparent;
  color: var(--sv-text-light);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color var(--sv-ease), border-color var(--sv-ease);
}
.detail-tab-btn:hover { color: #fff; }
.detail-tab-btn.active { color: var(--sv-green); border-bottom-color: var(--sv-green); }
.detail-tab-panel { display: none; }
.detail-tab-panel.active { display: block; }

/* ═══════════════════════════════════════════════════════════
   13. PLAYER
═══════════════════════════════════════════════════════════ */
.player-section {
  background: #000;
  margin-bottom: 28px;
  border-radius: var(--sv-radius);
  overflow: hidden;
  border: 1px solid var(--sv-border);
}

.player-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--sv-dark2);
  border-bottom: 1px solid var(--sv-border);
  flex-wrap: wrap;
  gap: 8px;
}

.player-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.player-tab-btn {
  padding: 5px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--sv-border);
  background: var(--sv-dark);
  color: var(--sv-text);
  cursor: pointer;
  transition: all var(--sv-ease);
}
.player-tab-btn:hover,
.player-tab-btn.active {
  background: var(--sv-green);
  border-color: var(--sv-green);
  color: #fff;
}

.player-report-btn {
  font-size: 11px;
  color: var(--sv-text-light);
  background: transparent;
  border: 1px solid var(--sv-border);
  padding: 4px 10px;
  border-radius: 3px;
  cursor: pointer;
  transition: color var(--sv-ease), border-color var(--sv-ease);
}
.player-report-btn:hover { color: var(--sv-red); border-color: var(--sv-red); }

.player-frame-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}
.player-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ═══════════════════════════════════════════════════════════
   14. SEASONS & EPISODES
═══════════════════════════════════════════════════════════ */
.seasons-tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.season-tab-btn {
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--sv-border);
  background: var(--sv-dark2);
  color: var(--sv-text);
  cursor: pointer;
  transition: all var(--sv-ease);
}
.season-tab-btn:hover,
.season-tab-btn.active {
  background: var(--sv-green);
  border-color: var(--sv-green);
  color: #fff;
}

.season-panel { display: none; }
.season-panel.active { display: block; }

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

.episode-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--sv-dark2);
  border-radius: var(--sv-radius);
  padding: 10px;
  border: 1px solid var(--sv-border);
  transition: border-color var(--sv-ease), background var(--sv-ease);
  text-decoration: none;
}
.episode-card:hover { background: var(--sv-dark3); border-color: var(--sv-green); }

.episode-thumb {
  width: 96px;
  height: 58px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
  border: 1px solid var(--sv-border);
  background: var(--sv-dark);
}
.episode-info { flex: 1; min-width: 0; }
.episode-num {
  color: var(--sv-green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.episode-title {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  margin-bottom: 4px;
}
.episode-plot {
  color: var(--sv-text-light);
  font-size: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════
   15. CAST GRID
═══════════════════════════════════════════════════════════ */
.cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 14px;
}
.cast-card { text-align: center; }
.cast-card-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--sv-dark2);
  border: 2px solid var(--sv-border);
  margin: 0 auto 8px;
  transition: border-color var(--sv-ease);
}
.cast-card:hover .cast-card-photo { border-color: var(--sv-green); }
.cast-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.cast-card-name { color: #fff; font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.cast-card-role { color: var(--sv-text-light); font-size: 11px; font-style: italic; }

/* ═══════════════════════════════════════════════════════════
   16. FILTER BAR
═══════════════════════════════════════════════════════════ */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  background: var(--sv-dark2);
  border-radius: var(--sv-radius);
  padding: 12px 16px;
  margin-bottom: 20px;
  border: 1px solid var(--sv-border);
}
.filter-bar select {
  background: var(--sv-dark);
  border: 1px solid var(--sv-border);
  color: var(--sv-text);
  padding: 7px 12px;
  border-radius: 4px;
  font-size: 13px;
  outline: none;
  cursor: pointer;
  transition: border-color var(--sv-ease);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}
.filter-bar select:focus { border-color: var(--sv-green); }
.filter-bar select option { background: var(--sv-dark2); color: var(--sv-text); }

.filter-btn {
  padding: 7px 16px;
  border-radius: 4px;
  border: 1px solid var(--sv-border);
  background: var(--sv-dark);
  color: var(--sv-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--sv-ease);
  text-decoration: none;
  white-space: nowrap;
}
.filter-btn:hover,
.filter-btn.active { background: var(--sv-green); border-color: var(--sv-green); color: #fff; }

.filter-btn-submit {
  background: var(--sv-green);
  border-color: var(--sv-green);
  color: #fff;
}
.filter-btn-submit:hover { background: var(--sv-green-dark); }

/* Alphabetical filter */
.alpha-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 20px;
}
.alpha-filter a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  background: var(--sv-dark2);
  color: var(--sv-text);
  border: 1px solid var(--sv-border);
  transition: all var(--sv-ease);
}
.alpha-filter a:hover,
.alpha-filter a.active { background: var(--sv-green); border-color: var(--sv-green); color: #fff; }

/* Found posts count */
.found-posts { color: var(--sv-text-light); font-size: 13px; margin-bottom: 16px; }

/* ═══════════════════════════════════════════════════════════
   17. PAGINATION
═══════════════════════════════════════════════════════════ */
.sv-pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
  margin: 32px 0 16px;
}
.sv-pagination a,
.sv-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  background: var(--sv-dark2);
  color: var(--sv-text);
  border: 1px solid var(--sv-border);
  transition: all var(--sv-ease);
}
.sv-pagination a:hover { background: var(--sv-green); border-color: var(--sv-green); color: #fff; }
.sv-pagination .current { background: var(--sv-green); border-color: var(--sv-green); color: #fff; }
.sv-pagination .dots { background: transparent; border-color: transparent; pointer-events: none; }

/* ═══════════════════════════════════════════════════════════
   18. BREADCRUMB
═══════════════════════════════════════════════════════════ */
.sv-breadcrumb { padding: 8px 0; }
.sv-breadcrumb ul {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}
.sv-breadcrumb li {
  color: var(--sv-text-light);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.sv-breadcrumb li::after { content: '›'; color: var(--sv-border); }
.sv-breadcrumb li:last-child::after { display: none; }
.sv-breadcrumb a { color: var(--sv-text-light); transition: color var(--sv-ease); }
.sv-breadcrumb a:hover { color: var(--sv-green); }
.sv-breadcrumb li:last-child,
.sv-breadcrumb li:last-child a { color: var(--sv-text-white); }

/* ═══════════════════════════════════════════════════════════
   19. STAR RATINGS
═══════════════════════════════════════════════════════════ */
.user-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.rating-stars { display: flex; gap: 3px; }
.rating-star {
  font-size: 22px;
  cursor: pointer;
  color: var(--sv-border);
  transition: color var(--sv-ease), transform var(--sv-ease);
  line-height: 1;
}
.rating-star:hover,
.rating-star.hover,
.rating-star.active { color: var(--sv-yellow); }
.rating-star:hover { transform: scale(1.2); }
.rating-val { color: var(--sv-text-light); font-size: 13px; }

/* ═══════════════════════════════════════════════════════════
   20. REVIEWS / COMMENTS
═══════════════════════════════════════════════════════════ */
.review-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--sv-border);
}
.review-item:last-child { border-bottom: none; }
.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--sv-dark2);
  border: 2px solid var(--sv-border);
}
.review-body { flex: 1; }
.review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.review-author { color: #fff; font-weight: 700; font-size: 14px; }
.review-date { color: var(--sv-text-light); font-size: 11px; }
.review-text { color: var(--sv-text); font-size: 13px; line-height: 1.65; }

/* ═══════════════════════════════════════════════════════════
   21. MODAL
═══════════════════════════════════════════════════════════ */
.sv-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--sv-ease);
}
.sv-modal-overlay.open { opacity: 1; pointer-events: auto; }

.sv-modal {
  background: var(--sv-dark2);
  border-radius: var(--sv-radius-lg);
  max-width: 420px;
  width: 100%;
  padding: 28px;
  position: relative;
  border: 1px solid var(--sv-border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}
.sv-modal-close {
  position: absolute;
  top: 12px; right: 14px;
  background: none;
  border: none;
  color: var(--sv-text-light);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  transition: color var(--sv-ease);
}
.sv-modal-close:hover { color: #fff; }

/* Auth tabs inside modal */
.modal-tabs { display: flex; margin-bottom: 24px; border-bottom: 1px solid var(--sv-border); }
.modal-tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--sv-text-light);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--sv-ease), border-color var(--sv-ease);
}
.modal-tab.active { color: var(--sv-green); border-bottom-color: var(--sv-green); }
.modal-panel { display: none; }
.modal-panel.active { display: block; }

/* ═══════════════════════════════════════════════════════════
   22. AUTH FORMS
═══════════════════════════════════════════════════════════ */
.auth-wrap { max-width: 420px; margin: 60px auto; }
.auth-box {
  background: var(--sv-dark2);
  border-radius: var(--sv-radius-lg);
  padding: 32px;
  border: 1px solid var(--sv-border);
}
.auth-title {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
}

.auth-field { margin-bottom: 16px; }
.auth-field label {
  display: block;
  color: var(--sv-text-light);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  font-weight: 600;
}
.auth-field input {
  width: 100%;
  background: var(--sv-dark);
  border: 1px solid var(--sv-border);
  color: #fff;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 14px;
  outline: none;
  transition: border-color var(--sv-ease);
}
.auth-field input:focus { border-color: var(--sv-green); }
.auth-field input::placeholder { color: var(--sv-text-light); }

.btn-auth-submit {
  width: 100%;
  padding: 12px;
  background: var(--sv-green);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  transition: background var(--sv-ease);
}
.btn-auth-submit:hover { background: var(--sv-green-dark); }

.auth-switch {
  text-align: center;
  color: var(--sv-text-light);
  font-size: 13px;
  margin-top: 16px;
}
.auth-switch a { color: var(--sv-green); font-weight: 600; }
.auth-switch a:hover { color: #fff; }

/* ═══════════════════════════════════════════════════════════
   23. ALERTS / NOTICES
═══════════════════════════════════════════════════════════ */
.sv-notice {
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.5;
}
.sv-notice.info    { background: rgba(52,152,219,0.12); border: 1px solid rgba(52,152,219,0.3); color: #74b9ff; }
.sv-notice.success { background: rgba(121,193,66,0.12); border: 1px solid rgba(121,193,66,0.3); color: var(--sv-green); }
.sv-notice.error   { background: rgba(229,9,20,0.12);  border: 1px solid rgba(229,9,20,0.3);  color: #ff6b6b; }
.sv-notice.warning { background: rgba(245,197,24,0.12); border: 1px solid rgba(245,197,24,0.3); color: var(--sv-yellow); }

/* ═══════════════════════════════════════════════════════════
   24. PERSON PAGE
═══════════════════════════════════════════════════════════ */
.person-hero {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 32px 0;
}
.person-photo {
  width: 180px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}
.person-photo img { width: 100%; display: block; }
.person-info { flex: 1; min-width: 0; }
.person-name { font-size: 28px; font-weight: 900; color: #fff; margin-bottom: 6px; }
.person-bio { color: var(--sv-text); font-size: 14px; line-height: 1.75; }

.person-meta-list { list-style: none; padding: 0; margin: 14px 0; }
.person-meta-list li {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.5;
}
.person-meta-list dt { color: var(--sv-text-light); flex-shrink: 0; width: 80px; }
.person-meta-list dd { color: var(--sv-text-white); margin: 0; }

@media (max-width: 600px) {
  .person-hero { flex-direction: column; align-items: center; text-align: center; }
  .person-meta-list li { flex-direction: column; gap: 2px; }
  .person-meta-list dt { width: auto; }
}

/* ═══════════════════════════════════════════════════════════
   25. SEARCH RESULTS
═══════════════════════════════════════════════════════════ */
.search-results-header { padding: 20px 0 8px; }
.search-query { font-size: 22px; color: #fff; margin-bottom: 4px; }
.search-query em { color: var(--sv-green); font-style: normal; }
.search-count { color: var(--sv-text-light); font-size: 14px; }

/* ═══════════════════════════════════════════════════════════
   26. 404 PAGE
═══════════════════════════════════════════════════════════ */
.page-404 {
  text-align: center;
  padding: 80px 20px;
}
.page-404 h1 {
  font-size: 130px;
  font-weight: 900;
  color: var(--sv-green);
  line-height: 1;
  margin-bottom: 10px;
  text-shadow: 0 4px 20px rgba(121,193,66,0.3);
}
.page-404 h2 { font-size: 28px; color: #fff; margin-bottom: 12px; }
.page-404 p  { color: var(--sv-text-light); font-size: 15px; }
@media (max-width: 480px) { .page-404 h1 { font-size: 80px; } }

/* ═══════════════════════════════════════════════════════════
   27. FOOTER
═══════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--sv-darker);
  border-top: 1px solid var(--sv-border);
  padding: 48px 0 0;
  margin-top: 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-logo {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  display: block;
}
.footer-logo span { color: var(--sv-green); }
.footer-tagline { color: var(--sv-text-light); font-size: 13px; line-height: 1.65; margin-bottom: 16px; }

.footer-col-title {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--sv-border);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--sv-text-light); font-size: 13px; transition: color var(--sv-ease); }
.footer-col a:hover { color: var(--sv-green); }

/* Newsletter */
.footer-newsletter { margin-top: 14px; }
.footer-newsletter form { display: flex; gap: 6px; }
.footer-newsletter input {
  flex: 1;
  background: var(--sv-dark2);
  border: 1px solid var(--sv-border);
  color: #fff;
  padding: 9px 12px;
  border-radius: 4px;
  font-size: 13px;
  outline: none;
}
.footer-newsletter input:focus { border-color: var(--sv-green); }
.footer-newsletter button {
  background: var(--sv-green);
  color: #fff;
  border: none;
  padding: 9px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.footer-newsletter button:hover { background: var(--sv-green-dark); }

.footer-bottom {
  border-top: 1px solid var(--sv-border);
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-copy { color: var(--sv-text-light); font-size: 12px; }
.footer-links a {
  color: var(--sv-text-light);
  font-size: 12px;
  margin-left: 14px;
  transition: color var(--sv-ease);
}
.footer-links a:hover { color: var(--sv-green); }

@media (max-width: 992px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 576px) { .footer-inner { grid-template-columns: 1fr; gap: 20px; } }

/* ═══════════════════════════════════════════════════════════
   28. COOKIE BANNER
═══════════════════════════════════════════════════════════ */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1500;
  background: var(--sv-dark2);
  border-top: 1px solid var(--sv-border);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.4);
}
#cookie-banner p { margin: 0; color: var(--sv-text); font-size: 13px; }
#cookie-banner a { color: var(--sv-green); }
#cookie-banner.hidden { display: none; }
.cookie-btns { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-accept {
  padding: 7px 18px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  background: var(--sv-green);
  color: #fff;
}
.cookie-decline {
  padding: 7px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  color: var(--sv-text);
  border: 1px solid var(--sv-border);
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════
   29. SCROLL TO TOP
═══════════════════════════════════════════════════════════ */
#scroll-top {
  position: fixed;
  bottom: 28px; right: 24px;
  z-index: 999;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--sv-green);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 16px;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  transition: background var(--sv-ease), transform var(--sv-ease);
}
#scroll-top:hover { background: var(--sv-green-dark); transform: translateY(-2px); }
#scroll-top.visible { display: flex; }

/* ═══════════════════════════════════════════════════════════
   30. TOP IMDB RANK BADGE
═══════════════════════════════════════════════════════════ */
.topimdb-rank {
  position: absolute;
  top: 6px; right: 6px;
  z-index: 5;
  background: var(--sv-yellow);
  color: #111;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 3px;
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════
   31. DEBUG BAR
═══════════════════════════════════════════════════════════ */
#sv-debug-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9998;
  background: rgba(8,8,16,0.97);
  padding: 6px 16px;
  font-size: 11px;
  font-family: 'Courier New', monospace;
  color: var(--sv-text);
  border-top: 2px solid var(--sv-red);
  cursor: pointer;
}
#sv-debug-bar .debug-label { color: var(--sv-red); font-weight: 700; margin-right: 8px; }
#sv-debug-details { display: none; padding: 10px 0 4px; max-height: 200px; overflow-y: auto; }
#sv-debug-bar.open #sv-debug-details { display: block; }
#sv-debug-details code { display: block; font-size: 10px; color: #aaa; margin-bottom: 3px; }

/* ═══════════════════════════════════════════════════════════
   32. MOBILE NAV (hamburger)
═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .header-nav,
  .btn-signin,
  .btn-register { display: none; }
  .mobile-menu-btn { display: flex; }
}

/* ═══════════════════════════════════════════════════════════
   33. UTILITY
═══════════════════════════════════════════════════════════ */
.text-green  { color: var(--sv-green) !important; }
.text-yellow { color: var(--sv-yellow) !important; }
.text-muted  { color: var(--sv-text-light) !important; }
.text-white  { color: #fff !important; }
.text-center { text-align: center; }

.d-none   { display: none !important; }
.d-flex   { display: flex !important; }
.d-grid   { display: grid !important; }
.d-block  { display: block !important; }

.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }

.w-100 { width: 100%; }

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--sv-dark2) 25%, var(--sv-dark3) 50%, var(--sv-dark2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 3px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* Truncate */
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Responsive hide */
@media (max-width: 576px) { .hide-xs { display: none !important; } }
@media (max-width: 768px) { .hide-sm { display: none !important; } }
@media (min-width: 993px) { .show-mobile { display: none !important; } }
