/* NOVA IPTV website — mirrors the Android app: dark charcoal, amber accent,
   one screen (player + premium card on the left, categories + channel grid on the right). */
:root {
    --bg: #15161d;
    --bg-2: #1a1a24;
    --surface: #242431;
    --surface-2: #32333c;
    --line: rgba(255, 255, 255, .08);
    --text: #ffffff;
    --muted: #9a9aa8;
    --amber: #ffae5c;
    --amber-2: #ffc78f;
    --amber-3: #f0b982;
    --brown: #b5712d;
    --brown-dark: #3a2005;
    --amber-ink: #301a04;
    --red: #ff6b6b;
    --live: #f1006b;
    --radius: 16px;
    --gap: 16px;
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --display: 'Outfit', 'Inter', system-ui, sans-serif;
    --gold: linear-gradient(135deg, #ffe0b2 0%, #ffc078 35%, #ffae5c 60%, #e8893a 100%);
    --gold-text: linear-gradient(100deg, #fff1dc 0%, #ffd29a 40%, #ffae5c 75%, #f39a4a 100%);
    --glass: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
    --rim: rgba(255, 199, 143, .16);
    color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -.125em; flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* ── Shell ─────────────────────────────────────────────────────────────── */
.shell { display: flex; flex-direction: column; min-height: 100vh; }
.left { padding: 12px 12px 0; display: flex; flex-direction: column; gap: 12px; }
.right { display: flex; flex-direction: column; min-width: 0; }

/* Wide screens: exactly the app's landscape split, each half scrolls on its own. */
@media (min-width: 900px) {
    .shell { display: grid; grid-template-columns: minmax(0, clamp(50vw, calc((100vh - 250px) * 16 / 9), 60vw)) minmax(0, 1fr); height: 100vh; overflow: hidden; }
    .left { padding: 10px 0 20px 20px; overflow-y: auto; scrollbar-width: none; }
    .left::-webkit-scrollbar { display: none; }
    .right { height: 100vh; }
    .grid-scroll { flex: 1; overflow-y: auto; }
}

/* ── Header ────────────────────────────────────────────────────────────── */
.top { display: flex; align-items: center; gap: 12px; min-height: 64px; padding-bottom: 2px; }
.name-logo { width: 52px; height: 52px; border-radius: 10px; flex-shrink: 0; }
.top-text { flex: 1; min-width: 0; }
.brand { font-size: 1.15rem; font-weight: 700; letter-spacing: .01em; line-height: 1.2; }
.clock { color: var(--muted); font-size: .82rem; margin-top: 2px; font-variant-numeric: tabular-nums; }
.round-btn {
    width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--surface); color: var(--text);
    display: inline-grid; place-items: center; font-size: 20px; flex-shrink: 0;
}
.round-btn:hover { background: var(--surface-2); }
.round-btn.signed-in { background: var(--amber); color: var(--amber-ink); font-weight: 700; font-size: .95rem; }

/* ── Player ────────────────────────────────────────────────────────────── */
.player-wrap { position: sticky; top: 0; z-index: 30; background: var(--bg); padding: 8px 12px; }
@media (min-width: 900px) { .player-wrap { position: static; padding: 0; } }
/* Phones: flatten the left column so the player stays pinned while the whole list scrolls. */
@media (max-width: 899px) {
    .left { display: contents; }
    .top { padding: 8px 12px 0; }
}
.player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; container-type: inline-size; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
@media (max-width: 899px) { .player { border-radius: 12px; } }
.player video { width: 100%; height: 100%; display: block; background: #000; }
.player-overlay {
    position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px;
    background: radial-gradient(circle at 50% 35%, #232330, #0d0d12 75%);
}
.player-overlay.clear { background: transparent; pointer-events: none; }
.player-overlay .inner { max-width: 420px; display: flex; flex-direction: column; align-items: center; }
.player-overlay.idle { display: flex; flex-direction: column; justify-content: center; gap: 12px; color: var(--muted); }
.player-overlay.idle img { border-radius: 50%; opacity: .9; }
.player-overlay .lock-ico { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: rgba(255, 174, 92, .14); color: var(--amber); margin-bottom: 12px; }
.player-overlay .tag { font-size: .75rem; font-weight: 700; letter-spacing: .14em; color: var(--amber); margin-bottom: 4px; }
.player-overlay h3 { font-size: 1.15rem; font-weight: 500; }
.player-overlay p { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.player-overlay .btn { margin-top: 16px; }
@container (max-width: 520px) {
    .player-overlay { padding: 12px; }
    .player-overlay .lock-ico { width: 40px; height: 40px; font-size: 18px; margin-bottom: 6px; }
    .player-overlay .tag { font-size: .65rem; margin-bottom: 2px; }
    .player-overlay h3 { font-size: .98rem; }
    .player-overlay p { font-size: .8rem; margin-top: 2px; }
    .player-overlay .btn { margin-top: 10px; min-height: 38px; padding: 0 16px; font-size: .85rem; border-radius: 10px; }
}
/* Shaka Player (live): fills the frame, amber accents, LIVE badge, key-press hint. */
.shaka-box { position: absolute; inset: 0; }
.shaka-box video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player .shaka-video-container { width: 100%; height: 100%; font-family: var(--font); }
.player .shaka-controls-container { --shaka-accent: var(--amber); }
.player .shaka-bottom-controls { position: relative; padding-bottom: 6px; }
/* Dark fade behind the control bar so white icons read on bright video. */
.player .shaka-bottom-controls::before {
    content: ''; position: absolute; left: -100vw; right: -100vw; bottom: 0; height: 240%; min-height: 110px; z-index: -1; pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .65) 35%, rgba(0, 0, 0, .25) 70%, rgba(0, 0, 0, 0) 100%);
}
.player .shaka-controls-button-panel { gap: 2px; }
.player .shaka-controls-button-panel > * { color: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .7)); }
.player .shaka-controls-button-panel > *:hover { color: var(--amber); }
.player .shaka-scrim-container { background: linear-gradient(to top, rgba(0, 0, 0, .45) 0, transparent 40%); }
.player .shaka-video-container { overflow: hidden; }
.player .shaka-spinner-container { display: none; }
.live-badge {
    position: absolute; top: 12px; left: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 9px;
    border-radius: 999px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .08em; pointer-events: none;
}
.live-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: livePulse 1.8s ease-out infinite; }
.unmute-btn {
    position: absolute; left: 50%; bottom: 64px; z-index: 5; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; border: 0; border-radius: 999px; background: var(--amber); color: var(--amber-ink); font-weight: 700; font-size: .9rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .45); animation: fadeIn .2s ease;
}
.unmute-btn:hover { background: var(--amber-2); }
@container (max-width: 520px) { .unmute-btn { bottom: 52px; padding: 8px 14px; font-size: .82rem; } }
.key-flash {
    position: absolute; left: 50%; top: 50%; z-index: 4; transform: translate(-50%, -50%) scale(.9); padding: 10px 18px; border-radius: 12px;
    background: rgba(0, 0, 0, .7); color: #fff; font-weight: 500; font-size: .95rem; opacity: 0; pointer-events: none;
}
.key-flash.show { animation: keyFlash 1.1s ease forwards; }
@keyframes keyFlash { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.9); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 70% { opacity: 1; } 100% { opacity: 0; } }
.player:fullscreen, .shaka-box:fullscreen, .shaka-video-container:fullscreen { border-radius: 0; }
.spinner { width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--amber); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Now-playing card (under the player) ───────────────────────────────── */
.now-title {
    display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 12px; margin: 0 6px;
    border-radius: var(--radius); background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
    border: 1px solid var(--line); box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
}
.nt-logo { position: relative; width: 58px; height: 58px; border-radius: 14px; flex-shrink: 0; overflow: hidden; background: #0f1016; border: 1px solid var(--line); display: grid; place-items: center; }
.nt-logo img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: contain; z-index: 1; }
.nt-logo span { font-weight: 700; color: rgba(255, 255, 255, .3); }
.nt-logo img + span { display: none; }
.nt-body { flex: 1; min-width: 0; }
.nt-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nt-live {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 8px; border-radius: 999px;
    background: rgba(241, 0, 107, .14); border: 1px solid rgba(241, 0, 107, .35); color: #ff4d97; font-size: .68rem; font-weight: 700; letter-spacing: .08em;
}
.nt-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(241, 0, 107, .6); animation: livePulse 1.8s ease-out infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(241, 0, 107, .55); } 70% { box-shadow: 0 0 0 7px rgba(241, 0, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(241, 0, 107, 0); } }
.nt-name { font-size: 1.22rem; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.nt-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.nt-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 8px; background: rgba(255, 255, 255, .06); color: #c9c9d4; font-size: .75rem; font-weight: 500; }
.nt-tag .icon { font-size: 12px; opacity: .8; }
.nt-tag.prem { background: rgba(255, 174, 92, .14); color: var(--amber); }
.nt-tag.free { background: rgba(76, 199, 122, .13); color: #5fd38b; }
.nt-fav {
    width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; border: 1px solid var(--line); background: rgba(255, 255, 255, .04);
    color: var(--muted); display: grid; place-items: center; font-size: 18px; transition: color .15s ease, background .15s ease, transform .15s ease;
}
.nt-fav:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nt-fav:active { transform: scale(.92); }
.nt-fav.on { color: var(--live); background: rgba(241, 0, 107, .12); border-color: rgba(241, 0, 107, .35); }
@media (max-width: 899px) {
    .now-title { margin: 4px 12px 0; padding: 10px 12px 10px 10px; gap: 12px; }
    .nt-logo { width: 50px; height: 50px; border-radius: 12px; }
    .nt-name { font-size: 1.08rem; }
    .nt-fav { width: 40px; height: 40px; }
}

/* ── Premium card ──────────────────────────────────────────────────────── */
.premium {
    display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin: 0 6px; border-radius: var(--radius); cursor: pointer;
    background: linear-gradient(120deg, var(--brown-dark) 0%, #24180d 45%, var(--bg-2) 100%);
    border: 1px solid rgba(181, 113, 45, .45);
}
.premium:hover { border-color: var(--brown); }
.premium-ico { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-size: 22px; background: rgba(255, 174, 92, .15); color: var(--amber); }
.premium-text { flex: 1; min-width: 0; }
.premium-title { font-size: 1.1rem; font-weight: 700; }
.premium-sub { color: var(--amber-2); font-size: .9rem; margin-top: 2px; }
.premium-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.premium-chips span { padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 500; background: rgba(255, 174, 92, .12); color: var(--amber); }
.premium-btn { padding: 10px 18px; border-radius: 12px; background: var(--amber); color: var(--amber-ink); font-weight: 700; font-size: .9rem; flex-shrink: 0; }
.premium.active .premium-btn { background: transparent; color: var(--amber); border: 1px solid var(--amber); }
@media (max-width: 480px) { .premium { padding: 14px; gap: 12px; } .premium-ico { width: 40px; height: 40px; font-size: 18px; } .premium-title { font-size: 1rem; } .premium-sub { font-size: .82rem; } .premium-btn { padding: 9px 14px; font-size: .85rem; } }
@media (max-width: 370px) { .premium-chips { display: none; } }

/* ── Category tabs ─────────────────────────────────────────────────────── */
.tabs {
    display: flex; gap: 10px; overflow-x: auto; padding: 14px 12px 12px; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .tabs { padding: 10px 20px 12px; flex-shrink: 0; } }
.tab {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px 0 8px; border-radius: 999px;
    border: 0; background: var(--surface); color: var(--text); font-weight: 500; font-size: .95rem; white-space: nowrap;
}
.tab:hover { background: var(--surface-2); }
.tab .tab-ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); overflow: hidden; font-size: 17px; }
.tab .tab-ico img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) { .tab { height: 44px; padding: 0 14px 0 6px; font-size: .9rem; gap: 8px; } .tab .tab-ico { width: 32px; height: 32px; font-size: 15px; } }
.tab.active { background: var(--amber); color: var(--amber-ink); }
.tab.active .tab-ico { background: rgba(48, 26, 4, .15); }

/* ── Search + grid ─────────────────────────────────────────────────────── */
.grid-scroll { padding: 0 12px 28px; }
@media (min-width: 900px) { .grid-scroll { padding: 0 20px 28px; } }
.search-row { margin-bottom: 14px; }
.search { position: relative; display: block; }
.search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input {
    width: 100%; height: 46px; padding: 0 16px 0 44px; border-radius: 14px; border: 1px solid transparent;
    background: var(--bg-2); outline: none; font-size: .95rem;
}
.search input:focus { border-color: rgba(255, 174, 92, .6); }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 600px) and (max-width: 899px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1900px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.tile {
    position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; cursor: pointer;
    background: var(--surface); border: 2px solid transparent; transition: border-color .15s ease, transform .15s ease;
}
.tile:hover { transform: translateY(-2px); border-color: rgba(255, 174, 92, .35); }
.tile:active { transform: scale(.98); }
.tile.current { border-color: var(--amber); box-shadow: 0 0 0 4px rgba(255, 174, 92, .12); }
.tile.current .tile-name { color: var(--amber-2); }
.tile-logo { position: absolute; inset: 8%; display: grid; place-items: center; }
.tile-logo img { width: 100%; height: 100%; object-fit: contain; }
.tile-logo + .tile-fallback { display: none; }
.tile-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; font-size: 1.3rem; color: rgba(255, 255, 255, .3); }
.tile-no { position: absolute; top: 7px; left: 7px; z-index: 1; padding: 1px 6px; border-radius: 6px; background: rgba(21, 22, 29, .7); display: flex; align-items: center; gap: 4px; font-size: .7rem; font-weight: 500; color: var(--muted); }
.tile-no .crown { color: var(--amber); font-size: 11px; }
.tile-fav {
    position: absolute; top: 1px; right: 1px; z-index: 1; width: 38px; height: 38px; border: 0; background: transparent;
    display: grid; place-items: center; color: rgba(255, 255, 255, .55); font-size: 16px;
}
.tile-fav:hover { color: #fff; }
.tile-fav.on { color: var(--live); }
.tile-name {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 9px 7px; font-size: .78rem; font-weight: 500; text-shadow: 0 1px 2px rgba(0, 0, 0, .8);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    background: linear-gradient(to top, rgba(21, 22, 29, .9), rgba(21, 22, 29, 0));
}
.tile-lock { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(21, 22, 29, .75); color: var(--amber); font-size: 15px; }
.tile.locked .tile-logo { opacity: .45; }
.tile.skeleton { cursor: default; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 48px 12px; }
.empty .icon { font-size: 28px; margin-bottom: 8px; }

/* ── Buttons & inputs ──────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
    border-radius: 14px; border: 1px solid transparent; font-weight: 700; font-size: .95rem; white-space: nowrap;
}
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-amber { background: var(--amber); color: var(--amber-ink); }
.btn-amber:hover { background: var(--amber-2); }
.btn-outline { background: transparent; color: var(--text); border-color: rgba(255, 255, 255, .25); }
.btn-outline:hover { background: rgba(255, 255, 255, .06); }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .85rem; border-radius: 10px; }
.btn-danger { background: rgba(255, 107, 107, .14); color: var(--red); }
.text-btn { margin-left: auto; border: 0; background: var(--surface); color: var(--text); padding: 12px 20px; border-radius: 999px; font-weight: 500; }
.text-btn:hover { background: var(--surface-2); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: .85rem; color: var(--muted); }
.input { width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); outline: none; font-size: 1rem; }
.input:focus { border-color: var(--amber); }
.phone-group { display: flex; }
.phone-group span { display: grid; place-items: center; padding: 0 14px; border-radius: 14px 0 0 14px; background: var(--surface); border: 1px solid var(--line); border-right: 0; color: var(--muted); }
.phone-group .input { border-radius: 0 14px 14px 0; }
.otp { text-align: center; letter-spacing: .6em; font-size: 1.5rem; font-weight: 700; }
.form-error { color: var(--red); font-size: .88rem; margin: -4px 0 12px; }
.form-error:empty { display: none; }
.link { background: none; border: 0; padding: 0; color: var(--amber); font-weight: 500; }
.link[disabled] { color: var(--muted); cursor: default; }

/* ── Full-screen panels (Subscription, Login) ─────────────────────────── */
.panel { position: fixed; inset: 0; z-index: 80; background: var(--bg); display: flex; flex-direction: column; overflow-y: auto; animation: fadeIn .18s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.panel-bar { display: flex; align-items: center; gap: 14px; padding: 14px 16px; position: sticky; top: 0; background: var(--bg); z-index: 2; }
@media (min-width: 900px) { .panel-bar { padding: 18px 28px; } }
.panel-bar h1 { font-size: 1.45rem; font-weight: 500; }
.panel-body { flex: 1; padding: 8px 16px 32px; }
/* Subscription */
.sub-body { display: grid; gap: 18px; align-content: start; width: 100%; max-width: 1180px; margin: 0 auto; }
@media (min-width: 900px) { .sub-body { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; align-items: start; padding: 24px 28px 40px; } }
.sub-status { display: flex; flex-direction: column; gap: 14px; }
.st-card { position: relative; overflow: hidden; padding: 24px; border-radius: 22px; background: linear-gradient(150deg, #2a2a36 0%, var(--bg-2) 70%); border: 1px solid var(--line); }
.st-card.active { background: radial-gradient(120% 90% at 0% 0%, rgba(255, 174, 92, .22), transparent 55%), linear-gradient(140deg, var(--brown-dark) 0%, #24180d 45%, var(--bg-2) 100%); border-color: rgba(181, 113, 45, .5); }
.st-card::after { content: ''; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 174, 92, .12), transparent 70%); pointer-events: none; }
.st-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.st-card .badge-ico { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; font-size: 28px; background: rgba(255, 174, 92, .16); color: var(--amber); }
.st-pill { padding: 4px 10px; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .1em; background: rgba(255, 255, 255, .08); color: var(--muted); }
.st-card.active .st-pill { background: rgba(76, 199, 122, .16); color: #5fd38b; }
.st-card h2 { font-size: 1.6rem; font-weight: 700; letter-spacing: -.01em; }
.st-card > p { color: var(--amber-2); margin-top: 4px; }
.st-card:not(.active) > p { color: var(--muted); }
.st-progress { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .08); }
.st-progress-row { display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; }
.st-progress-row b { color: var(--amber); }
.st-progress-row.muted { color: var(--muted); font-size: .8rem; margin-top: 8px; }
.st-bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); margin-top: 10px; overflow: hidden; }
.st-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brown), var(--amber)); }
.st-user { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line); }
.st-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--amber); color: var(--amber-ink); font-weight: 700; flex-shrink: 0; }
.st-who { flex: 1; min-width: 0; }
.st-who b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-who small { color: var(--muted); }
.sub-plans { padding: 22px; border-radius: 22px; background: var(--bg-2); border: 1px solid var(--line); }
.sp-head { margin-bottom: 16px; }
.sp-head h2 { font-size: 1.25rem; font-weight: 700; }
.sp-head p { color: var(--muted); font-size: .88rem; margin-top: 2px; }
.plan-list { display: flex; flex-direction: column; gap: 10px; }
.plan-row {
    display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border-radius: 16px; text-align: left;
    background: var(--bg); border: 1.5px solid var(--line); transition: border-color .15s ease, background .15s ease;
}
.plan-row:hover { border-color: rgba(255, 174, 92, .4); }
.plan-row.sel { border-color: var(--amber); background: linear-gradient(90deg, rgba(255, 174, 92, .12), rgba(255, 174, 92, .03)); }
.plan-row .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); flex-shrink: 0; display: grid; place-items: center; }
.plan-row.sel .radio { border-color: var(--amber); }
.plan-row.sel .radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); }
.pr-main { flex: 1; min-width: 0; }
.pr-main b { display: block; font-weight: 500; font-size: 1rem; }
.pr-main small { color: var(--muted); font-size: .8rem; }
.pr-main em { color: #5fd38b; font-style: normal; font-weight: 500; }
.pr-price { text-align: right; flex-shrink: 0; }
.pr-price b { display: block; font-size: 1.15rem; font-weight: 700; color: var(--amber-2); }
.pr-price small { color: var(--muted); font-size: .75rem; }
.features { list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.features li { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: #dcdce4; }
.features .icon { color: var(--amber); font-size: 18px; }
@media (max-width: 380px) { .features { grid-template-columns: 1fr; } }
.btn-lg { min-height: 54px; font-size: 1rem; border-radius: 16px; }
.btn-lg small { font-weight: 500; opacity: .75; }
.sp-note, .auth-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; color: var(--muted); font-size: .8rem; text-align: center; }

/* Login */
.auth { background: #0b0b10 url('../img/auth-bg.jpg') center / cover no-repeat; }
.auth::before { content: ''; position: fixed; inset: 0; background: radial-gradient(80% 70% at 75% 50%, rgba(11, 11, 16, .55), rgba(11, 11, 16, .92)), linear-gradient(90deg, rgba(11, 11, 16, .95), rgba(11, 11, 16, .45)); pointer-events: none; }
.auth .panel-bar { background: transparent; position: relative; }
.auth-center { position: relative; flex: 1; display: grid; place-items: center; gap: 32px; padding: 8px 16px 40px; width: 100%; max-width: 1100px; margin: 0 auto; }
@media (min-width: 900px) { .auth-center { grid-template-columns: 1fr 440px; gap: 64px; padding: 0 40px 60px; } }
.auth-hero { display: none; }
@media (min-width: 900px) {
    .auth-hero { display: block; justify-self: start; max-width: 460px; }
    .auth-hero img { width: 88px; height: 88px; border-radius: 18px; margin-bottom: 24px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
    .auth-hero h2 { font-size: 2.6rem; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
    .auth-hero p { color: #c3c3cf; font-size: 1.05rem; margin-top: 14px; }
    .auth-hero ul { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
    .auth-hero li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 174, 92, .12); border: 1px solid rgba(255, 174, 92, .3); color: var(--amber-2); font-size: .88rem; font-weight: 500; }
    .auth-hero li .icon { color: var(--amber); }
}
.auth-card {
    width: 100%; max-width: 440px; padding: 30px 26px; border-radius: 24px;
    background: rgba(26, 26, 36, .78); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}
@media (min-width: 900px) { .auth-card { padding: 36px 34px; } }
.auth-card h2 { font-size: 1.6rem; font-weight: 700; letter-spacing: -.01em; }
.auth-card .sub { color: var(--muted); margin: 6px 0 24px; font-size: .95rem; }
.auth-card .sub b { color: var(--text); font-weight: 500; }
.auth-card .input { height: 56px; font-size: 1.08rem; background: rgba(15, 16, 22, .85); }
.auth-card .phone-group span { background: rgba(36, 36, 49, .9); font-weight: 500; color: var(--text); }
.auth-card .otp { font-size: 1.7rem; letter-spacing: .7em; padding-left: .7em; }
.steps-dots { display: flex; gap: 6px; margin-bottom: 18px; }
.steps-dots span { width: 26px; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .14); }
.steps-dots .on { background: var(--amber); width: 40px; }
.steps-dots .done { background: rgba(255, 174, 92, .5); }
.auth-foot { display: flex; justify-content: space-between; margin-top: 14px; color: var(--muted); font-size: .88rem; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.list-row:first-child { border-top: 0; }
.list-row b { display: block; font-weight: 500; }
.list-row small { color: var(--muted); }

/* ── Dialog & toasts ───────────────────────────────────────────────────── */
.dialog { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.dialog-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .65); }
.dialog-card { position: relative; width: 100%; max-width: 400px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 24px; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line); }
.dialog-card h2 { font-size: 1.2rem; font-weight: 500; padding-right: 36px; margin-bottom: 4px; }
.dialog-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--surface); display: grid; place-items: center; }
.dialog-card.pay-dialog { max-width: 820px; padding: 0; overflow: hidden; }
.dialog-card.pay-dialog .dialog-x { z-index: 2; }
.pay-loading { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 40px 20px; color: var(--muted); }
.pay-msg { text-align: center; padding: 8px 4px 2px; }
.pay-msg h2 { padding: 0; font-size: 1.3rem; margin-top: 4px; }
.pay-msg p { color: var(--muted); margin: 8px 0 20px; }
.msg-ico { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; font-size: 28px; background: rgba(255, 107, 107, .14); color: var(--red); }
.msg-ico.ok { background: rgba(76, 199, 122, .15); color: #4cc77a; }

.pay { display: grid; }
@media (min-width: 720px) { .pay { grid-template-columns: 330px minmax(0, 1fr); } }
.pay-qr-side {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 28px 24px 20px;
    background: radial-gradient(120% 80% at 50% 0%, rgba(255, 174, 92, .16), transparent 60%), linear-gradient(160deg, var(--brown-dark), #1d150e 55%, var(--bg-2));
    border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) { .pay-qr-side { border-bottom: 0; border-right: 1px solid var(--line); padding: 36px 28px; } }
.qr-frame { position: relative; padding: 12px; }
.qr-frame i { position: absolute; width: 26px; height: 26px; border: 3px solid var(--amber); }
.qr-frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 10px; }
.qr-frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 10px; }
.qr-frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 10px; }
.qr-frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 10px; }
.qr { width: 220px; max-width: 62vw; aspect-ratio: 1; padding: 10px; background: #fff; border-radius: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.qr img { width: 100%; height: 100%; }
.pay-apps { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pay-apps span { padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 500; background: rgba(255, 255, 255, .08); color: #d6d6de; }
.pay-info { padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 720px) { .pay-info { padding: 30px 30px 22px; } }
.pay-kicker { display: inline-flex; align-items: center; gap: 6px; color: #5fd38b; font-size: .78rem; font-weight: 500; }
.pay-info h2 { font-size: 1.35rem; font-weight: 700; padding-right: 36px; margin: -6px 0 0; }
.lbl { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.pay-sum { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.pay-sum b { display: block; font-weight: 500; }
.pay-sum small { color: var(--muted); font-size: .78rem; }
.pay-sum .amt { text-align: right; }
.pay-sum .amt b { font-size: 1.6rem; font-weight: 700; color: var(--amber); line-height: 1.1; }
.pay-upi { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 16px; border-radius: 14px; border: 1px dashed rgba(255, 174, 92, .35); }
.pay-upi > div { min-width: 0; }
.pay-upi b { display: block; font-weight: 500; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 8px; }
.pay-steps li { counter-increment: s; display: flex; align-items: center; gap: 10px; font-size: .88rem; color: #cfcfd8; }
.pay-steps li::before { content: counter(s); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: rgba(255, 174, 92, .14); color: var(--amber); font-size: .72rem; font-weight: 700; }
.pay-status { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; background: rgba(255, 255, 255, .05); color: #d6d6de; font-size: .88rem; }
.pay-status .spinner { width: 16px; height: 16px; border-width: 2px; flex-shrink: 0; }
.pay-status .icon { flex-shrink: 0; }
.pay-status.warn { background: rgba(255, 174, 92, .1); color: var(--amber-2); }
.pay-status.bad { background: rgba(255, 107, 107, .12); color: var(--red); }
.pay-timer { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--muted); font-size: .82rem; }
.pay-timer:empty { display: none; }
.pay-info .btn + .btn { margin-top: -4px; }
.pay-info a.btn { text-decoration: none; }
.pay-order { text-align: center; color: var(--muted); font-size: .74rem; }
@media (max-width: 719px) {
    .dialog:has(.dialog-card.pay-dialog) { padding: 0; align-items: end; }
    .dialog-card.pay-dialog { max-height: 94vh; overflow-y: auto; border-radius: 22px 22px 0 0; border-bottom: 0; }
}
/* ── Google Play links ─────────────────────────────────────────────────── */
.play-logo { display: inline-grid; place-items: center; flex-shrink: 0; }
.play-logo svg { width: 100%; height: 100%; }
.app-btn {
    display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px 0 14px; border-radius: 999px; flex-shrink: 0;
    background: var(--surface); color: var(--text); text-decoration: none; font-weight: 500; font-size: .88rem; white-space: nowrap;
}
.app-btn:hover { background: var(--surface-2); }
.app-btn .play-logo { width: 18px; height: 20px; }
@media (max-width: 520px) { .app-btn { width: 46px; padding: 0; justify-content: center; } .app-btn-text { display: none; } }
@media (min-width: 900px) and (max-width: 1150px) { .app-btn { width: 46px; padding: 0; justify-content: center; } .app-btn-text { display: none; } }
.play-badge {
    display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 14px; border-radius: 12px; text-decoration: none;
    background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .28); transition: border-color .15s ease, transform .15s ease;
}
.play-badge:hover { border-color: rgba(255, 255, 255, .6); transform: translateY(-1px); }
.play-badge .play-logo { width: 24px; height: 26px; }
.play-badge > span:last-child { display: flex; flex-direction: column; font-size: 1.12rem; font-weight: 500; line-height: 1.1; letter-spacing: .01em; }
.play-badge small { font-size: .6rem; font-weight: 500; letter-spacing: .06em; opacity: .85; }
.auth-hero .play-badge { margin-top: 28px; }
.auth-side { width: 100%; max-width: 440px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
@media (min-width: 900px) { .only-mobile { display: none !important; } }
.st-app { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line); }
.st-app-text { flex: 1; min-width: 180px; }
.st-app-text b { display: block; font-weight: 500; }
.st-app-text small { color: var(--muted); font-size: .82rem; }
/* ── Footer credit ─────────────────────────────────────────────────────── */
.site-foot { margin-top: 28px; padding: 18px 0 6px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: .85rem; }
.site-foot a { color: var(--amber); font-weight: 500; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot .heart { display: inline-block; color: var(--live); margin: 0 2px; animation: heartBeat 1.6s ease-in-out infinite; }
@keyframes heartBeat { 0%, 60%, 100% { transform: scale(1); } 15%, 35% { transform: scale(1.22); } }
.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 120; display: grid; gap: 8px; width: min(92vw, 380px); }
.toast { padding: 12px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: .9rem; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); animation: fadeIn .2s ease; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 899px) { .premium { margin: 4px 12px 0; } }


/* ════════════════════════════════════════════════════════════════════════
   Premium finish — typography, gold accents, glass surfaces. Layout unchanged.
   ════════════════════════════════════════════════════════════════════════ */
body {
    font-feature-settings: 'cv11', 'ss01';
    background:
        radial-gradient(900px 520px at -8% -12%, rgba(255, 174, 92, .10), transparent 60%),
        radial-gradient(800px 600px at 108% 110%, rgba(181, 113, 45, .12), transparent 60%),
        var(--bg);
    background-attachment: fixed;
}
::selection { background: rgba(255, 174, 92, .35); color: #fff; }
* { scrollbar-width: thin; scrollbar-color: rgba(255, 174, 92, .35) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255, 174, 92, .3); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }
.clock, .tile-no, .pr-price, .pay-sum .amt b, .pay-timer, .st-progress-row { font-variant-numeric: tabular-nums; }

/* Display type */
.brand, .premium-title, .nt-name, .tile-name, .tab, .panel-bar h1, .st-card h2, .sp-head h2, .pr-main b, .pr-price b,
.auth-card h2, .auth-hero h2, .pay-info h2, .pay-sum .amt b, .player-overlay h3, .btn, .premium-btn, .text-btn {
    font-family: var(--display);
    letter-spacing: -.005em;
}
.brand {
    font-size: 1.3rem; font-weight: 700; letter-spacing: .01em;
    background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.clock { letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 480px) { .clock { letter-spacing: 0; font-size: .76rem; } .brand { font-size: 1.15rem; } }
.name-logo { box-shadow: 0 6px 18px rgba(0, 0, 0, .45), 0 0 0 1px var(--rim); }

/* Gold buttons */
.btn-amber, .premium-btn, .tab.active, .st-avatar, .round-btn.signed-in, .unmute-btn {
    background: var(--gold); color: var(--amber-ink);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 8px 22px rgba(255, 150, 60, .22);
}
.btn-amber:hover, .unmute-btn:hover { background: var(--gold); filter: brightness(1.06); }
.btn-outline, .text-btn, .round-btn:not(.signed-in), .app-btn {
    background: var(--glass); border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
.round-btn:not(.signed-in):hover, .app-btn:hover, .text-btn:hover, .btn-outline:hover { border-color: rgba(255, 199, 143, .4); background: rgba(255, 255, 255, .07); }

/* Premium card: gold rim + shine sweep on its button */
.premium {
    position: relative; border: 1px solid transparent;
    background:
        linear-gradient(120deg, #3a2208 0%, #24180d 45%, #17151d 100%) padding-box,
        linear-gradient(120deg, rgba(255, 192, 120, .7), rgba(181, 113, 45, .25) 40%, rgba(255, 255, 255, .06)) border-box;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .35);
}
.premium-title { font-size: 1.18rem; font-weight: 700; }
.premium-ico { background: radial-gradient(circle at 30% 25%, rgba(255, 220, 170, .35), rgba(255, 174, 92, .12)); box-shadow: inset 0 0 0 1px rgba(255, 199, 143, .35); }
.premium-btn { position: relative; overflow: hidden; }
.premium-btn::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
    transform: skewX(-20deg); animation: shine 4.5s ease-in-out infinite;
}
@keyframes shine { 0%, 65% { left: -60%; } 100% { left: 140%; } }
.premium.active .premium-btn { background: var(--glass); color: var(--amber-2); border: 1px solid rgba(255, 199, 143, .55); box-shadow: none; }
.premium.active .premium-btn::after { display: none; }
.premium-chips span { background: rgba(255, 199, 143, .1); border: 1px solid rgba(255, 199, 143, .2); color: var(--amber-2); }

/* Player + now-playing card */
.player { box-shadow: 0 22px 50px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .06); }
.now-title {
    border: 1px solid transparent;
    background: linear-gradient(180deg, #23232f, #1a1a24) padding-box, linear-gradient(120deg, var(--rim), rgba(255, 255, 255, .04)) border-box;
}
.nt-name { font-size: 1.3rem; font-weight: 700; }
.nt-logo { box-shadow: 0 0 0 1px var(--rim); }

/* Tabs */
.tab { background: var(--glass); border: 1px solid rgba(255, 255, 255, .07); font-weight: 600; }
.tab:not(.active):hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 199, 143, .3); }
.tab.active { border-color: transparent; }
.tab.active .tab-ico { background: rgba(48, 26, 4, .18); }

/* Search */
.search input { background: var(--glass); border: 1px solid rgba(255, 255, 255, .07); }
.search input:focus { border-color: rgba(255, 174, 92, .6); box-shadow: 0 0 0 4px rgba(255, 174, 92, .1); }

/* Tiles: glass surface, thin gold rim, glow on hover */
.tile {
    border: 1px solid transparent;
    background: linear-gradient(160deg, #2a2a37 0%, #1d1d27 100%) padding-box, linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .02) 60%) border-box;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.tile:hover {
    transform: translateY(-3px);
    background: linear-gradient(160deg, #30303f 0%, #20202b 100%) padding-box, linear-gradient(160deg, rgba(255, 199, 143, .65), rgba(255, 174, 92, .12) 60%) border-box;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .4), 0 0 24px rgba(255, 174, 92, .12);
}
.tile.current {
    background: linear-gradient(160deg, #33291f 0%, #1f1a18 100%) padding-box, var(--gold) border-box;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .4), 0 0 28px rgba(255, 174, 92, .22);
}
.tile:hover, .tile.current { border-color: transparent; }
.tile-name { font-weight: 600; letter-spacing: .005em; }
.tile-no { font-family: var(--font); font-weight: 600; }

/* Panels & cards */
.panel-bar h1 { font-weight: 600; }
.st-card h2 { font-size: 1.75rem; }
.st-card.active { box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.sub-plans, .st-user, .st-app {
    border: 1px solid transparent;
    background: linear-gradient(180deg, #1f1f2a, #191922) padding-box, linear-gradient(140deg, var(--rim), rgba(255, 255, 255, .03)) border-box;
}
.plan-row.sel { box-shadow: 0 0 0 3px rgba(255, 174, 92, .12); }
.pr-price b { background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-hero h2 { background: linear-gradient(100deg, #fff 0%, #ffe3c0 60%, #ffc078 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-card { box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06); }
.dialog-card { box-shadow: 0 30px 90px rgba(0, 0, 0, .6); }
.pay-sum .amt b { background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-foot { font-size: .82rem; letter-spacing: .02em; }
.site-foot a { background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .premium-btn::after { display: none; } }


/* ── Premium: Login & Subscription screens ─────────────────────────────── */
.panel:not(.auth) {
    background:
        radial-gradient(900px 500px at 0% -10%, rgba(255, 174, 92, .10), transparent 60%),
        radial-gradient(700px 500px at 110% 110%, rgba(181, 113, 45, .14), transparent 60%),
        var(--bg);
}
.panel-bar { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(21, 22, 29, .72); border-bottom: 1px solid rgba(255, 255, 255, .05); }
.auth .panel-bar { background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
.panel-bar h1 { background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }

/* Login */
.auth-kicker {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
    background: rgba(255, 174, 92, .1); border: 1px solid rgba(255, 199, 143, .3); color: var(--amber-2);
    font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.auth-hero img { display: block; }
.auth-side { position: relative; }
.auth-side::before {
    content: ''; position: absolute; left: 50%; top: 40%; width: 120%; height: 80%; transform: translate(-50%, -50%); z-index: -1;
    background: radial-gradient(closest-side, rgba(255, 174, 92, .22), transparent); filter: blur(10px); pointer-events: none;
}
.auth-card {
    border: 1px solid transparent;
    background:
        linear-gradient(180deg, rgba(34, 33, 44, .92), rgba(22, 22, 30, .92)) padding-box,
        linear-gradient(150deg, rgba(255, 199, 143, .55), rgba(255, 255, 255, .06) 45%, rgba(181, 113, 45, .35)) border-box;
}
.auth-emblem {
    width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; margin-bottom: 18px;
    background: var(--gold); color: var(--amber-ink); box-shadow: 0 10px 26px rgba(255, 150, 60, .3), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.auth-card h2 { font-size: 1.55rem; }
.auth-card .phone-group span { gap: 6px; display: inline-flex; align-items: center; }
.auth-card .phone-group .flag { font-style: normal; font-size: 1.05rem; }
.auth-card .input:focus { box-shadow: 0 0 0 4px rgba(255, 174, 92, .12); }
.auth-card .btn-amber { position: relative; overflow: hidden; }
.steps-dots .on { background: var(--gold); }

/* Subscription */
.st-card .badge-ico { background: var(--gold); color: var(--amber-ink); box-shadow: 0 10px 26px rgba(255, 150, 60, .28), inset 0 1px 0 rgba(255, 255, 255, .5); }
.st-card:not(.active) .badge-ico { background: rgba(255, 255, 255, .08); color: var(--muted); box-shadow: none; }
.st-card.active::before {
    content: ''; position: absolute; right: -24px; bottom: -34px; width: 190px; height: 190px; opacity: .07; pointer-events: none;
    background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffae5c'%3E%3Cpath d='m3 7 4.5 4L12 4l4.5 7L21 7l-2 12H5z'/%3E%3C/svg%3E");
}
.st-card h2 { background: linear-gradient(100deg, #fff 0%, #ffe3c0 70%, #ffc078 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.st-bar span { background: var(--gold); box-shadow: 0 0 12px rgba(255, 174, 92, .55); }
.plan-row { background: rgba(15, 16, 22, .6); }
.plan-row.sel {
    border-color: transparent;
    background: linear-gradient(90deg, rgba(58, 34, 8, .9), rgba(28, 24, 22, .9)) padding-box, var(--gold) border-box;
}
.plan-row.sel .radio { border-color: var(--amber); box-shadow: 0 0 10px rgba(255, 174, 92, .5); }
.pr-tag { display: inline-block; vertical-align: 2px; margin-left: 8px; padding: 2px 8px; border-radius: 999px; font-style: normal; font-family: var(--font); font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pr-tag.best { background: var(--gold); color: var(--amber-ink); }
.pr-tag.cur { background: rgba(76, 199, 122, .15); color: #5fd38b; }
.features .icon { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: rgba(255, 174, 92, .12); box-sizing: border-box; }
.sub-plans .btn-amber { position: relative; overflow: hidden; }
.sub-plans .btn-amber::after, .auth-card .btn-amber::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 35%; left: -60%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent); transform: skewX(-20deg); animation: shine 5s ease-in-out infinite;
}
/* Phones: plans right after the status card; account + app cards after. */
@media (max-width: 899px) {
    .sub-status { display: contents; }
    .st-card { order: 1; }
    .sub-plans { order: 2; }
    .st-user { order: 3; }
    .st-app { order: 4; }
    .auth-emblem { width: 48px; height: 48px; font-size: 21px; margin-bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) { .sub-plans .btn-amber::after, .auth-card .btn-amber::after { display: none; } }


/* ── Touch feedback: no blue tap flash; keyboard focus stays visible ───── */
* { -webkit-tap-highlight-color: transparent; }
button, a, [role="button"], .tile, .tab, input { -webkit-touch-callout: none; }
:focus:not(:focus-visible) { outline: none; }
input:focus, input:focus-visible { outline: none; }
button, a.btn, .tab, .premium, .plan-row, .round-btn, .app-btn, .tile-fav, .nt-fav { touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.btn:active, .tab:active, .round-btn:active, .app-btn:active, .text-btn:active, .plan-row:active, .premium:active, .unmute-btn:active { transform: scale(.97); filter: brightness(1.08); }
.tile-fav:active, .nt-fav:active { transform: scale(.88); }
.btn, .tab, .round-btn, .app-btn, .text-btn, .plan-row, .premium { transition: transform .12s ease, filter .12s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease; }

/* Compact premium card: title + one line */
.premium { padding: 14px 16px; }
.premium-sub { margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }


/* ── Fixed, app-style screen ───────────────────────────────────────────────
   No pinch/double-tap zoom, no pull-to-refresh bounce, and no page scroll:
   the screen is exactly one viewport and only the channel grid (or a panel
   whose content is taller than the screen) scrolls. */
html, body { touch-action: pan-x pan-y; overscroll-behavior: none; }
@media (min-width: 900px) { .shell, .right { height: 100vh; height: 100dvh; } }
/* Phones / tablets (portrait, or landscape tall enough): app layout. */
@media (max-width: 899px) and (min-height: 561px) {
    html, body { height: 100%; overflow: hidden; }
    .shell { height: 100vh; height: 100dvh; min-height: 0; display: flex; flex-direction: column; }
    .shell > :not(.right) { flex-shrink: 0; }
    .player-wrap { position: static; }
    .right { flex: 1; min-height: 0; display: flex; flex-direction: column; }
    .tabs { flex-shrink: 0; }
    .grid-scroll { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
    .top { min-height: 56px; }
    .now-title { margin-top: 2px; }
}
/* Panels and dialogs scroll only when their content is taller than the screen. */
.panel, .dialog-card { overscroll-behavior: contain; }
/* iOS zooms into inputs smaller than 16px — keep them at 16px on touch screens. */
@media (max-width: 899px) { .search input, .input, .auth-card .input { font-size: 16px; } .auth-card .otp { font-size: 1.6rem; } }

/* Phones: one-line now-playing card so the channel grid gets more room. */
@media (max-width: 899px) {
    .now-title { padding: 8px 10px 8px 8px; gap: 10px; }
    .nt-logo { width: 44px; height: 44px; border-radius: 11px; }
    .nt-name { font-size: 1.02rem; }
    .nt-tags { flex-wrap: nowrap; overflow: hidden; margin-top: 5px; mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); }
    .nt-tag { flex-shrink: 0; padding: 2px 8px; font-size: .7rem; }
    .nt-live { padding: 2px 7px 2px 6px; font-size: .62rem; }
    .nt-fav { width: 36px; height: 36px; font-size: 16px; }
}

/* Desktop: the left half always fits the screen — the player shrinks to the
   space left after the header and cards (keeping 16:9), so nothing scrolls. */
@media (min-width: 900px) {
    .left { overflow: hidden; padding-bottom: 16px; }
    .left > :not(.player-wrap) { flex-shrink: 0; }
    .player-wrap { flex: 1 1 auto; min-height: 0; container-type: size; display: flex; justify-content: center; align-items: flex-start; }
    .player { width: min(100cqw, 100cqh * 16 / 9); height: auto; aspect-ratio: 16 / 9; }
}

/* Phones: compact payment sheet that fits the screen without scrolling. */
@media (max-width: 719px) {
    .pay-qr-side { padding: 18px 16px 12px; gap: 10px; }
    .qr-frame { padding: 9px; }
    .qr-frame i { width: 20px; height: 20px; border-width: 2.5px; }
    .qr { width: 172px; padding: 8px; border-radius: 12px; }
    .pay-apps span { padding: 2px 8px; font-size: .68rem; }
    .pay-info { padding: 14px 16px 14px; gap: 10px; }
    .pay-info h2 { font-size: 1.15rem; margin: -4px 0 0; }
    .pay-steps { display: none; }
    .pay-sum { padding: 11px 14px; }
    .pay-sum .amt b { font-size: 1.4rem; }
    .pay-upi { padding: 9px 10px 9px 14px; }
    .pay-status { padding: 9px 12px; }
    .pay-info .btn-lg { min-height: 48px; }
    .pay-order { font-size: .7rem; margin-top: -2px; }
    .dialog-card.pay-dialog .dialog-x { top: 10px; right: 10px; width: 32px; height: 32px; }
}
@media (max-width: 719px) and (max-height: 700px) {
    .qr { width: 150px; }
    .pay-apps { display: none; }
}
@media (max-width: 719px) and (max-height: 680px) {
    .qr { width: 128px; padding: 6px; }
    .pay-qr-side { padding: 12px 16px 8px; }
    .pay-kicker, .pay-order { display: none; }
    .pay-info { gap: 8px; padding-top: 12px; }
}
