
.zmx-google-signin-btn {
  background: linear-gradient(180deg, var(--accent, #00d9ff) 0%, var(--accent-hover, #00b8d9) 100%);
  color: #001a24;
  border: none;
  border-radius: 8px;
  padding: 0.7em 2em;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 217, 255, 0.2);
  transition: filter 0.2s, box-shadow 0.2s;
}
.zmx-google-signin-btn:hover {
  filter: brightness(1.06);
  box-shadow: 0 10px 22px rgba(0, 217, 255, 0.28);
}
/* ============================================
   ZMX Theme - Main Stylesheet
   Modern Glassmorphism Design for Streaming
   ============================================ */

/* ========== CSS Variables ========== */
:root {
  /* Colors - Dark Theme */
  --bg-primary: #0a0e1a;
  --bg-secondary: #12172a;
  --bg-tertiary: #1a2035;
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: rgba(0, 0, 0, 0.3);
  
  /* Accent Colors */
  --accent: #00d9ff;
  --accent-hover: #00b8d9;
  --accent-glow: rgba(0, 217, 255, 0.3);
  
  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  
  /* Spacing */
  --container-width: 1200px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Z-index layers */
  --z-loader: 9999;
  --z-drawer: 1000;
  --z-header: 999;
  --z-dropdown: 100;
  --z-modal: 1001;
}

/* Light Theme (optional) */
[data-theme="light"] {
  --bg-primary: #f5f7fa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #e8ecf1;
  --glass-bg: rgba(0, 0, 0, 0.03);
  --glass-border: rgba(0, 0, 0, 0.08);
  --text-primary: #1a1a1a;
  --text-secondary: rgba(0, 0, 0, 0.7);
  --text-muted: rgba(0, 0, 0, 0.5);
}

/* ========== Reset & Base Styles ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--glass-bg);
  border-radius: 5px;
  border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--glass-border);
}

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--spacing-sm);
}

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

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

/* ========== Utility Classes ========== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px var(--glass-shadow);
}

.glass-soft {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
}

.only-desktop {
  display: flex !important;
}

.only-mobile {
  display: none !important;
}

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

/* Screen reader only */
.sr-only, .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ========== Loading Animation ========== */
.loader-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-loader);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loader-overlay.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-card {
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  text-align: center;
  min-width: 280px;
}

.loader-card .brand {
  margin-bottom: var(--spacing-md);
}

.loader-card .brand svg {
  width: 120px;
  height: auto;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.95); }
}

.spinner {
  width: 40px;
  height: 40px;
  margin: var(--spacing-md) auto;
  border: 3px solid var(--glass-border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.loader-text {
  color: var(--text-secondary);
  margin: var(--spacing-sm) 0;
  font-size: 0.9rem;
}

.progress {
  width: 100%;
  height: 3px;
  background: var(--glass-border);
  border-radius: 2px;
  overflow: hidden;
  margin-top: var(--spacing-md);
}

.progress .bar {
  display: block;
  height: 100%;
  background: var(--accent);
  animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ========== Header / Navigation ========== */
/* ========== Site Header (LK21 Style) ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--bg-primary);
  border-bottom: 2px solid var(--accent);
}

.nav-main {
  padding: 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 54px;
}

/* Brand */
.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 0.5rem;
}

.brand-text {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 1.5px;
  line-height: 1;
}

/* ---- Header Search ---- */
.header-search {
  position: relative;
  flex: 1;
  max-width: 380px;
}

.header-search input[type="search"] {
  width: 100%;
  padding: 0.5rem 0.9rem;
  padding-right: 38px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 0.82rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  height: 36px;
  box-sizing: border-box;
}

.header-search input[type="search"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.header-search input[type="search"]::placeholder {
  color: var(--text-muted);
}

.search-submit-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent);
  border: none;
  color: var(--bg-primary);
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: opacity 0.2s;
}

.search-submit-btn:hover {
  opacity: 0.85;
}

/* ---- Header Nav (Desktop dropdown menus) ---- */
.header-nav {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-nav__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  align-items: center;
}

.has-dropdown {
  position: relative;
}

.nav-drop-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.7rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
  border-radius: var(--radius-sm);
  font-family: inherit;
}

.nav-drop-btn svg {
  opacity: 0.7;
  flex-shrink: 0;
}

.nav-drop-btn .caret {
  font-size: 0.7rem;
  opacity: 0.5;
  margin-left: 0.1rem;
}

.nav-drop-btn:hover,
.has-dropdown.open .nav-drop-btn {
  color: var(--accent);
  background: var(--glass-bg);
}

/* Dropdown Panel */
.dropdown-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.75rem;
  min-width: 180px;
  z-index: calc(var(--z-header) + 10);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.has-dropdown.open .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Dropdown arrow */
.dropdown-panel::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  border-left: 1px solid var(--glass-border);
}

/* Dropdown list (single column) */
.dropdown-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dropdown-list a,
.dropdown-grid a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
  white-space: nowrap;
}

.dropdown-list a:hover,
.dropdown-grid a:hover {
  color: var(--accent);
  background: var(--glass-bg);
}

/* Dropdown grid (multi-column for Genre, Negara, Tahun) */
.dropdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  min-width: 240px;
}

/* Mobile header actions */
.header-mobile-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

/* ---- Live Search (positioned under header-search) ---- */
.live-results {
  position: absolute;
  top: calc(100% + var(--spacing-xs));
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm);
  max-height: 400px;
  overflow-y: auto;
  z-index: var(--z-dropdown);
  animation: fadeIn 0.2s ease;
}

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

.live-results[hidden] {
  display: none;
}

.live-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.live-item {
  display: flex;
  gap: var(--spacing-sm);
  padding: var(--spacing-xs);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.live-item:hover {
  background: var(--glass-bg);
}

.live-item img {
  width: 50px;
  height: 75px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.live-item-info { flex: 1; }

.live-item-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.live-item-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Action Buttons */
.icon-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: var(--spacing-xs);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  width: 36px;
  height: 36px;
}

.icon-btn:hover {
  color: var(--text-primary);
  background: var(--glass-bg);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
}

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

.btn-primary:hover {
  background: #00f0ff;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn svg {
  width: 20px;
  height: 20px;
}

/* ========== Mobile Drawer Menu (LK21 Style) ========== */
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 85vw;
  max-width: 380px;
  background: var(--bg-primary);
  border-radius: 0;
  padding: 0;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: var(--z-drawer);
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 4px 0 24px rgba(0,0,0,0.4);
}

.drawer[aria-hidden="false"] {
  transform: translateX(0);
}

/* Drawer overlay */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: calc(var(--z-drawer) - 1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.drawer[aria-hidden="false"] ~ .drawer-overlay {
  opacity: 1;
  visibility: visible;
}

/* Drawer header */
.drawer-header {
  background: var(--bg-primary);
  border-bottom: 2px solid var(--accent);
  padding: 0.6rem 0.75rem;
}

.drawer-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.drawer-brand {
  flex-shrink: 0;
  text-decoration: none;
}

.drawer-brand .brand-text {
  font-size: 1.1rem;
}

.drawer-search {
  flex: 1;
  position: relative;
  min-width: 0;
}

.drawer-search input[type="search"] {
  width: 100%;
  padding: 0.45rem 0.75rem;
  padding-right: 34px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 0.8rem;
  height: 34px;
  box-sizing: border-box;
}

.drawer-search input[type="search"]::placeholder {
  color: var(--text-muted);
}

.drawer-search .search-submit-btn {
  position: absolute;
  right: 3px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
}

/* Drawer body */
.drawer-body {
  padding: 0;
}

/* HOME link */
.drawer-home {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.15s;
}

.drawer-home:hover {
  background: var(--glass-bg);
}

/* Drawer section */
.drawer-section {
  border-bottom: 1px solid var(--glass-border);
}

.drawer-section__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem 0.5rem;
}

.drawer-section__title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.drawer-section__title svg {
  opacity: 0.8;
}

.drawer-section__more {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.15s;
}

.drawer-section__more:hover {
  opacity: 0.7;
}

/* Drawer grid (2 columns for Genre, Negara, Tahun) */
.drawer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0 0.5rem 0.75rem;
}

.drawer-grid a {
  display: block;
  padding: 0.55rem 0.6rem;
  color: var(--text-secondary);
  font-size: 0.82rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}

.drawer-grid a:hover {
  color: var(--accent);
  background: var(--glass-bg);
}

/* Drawer list (single column for Series, Populer) */
.drawer-list {
  display: flex;
  flex-direction: column;
  padding: 0 0.5rem 0.75rem;
}

.drawer-list a {
  display: block;
  padding: 0.55rem 0.6rem;
  color: var(--text-secondary);
  font-size: 0.82rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}

.drawer-list a:hover {
  color: var(--accent);
  background: var(--glass-bg);
}

/* Burger button (mobile) */
.burger-btn {
  order: -1;
}

/* ========== Main Content ========== */
.site-main {
  min-height: 60vh;
  padding: var(--spacing-lg) 0;
}

.section {
  margin-bottom: var(--spacing-xl);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

/* ========== Highlight / Trending Carousel ========== */
.highlight-section {
  margin-bottom: 2.5rem;
  position: relative;
}

/* Header */
.highlight-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.highlight-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.highlight-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
  color: var(--accent);
  letter-spacing: 0.5px;
}

.highlight-viewall {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.highlight-viewall:hover {
  gap: 0.7rem;
  filter: brightness(1.3);
}

/* Carousel Container */
.highlight-carousel {
  position: relative;
  overflow: hidden;
  padding: 0 calc((100% - var(--container-width)) / 2 + 1.25rem);
}

/* Track */
.highlight-track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.5rem 0 1rem 0;
}

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

/* Cards - Portrait Poster Style (same layout as grid cards) */
.hl-card {
  flex: 0 0 175px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: white;
  scroll-snap-align: start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  background: var(--bg-secondary);
}

.hl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  z-index: 5;
}

/* Image Container */
.hl-card__image {
  position: relative;
  overflow: hidden;
}

/* Poster Image */
.hl-card__poster {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hl-card:hover .hl-card__poster {
  transform: scale(1.05);
}

/* Rating Badge (top-left) */
.hl-card__top-left-badges {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  z-index: 3;
}

.hl-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem 0.4rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  z-index: 3;
  line-height: 1;
}

.hl-card__rating svg {
  flex-shrink: 0;
  vertical-align: middle;
  display: block;
}

/* Type Badge (top-right, same level as rating) */
.hl-card__type {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
}

/* EPS Badge (top-right, same level as rating) */
.hl-card__eps {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  background: #c8e600;
  color: #1a1a1a;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  z-index: 3;
  letter-spacing: 0.3px;
}

.hl-card__type--movie {
  background: #e91e63;
  color: white;
}

.hl-card__type--series {
  background: #4caf50;
  color: white;
}

/* Quality Badge */
.hl-card__quality {
  display: inline-flex;
  align-items: center;
  background: #00d9ff;
  color: #05212a;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 0.12rem 0.35rem;
  border-radius: 3px;
  line-height: 1;
  text-transform: uppercase;
}

.hl-card__quality.quality-low {
  background: #e53935;
  color: #fff;
}

.hl-card__quality.quality-mid {
  background: #f59e0b;
  color: #1f2937;
}

.hl-card__bottom-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.35rem;
  padding: 0.55rem 0.45rem 0.35rem;
  background: linear-gradient(180deg, rgba(8, 12, 24, 0) 0%, rgba(8, 12, 24, 0.78) 62%, rgba(8, 12, 24, 0.95) 100%);
  z-index: 2;
  font-size: 0.72rem;
  line-height: 1;
  pointer-events: none;
}

.hl-card__bottom-year {
  color: #d6dde8;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.hl-card__bottom-side {
  color: #f4f8ff;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.45);
}

/* Bottom Info (below poster) */
.hl-card__info {
  padding: 0.4rem 0.5rem;
}

.hl-card__genres {
  font-size: 0.65rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}



.hl-card__title {
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0 0 0.15rem 0;
  line-height: 1.3;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hl-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
}

.hl-card__year {
  color: var(--text-muted);
  font-weight: 500;
}

.hl-card__season,
.hl-card__runtime {
  font-weight: 600;
  color: var(--text-secondary);
}

/* Navigation Buttons */
.hl-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  color: white;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0;
}

.highlight-carousel:hover .hl-nav {
  opacity: 1;
}

.hl-nav:hover {
  background: var(--accent);
  color: #0a0e1a;
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.1);
}

.hl-nav--prev {
  left: calc((100% - var(--container-width)) / 2 + 0.5rem);
}

.hl-nav--next {
  right: calc((100% - var(--container-width)) / 2 + 0.5rem);
}

/* Responsive */
@media (max-width: 1024px) {
  .highlight-carousel {
    padding: 0 1.25rem;
  }
  
  .hl-nav--prev { left: 0.5rem; }
  .hl-nav--next { right: 0.5rem; }
  
  .hl-card {
    flex: 0 0 155px;
  }
}

@media (max-width: 768px) {
  .highlight-carousel {
    padding: 0 1rem;
  }
  
  .highlight-title {
    font-size: 1.25rem;
  }
  
  .hl-card {
    flex: 0 0 140px;
  }
  
  .hl-card__title {
    font-size: 0.78rem;
  }

  .hl-card__bottom-meta {
    font-size: 0.64rem;
    padding: 0.45rem 0.35rem 0.28rem;
  }
  
  .hl-nav {
    width: 32px;
    height: 32px;
    opacity: 1;
  }
  
  .hl-nav--prev { left: 0.25rem; }
  .hl-nav--next { right: 0.25rem; }
}

@media (max-width: 480px) {
  .highlight-header {
    margin-bottom: 0.75rem;
  }
  
  .highlight-title {
    font-size: 1.1rem;
  }
  
  .highlight-carousel {
    padding: 0 0.75rem;
  }
  
  .hl-card {
    flex: 0 0 125px;
  }
  
  .hl-card__title {
    font-size: 0.72rem;
  }
  
  .hl-card__type {
    font-size: 0.5rem;
    padding: 0.1rem 0.3rem;
  }
  
  .hl-card__rating {
    font-size: 0.55rem;
    padding: 0.1rem 0.3rem;
  }

  .hl-card__eps {
    font-size: 0.5rem;
    padding: 0.1rem 0.25rem;
  }

  .hl-card__bottom-meta {
    font-size: 0.6rem;
    padding: 0.4rem 0.3rem 0.22rem;
  }
  
  .hl-nav {
    width: 28px;
    height: 28px;
  }
}

/* Info Banner */
.info-banner {
  animation: slideInDown 0.5s ease;
}

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

@media (max-width: 768px) {
  .info-banner {
    padding: 1rem !important;
    margin: 1.5rem 0 !important;
  }
  
  .info-banner h3 {
    font-size: 1rem !important;
  }
  
  .info-banner p {
    font-size: 0.9rem !important;
  }
}

/* Empty State */
.empty-state {
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ========== Content Sections ========== */
.content-section {
  margin-bottom: 3rem;
}

.content-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(0, 217, 255, 0.2);
}

.content-section .section-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  margin: 0;
  position: relative;
  padding-left: 1rem;
}

.content-section .section-header h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: var(--accent);
  border-radius: 2px;
}

.view-all {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}

.view-all:hover {
  gap: 0.75rem;
  color: #00f0ff;
}

.view-all svg {
  transition: transform 0.3s ease;
}

.view-all:hover svg {
  transform: translateX(3px);
}

/* ========== Movie Grid ========== */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1rem;
  justify-content: start;
  animation: fadeInUp 0.5s ease;
}

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

@media (max-width: 1024px) {
  .movie-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
  }
}

@media (max-width: 640px) {
  .movie-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }
}

@media (max-width: 400px) {
  .movie-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
}

/* ========== Movie Card ========== */
.card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--bg-secondary);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card .poster {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.card:hover .poster {
  transform: scale(1.05);
}

/* Card Image Container */
.card-image {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

/* Rating Badge - top left */
.card .card-top-left-badges {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  z-index: 3;
}

.card .rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  z-index: 3;
  line-height: 1;
}

.card .rating-badge svg {
  flex-shrink: 0;
  vertical-align: middle;
  display: block;
}

/* EPS Badge - top right */
.card .eps-badge {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  background: #c8e600;
  color: #1a1a1a;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  z-index: 3;
  letter-spacing: 0.3px;
}

/* Quality Badge */
.card .quality-badge {
  display: inline-flex;
  align-items: center;
  background: #00d9ff;
  color: #05212a;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 0.12rem 0.35rem;
  border-radius: 3px;
  line-height: 1;
  text-transform: uppercase;
}

.card .quality-badge.quality-low {
  background: #e53935;
  color: #fff;
}

.card .quality-badge.quality-mid {
  background: #f59e0b;
  color: #1f2937;
}

.card .card-bottom-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.35rem;
  padding: 0.55rem 0.45rem 0.35rem;
  background: linear-gradient(180deg, rgba(8, 12, 24, 0) 0%, rgba(8, 12, 24, 0.8) 62%, rgba(8, 12, 24, 0.95) 100%);
  z-index: 2;
  font-size: 0.72rem;
  line-height: 1;
  pointer-events: none;
}

.card .card-bottom-meta__year {
  color: #d6dde8;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.card .card-bottom-meta__side {
  color: #f4f8ff;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.45);
}

.card .info {
  padding: 0.5rem 0.35rem 0.4rem;
}

.card .genre-labels {
  font-size: 0.65rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}



.card .title {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.card .season-info,
.card .runtime-info {
  font-weight: 600;
  color: var(--text-secondary);
}

.pill-soft {
  background: var(--glass-bg);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
}

/* ========== Pagination ========== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-xl);
  padding: var(--spacing-md) 0;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.page-btn:hover:not(.is-disabled):not(.active) {
  background: var(--glass-border);
  color: var(--text-primary);
  border-color: var(--accent);
}

.page-btn.active {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
  font-weight: 700;
}

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

.page-dots {
  color: var(--text-muted);
  padding: 0 var(--spacing-xs);
}

/* ========== Footer ========== */
.site-footer {
  margin-top: var(--spacing-xl);
}

.footer-main {
  background: #2a2a2a;
  border-top: 3px solid var(--accent);
  padding: 2.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 2rem;
}

.footer-heading {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 0.6rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: #444;
}

.footer-about {
  color: #aaa;
  font-size: 0.8rem;
  line-height: 1.7;
  text-align: justify;
}

.footer-links {
  list-style: disc;
  padding-left: 1.2rem;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  color: #ccc;
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  background: #222;
  padding: 1rem 0;
  text-align: center;
}

.footer-bottom p {
  color: #999;
  font-size: 0.8rem;
  margin: 0;
}

.footer-bottom a {
  color: var(--accent);
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* ========== Responsive Design ========== */

/* Tablet Landscape & Desktop Small */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.25rem;
  }
  
  .nav-inner {
    gap: 0.5rem;
  }
  
  .header-search {
    max-width: 260px;
  }
  
  .nav-drop-btn {
    padding: 0.4rem 0.5rem;
    font-size: 0.75rem;
  }
  
  .nav-drop-btn svg {
    display: none;
  }
}

/* Tablet Portrait */
@media (max-width: 768px) {
  :root {
    --container-width: 100%;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .nav-inner {
    gap: 0.5rem;
    height: 46px;
  }
  
  .brand-text {
    font-size: 1.2rem;
  }
  
  /* Mobile: search stays visible in header, shrinks */
  .header-search {
    max-width: none;
    flex: 1;
    min-width: 0;
  }
  
  .header-search input[type="search"] {
    font-size: 0.8rem;
    height: 34px;
    padding: 0.4rem 0.7rem;
    padding-right: 36px;
  }
  
  /* Movie Grid - horizontal scroll on mobile */
  .movie-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 0.6rem;
    padding-bottom: 0.5rem;
  }

  .movie-grid::-webkit-scrollbar {
    display: none;
  }

  .movie-grid .card {
    flex: 0 0 140px;
    scroll-snap-align: start;
  }
  
  /* Card - mobile adjustments */
  .card .title {
    font-size: 0.75rem;
  }
  
  .card .info {
    padding: 0.35rem 0.3rem;
  }
  
  .card .card-bottom-meta {
    font-size: 0.62rem;
    padding: 0.45rem 0.35rem 0.28rem;
  }

  .card .rating-badge {
    font-size: 0.6rem;
    padding: 0.1rem 0.3rem;
  }

  .card .eps-badge {
    font-size: 0.55rem;
    padding: 0.1rem 0.3rem;
  }
  
  /* Typography */
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.1rem; }
  h4 { font-size: 1rem; }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  
  /* Pagination */
  .pagination {
    gap: 0.25rem;
    flex-wrap: wrap;
  }
  
  .page-btn {
    min-width: 35px;
    height: 35px;
    font-size: 0.85rem;
  }
  
  /* Section Header */
  .section-header {
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin: 1rem 0 1rem 0 !important;
  }
  
  .section-header h2 {
    font-size: 1.1rem !important;
  }
  
  .view-options {
    width: auto !important;
  }
  
  .view-options .icon-btn {
    width: 30px;
    height: 30px;
  }
}

/* Mobile Large (iPhone Pro Max, etc) */
@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
  
  /* Movie Grid - smaller cards on small screens */
  .movie-grid .card {
    flex: 0 0 115px;
  }
  
  .card .info {
    padding: 0.3rem 0.25rem;
  }
  
  .card .title {
    font-size: 0.7rem;
    margin-bottom: 0.15rem;
  }
  
  .card .meta {
    font-size: 0.58rem;
  }

  .card .rating-badge {
    font-size: 0.55rem;
    padding: 0.08rem 0.25rem;
  }

  .card .eps-badge {
    font-size: 0.5rem;
    padding: 0.08rem 0.25rem;
  }

  .card .quality-badge {
    font-size: 0.5rem;
    padding: 0.08rem 0.25rem;
  }
  
  /* Typography smaller */
  h1 { font-size: 1.25rem; }
  h2 { font-size: 1.1rem; }
  
  /* Breadcrumb */
  .breadcrumb {
    font-size: 0.75rem;
    margin: 0.5rem 0;
  }
  
  /* Section Header */
  .section-header h2 {
    font-size: 1rem !important;
    padding-left: 0.5rem !important;
  }
  
  .section-header h2::before {
    width: 3px !important;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-main {
    padding: 1.5rem 0;
  }
}

/* Mobile Small */
@media (max-width: 360px) {
  .movie-grid .card {
    flex: 0 0 105px;
  }

  .card .card-bottom-meta {
    font-size: 0.58rem;
    padding: 0.38rem 0.28rem 0.2rem;
  }

  .hl-card__bottom-meta {
    font-size: 0.56rem;
    padding: 0.35rem 0.26rem 0.18rem;
  }
  
  .card .title {
    font-size: 0.65rem;
  }
  
  .brand-logo {
    display: none !important;
  }
}

/* ========== Print Styles ========== */
@media print {
  .site-header, .drawer, .search, .pagination, .site-footer {
    display: none;
  }
}

/* ========== Improved Card Design ========== */
.card {
  position: relative;
}

.card .card-image {
  position: relative;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.card .rating-badge {
  z-index: 2;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.2s ease;
}

.card .type-badge {
  z-index: 2;
  letter-spacing: 0.5px;
  transition: transform 0.2s ease;
}

.card:hover .rating-badge,
.card:hover .type-badge {
  transform: scale(1.05);
}

.card .meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.card .episode-badge {
  background: var(--glass-bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.card .year {
  color: var(--text-muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

/* Better poster image handling */
.card .poster {
  background: var(--bg-tertiary);
  min-height: 200px;
}

/* Mobile-specific card improvements */
@media (max-width: 768px) {
  .card .rating-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
  }
  
  .card .type-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
  }
  
  .card .poster {
    min-height: 250px;
  }
}

@media (max-width: 480px) {
  .card .rating-badge,
  .card .type-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.35rem;
  }
  
  .card .poster {
    min-height: 200px;
  }
}

/* ========== Breadcrumb ========== */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumb a {
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--accent) !important;
}

/* ========== Single Page (LK21 Style) ========== */

/* Breadcrumb */
.sp-breadcrumb {
  margin: 1rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

.sp-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.sp-breadcrumb__sep {
  margin: 0 0.5rem;
  opacity: 0.5;
}

.sp-breadcrumb__current {
  color: var(--text-primary);
}

/* Player Area */
.sp-player {
  margin-bottom: 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0b0b0d;
  border: 1px solid rgba(255,255,255,0.12);
}

.sp-player__layout {
  display: grid;
  /* Keep player main column aligned with .sp-main (content/promo column) below */
  grid-template-columns: minmax(0, 1fr) calc(320px + 1.5rem);
  align-items: stretch;
  min-height: 100%;
}

/* Fullscreen player focus mode: hide related/controls and fill viewport */
.sp-player:fullscreen,
.sp-player:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  margin: 0;
  border: none;
  border-radius: 0;
  background: #000;
}

.sp-player:fullscreen .sp-player__layout,
.sp-player:-webkit-full-screen .sp-player__layout {
  display: block;
  height: 100%;
  min-height: 100%;
}

.sp-player:fullscreen .sp-player__main,
.sp-player:-webkit-full-screen .sp-player__main {
  border-right: none;
  height: 100%;
}

.sp-player:fullscreen .sp-player__screen,
.sp-player:-webkit-full-screen .sp-player__screen {
  height: 100%;
  padding-bottom: 0;
}

.sp-player:fullscreen .sp-player__embed,
.sp-player:-webkit-full-screen .sp-player__embed,
.sp-player:fullscreen .sp-player__backdrop,
.sp-player:-webkit-full-screen .sp-player__backdrop,
.sp-player:fullscreen .sp-player__empty,
.sp-player:-webkit-full-screen .sp-player__empty {
  height: 100%;
}

.sp-player:fullscreen .sp-player-related,
.sp-player:-webkit-full-screen .sp-player-related,
.sp-player:fullscreen .sp-controls,
.sp-player:-webkit-full-screen .sp-controls,
.sp-player:fullscreen .sp-switcher,
.sp-player:-webkit-full-screen .sp-switcher,
.sp-player:fullscreen .sp-player-notice,
.sp-player:-webkit-full-screen .sp-player-notice {
  display: none !important;
}

.sp-player__main {
  min-width: 0;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.sp-player__layout > .sp-player__main:only-child {
  grid-column: 1 / -1;
  border-right: none;
}

.sp-player__screen {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  background: #000;
  overflow: hidden;
}

.sp-player__embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.sp-player__embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.sp-player__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-player__backdrop img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.sp-player__play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.3s;
}

.sp-player__play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.sp-player__play-btn span {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

.sp-player__empty {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.sp-player-notice {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.35);
  z-index: 6;
}

.sp-player-notice.is-hidden {
  display: none;
}

.sp-player-notice__card {
  width: min(92%, 560px);
  background: rgba(36, 38, 44, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  padding: 1rem 1.2rem;
  text-align: center;
}

.sp-player-notice__title {
  margin: 0 0 0.6rem 0;
  font-size: 1.85rem;
  font-weight: 800;
  color: #f6f6f6;
}

.sp-player-notice__text {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.84);
}

.sp-player-notice__sub {
  margin: 0.9rem 0 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffe043;
  letter-spacing: 0.02em;
}

.sp-player-notice__btn {
  margin-top: 1rem;
  background: var(--accent);
  color: #001a24;
  border: none;
  border-radius: 8px;
  padding: 0.56rem 1rem;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  transition: filter 0.2s;
}

.sp-player-notice__btn:hover {
  filter: brightness(1.07);
}

/* Player Controls Bar (LK21 style) */
.sp-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  min-height: 40px;
  background: #1c1f27;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.sp-controls__left,
.sp-controls__right {
  display: flex;
  align-items: center;
}

.sp-ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.9rem;
  min-height: 40px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  border-right: 1px solid rgba(255,255,255,0.05);
  white-space: nowrap;
}

.sp-controls__right .sp-ctrl-btn {
  border-right: none;
  border-left: 1px solid rgba(255,255,255,0.05);
}

.sp-ctrl-btn:hover {
  color: var(--accent);
  background: rgba(255,255,255,0.05);
}

.sp-ctrl-btn--active {
  color: var(--accent);
}

.sp-ctrl-btn svg {
  opacity: 0.6;
  flex-shrink: 0;
}

.sp-ctrl-btn:hover svg,
.sp-ctrl-btn--active svg {
  opacity: 1;
}

/* Player Switcher (LK21 style) */
.sp-switcher {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: #1c1f27;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 0;
  position: relative;
}

.sp-switcher__desktop {
  display: flex;
  align-items: center;
  width: 100%;
}

.sp-switcher__label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.03em;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.sp-switcher__label svg {
  opacity: 0.7;
}

.sp-switcher__tabs {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 0.5rem;
}

.sp-sw-tab {
  display: inline-block;
  padding: 0.6rem 0.8rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
  letter-spacing: 0.03em;
}

.sp-sw-tab:hover {
  color: var(--text-primary);
}

.sp-sw-tab--active {
  color: #e4b451;
}

.sp-switcher__mobile {
  display: none;
  width: 100%;
}

.sp-switcher__mobile-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  background: #171b26;
  border: 1px solid rgba(255,255,255,0.14);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.sp-switcher__mobile-toggle-main {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.sp-switcher__mobile-toggle-icon {
  opacity: 0.8;
  flex-shrink: 0;
}

.sp-switcher__mobile-toggle-text {
  color: #ffffff;
}

.sp-switcher__mobile-toggle-current {
  color: #e4b451;
}

.sp-switcher__mobile-toggle-caret {
  opacity: 0.8;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.sp-switcher__mobile.is-open .sp-switcher__mobile-toggle-caret {
  transform: rotate(180deg);
}

.sp-switcher__mobile-menu {
  margin-top: 2px;
  background: #f4f4f4;
  border: 1px solid rgba(0, 0, 0, 0.22);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
}

.sp-switcher__mobile-menu[hidden] {
  display: none;
}

.sp-switcher__mobile-item {
  width: 100%;
  display: block;
  text-align: left;
  padding: 0.6rem 0.68rem;
  background: transparent;
  border: 0;
  color: #1f1f1f;
  font-family: inherit;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.sp-switcher__mobile-item + .sp-switcher__mobile-item {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.sp-switcher__mobile-item:hover {
  background: rgba(43, 110, 199, 0.12);
}

.sp-switcher__mobile-item.is-active {
  background: #2b6ec7;
  color: #ffffff;
}

.sp-player-related {
  display: flex;
  flex-direction: column;
  background: #222327;
  min-height: 0;
}

.sp-player-related__title {
  margin: 0;
  padding: 0.95rem 1rem 0.8rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #f4f4f4;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sp-player-related__list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.35rem 0;
}

.sp-player-related__list::-webkit-scrollbar {
  width: 6px;
}

.sp-player-related__list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.18);
  border-radius: 6px;
}

.sp-player-related-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.52rem 1rem;
  text-decoration: none;
  color: #f1f1f1;
  transition: background 0.2s ease;
}

.sp-player-related-item:hover {
  background: rgba(255,255,255,0.08);
}

.sp-player-related-item__poster {
  width: 102px;
  height: 58px;
  border-radius: 4px;
  overflow: hidden;
  background: #131313;
  flex-shrink: 0;
}

.sp-player-related-item__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

.sp-player-related-item__noimg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #707070;
  font-size: 0.65rem;
}

.sp-player-related-item__info {
  min-width: 0;
}

.sp-player-related-item__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.25;
  color: #f0f0f0;
}

.sp-player-related-item__year {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: #9b9b9b;
}

.sp-sw-sep {
  color: rgba(255,255,255,0.15);
  font-size: 0.75rem;
  user-select: none;
}

/* Cinema Mode */
.sp-cinema-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 999;
  cursor: pointer;
}

.sp-cinema-overlay.active {
  display: block;
}

.sp-player--cinema {
  position: relative;
  z-index: 1000;
  max-width: 1000px;
  margin: 0 auto;
  box-shadow: 0 0 60px rgba(0,0,0,0.8);
}

/* Report Modal */
.sp-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  align-items: center;
  justify-content: center;
}

.sp-modal.active {
  display: flex;
}

.sp-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}

.sp-modal__content {
  position: relative;
  background: #1a1e2e;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 440px;
  overflow: hidden;
  animation: modalSlideUp 0.3s ease;
}

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

.sp-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--glass-border);
}

.sp-modal__header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.sp-modal__close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.2s;
}

.sp-modal__close:hover {
  color: var(--text-primary);
}

.sp-modal__body {
  padding: 1.25rem;
}

.sp-modal__body p {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.sp-report-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.sp-report-opt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.sp-report-opt:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}

.sp-report-opt input[type="radio"] {
  accent-color: var(--accent);
}

.sp-report-msg {
  width: 100%;
  padding: 0.7rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: inherit;
  resize: vertical;
  margin-bottom: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.sp-report-msg:focus {
  border-color: var(--accent);
}

.sp-report-submit {
  width: 100%;
  justify-content: center;
}

/* ========== Ad Space (LK21 style) ========== */
.sp-adspace {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.sp-adspace__label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #e8a020;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.sp-adspace__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 0.9rem;
  width: 100%;
  align-items: start;
  justify-items: stretch;
}

.sp-adspace__grid--count-1 {
  grid-template-columns: minmax(220px, 360px);
  justify-content: center;
}

.sp-adspace__grid--count-2 {
  grid-template-columns: repeat(2, minmax(220px, 320px));
  justify-content: center;
}

.sp-adspace__grid--count-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sp-ad-slot {
  overflow: hidden;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-self: start;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.sp-ad-slot > a {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-secondary);
}

/* Force unknown wrappers from ad markup to fill each slot column */
.sp-ad-slot > a > * {
  width: 100%;
  min-width: 0;
}

/* Image-mode: direct child img or img inside anchor */
.sp-ad-slot > a > img,
.sp-ad-slot > img,
.sp-ad-slot img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-sm);
  transition: transform 0.3s;
}

.sp-ad-slot a:hover img,
.sp-ad-slot img:hover {
  transform: scale(1.03);
}

/* ---- Ad Code mode container ---- */
.sp-ad-slot__code {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: block;
  overflow: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
  text-align: center;
}

/* Force ALL nested elements inside ad_code to stay within column */
.sp-ad-slot__code * {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.sp-ad-slot__code > * {
  width: 100% !important;
  min-width: 0;
}

.sp-ad-slot__code a {
  display: block !important;
  width: 100% !important;
  color: var(--text-primary);
  text-decoration: none;
}

.sp-ad-slot__code--raw br {
  display: none;
}

.sp-ad-slot__code--raw [width],
.sp-ad-slot__code--raw [style*="width"] {
  width: 100% !important;
  max-width: 100% !important;
}

.sp-ad-slot__code img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  display: block;
  margin: 0 auto 0.5rem;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.sp-ad-slot__code iframe {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 100px;
  display: block;
  border: 0;
  border-radius: var(--radius-sm);
}

.sp-ad-slot__code div,
.sp-ad-slot__code p,
.sp-ad-slot__code span,
.sp-ad-slot__code a {
  max-width: 100% !important;
  overflow-wrap: break-word;
  word-break: break-word;
  text-align: center;
  line-height: 1.4;
}

.sp-ad-slot__caption {
  display: block;
  width: 100%;
  font-size: 0.86rem;
  color: var(--text-primary);
  margin-top: 0;
  line-height: 1.4;
  text-align: center;
  word-break: break-word;
  overflow-wrap: break-word;
  padding: 0 0.25rem;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.65em;
  max-height: 2.65em;
}

.sp-ad-slot__placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ========== Follow Us (LK21 style) ========== */
.sp-follow {
  display: flex;
  gap: 0.6rem;
  padding: 1rem 1.25rem;
  flex-wrap: wrap;
}

.sp-follow__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  color: #fff;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 0;
}

.sp-follow__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.sp-follow__btn--ig {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.sp-follow__btn--fb {
  background: #1877f2;
}

.sp-follow__btn--tw {
  background: #1da1f2;
}

.sp-follow__btn--tg {
  background: #0088cc;
}

.sp-follow__btn--tiktok {
  background: #000;
}

.sp-follow__btn--yt {
  background: #ff0000;
}

/* Main Layout: Content + Sidebar */
.sp-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Main Content */
.sp-main {
  min-width: 0;
}

/* Movie Info Card */
.sp-info {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sp-info__header {
  display: flex;
  gap: 1.25rem;
}

.sp-info__poster {
  flex-shrink: 0;
  width: 130px;
}

.sp-info__poster img {
  width: 100%;
  border-radius: var(--radius-md);
  display: block;
}

.sp-info__details {
  flex: 1;
  min-width: 0;
}

.sp-info__title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

/* Meta Badges */
.sp-info__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.sp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255,255,255,0.08);
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.1);
  letter-spacing: 0.02em;
}

.sp-badge--rating {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
  border-color: rgba(255, 193, 7, 0.3);
}

.sp-badge--quality {
  background: rgba(0, 217, 255, 0.15);
  color: var(--accent);
  border-color: rgba(0, 217, 255, 0.3);
}

.sp-badge--quality.quality-low {
  background: rgba(229, 57, 53, 0.16);
  color: #ff6b6b;
  border-color: rgba(229, 57, 53, 0.4);
}

.sp-badge--quality.quality-mid {
  background: rgba(245, 158, 11, 0.16);
  color: #f7c14d;
  border-color: rgba(245, 158, 11, 0.4);
}

.sp-badge--type {
  background: rgba(233, 30, 99, 0.15);
  color: #e91e63;
  border-color: rgba(233, 30, 99, 0.3);
}

.sp-badge--eps {
  background: rgba(200, 230, 0, 0.15);
  color: #c8e600;
  border-color: rgba(200, 230, 0, 0.3);
}

/* Genre Pills */
.sp-info__genres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.sp-genre-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  background: rgba(0, 217, 255, 0.08);
  border: 1px solid rgba(0, 217, 255, 0.2);
  text-decoration: none;
  transition: all 0.2s;
}

.sp-genre-pill:hover {
  background: rgba(0, 217, 255, 0.2);
  color: var(--accent);
}

/* Action Buttons */
.sp-info__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--glass-border);
}

.sp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.sp-btn--primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.sp-btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 20px var(--accent-glow);
}

.sp-btn--outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--glass-border);
}

.sp-btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Section */
.sp-section {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sp-section__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--glass-border);
}

/* Synopsis */
.sp-synopsis__text {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.92rem;
  transition: max-height 0.4s ease;
}

.sp-synopsis--collapsed {
  max-height: 120px;
  overflow: hidden;
  position: relative;
}

.sp-synopsis--collapsed::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(transparent, var(--bg-primary));
  pointer-events: none;
}

.sp-synopsis__toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s;
}

.sp-synopsis__toggle:hover {
  opacity: 0.8;
}

/* Detail Table */
.sp-detail-table {
  display: flex;
  flex-direction: column;
}

.sp-detail-row {
  display: flex;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.88rem;
}

.sp-detail-row:last-child {
  border-bottom: none;
}

.sp-detail-label {
  flex-shrink: 0;
  width: 110px;
  color: var(--text-muted);
  font-weight: 500;
}

.sp-detail-value {
  color: var(--text-primary);
  flex: 1;
}

/* Download Section */
.sp-dl-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.sp-dl-toggle:hover {
  border-color: var(--accent);
  background: rgba(255,255,255,0.06);
}

.sp-dl-toggle__icon {
  color: var(--accent);
  opacity: 0.9;
  transition: transform 0.2s ease;
}

.sp-dl-toggle[aria-expanded="true"] .sp-dl-toggle__icon {
  transform: rotate(180deg);
}

.sp-dl-content[hidden] {
  display: none !important;
}

.sp-dl-group {
  margin-bottom: 1rem;
}

.sp-dl-group__header {
  margin-bottom: 0.6rem;
}

.sp-dl-group__quality {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: var(--accent);
  color: #000;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

.sp-dl-group__links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sp-dl-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.sp-dl-link:hover,
.sp-dl-link.sp-dl-link--hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--accent);
  transform: translateX(4px);
  box-shadow: 0 0 12px var(--accent-glow);
}

.sp-dl-link__label {
  font-weight: 500;
}

.sp-dl-link svg {
  color: var(--accent);
  opacity: 0.6;
  flex-shrink: 0;
}

.sp-dl-link:hover svg {
  opacity: 1;
}

.sp-dl-notice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  background: rgba(255, 193, 7, 0.08);
  border: 1px solid rgba(255, 193, 7, 0.15);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: #ffc107;
}

/* Comments */
.sp-comments {
  overflow: hidden;
}

/* ========== Sidebar ========== */
.sp-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sp-sidebar__section {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.sp-sidebar__title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 1rem 1.25rem;
  margin: 0;
  color: var(--text-primary);
  border-bottom: 2px solid var(--accent);
  background: rgba(0, 217, 255, 0.05);
}

.sp-sidebar__list {
  padding: 0.5rem 0;
}

/* Related Item */
.sp-related-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.25rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: background 0.2s;
}

.sp-related-item:hover {
  background: rgba(255,255,255,0.05);
}

.sp-related-item__num {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
  min-width: 1.5rem;
  text-align: center;
  opacity: 0.7;
}

.sp-related-item__poster {
  width: 48px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
}

.sp-related-item__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-related-item__info {
  flex: 1;
  min-width: 0;
}

.sp-related-item__title {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp-related-item__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sp-related-item__rating {
  color: #ffc107;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========== Section Header ========== */
.section-header {
  animation: slideDown 0.5s ease;
}

.section-header h2 {
  position: relative;
  padding-left: 1rem;
}

.section-header h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: var(--accent);
  border-radius: 2px;
}

.view-options .icon-btn {
  width: 32px;
  height: 32px;
  padding: 0.5rem;
}

.view-options .icon-btn svg {
  width: 16px;
  height: 16px;
}

/* ========== Improved Animations ========== */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: cardAppear 0.5s ease backwards;
}

.card:nth-child(1) { animation-delay: 0s; }
.card:nth-child(2) { animation-delay: 0.05s; }
.card:nth-child(3) { animation-delay: 0.1s; }
.card:nth-child(4) { animation-delay: 0.15s; }
.card:nth-child(5) { animation-delay: 0.2s; }
.card:nth-child(6) { animation-delay: 0.25s; }

/* ========== Enhanced Responsive ========== */

/* Tablet: Sidebar stacks below */
@media (max-width: 1024px) {
  .sp-layout {
    grid-template-columns: 1fr;
  }
  
  .sp-sidebar {
    flex-direction: row;
    gap: 1rem;
  }
  
  .sp-sidebar__section {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .sp-player__layout {
    grid-template-columns: 1fr;
  }

  .sp-player__main {
    border-right: none;
  }

  .sp-player-related {
    display: none;
  }

  .section-header {
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.5rem !important;
  }
  
  .view-options {
    width: auto !important;
    justify-content: flex-end;
  }
  
  .sp-breadcrumb {
    font-size: 0.8rem;
    flex-wrap: wrap;
  }
  
  /* Single Page Responsive */
  .sp-layout {
    grid-template-columns: 1fr;
  }
  
  .sp-info__header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .sp-info__poster {
    width: 120px;
  }
  
  .sp-info__title {
    font-size: 1.25rem;
  }
  
  .sp-info__badges {
    justify-content: center;
  }
  
  .sp-info__genres {
    justify-content: center;
  }
  
  .sp-info__actions {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .sp-section {
    padding: 1rem;
  }
  
  .sp-detail-label {
    width: 90px;
    font-size: 0.82rem;
  }
  
  .sp-detail-value {
    font-size: 0.82rem;
  }
  
  .sp-action-btn {
    padding: 0.5rem 0.7rem;
    font-size: 0.75rem;
  }
  
  .sp-ctrl-btn {
    padding: 0.45rem 0.6rem;
    font-size: 0.7rem;
    gap: 0.3rem;
  }
  
  .sp-ctrl-btn svg {
    width: 12px;
    height: 12px;
  }

  .sp-player-notice {
    padding: 0.65rem;
  }

  .sp-player-notice__card {
    width: 100%;
    padding: 0.75rem 0.8rem;
  }

  .sp-player-notice__title {
    font-size: 1.15rem;
    margin-bottom: 0.45rem;
  }

  .sp-player-notice__text {
    font-size: 0.9rem;
  }

  .sp-player-notice__sub {
    font-size: 0.78rem;
    margin-top: 0.65rem;
  }

  .sp-player-notice__btn {
    margin-top: 0.75rem;
    font-size: 0.76rem;
    padding: 0.5rem 0.8rem;
  }
  
  .sp-switcher {
    padding: 0.48rem 0.52rem;
  }

  .sp-switcher__desktop {
    display: none;
  }

  .sp-switcher__mobile {
    display: block;
  }

  .sp-switcher__mobile-toggle {
    font-size: 0.76rem;
    padding: 0.5rem 0.58rem;
  }

  .sp-switcher__mobile-item {
    font-size: 0.78rem;
    padding: 0.52rem 0.6rem;
  }
  
  .sp-dl-link {
    padding: 0.65rem 0.8rem;
    font-size: 0.82rem;
  }

  .sp-dl-toggle {
    padding: 0.65rem 0.8rem;
    font-size: 0.82rem;
  }
  
  .sp-sidebar {
    flex-direction: column;
    gap: 1rem;
  }
  
  .sp-controls {
    flex-wrap: wrap;
  }
  
  .sp-adspace__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
  
  .sp-follow__btn {
    width: 42px;
    height: 42px;
  }
  
  /* Archive page header */
  .page-header.glass {
    padding: 1.5rem !important;
    margin: 1rem 0 !important;
  }
  
  .page-header h1 {
    font-size: 1.5rem !important;
  }
}

/* Mobile Landscape Optimization */
@media (max-width: 896px) and (orientation: landscape) {
  .nav-main {
    padding: 0.375rem 0;
  }
  
  .movie-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
  }
  
  .card .title {
    font-size: 0.75rem;
  }
}

/* Very Small Devices */
@media (max-width: 360px) {
  .section-header h2 {
    font-size: 0.95rem !important;
  }
  
  .sp-info__poster {
    width: 100px;
  }
  
  .sp-info__title {
    font-size: 1.1rem;
  }
  
  .sp-badge {
    font-size: 0.68rem;
    padding: 0.2rem 0.45rem;
  }
  
  .sp-btn {
    padding: 0.55rem 1rem;
    font-size: 0.78rem;
  }
  
  .sp-player__actions {
    flex-wrap: wrap;
  }
}

/* ========== Announcement Banner ========== */
.zmx-announcement {
  background: var(--ann-bg, #d4edda);
  color: var(--ann-color, #155724);
  padding: 0;
  margin: 1.5rem 0 0;
  border-radius: var(--radius-md, 8px);
  position: relative;
}

.zmx-announcement__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.zmx-announcement__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(0,0,0,0.08);
  border-radius: 50%;
  animation: bellRing 2s ease-in-out infinite;
}

@keyframes bellRing {
  0%, 80%, 100% { transform: rotate(0deg); }
  85% { transform: rotate(12deg); }
  90% { transform: rotate(-12deg); }
  95% { transform: rotate(6deg); }
}

.zmx-announcement__text {
  flex: 1;
}

.zmx-announcement__text a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.zmx-announcement__text a:hover {
  opacity: 0.8;
}

.zmx-announcement__close {
  flex-shrink: 0;
  background: rgba(0,0,0,0.1);
  border: none;
  color: inherit;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.zmx-announcement__close:hover {
  background: rgba(0,0,0,0.2);
}

/* ========== Filter Tabs ========== */
.filter-tabs {
  margin: 1.5rem 0 0.5rem;
  position: sticky;
  top: 60px;
  z-index: 50;
  background: var(--bg-primary, #0f1923);
  padding-top: 0.25rem;
}

.filter-tabs__track {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--glass-border, rgba(255,255,255,0.08));
}

.filter-tabs__track::-webkit-scrollbar {
  display: none;
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary, #999);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
  margin-bottom: -2px;
  text-transform: uppercase;
  position: relative;
}

.filter-tab svg {
  opacity: 0.6;
  transition: opacity 0.25s;
}

.filter-tab:hover {
  color: var(--text-primary, #fff);
  background: rgba(0, 217, 255, 0.05);
}

.filter-tab:hover svg {
  opacity: 1;
}

.filter-tab.active {
  color: var(--accent, #00d9ff);
  border-bottom-color: var(--accent, #00d9ff);
}

.filter-tab.active svg {
  opacity: 1;
}

.filter-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: var(--accent, #00d9ff);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-glow, rgba(0, 217, 255, 0.4));
}

/* ========== Tab Content ========== */
.tab-content {
  display: block;
}

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

.tab-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary, #999);
  font-size: 0.95rem;
}

/* ========== Filter Tabs Responsive ========== */
@media (max-width: 768px) {
  .filter-tabs {
    margin: 1rem 0 0.25rem;
  }
  
  .filter-tab {
    padding: 8px 14px;
    font-size: 0.75rem;
    gap: 4px;
  }
  
  .filter-tab svg {
    width: 12px;
    height: 12px;
  }
  
  .zmx-announcement__inner {
    font-size: 0.82rem;
    gap: 8px;
    padding: 10px 0;
  }
  
  .zmx-announcement__icon {
    width: 28px;
    height: 28px;
  }
  
  .zmx-announcement__icon svg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 360px) {
  .filter-tab {
    padding: 6px 10px;
    font-size: 0.7rem;
  }
  
  .filter-tab svg {
    display: none;
  }
}

/* ========== Petunjuk Umum Section ========== */
.sp-section--petunjuk {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

.sp-petunjuk-toggle {
  padding: 0.85rem 1.25rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: background 0.2s;
}

.sp-petunjuk-toggle:hover {
  background: rgba(255,255,255,0.06);
}

.sp-petunjuk-content {
  margin-top: 0.5rem;
  padding: 1rem 1.25rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.sp-petunjuk-content ul {
  margin: 0;
  padding-left: 1.25rem;
}

.sp-petunjuk-content ol {
  margin: 0 0 0.9rem;
  padding-left: 1.25rem;
}

.sp-petunjuk-content p {
  margin: 0 0 0.6rem;
  color: var(--text-primary);
}

.sp-petunjuk-content li {
  margin-bottom: 0.45rem;
}

.sp-petunjuk-content strong {
  color: var(--text-primary);
}

/* ========== Emoji Reactions ========== */
.sp-reactions {
  text-align: center;
}

.sp-reactions__list {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.sp-reaction {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  cursor: pointer;
  transition: all 0.2s;
  min-width: 50px;
}

.sp-reaction:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: rgba(255,255,255,0.06);
}

.sp-reaction.active {
  border-color: var(--accent);
  background: rgba(232, 160, 32, 0.1);
}

.sp-reaction__emoji {
  font-size: 1.8rem;
  line-height: 1;
}

.sp-reaction__count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ========== Related Movies Card Grid (Mobile) ========== */
.sp-related-mobile {
  display: none;
}

.sp-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.sp-rcard {
  display: block;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.2s;
}

.sp-rcard:hover {
  transform: translateY(-3px);
}

.sp-rcard__poster {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-secondary);
}

.sp-rcard__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sp-rcard__noimg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1e2e;
  color: #555;
  font-size: 0.7rem;
}

.sp-rcard__badge {
  position: absolute;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.15rem 0.35rem;
  border-radius: 3px;
  line-height: 1;
}

.sp-rcard__badge--quality {
  top: 4px;
  left: 4px;
  background: var(--accent);
  color: #000;
}

.sp-rcard__badge--quality.quality-low {
  background: #e53935;
  color: #fff;
}

.sp-rcard__badge--quality.quality-mid {
  background: #f59e0b;
  color: #1f2937;
}

.sp-rcard__badge--rating {
  top: 4px;
  right: 4px;
  background: rgba(0,0,0,0.7);
  color: #ffd700;
}

.sp-rcard__badge--duration {
  bottom: 4px;
  right: 4px;
  background: rgba(0,0,0,0.7);
  color: #fff;
}

.sp-rcard__info {
  padding: 0.4rem 0.1rem;
}

.sp-rcard__title {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sp-rcard__genres {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ========== Mobile Bottom Navigation ========== */
.sp-mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  z-index: 1000;
  padding: 0.4rem 0;
  padding-bottom: env(safe-area-inset-bottom, 0.4rem);
}

.sp-mobile-nav__list {
  display: flex;
  justify-content: space-around;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sp-mobile-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.3rem 0.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.6rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
}

.sp-mobile-nav__item.active,
.sp-mobile-nav__item:hover {
  color: var(--accent);
}

.sp-mobile-nav__item svg {
  width: 20px;
  height: 20px;
}

/* ========== Mobile Responsive: Show/Hide Elements ========== */
@media (max-width: 768px) {
  /* Hide on mobile */
  .sp-breadcrumb,
  .sp-section--info,
  .sp-sidebar {
    display: none !important;
  }

  /* Show related mobile card grid */
  .sp-related-mobile {
    display: block !important;
  }

  /* Show mobile bottom nav */
  .sp-mobile-nav {
    display: block;
  }

  /* Add bottom padding so content doesn't hide behind nav */
  .single-page {
    padding-bottom: 4rem;
  }

  /* Ad grid: keep clean 2-column layout on mobile */
  .sp-adspace__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    overflow: visible;
    padding-bottom: 0;
  }

  .sp-ad-slot {
    min-width: 0;
  }

  /* Reactions responsive */
  .sp-reaction {
    min-width: 45px;
    padding: 0.5rem 0.6rem;
  }

  .sp-reaction__emoji {
    font-size: 1.5rem;
  }

  /* Related: horizontal scroll row on mobile */
  .sp-related-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.55rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.35rem;
    scrollbar-width: none;
  }

  .sp-related-grid::-webkit-scrollbar {
    display: none;
  }

  .sp-related-grid .sp-rcard {
    flex: 0 0 120px;
    min-width: 120px;
    scroll-snap-align: start;
  }
}

@media (max-width: 480px) {
  .sp-related-grid {
    gap: 0.45rem;
  }

  .sp-related-grid .sp-rcard {
    flex-basis: 108px;
    min-width: 108px;
  }
  
  .sp-rcard__title {
    font-size: 0.7rem;
  }

  .sp-reaction {
    min-width: 40px;
    padding: 0.4rem 0.5rem;
  }

  .sp-reaction__emoji {
    font-size: 1.3rem;
  }
}
