/* ═══════════════════════════════════════════════════════════════════
   LOVEFLIX — undangan bergaya aplikasi streaming sinematik
   ═══════════════════════════════════════════════════════════════════ */
:root {
    --bg: #0b0809;
    --bg2: #120d0f;
    --card: #1a1315;
    --card2: #231a1d;
    --line: rgba(255, 236, 222, .09);
    --wine: #5c0b1d;
    --crimson: #c8213f;
    --rose: #e58f98;
    --gold: #e3b781;
    --gold-l: #f6dfb4;
    --ink: #f7efe8;
    --mute: #a8999a;
    --dim: #6f6365;
    --grad: linear-gradient(120deg, #f6dfb4 0%, #e3b781 40%, #e58f98 75%, #c8213f 100%);
    --f-brand: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
    --f-ui: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --f-serif: 'Cormorant Garamond', Georgia, serif;
    --w: 480px;
    --tab-h: 64px;
    --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: #050304; }
body {
    font-family: var(--f-ui);
    color: var(--ink);
    background:
        radial-gradient(900px 600px at 50% -10%, rgba(200, 33, 63, .14), transparent 70%),
        #050304;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body.no-scroll { overflow: hidden; height: 100vh; height: 100dvh; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
svg { display: block; }

/* ══════════ COVER · PROFILE PICKER ══════════ */
.intro {
    position: fixed; inset: 0; z-index: 2000;
    background:
        radial-gradient(600px 420px at 50% 115%, rgba(200, 33, 63, .28), transparent 70%),
        radial-gradient(520px 380px at 50% -15%, rgba(227, 183, 129, .12), transparent 70%),
        var(--bg);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.picker {
    width: min(100%, 440px);
    padding: 28px 24px calc(28px + var(--safe-b));
    display: flex; flex-direction: column; align-items: center; text-align: center;
    animation: pkIn 1s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes pkIn { from { opacity: 0; transform: scale(1.06); } }
.pk-logo { width: 178px; height: auto; filter: drop-shadow(0 4px 22px rgba(200, 33, 63, .45)); }
.pk-kicker { margin-top: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); opacity: .85; }
.pk-title { margin: 34px 0 28px; font-weight: 500; font-size: clamp(26px, 7.4vw, 32px); letter-spacing: -.01em; }
.pk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 132px)); gap: 26px 26px; justify-content: center; }
.pf { display: flex; flex-direction: column; align-items: center; gap: 10px; position: relative; transition: transform .25s; animation: pfIn .7s cubic-bezier(.2, .8, .2, 1) both; }
.pf:nth-child(2) { animation-delay: .08s; } .pf:nth-child(3) { animation-delay: .16s; } .pf:nth-child(4) { animation-delay: .24s; }
@keyframes pfIn { from { opacity: 0; transform: translateY(14px); } }
.pf-ava {
    width: 116px; height: 116px; border-radius: 14px; position: relative; overflow: hidden;
    box-shadow: 0 0 0 0 rgba(246, 223, 180, 0), 0 14px 30px rgba(0, 0, 0, .45);
    transition: box-shadow .25s, transform .25s;
}
.pf:hover .pf-ava, .pf:focus-visible .pf-ava { box-shadow: 0 0 0 3px var(--ink), 0 14px 30px rgba(0, 0, 0, .45); }
.pf:active { transform: scale(.95); }
.pf-ava.a1 { background: linear-gradient(140deg, #f6dfb4 0%, #e58f98 52%, #c8213f 100%); }
.pf-ava.a2 { background: linear-gradient(140deg, #8e1530, #3a0712); }
.pf-ava.a3 { background: linear-gradient(140deg, #c9a46b, #6b4a22); }
.pf-ava.a4 { background: linear-gradient(140deg, #6e4a7e, #24142c); }
.pf-ava::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 80% at 20% 0%, rgba(255, 255, 255, .28), transparent 55%); }
.pf-face { position: absolute; inset: 0; }
.pf-face i { position: absolute; top: 38%; width: 9px; height: 13px; border-radius: 50%; background: rgba(20, 6, 10, .78); }
.pf-face i:first-child { left: 34%; } .pf-face i:nth-child(2) { right: 34%; }
.pf-face b { position: absolute; left: 50%; top: 56%; width: 44px; height: 22px; margin-left: -22px; border: 4px solid rgba(20, 6, 10, .78); border-top: 0; border-radius: 0 0 44px 44px; }
.pf-ava em {
    position: absolute; right: 8px; bottom: 6px; font-style: normal;
    font-family: var(--f-brand); font-size: 26px; color: rgba(255, 255, 255, .9); line-height: 1;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}
/* pfGlow: tidak lagi menganimasikan box-shadow. Lapisan statis (urutan tumpuk sama seperti daftar shadow asli):
   ::before = drop shadow (paling bawah), .pf-glow = glow puncak, ::after = glow awal; glow di-crossfade lewat opacity. */
.pf-guest { z-index: 0; }
.pf-guest .pf-ava, .pf-guest:hover .pf-ava, .pf-guest:focus-visible .pf-ava { box-shadow: 0 0 0 3px var(--gold-l); } /* dulu animasi menimpa gaya hover */
.pf-guest::before, .pf-guest::after, .pf-glow {
    content: ''; position: absolute; z-index: -1; top: 0; left: 50%; width: 116px; height: 116px; margin-left: -58px;
    border-radius: 14px; pointer-events: none;
}
.pf-guest::before { box-shadow: 0 14px 30px rgba(0, 0, 0, .45); }
.pf-glow { box-shadow: 0 0 50px rgba(229, 143, 152, .75); opacity: 0; animation: pfGlow 2.6s ease-in-out infinite; }
.pf-guest::after { box-shadow: 0 0 34px rgba(229, 143, 152, .5); animation: pfGlowA 2.6s ease-in-out infinite; }
.pf-guest.picked::before, .pf-guest.picked::after, .pf-guest.picked .pf-glow { animation: none; opacity: 0; }
@keyframes pfGlow { 50% { opacity: 1; } }
@keyframes pfGlowA { 50% { opacity: 0; } }
.pf-badge {
    position: absolute; top: -9px; left: 50%; transform: translateX(-50%); z-index: 2; white-space: nowrap;
    font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
    padding: 4px 9px; border-radius: 99px; background: var(--crimson); color: #fff;
    box-shadow: 0 4px 14px rgba(200, 33, 63, .55);
}
.pf-name { font-size: 14px; color: var(--mute); max-width: 132px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .2s; }
.pf-guest .pf-name { color: var(--ink); font-weight: 700; }
.pf:hover .pf-name { color: var(--ink); }
.pk-to { margin-top: 34px; font-size: 12.5px; line-height: 1.7; color: var(--mute); }
.pk-to b { display: block; font-size: 17px; color: var(--ink); font-weight: 700; letter-spacing: .01em; }
.pk-hint { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--dim); letter-spacing: .04em; }
/* dotPing: piringan ::after (scale + opacity); warnanya = warna titik, jadi menumpuk di atas titik tidak mengubah tampilan */
.pk-dot { position: relative; z-index: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--crimson); }
.pk-dot::after { content: ''; position: absolute; left: -9px; top: -9px; width: 25px; height: 25px; border-radius: 50%; background: rgba(200, 33, 63, .6); transform: scale(.28); animation: dotPing 1.6s infinite; }
@keyframes dotPing { 0% { transform: scale(.28); opacity: 1; } 70% { transform: scale(1); opacity: 0; } 100% { transform: scale(.28); opacity: 0; } }

.intro.zooming .picker { transition: opacity .5s .1s, transform .9s cubic-bezier(.7, 0, .2, 1); opacity: 0; transform: scale(1.12); }
.pf.picked .pf-ava { visibility: hidden; }
.zoomer { position: fixed; z-index: 3; pointer-events: none; display: none; border-radius: 14px; }
.intro.zooming .zoomer { display: block; }

/* studio ident */
.ident {
    position: absolute; inset: 0; z-index: 4; background: #000;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity .35s;
}
.intro.ident-on .ident { opacity: 1; visibility: visible; }
.id-logo { width: min(72vw, 300px); height: auto; position: relative; z-index: 2; opacity: 0; filter: drop-shadow(0 0 30px rgba(200, 33, 63, .6)); }
.intro.ident-on .id-logo { animation: idLogo 2.3s cubic-bezier(.2, .7, .2, 1) .05s both; }
@keyframes idLogo {
    0% { opacity: 0; transform: scale(.82); letter-spacing: 0; filter: blur(8px) drop-shadow(0 0 30px rgba(200, 33, 63, .6)); }
    25% { opacity: 1; filter: blur(0) drop-shadow(0 0 30px rgba(200, 33, 63, .6)); }
    75% { opacity: 1; transform: scale(1.04); }
    100% { opacity: 0; transform: scale(2.6); filter: blur(4px) drop-shadow(0 0 30px rgba(200, 33, 63, .6)); }
}
.id-sub { position: relative; z-index: 2; margin-top: 4px; font-size: 11px; letter-spacing: .5em; text-transform: uppercase; color: var(--gold); opacity: 0; }
.intro.ident-on .id-sub { animation: idSub 2s ease .35s both; }
@keyframes idSub { 0% { opacity: 0; transform: translateY(6px); } 30%, 70% { opacity: .85; transform: none; } 100% { opacity: 0; } }
.id-streaks { position: absolute; inset: 0; display: flex; justify-content: center; align-items: stretch; gap: 0; overflow: hidden; }
.id-streaks i {
    width: calc(100% / 18); flex: none;
    background: linear-gradient(180deg, transparent, hsl(calc(340 + var(--i) * 3), 80%, calc(40% + var(--i) * 2%)) 50%, transparent);
    transform: scaleY(0); opacity: 0; transform-origin: 50% 50%;
}
.id-streaks i:nth-child(3n) { background: linear-gradient(180deg, transparent, #f6dfb4 50%, transparent); }
.id-streaks i:nth-child(4n+1) { background: linear-gradient(180deg, transparent, #e58f98 50%, transparent); }
.intro.ident-on .id-streaks i { animation: streak 1.25s cubic-bezier(.3, 0, .2, 1) calc(1.15s + (var(--i) * .018s)) both; }
.intro.ident-on .id-streaks i:nth-child(odd) { animation-delay: calc(1.2s + (18 - var(--i)) * .02s); }
@keyframes streak {
    0% { transform: scaleY(0) scaleX(.2); opacity: 0; }
    40% { transform: scaleY(1.3) scaleX(1); opacity: .9; }
    100% { transform: scaleY(2.2) scaleX(3); opacity: 0; }
}
.intro.leaving { animation: introOut .7s ease forwards; }
@keyframes introOut { to { opacity: 0; } }

/* ══════════ MUSIC ══════════ */
.music-toggle-btn {
    position: fixed; z-index: 1002; top: 9px; right: max(12px, calc(50% - var(--w) / 2 + 12px));
    width: 40px; height: 40px; border-radius: 50%;
    display: none; align-items: center; justify-content: center;
    background: rgba(20, 14, 16, .72); color: var(--gold-l);
    border: 1px solid rgba(246, 223, 180, .28);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .4);
    transition: transform .2s;
}
body.opened .music-toggle-btn { display: flex; animation: popIn .5s cubic-bezier(.34, 1.56, .64, 1) .4s both; }
@keyframes popIn { from { opacity: 0; transform: scale(.6); } }
.music-toggle-btn:active { transform: scale(.92); }
.music-toggle-btn svg { width: 18px; height: 18px; }
.eq { display: flex; align-items: flex-end; gap: 2.5px; height: 16px; }
.eq i { width: 3px; background: var(--grad); border-radius: 2px; height: 100%; transform: scaleY(.3); transform-origin: 50% 100%; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; } .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 50% { transform: scaleY(1); } }

/* ══════════ APP SHELL ══════════ */
.app {
    max-width: var(--w); margin: 0 auto; min-height: 100vh;
    background: var(--bg); position: relative;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .04), 0 0 80px rgba(0, 0, 0, .7);
    padding-bottom: calc(var(--tab-h) + var(--safe-b) + 12px);
    overflow-x: clip;
}
.topbar {
    position: fixed; top: 0; z-index: 900; width: 100%; max-width: var(--w); left: 50%; transform: translateX(-50%);
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 12px 16px; height: 58px;
    background: linear-gradient(180deg, rgba(5, 3, 4, .75), transparent);
    transition: background .35s, box-shadow .35s;
}
.topbar.solid { background: rgba(11, 8, 9, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--line); }
.tb-logo { width: 112px; height: auto; margin-top: 2px; }
.tb-chip {
    display: inline-flex; align-items: center; gap: 8px; min-width: 0;
    padding: 4px 12px 4px 4px; border-radius: 99px;
    background: rgba(255, 255, 255, .07); border: 1px solid var(--line);
    font-size: 11.5px; color: var(--mute);
    margin-right: 48px;
}
.tb-ava {
    width: 26px; height: 26px; border-radius: 7px; flex: none; display: grid; place-items: center;
    background: linear-gradient(140deg, #f6dfb4, #e58f98 52%, #c8213f); color: #2a0a12;
    font-family: var(--f-brand); font-size: 16px; padding-top: 2px;
}
.tb-for { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 34vw; }
.tb-for b { color: var(--ink); font-weight: 700; }

/* ══════════ HERO ══════════ */
.hero { position: relative; min-height: 640px; height: 92vh; height: 92svh; max-height: 820px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; background: #140b0e; }
.hs { position: absolute; inset: -4%; background-size: cover; background-position: center 30%; opacity: 0; transition: opacity 1.4s ease; }
.hs.on { opacity: 1; animation: kb 11s ease-out both; }
.hs.alt.on { animation-name: kb2; }
@keyframes kb { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.14) translate(-2%, -2%); } }
@keyframes kb2 { from { transform: scale(1.14) translate(2%, 0); } to { transform: scale(1.03) translate(0, -1%); } }
.hero-shade {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(11, 8, 9, .55) 0%, transparent 22%, transparent 38%, rgba(11, 8, 9, .72) 66%, var(--bg) 98%),
        linear-gradient(90deg, rgba(11, 8, 9, .35), transparent 60%);
}
.hs.art {
    background:
        radial-gradient(70% 50% at 50% 35%, rgba(229, 143, 152, .35), transparent 70%),
        radial-gradient(90% 60% at 80% 10%, rgba(227, 183, 129, .25), transparent 60%),
        linear-gradient(170deg, #3a0712 0%, #1a0509 55%, #0b0809 100%);
    display: flex; align-items: center; justify-content: center;
}
.art-glow { position: absolute; left: 50%; top: 32%; width: 300px; height: 300px; margin: -150px 0 0 -150px; border-radius: 50%; background: radial-gradient(circle, rgba(246, 223, 180, .25), transparent 65%); animation: glowPulse 5s ease-in-out infinite; }
@keyframes glowPulse { 50% { transform: scale(1.18); opacity: .7; } }
.art-mono { position: absolute; top: 18%; display: flex; align-items: center; gap: 6px; font-family: var(--f-serif); }
.art-mono b { font-size: 150px; font-weight: 500; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.art-mono i { font-size: 54px; font-style: italic; color: var(--gold-l); opacity: .7; margin-top: 30px; }
.art-lines { position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 46px, rgba(246, 223, 180, .05) 46px 47px); }
.hero-body { position: relative; z-index: 2; padding: 0 20px 26px; }
.h-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .28em; color: var(--ink); opacity: .92; }
.h-l { font-family: var(--f-brand); font-size: 22px; letter-spacing: 0; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h-title {
    margin: 4px 0 10px; font-family: var(--f-brand); font-weight: 400; line-height: .88;
    font-size: clamp(64px, 19vw, 92px); letter-spacing: .01em;
    display: flex; flex-direction: column;
    text-shadow: 0 6px 30px rgba(0, 0, 0, .5);
}
.h-title em { font-family: var(--f-serif); font-style: italic; font-size: .5em; line-height: .9; color: var(--gold); margin: 2px 0 2px 4px; }
.h-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: #ddd0cb; font-weight: 600; }
.h-meta .match { color: #5fd38b; font-weight: 800; }
.h-meta .pill { border: 1px solid rgba(255, 255, 255, .45); border-radius: 4px; padding: 0 6px; font-size: 11px; line-height: 18px; }
.h-genres { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--ink); }
.h-genres i { width: 4px; height: 4px; border-radius: 50%; background: var(--crimson); }
.h-syn { margin-top: 12px; font-size: 13.5px; line-height: 1.6; color: #cfc2bd; max-width: 40ch; }
.h-actions { display: flex; gap: 10px; margin-top: 18px; }
.h-actions .btn { flex: 1; }
.hero-dots { position: absolute; z-index: 2; right: 18px; top: 46%; display: flex; flex-direction: column; gap: 6px; }
.hero-dots i { width: 3px; height: 14px; border-radius: 3px; background: rgba(255, 255, 255, .3); transition: height .4s, background .4s; }
.hero-dots i.on { height: 26px; background: var(--gold-l); }

/* ══════════ BUTTONS ══════════ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 46px; padding: 0 20px; border-radius: 8px;
    font-size: 14.5px; font-weight: 800; letter-spacing: .01em;
    transition: transform .15s, filter .2s, background .2s, box-shadow .2s;
    white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(.96); }
.btn.sm { height: 40px; font-size: 13.5px; padding: 0 16px; }
.btn.sm svg { width: 17px; height: 17px; }
.btn.wide { width: 100%; height: 50px; margin-top: 18px; }
.btn-play { background: var(--ink); color: #120708; box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
.btn-play:hover { filter: brightness(.92); }
.btn-ghost { background: rgba(120, 110, 112, .38); color: var(--ink); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(120, 110, 112, .5); }
.btn-ghost .ml-check { display: none; }
.btn-ghost.added .ml-plus { display: none; }
.btn-ghost.added .ml-check { display: block; color: #5fd38b; }
.btn-line { border: 1px solid rgba(246, 223, 180, .45); color: var(--gold-l); background: rgba(227, 183, 129, .06); }
.btn-line:hover { background: rgba(227, 183, 129, .14); }
.btn.sent { background: #5fd38b; color: #062a14; }
.btn:disabled { opacity: .75; cursor: default; }

/* ══════════ BLOCKS ══════════ */
.block { padding: 30px 0 6px; position: relative; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 20px; margin-bottom: 14px; }
.row-head .row-title { padding: 0; margin: 0; }
.row-head.sub { margin-top: 26px; }
.row-title { font-size: 20px; font-weight: 800; letter-spacing: -.01em; padding: 0 20px; margin-bottom: 14px; }
.row-sub { font-size: 12px; color: var(--mute); font-weight: 600; white-space: nowrap; }

[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
[data-reveal].shown { opacity: 1; transform: none; }

/* premiere */
.premiere {
    margin: 0 16px; padding: 22px 20px 20px; border-radius: 16px; position: relative; overflow: hidden; text-align: center;
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(200, 33, 63, .35), transparent 60%),
        linear-gradient(180deg, #2a0d15, #160b0e);
    border: 1px solid rgba(229, 143, 152, .22);
    box-shadow: 0 20px 50px rgba(92, 11, 29, .35);
}
.premiere::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(255, 255, 255, .02) 22px 23px); pointer-events: none; }
.pr-head { display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; font-weight: 800; letter-spacing: .18em; }
.pr-live { display: inline-flex; align-items: center; gap: 7px; color: #fff; background: var(--crimson); padding: 5px 10px; border-radius: 4px; }
.pr-live i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.pr-ep { color: var(--gold); }
.pr-title { margin-top: 18px; font-family: var(--f-brand); font-weight: 400; font-size: 46px; letter-spacing: .03em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pr-date { margin-top: 6px; font-size: 14px; color: #e6d7d1; font-weight: 600; }
.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 20px 0 18px; }
.cd-box { background: rgba(0, 0, 0, .35); border: 1px solid var(--line); border-radius: 10px; padding: 12px 0 9px; }
.cd-box b { display: block; font-family: var(--f-brand); font-weight: 400; font-size: 36px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.cd-box span { display: block; margin-top: 4px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); font-weight: 700; }

/* cast */
.cast { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 0 16px; }
.poster {
    aspect-ratio: 2 / 3; border-radius: 10px; position: relative; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 14px 10px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .5);
}
.poster::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .65)); }
.p-groom { background: radial-gradient(90% 60% at 50% 25%, rgba(227, 183, 129, .45), transparent 70%), linear-gradient(170deg, #4a2a14, #1c0f08 70%); }
.p-bride { background: radial-gradient(90% 60% at 50% 25%, rgba(229, 143, 152, .5), transparent 70%), linear-gradient(170deg, #5c0b1d, #1f0509 70%); }
.po-init { position: absolute; top: 4%; left: 0; right: 0; text-align: center; font-family: var(--f-serif); font-size: 150px; line-height: 1; font-weight: 500; color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; opacity: .92; }
.po-name { position: relative; z-index: 2; font-family: var(--f-brand); font-size: 30px; line-height: 1; letter-spacing: .05em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.po-tag { position: relative; z-index: 2; margin-top: 4px; font-size: 8.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-l); font-weight: 700; }
.cast-name { margin-top: 12px; font-size: 15px; font-weight: 800; line-height: 1.3; }
.cast-role { margin-top: 2px; font-size: 12.5px; color: var(--mute); }
.cast-role b { color: var(--gold); font-weight: 700; }
.cast-bio { margin-top: 6px; font-size: 12px; line-height: 1.5; color: #bfb1ad; }

/* quote */
.quote {
    margin: 4px 16px 0; padding: 30px 22px 26px; border-radius: 16px; text-align: center; position: relative; overflow: hidden;
    background:
        radial-gradient(80% 60% at 50% 0%, rgba(227, 183, 129, .14), transparent 70%),
        var(--card);
    border: 1px solid var(--line);
}
.quote::before, .quote::after { content: ''; position: absolute; left: 0; right: 0; height: 14px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 8px, transparent 8px 18px); }
.quote::before { top: 0; } .quote::after { bottom: 0; }
.q-label { font-size: 10.5px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: var(--crimson); }
.q-salam { margin-top: 12px; font-family: var(--f-serif); font-style: italic; font-size: 18px; color: var(--gold-l); }
.quote blockquote { margin-top: 14px; font-family: var(--f-serif); font-size: 20px; line-height: 1.5; font-weight: 500; color: var(--ink); }
.quote figcaption { margin-top: 12px; font-size: 12px; font-weight: 800; letter-spacing: .18em; color: var(--gold); }
.q-note { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.65; color: #c7b9b4; }

/* episodes */
.eps { padding: 0 12px; display: flex; flex-direction: column; gap: 6px; }
.ep { border-radius: 12px; transition: background .25s; }
.ep:has(.ep-row[aria-expanded="true"]) { background: var(--card); }
.ep-row { width: 100%; display: flex; align-items: center; gap: 14px; padding: 8px; text-align: left; border-radius: 12px; }
.ep-row:active { background: rgba(255, 255, 255, .04); }
.ep-thumb {
    flex: none; width: 132px; aspect-ratio: 16 / 9; border-radius: 6px; position: relative; overflow: hidden;
    background-size: cover; background-position: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .45);
}
.ep-thumb.t1 { background-color: #3a1720; background-image: linear-gradient(135deg, #6e2236, #1d0a10); }
.ep-thumb.t2 { background-color: #3d2716; background-image: linear-gradient(135deg, #8a5a2b, #24140a); }
.ep-thumb.t3 { background-color: #5c0b1d; background-image: linear-gradient(135deg, #c8213f, #3a0712); }
.ep-thumb.t4 { background-color: #4a2a3e; background-image: linear-gradient(135deg, #e58f98, #5c0b1d); }
.ep-thumb[style] { background-color: #222; }
.et-art { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-serif); font-style: italic; font-size: 21px; color: var(--gold-l); text-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
.et-play {
    position: absolute; left: 50%; top: 50%; width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, .9); background: rgba(0, 0, 0, .4); display: grid; place-items: center;
}
.et-play svg { width: 13px; height: 13px; margin-left: 2px; }
.et-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .25); }
.et-bar i { display: block; height: 100%; background: var(--crimson); }
.et-new { position: absolute; top: 6px; left: 6px; font-size: 8.5px; font-weight: 800; letter-spacing: .12em; padding: 2px 6px; border-radius: 3px; background: var(--crimson); color: #fff; }
.ep-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ep-no { font-size: 11px; font-weight: 700; color: var(--mute); letter-spacing: .02em; }
.ep-title { font-size: 16px; font-weight: 800; }
.ep-state { margin-top: 3px; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; }
.ep-state svg { width: 14px; height: 14px; }
.ep-state.done { color: #5fd38b; }
.ep-state.soon { color: var(--gold); }
.ep-chev { width: 22px; height: 22px; flex: none; color: var(--mute); transition: transform .3s; }
.ep-row[aria-expanded="true"] .ep-chev { transform: rotate(180deg); }
.ep-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s cubic-bezier(.2, .7, .2, 1); }
.ep-row[aria-expanded="true"] + .ep-more { grid-template-rows: 1fr; }
.ep-more > div { overflow: hidden; padding: 0 14px; }
.ep-row[aria-expanded="true"] + .ep-more > div { padding-bottom: 16px; }
.ep-desc { font-size: 13px; line-height: 1.6; color: #c7b9b4; padding-top: 4px; }
.ep-dl { margin: 12px 0 14px; display: flex; flex-direction: column; gap: 8px; }
.ep-dl div { display: grid; grid-template-columns: 70px 1fr; gap: 10px; font-size: 13px; }
.ep-dl dt { color: var(--mute); font-weight: 600; }
.ep-dl dd { color: var(--ink); font-weight: 700; }

/* map */
.mapcard { margin: 0 16px; border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.map-frame { position: relative; height: 210px; background: #120d0f; }
.leaflet-map { position: absolute; inset: 0; z-index: 1; }
.leaflet-container { background: #120d0f; font-family: var(--f-ui); }
.leaflet-control-attribution { background: rgba(0, 0, 0, .55) !important; color: #888 !important; font-size: 9px !important; }
.leaflet-control-attribution a { color: #aaa !important; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--card2); color: var(--ink); }
.lf-marker { position: relative; }
.lfm-dot { position: absolute; inset: 6px; border-radius: 50%; background: var(--crimson); border: 3px solid #fff; box-shadow: 0 0 18px rgba(200, 33, 63, .9); }
.lfm-pulse { position: absolute; inset: -8px; border-radius: 50%; background: rgba(200, 33, 63, .35); animation: ping 2s infinite; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.map-illu { position: absolute; inset: 0; display: block; overflow: hidden; background: radial-gradient(60% 70% at 52% 50%, rgba(200, 33, 63, .16), transparent 70%), #110c0e; }
.mi-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 26px 26px; }
.mi-roads { position: absolute; inset: 0; width: 100%; height: 100%; }
.mi-roads path { fill: none; stroke: #3a2f31; stroke-width: 10; stroke-linecap: round; }
.mi-roads path.thin { stroke-width: 5; stroke: #2b2224; }
.mi-roads path.route { stroke: var(--crimson); stroke-width: 4; stroke-dasharray: 8 7; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -30; } }
.mi-pin { position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; margin: -40px 0 0 -19px; color: var(--crimson); filter: drop-shadow(0 6px 10px rgba(200, 33, 63, .6)); z-index: 2; }
.mi-pin svg { width: 100%; height: 100%; fill: rgba(200, 33, 63, .25); }
.mi-pulse { position: absolute; left: 50%; top: 50%; width: 40px; height: 14px; margin: -7px 0 0 -20px; border-radius: 50%; background: rgba(200, 33, 63, .45); animation: ping 2s infinite; }
.map-badge { position: absolute; z-index: 3; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 800; letter-spacing: .16em; padding: 5px 9px; border-radius: 4px; background: rgba(0, 0, 0, .65); color: var(--gold-l); pointer-events: none; }
.map-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--crimson); animation: blink 1.2s infinite; }
.loc { padding: 16px 18px 18px; }
.loc-name { font-size: 17px; font-weight: 800; }
.loc-addr { margin-top: 6px; font-size: 13px; line-height: 1.6; color: var(--mute); }
.loc .btn { margin-top: 14px; }

/* top 10 row */
.toprow, .bts { display: flex; gap: 4px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px; padding: 4px 20px 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.toprow::-webkit-scrollbar, .bts::-webkit-scrollbar { display: none; }
.top { flex: none; display: flex; align-items: flex-end; scroll-snap-align: start; position: relative; text-align: left; }
.top-no {
    font-family: var(--f-brand); font-size: 150px; line-height: .78; letter-spacing: -.04em;
    color: var(--bg); -webkit-text-stroke: 2.5px #8d7f80; margin-right: -14px; position: relative; z-index: 0;
    transition: -webkit-text-stroke-color .25s;
}
.top:hover .top-no { -webkit-text-stroke-color: var(--gold); }
.top-po { position: relative; z-index: 1; width: 112px; aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; background: #222; box-shadow: -8px 0 18px rgba(0, 0, 0, .6); transition: transform .25s; }
.top:active .top-po { transform: scale(.96); }
.top-po img { width: 100%; height: 100%; object-fit: cover; }
.top-po.art { display: flex; flex-direction: column; justify-content: flex-end; padding: 12px 10px; }
.top-po.art b { font-family: var(--f-brand); font-weight: 400; font-size: 25px; line-height: .95; letter-spacing: .02em; }
.top-po.art small { margin-top: 5px; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-l); }
.g0 { background: radial-gradient(90% 60% at 30% 20%, rgba(229, 143, 152, .55), transparent 70%), linear-gradient(170deg, #5c0b1d, #1a0509); }
.g1 { background: radial-gradient(90% 60% at 70% 20%, rgba(246, 223, 180, .45), transparent 70%), linear-gradient(170deg, #5b3a17, #1c0f08); }
.g2 { background: radial-gradient(90% 60% at 40% 15%, rgba(200, 33, 63, .55), transparent 70%), linear-gradient(170deg, #2a0d15, #0b0809); }
.g3 { background: radial-gradient(90% 60% at 60% 15%, rgba(170, 120, 200, .4), transparent 70%), linear-gradient(170deg, #3b1d46, #12081a); }
.bts { gap: 8px; }
.bts-i { flex: none; width: 210px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; scroll-snap-align: start; background: #222; transition: transform .25s; }
.bts-i:active { transform: scale(.97); }
.bts-i img { width: 100%; height: 100%; object-fit: cover; }

/* gift (partial restyle) */
.gift-wrap:not(:has(#gift-section)) { display: none; }
.gift-wrap #gift-section { background: transparent !important; padding: 0 0 8px !important; font-family: var(--f-ui) !important; }
.gift-wrap .gs-heading { display: none; }
.gift-wrap .gs-wrap { display: none; }
.gift-wrap .gs-card { background: var(--card) !important; border-color: var(--line) !important; border-radius: 10px !important; box-shadow: 0 10px 24px rgba(0, 0, 0, .4) !important; }
.gift-wrap .gs-img-ph { background: linear-gradient(135deg, #3a0712, #8e1530) !important; }
.gift-wrap .gs-name { color: var(--ink) !important; font-family: var(--f-ui) !important; font-weight: 700 !important; }
.gift-wrap .gs-price { color: var(--gold) !important; font-family: var(--f-ui) !important; font-weight: 800 !important; }
.gift-wrap .gs-dot { background: #3a2f31 !important; }
.gift-wrap .gs-dot.taken { background: var(--crimson) !important; }
.gift-wrap .gs-btn { border-radius: 6px !important; font-family: var(--f-ui) !important; font-weight: 800 !important; }
.gift-wrap .gs-btn-buy { background: var(--ink) !important; color: #120708 !important; }
.gift-wrap .gs-btn-done { background: #2a2224 !important; color: var(--dim) !important; }
.gift-wrap .gs-ribbon { background: var(--crimson) !important; }
.gift-wrap .gs-buyer-badge { background: rgba(200, 33, 63, .85) !important; }
.gift-wrap .gs-sub-label { color: var(--mute) !important; font-family: var(--f-ui) !important; padding: 0 20px !important; }
.gift-wrap .gs-track { padding: 0 20px 12px !important; scroll-padding: 0 20px; }
.gift-wrap .gs-bank-track { padding: 0 16px 8px !important; }
.gift-wrap .gs-bank-card { background: linear-gradient(135deg, #231a1d, #1a1315) !important; border-color: var(--line) !important; box-shadow: none !important; }
.gift-wrap .gs-bank-number { color: var(--ink) !important; }
.gift-wrap .gs-bank-holder, .gift-wrap .gs-bank-name-text { color: var(--mute) !important; font-family: var(--f-ui) !important; }
.gift-wrap .gs-bank-logo.groom { background: linear-gradient(135deg, #8a5a2b, #e3b781) !important; }
.gift-wrap .gs-bank-logo.bride { background: linear-gradient(135deg, #8e1530, #e58f98) !important; }
.gift-wrap .gs-bank-copy { background: rgba(255, 255, 255, .06) !important; border-color: var(--line) !important; color: var(--gold-l) !important; }
.gift-wrap .gs-bank-copy.copied { color: #5fd38b !important; }

/* rsvp */
.rate { margin: 0 16px; padding: 24px 18px 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.rate .row-title { padding: 0; margin-bottom: 6px; }
.rate-lead { font-size: 13px; color: var(--mute); line-height: 1.55; margin-bottom: 18px; }
.rate-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.ro { position: relative; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 4px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); transition: border-color .2s, background .2s, transform .15s; }
.ro:active { transform: scale(.96); }
.ro input { position: absolute; opacity: 0; pointer-events: none; }
.ro-ic { position: relative; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid #6c6062; display: grid; place-items: center; color: var(--ink); transition: all .25s; }
.ro-ic svg { width: 22px; height: 22px; }
.ro-l { font-size: 12px; font-weight: 700; color: var(--mute); }
.ro:has(input:checked) { border-color: rgba(229, 143, 152, .55); background: rgba(200, 33, 63, .12); }
.ro:has(input:checked) .ro-ic { background: var(--ink); color: #120708; border-color: var(--ink); transform: scale(1.06); }
.ro:has(input:checked) .ro-l { color: var(--ink); }
.ro:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.f-l { display: block; font-size: 12px; font-weight: 700; color: var(--mute); margin: 12px 0 6px; }
.f-in { width: 100%; font: inherit; font-size: 14.5px; color: var(--ink); background: #0f0b0c; border: 1px solid #3a2f31; border-radius: 8px; padding: 12px 14px; outline: none; transition: border-color .2s, box-shadow .2s; resize: vertical; }
.f-in::placeholder { color: var(--dim); }
.f-in:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(227, 183, 129, .15); }
.reviews-head { margin-top: 30px; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--rose); }
.live-dot i { width: 7px; height: 7px; border-radius: 50%; background: var(--crimson); animation: blink 1.2s infinite; }
.wishes-list { padding: 0 16px; display: flex; flex-direction: column; gap: 10px; max-height: 560px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #3a2f31 transparent; }
.wish-item { display: flex; gap: 12px; padding: 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.wish-item.new { animation: wishIn .6s cubic-bezier(.2, .8, .2, 1); }
@keyframes wishIn { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
.wish-avatar { flex: none; width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; background: var(--av, linear-gradient(135deg, #c8213f, #5c0b1d)); font-family: var(--f-brand); font-size: 20px; padding-top: 2px; color: #fff; text-transform: uppercase; }
.wish-body { flex: 1; min-width: 0; }
.wish-header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wish-name { font-weight: 800; font-size: 14px; }
.wish-badge { font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; }
.wish-badge.hadir { background: rgba(95, 211, 139, .15); color: #5fd38b; }
.wish-badge.tidak { background: rgba(200, 33, 63, .18); color: var(--rose); }
.wish-badge.ragu { background: rgba(227, 183, 129, .16); color: var(--gold); }
.wish-stars { display: flex; gap: 1px; margin: 5px 0 6px; color: var(--gold); }
.wish-stars svg { width: 12px; height: 12px; }
.wish-message { font-size: 13.5px; line-height: 1.55; color: #d9ccc7; word-wrap: break-word; }
.wish-time { display: block; margin-top: 6px; font-size: 11px; color: var(--dim); }
.wish-empty { text-align: center; padding: 30px 20px; color: var(--mute); font-size: 13px; line-height: 1.6; border: 1px dashed #3a2f31; border-radius: 12px; }
.wish-empty svg { width: 30px; height: 30px; margin: 0 auto 10px; color: var(--dim); }

/* credits */
.credits { margin-top: 40px; padding: 40px 24px 30px; text-align: center; background: linear-gradient(180deg, transparent, #000 30%); }
.cr-kicker { font-size: 11px; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: var(--crimson); }
.cr-window {
    margin: 20px auto 0; height: 230px; overflow: hidden; position: relative;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
}
.cr-roll { animation: roll 22s linear infinite; padding-top: 150px; }
@keyframes roll { to { transform: translateY(-100%); } }
.cr-roll p { margin-bottom: 22px; display: flex; flex-direction: column; gap: 4px; }
.cr-roll span { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); font-weight: 700; }
.cr-roll b { font-family: var(--f-serif); font-size: 20px; font-weight: 600; color: var(--ink); }
.cr-copy { margin: 18px auto 0; max-width: 34ch; font-size: 13px; line-height: 1.7; color: #bfb1ad; }
.cr-names { margin-top: 22px; font-family: var(--f-brand); font-weight: 400; font-size: 54px; line-height: 1; letter-spacing: .02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cr-names em { font-family: var(--f-serif); font-style: italic; font-size: .6em; }
.cr-salam { margin: 10px 0 20px; font-family: var(--f-serif); font-style: italic; font-size: 16px; color: var(--gold-l); }
.cr-logo { width: 110px; height: auto; margin: 30px auto 6px; opacity: .55; }
.cr-credit { font-size: 11px; color: var(--dim); }

/* ══════════ TAB BAR ══════════ */
.tabbar {
    position: fixed; z-index: 950; bottom: 0; left: 50%; transform: translate(-50%, 110%);
    width: 100%; max-width: var(--w);
    display: grid; grid-template-columns: repeat(5, 1fr);
    height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
    background: rgba(14, 10, 11, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
    transition: transform .6s cubic-bezier(.2, .8, .2, 1) .3s;
}
body.opened .tabbar { transform: translate(-50%, 0); }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--dim); font-size: 10.5px; font-weight: 700; position: relative; transition: color .2s; }
.tab svg { width: 23px; height: 23px; transition: transform .25s; }
.tab.on { color: var(--ink); }
.tab.on svg { transform: translateY(-1px) scale(1.06); }
.tab.on::before { content: ''; position: absolute; top: 0; width: 26px; height: 2.5px; border-radius: 0 0 3px 3px; background: var(--grad); }
.tab:active svg { transform: scale(.88); }
body.has-qr #qr-fab { bottom: calc(var(--tab-h) + var(--safe-b) + 14px) !important; }

/* toast */
.toast {
    position: fixed; z-index: 3000; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 16px);
    transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
    max-width: min(90vw, 420px); padding: 11px 16px; border-radius: 8px;
    background: var(--ink); color: #120708; font-size: 13px; font-weight: 700; text-align: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .5); transition: opacity .3s, transform .3s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body.has-qr .toast { bottom: calc(var(--tab-h) + var(--safe-b) + 80px); }

/* ══════════ TRAILER ══════════ */
.trailer { position: fixed; inset: 0; z-index: 2500; background: #000; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; overflow: hidden; }
.trailer.open { opacity: 1; visibility: visible; }
.tr-stage { position: absolute; inset: 0; }
.tr-scene { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .9s ease; }
.tr-scene.on { opacity: 1; animation: kb 4.5s ease-out both; }
.tr-scene.art { display: grid; place-items: center; }
.tr-art { font-family: var(--f-serif); font-style: italic; font-size: 64px; color: var(--gold-l); opacity: .9; text-shadow: 0 6px 30px rgba(0, 0, 0, .5); }
.tr-title { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: radial-gradient(70% 50% at 50% 50%, rgba(200, 33, 63, .3), transparent 70%), #000; }
.tr-title.on { animation: none; }
.tr-logo { width: 150px; height: auto; opacity: .9; }
.tr-title h3 { margin-top: 10px; font-family: var(--f-brand); font-weight: 400; font-size: 64px; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tr-title h3 em { font-family: var(--f-serif); font-size: .55em; }
.tr-title p { margin-top: 12px; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink); font-weight: 700; }
.tr-title.on h3, .tr-title.on p, .tr-title.on .tr-logo { animation: trUp 1.2s cubic-bezier(.2, .7, .2, 1) both; }
.tr-title.on h3 { animation-delay: .2s; } .tr-title.on p { animation-delay: .5s; }
@keyframes trUp { from { opacity: 0; transform: translateY(16px) scale(.96); } }
.tr-vignette { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .65), transparent 22%, transparent 62%, rgba(0, 0, 0, .85)); box-shadow: inset 0 0 120px rgba(0, 0, 0, .6); }
.tr-top { position: absolute; z-index: 3; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: max(16px, env(safe-area-inset-top)) 16px 0; }
.tr-label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.tr-label svg { width: 18px; height: 18px; color: var(--crimson); }
.tr-close { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); }
.tr-close svg { width: 20px; height: 20px; }
.tr-sub {
    position: absolute; z-index: 3; left: 24px; right: 24px; bottom: calc(80px + var(--safe-b)); text-align: center;
    font-family: var(--f-serif); font-size: 22px; line-height: 1.4; font-weight: 600; color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .9), 0 0 20px rgba(0, 0, 0, .7);
    opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s;
}
.tr-sub.show { opacity: 1; transform: none; }
.tr-bottom { position: absolute; z-index: 3; left: 16px; right: 16px; bottom: calc(26px + var(--safe-b)); display: flex; align-items: center; gap: 12px; }
.tr-bar { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.tr-bar i { display: block; height: 100%; width: 0; background: var(--crimson); border-radius: 4px; box-shadow: 0 0 10px rgba(200, 33, 63, .8); }
.tr-time { font-size: 12px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.tr-tap { position: absolute; z-index: 2; top: 70px; bottom: 70px; width: 40%; }
.tr-tap.prev { left: 0; } .tr-tap.next { right: 0; }

/* ══════════ LIGHTBOX ══════════ */
.gallery-lightbox { display: none; position: fixed; inset: 0; z-index: 2600; background: rgba(0, 0, 0, .95); align-items: center; justify-content: center; opacity: 0; transition: opacity .3s; }
.lb-img-wrap { max-width: 92vw; max-height: 80vh; }
.lb-img-wrap img { max-width: 92vw; max-height: 80vh; border-radius: 6px; object-fit: contain; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.lb-close, .lb-prev, .lb-next { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: 26px; line-height: 1; }
.lb-close { top: 16px; right: 16px; font-size: 18px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); font-size: 13px; font-weight: 700; color: var(--mute); }

/* ══════════ DESKTOP ══════════ */
@media (min-width: 720px) {
    .hero { height: 760px; }
}
@media (max-width: 360px) {
    .pk-grid { grid-template-columns: repeat(2, minmax(0, 116px)); gap: 22px 20px; }
    .pf-ava { width: 104px; height: 104px; }
    .ep-thumb { width: 112px; }
    .cd-box b { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    [data-reveal] { opacity: 1; transform: none; }
    .cr-roll { animation: none; padding-top: 0; }
    .cr-window { height: auto; -webkit-mask-image: none; mask-image: none; }
}
