/* ==========================================================================
   LUSTHUB V2.2 — Pure Cinema Obsidian Design System (Dark Mode Only)
   Unified responsive stylesheet crafted for PC, Tablet, and Phone.
   Palette Lock: Obsidian #09090B | Surface #111115 | Electric Amber #F59E0B
   ========================================================================== */

:root {
  --bg: #09090b;
  --bg-elev: #111115;
  --bg-elev-2: #18181e;
  --bg-glass: rgba(9, 9, 11, 0.9);
  --text: #f4f4f6;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --accent: #f59e0b;
  --accent-hover: #fbbf24;
  --accent-soft: rgba(245, 158, 11, 0.12);
  --accent-border: rgba(245, 158, 11, 0.32);
  --accent-ink: #09090b;
  --danger: #ef4444;
  --radius-card: 10px;
  --radius-ctrl: 8px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 14px 36px rgba(0, 0, 0, 0.6);
  --header-h: 62px;
  --bottom-nav-h: 60px;
  --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

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

html {
  color-scheme: dark;
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font: inherit;
  color: inherit;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.lh-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   HEADER (Crisp sticky top bar — PC, Tablet & Phone tuned)
   ========================================================================== */
.lh-header {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--header-h);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.lh-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lh-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}

.lh-brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--accent);
  color: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lh-brand-accent {
  color: var(--accent);
}

.lh-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.lh-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: var(--radius-ctrl);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.lh-nav-link:hover,
.lh-nav-link.is-active {
  color: var(--text);
  background: var(--bg-elev-2);
}

.lh-nav-link.is-active {
  color: var(--accent);
}

.lh-badge-count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  display: none;
}
.lh-badge-count.has-items {
  display: inline-block;
}

/* Search Command Bar */
.lh-search-wrap {
  position: relative;
  flex: 1 1 240px;
  max-width: 420px;
  min-width: 0;
}

.lh-search-form {
  display: flex;
  align-items: center;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-ctrl);
  padding: 0 10px;
  height: 38px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lh-search-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.lh-search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
  display: inline-flex;
}

.lh-search-input {
  width: 100%;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0 8px;
  font-size: 0.875rem;
  outline: none;
}

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

.lh-search-kbd {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  flex-shrink: 0;
}

.lh-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: none;
  z-index: 950;
  max-height: 380px;
  overflow-y: auto;
}

.lh-search-dropdown.is-open {
  display: block;
}

.lh-suggest-group-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 6px 10px 4px;
}

.lh-suggest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 0.86rem;
  color: var(--text-secondary);
  transition: background 0.12s ease, color 0.12s ease;
}

.lh-suggest-item span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lh-suggest-item:hover {
  background: var(--bg-elev-2);
  color: var(--text);
}

.lh-suggest-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  flex-shrink: 0;
}

/* Header Controls (Language Switcher) */
.lh-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.lh-lang-dropdown {
  position: relative;
}

.lh-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 11px;
  border-radius: var(--radius-ctrl);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.lh-icon-btn:hover {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--bg-elev-2);
}

.lh-lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 176px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: none;
  z-index: 950;
}

.lh-lang-menu.is-open {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lh-lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  transition: background 0.12s ease, color 0.12s ease;
}

.lh-lang-option:hover,
.lh-lang-option.is-active {
  background: var(--bg-elev-2);
  color: var(--text);
}

.lh-lang-option.is-active {
  color: var(--accent);
  font-weight: 700;
}

.lh-lang-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   ADSTERRA MONETIZATION SLOTS (Zero-CLS Reserved Heights & High Viewability)
   ========================================================================== */
.lh-ad-band {
  width: 100%;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.lh-ad-slot-header {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 90px;
  width: 100%;
  overflow: hidden;
}

.lh-ad-slot-content {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 250px;
  width: 100%;
  margin: 22px 0;
  overflow: hidden;
}

.lh-ad-slot-player-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 90px;
  width: 100%;
  margin: 12px 0;
  overflow: hidden;
}

.lh-ad-slot-player-side {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 250px;
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-card);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  overflow: hidden;
}

/* ==========================================================================
   MAIN CONTENT & HERO TOP BAR
   ========================================================================== */
.lh-main {
  padding: 22px 0 52px;
}

.lh-hero-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.lh-page-title {
  font-family: var(--font-display);
  font-size: clamp(1.38rem, 2.4vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: var(--text);
  overflow-wrap: anywhere;
}

.lh-page-title span {
  color: var(--accent);
}

.lh-page-subtitle {
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 68ch;
}

.lh-stats-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lh-stat-chip {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-secondary);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ==========================================================================
   CATEGORY RAIL & QUICK FILTER CHIPS
   ========================================================================== */
.lh-rail-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 12px;
  margin-bottom: 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.lh-rail-scroll::-webkit-scrollbar { display: none; }

.lh-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.lh-cat-pill:hover {
  background: var(--bg-elev-2);
  border-color: var(--border-strong);
  color: var(--text);
}

.lh-cat-pill.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

.lh-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.lh-filter-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 100%;
}

.lh-filter-btn {
  padding: 7px 13px;
  border-radius: var(--radius-ctrl);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.lh-filter-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.lh-filter-btn.is-active {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent);
}

.lh-select {
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-ctrl);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.lh-select option {
  background: var(--bg-elev);
  color: var(--text);
}

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

/* ==========================================================================
   VIDEO CARD GRID (16:9 Locked Aspect Ratio, Zero-CLS, Cinema Hover)
   ========================================================================== */
.lh-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 16px;
}

.lh-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-card);
  background: transparent;
  transition: transform 0.18s ease;
  position: relative;
  min-width: 0;
}

.lh-card:hover {
  transform: translateY(-2px);
}

.lh-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--border);
}

.lh-thumb-wrap a {
  display: block;
  width: 100%;
  height: 100%;
}

.lh-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.25s ease;
}

.lh-card:hover .lh-thumb-wrap {
  border-color: var(--accent-border);
}

.lh-card:hover .lh-thumb-wrap img {
  transform: scale(1.04);
}

.lh-thumb-badges-top {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  gap: 5px;
  z-index: 2;
  pointer-events: none;
}

.lh-badge-hd {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(9, 9, 11, 0.84);
  color: var(--accent);
  border: 1px solid rgba(245, 158, 11, 0.35);
  letter-spacing: 0.03em;
}

.lh-badge-dur {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(9, 9, 11, 0.86);
  color: #fff;
  pointer-events: none;
}

.lh-save-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(9, 9, 11, 0.76);
  color: #e4e4e7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.lh-card:hover .lh-save-btn,
.lh-save-btn.is-saved,
.lh-save-btn:focus-visible {
  opacity: 1;
}

.lh-save-btn.is-saved {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.lh-card-body {
  padding: 10px 2px 2px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.lh-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}

.lh-card:hover .lh-card-title {
  color: var(--accent);
}

.lh-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
}

.lh-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.lh-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.lh-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-ctrl);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lh-page-btn:hover {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--bg-elev-2);
}

.lh-page-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

/* ==========================================================================
   SEO DIRECTORY, EDITORIAL & FAQ SECTIONS (Clean Obsidian Surface Cards)
   ========================================================================== */
.lh-section-card {
  margin-top: 30px;
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--bg-elev);
  border: 1px solid var(--border);
}

.lh-section-card h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.lh-section-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 12px;
}

.lh-dir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.lh-dir-group h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.lh-dir-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lh-dir-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.lh-dir-pill:hover {
  border-color: var(--accent-border);
  color: var(--accent);
  background: var(--accent-soft);
}

.lh-faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.lh-faq-item {
  padding: 16px 18px;
  border-radius: var(--radius-ctrl);
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
}

.lh-faq-item h3,
.lh-faq-item strong {
  display: block;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.35;
}

.lh-faq-item p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   WATCH PAGE CINEMA LAYOUT (PC 2-Column Sticky, Tablet 2-Col Up Next, Phone)
   ========================================================================== */
.lh-watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.lh-watch-layout.is-theater {
  grid-template-columns: minmax(0, 1fr);
}

.lh-watch-layout.is-theater .lh-watch-sidebar {
  position: static;
}

.lh-watch-layout.is-theater .lh-upnext-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.lh-watch-primary {
  min-width: 0;
}

.lh-player-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.lh-player-shell iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.lh-player-facade {
  position: absolute;
  inset: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lh-player-facade img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.78);
  transition: transform 0.3s ease, filter 0.25s ease;
}

.lh-player-facade:hover img {
  filter: brightness(0.9);
  transform: scale(1.02);
}

.lh-play-circle {
  position: relative;
  z-index: 2;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 0 6px rgba(245, 158, 11, 0.22);
  transition: transform 0.2s ease, background 0.2s ease;
}

.lh-player-facade:hover .lh-play-circle {
  transform: scale(1.08);
  background: var(--accent-hover);
}

.lh-watch-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.lh-action-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border-radius: var(--radius-ctrl);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.lh-btn:hover {
  border-color: var(--border-strong);
  background: var(--bg-elev-2);
}

.lh-btn:active {
  transform: scale(0.98);
}

.lh-btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

.lh-btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--accent-ink);
}

.lh-btn.is-saved {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent);
}

.lh-watch-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
  min-width: 0;
}

.lh-upnext-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.lh-upnext-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.lh-upnext-card:hover .lh-upnext-title {
  color: var(--accent);
}

.lh-upnext-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 7px;
  overflow: hidden;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
}

.lh-upnext-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lh-upnext-info {
  min-width: 0;
}

.lh-upnext-title {
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.32;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}

.lh-upnext-views {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.lh-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.lh-breadcrumb a {
  color: var(--text-secondary);
}

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

.lh-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 14px 0 18px;
}

.lh-spec-tile {
  padding: 12px 14px;
  border-radius: var(--radius-ctrl);
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  min-width: 0;
}

.lh-spec-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}

.lh-spec-value {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
  overflow-wrap: anywhere;
}

/* ==========================================================================
   DISCOVERY VISUAL CATEGORY TILES & SUB-NICHE SILO BAR
   ========================================================================== */
.lh-subniche-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  margin-bottom: 18px;
  border-radius: var(--radius-card);
  background: var(--bg-elev);
  border: 1px solid var(--border);
}

.lh-subniche-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.lh-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.lh-cat-tile {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease;
}

.lh-cat-tile:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.lh-cat-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.lh-cat-tile:hover img {
  transform: scale(1.04);
}

.lh-cat-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 9, 11, 0.05) 30%, rgba(9, 9, 11, 0.92) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
}

.lh-cat-tile-title {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 700;
  color: #fafafa;
  letter-spacing: -0.01em;
  line-height: 1.2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lh-cat-tile-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.22);
  color: var(--accent);
  border: 1px solid rgba(245, 158, 11, 0.4);
  flex-shrink: 0;
}

/* ==========================================================================
   FOOTER & MOBILE/TABLET BOTTOM NAV
   ========================================================================== */
.lh-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  padding: 34px 0 42px;
  margin-top: 44px;
}

.lh-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.lh-footer-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.lh-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

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

.lh-lang-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.lh-lang-pill {
  padding: 5px 9px;
  border-radius: 6px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  transition: all 0.15s ease;
}

.lh-lang-pill:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.lh-lang-pill.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.lh-footer-regional {
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.lh-footer-regional a {
  color: var(--text-muted);
}
.lh-footer-regional a:hover {
  color: var(--accent);
}

.lh-footer-copy {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  gap: 10px 16px;
  flex-wrap: wrap;
}

/* Mobile & Tablet Bottom Navigation Bar (<= 1024px) */
.lh-mobile-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 880;
  height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--border);
}

.lh-mobile-nav-inner {
  height: var(--bottom-nav-h);
  max-width: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.lh-mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 0.69rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.lh-mobile-nav-item.is-active,
.lh-mobile-nav-item:hover {
  color: var(--accent);
}

/* Loading Skeletons & States */
.lh-skeleton-card {
  border-radius: var(--radius-card);
  aspect-ratio: 16 / 9;
  background: linear-gradient(90deg, var(--bg-elev) 25%, var(--bg-elev-2) 50%, var(--bg-elev) 75%);
  background-size: 200% 100%;
  animation: lhShimmer 1.3s infinite linear;
}

@keyframes lhShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.lh-empty-box {
  text-align: center;
  padding: 48px 20px;
  border-radius: var(--radius-card);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (PC -> Laptop -> Tablet -> Phone)
   ========================================================================== */

/* Compact Laptop (<= 1240px) */
@media (max-width: 1240px) {
  .lh-brand-domain {
    display: none;
  }
  .lh-header-inner {
    gap: 12px;
  }
  .lh-nav-link {
    padding: 7px 9px;
    font-size: 0.83rem;
  }
}

/* Tablet Landscape & Narrow Laptop (<= 1180px) */
@media (max-width: 1180px) {
  .lh-grid,
  .lh-cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 14px;
  }
  .lh-watch-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .lh-watch-sidebar {
    position: static;
  }
  .lh-upnext-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .lh-theater-btn {
    display: none;
  }
}

/* Tablet Portrait & Touch Devices (<= 1024px): Seamless handoff to bottom nav (NO gap!) */
@media (max-width: 1024px) {
  body {
    padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 12px);
  }
  .lh-nav {
    display: none;
  }
  .lh-search-kbd {
    display: none;
  }
  .lh-search-wrap {
    max-width: none;
  }
  .lh-mobile-nav {
    display: block;
  }
  .lh-save-btn {
    opacity: 1;
  }
  .lh-footer {
    padding-bottom: 84px;
  }
  .tg-float-btn {
    bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 12px) !important;
  }
}

/* Tablet Small / Large Phone (<= 899px): Left-align stacked footer */
@media (max-width: 899px) {
  .lh-footer-right {
    align-items: flex-start;
  }
}

/* Phone & Small Tablet (<= 767px) */
@media (max-width: 767px) {
  :root {
    --header-h: 56px;
  }
  .lh-container {
    padding: 0 14px;
  }
  .lh-header-inner {
    gap: 10px;
  }
  .lh-brand {
    font-size: 1.08rem;
    gap: 7px;
  }
  .lh-brand-mark {
    width: 26px;
    height: 26px;
  }
  .lh-search-form {
    height: 36px;
    padding: 0 8px;
  }
  .lh-search-input {
    font-size: 0.85rem;
    padding: 0 6px;
  }
  .lh-search-dropdown {
    position: fixed;
    top: calc(var(--header-h) + 6px);
    left: 12px;
    right: 12px;
    max-height: 62dvh;
  }
  .lh-icon-btn {
    height: 36px;
    padding: 0 9px;
    font-size: 0.76rem;
  }
  .lh-main {
    padding: 16px 0 36px;
  }
  .lh-hero-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 14px;
  }
  .lh-page-subtitle {
    font-size: 0.86rem;
  }
  .lh-stats-row {
    gap: 8px;
  }
  .lh-select {
    height: 36px;
    font-size: 0.8rem;
    margin-left: auto;
  }
  .lh-filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .lh-filter-tabs::-webkit-scrollbar { display: none; }
  .lh-grid,
  .lh-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
  }
  .lh-cat-tile-overlay {
    padding: 8px 9px;
    gap: 6px;
  }
  .lh-cat-tile-title {
    font-size: 0.82rem;
  }
  .lh-cat-tile-count {
    font-size: 0.66rem;
    padding: 1px 5px;
  }
  .lh-ad-band {
    padding: 8px 0;
  }
  .lh-ad-slot-header,
  .lh-ad-slot-player-bar {
    min-height: 50px;
  }
  .lh-ad-slot-content {
    margin: 16px 0;
  }
  .lh-section-card {
    margin-top: 22px;
    padding: 16px 14px;
  }
  .lh-section-card h2 {
    font-size: 1.1rem;
  }
  .lh-dir-grid,
  .lh-faq-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .lh-play-circle {
    width: 58px;
    height: 58px;
  }
  .lh-breadcrumb {
    flex-wrap: nowrap;
    overflow: hidden;
    font-size: 0.78rem;
  }
  .lh-breadcrumb > a,
  .lh-breadcrumb > span {
    flex-shrink: 0;
  }
  .lh-breadcrumb > span:last-child {
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .lh-watch-actions {
    gap: 10px;
    margin: 12px 0;
  }
  .lh-specs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .lh-spec-tile {
    padding: 10px 11px;
  }
  .lh-upnext-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .lh-upnext-card {
    grid-template-columns: 120px minmax(0, 1fr);
  }
  .lh-footer {
    padding: 26px 0 96px;
    margin-top: 32px;
  }
}

/* Compact Phone (<= 420px) */
@media (max-width: 420px) {
  .lh-container {
    padding: 0 10px;
  }
  .lh-grid,
  .lh-cat-grid {
    gap: 12px 8px;
  }
  .lh-card-title {
    font-size: 0.82rem;
  }
  .lh-card-meta {
    font-size: 0.69rem;
    gap: 7px;
  }
  .lh-save-btn {
    width: 28px;
    height: 28px;
    top: 6px;
    right: 6px;
  }
  .lh-badge-hd {
    font-size: 0.62rem;
    padding: 1px 5px;
  }
  .lh-badge-dur {
    font-size: 0.66rem;
    padding: 1px 5px;
    right: 6px;
    bottom: 6px;
  }
  .lh-btn {
    height: 36px;
    padding: 0 11px;
    font-size: 0.8rem;
  }
  .lh-select {
    margin-left: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
