/* ==========================================================================
   1.0 DESIGN TOKENS: UNIFIED EDITORIAL CANVAS & TRUE OLED ARCHITECTURE
   ========================================================================== */
:root {
  color-scheme: light;
  /* Unified Base Canvas Architecture (Light Mode - Pure White) */
  --bg-canvas: #ffffff;                       /* Pure White Canvas */
  --bg-surface: #ffffff;                      /* Matches Canvas for Continuous Clean Flow */
  --bg-elevated: #f4f4f6;                     /* Clean Elevated Layer (Cards, Modals, Pills) */
  --border-subtle: rgba(0, 0, 0, 0.08);       /* Subtle Hairline Border */
  --border-active: rgba(0, 0, 0, 0.18);       /* Focused Border */
  --text-main: #111111;                       /* Deep Carbon Ink Text */
  --text-muted: #5F6368;                      /* Secondary Slate Text (Harmonized) */
  --brand-accent: #B8860B;                   /* Active Accent (Light) */
  --brand-blue: #0071E3;                     /* Action Blue */
  --badge-bg: #f4f4f6;                        /* Default Badge Background */

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-pill: 9999px;
  --bezier-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --content-max-w: 1140px;

  /* Unified transition timing across all components */
  --theme-transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;

  /* Compact Editorial Typography Scale */
  --font-display: clamp(1.4rem, 1.25rem + 0.8vw, 1.75rem);
  --font-h1:      clamp(1.3rem, 1.15rem + 0.6vw, 1.55rem);
  --font-h2:      clamp(1.15rem, 1.05rem + 0.4vw, 1.3rem);
  --font-h3:      clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --font-h4:      0.95rem;
  --font-body:    0.9375rem;
  --font-meta:    0.8125rem;
  --font-badge:   0.6875rem;

  --leading-tight: 1.24;
  --leading-snug:  1.36;
  --leading-body:  1.58;
}

[data-theme="dark"] {
  color-scheme: dark;
  /* Unified Base Canvas Architecture (Dark Mode - True OLED Pitch Black) */
  --bg-canvas: #000000;                       /* True OLED Blackout */
  --bg-surface: #000000;                      /* Continuous Pitch Black Flow */
  --bg-elevated: #141518;                     /* Deep Basalt Layer (Cards, Modals, Pills) */
  --border-subtle: rgba(255, 255, 255, 0.08); /* Hairline Dark Border */
  --border-active: rgba(255, 255, 255, 0.18); /* Active Dark Border */
  --text-main: #F5F5F7;                       /* Silken Off-White Text */
  --text-muted: #9AA0A6;                      /* Smoky Slate Secondary Text */
  --brand-accent: #E5A93C;                   /* Active Accent Dark (High Contrast OLED) */
  --brand-blue: #2997FF;                     /* Sky Action Blue */
  --badge-bg: #141518;                        /* Dark Badge Background */
}

/* Wide-Gamut Display P3 Enhancement (Flagship Samsung & Apple Retina Screens) */
@supports (color: color(display-p3 1 1 1)) {
  :root {
    --brand-blue: color(display-p3 0.039 0.443 0.89);
  }
  [data-theme="dark"] {
    --brand-blue: color(display-p3 0.16 0.59 1);
  }
}

/* ==========================================================================
   1.1 BRAND ACCENT SWITCHER PALETTES (5 BRANDS)
   ========================================================================== */
[data-brand="brand-1"] {
  --brand-accent: #B8860B; /* Warm Brass (Light) */
}
[data-theme="dark"][data-brand="brand-1"] {
  --brand-accent: #E5A93C; /* Warm Brass (Dark) */
}

[data-brand="brand-2"] {
  --brand-accent: #DC2626; /* Crimson (Light) */
}
[data-theme="dark"][data-brand="brand-2"] {
  --brand-accent: #FB7185; /* Crimson (Dark) */
}

[data-brand="brand-3"] {
  --brand-accent: #4F46E5; /* Royal Indigo (Light) */
}
[data-theme="dark"][data-brand="brand-3"] {
  --brand-accent: #818CF8; /* Royal Indigo (Dark) */
}

[data-brand="brand-4"] {
  --brand-accent: #059669; /* Emerald (Light) */
}
[data-theme="dark"][data-brand="brand-4"] {
  --brand-accent: #34D399; /* Emerald (Dark) */
}

[data-brand="brand-5"] {
  --brand-accent: #334155; /* Slate Charcoal (Light) */
}
[data-theme="dark"][data-brand="brand-5"] {
  --brand-accent: #CBD5E1; /* Slate Charcoal (Dark) */
}

/* ==========================================================================
   1.2 GLOBAL BASE & RESET
   ========================================================================== */
html {
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg-canvas);
  color: var(--text-main);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-canvas);
  color: var(--text-main);
  line-height: var(--leading-body);
  font-size: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: var(--theme-transition);
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   2.0 HEADINGS SYSTEM
   ========================================================================== */
h1, .h1 {
  font-size: var(--font-h1);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: -0.015em;
  color: var(--text-main);
  text-wrap: balance;
}

h2, .h2 {
  font-size: var(--font-h2);
  font-weight: 700;
  line-height: var(--leading-snug);
  letter-spacing: -0.012em;
  color: var(--text-main);
  text-wrap: balance;
}

h3, .h3 {
  font-size: var(--font-h3);
  font-weight: 600;
  line-height: var(--leading-snug);
  letter-spacing: -0.008em;
  color: var(--text-main);
}

h4, .h4 {
  font-size: var(--font-h4);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-main);
}

/* ==========================================================================
   3.0 HEADER SHELL & SMART STICKY TOP TIER (DESKTOP)
   ========================================================================== */
.fliksho-header-root {
  position: relative;
  z-index: 1000;
  max-width: var(--content-max-w);
  margin: 0 auto;
}

.dt-top-tier {
  position: sticky;
  top: 0;
  z-index: 1010;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.28s var(--bezier-spring), var(--theme-transition);
}

.dt-top-tier.header-hidden {
  transform: translateY(-100%);
}

.reading-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background-color: var(--brand-accent);
  transition: width 0.08s ease-out;
  z-index: 1001;
}

.header-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.dt-top-inner {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  white-space: nowrap;
}

.brand-name-accent {
  color: var(--brand-accent);
}

.dt-actions-area {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.cmd-search-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  width: 220px;
  max-width: 240px;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--theme-transition);
}

.cmd-search-trigger:hover {
  border-color: var(--border-active);
  background: var(--bg-elevated);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.search-lens-icon {
  flex-shrink: 0;
  color: var(--text-muted);
}

.cmd-trigger-placeholder {
  font-size: 13px;
  font-weight: 500;
  flex-grow: 1;
  text-align: left;
}

.theme-toggle-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  transition: var(--theme-transition);
}

.theme-toggle-btn:hover {
  border-color: var(--text-main);
}

.theme-toggle-btn svg, .mob-theme-btn svg {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}

.theme-toggle-btn .sun-icon { display: none; }
.theme-toggle-btn .moon-icon { display: block; }
[data-theme="dark"] .theme-toggle-btn .sun-icon { display: block; transform: rotate(360deg); }
[data-theme="dark"] .theme-toggle-btn .moon-icon { display: none; }
[data-theme="light"] .theme-toggle-btn .moon-icon { transform: rotate(-30deg); }

/* Desktop Bottom Navigation Tier */
.dt-bottom-tier {
  position: relative;
  z-index: 100;
  height: 40px;
  border-top: none;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  transition: var(--theme-transition);
  max-width: 100%;
}

.centered-nav {
  width: 100%;
  height: 100%;
}

.nav-tier-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  list-style: none;
  height: 100%;
  margin: 0;
  padding: 0;
}

.nav-tier-list > li {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
}

.nav-tier-list li a {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  padding: 6px 2px;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s ease;
}

.nav-tier-list li a:hover,
.nav-tier-list li.sub-active > a {
  color: var(--brand-accent);
}

.nav-tier-list li.current-menu-item > a,
.nav-tier-list li.current_page_item > a {
  color: var(--text-main);
  font-weight: 700;
}

/* Arrow Toggle Button */
.submenu-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  margin-left: 2px;
  border-radius: var(--radius-sm);
  transition: transform 0.2s ease, color 0.15s ease;
}

.submenu-toggle-btn:hover {
  color: var(--text-main);
}

.sub-active > .submenu-toggle-btn svg {
  transform: rotate(180deg);
}

/* Desktop Dropdown Block: Drops slightly below the bar with elevation continuity */
.nav-tier-list .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  padding: 6px;
  list-style: none;
  z-index: 1005;
}

.nav-tier-list .sub-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

.nav-tier-list li.sub-active > .sub-menu,
.nav-tier-list li:hover > .sub-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-tier-list .sub-menu li {
  width: 100%;
}

.nav-tier-list .sub-menu li a {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  width: 100%;
  border-radius: var(--radius-sm);
  display: block;
}

.nav-tier-list .sub-menu li a:hover {
  background: var(--bg-elevated);
  color: var(--brand-accent);
}

.mob-header-shell {
  display: none;
}

/* ==========================================================================
   4.0 HANDHELD HEADER & MOBILE ACCORDION DRAWER (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .fliksho-header-root {
    max-width: 100% !important;
    margin: 0 !important;
  }
  .dt-header-shell {
    display: none;
  }
  .mob-header-shell {
    display: block;
    position: sticky;
    top: 0;
    z-index: 1010;
    transition: transform 0.28s var(--bezier-spring), var(--theme-transition);
  }
  .mob-header-shell.header-hidden {
    transform: translateY(-100%);
  }

  /* 3-Column Fluid Grid: Hamburger (Left) | Logo (Centered) | Controls (Right) */
  .mob-header-inner {
    height: 54px;
    padding-left: max(clamp(12px, 3vw, 20px), env(safe-area-inset-left));
    padding-right: max(clamp(12px, 3vw, 20px), env(safe-area-inset-right));
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: clamp(8px, 2vw, 16px);
    background: #ffffff;
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--theme-transition);
  }

  [data-theme="dark"] .mob-header-inner {
    background: var(--bg-surface);
  }

  /* Left Area: Hamburger button aligned strictly to the start */
  .mob-left-area {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
  }

  /* Center Area: Logo anchored in dead-center */
  .mob-logo-area {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
  }
  .mob-logo-area .brand-name {
    font-size: clamp(17px, 4vw, 20px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
    line-height: 1;
    white-space: nowrap;
  }

  /* Right Area: Search + Theme toggles tightly grouped */
  .mob-controls-area {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    height: 100%;
    flex-shrink: 0;
  }

  .mob-icon-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border: none;
    background: transparent;
    border-radius: var(--radius-pill);
    color: var(--text-main);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    margin: 0;
    line-height: 1;
    flex-shrink: 0;
    transition: background-color 0.18s ease, transform 0.15s var(--bezier-spring);
  }

  .mob-icon-btn:active {
    transform: scale(0.90);
    background-color: var(--bg-elevated);
  }
  .mob-icon-btn svg {
    width: 21px;
    height: 21px;
    display: block;
    flex-shrink: 0;
  }

  .mob-theme-btn .sun-icon { display: none; }
  .mob-theme-btn .moon-icon { display: block; }
  [data-theme="dark"] .mob-theme-btn .sun-icon { display: block; transform: rotate(360deg); }
  [data-theme="dark"] .mob-theme-btn .moon-icon { display: none; }

  .mob-hamburger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
  }

  .mob-hamburger .ham-line {
    width: 20px;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: transform 0.24s var(--bezier-spring), opacity 0.2s ease;
    transform-origin: center;
    display: block;
  }

  .mob-hamburger[aria-expanded="true"] .line-1 {
    transform: translateY(3.5px) rotate(45deg);
  }
  .mob-hamburger[aria-expanded="true"] .line-2 {
    transform: translateY(-3.5px) rotate(-45deg);
  }
  .mob-drawer-backdrop {
    position: fixed;
    top: 54px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 54px);
    height: calc(100dvh - 54px);
    background: rgba(12, 16, 23, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .mob-drawer-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }
  .mob-drawer-panel {
    width: 100%;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: clamp(14px, 2vw + 10px, 22px) clamp(16px, 3vw + 8px, 26px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
    transform: translateY(-8px);
    transition: transform 0.24s var(--bezier-spring), var(--theme-transition);
    max-height: calc(100dvh - 74px);
    overflow-y: auto;
  }
  .mob-drawer-backdrop.is-open .mob-drawer-panel {
    transform: translateY(0);
  }

  /* Adaptive Clean Mobile Menu List */
  .mob-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
  }
  .mob-nav-list > li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-subtle);
    padding: 0;
  }

  /* Main-Level Menu Link: Fluid adaptive typography matching site scale */
  .mob-nav-list > li > a {
    font-size: clamp(0.95rem, 0.9rem + 0.35vw, 1.08rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-main);
    flex: 1;
    padding: clamp(10px, 1.4vh, 14px) 0;
    display: block;
    line-height: 1.4;
  }

  /* Arrow Toggle Hit Area */
  .mob-nav-list > li > .submenu-toggle-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
  }
  .mob-nav-list > li > .submenu-toggle-btn:active {
    background: var(--bg-elevated);
  }

  /* Submenu Accordion Container: Clean vertical layout without vertical left bars */
  .mob-nav-list .sub-menu {
    display: none;
    width: 100%;
    flex-basis: 100%;
    list-style: none;
    border: none !important;
    background: transparent !important;
    padding: 0;
    margin: 0;
  }
  .mob-nav-list li.sub-active > .sub-menu {
    display: flex;
    flex-direction: column;
  }
  .mob-nav-list .sub-menu li {
    width: 100%;
    border: none;
    border-top: 1px solid var(--border-subtle);
    padding: 0;
  }

  /* Sub-Level Menu Link: Same fluid typography and vertical spacing, subtle 16px indent */
  .mob-nav-list .sub-menu li a {
    font-size: clamp(0.95rem, 0.9rem + 0.35vw, 1.08rem);
    font-weight: 500;
    color: var(--text-muted);
    padding: clamp(10px, 1.4vh, 14px) 0 clamp(10px, 1.4vh, 14px) 16px;
    display: block;
    line-height: 1.4;
    transition: color 0.15s ease;
  }
  .mob-nav-list .sub-menu li a:active,
  .mob-nav-list .sub-menu li a:hover {
    color: var(--brand-accent);
  }
}
 
/* ==========================================================================
   5.0 COMMAND PALETTE MODAL UI
   ========================================================================== */
.cmd-palette-backdrop {
  position: fixed;
  top: 98px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: calc(100vh - 98px);
  height: calc(100dvh - 98px);
  background: rgba(12, 16, 23, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10px 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.cmd-palette-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cmd-palette-box {
  width: 100%;
  max-width: 580px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
  overflow: hidden;
  transform: translateY(-8px) scale(0.98);
  transition: transform 0.22s var(--bezier-spring), var(--theme-transition);
}

.cmd-palette-backdrop.is-open .cmd-palette-box {
  transform: translateY(0) scale(1);
}

.cmd-palette-input-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  box-sizing: border-box;
  transition: var(--theme-transition);
}

.cmd-input-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.cmd-palette-input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-main);
  outline: none;
}

.cmd-clear-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cmd-esc-hint {
  font-size: 10px;
  font-weight: 700;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 2px 5px;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
}

.cmd-palette-results-slot {
  max-height: 380px;
  overflow-y: auto;
  padding: 0 12px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.search-start-hint {
  padding: 12px 10px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
}

.live-search-results-list {
  display: flex;
  flex-direction: column;
  padding: 8px 0 10px 0;
}

.live-search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease;
  text-decoration: none;
}

.live-search-row:hover {
  background-color: var(--bg-canvas);
}

.row-left {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.row-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
}

.row-meta {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.row-aura-pill {
  font-family: inherit;
  font-weight: 700;
  font-size: 12px;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  color: #fff;
  flex-shrink: 0;
}

.aura-alpha { background: #2563eb; }
.aura-beta  { background: #059669; }
.aura-gamma { background: #d97706; }
.aura-delta { background: #dc2626; }

@media (max-width: 768px) {
  .cmd-palette-backdrop {
    top: 54px !important;
    height: calc(100vh - 54px) !important;
    height: calc(100dvh - 54px) !important;
    padding: 6px 10px !important;
  }
  .cmd-palette-box {
    max-width: 100% !important;
    border-radius: 10px !important;
  }
  .cmd-palette-input-bar {
    padding: 8px 12px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
  }
  .cmd-palette-input {
    font-size: 14px !important;
    height: 100% !important;
  }
  .cmd-clear-btn {
    width: 22px !important;
    height: 22px !important;
    padding: 0 !important;
  }
  .cmd-esc-hint {
    display: none !important;
  }
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

/* ==========================================================================
   6.0 EDITORIAL SINGLE STORY ARCHITECTURE (STRICT GRID & EMBED CLAMPING)
   ========================================================================== */
.editorial-container {
  max-width: var(--content-max-w);
  margin: 36px auto;
  padding: 0 24px;
  box-sizing: border-box !important;
}

.has-sidebar-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
}

.has-sidebar-grid > article.article-core,
.fullwidth-reading {
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.fullwidth-reading {
  max-width: 760px !important;
  margin: 36px auto;
}

.article-tags-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.text-category-tag {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-accent);
}

.article-headline, .page-title {
  font-size: var(--font-display) !important;
  font-weight: 700 !important;
  line-height: var(--leading-tight) !important;
  letter-spacing: -0.015em !important;
  color: var(--text-main);
  margin: 0 0 12px 0;
  text-wrap: balance;
}

.article-deck {
  font-size: var(--font-h3) !important;
  font-weight: 400;
  line-height: 1.44 !important;
  color: var(--text-muted);
  letter-spacing: normal;
  margin: 0 0 20px 0;
  text-wrap: balance;
}

.editorial-byline-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin-bottom: 22px;
}

.byline-meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: var(--font-meta);
  line-height: 1.35;
  color: var(--text-muted);
}

.author-link {
  color: var(--text-main);
  font-weight: 600;
  transition: color 0.15s ease;
}

.author-link:hover {
  color: var(--brand-blue);
}

.byline-sep {
  opacity: 0.35;
  font-size: 10px;
}

.byline-social-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.share-btn-minimal {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  border-radius: var(--radius-sm);
}

.share-btn-minimal:hover {
  color: var(--text-main);
}

.article-lead-image {
  margin: 0 0 28px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.article-lead-image img {
  width: 100%;
  height: auto;
  display: block;
}

.article-body-prose {
  font-size: var(--font-body) !important;
  line-height: var(--leading-body) !important;
  color: var(--text-main);
  word-break: break-word;
  overflow-wrap: break-word;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  text-wrap: pretty;
}

.article-body-prose p {
  margin: 0 0 18px 0;
}

.article-body-prose p:last-child {
  margin-bottom: 0;
}

.article-body-prose h2 {
  font-size: var(--font-h2);
  margin: 26px 0 12px 0;
}

.article-body-prose h3 {
  font-size: var(--font-h3);
  margin: 20px 0 8px 0;
}

.article-body-prose blockquote {
  border-left: 3px solid var(--brand-accent);
  padding: 6px 0 6px 18px;
  margin: 24px 0;
  font-style: italic;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-main);
}

.article-body-prose blockquote cite {
  display: block;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article-body-prose .wp-block-pullquote {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 24px 16px;
  margin: 32px 0;
  text-align: center;
}

.article-body-prose .wp-block-pullquote blockquote {
  border-left: none;
  padding: 0;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   7.0 PERFECT FIT VIDEO & UNIVERSAL EMBED CLAMP
   ========================================================================== */
.article-body-prose figure,
.article-body-prose .wp-block-embed,
.article-body-prose .wp-block-embed-youtube,
.article-body-prose .wp-block-embed.is-type-video {
  margin: 24px 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  clear: both !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  display: block !important;
}

.article-body-prose .wp-block-embed__wrapper {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  border-radius: var(--radius-md) !important;
  overflow: hidden !important;
  background-color: #000000 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
}

@supports not (aspect-ratio: 16 / 9) {
  .article-body-prose .wp-block-embed__wrapper {
    padding-bottom: 56.25% !important;
    height: 0 !important;
  }
}

.article-body-prose .wp-block-embed__wrapper iframe,
.article-body-prose iframe[src*="youtube.com"],
.article-body-prose iframe[src*="youtu.be"],
.article-body-prose iframe[src*="youtube-nocookie.com"],
.article-body-prose iframe,
.article-body-prose video {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

.article-body-prose > iframe,
.article-body-prose p > iframe {
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  display: block !important;
  border-radius: var(--radius-md) !important;
  margin: 20px 0 !important;
}

.article-body-prose blockquote.twitter-tweet,
.article-body-prose blockquote.instagram-media {
  margin: 24px auto !important;
  max-width: 540px !important;
  width: 100% !important;
  min-width: 280px !important;
}

/* ==========================================================================
   8.0 EDITORIAL AUTHOR BOX & STORY NAVIGATION
   ========================================================================== */
.editorial-author-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 32px 0 24px 0;
  transition: var(--theme-transition);
}

.author-box-avatar {
  flex-shrink: 0;
}

.author-box-avatar .author-avatar-img {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-pill);
  display: block;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

.author-box-info {
  flex: 1;
  min-width: 0;
}

.author-box-header {
  margin-bottom: 6px;
}

.author-role-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.author-box-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: var(--text-main);
}

.author-box-name a {
  color: var(--text-main);
  transition: color 0.15s ease;
}

.author-box-name a:hover {
  color: var(--brand-accent);
}

.author-box-bio {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

.story-adjacent-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 32px 0 20px 0;
}

.nav-direction {
  display: flex;
}

.nav-direction.nav-next {
  margin-left: auto;
}

.adjacent-capsule-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-main);
  text-decoration: none;
  transition: transform 0.18s var(--bezier-spring), background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.adjacent-capsule-btn:hover {
  background: var(--text-main);
  color: var(--bg-canvas);
  border-color: var(--text-main);
  transform: translateY(-1px);
}

.adjacent-capsule-btn:active {
  transform: scale(0.95);
}

@media (max-width: 1024px) {
  .has-sidebar-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .editorial-container {
    padding: 0 16px;
    margin: 24px auto;
  }
  .editorial-byline-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .editorial-author-box {
    padding: 16px;
    gap: 12px;
  }
  .author-box-avatar .author-avatar-img {
    width: 46px;
    height: 46px;
  }
}

/* ==========================================================================
   9.0 CLEAN STREAM ARCHIVES & TIME FILTER
   ========================================================================== */
.archive-container {
  max-width: 760px;
  margin: 36px auto;
  padding: 0 20px;
}

.archive-main-column {
  min-width: 0;
  width: 100%;
}

.archive-header-tier {
  margin-bottom: 24px;
}

.archive-headline-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.archive-headline-bar .archive-title {
  font-size: var(--font-h1);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-main);
  margin-bottom: 0;
}

.archive-headline-bar .time-filter-dropdown-wrap {
  margin-top: 0;
  margin-left: auto;
}

/* Time Filter Pill Container */
.time-filter-dropdown-wrap {
  display: inline-flex;
  position: relative;
  transition: var(--theme-transition);
}

.filter-dropdown-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 5px 28px 5px 12px;
  cursor: pointer;
  color: var(--text-main);
  position: relative;
  transition: border-color 0.2s ease, var(--theme-transition);
}

.filter-dropdown-pill:hover {
  border-color: var(--border-active);
}

.filter-dropdown-pill svg {
  flex-shrink: 0;
  color: var(--text-muted);
}

/* Native select styling: clean dropdown appearance without browser modal frames */
.filter-dropdown-pill select {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Custom styled dropdown arrow chevron */
.filter-dropdown-pill::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid var(--text-muted);
  pointer-events: none;
}

/* Dropdown Options: Clear visibility in both Light & Dark modes */
.filter-dropdown-pill select option {
  background-color: #ffffff;
  color: #1a1a1a;
  font-size: 12.5px;
  padding: 8px 10px;
}

[data-theme="dark"] .filter-dropdown-pill select option {
  background-color: #141518;
  color: #f5f5f7;
}

.editorial-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.editorial-breadcrumbs .crumb-link {
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.editorial-breadcrumbs .crumb-link:hover {
  color: var(--text-main);
}

.editorial-breadcrumbs .crumb-sep {
  opacity: 0.35;
  font-size: 9px;
}

.editorial-breadcrumbs .crumb-current {
  color: var(--text-main);
  opacity: 0.8;
}

/* ==========================================================================
   MINIMAL EDITORIAL ROW STREAM (CATEGORY ON TOP, TITLE ON LEFT, NO DATE)
   ========================================================================== */
.archive-stream-feed {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 16px 0 28px 0;
  width: 100%;
}

.archive-stream-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: transparent;
  transition: background-color 0.15s ease;
}

.archive-stream-row:hover {
  background-color: var(--bg-surface);
}

.row-stack-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
}

.row-category-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-accent);
  line-height: 1;
  background: transparent;
  padding: 0;
  transition: opacity 0.15s ease;
}

.row-category-pill:hover {
  opacity: 0.75;
}

.row-title {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

.row-title-link {
  color: var(--text-main);
  transition: color 0.15s ease;
}

.archive-stream-row:hover .row-title-link {
  color: var(--brand-accent);
}

.archive-empty-state {
  padding: 48px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  width: 100%;
}

.circle-capsule-pagination {
  margin: 36px 0 20px 0;
  display: flex;
  justify-content: center;
}

.capsule-track {
  display: inline-flex;
  gap: 8px;
}

.capsule-slot .page-numbers {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  transition: var(--theme-transition);
}

.capsule-slot .page-numbers.current {
  background: var(--text-main);
  color: var(--bg-canvas);
  border-color: var(--text-main);
}

.fliksho-countdown-strip {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 5px 0;
}

.strip-container {
  max-width: var(--content-max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.strip-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.strip-track {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.strip-track::-webkit-scrollbar {
  display: none;
}

.radar-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  white-space: nowrap;
}

.pill-badge {
  font-size: 10px;
  font-weight: 700;
  color: #d97706;
}

.pill-text {
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 640px) {
  .archive-headline-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .archive-headline-bar .time-filter-dropdown-wrap {
    margin-left: 0;
  }
  .archive-stream-row {
    padding: 10px 6px;
    gap: 12px;
  }
  .row-title {
    font-size: 14.5px;
  }
}

/* ==========================================================================
   10.0 DYNAMIC BLOCKS (ADAPTIVE CARD PADDING, SECTION HEADINGS & CARDLESS LISTS)
   ========================================================================== */
.fliksho-block-section {
  margin: 28px 0;
  width: 100%;
}

.fliksho-block-section-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.fliksho-block-section-header .cluster-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-accent);
  line-height: 1;
}

/* Grid Block Layout */
.fliksho-block-container.block-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

/* Hero Block Layout */
.fliksho-block-container.block-hero .fliksho-card-item {
  display: grid;
  grid-template-columns: 1fr;
}

/* Boxed Card Architecture (Used for Grid and Hero) */
.fliksho-card-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s var(--bezier-spring), border-color 0.2s ease, box-shadow 0.22s ease, var(--theme-transition);
}

.fliksho-card-item:hover {
  transform: translateY(-2px);
  border-color: var(--border-active);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .fliksho-card-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.40);
}

.fliksho-card-item .card-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* Adaptive Inner Padding: Elements only claim spacing when enabled & populated */
.fliksho-card-item .card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-badge {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin-bottom: 6px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}

.card-excerpt {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 6px;
  margin-bottom: 0;
  line-height: 1.45;
}

.card-date {
  font-size: var(--font-meta);
  line-height: 1.35;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ==========================================================================
   MINIMAL CARD-FREE SINGLE COLUMN LIST (STREAM ROWS)
   ========================================================================== */
.fliksho-block-container.block-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}

.fliksho-list-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: transparent;
  transition: background-color 0.15s ease;
}

.fliksho-list-row:hover {
  background-color: var(--bg-surface);
}

.list-row-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.list-row-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

.list-row-title a {
  color: var(--text-main);
  transition: color 0.15s ease;
}

.fliksho-list-row:hover .list-row-title a {
  color: var(--brand-accent);
}

.list-row-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.list-row-date {
  font-size: var(--font-meta);
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .fliksho-list-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px 6px;
  }
}

/* ==========================================================================
   11.0 MONETIZATION, ADSLOT SHIELDS & GLOBAL UTILITIES
   ========================================================================== */
.header-ad-banner {
  min-height: 90px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-slot-incontent {
  min-height: 250px;
  width: 100%;
  margin: 24px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  clear: both;
}

.ad-slot-sidebar-sticky {
  position: sticky;
  top: 76px;
  min-height: 250px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  margin-top: 10px;
  transition: var(--theme-transition);
}

.ad-slot-sidebar-sticky .ad-label {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.fliksho-mobile-anchor-wrapper {
  display: none;
}

@media (max-width: 768px) {
  .fliksho-mobile-anchor-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    padding-top: 5px;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
    padding-bottom: max(6px, env(safe-area-inset-bottom));
    box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.08);
    min-height: 52px;
  }
  .fliksho-mobile-anchor-wrapper .anchor-close-btn {
    position: absolute;
    top: -22px;
    right: 6px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    width: 24px;
    height: 22px;
    font-size: 14px;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.fliksho-global-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 28px 0;
  background: var(--bg-canvas);
  transition: var(--theme-transition);
  max-width: var(--content-max-w);
  margin: 0 auto;
}

@media (max-width: 768px) {
  .fliksho-global-footer {
    max-width: 100% !important;
    margin: 0 !important;
  }
}

/* Footer Navigation Menu */
.footer-nav-row {
  max-width: 100%;
  margin: 0 auto 16px auto;
  padding: 0 24px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 22px;
  margin: 0;
  padding: 0;
}

.footer-links-list li {
  display: inline-flex;
}

.footer-links-list li a {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
  text-decoration: none;
}

.footer-links-list li a:hover {
  color: var(--brand-accent);
}

@media (max-width: 640px) {
  .footer-nav-row {
    padding: 0 16px;
    margin-bottom: 20px;
  }

  .footer-links-list {
    justify-content: center;
    gap: 10px 16px;
  }

  .footer-links-list li a {
    font-size: 11.5px;
  }
}

.footer-legal-bar {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.copyright-notice {
  font-size: 12.5px;
  color: var(--text-muted);
}

.footer-social-strip {
  display: flex;
  gap: 10px;
}

.social-chip {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.social-chip:hover {
  color: var(--text-main);
  border-color: var(--text-main);
}

@media (max-width: 640px) {
  .footer-legal-bar {
    flex-direction: column-reverse;
    gap: 16px;
    text-align: center;
    justify-content: center;
  }
  .copyright-notice {
    font-size: 12px;
    order: 2;
  }
  .footer-social-strip {
    justify-content: center;
    order: 1;
  }
}

.back-to-top-capsule {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom));
  right: max(20px, env(safe-area-inset-right));
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  background: var(--text-main);
  color: var(--bg-canvas);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s var(--bezier-spring);
  z-index: 990;
}

.back-to-top-capsule.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.brand-logo-area {
  display: flex;
  align-items: center;
  max-width: 150px;
  max-height: 44px;
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.custom-logo {
  max-width: 150px !important;
  max-height: 44px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  display: block;
}

@media screen and (orientation: landscape) and (max-height: 500px) {
  .article-headline,
  .page-title {
    font-size: 1.4rem !important;
  }
  .dt-top-inner {
    height: 48px;
  }
  .editorial-container,
  .archive-container {
    padding-left: max(24px, env(safe-area-inset-left)) !important;
    padding-right: max(24px, env(safe-area-inset-right)) !important;
    margin: 18px auto !important;
  }
}

/* ==========================================================================
   12.0 EDITORIAL IMPRINT & RESONATING WAVE RINGS ARCHITECTURE
   ========================================================================== */
.fliksho-imprint-aura-cluster {
  margin: 36px 0 24px 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cluster-label {
  display: inline-block;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-accent);
  line-height: 1;
  margin-bottom: 6px;
}

.imprint-quote {
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-main);
  text-wrap: pretty;
  margin: 0;
}

/* Frameless Clean Centered Vertical Stack with Strict Dimension Clamping */
.aura-editorial-stack {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 0 !important;
  margin: 14px auto !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  width: 140px !important;
  max-width: 140px !important;
}

/* Top Headline Bar: Centered with AURA + subtle Guide link */
.aura-top-headline {
  display: flex !important;
  align-items: baseline !important;
  justify-content: center !important;
  gap: 6px !important;
  width: 100%;
}

/* 1. "AURA" Title */
.aura-main-label {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  margin-bottom: 0 !important;
  line-height: 1 !important;
}

/* 2. "Guide" Link */
.aura-guide-whisper {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
  color: var(--text-muted) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  opacity: 0.65 !important;
  transition: opacity 0.2s ease, color 0.2s ease !important;
}

.aura-guide-whisper:hover {
  opacity: 1 !important;
  color: var(--brand-accent) !important;
}

/* 3. Strict 52x52 Resonating Rhythm Pulse Wavefield Container */
.aura-editorial-stack .synapse-web {
  width: 52px !important;
  height: 52px !important;
  max-width: 52px !important;
  max-height: 52px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  margin: 8px auto 6px auto !important;
}

.aura-editorial-stack .synapse-web svg {
  width: 52px !important;
  height: 52px !important;
  max-width: 52px !important;
  max-height: 52px !important;
  display: block !important;
  margin: 0 auto !important;
}

/* 4. Status Label (Peak, Rush, Vibe, Drop) */
.aura-status-name {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.25 !important;
  margin-top: 4px !important;
}

/* Vector & Text Color Tokens */
.neural-pod-alpha .synapse-web svg, .neural-pod-alpha .aura-status-name { color: #0284c7 !important; }
.neural-pod-beta .synapse-web svg, .neural-pod-beta .aura-status-name  { color: #059669 !important; }
.neural-pod-gamma .synapse-web svg, .neural-pod-gamma .aura-status-name { color: #d97706 !important; }
.neural-pod-delta .synapse-web svg, .neural-pod-delta .aura-status-name { color: #e11d48 !important; }

/* OLED / Dark Mode Colors */
[data-theme="dark"] .neural-pod-alpha .synapse-web svg, [data-theme="dark"] .neural-pod-alpha .aura-status-name { color: #38bdf8 !important; }
[data-theme="dark"] .neural-pod-beta .synapse-web svg, [data-theme="dark"] .neural-pod-beta .aura-status-name  { color: #10b981 !important; }
[data-theme="dark"] .neural-pod-gamma .synapse-web svg, [data-theme="dark"] .neural-pod-gamma .aura-status-name { color: #fbbf24 !important; }
[data-theme="dark"] .neural-pod-delta .synapse-web svg, [data-theme="dark"] .neural-pod-delta .aura-status-name { color: #fb7185 !important; }

/* Guide Grid for Explaining Pages */
.aura-guide-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin: 28px 0;
}

/* ==========================================================================
   13.0 FLIKSHO CINEMA PLAYLIST (FLUSH VERTICAL STACK)
   ========================================================================== */
.fliksho-cinema-playlist {
  width: 100% !important;
  margin: 28px 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-sizing: border-box !important;
}

.playlist-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 0 2px 8px 2px;
  border-bottom: 1px solid var(--border-subtle);
}

.playlist-count-pill {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-elevated);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* Pure Vertical Stack (Player on Top, Queue at the Bottom Everywhere) */
.playlist-stage-layout {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  width: 100% !important;
}

/* 16:9 Video Embed Player (Zero outer padding) */
.playlist-active-player {
  width: 100% !important;
}

.player-aspect-frame {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  background: #000000 !important;
  border-radius: var(--radius-md) !important;
  overflow: hidden !important;
}

.player-aspect-frame iframe {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  display: block !important;
}

/* Queue Container underneath the Player */
.playlist-queue-container {
  display: flex !important;
  flex-direction: column !important;
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-md) !important;
  overflow: hidden !important;
  max-height: 280px !important;
}

.playlist-queue-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 8px 14px !important;
  background: var(--bg-surface) !important;
  border-bottom: 1px solid var(--border-subtle) !important;
}

.queue-heading {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: var(--text-muted);
}

.queue-counter {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: var(--text-muted) !important;
}

.playlist-queue-track {
  display: flex !important;
  flex-direction: column !important;
  overflow-y: auto !important;
  padding: 4px !important;
  gap: 2px !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.playlist-track-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 6px !important;
  padding: 6px 8px !important;
  width: 100% !important;
  cursor: pointer !important;
  text-align: left !important;
  transition: background-color 0.15s ease, border-color 0.15s ease !important;
}

.playlist-track-row:hover {
  background: var(--bg-canvas) !important;
}

.playlist-track-row.is-active {
  background: var(--bg-canvas) !important;
  border-color: var(--border-active) !important;
}

.track-number {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: var(--text-muted) !important;
  width: 16px !important;
  flex-shrink: 0 !important;
}

.track-thumb-box {
  position: relative !important;
  width: 72px !important;
  aspect-ratio: 16 / 9 !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  background: #000 !important;
}

.track-thumb-box img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.track-play-glyph {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.45) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fff !important;
  opacity: 0 !important;
  transition: opacity 0.15s ease !important;
}

.playlist-track-row:hover .track-play-glyph,
.playlist-track-row.is-active .track-play-glyph {
  opacity: 1 !important;
}

.playlist-track-row.is-active .track-play-glyph {
  color: var(--brand-accent) !important;
}

.track-details {
  min-width: 0 !important;
  flex: 1 !important;
}

.track-title-text {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: var(--text-main) !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.playlist-track-row.is-active .track-title-text {
  color: var(--brand-accent) !important;
}

/* ==========================================================================
   14.0 UPWARD DROPDOWN NETWORK BOX (ADAPTIVE, HARMONIZED & OLED-TUNED)
   ========================================================================== */
.fliksho-network-bar {
  width: 100%;
  max-width: var(--content-max-w);
  margin: 0 auto;
  background: transparent;
  position: relative;
  z-index: 950;
}

@media (max-width: 768px) {
  .fliksho-network-bar {
    max-width: 100% !important;
  }
}

.network-bar-container {
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Aligns neatly above the social icons on desktop */
}

@media (max-width: 640px) {
  .network-bar-container {
    padding: 0 16px;
    justify-content: center; /* Centered along with stacked elements on mobile */
  }
}

/* Adaptive Dropup Container */
.network-popup-wrapper {
  position: relative;
  display: inline-flex;
  margin: 8px 0 2px 0;
  width: auto;
}

/* Trigger Button: Clean, border-subtle, auto-width */
.network-dropup-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  cursor: pointer;
  color: var(--text-muted);
  width: auto;
  min-width: 0;
  transition: var(--theme-transition);
}

.network-dropup-trigger:hover {
  border-color: var(--border-active);
  color: var(--text-main);
}

/* Trigger Label: Harmonized font size and muted tone */
.trigger-label {
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: inherit;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .trigger-label {
    font-size: 11px;
  }
}

.trigger-chevron {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  color: inherit;
  transition: transform 0.2s ease;
}

.network-popup-wrapper.is-open .trigger-chevron {
  transform: rotate(180deg);
}

/* Upward Dropdown Menu */
.network-dropup-menu {
  position: absolute;
  bottom: calc(100% + 4px);
  right: 0;
  left: auto;
  width: max-content;
  min-width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  pointer-events: none;
  z-index: 1000;
}

[data-theme="dark"] .network-dropup-menu {
  background: #000000;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.6);
}

.network-popup-wrapper.is-open .network-dropup-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Scrollable List Track */
.network-dropup-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  max-height: 150px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--text-muted) transparent;
}

.network-dropup-list::-webkit-scrollbar {
  width: 4px;
}

.network-dropup-list::-webkit-scrollbar-thumb {
  background: var(--border-active);
  border-radius: 4px;
}

.network-dropup-list li {
  margin: 0;
  padding: 0;
}

/* Brand Link Items: Crisp high-contrast titles */
.network-site-link {
  display: block;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-main);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

@media (max-width: 640px) {
  .network-site-link {
    font-size: 11px;
    padding: 6px 10px;
  }
}

.network-site-link:hover {
  background: var(--bg-elevated);
  color: var(--brand-accent);
}