/* ==========================================================================
       THEME SYSTEM (Radar Olive / Obsidian Prism / Gallery Cream)
       ========================================================================== */
    :root {
      /* Theme: Deep Midnight Obsidian (Default Moon Dark Mode) */
      --bg-dark: #070a11;
      --bg-panel: rgba(11, 15, 25, 0.88);
      --bg-capsule: rgba(18, 24, 38, 0.92);
      --border-subtle: rgba(255, 255, 255, 0.09);
      --border-glow: rgba(56, 189, 248, 0.35);
      --accent-color: #38bdf8;
      --accent-secondary: #7dd3fc;
      --coral-orange: #ff5b36;
      --coral-orange-hover: #ff704d;
      --text-main: #f8fafc;
      --text-muted: #94a3b8;
      --text-dim: #64748b;
      --globe-atmosphere: #38bdf8;
      --land-fill: rgba(15, 23, 42, 0.75);
      --border-stroke: rgba(56, 189, 248, 0.3);
      --clock-color: rgba(56, 189, 248, 0.4);
    }

    /* Theme 2: Obsidian Prism (Antigravity Neon Purple / Deep Space) */
    body.theme-obsidian {
      --bg-dark: #06050d;
      --bg-panel: rgba(15, 12, 28, 0.88);
      --bg-capsule: rgba(22, 18, 42, 0.9);
      --border-subtle: rgba(255, 255, 255, 0.1);
      --border-glow: rgba(192, 132, 252, 0.45);
      --accent-color: #c084fc;
      --accent-secondary: #e9d5ff;
      --coral-orange: #f43f5e;
      --coral-orange-hover: #fb7185;
      --text-main: #f8fafc;
      --text-muted: #a78bfa;
      --text-dim: #6d5b97;
      --globe-atmosphere: #a855f7;
      --land-fill: rgba(36, 22, 65, 0.72);
      --border-stroke: rgba(192, 132, 252, 0.4);
      --clock-color: rgba(216, 180, 254, 0.4);
    }

    /* Theme 3: Gallery Cream (Light Mode / Museum Ivory Paper) */
    body.theme-cream {
      --bg-dark: #f5f3ec;
      --bg-panel: rgba(255, 255, 255, 0.88);
      --bg-capsule: rgba(240, 236, 224, 0.92);
      --border-subtle: rgba(0, 0, 0, 0.12);
      --border-glow: rgba(180, 140, 75, 0.4);
      --accent-color: #b45309;
      --accent-secondary: #78350f;
      --coral-orange: #ea580c;
      --coral-orange-hover: #c2410c;
      --text-main: #1c1917;
      --text-muted: #57534e;
      --text-dim: #8c827a;
      --globe-atmosphere: #d97706;
      --land-fill: rgba(220, 214, 196, 0.8);
      --border-stroke: rgba(168, 140, 90, 0.5);
      --clock-color: rgba(120, 53, 15, 0.35);
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      user-select: none;
      -webkit-user-drag: none;
    }

    body, html {
      width: 100%;
      height: 100%;
      overflow: hidden;
      background-color: var(--bg-dark);
      color: var(--text-main);
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
      transition: background-color 0.4s ease, color 0.4s ease;
    }

    /* 3D Globe Visualizer Stage - Shifted to Right for Public IPTV Cinematic Composition */
    #globeViz {
      position: absolute;
      top: 0;
      left: 12%;
      width: 88%;
      height: 100%;
      z-index: 1;
      cursor: grab;
    }
    #globeViz:active {
      cursor: grabbing;
    }

    .viewport-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 2;
      background: radial-gradient(circle at 18% 50%, rgba(5, 13, 8, 0.94) 0%, rgba(5, 13, 8, 0.35) 45%, transparent 75%),
                  radial-gradient(circle at 75% 50%, transparent 40%, rgba(5, 13, 8, 0.7) 100%);
      transition: background 0.4s ease;
    }
    body.theme-cream .viewport-overlay {
      background: radial-gradient(circle at 18% 50%, rgba(245, 243, 236, 0.94) 0%, rgba(245, 243, 236, 0.3) 45%, transparent 75%),
                  radial-gradient(circle at 75% 50%, transparent 40%, rgba(245, 243, 236, 0.6) 100%);
    }
    /* The header fades into the stage. In cream mode the bar has to keep its own
       presence: a plain ivory gradient made it dissolve into the page, so the
       top row no longer read as a row. Warm shadow stop inside plus a soft drop
       shadow below gives the bar an edge again without the old dark-green band. */
    /* Direction B: Antique Paper Scroll Floating
       Warm parchment gradation, no cold modern glare, soft museum ambient shadow. */
    body.theme-cream header {
      background: linear-gradient(180deg, rgba(250, 248, 242, 0.94) 0%, rgba(245, 241, 233, 0.90) 65%, rgba(236, 230, 218, 0.88) 100%);
      border-bottom: 1px solid rgba(140, 115, 75, 0.13);
      box-shadow: 0 6px 20px -4px rgba(70, 52, 28, 0.09), 0 1px 3px rgba(70, 52, 28, 0.04);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
    }
    body.theme-cream .btn-header-pill,
    body.theme-cream .segmented-switch,
    body.theme-cream .globe-search {
      background: rgba(242, 237, 226, 0.82);
      border-color: rgba(140, 115, 75, 0.18);
      box-shadow: 0 1px 2px rgba(60, 45, 20, 0.04);
      color: #383028;
    }

    /* ==========================================================================
       TOP NAVIGATION BAR
       ========================================================================== */
    header {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 58px;
      padding: 0 28px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      z-index: 50;
      background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(5, 13, 8, 0.45) 75%, transparent 100%);
      backdrop-filter: blur(10px);
    }

    .header-left {
      display: flex;
      align-items: center;
      gap: 30px;
    }

    .brand-group {
      display: flex;
      align-items: center;
      gap: 10px;
      cursor: pointer;
    }

    .brand-icon-svg {
      width: 26px;
      height: 26px;
    }

    .brand-name {
      font-size: 19px;
      font-weight: 700;
      letter-spacing: -0.3px;
      /* themed: the ivory theme had an invisible white wordmark */
      color: var(--text-main);
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .brand-icon-svg {
      width: 34px;
      height: 34px;
      flex-shrink: 0;
      filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.25));
    }
    .brand-badge {
      font-size: 10px;
      text-transform: uppercase;
      background: rgba(255, 91, 54, 0.15);
      color: var(--coral-orange);
      border: 1px solid rgba(255, 91, 54, 0.35);
      padding: 1px 6px;
      border-radius: 999px;
      font-weight: 700;
    }

    /* Mode Navigation Tabs (Art 1st Priority, Radio 2nd Priority) */
    .nav-tabs {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .nav-tab-btn {
      background: transparent;
      border: none;
      color: var(--text-muted);
      font-size: 13.5px;
      font-weight: 500;
      padding: 6px 14px;
      border-radius: 999px;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 6px;
      transition: all 0.2s ease;
    }
    .nav-tab-btn:hover {
      color: var(--text-main);
    }
    .nav-tab-btn.active {
      background: rgba(255, 255, 255, 0.12);
      color: var(--text-main);
      font-weight: 600;
    }
    body.theme-cream .nav-tab-btn.active {
      background: rgba(0, 0, 0, 0.08);
    }

    /* Right Header Action Icons & Dropdowns */
    .header-right {
      display: flex;
      align-items: center;
      gap: 10px;
      position: relative;
    }

    .btn-header-pill {
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid var(--border-subtle);
      color: var(--text-muted);
      font-size: 13px;
      font-weight: 500;
      padding: 6px 14px;
      border-radius: 999px;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 6px;
      transition: all 0.2s ease;
    }
    .btn-header-pill:hover {
      color: var(--text-main);
      background: rgba(255, 255, 255, 0.12);
      border-color: rgba(255, 255, 255, 0.22);
    }

    .btn-icon-circle {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: transparent;
      border: none;
      color: var(--text-muted);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 14px;
      transition: all 0.2s;
    }
    .btn-icon-circle:hover {
      background: rgba(255, 255, 255, 0.1);
      color: var(--text-main);
    }

    /* Segmented Switch: Globe | Genres */
    .segmented-switch {
      display: flex;
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid var(--border-subtle);
      border-radius: 999px;
      padding: 3px;
    }
    .segment-btn {
      background: transparent;
      border: none;
      color: var(--text-muted);
      font-size: 12px;
      font-weight: 500;
      padding: 4px 12px;
      border-radius: 999px;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 4px;
    }
    .segment-btn.active {
      background: var(--text-main);
      color: var(--bg-dark);
      font-weight: 600;
    }

    /* MissAV-Style Multilingual Dropdown */
    .lang-dropdown-box {
      position: relative;
    }
    .lang-dropdown-menu {
      position: absolute;
      top: 42px;
      right: 0;
      background: var(--bg-panel);
      border: 1px solid var(--border-subtle);
      backdrop-filter: blur(18px);
      border-radius: 12px;
      padding: 6px;
      min-width: 140px;
      display: none;
      flex-direction: column;
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
      z-index: 100;
    }
    .lang-dropdown-menu.show {
      display: flex;
    }
    .lang-item-btn {
      background: transparent;
      border: none;
      color: var(--text-muted);
      font-size: 13px;
      padding: 8px 12px;
      border-radius: 8px;
      cursor: pointer;
      text-align: left;
      display: flex;
      align-items: center;
      gap: 8px;
      transition: all 0.15s;
    }
    .lang-item-btn:hover {
      background: rgba(255, 255, 255, 0.1);
      color: var(--text-main);
    }
    .lang-item-btn.active {
      color: var(--accent-color);
      font-weight: 600;
    }

    /* Antigravity Color Theme Switcher Dropdown */
    .theme-dropdown-box {
      position: relative;
    }
    .theme-dropdown-menu {
      position: absolute;
      top: 42px;
      right: 0;
      background: var(--bg-panel);
      border: 1px solid var(--border-subtle);
      backdrop-filter: blur(18px);
      border-radius: 12px;
      padding: 6px;
      min-width: 170px;
      display: none;
      flex-direction: column;
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
      z-index: 100;
    }
    .theme-dropdown-menu.show {
      display: flex;
    }
    .theme-item-btn {
      background: transparent;
      border: none;
      color: var(--text-muted);
      font-size: 13px;
      padding: 8px 12px;
      border-radius: 8px;
      cursor: pointer;
      text-align: left;
      display: flex;
      align-items: center;
      gap: 8px;
      transition: all 0.15s;
    }
    .theme-item-btn:hover {
      background: rgba(255, 255, 255, 0.1);
      color: var(--text-main);
    }

    /* ==========================================================================
       SUB-STATS BAR (Under Top Left Logo)
       ========================================================================== */
    .sub-stats-dock {
      position: absolute;
      top: 64px;
      left: 28px;
      z-index: 40;
      pointer-events: none;
    }
    .stats-primary {
      font-size: 12.5px;
      color: var(--text-muted);
      font-weight: 400;
      letter-spacing: -0.2px;
    }
    .stats-secondary {
      font-size: 12px;
      color: var(--text-dim);
      margin-top: 4px;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .status-dot-active {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--coral-orange);
      display: inline-block;
      box-shadow: 0 0 8px var(--coral-orange);
    }

    /* ==========================================================================
       TOP RIGHT GIANT RADAR CLOCK
       ========================================================================== */
    .top-right-clock {
      position: absolute;
      top: 68px;
      right: 48px;
      z-index: 30;
      text-align: right;
      pointer-events: none;
    }
    .clock-digits {
      font-family: "SF Mono", "Roboto Mono", "Courier New", monospace;
      font-size: 52px;
      font-weight: 200;
      letter-spacing: 3px;
      line-height: 1;
      color: transparent;
      -webkit-text-stroke: 1.5px rgba(74, 222, 128, 0.75);
      text-shadow: 0 0 15px rgba(74, 222, 128, 0.25);
    }
    body.theme-cream .clock-digits {
      -webkit-text-stroke: 1.5px rgba(180, 83, 9, 0.85);
      text-shadow: none;
    }
    .clock-location {
      font-size: 11px;
      letter-spacing: 1.5px;
      color: var(--text-dim);
      text-transform: uppercase;
      margin-top: 4px;
    }

    /* ==========================================================================
       HERO CARD (Left Side Floating Area)
       ========================================================================== */
    .hero-container {
      position: absolute;
      left: 48px;
      bottom: 110px;
      z-index: 45;
      max-width: 520px;
    }

    .hero-tagline {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      font-weight: 500;
      color: var(--text-muted);
      margin-bottom: 14px;
    }
    .hero-tag-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--coral-orange);
      box-shadow: 0 0 8px var(--coral-orange);
    }

    /* State 1: Unselected Initial State ("Listen somewhere new.") */
    .hero-state-initial {
      display: flex;
      flex-direction: column;
    }
    .hero-display-title {
      font-family: Georgia, "Times New Roman", serif;
      font-size: 64px;
      font-weight: 400;
      line-height: 1.05;
      letter-spacing: -1.2px;
      color: var(--text-main);
      text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
    }
    .hero-subhead {
      font-size: 15px;
      line-height: 1.5;
      color: var(--text-muted);
      margin-top: 18px;
      margin-bottom: 28px;
      max-width: 440px;
    }

    .hero-action-row {
      display: flex;
      align-items: center;
      gap: 18px;
    }

    .btn-hero-orange {
      background: var(--coral-orange);
      color: #ffffff;
      border: none;
      padding: 13px 26px;
      border-radius: 999px;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 8px;
      box-shadow: 0 4px 20px rgba(255, 91, 54, 0.35);
      transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .btn-hero-orange:hover {
      background: var(--coral-orange-hover);
      transform: translateY(-1px);
      box-shadow: 0 6px 24px rgba(255, 91, 54, 0.5);
    }

    .hero-link-continue {
      color: var(--text-muted);
      font-size: 13.5px;
      font-weight: 500;
      cursor: pointer;
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 6px;
      transition: color 0.2s;
    }
    .hero-link-continue:hover {
      color: var(--text-main);
    }

    /* State 2: Active Station / Masterpiece Selected ("Jam FM Rezh" Style) */
    .hero-state-active {
      display: none;
      flex-direction: column;
      animation: fadeIn 0.3s ease;
    }

    .active-station-title {
      font-size: 42px;
      font-weight: 700;
      letter-spacing: -1.2px;
      color: var(--text-main);
      line-height: 1.1;
      text-shadow: 0 2px 12px rgba(0,0,0,0.6);
    }
    .active-station-geo {
      font-size: 14px;
      color: var(--text-muted);
      margin-top: 8px;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .active-station-tags {
      font-size: 13px;
      color: var(--text-dim);
      margin-top: 4px;
      margin-bottom: 20px;
    }

    .active-controls-bar {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-bottom: 16px;
    }

    .btn-play-circle-large {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      background: var(--bg-capsule);
      border: 2px solid var(--coral-orange);
      color: var(--text-main);
      font-size: 18px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.2s;
      box-shadow: 0 0 16px rgba(255, 91, 54, 0.3);
    }
    .btn-play-circle-large:hover {
      transform: scale(1.05);
      background: var(--coral-orange);
      color: #fff;
    }

    .volume-ctrl-group {
      display: flex;
      align-items: center;
      gap: 8px;
      background: var(--bg-capsule);
      padding: 6px 14px;
      border-radius: 999px;
      border: 1px solid var(--border-subtle);
    }
    .vol-slider {
      width: 70px;
      accent-color: var(--accent-color);
      cursor: pointer;
    }

    .btn-locate-station {
      background: transparent;
      border: none;
      color: var(--text-muted);
      font-size: 13px;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 5px;
      padding: 6px 10px;
      border-radius: 999px;
      transition: all 0.2s;
    }
    .btn-locate-station:hover {
      color: var(--text-main);
      background: rgba(255, 255, 255, 0.08);
    }

    .btn-inspect-art {
      background: rgba(52, 211, 153, 0.15);
      border: 1px solid rgba(52, 211, 153, 0.4);
      color: var(--accent-secondary);
      padding: 8px 16px;
      border-radius: 999px;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      margin-top: 10px;
      width: fit-content;
      display: flex;
      align-items: center;
      gap: 8px;
      transition: all 0.2s;
    }
    .btn-inspect-art:hover {
      background: rgba(52, 211, 153, 0.3);
      color: #ffffff;
      box-shadow: 0 0 16px rgba(52, 211, 153, 0.3);
    }

    .listening-timer-pill {
      font-size: 12px;
      color: var(--text-dim);
      display: flex;
      align-items: center;
      gap: 6px;
      margin-top: 6px;
    }

    /* ==========================================================================
       FLOATING RECENTLY SHARED CARDS ON GLOBE
       ========================================================================== */
    .floating-cards-layer {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 35;
    }

    .shared-radar-card {
      position: absolute;
      pointer-events: auto;
      background: var(--bg-capsule);
      border: 1px solid var(--border-glow);
      backdrop-filter: blur(14px);
      border-radius: 14px;
      padding: 10px 14px;
      width: 220px;
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(52, 211, 153, 0.15);
      cursor: pointer;
      transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .shared-radar-card:hover {
      transform: translateY(-4px) scale(1.03);
      border-color: var(--accent-color);
      box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 25px rgba(52, 211, 153, 0.3);
    }

    .shared-card-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 6px;
    }
    .card-tag-left {
      font-size: 11px;
      color: var(--text-muted);
      display: flex;
      align-items: center;
      gap: 5px;
    }
    .card-country-badge {
      font-size: 11px;
      font-weight: 700;
      color: var(--text-main);
    }

    .card-main-title {
      font-size: 13.5px;
      font-weight: 600;
      color: var(--text-main);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .card-reactions-bar {
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 11px;
      color: var(--text-dim);
    }

    #card-ph {
      top: 24%;
      right: 18%;
    }
    #card-np {
      bottom: 24%;
      right: 32%;
    }

    /* ==========================================================================
       BOTTOM FLOATING CAPSULE DOCK
       ========================================================================== */
    .bottom-dock-container {
      position: absolute;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 50;
      display: flex;
      align-items: center;
      gap: 8px;
      background: var(--bg-capsule);
      border: 1px solid var(--border-subtle);
      backdrop-filter: blur(16px);
      padding: 6px 12px;
      border-radius: 999px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
      max-width: 92vw;
      overflow-x: auto;
    }
    .bottom-dock-container::-webkit-scrollbar {
      display: none;
    }

    .btn-filters-menu {
      background: transparent;
      border: none;
      color: var(--text-muted);
      font-size: 13px;
      font-weight: 600;
      padding: 6px 14px;
      border-radius: 999px;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 6px;
      white-space: nowrap;
      transition: all 0.2s;
    }
    .btn-filters-menu:hover {
      color: var(--text-main);
      background: rgba(255, 255, 255, 0.08);
    }

    .capsule-pill {
      background: transparent;
      border: 1px solid transparent;
      color: var(--text-muted);
      font-size: 12.5px;
      font-weight: 500;
      padding: 6px 14px;
      border-radius: 999px;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 7px;
      white-space: nowrap;
      transition: all 0.2s;
    }
    .capsule-pill:hover {
      color: var(--text-main);
      background: rgba(255, 255, 255, 0.06);
    }
    .capsule-pill.active {
      background: rgba(255, 255, 255, 0.16);
      color: var(--text-main);
      border-color: rgba(255, 255, 255, 0.2);
      font-weight: 600;
    }

    .genre-color-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
    }

    /* 4D Timeline Slider for Art Mode (PRD 3.1) */
    .timeline-capsule-wrapper {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 0 10px;
    }
    .timeline-range-input {
      width: 220px;
      accent-color: var(--coral-orange);
      cursor: pointer;
    }
    .timeline-year-badge {
      font-size: 12px;
      font-weight: 700;
      color: #fbbf24;
      white-space: nowrap;
    }

    /* Map Zoom & Orientation Tools */
    .map-tools-widget {
      position: absolute;
      bottom: 24px;
      right: 28px;
      z-index: 50;
      display: flex;
      align-items: center;
      background: var(--bg-capsule);
      border: 1px solid var(--border-subtle);
      backdrop-filter: blur(12px);
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    }

    .map-tool-btn {
      width: 32px;
      height: 32px;
      background: transparent;
      border: none;
      border-right: 1px solid var(--border-subtle);
      color: var(--text-muted);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 15px;
      transition: all 0.2s;
    }
    .map-tool-btn:last-child {
      border-right: none;
    }
    .map-tool-btn:hover {
      background: rgba(255, 255, 255, 0.1);
      color: var(--text-main);
    }

    /* ==========================================================================
       PRD 3.3: STAGE 1 FROSTED GLASS DRAWER (380px)
       ========================================================================== */
    .stage1-drawer {
      position: fixed;
      top: 0;
      right: -420px;
      width: 400px;
      height: 100%;
      background: var(--bg-panel);
      border-left: 1px solid var(--border-subtle);
      backdrop-filter: blur(24px);
      z-index: 100;
      display: flex;
      flex-direction: column;
      box-shadow: -20px 0 60px rgba(0, 0, 0, 0.85);
      transition: right 0.38s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .stage1-drawer.open {
      right: 0;
    }

    .drawer-header {
      padding: 16px 20px;
      border-bottom: 1px solid var(--border-subtle);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .drawer-close-btn {
      background: rgba(255, 255, 255, 0.08);
      border: none;
      color: var(--text-muted);
      width: 30px;
      height: 30px;
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
    }
    .drawer-close-btn:hover {
      background: rgba(255, 255, 255, 0.2);
      color: var(--text-main);
    }

    .drawer-body {
      flex: 1;
      overflow-y: auto;
      padding: 20px;
    }
    .drawer-thumb-wrap {
      width: 100%;
      height: 220px;
      border-radius: 12px;
      overflow: hidden;
      border: 1px solid var(--border-subtle);
      margin-bottom: 18px;
    }
    .drawer-thumb-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .drawer-art-title {
      font-size: 20px;
      font-weight: 700;
      color: var(--text-main);
      line-height: 1.25;
    }
    .drawer-artist-year {
      font-size: 14px;
      color: var(--coral-orange);
      margin-top: 4px;
      font-weight: 500;
    }
    .drawer-meta-line {
      font-size: 12.5px;
      color: var(--text-muted);
      margin-top: 4px;
    }

    /* 5-Color Palette Swatches */
    .palette-box {
      display: flex;
      align-items: center;
      gap: 8px;
      margin: 18px 0;
      padding: 10px;
      background: rgba(255, 255, 255, 0.04);
      border-radius: 8px;
      border: 1px solid var(--border-subtle);
    }
    .palette-chip {
      flex: 1;
      height: 28px;
      border-radius: 6px;
      cursor: pointer;
      position: relative;
      transition: transform 0.2s;
    }
    .palette-chip:hover {
      transform: scale(1.1);
    }

    .curator-text-box {
      background: rgba(255, 255, 255, 0.03);
      border-left: 3px solid var(--accent-color);
      padding: 12px 14px;
      border-radius: 0 8px 8px 0;
      font-size: 13px;
      line-height: 1.6;
      color: var(--text-main);
      margin-bottom: 16px;
    }

    .drawer-footer {
      padding: 16px 20px;
      border-top: 1px solid var(--border-subtle);
      display: flex;
      gap: 12px;
    }
    .btn-darkroom-4k {
      flex: 1;
      background: linear-gradient(135deg, #22c55e, #15803d);
      color: #ffffff;
      border: none;
      padding: 11px;
      border-radius: 8px;
      font-size: 13.5px;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      transition: opacity 0.2s;
    }
    .btn-darkroom-4k:hover {
      opacity: 0.9;
    }

    /* ==========================================================================
       PRD 3.3: STAGE 2 4K LIGHTBOX DARKROOM
       ========================================================================== */
    .lightbox-darkroom {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(2, 6, 3, 0.96);
      backdrop-filter: blur(28px);
      z-index: 200;
      display: none;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }
    .lightbox-darkroom.open {
      display: flex;
    }
    .lightbox-img {
      max-width: 90%;
      max-height: 82vh;
      object-fit: contain;
      border-radius: 4px;
      box-shadow: 0 25px 80px rgba(0, 0, 0, 0.95);
    }
    .lightbox-close-btn {
      position: absolute;
      top: 24px;
      right: 32px;
      background: rgba(255, 255, 255, 0.1);
      border: none;
      color: #ffffff;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      cursor: pointer;
      font-size: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    /* ==========================================================================
       PRD 3.2: 全屏沉浸系统 (Screensaver Engine)
       ========================================================================== */
    .screensaver-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: #020603;
      z-index: 300;
      display: none;
      overflow: hidden;
    }
    .screensaver-overlay.active {
      display: block;
    }
    .screensaver-exit-btn {
      position: absolute;
      top: 24px;
      right: 32px;
      z-index: 50;
      background: rgba(0, 0, 0, 0.6);
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: #ffffff;
      padding: 8px 18px;
      border-radius: 999px;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      backdrop-filter: blur(12px);
      display: flex;
      align-items: center;
      gap: 8px;
      transition: opacity 0.4s ease, background 0.2s;
    }
    .screensaver-exit-btn:hover {
      background: rgba(255, 91, 54, 0.85);
      border-color: rgba(255, 91, 54, 1);
    }
    .screensaver-motion-layer {
      width: 100%;
      height: 100%;
      position: absolute;
      top: 0;
      left: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }
    .screensaver-image {
      min-width: 100%;
      min-height: 100%;
      object-fit: cover;
      transform: scale(1.0);
      animation: kenBurns 35s infinite alternate ease-in-out;
    }
    @keyframes kenBurns {
      0% { transform: scale(1.0) translate(0, 0); }
      100% { transform: scale(1.12) translate(-2%, -2%); }
    }
    .screensaver-hud {
      position: absolute;
      bottom: 40px;
      right: 48px;
      text-align: right;
      color: #ffffff;
      text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9);
      transition: opacity 0.8s ease;
      z-index: 10;
    }
    .ss-title {
      font-family: Georgia, serif;
      font-size: 32px;
      font-weight: 400;
    }
    .ss-meta {
      font-size: 14px;
      color: #cbd5e1;
      margin-top: 6px;
    }

    /* ==========================================================================
       PRD 3.4: 第一人称热气球探险悬念弹窗
       ========================================================================== */
    .balloon-mystery-card {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: var(--bg-panel);
      border: 1px solid var(--border-glow);
      backdrop-filter: blur(24px);
      border-radius: 20px;
      padding: 32px;
      width: 90%;
      max-width: 440px;
      text-align: center;
      box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85);
      z-index: 150;
      display: none;
      animation: fadeIn 0.4s ease;
    }
    .balloon-mystery-card.show {
      display: block;
    }

    /* ==========================================================================
       ADMIN STUDIO MODAL (Ctrl+Shift+A)
       ========================================================================== */
    .admin-modal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(3, 10, 6, 0.88);
      backdrop-filter: blur(20px);
      z-index: 400;
      display: none;
      align-items: center;
      justify-content: center;
    }
    .admin-modal.open {
      display: flex;
    }
    .admin-box {
      width: 90%;
      max-width: 800px;
      background: var(--bg-panel);
      border: 1px solid rgba(168, 85, 247, 0.4);
      border-radius: 16px;
      padding: 24px;
      box-shadow: 0 20px 60px rgba(0,0,0,0.9);
    }

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


/* ==========================================================================
   THEME SEGMENTED SWITCH (System / Light / Dark - Universal Modern UI)
   ========================================================================== */
.theme-segmented-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 2px 3px;
  gap: 2px;
}
body.theme-cream .theme-segmented-switch {
  background: #eef0f2;
  border-color: rgba(0, 0, 0, 0.08);
}
.theme-seg-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 28px;
  height: 26px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
  padding: 0;
}
.theme-seg-btn:hover {
  color: var(--text-main);
}
.theme-seg-btn.active {
  background: var(--text-main);
  color: var(--bg-dark);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
body.theme-cream .theme-seg-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 0 0 1.5px #3b82f6;
}

