/* fonts live on the site itself: no trip to another server before the text shows */
@font-face {  font-family: 'Inter';  font-style: normal;  font-weight: 400 700;  font-display: swap;  src: url(fonts/inter-var-ext.woff2) format('woff2');  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face {  font-family: 'Inter';  font-style: normal;  font-weight: 400 700;  font-display: swap;  src: url(fonts/inter-var.woff2) format('woff2');  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face {  font-family: 'Poppins';  font-style: normal;  font-weight: 600;  font-display: swap;  src: url(fonts/poppins-600-ext.woff2) format('woff2');  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face {  font-family: 'Poppins';  font-style: normal;  font-weight: 600;  font-display: swap;  src: url(fonts/poppins-600.woff2) format('woff2');  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face {  font-family: 'Poppins';  font-style: normal;  font-weight: 700;  font-display: swap;  src: url(fonts/poppins-700-ext.woff2) format('woff2');  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face {  font-family: 'Poppins';  font-style: normal;  font-weight: 700;  font-display: swap;  src: url(fonts/poppins-700.woff2) format('woff2');  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* MegaDrama v3 — follows the category's standard app pattern: true black, pink-red action, orchid offer tags, gold member pill.
   Poppins for titles, Inter for everything else. */
:root {
  --pink: #FF1F5B;
  --pink-press: #E0164C;
  --orchid: #F2C66D;      /* accent for discount tags and the summary (was lilac) */
  --on-accent: #3A2403;
  --gold-a: #F6DDA6;
  --gold-b: #E3B76C;
  --on-gold: #4A2C05;
  --f-title: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body { background: #000; color: #fff; font-family: var(--f-body); font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
ul, ol { list-style: none; padding: 0; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.screen { position: relative; width: 100%; max-width: 430px; margin: 0 auto; min-height: 100dvh; background: #000; overflow: hidden; }

/* ---------- main tab bar: Home, My List, Profile ---------- */
.tabbar { position: fixed; z-index: 7; left: 0; right: 0; bottom: 0; width: 100%; max-width: 430px; margin: 0 auto; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px 0 calc(4px + env(safe-area-inset-bottom)); background: #000; border-top: 1px solid #1A1A1A; box-shadow: 0 0 0 1px #000, 0 24px 0 24px #000; clip-path: inset(-1px -2px -40px -2px); }   /* no transform: a centred bar on a half pixel let the page show through at the edges */
.tabbar a { display: grid; justify-items: center; align-content: start; gap: 3px; min-height: 52px; padding-top: 7px; font-size: 12px; line-height: 14px; font-weight: 500; color: #8C8C8C; }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a[aria-current="page"] { color: #fff; font-weight: 600; }
.has-tabbar { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }

/* ---------- one button standard for the whole product ---------- */
:root { --r-btn: 8px; --h-btn: 50px; }
.btn-main { display: grid; place-items: center; width: 100%; height: var(--h-btn); border-radius: var(--r-btn); background: var(--pink); color: #fff; font: 600 16px/1 var(--f-body); }
.btn-main:active { background: var(--pink-press); }
.btn-ghost { display: grid; place-items: center; width: 100%; height: var(--h-btn); border-radius: var(--r-btn); background: #1A1A1A; color: #fff; font: 600 16px/1 var(--f-body); }
.btn-ghost:active { background: #242424; }

/* ---------- inner pages: back arrow + title ---------- */
.page-top { position: sticky; top: 0; z-index: 6; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; height: calc(56px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 8px 0; background: #000; }
.page-top a { display: grid; place-items: center; width: 44px; height: 44px; }
.page-top a svg { width: 24px; height: 24px; }
.page-top h1 { text-align: center; font: 600 17px/1 var(--f-body); }
.page { padding: 16px 20px calc(48px + env(safe-area-inset-bottom)); }

/* ---------- bottom sheet ---------- */
.sheet-bg { position: fixed; z-index: 30; inset: 0; background: rgba(0,0,0,.6); opacity: 0; visibility: hidden; transition: opacity 200ms ease, visibility 0s linear 200ms; }
.sheet-bg.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.sheet { position: fixed; z-index: 31; left: 50%; bottom: 0; width: 100%; max-width: 430px; max-height: 76%; overflow-y: auto; padding: 10px 20px calc(24px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; background: #161616; transform: translate(-50%, 102%); visibility: hidden; transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 260ms; }
.sheet.is-open { transform: translate(-50%, 0); visibility: visible; transition-delay: 0s; }
.sheet__grab { width: 36px; height: 4px; margin: 0 auto 12px; border-radius: 2px; background: #3A3A3A; }
.sheet h2 { font: 600 17px/1.3 var(--f-body); margin-bottom: 8px; }
.sheet__opt { display: grid; grid-template-columns: 1fr auto; align-items: center; width: 100%; min-height: 56px; text-align: left; font-size: 16px; border-top: 1px solid #242424; }
.sheet__opt:first-of-type { border-top: 0; }
.sheet__opt[aria-checked="true"] { font-weight: 600; }
.sheet__opt svg { width: 20px; height: 20px; color: var(--pink); visibility: hidden; }
.sheet__opt[aria-checked="true"] svg { visibility: visible; }
.sheet__opt[disabled] { color: #6E6E6E; }
.sheet__opt em { font-style: normal; font-size: 13px; color: #6E6E6E; }
@media (prefers-reduced-motion: reduce) { .sheet, .sheet-bg { transition: none; } }

/* ---------- toast ---------- */
.toast { position: fixed; z-index: 40; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translate(-50%, 8px); padding: 11px 16px; border-radius: var(--r-btn); background: #fff; color: #000; font: 600 14px/1.3 var(--f-body); width: max-content; max-width: calc(100% - 32px); text-align: center; opacity: 0; pointer-events: none; transition: opacity 180ms ease, transform 180ms ease; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* phones show no scrollbar; keep the desktop preview the same */
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

/* ---------- closing art: tilted poster wall that fills what is left of the screen. Decoration only; the page does not scroll for it. ---------- */
.fit-screen { height: 100dvh; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.fit-screen > .page { flex: 1; min-height: 0; display: flex; flex-direction: column; padding-bottom: 0; }
.art { position: relative; flex: 1 1 0; min-height: 0; margin: 28px -20px 0; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 42%); mask-image: linear-gradient(to bottom, transparent 0%, #000 42%); }
.art__grid { position: absolute; left: -22%; top: -30px; width: 150%; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; transform: rotate(-24deg); transform-origin: 50% 0; }
.art__grid img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; }
.art::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.4); }

/* ---------- top air for a web app: 12 px under the browser bar (plus the notch area when installed) ---------- */
:root { --top-air: calc(12px + env(safe-area-inset-top)); }

/* ---------- language switch ES | EN: i18n.js draws it inside the header each screen already has ---------- */
.lang-sw { flex: none; display: inline-flex; margin-left: auto; }
.lang-sw .lang-sw__b { display: flex; align-items: center; justify-content: flex-start; gap: 0; width: 44px; min-width: 0; height: 44px; min-height: 0; margin: 0; padding: 0; }   /* 44 px touch area; the pill inside is smaller */
.lang-sw .lang-sw__b:first-child { justify-content: flex-end; }
.lang-sw .lang-sw__t { display: grid; place-items: center; width: 34px; height: 26px; margin: 0; background: #1A1A1A; color: #8C8C8C; font: 600 12px/1 var(--f-body); letter-spacing: .04em; text-shadow: none; }
.lang-sw__b:first-child .lang-sw__t { border-radius: 13px 0 0 13px; }
.lang-sw__b:last-child .lang-sw__t { border-radius: 0 13px 13px 0; }
.lang-sw [aria-pressed="true"] .lang-sw__t { background: #3A3A3A; color: #fff; }
.lang-sw .lang-sw__b:focus-visible { outline: none; }
.lang-sw .lang-sw__b:focus-visible .lang-sw__t { position: relative; outline: 2px solid #fff; outline-offset: 2px; }
.speed + .lang-sw { margin-left: 2px; }        /* player and feed: Speed already takes the free space */
.eptrack ~ .lang-sw { margin: 0 -10px 0 0; }   /* player: the pill sits 10 px inside its touch area; that air goes back to the episode track */
.search ~ .lang-sw { margin: 0 -10px 0 -6px; } /* home: same, and a tighter row, so the search field keeps its whole hint */
.top__row.is-tight { gap: 6px; }
.page-top .lang-sw { margin-left: -44px; }     /* inner pages: the right cell is 44 px wide, the switch grows to the left */
.lang-sw--float { position: absolute; z-index: 8; top: calc(6px + env(safe-area-inset-top)); right: 8px; }   /* screens with no header */
