    :root {
      --bg: #0d0a08;
      --surface: #16120e;
      --surface-card: #1f1813;
      --surface-hover: #2a2019;
      --border: #33261c;
      --border-gold: #8a642d;
      --gold: #ffb547;
      --gold-light: #ffd285;
      --gold-dark: #cc8a24;
      --orange: #f4773b;
      --cream: #f8f1e7;
      --muted: #a69788;
      --muted-dark: #6e6154;
      --danger: #e7655a;
      --danger-bg: rgba(231, 101, 90, 0.12);
      --success: #57c26f;
      --shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
      --shadow-gold: 0 10px 30px rgba(255, 181, 71, 0.15);
      --radius-sm: 10px;
      --radius: 18px;
      --radius-lg: 28px;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      background-color: var(--bg);
      color: var(--cream);
      font-family: 'Noto Sans Thai', 'DM Sans', sans-serif;
      min-height: 100vh;
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
    }
    body.route-page { overflow:hidden; }
    body.route-page > header,
    body.route-page > main,
    body.route-page > .mobile-add-btn { display:none!important; }
    body.route-page dialog[open] {
      position:fixed; inset:0; width:100vw; height:100dvh; max-height:none;
      margin:0; border:0; border-radius:0; box-shadow:none;
    }
    body.route-page dialog::backdrop { display:none; }

    /* Ambient FX */
    .grain {
      position: fixed; inset: 0; pointer-events: none; opacity: 0.03; z-index: 99;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    }
    .glow-spot {
      position: fixed; border-radius: 50%; filter: blur(140px); opacity: 0.15; pointer-events: none; z-index: 0;
    }
    .glow-spot.one { width: 550px; height: 550px; background: #ff7a36; top: -200px; right: -150px; }
    .glow-spot.two { width: 600px; height: 600px; background: #d69b40; bottom: -250px; left: -200px; }

    /* Layout Container */
    .shell {
      width: min(1200px, calc(100% - 36px));
      margin: 0 auto;
      position: relative;
      z-index: 1;
    }

    /* Navigation Header */
    header {
      position: sticky; top: 0; z-index: 50;
      background: rgba(13, 10, 8, 0.88);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      padding: 14px 0;
    }
    nav {
      display: flex; align-items: center; justify-content: space-between; gap: 16px;
    }
    .brand {
      min-width: 0; flex: 0 0 auto; display: flex; align-items: center; gap: 12px;
      color: var(--cream); text-decoration: none; font-weight: 700;
    }
    .brand-logo {
      width: 44px; height: 44px; flex: 0 0 auto; overflow: hidden; border-radius: 14px;
      background: linear-gradient(135deg, #2e1f14, #18110b);
      border: 1px solid var(--border-gold);
      display: grid; place-items: center;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 6px 16px rgba(0,0,0,0.4);
    }
    .brand-logo img { width: 100%; height: 100%; display: block; object-fit: cover; }
    .brand-title { min-width: 0; font-size: 19px; line-height: 1.15; letter-spacing: -0.02em; font-family: 'Space Grotesk', sans-serif; white-space: nowrap; }
    .brand-title small { display: block; font-size: 8px; color: var(--gold); font-weight: 600; font-family: 'DM Sans', sans-serif; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 3px; }

    .nav-actions { min-width: 0; flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
    .google-login-btn {
      display: inline-flex; align-items: center; gap: 8px;
      background: rgba(255, 255, 255, 0.08); border: 1px solid var(--border);
      border-radius: 999px; padding: 9px 16px; color: var(--cream);
      font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s;
      font-family: inherit;
    }
    .google-login-btn:hover {
      background: rgba(255, 255, 255, 0.15); border-color: var(--border-gold); color: var(--gold);
    }
    .google-login-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
    .user-profile-bar {
      display: inline-flex; align-items: center; gap: 10px;
      background: var(--surface-card); border: 1px solid var(--border-gold);
      padding: 4px 12px 4px 6px; border-radius: 999px;
    }
    .user-avatar {
      width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 1px solid var(--gold);
    }
    .user-info-text { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
    .user-name { font-size: 12px; font-weight: 600; color: var(--cream); max-width: 100px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .user-email { font-size: 10px; color: var(--muted); max-width: 110px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .account-id { color: var(--gold); }
    .people-search { position: relative; width: min(360px, 30vw); min-width: 190px; }
    .people-search input { width: 100%; padding: 10px 14px 10px 38px; }
    .people-search .search-icon { left: 13px; }
    .people-results { position:absolute; z-index:50; top:calc(100% + 8px); left:0; right:0; padding:8px; border:1px solid var(--line); border-radius:16px; background:#171716; box-shadow:0 20px 50px #000b; max-height:320px; overflow:auto; }
    .people-result { width:100%; display:flex; align-items:center; gap:10px; border:0; background:transparent; color:var(--cream); padding:10px; border-radius:11px; text-align:left; cursor:pointer; }
    .people-result:hover, .people-result:focus-visible { background:#ffffff0b; }
    .people-result img, .social-avatar { width:38px; height:38px; border-radius:50%; object-fit:cover; background:#292826; }
    .people-result strong { display:block; }
    .people-result small { color:var(--gold); }
    .profile-dialog-body { padding:22px 26px 28px; overflow:auto; }
    .social-profile-head { display:flex; align-items:center; gap:14px; margin-bottom:22px; }
    .social-avatar { width:64px; height:64px; }
    .social-profile-head h3 { margin:0 0 4px; font-size:22px; }
    .social-profile-head p { margin:0; color:var(--gold); }
    .social-movies { display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:14px; }
    .social-movie { overflow:hidden; border:1px solid var(--line); border-radius:14px; background:#1c1b19; }
    .social-movie img, .social-movie-placeholder { width:100%; aspect-ratio:2/3; object-fit:cover; display:grid; place-items:center; font-size:36px; background:#262421; }
    .social-movie-info { padding:11px; }
    .social-movie-info strong { display:block; font-size:13px; line-height:1.35; }
    .social-movie-info small { color:var(--muted); }
    .social-movie-review {
      margin:9px 0 0; display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:4;
      color:#d1d1d6; font-size:11px; line-height:1.55; white-space:pre-wrap;
    }
    #profileModal { width:min(1050px,calc(100% - 24px)); height:min(820px,88dvh); }
    .profile-dialog-body { flex:1; min-height:0; }
    #publicProfileView { min-height:100%; }
    .social-profile-empty { grid-column:1/-1; min-height:260px; border:1px dashed var(--border); border-radius:20px; display:grid; place-content:center; justify-items:center; gap:7px; padding:28px; color:var(--muted); text-align:center; }
    .social-profile-empty span { font-size:48px; }
    .social-profile-empty strong { color:var(--cream); font-size:18px; }
    .social-profile-empty small { max-width:360px; }
    .profile-form { display:flex; gap:10px; }
    .profile-form .control { flex:1; }
    .logout-btn {
      border: none; background: rgba(231, 101, 90, 0.15); color: var(--danger);
      font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
      cursor: pointer; transition: 0.2s; font-family: inherit;
    }
    .logout-btn:hover { background: var(--danger); color: white; }

    /* Buttons */
    .btn {
      border: 0; border-radius: 999px; padding: 11px 22px; font-weight: 600; font-size: 14px;
      transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
      display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
      text-decoration: none; font-family: inherit;
    }
    .btn:active { transform: scale(0.97); }
    :where(button, a, input, select, textarea, [tabindex]):focus-visible {
      outline: 3px solid rgba(255, 181, 71, 0.45);
      outline-offset: 3px;
    }
    .btn-primary {
      color: #1a0f05;
      background: linear-gradient(135deg, var(--gold), #ff8c44);
      box-shadow: 0 6px 20px rgba(244, 119, 59, 0.25);
    }
    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 28px rgba(244, 119, 59, 0.38);
      background: linear-gradient(135deg, var(--gold-light), #ff9a58);
    }
    .btn-ghost {
      color: var(--cream); background: var(--surface-card); border: 1px solid var(--border);
    }
    .btn-ghost:hover {
      background: var(--surface-hover); border-color: var(--border-gold); color: var(--gold);
    }

    /* Hero Section */
    .hero {
      padding: 48px 0 24px;
      display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 36px; align-items: end;
    }
    .eyebrow {
      font-family: 'Space Grotesk', sans-serif;
      color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
      margin-bottom: 12px; display: inline-flex; align-items: center; gap: 8px;
      background: rgba(255, 181, 71, 0.08); padding: 5px 14px; border-radius: 999px; border: 1px solid rgba(255, 181, 71, 0.2);
    }
    .hero h1 {
      font-size: clamp(34px, 5.2vw, 64px); letter-spacing: -0.04em; line-height: 1.08; margin: 0 0 16px; font-weight: 700;
    }
    .hero h1 em {
      font-style: normal;
      background: linear-gradient(135deg, var(--gold-light), var(--orange));
      -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    }
    .hero-copy {
      color: var(--muted); font-size: 16px; max-width: 580px; margin: 0; line-height: 1.6;
    }
    .feature-shortcuts-shell {
      position: relative;
      width: min(100%, 900px);
      margin-top: 24px;
    }
    .feature-shortcuts {
      width: 100%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 12px; margin-top: 0;
    }
    .feature-scroll-btn {
      position: absolute; z-index: 5; top: 50%; width: 42px; height: 42px;
      display: none; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.18);
      border-radius: 50%; color: var(--cream); background: rgba(28,28,30,.86);
      box-shadow: 0 10px 28px rgba(0,0,0,.38), inset 0 1px rgba(255,255,255,.08);
      backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
      transform: translateY(-50%); cursor: pointer; transition: opacity .2s, transform .2s, background .2s;
    }
    .feature-scroll-btn span { display: block; margin-top: -3px; font: 400 34px/1 -apple-system, BlinkMacSystemFont, sans-serif; }
    .feature-scroll-btn.previous { left: 6px; }
    .feature-scroll-btn.next { right: 6px; }
    .feature-shortcuts-shell.has-overflow .feature-scroll-btn { display: grid; }
    .feature-scroll-btn:hover:not(:disabled) { background: rgba(58,58,60,.94); transform: translateY(-50%) scale(1.06); }
    .feature-scroll-btn:active:not(:disabled) { transform: translateY(-50%) scale(.96); }
    .feature-scroll-btn:disabled { opacity: .28; cursor: default; }
    .feature-scroll-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--gold) 65%, transparent); outline-offset: 2px; }
    .feature-shortcut-card {
      min-width: 0; padding: 12px; border: 1px solid var(--border); border-radius: 21px;
      display: flex; flex-direction: column; color: var(--cream); text-decoration: none;
      background: linear-gradient(155deg, rgba(42, 32, 25, 0.92), rgba(22, 18, 14, 0.92));
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
      transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
    }
    .feature-shortcut-card:hover {
      transform: translateY(-4px); border-color: var(--gold);
      box-shadow: 0 18px 36px rgba(0, 0, 0, .3), 0 8px 26px rgba(244, 119, 59, .1);
    }
    .feature-shortcut-icon {
      width: 100%; aspect-ratio: 1; display: block; object-fit: cover;
      border-radius: 15px; border: 1px solid rgba(255, 255, 255, .08);
      background: #1b120d;
      box-shadow: inset 0 0 0 1px rgba(255, 181, 71, .08);
      transition: transform .25s ease, filter .25s ease;
    }
    .feature-shortcut-card:hover .feature-shortcut-icon { transform: scale(1.025); filter: brightness(1.06); }
    .feature-shortcut-copy { padding: 11px 2px 3px; }
    .feature-shortcut-copy strong, .feature-shortcut-copy small { display: block; }
    .feature-shortcut-copy strong { font-size: 13px; line-height: 1.35; }
    .feature-shortcut-copy small { color: var(--muted); font-size: 10px; line-height: 1.45; margin-top: 4px; }
    .quote-box {
      background: linear-gradient(145deg, rgba(31, 24, 19, 0.8), rgba(22, 18, 14, 0.9));
      border: 1px solid var(--border); border-left: 3px solid var(--gold);
      border-radius: var(--radius); padding: 20px 22px; color: #d4c5b7; font-weight: 300; font-size: 14px;
      box-shadow: 0 12px 30px rgba(0,0,0,0.3);
    }
    .quote-box strong { display: block; color: var(--gold); font-size: 12px; margin-top: 8px; font-weight: 600; }

    /* Controls & Toolbar */
    .toolbar {
      display: flex; gap: 12px; align-items: center; margin-bottom: 28px; flex-wrap: wrap;
      background: var(--surface); padding: 14px 18px; border-radius: var(--radius-lg); border: 1px solid var(--border);
    }
    .search-wrap {
      position: relative; flex: 1; min-width: 220px;
    }
    .search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
    .control {
      width: 100%; color: var(--cream); background: var(--bg); border: 1px solid var(--border);
      border-radius: 14px; padding: 11px 16px; outline: none; font-size: 14px; font-family: inherit;
      transition: border-color 0.2s, box-shadow 0.2s;
    }
    .search-wrap .control { padding-left: 44px; }
    .mobile-filter-toggle {
      display:none; align-items:center; justify-content:center; gap:6px;
      min-height:48px; padding:0 14px; border:1px solid var(--border); border-radius:14px;
      background:var(--bg); color:var(--cream); font-family:inherit; font-size:12px; font-weight:600; cursor:pointer;
    }
    .mobile-filter-toggle.active { border-color:var(--gold); color:var(--gold); background:rgba(255,181,71,.08); }
    .control:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 181, 71, 0.12); }
    select.control {
      width: auto; cursor: pointer; min-width: 130px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a69788' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
      background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; -webkit-appearance: none;
    }
    .view-toggle {
      display: flex; padding: 3px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); gap: 2px;
    }
    .view-btn {
      padding: 8px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--muted);
      cursor: pointer; font-size: 13px; font-weight: 600; transition: all 0.2s; display: flex; align-items: center; gap: 6px;
    }
    .view-btn.active { background: var(--surface-card); color: var(--gold); border: 1px solid var(--border-gold); }

    .collection-head {
      display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
      margin: 4px 2px 18px;
    }
    .collection-head h2 { font-size: 21px; letter-spacing: -0.02em; }
    .collection-head p { color: var(--muted); font-size: 12px; margin-top: 2px; }
    .clear-filter-btn {
      border: 0; background: transparent; color: var(--gold); font: inherit; font-size: 12px;
      cursor: pointer; padding: 7px 10px; border-radius: 999px;
    }
    .clear-filter-btn:hover { background: rgba(255, 181, 71, 0.1); }
    .clear-filter-btn:disabled { color: var(--muted-dark); cursor: default; opacity: .65; }
    .clear-filter-btn:disabled:hover { background: transparent; }

    /* Vertical Aspect Ratio Uniformity Rule */
    .vertical-aspect {
      aspect-ratio: 2 / 3;
      width: 100%;
      object-fit: cover;
      border-radius: 12px;
    }

    /* Collection Views */
    .collection-grid {
      display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; padding-bottom: 80px;
    }
    
    /* Grid Card Style */
    .movie-card {
      position: relative; border-radius: var(--radius-lg); overflow: hidden;
      background: var(--surface-card); border: 1px solid var(--border);
      box-shadow: 0 12px 36px rgba(0,0,0,0.4); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      cursor: pointer; display: flex; flex-direction: column; height: 420px;
    }
    .movie-card:hover {
      transform: translateY(-6px); border-color: var(--border-gold); box-shadow: var(--shadow-gold), 0 20px 50px rgba(0,0,0,0.6);
    }
    .poster-bg {
      position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #18120d;
    }
    .poster-bg img {
      width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease;
    }
    .movie-card:hover .poster-bg img { transform: scale(1.05); }
    .poster-overlay {
      position: absolute; inset: 0;
      background: linear-gradient(
        to bottom,
        rgba(13, 10, 8, 0) 0%,
        rgba(13, 10, 8, 0) 42%,
        rgba(13, 10, 8, 0.12) 52%,
        rgba(13, 10, 8, 0.68) 72%,
        rgba(13, 10, 8, 0.96) 92%,
        rgba(13, 10, 8, 1) 100%
      );
    }
    .card-header {
      position: relative; z-index: 2; padding: 16px; display: flex; flex-wrap:wrap; gap:6px; justify-content: space-between; align-items: flex-start;
    }
    .badge-format {
      font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
      background: rgba(13, 10, 8, 0.8); backdrop-filter: blur(8px);
      border: 1px solid rgba(255, 255, 255, 0.15); color: var(--cream);
    }
    .badge-release {
      font-size:10px; font-weight:700; padding:4px 9px; border-radius:999px;
      background:rgba(13,10,8,.76); backdrop-filter:blur(8px);
      border:1px solid rgba(255,181,71,.4); color:var(--gold);
    }
    .badge-watch-count {
      font-size:10px; font-weight:700; padding:4px 9px; border-radius:999px;
      background:rgba(255,181,71,.9); color:#1a0f05; box-shadow:0 5px 14px rgba(0,0,0,.22);
    }
    .card-content {
      position: relative; z-index: 2; margin-top: auto; padding: 20px 18px 18px;
    }
    .watch-date-chip {
      font-family: 'Space Grotesk', sans-serif; font-size: 11px; color: var(--gold); font-weight: 700;
      letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; display: flex; align-items: center; gap: 6px;
    }
    .movie-card h3 {
      font-size: 20px; line-height: 1.25; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.02em;
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }
    .card-meta-pills {
      display: flex; flex-wrap: wrap; gap: 6px; font-size: 11px; color: var(--muted); margin-bottom: 10px;
    }
    .meta-pill {
      display: inline-flex; align-items: center; gap: 4px; background: rgba(255, 255, 255, 0.08);
      padding: 3px 8px; border-radius: 6px; backdrop-filter: blur(4px);
    }
    .card-stars {
      color: var(--gold); font-size: 14px; letter-spacing: 2px;
    }
    .no-poster-fill {
      width: 100%; height: 100%; display: grid; place-items: center; font-size: 58px; color: rgba(255,181,71,0.25);
      background: radial-gradient(circle at center, #2e2017 0%, #120e0b 100%);
    }

    /* List View Style */
    .collection-grid.list-view {
      grid-template-columns: 1fr; gap: 14px;
    }
    .collection-grid.list-view .movie-card {
      height: 140px; flex-direction: row; border-radius: var(--radius);
    }
    .collection-grid.list-view .poster-bg { width: 110px; position: relative; }
    .collection-grid.list-view .poster-overlay {
      background: linear-gradient(to right, rgba(13,10,8,0) 0%, rgba(13,10,8,0.85) 100%);
    }
    .collection-grid.list-view .card-header { position: absolute; right: 16px; top: 16px; }
    .collection-grid.list-view .card-content { flex: 1; margin-top: 0; padding: 16px 20px; display: flex; flex-direction: column; justify-content: center; }

    /* Ticket View Style */
    .collection-grid.ticket-view {
      grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px;
    }
    .ticket-stub-card {
      background: linear-gradient(135deg, #241a13 0%, #17110c 100%);
      border: 1px solid var(--border-gold); border-radius: 20px; position: relative; overflow: hidden;
      display: flex; flex-direction: column; box-shadow: 0 15px 40px rgba(0,0,0,0.6); transition: transform 0.25s, border-color 0.25s;
      cursor: pointer;
    }
    .ticket-stub-card:hover { transform: translateY(-5px); border-color: var(--gold); }
    .ticket-stub-top {
      padding: 16px 18px; border-bottom: 2px dashed rgba(255, 181, 71, 0.3); position: relative;
      display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,0.2);
    }
    .ticket-stub-top::before, .ticket-stub-top::after {
      content: ''; position: absolute; bottom: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); z-index: 5;
    }
    .ticket-stub-top::before { left: -12px; border-right: 1px solid var(--border-gold); }
    .ticket-stub-top::after { right: -12px; border-left: 1px solid var(--border-gold); }
    .ticket-stub-body {
      padding: 18px; display: flex; gap: 14px; flex: 1;
    }
    .ticket-thumb {
      width: 80px; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; flex-shrink: 0; border: 1px solid var(--border); background:#18120d;
    }
    .ticket-thumb img { width: 100%; height: 100%; object-fit: cover; }
    .ticket-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
    .ticket-cinema-badge { font-size: 11px; color: var(--gold); font-weight: 700; text-transform: uppercase; }
    .ticket-title { font-size: 17px; font-weight: 700; margin: 3px 0 5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .ticket-details { font-size: 12px; color: var(--muted); display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 6px; }
    .ticket-barcode {
      height: 28px; background: repeating-linear-gradient(90deg, var(--muted) 0, var(--muted) 2px, transparent 2px, transparent 5px);
      opacity: 0.35; margin-top: auto; border-radius: 4px;
    }

    /* Empty Collection State */
    .empty-state {
      grid-column: 1 / -1; text-align: center; padding: 60px 20px; background: var(--surface-card);
      border: 1px dashed var(--border); border-radius: var(--radius-lg); margin-bottom: 40px;
    }
    .empty-icon { font-size: 58px; margin-bottom: 14px; }
    .empty-state h3 { font-size: 22px; margin-bottom: 8px; color: var(--cream); }
    .empty-state p { color: var(--muted); max-width: 440px; margin: 0 auto 20px; font-size: 14px; }
    .mobile-add-btn { display: none; }

    /* Dialogs / Modals */
    dialog {
      width: min(840px, calc(100% - 24px)); max-height: 92vh; border: 1px solid var(--border-gold);
      border-radius: var(--radius-lg); background: #14100c; color: var(--cream); padding: 0;
      box-shadow: 0 35px 100px rgba(0, 0, 0, 0.85); overflow: hidden; margin: auto;
      display: none; flex-direction: column;
    }
    dialog[open] { display: flex; }
    dialog::backdrop { background: rgba(5, 3, 2, 0.85); backdrop-filter: blur(12px); }
    
    .modal-header {
      padding: 20px 28px 16px; display: flex; align-items: center; justify-content: space-between;
      border-bottom: 1px solid var(--border); background: rgba(20, 16, 12, 0.98);
      position: sticky; top: 0; z-index: 30; backdrop-filter: blur(10px); flex-shrink: 0;
    }
    .modal-header h2 { font-size: 22px; font-weight: 700; }
    .close-modal-btn {
      width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface);
      color: var(--cream); cursor: pointer; display: grid; place-items: center; font-size: 24px; transition: all 0.2s;
      flex-shrink: 0; line-height: 1;
    }
    .close-modal-btn:hover { background: var(--danger-bg); color: var(--danger); border-color: var(--danger); transform: scale(1.06); }

    /* Wizard Steps Bar */
    .wizard-steps {
      display: flex; align-items: center; padding: 12px 28px; background: rgba(0,0,0,0.3); border-bottom: 1px solid var(--border); gap: 10px;
      flex-shrink: 0;
    }
    .wizard-step {
      display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted);
      text-transform: uppercase; letter-spacing: 0.05em;
    }
    .step-num {
      width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border);
      display: grid; place-items: center; font-family: 'Space Grotesk'; font-size: 11px;
    }
    .wizard-step.active { color: var(--gold); }
    .wizard-step.active .step-num { border-color: var(--gold); background: var(--gold); color: #1a0f05; font-weight: 700; }
    .wizard-step.done { color: var(--success); }
    .wizard-step.done .step-num { border-color: var(--success); background: var(--success); color: #fff; }
    .step-divider { flex: 1; height: 1px; background: var(--border); }

    /* Choice Grid in Modal (2 Options) */
    .choice-container { padding: 36px 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; overflow-y: auto; }
    .choice-card-btn {
      padding: 28px 24px; border-radius: var(--radius); background: var(--surface-card); border: 1px solid var(--border);
      text-align: left; cursor: pointer; transition: all 0.25s; color: var(--cream); display: flex; flex-direction: column; justify-content: space-between; min-height: 220px;
    }
    .choice-card-btn:hover {
      border-color: var(--gold); background: var(--surface-hover); transform: translateY(-4px); box-shadow: var(--shadow-gold);
    }
    .choice-icon { font-size: 46px; margin-bottom: 16px; display: block; }
    .choice-card-btn strong { display: block; font-size: 18px; margin-bottom: 6px; }
    .choice-card-btn span { font-size: 13px; color: var(--muted); line-height: 1.5; }
    .choice-card-btn small { color: var(--gold); font-size: 13px; font-weight: 600; margin-top: 16px; display: block; }

    /* Catalog Search Step */
    .catalog-container { padding: 20px 28px 28px; overflow-y: auto; flex: 1; }
    .catalog-header-title { font-size: 14px; font-weight: 700; color: var(--gold); margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
    .catalog-search-bar { position: relative; margin-bottom: 16px; }
    
    .catalog-list-grid {
      display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; padding-bottom: 20px;
    }
    .catalog-item-card {
      position: relative; border-radius: 14px; background: var(--surface-card);
      border: 1px solid var(--border); cursor: pointer; transition: all 0.2s; text-align: left; color: var(--cream);
      overflow: hidden; display: flex; flex-direction: column;
    }
    .catalog-item-card:hover { border-color: var(--border-gold); background: var(--surface-hover); transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,0.5); }
    .catalog-poster-thumb {
      width: 100%; aspect-ratio: 2 / 3; background: #221810; overflow: hidden; position: relative;
    }
    .catalog-poster-thumb img { width: 100%; height: 100%; object-fit: cover; }
    .catalog-item-info { padding: 10px 12px; }
    .catalog-item-info strong { display: block; font-size: 13px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .catalog-item-info span { font-size: 11px; color: var(--muted); display: block; }

    /* Form Step */
    form#movieForm { display: flex; flex-direction: column; flex: 1; overflow: hidden; }
    #rewatchForm, #reviewForm { display:flex; flex-direction:column; flex:1; min-height:0; overflow:hidden; }
    #movieForm {
      min-height: 0; flex: 1; overflow: hidden; flex-direction: column;
    }
    .form-container {
      padding: 20px 28px 28px; overflow-y: auto; overscroll-behavior: contain;
      -webkit-overflow-scrolling: touch; flex: 1; min-height: 0;
    }
    .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .form-col-full { grid-column: 1 / -1; }
    .form-section-title {
      font-size: 12px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em;
      margin: 10px 0 2px; grid-column: 1 / -1; display: flex; align-items: center; gap: 10px;
    }
    .form-section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

    label { display: block; font-size: 12px; font-weight: 600; color: var(--cream); margin-bottom: 6px; }
    textarea.control { min-height: 85px; resize: vertical; }

    /* Media Row (Poster Selected From Catalog + Ticket Uploaded by User) */
    .media-upload-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .media-field-heading {
      min-height:26px; display:flex; align-items:flex-start; justify-content:space-between; gap:10px;
    }
    .media-field-heading label { margin-bottom:6px; }
    .media-clear-btn {
      flex:none; padding:2px 0; border:0; background:transparent; color:var(--muted);
      font:inherit; font-size:10px; font-weight:600; cursor:pointer;
    }
    .media-clear-btn:hover { color:var(--danger); }
    .upload-box-card {
      border: 2px dashed var(--border); border-radius: var(--radius); padding: 12px; text-align: center;
      background: var(--surface); cursor: pointer; transition: all 0.2s; position: relative; overflow: hidden;
      aspect-ratio: 2 / 3; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%;
    }
    .upload-box-card:hover { border-color: var(--gold); background: var(--surface-hover); }
    .upload-preview-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; border-radius: calc(var(--radius) - 2px); }
    .upload-overlay-info {
      position: relative; z-index: 2; background: rgba(13, 10, 8, 0.85); padding: 10px 14px; border-radius: 12px; backdrop-filter: blur(4px);
    }
    .ticket-analysis-panel {
      display:grid; grid-template-columns:42px minmax(0,1fr) auto; align-items:center; gap:12px;
      padding:13px 14px; border:1px solid rgba(232,192,139,.2); border-radius:16px;
      background:linear-gradient(135deg,rgba(255,255,255,.055),rgba(255,255,255,.025));
      box-shadow:inset 0 1px rgba(255,255,255,.04);
    }
    .ticket-analysis-panel[hidden] { display:none!important; }
    .ticket-analysis-icon {
      width:42px; height:42px; display:grid; place-items:center; border-radius:13px;
      color:#1a0f05; background:linear-gradient(145deg,var(--gold),var(--orange));
      font-size:18px; font-weight:800; box-shadow:0 8px 22px rgba(244,119,59,.2);
    }
    .ticket-analysis-copy { min-width:0; display:grid; gap:2px; }
    .ticket-analysis-copy strong { color:var(--cream); font-size:13px; line-height:1.35; }
    .ticket-analysis-copy span { color:var(--muted); font-size:11px; line-height:1.45; }
    .ticket-analysis-panel.is-loading .ticket-analysis-icon { animation:ticketAnalyzerPulse 1.2s ease-in-out infinite; }
    .ticket-analysis-panel.is-success { border-color:rgba(90,204,137,.32); background:rgba(90,204,137,.07); }
    .ticket-analysis-panel.is-success .ticket-analysis-icon { background:#5acc89; }
    .ticket-analysis-panel.is-warning { border-color:rgba(255,181,71,.35); background:rgba(255,181,71,.07); }
    .ticket-analysis-panel.is-error { border-color:rgba(255,107,107,.35); background:rgba(255,107,107,.07); }
    .ticket-analysis-panel.is-error .ticket-analysis-icon { color:white; background:#e75a5a; }
    .ticket-analysis-retry { min-height:38px; padding:7px 12px; white-space:nowrap; font-size:11px; }
    @keyframes ticketAnalyzerPulse {
      0%,100% { transform:scale(1); box-shadow:0 8px 22px rgba(244,119,59,.18); }
      50% { transform:scale(1.07); box-shadow:0 8px 28px rgba(244,119,59,.4); }
    }

    /* Quick Chips */
    .quick-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
    .chip {
      font-size: 11px; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
      color: var(--muted); cursor: pointer; transition: all 0.15s;
    }
    .chip:hover { border-color: var(--border-gold); color: var(--gold); background: var(--surface-hover); }

    /* Interactive Rating Stars */
    .rating-stars-picker { display: flex; gap: 6px; font-size: 28px; cursor: pointer; }
    .star-btn {
      position:relative; width:38px; height:44px; display:grid; place-items:center;
      border:0; padding:0; background:transparent; color:#8c7865;
      font-family:Arial,sans-serif; font-size:34px; line-height:1;
      transition:color .15s,transform .15s; user-select:none; cursor:pointer;
    }
    .star-btn.active, .star-btn:hover { color: var(--gold); transform: scale(1.15); }
    .star-btn.half {
      color:transparent; transform:scale(1.15);
      background:linear-gradient(90deg,var(--gold) 0 50%,#8c7865 50% 100%);
      background-clip:text; -webkit-background-clip:text;
    }
    .rating-value-label {
      align-self:center; margin-left:8px; padding:4px 9px; border:1px solid var(--border);
      border-radius:999px; color:var(--gold); font-size:11px; font-weight:700;
    }

    /* Prominent Sticky Modal Footer with Clear Save Button */
    .modal-footer {
      padding: 16px 28px; border-top: 1px solid var(--border); background: #16110c;
      display: flex; justify-content: space-between; align-items: center; position: sticky; bottom: 0; z-index: 30; flex-shrink: 0;
    }

    /* Ticket Details Modal (Inspector) */
    .ticket-inspect-hero {
      position: relative; height: 260px; overflow: hidden; background: #1a120c; flex-shrink: 0;
    }
    .ticket-inspect-poster {
      position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(25px) brightness(0.4); transform: scale(1.1);
    }
    .ticket-inspect-content {
      position: relative; z-index: 2; height: 100%; display: flex; align-items: flex-end; padding: 22px 28px; gap: 20px;
    }
    .ticket-inspect-cover {
      width: 100px; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.6);
      border: 2px solid var(--border-gold); flex-shrink: 0; background: #221810; position: relative;
    }
    .ticket-inspect-cover img { width: 100%; height: 100%; object-fit: cover; }
    .change-poster-btn {
      position: absolute; left: 6px; right: 6px; bottom: 6px; z-index: 3;
      border: 1px solid rgba(255,255,255,.24); border-radius: 999px; padding: 6px 8px;
      background: rgba(13,10,8,.82); backdrop-filter: blur(10px); color: var(--cream);
      font: inherit; font-size: 9px; font-weight: 700; cursor: pointer;
    }
    .change-poster-btn:hover { background: var(--gold); color: #1a0f05; border-color: var(--gold); }
    .ticket-inspect-title-group h2 { font-size: 26px; font-weight: 700; line-height: 1.2; }
    .ticket-inspect-body { padding: 24px 28px; display: grid; grid-template-columns: 1fr; gap: 20px; overflow-y: auto; }
    .inspect-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: var(--surface-card); padding: 16px; border-radius: var(--radius); border: 1px solid var(--border); }
    .inspect-meta-item strong { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; }
    .inspect-meta-item span { font-size: 14px; font-weight: 600; color: var(--cream); }
    .inspect-quote { background: var(--surface-card); padding: 16px; border-radius: var(--radius); border-left: 3px solid var(--gold); font-style: italic; color: #e6d8cb; }
    .watch-availability-section {
      display:grid; gap:14px; padding:17px; border:1px solid var(--border); border-radius:20px;
      background:linear-gradient(145deg,rgba(35,31,27,.9),rgba(25,23,21,.92));
      box-shadow:inset 0 1px rgba(255,255,255,.035);
    }
    .watch-availability-heading { display:flex; align-items:center; justify-content:space-between; gap:14px; }
    .watch-availability-heading strong, .watch-availability-heading small { display:block; }
    .watch-availability-heading strong { font-size:15px; color:var(--cream); }
    .watch-availability-heading small { margin-top:2px; color:var(--muted); font-size:10px; }
    .watch-region-badge {
      flex:none; display:inline-flex; align-items:center; min-height:28px; padding:5px 9px;
      border:1px solid rgba(255,255,255,.1); border-radius:999px; background:rgba(255,255,255,.055);
      color:#d1d1d6; font-size:10px; font-weight:700; letter-spacing:.04em;
    }
    .watch-provider-content { display:grid; gap:13px; min-height:46px; }
    .watch-provider-group { display:grid; gap:8px; }
    .watch-provider-group > strong { color:var(--gold); font-size:10px; letter-spacing:.08em; text-transform:uppercase; }
    .watch-provider-list { display:flex; flex-wrap:wrap; gap:8px; }
    .watch-provider-pill {
      min-width:0; max-width:220px; min-height:44px; display:inline-flex; align-items:center; gap:9px;
      padding:5px 11px 5px 5px; border:1px solid rgba(255,255,255,.095); border-radius:13px;
      background:rgba(255,255,255,.05); color:#f5f5f7; font-size:11px; font-weight:600;
    }
    .watch-provider-pill > img, .watch-provider-logo-fallback {
      width:34px; height:34px; flex:none; border-radius:9px; background:#f5f5f7;
    }
    .watch-provider-pill > img { display:block; object-fit:cover; }
    .watch-provider-logo-fallback { display:grid; place-items:center; color:#1c1c1e; font-size:12px; }
    .watch-provider-pill > span:last-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .watch-provider-footer {
      padding-top:11px; border-top:1px solid rgba(255,255,255,.075);
      display:flex; align-items:center; justify-content:space-between; gap:12px;
      color:var(--muted-dark); font-size:9px; line-height:1.4;
    }
    .watch-provider-footer a { color:var(--gold); font-weight:700; text-decoration:none; white-space:nowrap; }
    .watch-provider-status {
      min-height:64px; display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:9px;
      padding:12px; border:1px dashed rgba(255,255,255,.1); border-radius:14px;
      color:var(--muted); text-align:center;
    }
    .watch-provider-status > span { display:grid; place-items:center; width:24px; height:24px; }
    .watch-provider-status strong { font-size:11px; font-weight:500; }
    .watch-provider-status i {
      width:18px; height:18px; border:2px solid rgba(255,255,255,.16); border-top-color:var(--gold);
      border-radius:50%; animation:watch-provider-spin .8s linear infinite;
    }
    .watch-provider-retry {
      min-height:30px; padding:5px 11px; border:1px solid rgba(255,255,255,.12);
      border-radius:999px; background:rgba(255,255,255,.075); color:var(--cream);
      font-family:inherit; font-size:10px; font-weight:600; cursor:pointer;
    }
    @keyframes watch-provider-spin { to { transform:rotate(360deg); } }
    .watch-count-pill {
      display:inline-flex; margin-left:8px; padding:3px 9px; border-radius:999px;
      background:rgba(255,181,71,.15); border:1px solid rgba(255,181,71,.35);
      color:var(--gold); font-size:10px; font-weight:700;
    }
    .watch-history-section { display:grid; gap:12px; }
    .watch-history-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
    .watch-history-heading strong, .watch-history-heading small { display:block; }
    .watch-history-heading small { color:var(--muted); font-size:11px; margin-top:2px; }
    .watch-history-heading .btn { padding:9px 16px; font-size:12px; }
    .watch-history-list { display:grid; gap:10px; }
    .watch-history-card {
      display:grid; grid-template-columns:38px minmax(0,1fr); gap:12px; padding:14px;
      border:1px solid var(--border); border-radius:16px; background:var(--surface-card);
    }
    .watch-history-index {
      width:34px; height:34px; display:grid; place-items:center; border-radius:50%;
      background:rgba(255,181,71,.13); border:1px solid rgba(255,181,71,.32);
      color:var(--gold); font:700 12px "Space Grotesk",sans-serif;
    }
    .watch-history-content { min-width:0; }
    .watch-history-top { display:flex; justify-content:space-between; gap:10px; align-items:flex-start; }
    .watch-history-top strong { font-size:13px; }
    .watch-history-top span { color:var(--gold); font-size:10px; font-weight:700; }
    .watch-history-actions { display:flex; align-items:center; gap:8px; }
    .watch-history-edit {
      min-height:28px; padding:4px 10px; border:1px solid rgba(255,255,255,.11); border-radius:999px;
      background:rgba(255,255,255,.055); color:var(--cream); font:inherit; font-size:9px; font-weight:700;
      cursor:pointer;
    }
    .watch-history-edit:hover { border-color:var(--gold); color:var(--gold); background:rgba(255,181,71,.08); }
    .watch-history-meta { display:flex; flex-wrap:wrap; gap:6px 12px; margin-top:5px; color:var(--muted); font-size:11px; }
    .watch-history-content p { margin-top:9px; color:#e6d8cb; font-size:12px; white-space:pre-wrap; }
    .watch-history-content img { width:72px; aspect-ratio:2/3; object-fit:cover; margin-top:10px; border-radius:9px; border:1px solid var(--border); }
    .dialog-subtitle { color:var(--gold); font-size:12px; margin-top:2px; }
    .rewatch-ticket-upload {
      min-height:120px; display:grid; place-items:center; padding:12px; border-radius:16px;
      border:1px dashed var(--border-gold); background:var(--surface-card); cursor:pointer; overflow:hidden;
    }
    .rewatch-ticket-upload:hover { border-color:var(--gold); }
    .rewatch-ticket-upload img { width:min(150px,100%); max-height:230px; object-fit:cover; border-radius:10px; }
    #rewatchTicketOverlay { color:var(--muted); text-align:center; }
    #rewatchTicketOverlay strong { color:var(--cream); }
    .review-form-container { display:grid; align-content:start; gap:12px; }
    .review-form-container textarea { min-height:180px; resize:vertical; }
    .review-rule-note { color:var(--muted); font-size:11px; }
    .inspect-footer-actions { display:flex; align-items:center; gap:10px; margin-left:auto; }
    .inspect-record-actions { display:flex; align-items:center; gap:8px; }
    .inspect-delete-btn { color:var(--danger); border-color:rgba(231,101,90,.38); }
    .inspect-delete-btn:hover { color:#fff; border-color:var(--danger); background:var(--danger); }
    .inspect-delete-btn.confirm-delete { color:#fff; border-color:var(--danger); background:var(--danger); }
    .inspect-share-btn {
      color:#1a0f05; border:0;
      background:linear-gradient(135deg,var(--gold),var(--orange));
      box-shadow:0 9px 24px rgba(244,119,59,.22);
    }
    .inspect-share-btn:disabled { opacity:.65; cursor:wait; }


    /* Story editor */
    .story-editor-modal { width:min(960px,94vw); max-height:min(92vh,900px); }
    .story-editor-subtitle { color:var(--muted); font-size:12px; margin-top:3px; }
    .story-editor-body {
      display:grid; grid-template-columns:minmax(280px, .82fr) minmax(260px, .58fr);
      gap:28px; padding:24px 28px; overflow-y:auto; min-height:0;
    }
    .story-preview-shell {
      position:relative; width:min(100%,360px); aspect-ratio:9/16; margin:auto;
      display:grid; place-items:center; overflow:hidden; border-radius:24px; background:#0d0a08;
      border:1px solid var(--border-gold); box-shadow:0 24px 70px rgba(0,0,0,.52);
    }
    .story-preview-shell img { width:100%; height:100%; object-fit:contain; display:block; }
    .story-preview-loading {
      position:absolute; inset:0; z-index:2; display:grid; place-items:center; padding:24px;
      color:var(--cream); font-size:13px; text-align:center; background:rgba(13,10,8,.72);
      backdrop-filter:blur(8px);
    }
    .story-preview-loading[hidden] { display:none; }
    .story-editor-controls { display:flex; flex-direction:column; gap:16px; align-self:center; }
    .story-control-label { color:var(--cream); font-size:18px; font-weight:700; }
    .story-control-help { color:var(--muted); font-size:12px; line-height:1.55; margin-top:4px; }
    .story-auto-color-btn {
      width:100%; display:flex; align-items:center; gap:13px; padding:14px; text-align:left;
      color:var(--cream); border:1px solid var(--border); border-radius:16px;
      background:var(--surface-card); font:inherit; cursor:pointer; transition:.2s;
    }
    .story-auto-color-btn:hover, .story-auto-color-btn.active { border-color:var(--gold); background:var(--surface-hover); }
    .story-auto-color-btn span:nth-child(2) { display:flex; flex-direction:column; gap:2px; }
    .story-auto-color-btn small { color:var(--muted); font-size:10px; }
    .story-auto-swatch { width:42px; height:42px; flex:none; border-radius:12px; background:#1d110a; border:2px solid rgba(255,255,255,.18); }
    .story-color-picker {
      display:flex; align-items:center; justify-content:space-between; gap:16px; margin:0;
      padding:14px; border:1px solid var(--border); border-radius:16px; background:var(--surface-card);
    }
    .story-color-input-wrap { display:flex; align-items:center; gap:10px; }
    #storyBackgroundColor {
      width:46px; height:38px; padding:2px; border:1px solid var(--border); border-radius:10px;
      background:transparent; cursor:pointer;
    }
    #storyBackgroundHex { min-width:72px; color:var(--gold); font:700 12px "Space Grotesk",sans-serif; }
    .story-color-presets { display:flex; flex-wrap:wrap; gap:10px; }
    .story-color-presets button {
      width:38px; height:38px; padding:0; border:2px solid rgba(255,255,255,.16); border-radius:50%;
      background:var(--swatch); box-shadow:inset 0 0 0 4px rgba(0,0,0,.12); cursor:pointer; transition:.2s;
    }
    .story-color-presets button:hover, .story-color-presets button.active { border-color:var(--gold); transform:scale(1.08); }
    .story-editor-footer { justify-content:flex-end; gap:10px; }
    .story-editor-footer .inspect-share-btn { min-width:170px; }

    .poster-picker-body { padding: 20px 24px 26px; overflow-y: auto; }
    .poster-picker-help { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
    .poster-picker-grid {
      display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px;
    }
    .poster-option {
      border: 2px solid transparent; border-radius: 14px; background: var(--surface-card);
      padding: 0; overflow: hidden; aspect-ratio: 2/3; cursor: pointer; transition: .2s; position: relative;
    }
    .poster-option:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: var(--shadow-gold); }
    .poster-option img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .poster-option.current { border-color: var(--gold); }
    .poster-option.current::after {
      content: 'ใช้อยู่'; position: absolute; right: 6px; bottom: 6px; padding: 3px 7px;
      border-radius: 999px; background: var(--gold); color: #1a0f05; font-size: 9px; font-weight: 700;
    }
    .poster-picker-status { grid-column: 1/-1; text-align: center; padding: 50px 20px; color: var(--muted); }

    /* Toast Notification */
    .toast {
      position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 100px);
      background: var(--gold); color: #1a0f05; font-weight: 700; padding: 12px 24px; border-radius: 999px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.5); z-index: 200; opacity: 0; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      pointer-events: none; font-size: 14px; display: flex; align-items: center; gap: 8px;
    }
    .toast.show { transform: translate(-50%, 0); opacity: 1; }

    /* Responsive Queries */
    @media (max-width: 860px) {
      dialog {
        position:fixed; inset:0; width:100vw!important; height:100dvh; max-height:100dvh!important;
        margin:0; border:0; border-radius:0!important;
      }
      dialog .modal-header { min-height:64px; padding: max(13px,env(safe-area-inset-top)) 16px 12px; }
      dialog .close-modal-btn { width:38px; height:38px; }
      .shell { width: min(100% - 24px, 1200px); }
      header { padding: max(9px, env(safe-area-inset-top)) 0 9px; }
      nav { align-items: center; gap: 9px; }
      .brand { gap: 7px; }
      .brand-logo { width: 40px; height: 40px; border-radius: 12px; }
      .brand-title { max-width: 112px; font-size: 14px; line-height: 1.05; }
      .brand-title small { display: block; overflow: hidden; font-size: 6.5px; letter-spacing: .055em; text-overflow: ellipsis; }
      .user-info-text, #openAddModalBtn { display: none; }
      .nav-actions { flex: 1; min-width: 0; flex-wrap: nowrap; justify-content: flex-end; gap: 7px; }
      .people-search { order: initial; width: auto; min-width: 0; max-width: none; flex: 1 1 auto; }
      .people-search input { height: 40px; min-height: 40px; padding: 8px 8px 8px 30px; font-size: 16px; text-overflow: ellipsis; }
      .people-search .search-icon { left: 10px; }
      .people-results { position: fixed; top: calc(62px + env(safe-area-inset-top)); left: 12px; right: 12px; max-height: min(55vh, 420px); }
      .people-result { min-height: 58px; }
      .google-login-btn { width: auto; height: 40px; flex: 0 0 auto; justify-content: center; gap: 6px; padding: 0 12px; }
      .google-login-btn span { display: inline; font-size: 11px; white-space: nowrap; }
      .user-profile-bar { height: 40px; flex: 0 0 auto; gap: 4px; padding: 4px; }
      .user-avatar { width: 30px; height: 30px; }
      .logout-btn { min-width: 30px; padding: 5px 6px; font-size: 8px; }
      .hero { padding: 28px 2px 12px; grid-template-columns: 1fr; gap: 20px; text-align: left; }
      .quote-box { display: none; }
      .feature-shortcuts-shell { width: calc(100vw - 24px); }
      .feature-shortcuts {
        width: 100%; display: flex; gap: 10px; overflow-x: auto;
        padding: 2px 48px 7px; scroll-padding-inline: 48px;
        scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-inline: contain;
      }
      .feature-shortcuts::-webkit-scrollbar { display: none; }
      .feature-shortcut-card { flex: 0 0 154px; min-height: 202px; scroll-snap-align: start; }
      .feature-shortcut-icon { max-height: none; }
      .toolbar { padding: 10px; border-radius: 18px; gap: 8px; margin-bottom: 22px; }
      .toolbar { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; }
      .search-wrap { min-width:0; }
      .search-wrap .control { min-height: 48px; font-size: 16px; }
      .mobile-filter-toggle { display:inline-flex; }
      .toolbar > select.control { display:none; min-width:0; width:100%; }
      .toolbar.filters-open > select.control { display:block; }
      .toolbar.filters-open #yearFilter, .toolbar.filters-open #formatFilter { grid-column:auto; }
      .toolbar.filters-open #sortSelect { grid-column:1/-1; }
      .view-toggle { width: 100%; grid-column:1/-1; }
      .view-btn { flex: 1; justify-content: center; }
      .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
      .collection-grid.ticket-view { grid-template-columns: 1fr; }
      .movie-card { height: 340px; border-radius: 20px; }
      .card-content { padding: 16px 14px 14px; }
      .movie-card h3 { font-size: 17px; }
      .card-meta-pills { display: none; }
      .choice-container { grid-template-columns: 1fr; gap:12px; padding:16px; align-content:start; }
      .choice-card-btn { min-height:132px; padding:17px; display:grid; grid-template-columns:54px 1fr; column-gap:12px; align-items:center; }
      .choice-card-btn > div { display:grid; grid-template-columns:54px 1fr; column-gap:12px; align-items:center; grid-column:1/-1; }
      .choice-icon { grid-row:1/4; margin:0; font-size:38px; text-align:center; }
      .choice-card-btn .choice-icon { grid-column:1; }
      .choice-card-btn strong, .choice-card-btn span { grid-column:2; }
      .choice-card-btn small { grid-column:2; margin-top:7px; }
      .catalog-list-grid { grid-template-columns: repeat(2, 1fr); }
      .catalog-container { padding:14px 14px calc(24px + env(safe-area-inset-bottom)); }
      .catalog-header-title { position:sticky; top:-14px; z-index:4; margin:-14px -14px 10px; padding:14px; background:#14100c; }
      .catalog-search-bar { position:sticky; top:48px; z-index:4; margin:0 0 12px; padding-bottom:10px; background:#14100c; }
      .catalog-search-bar .control { min-height:48px; font-size:16px; }
      .catalog-list-grid { gap:10px; }
      .catalog-item-info { padding:9px; }
      .poster-picker-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; }
      #storyEditorModal { overflow:hidden; }
      #storyEditorModal .modal-header { min-height:56px; padding-block:max(10px,env(safe-area-inset-top)) 10px; }
      #storyEditorModal .modal-header h2 { font-size:18px; }
      .story-editor-subtitle { display:none; }
      .story-editor-body {
        flex:1; grid-template-columns:1fr; grid-template-rows:minmax(220px,1fr) auto;
        gap:12px; padding:12px 14px; overflow-y:auto; overscroll-behavior:contain;
      }
      .story-preview-shell {
        width:auto; height:min(100%,42dvh,360px); max-width:100%; min-height:0;
        border-radius:16px; align-self:center;
      }
      .story-editor-controls {
        width:100%; align-self:auto; display:grid; grid-template-columns:1fr 1fr; gap:9px;
      }
      .story-editor-controls > div:first-child { grid-column:1/-1; }
      .story-control-label { font-size:15px; }
      .story-control-help { display:none; }
      .story-auto-color-btn { min-height:58px; padding:9px 10px; gap:9px; border-radius:13px; }
      .story-auto-swatch { width:34px; height:34px; border-radius:9px; }
      .story-color-picker { min-height:58px; padding:9px 10px; border-radius:13px; }
      .story-color-picker > span:first-child { display:none; }
      .story-color-input-wrap { width:100%; justify-content:space-between; gap:6px; }
      #storyBackgroundColor { width:40px; height:36px; }
      #storyBackgroundHex { min-width:64px; font-size:11px; text-align:right; }
      .story-color-presets { grid-column:1/-1; justify-content:center; gap:14px; }
      .story-color-presets button { width:34px; height:34px; }
      .story-editor-footer {
        display:grid; grid-template-columns:auto minmax(0,1fr); min-height:64px;
        padding-bottom:max(10px,env(safe-area-inset-bottom));
      }
      .story-editor-footer .inspect-share-btn { min-width:0; }
      .form-grid { grid-template-columns: 1fr; }
      .form-container { padding:14px 14px 24px; }
      .form-grid { gap:14px; }
      .form-section-title { margin-top:7px; font-size:10px; }
      .form-container .control { min-height:48px; font-size:16px; }
      .media-upload-row { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
      .media-upload-row label { min-height:38px; font-size:10px; line-height:1.35; }
      .upload-box-card { border-radius:14px; padding:8px; }
      .upload-overlay-info { padding:8px; font-size:11px; }
      .ticket-analysis-panel { grid-template-columns:38px minmax(0,1fr); gap:10px; padding:12px; }
      .ticket-analysis-icon { width:38px; height:38px; border-radius:12px; }
      .ticket-analysis-copy strong { font-size:12px; }
      .ticket-analysis-copy span { font-size:10px; }
      .ticket-analysis-retry { grid-column:1/-1; width:100%; min-height:42px; }
      .quick-chips { flex-wrap:nowrap; overflow-x:auto; padding:2px 0 5px; scrollbar-width:none; }
      .chip { flex:none; min-height:34px; display:inline-flex; align-items:center; }
      .ticket-inspect-body { grid-template-columns: 1fr; }
      .watch-history-heading { position:sticky; top:-18px; z-index:3; margin:-18px -16px 0; padding:14px 16px 10px; background:#14100c; }
      .watch-history-card { padding:12px; grid-template-columns:32px minmax(0,1fr); gap:9px; }
      .watch-history-index { width:30px; height:30px; }
      #rewatchModal .form-container, #reviewModal .form-container { flex:1; min-height:0; }
      #rewatchModal .modal-footer, #reviewModal .modal-footer { justify-content:flex-end; }
      #inspectModal { overflow:hidden; }
      .ticket-inspect-hero { height:230px; }
      .ticket-inspect-content { flex-direction:row; align-items:flex-end; text-align:left; padding:54px 16px 16px; gap:14px; }
      .ticket-inspect-cover { width:86px; }
      .ticket-inspect-title-group { min-width:0; }
      .ticket-inspect-title-group h2 { font-size:21px; overflow-wrap:anywhere; }
      .ticket-inspect-body { flex:1; min-height:0; padding:18px 16px; gap:14px; }
      .watch-availability-section { padding:14px; border-radius:17px; }
      .watch-provider-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
      .watch-provider-pill { width:100%; max-width:none; padding-right:8px; }
      .watch-provider-footer { align-items:flex-start; }
      .inspect-meta-grid { grid-template-columns:1fr 1fr; padding:13px; gap:10px; }
      .inspect-meta-item span { font-size:12px; overflow-wrap:anywhere; }
      .poster-picker-body { flex:1; min-height:0; padding:16px 14px calc(22px + env(safe-area-inset-bottom)); }
      .mobile-add-btn {
        display: inline-flex; position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom));
        z-index: 45; min-width: 58px; height: 58px; padding: 0 20px; border: 0; border-radius: 999px;
        align-items: center; justify-content: center; gap: 8px; color: #1a0f05; font: inherit;
        font-weight: 700; background: linear-gradient(135deg, var(--gold), var(--orange));
        box-shadow: 0 14px 40px rgba(244,119,59,.42); cursor: pointer;
        min-height: 58px; touch-action: manipulation;
      }
      .toast { bottom: 88px; width: max-content; max-width: calc(100% - 28px); text-align: center; }
      .modal-footer { padding: 10px 14px max(10px,env(safe-area-inset-bottom)); gap: 8px; min-height:68px; }
      .modal-footer > div { flex:1; min-width:0; gap:8px!important; }
      .modal-footer .btn { min-height:46px; padding:10px 14px; }
      #saveMovieBtn { flex:1; padding:12px 14px!important; font-size:14px!important; white-space:nowrap; }
      #cancelModalBtn { padding-inline:12px; }
      .modal-footer #deleteEntryBtn { width:46px; flex:none; padding:0; font-size:0; }
      .modal-footer #deleteEntryBtn::before { content:"🗑️"; font-size:18px; }
      #inspectModal .modal-footer { display:grid; grid-template-columns:1fr; }
      #inspectModal .inspect-record-actions { width:100%; display:grid; grid-template-columns:1fr 1fr; gap:7px; }
      #inspectModal .inspect-footer-actions { width:100%; display:grid; grid-template-columns:1fr auto; gap:7px; }
      #inspectModal .modal-footer .btn { font-size:11px; padding-inline:11px; white-space:nowrap; }
      .profile-form { flex-direction: column; }
      .profile-form .control, .profile-form .btn { width: 100%; min-height: 48px; }
      .profile-dialog-body { padding: 18px 16px 24px; }
      #profileModal .modal-header { padding-top:max(16px,env(safe-area-inset-top)); }
      .social-movies { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
      .social-profile-head { position:sticky; top:-18px; z-index:3; margin:-18px -16px 18px; padding:18px 16px 14px; background:linear-gradient(#14100c 82%,transparent); }
      .social-avatar { width:58px; height:58px; }
      #addEditModal .modal-header { padding-top: max(16px, env(safe-area-inset-top)); }
      #wizardStep1, #wizardStep2 { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
      #wizardStep1 { align-content: start; }
      #movieForm { height: 100%; }
      #addEditModal .modal-footer { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
    }
    @media (max-width: 480px) {
      .shell { width: min(100% - 18px, 1200px); }
      header { padding-block: max(8px, env(safe-area-inset-top)) 8px; }
      nav { gap: 7px; }
      .brand { gap: 6px; }
      .brand-logo { width: 38px; height: 38px; border-radius: 11px; }
      .brand-title { max-width: 91px; font-size: 12px; }
      .brand-title small { font-size: 6.2px; letter-spacing: .045em; margin-top: 2px; }
      .nav-actions { gap: 6px; }
      .people-search input { height: 38px; min-height: 38px; }
      .google-login-btn { width: auto; height: 38px; flex-basis: auto; padding-inline: 10px; }
      .user-profile-bar { height: 38px; }
      .people-results { top: calc(58px + env(safe-area-inset-top)); left: 9px; right: 9px; }
      .hero { padding-top:22px; }
      .eyebrow { margin-bottom:9px; padding:4px 10px; font-size:9px; }
      .hero h1 { font-size: 34px; margin-bottom:10px; }
      .hero-copy { font-size: 13px; line-height:1.55; }
      .feature-shortcuts-shell { width: calc(100vw - 18px); margin-top: 18px; }
      .feature-shortcuts { padding-inline: 43px; scroll-padding-inline: 43px; }
      .feature-shortcut-card { flex-basis: 144px; padding: 10px; border-radius: 18px; }
      .feature-shortcut-copy strong { font-size: 12px; }
      .feature-shortcut-copy small { font-size: 9px; }
      .toolbar > select.control { min-height:44px; padding-left:12px; font-size:12px; }
      .mobile-filter-toggle { min-height:48px; padding-inline:12px; }
      .rating-stars-picker { gap:2px; }
      .star-btn { width:34px; font-size:31px; }
      .view-toggle { min-height:44px; }
      .view-btn { min-height:38px; padding:7px 8px; font-size:11px; }
      .collection-head { margin:2px 2px 13px; align-items:center; }
      .collection-head h2 { font-size:18px; }
      .collection-head p { font-size:10px; }
      .collection-grid { grid-template-columns: 1fr 1fr; }
      .collection-grid { gap:9px; padding-bottom:110px; }
      .movie-card { height: 300px; border-radius:16px; }
      .card-header { padding:10px; }
      .badge-format { padding:3px 7px; font-size:8px; }
      .badge-release { padding:3px 7px; font-size:8px; }
      .card-content { padding:12px 10px 11px; }
      .movie-card h3 { font-size:14px; margin-bottom:5px; }
      .watch-date-chip { font-size: 9px; }
      .card-stars { font-size:11px; letter-spacing:1px; }
      .collection-grid.list-view .movie-card { height:116px; border-radius:15px; }
      .collection-grid.list-view .poster-bg { width:82px; }
      .collection-grid.list-view .card-content { padding:12px 13px; }
      .collection-grid.list-view .card-header { right:8px; top:8px; }
      .ticket-stub-top { padding:13px 15px; }
      .ticket-stub-body { padding:15px; }
      .ticket-thumb { width:68px; }
      .mobile-add-btn { right:12px; bottom:calc(12px + env(safe-area-inset-bottom)); height:56px; min-height:56px; padding:0 17px; }
      .choice-container { padding: 22px 16px; }
      .choice-card-btn { min-height: 175px; padding: 20px; }
      .wizard-steps { padding: 10px 16px; }
      .wizard-step span { display: none; }
      .modal-header { padding: 16px; }
      .modal-header h2 { font-size: 18px; }
      .poster-picker-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
      .social-movie { border-radius:12px; }
      .social-movie-info { padding:9px; }
      .social-movie-info strong { font-size:12px; }
      .social-movie-info small { font-size:10px; }
      #storyEditorModal .modal-header { min-height:54px; }
      .story-editor-body { grid-template-rows:minmax(190px,1fr) auto; padding:9px 12px; gap:9px; }
      .story-preview-shell { height:min(100%,34dvh,280px); border-radius:14px; }
      .story-editor-controls { gap:7px; }
      .story-editor-controls > div:first-child { display:none; }
      .story-auto-color-btn, .story-color-picker { min-height:52px; }
      .story-color-presets { gap:12px; }
      .story-color-presets button { width:31px; height:31px; }
      .toast { font-size:12px; padding:10px 16px; }
    }
    @media (max-width: 370px) {
      .brand-title { display: none; }
    }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        scroll-behavior: auto!important;
        animation-duration: 0.01ms!important;
        transition-duration: 0.01ms!important;
      }
    }

    @media (max-width: 860px) and (max-height: 700px) {
      #storyEditorModal .modal-header { min-height:50px; }
      .story-editor-body { grid-template-rows:minmax(160px,1fr) auto; padding-block:7px; gap:7px; }
      .story-preview-shell { height:min(100%,28dvh,220px); }
      .story-editor-controls { grid-template-columns:1fr 1fr auto; align-items:center; }
      .story-editor-controls > div:first-child { display:none; }
      .story-color-presets { grid-column:auto; flex-wrap:nowrap; gap:6px; }
      .story-color-presets button { width:27px; height:27px; }
      .story-auto-color-btn, .story-color-picker { min-height:48px; }
      .story-auto-color-btn small { display:none; }
      .story-editor-footer { min-height:58px; padding-block:7px max(7px,env(safe-area-inset-bottom)); }
    }

    /* Apple-inspired dark material system */
    :root {
      --bg: #000000;
      --surface: rgba(18, 18, 20, .78);
      --surface-card: #1c1c1e;
      --surface-hover: #2c2c2e;
      --border: rgba(255, 255, 255, .11);
      --border-gold: rgba(255, 159, 10, .52);
      --gold: #ff9f0a;
      --gold-light: #ffd60a;
      --gold-dark: #d67d00;
      --orange: #ff7a00;
      --cream: #f5f5f7;
      --muted: #98989d;
      --muted-dark: #636366;
      --shadow: 0 24px 70px rgba(0, 0, 0, .48);
      --shadow-gold: 0 14px 36px rgba(255, 159, 10, .13);
      --radius-sm: 12px;
      --radius: 20px;
      --radius-lg: 26px;
    }
    html { color-scheme: dark; }
    body {
      background:
        radial-gradient(circle at 50% -18%, rgba(255, 159, 10, .105), transparent 38rem),
        linear-gradient(180deg, #070707 0, #000 42%);
      font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Noto Sans Thai", sans-serif;
      letter-spacing: -.006em;
    }
    .grain { opacity: .012; }
    .glow-spot { opacity: .055; filter: blur(180px); }
    .glow-spot.one { background: #ff9f0a; }
    .glow-spot.two { background: #5e5ce6; }
    header {
      background: rgba(10, 10, 11, .72);
      border-bottom-color: rgba(255, 255, 255, .09);
      backdrop-filter: saturate(180%) blur(26px);
      -webkit-backdrop-filter: saturate(180%) blur(26px);
    }
    .brand-title,
    .brand-title small,
    .eyebrow,
    .stat-val {
      font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Noto Sans Thai", sans-serif;
    }
    .brand-logo {
      border-color: rgba(255, 255, 255, .16);
      background: #1c1c1e;
      box-shadow: inset 0 1px rgba(255, 255, 255, .12), 0 5px 16px rgba(0, 0, 0, .34);
    }
    .google-login-btn,
    .user-profile-bar {
      background: rgba(255, 255, 255, .075);
      border-color: rgba(255, 255, 255, .13);
      backdrop-filter: blur(18px) saturate(150%);
      -webkit-backdrop-filter: blur(18px) saturate(150%);
    }
    .google-login-btn:hover { color: var(--cream); border-color: rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .12); }
    .people-results {
      border-color: rgba(255, 255, 255, .14);
      background: rgba(28, 28, 30, .94);
      box-shadow: 0 24px 70px rgba(0, 0, 0, .58);
      backdrop-filter: blur(28px) saturate(180%);
      -webkit-backdrop-filter: blur(28px) saturate(180%);
    }
    .btn { letter-spacing: -.01em; }
    .btn-primary,
    .mobile-add-btn {
      color: #000;
      background: var(--gold);
      box-shadow: 0 10px 30px rgba(255, 159, 10, .22);
    }
    .btn-primary:hover {
      color: #000;
      background: #ffb340;
      box-shadow: 0 14px 36px rgba(255, 159, 10, .28);
    }
    .btn-ghost {
      color: var(--cream);
      background: rgba(255, 255, 255, .07);
      border-color: rgba(255, 255, 255, .12);
    }
    .btn-ghost:hover { color: var(--cream); background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); }
    .hero { padding-top: 58px; }
    .hero h1 { font-weight: 720; letter-spacing: -.055em; }
    .hero h1 em {
      background: linear-gradient(135deg, #ffd60a, #ff9f0a);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
    .eyebrow {
      color: var(--gold);
      background: rgba(255, 159, 10, .09);
      border-color: rgba(255, 159, 10, .2);
      letter-spacing: .14em;
    }
    .feature-shortcut-card,
    .quote-box,
    .toolbar,
    .empty-state {
      border-color: rgba(255, 255, 255, .105);
      background: rgba(28, 28, 30, .68);
      box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 18px 48px rgba(0, 0, 0, .22);
      backdrop-filter: blur(24px) saturate(145%);
      -webkit-backdrop-filter: blur(24px) saturate(145%);
    }
    .feature-shortcut-card:hover {
      border-color: rgba(255, 255, 255, .22);
      box-shadow: inset 0 1px rgba(255, 255, 255, .06), 0 22px 54px rgba(0, 0, 0, .32);
    }
    .feature-shortcut-card.is-primary {
      border-color: color-mix(in srgb, var(--gold) 48%, rgba(255, 255, 255, .12));
      background: linear-gradient(155deg, color-mix(in srgb, var(--gold) 10%, #1c1c1e), rgba(28, 28, 30, .7));
      box-shadow: inset 0 1px color-mix(in srgb, var(--gold) 18%, transparent), 0 18px 50px color-mix(in srgb, var(--gold) 11%, transparent);
    }
    .feature-shortcut-icon { border-color: rgba(255, 255, 255, .1); }
    .quote-box { border-left-color: var(--gold); color: #d1d1d6; }
    .toolbar { padding: 12px; }
    .control,
    .mobile-filter-toggle,
    .view-toggle {
      background: rgba(0, 0, 0, .46);
      border-color: rgba(255, 255, 255, .12);
    }
    .control:focus {
      border-color: rgba(255, 159, 10, .8);
      box-shadow: 0 0 0 4px rgba(255, 159, 10, .13);
    }
    .view-btn.active {
      color: var(--cream);
      background: rgba(255, 255, 255, .13);
      border-color: transparent;
      box-shadow: 0 1px 6px rgba(0, 0, 0, .22);
    }
    .movie-card,
    .ticket-stub-card,
    .social-movie,
    .watch-history-card,
    .watch-availability-section,
    .inspect-meta-grid,
    .inspect-quote {
      border-color: rgba(255, 255, 255, .105);
      background: #1c1c1e;
      box-shadow: 0 16px 44px rgba(0, 0, 0, .32);
    }
    .movie-card:hover { border-color: rgba(255, 255, 255, .2); box-shadow: 0 22px 60px rgba(0, 0, 0, .46); }
    .badge-format,
    .badge-release,
    .change-poster-btn {
      background: rgba(20, 20, 22, .72);
      border-color: rgba(255, 255, 255, .18);
      backdrop-filter: blur(16px) saturate(160%);
      -webkit-backdrop-filter: blur(16px) saturate(160%);
    }
    .badge-watch-count { background: var(--gold); color: #000; }
    dialog {
      color: var(--cream);
      background: rgba(18, 18, 20, .96);
      border-color: rgba(255, 255, 255, .14);
      box-shadow: 0 38px 110px rgba(0, 0, 0, .72);
      backdrop-filter: blur(30px) saturate(160%);
      -webkit-backdrop-filter: blur(30px) saturate(160%);
    }
    dialog::backdrop { background: rgba(0, 0, 0, .74); backdrop-filter: blur(14px); }
    .modal-header,
    .modal-footer,
    .wizard-steps {
      background: rgba(28, 28, 30, .86);
      border-color: rgba(255, 255, 255, .09);
      backdrop-filter: blur(24px) saturate(160%);
      -webkit-backdrop-filter: blur(24px) saturate(160%);
    }
    .close-modal-btn { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .12); }
    .choice-card-btn,
    .catalog-item-card,
    .upload-box-card,
    .chip,
    .story-auto-color-btn,
    .story-color-picker,
    .poster-option,
    .rewatch-ticket-upload {
      color: var(--cream);
      background: rgba(44, 44, 46, .62);
      border-color: rgba(255, 255, 255, .11);
    }
    .choice-card-btn:hover,
    .catalog-item-card:hover,
    .chip:hover {
      color: var(--cream);
      background: rgba(58, 58, 60, .8);
      border-color: rgba(255, 255, 255, .2);
    }
    .catalog-header-title,
    .catalog-search-bar,
    .watch-history-heading {
      background: rgba(18, 18, 20, .96);
      backdrop-filter: blur(24px) saturate(160%);
      -webkit-backdrop-filter: blur(24px) saturate(160%);
    }
    .social-profile-head { background: linear-gradient(rgba(18, 18, 20, .98) 82%, transparent); }
    .toast { color: #000; background: #f5f5f7; box-shadow: 0 16px 44px rgba(0, 0, 0, .45); }
