/* StreamRadar.cz — "screening room": cinematic dark + ivory light, mobile first, no framework.
   Fonts: Fraunces (display, OFL) + Manrope (text, OFL), self-hosted latin + latin-ext subsets. */

@font-face {
    font-family: "Fraunces";
    font-style: italic;
    font-weight: 300 800;
    font-display: swap;
    src: url("fonts/fraunces-italic-latin-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Fraunces";
    font-style: italic;
    font-weight: 300 800;
    font-display: swap;
    src: url("fonts/fraunces-italic-latin.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: "Fraunces";
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url("fonts/fraunces-normal-latin-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Fraunces";
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url("fonts/fraunces-normal-latin.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: "Manrope";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("fonts/manrope-normal-latin-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("fonts/manrope-normal-latin.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;
}

/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
    /* type */
    --font-text: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Noto Sans", sans-serif;
    --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    --step--2: clamp(.72rem, .7rem + .08vw, .78rem);
    --step--1: clamp(.82rem, .8rem + .1vw, .9rem);
    --step-0: clamp(.96rem, .93rem + .15vw, 1.05rem);
    --step-1: clamp(1.12rem, 1.04rem + .35vw, 1.35rem);
    --step-2: clamp(1.4rem, 1.2rem + .9vw, 2.05rem);
    --step-3: clamp(1.85rem, 1.45rem + 1.8vw, 3.1rem);
    --step-4: clamp(2.3rem, 1.6rem + 3.2vw, 4.6rem);
    --step-5: clamp(2.6rem, 1.6rem + 4.6vw, 6.2rem);

    /* space */
    --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
    --gutter: clamp(16px, 4vw, 72px);
    --section: clamp(44px, 5.5vw, 112px);
    --wrap: 2560px;
    --measure: 68ch;

    /* shape */
    --r-sm: 8px;
    --r: 12px;
    --r-lg: 20px;
    --r-xl: 28px;
    --pill: 999px;

    /* grids */
    --card-min: clamp(138px, 9vw + 70px, 232px);
    --rail-w: clamp(142px, 9vw + 74px, 240px);
    --gap: clamp(14px, 1.2vw + 6px, 28px);

    /* motion */
    --ease: cubic-bezier(.2, .7, .2, 1);
    --t-fast: .16s;
    --t: .32s;

    /* dark (default) */
    --bg: #08090d;
    --bg-raised: #0d0f15;
    --surface: #12151d;
    --surface-2: #191d27;
    --surface-glass: rgb(16 18 25 / .72);
    --line: rgb(255 255 255 / .075);
    --line-strong: rgb(255 255 255 / .15);
    --text: #f2eee6;
    --muted: #a7a298;
    --faint: #8b877e;
    --gold: #e2b866;
    --gold-strong: #f0cd86;
    --gold-ink: #1c1407;
    --gold-soft: rgb(226 184 102 / .14);
    --danger: #ff8a78;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .4), 0 4px 12px -6px rgb(0 0 0 / .5);
    --shadow: 0 2px 6px rgb(0 0 0 / .35), 0 18px 40px -18px rgb(0 0 0 / .8);
    --shadow-lg: 0 30px 80px -30px rgb(0 0 0 / .9);
    --poster-ring: rgb(255 255 255 / .06);
    --header-bg: rgb(8 9 13 / .72);
    color-scheme: dark;
}

/* light: system preference unless the visitor picked dark; or picked light manually */
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --bg: #f5f1ea;
        --bg-raised: #faf8f4;
        --surface: #ffffff;
        --surface-2: #efe9df;
        --surface-glass: rgb(255 253 249 / .8);
        --line: rgb(40 30 15 / .1);
        --line-strong: rgb(40 30 15 / .2);
        --text: #17140f;
        --muted: #5e584e;
        --faint: #6f675b;
        --gold: #8c5b0f;
        --gold-strong: #6f4709;
        --gold-ink: #fffaf0;
        --gold-soft: rgb(140 91 15 / .1);
        --danger: #b5321f;
        --shadow-sm: 0 1px 2px rgb(60 40 10 / .08), 0 4px 12px -6px rgb(60 40 10 / .14);
        --shadow: 0 2px 6px rgb(60 40 10 / .06), 0 18px 40px -20px rgb(60 40 10 / .3);
        --shadow-lg: 0 30px 80px -34px rgb(60 40 10 / .4);
        --poster-ring: rgb(40 30 15 / .08);
        --header-bg: rgb(245 241 234 / .78);
        color-scheme: light;
    }
}

:root[data-theme="light"] {
    --bg: #f5f1ea;
    --bg-raised: #faf8f4;
    --surface: #ffffff;
    --surface-2: #efe9df;
    --surface-glass: rgb(255 253 249 / .8);
    --line: rgb(40 30 15 / .1);
    --line-strong: rgb(40 30 15 / .2);
    --text: #17140f;
    --muted: #5e584e;
    --faint: #6f675b;
    --gold: #8c5b0f;
    --gold-strong: #6f4709;
    --gold-ink: #fffaf0;
    --gold-soft: rgb(140 91 15 / .1);
    --danger: #b5321f;
    --shadow-sm: 0 1px 2px rgb(60 40 10 / .08), 0 4px 12px -6px rgb(60 40 10 / .14);
    --shadow: 0 2px 6px rgb(60 40 10 / .06), 0 18px 40px -20px rgb(60 40 10 / .3);
    --shadow-lg: 0 30px 80px -34px rgb(60 40 10 / .4);
    --poster-ring: rgb(40 30 15 / .08);
    --header-bg: rgb(245 241 234 / .78);
    color-scheme: light;
}

/* "cinema" zones (heroes over backdrops) stay dark in both themes */
.cinema,
.hero--feature,
.detail-hero.has-backdrop {
    --bg: #07080b;
    --surface: #12151d;
    --surface-2: #1b1f29;
    --surface-glass: rgb(14 16 22 / .6);
    --line: rgb(255 255 255 / .1);
    --line-strong: rgb(255 255 255 / .2);
    --text: #f6f2ea;
    --muted: rgb(246 242 234 / .74);
    --faint: rgb(246 242 234 / .5);
    --gold: #e6be6e;
    --gold-strong: #f3d290;
    --gold-ink: #1c1407;
    --gold-soft: rgb(230 190 110 / .16);
    --poster-ring: rgb(255 255 255 / .08);
    color-scheme: dark;
    color: var(--text);
}

/* ==========================================================================
   Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-size: clamp(100%, .9rem + .15vw, 112.5%);
    scroll-padding-top: 96px;
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font: 400 var(--step-0)/1.6 var(--font-text);
    font-feature-settings: "ss01", "cv11";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 30%, transparent); text-decoration-thickness: 1px; text-underline-offset: .2em; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--gold); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
:focus:not(:focus-visible) { outline: none; }

::selection { background: var(--gold); color: var(--gold-ink); }

h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.08; letter-spacing: -.015em; text-wrap: balance; }
h1 { font: 500 var(--step-4)/1.02 var(--font-display); font-variation-settings: "opsz" 32; letter-spacing: -.025em; }
h2 { font: 500 var(--step-2)/1.1 var(--font-display); font-variation-settings: "opsz" 28; letter-spacing: -.012em; }
h3 { font-size: var(--step-0); font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }
em { font-style: italic; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.site-main { flex: 1; }
.page { padding-block: var(--s-5) var(--section); }
.page--narrow { max-width: calc(var(--measure) + 2 * var(--gutter) + 120px); }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip { position: absolute; left: -999px; top: 10px; z-index: 100; padding: 10px 16px; border-radius: var(--r-sm); background: var(--gold); color: var(--gold-ink); font-weight: 800; text-decoration: none; }
.skip:focus { left: 10px; }

.kicker {
    margin: 0 0 var(--s-3);
    color: var(--gold);
    font: 700 var(--step--2)/1.3 var(--font-text);
    letter-spacing: .2em;
    text-transform: uppercase;
}

/* ==========================================================================
   Buttons, chips, pills
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: .55em;
    min-height: 46px;
    padding: .7em 1.35em;
    border: 1px solid transparent;
    border-radius: var(--pill);
    font: 700 var(--step--1)/1 var(--font-text);
    letter-spacing: .02em;
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t) var(--ease), color var(--t-fast);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: linear-gradient(180deg, var(--gold-strong), var(--gold)); color: var(--gold-ink); box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--gold) 70%, transparent), inset 0 1px 0 rgb(255 255 255 / .35); }
.btn--primary:hover { color: var(--gold-ink); box-shadow: 0 14px 40px -12px color-mix(in srgb, var(--gold) 90%, transparent), inset 0 1px 0 rgb(255 255 255 / .35); transform: translateY(-1px); }
.btn--ghost { border-color: var(--line-strong); background: var(--surface-glass); color: var(--text); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn--ghost:hover { border-color: var(--gold); color: var(--text); }
.btn__count { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; padding: 0 .4em; border-radius: var(--pill); background: rgb(0 0 0 / .14); font-size: .85em; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: .55em;
    min-height: 40px;
    padding: .45em 1.05em;
    border: 1px solid var(--line-strong);
    border-radius: var(--pill);
    background: var(--surface);
    color: var(--text);
    font-size: var(--step--1);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), box-shadow var(--t) var(--ease), color var(--t-fast);
}
.chip:hover { color: var(--text); border-color: var(--accent, var(--gold)); box-shadow: 0 6px 22px -10px var(--accent, var(--gold)); }
.chip.is-active { border-color: var(--accent, var(--gold)); background: color-mix(in srgb, var(--accent, var(--gold)) 16%, var(--surface)); box-shadow: inset 0 0 0 1px var(--accent, var(--gold)); font-weight: 800; }

.pill {
    display: inline-flex;
    align-items: center;
    gap: .45em;
    max-width: 100%;
    padding: .2em .65em .2em .5em;
    border-radius: var(--pill);
    background: color-mix(in srgb, var(--accent, var(--muted)) 13%, transparent);
    color: var(--text);
    font-size: var(--step--2);
    font-weight: 700;
    letter-spacing: .01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pill__dot { flex: none; width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent, var(--gold)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, var(--gold)) 22%, transparent); }
.pill__extra { color: var(--muted); font-weight: 600; }

/* service logos: one variant per theme */
.logo { display: inline-flex; align-items: center; }
.logo__img { display: block; width: auto; height: 100%; max-width: 100%; object-fit: contain; }
/* local Czech platform logos have no built-in padding (MotN logos do): optically match their size */
.logo__img[src^="/img/services/"] { height: 74%; }
.logo--dual .logo__img--light { display: none; }
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .logo--dual .logo__img--light { display: block; }
    :root:not([data-theme="dark"]) .logo--dual .logo__img--dark { display: none; }
}
:root[data-theme="light"] .logo--dual .logo__img--light { display: block; }
:root[data-theme="light"] .logo--dual .logo__img--dark { display: none; }
.cinema .logo--dual .logo__img--dark { display: block !important; }
.cinema .logo--dual .logo__img--light { display: none !important; }
.logo--initial {
    justify-content: center;
    aspect-ratio: 1;
    border-radius: var(--r-sm);
    background: color-mix(in srgb, var(--accent, var(--gold)) 22%, var(--surface-2));
    color: var(--text);
    font: 600 1em/1 var(--font-display);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: var(--header-bg);
    -webkit-backdrop-filter: saturate(1.6) blur(20px);
    backdrop-filter: saturate(1.6) blur(20px);
}
.site-header__inner {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "brand tools" "nav nav";
    align-items: center;
    column-gap: var(--s-5);
    min-height: 64px;
}

.brand { grid-area: brand; display: inline-flex; align-items: center; gap: 10px; padding-block: 12px; text-decoration: none; }
.brand:hover { color: var(--text); }
.brand__mark { width: 30px; height: 30px; filter: drop-shadow(0 4px 12px color-mix(in srgb, var(--gold) 40%, transparent)); }
.brand__name { font: 600 1.28rem/1 var(--font-display); font-variation-settings: "opsz" 28; letter-spacing: -.02em; }
.brand__tld { color: var(--gold); font-style: italic; }

.nav {
    grid-area: nav;
    display: flex;
    gap: 2px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%);
}
.nav::-webkit-scrollbar { display: none; }
.nav__link {
    position: relative;
    flex: none;
    padding: 8px 12px;
    border-radius: var(--pill);
    color: var(--muted);
    font-size: var(--step--1);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--t-fast), background-color var(--t-fast);
}
.nav__link:hover { color: var(--text); background: var(--gold-soft); }
.nav__link[aria-current="page"] { color: var(--text); }
.nav__link[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--gold); }

.site-header__tools { grid-area: tools; display: flex; align-items: center; justify-content: flex-end; gap: var(--s-2); }

@media (min-width: 1200px) {
    .site-header__inner { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav tools"; min-height: 76px; }
    .nav { margin: 0; padding: 0; overflow: visible; -webkit-mask-image: none; mask-image: none; }
    .nav__link { padding: 10px 14px; }
}

/* theme toggle */
.theme-toggle {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: var(--surface-glass);
    color: var(--text);
    cursor: pointer;
    transition: border-color var(--t-fast), color var(--t-fast), transform var(--t) var(--ease);
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); }
.theme-toggle:active { transform: rotate(-20deg) scale(.94); }
.theme-toggle svg { grid-area: 1 / 1; }
.theme-toggle__moon { display: none; }
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .theme-toggle__moon { display: block; }
    :root:not([data-theme="dark"]) .theme-toggle__sun { display: none; }
}
:root[data-theme="light"] .theme-toggle__moon { display: block; }
:root[data-theme="light"] .theme-toggle__sun { display: none; }
html:not(.js) .theme-toggle { display: none; }

/* ==========================================================================
   Search (header field + autocomplete)
   ========================================================================== */

.search { position: relative; width: 44px; height: 44px; }
.search__icon { position: absolute; left: 12px; top: 50%; z-index: 1; color: var(--muted); transform: translateY(-50%); pointer-events: none; transition: color var(--t-fast); }
.search__input {
    width: 100%;
    height: 100%;
    padding: 0 14px 0 44px;
    border: 1px solid var(--control-border);
    border-radius: var(--pill);
    background: var(--surface-glass);
    color: var(--text);
    font: 500 16px/1 var(--font-text);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color var(--t-fast), box-shadow var(--t) var(--ease), background-color var(--t-fast);
}
.search__input::placeholder { color: transparent; }
.search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search__input:focus { outline: none; cursor: text; border-color: var(--gold); background: var(--surface); box-shadow: 0 0 0 4px var(--gold-soft); }
.search:focus-within .search__icon { color: var(--gold); }
.search__kbd, .search__submit { display: none; }
.search__submit { position: absolute; }

/* mobile: the field expands over the brand while in use; the theme toggle stays visible on its right */
.search:focus-within,
.search.is-open {
    position: absolute;
    left: var(--gutter);
    right: calc(var(--gutter) + 44px + var(--s-2));
    top: 10px;
    z-index: 5;
    width: auto;
}
.site-header:has(.search:focus-within) .brand,
.site-header:has(.search.is-open) .brand { visibility: hidden; }
.search:focus-within .search__input::placeholder,
.search.is-open .search__input::placeholder { color: var(--faint); }

@media (min-width: 760px) {
    .search,
    .search:focus-within,
    .search.is-open { position: relative; left: auto; right: auto; top: auto; width: clamp(240px, 22vw, 460px); height: 44px; }
    .site-header:has(.search:focus-within) .brand,
    .site-header:has(.search.is-open) .brand { visibility: visible; }
    .search__input { cursor: text; }
    .search__input::placeholder { color: var(--faint); }
}
@media (min-width: 1100px) {
    .search__kbd {
        position: absolute;
        right: 12px;
        top: 50%;
        display: grid;
        place-items: center;
        min-width: 24px;
        height: 24px;
        padding: 0 6px;
        border: 1px solid var(--line-strong);
        border-radius: 6px;
        color: var(--muted);
        font: 600 12px/1 var(--font-text);
        transform: translateY(-50%);
        pointer-events: none;
    }
    .search:focus-within .search__kbd { opacity: 0; }
    /* keep the placeholder clear of the shortcut hint; long placeholders end with an ellipsis */
    .search__input { padding-right: 48px; text-overflow: ellipsis; }
}

.search__panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 60;
    max-height: min(72vh, 640px);
    overflow-y: auto;
    padding: 6px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    overscroll-behavior: contain;
    animation: panel-in .18s var(--ease);
}
@media (min-width: 760px) {
    .search__panel { left: auto; width: max(100%, 480px); }
}
@keyframes panel-in { from { opacity: 0; transform: translateY(-6px); } }

.suggest { margin: 0; padding: 0; list-style: none; }
.suggest__item a {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    align-items: center;
    padding: 8px 10px;
    border-radius: var(--r);
    color: var(--text);
    text-decoration: none;
}
.suggest__item[aria-selected="true"] a,
.suggest__item a:hover { background: var(--surface-2); color: var(--text); }
.suggest__item[aria-selected="true"] a { box-shadow: inset 3px 0 0 var(--gold); }
.suggest__poster { width: 42px; height: 63px; border-radius: 6px; object-fit: cover; background: var(--surface-2); box-shadow: 0 0 0 1px var(--poster-ring); }
.suggest__text { min-width: 0; }
.suggest__title { display: block; overflow: hidden; font-weight: 700; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.suggest__title mark, .suggest__orig mark { padding: 0; border-radius: 2px; background: none; color: var(--gold); box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--gold) 45%, transparent); }
.suggest__orig { display: block; overflow: hidden; color: var(--muted); font-size: var(--step--1); font-style: italic; white-space: nowrap; text-overflow: ellipsis; }
.suggest__meta { display: block; overflow: hidden; margin-top: 2px; color: var(--faint); font-size: var(--step--2); font-weight: 600; letter-spacing: .02em; white-space: nowrap; text-overflow: ellipsis; }
.suggest__all a { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; padding: 12px 14px; border-top: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r); color: var(--gold); font-weight: 700; font-size: var(--step--1); text-decoration: none; }
.suggest__all[aria-selected="true"] a, .suggest__all a:hover { background: var(--gold-soft); color: var(--gold); }
.suggest__empty { padding: 14px; color: var(--muted); font-size: var(--step--1); }

/* results page */
.search-head__q { color: var(--gold); font-style: italic; quotes: "„" "“"; }
.search-page-form { display: flex; gap: var(--s-2); max-width: 640px; margin-top: var(--s-5); }
.search-page-form__input {
    flex: 1;
    min-width: 0;
    height: 52px;
    padding: 0 20px;
    border: 1px solid var(--control-border);
    border-radius: var(--pill);
    background: var(--surface);
    color: var(--text);
    font: 500 16px/1 var(--font-text);
}
.search-page-form__input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.search-page-form .btn { min-height: 52px; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-4); margin-top: var(--s-7); }
.pager__info { color: var(--muted); font-size: var(--step--1); }

/* ==========================================================================
   Homepage hero + intro
   ========================================================================== */

.hero--feature {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: clamp(440px, 68vh, 920px);
    overflow: hidden;
    background: var(--bg);
}
.hero__backdrop {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    animation: hero-zoom 5s var(--ease) both;
}
.hero--feature::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(0deg, #07080b 0%, rgb(7 8 11 / .82) 22%, rgb(7 8 11 / .2) 58%, rgb(7 8 11 / .45) 100%),
        linear-gradient(90deg, rgb(7 8 11 / .9) 0%, rgb(7 8 11 / .55) 38%, transparent 72%),
        radial-gradient(120% 80% at 0% 100%, color-mix(in srgb, var(--accent, var(--gold)) 22%, transparent), transparent 60%);
}
.hero__inner { padding-block: clamp(120px, 20vh, 260px) clamp(36px, 6vw, 96px); animation: rise .9s var(--ease) both; }
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: .6em;
    margin: 0 0 var(--s-4);
    padding: .4em .95em .4em .45em;
    border: 1px solid var(--line-strong);
    border-radius: var(--pill);
    background: var(--surface-glass);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    font-size: var(--step--1);
    font-weight: 600;
}
.hero__rank { display: inline-grid; place-items: center; min-width: 2em; height: 2em; padding: 0 .5em; border-radius: var(--pill); background: var(--accent, var(--gold)); color: var(--rank-ink, #fff); font-weight: 800; }
.hero__feature-title {
    max-width: 16ch;
    margin-top: 0;
    text-wrap: balance;
    margin-bottom: var(--s-4);
    font: 500 var(--step-5)/.98 var(--font-display);
    font-variation-settings: "opsz" 32;
    letter-spacing: -.03em;
    text-shadow: 0 4px 40px rgb(0 0 0 / .5);
}
.hero__meta { margin-bottom: var(--s-5); color: var(--muted); font-size: var(--step-0); font-weight: 500; }
.hero__score { color: var(--text); font-weight: 800; }
.hero__score small { color: var(--muted); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: 0; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes hero-zoom { from { transform: scale(1.06); } }

.intro { padding-block: var(--section) 0; }
.intro--solo { padding-top: clamp(40px, 7vw, 128px); }
.hero--feature + .intro { padding-top: clamp(28px, 3vw, 64px); }
.intro__inner { display: grid; gap: var(--s-6); align-items: end; }
.intro__title { max-width: 14ch; font-size: var(--step-4); }
.intro__title em { color: var(--gold); font-weight: 400; }
.intro__lead { max-width: 46ch; margin: var(--s-4) 0 0; color: var(--muted); font-size: var(--step-1); line-height: 1.5; }
@media (min-width: 1100px) {
    .intro__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--s-8); }
}

.service-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(104px, 8vw + 60px, 168px), 1fr)); gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.service-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--s-4);
    height: 100%;
    min-height: 92px;
    padding: var(--s-4);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface) 60%);
    text-decoration: none;
    transition: transform var(--t) var(--ease), border-color var(--t-fast), box-shadow var(--t) var(--ease);
}
.service-tile:hover { color: var(--text); transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 18px 40px -20px var(--accent); }
.service-tile__logo { height: clamp(24px, 1vw + 16px, 36px); max-width: 100%; font-size: 18px; }
.service-tile__logo.logo--initial { width: 30px; height: 30px; }
/* 10 services: even rows (two columns on phones, five on wide screens) */
@media (max-width: 699px) {
    .service-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
    .service-tile { min-height: 0; gap: var(--s-2); padding: var(--s-3) var(--s-4); }
}
@media (min-width: 1100px) {
    .service-chips { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.service-tile__name { color: var(--muted); font-size: var(--step--2); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* ==========================================================================
   Sections, rails, grids
   ========================================================================== */

.section { padding-block: var(--section) 0; }
.page > .section:first-of-type { padding-top: var(--s-6); }
.section--tint {
    margin-top: var(--section);
    padding-bottom: var(--section);
    background:
        radial-gradient(80% 120% at 100% 0%, var(--gold-soft), transparent 60%),
        var(--bg-raised);
    border-block: 1px solid var(--line);
}
.site-main > .section:last-child, .site-main > .section--tint:last-child { margin-bottom: 0; }
.site-main > :last-child:not(.page):not(.section--tint) { padding-bottom: var(--section); }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-2) var(--s-5); margin-bottom: var(--s-5); }
.section-head .kicker { margin-bottom: var(--s-2); }
.section-head__more {
    display: inline-flex;
    align-items: center;
    gap: .45em;
    padding: 6px 0;
    color: var(--muted);
    font-size: var(--step--1);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.section-head__more span { transition: transform var(--t) var(--ease); }
.section-head__more:hover { color: var(--gold); }
.section-head__more:hover span { transform: translateX(4px); }
.section-note { max-width: 62ch; margin-top: calc(var(--s-3) * -1); margin-bottom: var(--s-5); color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--card-min), 1fr)); gap: var(--s-6) var(--gap); }

/* rails: horizontal scroll with snap */
.rail { position: relative; }
.row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: var(--rail-w);
    gap: var(--gap);
    margin: 0;
    padding: 6px var(--gutter) 18px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
}
.row::-webkit-scrollbar { display: none; }
.row:focus-visible { outline-offset: -2px; border-radius: 0; }
.row__item { scroll-snap-align: start; min-width: 0; }
@media (min-width: 2560px) { .row { padding-inline: max(var(--gutter), (100vw - var(--wrap)) / 2 + var(--gutter)); } }

.rail__btn {
    position: absolute;
    top: calc(6px + var(--rail-w) * .75);
    z-index: 3;
    display: none;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: var(--surface-glass);
    color: var(--text);
    box-shadow: var(--shadow);
    cursor: pointer;
    opacity: 0;
    transform: translateY(-50%) scale(.9);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), border-color var(--t-fast), color var(--t-fast);
}
.rail__btn--prev { left: max(8px, calc(var(--gutter) - 24px)); }
.rail__btn--next { right: max(8px, calc(var(--gutter) - 24px)); }
.rail__btn:hover { border-color: var(--gold); color: var(--gold); }
.rail__btn[disabled] { opacity: 0 !important; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
    .rail__btn { display: grid; }
    .rail:hover .rail__btn, .rail__btn:focus-visible { opacity: 1; transform: translateY(-50%) scale(1); }
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.card__link { display: flex; flex-direction: column; gap: 12px; color: var(--text); text-decoration: none; }
.card__link:hover { color: var(--text); }
.card__link:focus-visible { outline: none; }
.card__link > .card__frame { order: -1; }
.card__frame {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: var(--r);
    background: linear-gradient(160deg, var(--surface-2), var(--surface));
    box-shadow: 0 0 0 1px var(--poster-ring), var(--shadow-sm);
    transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.card__frame::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgb(255 255 255 / .1), transparent 30%);
    opacity: 0;
    transition: opacity var(--t) var(--ease);
    pointer-events: none;
}
.poster { width: 100%; height: 100%; object-fit: cover; }
.card__link:hover .card__frame,
.card__link:focus-visible .card__frame,
.rank__body:hover .card__frame,
.rank__body:focus-visible .card__frame {
    transform: translateY(-6px);
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--accent, var(--gold)) 70%, transparent),
        0 22px 44px -18px color-mix(in srgb, var(--accent, var(--gold)) 75%, transparent),
        var(--shadow);
}
.card__link:hover .card__frame::after, .card__link:focus-visible .card__frame::after { opacity: 1; }
.card__link:focus-visible .card__frame { outline: 2px solid var(--gold); outline-offset: 3px; }
.card__rating {
    position: absolute;
    top: 8px;
    left: 8px;
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 26px;
    padding: 0 8px;
    border-radius: var(--pill);
    background: rgb(8 9 13 / .72);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14);
}
.card__title {
    display: -webkit-box;
    overflow: hidden;
    font-size: var(--step--1);
    font-weight: 700;
    line-height: 1.3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.card__meta { color: var(--faint); font-size: var(--step--2); font-weight: 600; letter-spacing: .01em; }
.card__note { color: var(--gold); }
.card__credit { margin-top: 2px; font-size: 10px; }
.card__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 4px; min-width: 0; }
.card__date { color: var(--muted); font-size: var(--step--2); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Top 10 (home details + charts)
   ========================================================================== */

.tops { display: grid; gap: var(--s-3); }
.top { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); transition: border-color var(--t-fast); }
.top[open] { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, var(--surface)), var(--surface) 240px); }
.top__summary { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-5); cursor: pointer; list-style: none; font-weight: 700; }
.top__summary::-webkit-details-marker { display: none; }
.top__summary:hover .top__chevron { color: var(--gold); }
.top__logo { height: 22px; width: 88px; justify-content: flex-start; }
.top__logo.logo--initial { width: 28px; height: 28px; justify-content: center; }
.top__name { font-size: var(--step-0); }
.top__hint { margin-left: auto; color: var(--muted); font-size: var(--step--1); font-weight: 600; }
.top__chevron { flex: none; color: var(--muted); transition: transform var(--t) var(--ease); }
.top[open] .top__chevron { transform: rotate(180deg); }
.top > .ranks { padding: var(--s-2) var(--s-5) var(--s-6); }
.top__label { padding: var(--s-4) var(--s-5) 0; color: var(--muted); font-size: var(--step--1); }
.top__label span { font-weight: 500; }
.top__label + .ranks { padding: var(--s-4) var(--s-5) var(--s-6); }

.ranks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 8vw + 96px, 250px), 1fr));
    gap: var(--s-6) var(--gap);
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: rank;
}
.rank { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; padding-left: clamp(30px, 2.2vw + 14px, 52px); }
.rank__num {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 0;
    color: transparent;
    font: 700 clamp(4.2rem, 4vw + 2.4rem, 7.5rem)/.82 var(--font-display);
    font-variation-settings: "opsz" 32;
    letter-spacing: -.06em;
    -webkit-text-stroke: 1.5px color-mix(in srgb, var(--accent) 70%, var(--text));
    pointer-events: none;
    user-select: none;
}
@media (max-width: 559px) {
    /* phones: two ranks per row instead of one full-width poster each */
    .ranks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-3); }
    .rank { padding-left: 26px; }
    .rank__num { font-size: 3.6rem; }
}
.rank:first-child .rank__num { color: color-mix(in srgb, var(--accent) 35%, transparent); }
.rank__body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; color: var(--text); text-decoration: none; }
.rank__body:hover { color: var(--text); }
.rank__title { display: -webkit-box; overflow: hidden; font-size: var(--step--1); font-weight: 700; line-height: 1.3; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.rank__sub { color: var(--faint); font-size: var(--step--2); font-weight: 600; }

/* charts page */
.filter { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0 0 var(--s-6); }
@media (max-width: 759px) {
    .filter { flex-wrap: nowrap; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; overflow-x: auto; scrollbar-width: none; scroll-padding-inline: var(--gutter); }
    .filter::-webkit-scrollbar { display: none; }
}
.chart-block { margin-top: var(--section); padding-top: var(--s-6); border-top: 1px solid var(--line); }
.chart-block__title { display: flex; align-items: center; gap: var(--s-4); }
.chart-block__logo { height: clamp(22px, 1.5vw + 12px, 34px); max-width: 160px; }
.chart-block__logo.logo--initial { width: 36px; height: 36px; font-size: 20px; }
.chart { margin-top: var(--s-6); }
.chart__label { margin-bottom: var(--s-5); color: var(--muted); font-size: var(--step--1); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.chart__date { color: var(--faint); font-weight: 600; letter-spacing: 0; text-transform: none; }

.week { margin-top: var(--s-3); overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.week summary { padding: var(--s-4) var(--s-5); cursor: pointer; font-weight: 700; }
.week__cols { display: grid; gap: var(--s-2) var(--s-7); padding: 0 var(--s-5) var(--s-5); }
@media (min-width: 760px) { .week__cols { grid-template-columns: 1fr 1fr; } }
.week__label { margin: var(--s-3) 0 var(--s-2); color: var(--gold); font-size: var(--step--2); letter-spacing: .16em; text-transform: uppercase; }
.week__list { margin: 0; padding: 0; list-style: none; }
.week__list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.week__list li:last-child { border-bottom: 0; }
.week__rank { width: 1.6em; color: var(--faint); font: 600 1rem/1 var(--font-display); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Listing pages
   ========================================================================== */

.crumbs { margin-bottom: var(--s-5); font-size: var(--step--2); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; color: var(--faint); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; opacity: .6; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.crumbs [aria-current] { color: var(--muted); }

.page-head { max-width: 980px; margin-bottom: clamp(28px, 3vw, 56px); }
.page-head h1 { margin-bottom: var(--s-4); }
.page-head__lead { max-width: 62ch; color: var(--muted); font-size: var(--step-1); line-height: 1.55; }

.day { margin-top: clamp(32px, 3vw, 56px); }
.day__head {
    position: sticky;
    top: 108px;
    z-index: 4;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--s-4);
    margin-bottom: var(--s-5);
    padding: var(--s-3) 0;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(var(--bg) 70%, transparent);
}
@media (min-width: 1200px) { .day__head { top: 76px; } }
.day__name { font: 500 var(--step-2)/1.1 var(--font-display); }
.day__name::first-letter { text-transform: uppercase; }
.day__count { flex: none; color: var(--faint); font: 700 var(--step--2)/1 var(--font-text); letter-spacing: .12em; text-transform: uppercase; }

/* calendar: compact rows (next episodes, leaving), later weeks collapsed */
.cal-week .day { margin-top: var(--s-5); }
.cal-week .day__head { margin-bottom: var(--s-3); padding: var(--s-2) 0; }
.cal-week .grid + .cal-rows { margin-top: var(--s-4); }
.cal-rows { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .cal-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-5); } }
.cal-row {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    grid-template-areas: "thumb title svc" "thumb what svc";
    align-items: center;
    column-gap: var(--s-3);
    min-width: 0;
    padding: 6px 10px 6px 6px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent, var(--line-strong));
    border-radius: var(--r-sm);
    background: var(--surface);
}
.cal-row__thumb { grid-area: thumb; width: 36px; height: 54px; border-radius: 4px; object-fit: cover; background: var(--line); }
.cal-row__title { grid-area: title; overflow: hidden; color: var(--text); font-weight: 600; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.cal-row__title:hover { text-decoration: underline; }
.cal-row__what { grid-area: what; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; color: var(--muted); font-size: var(--step--1); }
.cal-row__chip { flex: none; color: var(--gold); font-weight: 700; white-space: nowrap; }
.cal-row--leaving .cal-row__chip { color: var(--danger, #e5484d); }
.cal-row__label { min-width: 0; }
.cal-row__svc { grid-area: svc; }
.cal-more { margin-top: var(--section, 48px); }
.cal-more__summary { width: fit-content; cursor: pointer; list-style: none; }
.cal-more__summary::-webkit-details-marker { display: none; }
.cal-more[open] > .cal-more__summary { margin-bottom: var(--s-4); }

.empty {
    display: grid;
    justify-items: center;
    gap: var(--s-2);
    padding: clamp(32px, 4vw, 64px) var(--s-5);
    border: 1px dashed var(--line-strong);
    border-radius: var(--r-lg);
    background: var(--bg-raised);
    text-align: center;
}
.empty__icon { color: var(--gold); opacity: .8; }
.empty__title { margin: var(--s-2) 0 0; font: 500 var(--step-1)/1.2 var(--font-display); }
.empty__text { max-width: 46ch; margin: 0; color: var(--muted); }

/* ==========================================================================
   Detail
   ========================================================================== */

.detail-hero { position: relative; isolation: isolate; padding-top: var(--s-5); }
.detail-hero.has-backdrop { display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(460px, 62vw, 900px); padding-top: var(--s-4); background: var(--bg); }
.detail-hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.detail-hero__backdrop { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; animation: hero-zoom 5s var(--ease) both; }
.detail-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, #07080b 0%, rgb(7 8 11 / .9) 30%, rgb(7 8 11 / .35) 62%, rgb(7 8 11 / .55) 100%),
        linear-gradient(90deg, rgb(7 8 11 / .75), transparent 70%);
}
.detail-hero__wrap { display: flex; flex-direction: column; flex: 1; }
.detail-hero.has-backdrop .crumbs { flex: 1; }
.detail-hero__inner { display: grid; grid-template-columns: clamp(108px, 26vw, 150px) 1fr; gap: var(--s-4) clamp(16px, 3vw, 56px); align-items: end; padding-bottom: clamp(28px, 4vw, 72px); }
.detail-hero__figure { margin: 0; min-width: 0; }
.detail-hero__poster .poster { aspect-ratio: 2 / 3; border-radius: var(--r); box-shadow: 0 0 0 1px var(--poster-ring), var(--shadow-lg); }
.detail-hero__info { min-width: 0; animation: rise .8s var(--ease) both; }
.detail__title { font-size: var(--step-5); line-height: .98; overflow-wrap: anywhere; hyphens: auto; }
.detail__original { margin: var(--s-3) 0 0; color: var(--muted); font: italic 400 var(--step-1)/1.3 var(--font-display); }
.detail-hero__cta { margin: var(--s-5) 0 0; }
/* image source credits (detail page): small and muted, links stay underlined (WCAG 1.4.1) */
.img-credit { display: block; margin: 6px 0 0; color: var(--faint); font-size: 11px; font-weight: 500; line-height: 1.35; letter-spacing: .01em; overflow-wrap: anywhere; }
.img-credit a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 55%, transparent); }
.img-credit a:hover, .img-credit a:focus-visible { color: var(--muted); text-decoration-color: currentColor; }
.detail-hero__credit { position: absolute; right: 16px; bottom: 8px; z-index: 1; margin: 0; max-width: calc(100% - 32px); text-align: right; text-shadow: 0 1px 2px rgb(0 0 0 / .6); }
@media (max-width: 759px) {
    .detail-hero__inner { align-items: start; }
    .detail__title { font-size: var(--step-3); }
    .detail-hero__info .tags, .detail-hero__cta { grid-column: 1 / -1; }
}
@media (min-width: 760px) {
    .detail-hero__inner { grid-template-columns: clamp(170px, 15vw, 320px) 1fr; }
}

.facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: var(--s-4) 0 0; padding: 0; list-style: none; color: var(--muted); font-size: var(--step--1); font-weight: 600; }
.facts li + li::before { content: ""; display: inline-block; width: 4px; height: 4px; margin-right: 18px; border-radius: 50%; background: var(--faint); vertical-align: middle; }
.facts__rating { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.facts__rating strong { font-size: var(--step-1); }
.meter { position: relative; width: 64px; height: 6px; overflow: hidden; border-radius: var(--pill); background: var(--line-strong); }
.meter::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--value) * 1%); border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--gold-strong)); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--s-4) 0 0; padding: 0; list-style: none; }
.tags li { padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: var(--pill); color: var(--muted); font-size: var(--step--2); font-weight: 700; letter-spacing: .02em; }

.detail__body { display: grid; gap: var(--section) clamp(32px, 4vw, 96px); padding-block: clamp(32px, 4vw, 72px) 0; }
@media (min-width: 1100px) {
    .detail__body { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
}
.detail__main { display: grid; gap: var(--section); min-width: 0; }
.detail__body h2 { margin-bottom: var(--s-5); }

.watch-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 430px), 1fr)); gap: var(--s-3); margin: 0 0 var(--s-4); padding: 0; list-style: none; }
.watch {
    --c: var(--svc);
    --c-ink: var(--svc-ink);
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--s-4);
    height: 100%;
    padding: var(--s-4) var(--s-4) var(--s-4) var(--s-5);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: linear-gradient(120deg, color-mix(in srgb, var(--c) 14%, var(--surface)), var(--surface) 55%);
    color: var(--text);
    text-decoration: none;
    transition: transform var(--t) var(--ease), border-color var(--t-fast), box-shadow var(--t) var(--ease);
}
/* light theme: the real brand color (dark ones are only lightened for dark backgrounds) */
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .watch { --c: var(--svc-light, var(--svc)); --c-ink: var(--svc-light-ink, var(--svc-ink)); }
}
:root[data-theme="light"] .watch { --c: var(--svc-light, var(--svc)); --c-ink: var(--svc-light-ink, var(--svc-ink)); }
.watch::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c); }
.watch:hover { color: var(--text); transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 20px 44px -22px var(--c); }
.watch__logo { width: clamp(64px, 5vw, 92px); height: 26px; justify-content: flex-start; }
.watch__logo.logo--initial { width: 36px; height: 36px; justify-content: center; font-size: 18px; }
.watch__body { display: grid; gap: 2px; min-width: 0; }
.watch__service { font-weight: 800; }
.watch__type { color: var(--muted); font-size: var(--step--1); }
.watch__dates { color: var(--faint); font-size: var(--step--2); font-weight: 600; }
.watch__dates strong { color: var(--danger); font-weight: 800; }
.watch__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: var(--pill);
    background: var(--c);
    color: var(--c-ink);
    font-size: var(--step--2);
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: transform var(--t) var(--ease);
}
.watch:hover .watch__cta { transform: translateX(2px); }
@media (max-width: 420px) {
    .watch { grid-template-columns: 1fr auto; }
    .watch__logo { grid-column: 1 / -1; }
}

.position-list { display: grid; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.position-list li { display: flex; align-items: baseline; gap: var(--s-4); padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.position-list__rank { min-width: 2ch; color: color-mix(in srgb, var(--accent) 50%, var(--text)); font: 600 var(--step-2)/1 var(--font-display); }

.prose { max-width: var(--measure); font-size: var(--step-0); line-height: 1.75; }
.prose p:first-child::first-letter { float: left; margin: .06em .1em 0 0; color: var(--gold); font: 500 3.4em/.8 var(--font-display); }
.prose h2 { margin: var(--s-7) 0 var(--s-4); }
.source { max-width: var(--measure); color: var(--faint); font-size: var(--step--2); }
.credits { display: grid; gap: var(--s-4); max-width: var(--measure); margin: var(--s-6) 0 0; padding-top: var(--s-5); border-top: 1px solid var(--line); }
.credits div { display: grid; gap: 2px; }
@media (min-width: 560px) { .credits div { grid-template-columns: 110px 1fr; gap: var(--s-4); } }
.credits dt { color: var(--faint); font-size: var(--step--2); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding-top: .25em; }
.credits dd { margin: 0; }
.ext-links { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
.ext { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: var(--pill); font-size: var(--step--1); font-weight: 700; text-decoration: none; }
.ext:hover { border-color: var(--gold); }
.ext--csfd { border-color: color-mix(in srgb, #ba0305 60%, var(--line-strong)); }

/* ==========================================================================
   Service hub
   ========================================================================== */

.service-hero { position: relative; isolation: isolate; overflow: hidden; padding: var(--s-5) 0 clamp(32px, 4vw, 64px); border-bottom: 1px solid var(--line); }
.service-hero__glow { position: absolute; inset: -40% -10% auto; z-index: -1; height: 140%; background: radial-gradient(50% 60% at 20% 30%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%); opacity: .9; }
.service-hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-5) var(--s-6); }
.service-hero__logo { display: grid; place-items: center; width: clamp(120px, 12vw, 200px); aspect-ratio: 16 / 10; padding: var(--s-5); border: 1px solid var(--line-strong); border-radius: var(--r-xl); background: var(--surface-glass); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.service-hero__img { width: 100%; height: 100%; justify-content: center; }
.service-hero__img.logo--initial { width: 56px; height: 56px; font-size: 30px; }
.service-hero h1 { margin-bottom: var(--s-2); }
.link-out { color: var(--muted); font-weight: 600; }
.stats-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: clamp(28px, 3vw, 48px) 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--line); }
@media (min-width: 760px) { .stats-strip { grid-template-columns: repeat(4, 1fr); } }
.stats-strip div { padding: var(--s-4) var(--s-5); background: var(--surface); }
.stats-strip dt { color: var(--faint); font-size: var(--step--2); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.stats-strip dd { margin: 4px 0 0; font: 500 var(--step-3)/1 var(--font-display); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Statistics
   ========================================================================== */

.stat { margin-top: var(--section); padding: clamp(20px, 3vw, 48px); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); }
.page-head + .stat { margin-top: 0; }
.stat h2 { margin-bottom: var(--s-3); }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: var(--s-5); color: var(--muted); font-size: var(--step--1); }
.legend__key { display: inline-block; width: 12px; height: 12px; margin-left: 10px; border-radius: 4px; }
.legend__key:first-child { margin-left: 0; }
.legend__key--a { background: var(--text); }
.legend__key--b { background: color-mix(in srgb, var(--text) 35%, transparent); }
.legend__key--c { background: var(--danger); }
.bars { display: grid; gap: var(--s-4); margin: 0 0 var(--s-6); padding: 0; list-style: none; }
.bars__row { display: grid; grid-template-columns: minmax(84px, 9rem) 1fr auto; align-items: center; gap: var(--s-4); }
.bars__label { overflow: hidden; font-size: var(--step--1); font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.bars__label::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--accent); vertical-align: middle; }
.bars__track { display: flex; height: 14px; overflow: hidden; border-radius: var(--pill); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.bars__stack { display: grid; gap: 5px; }
.bars__stack .bars__track { height: 10px; }
.bars__bar { display: block; height: 100%; transform-origin: left; animation: grow 1s var(--ease) both; }
.bars__bar--a { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 70%, var(--text)), var(--accent)); }
.bars__bar--b { background: color-mix(in srgb, var(--accent) 38%, transparent); }
.bars__bar--c { background: linear-gradient(90deg, color-mix(in srgb, var(--danger) 60%, transparent), var(--danger)); }
.bars__bar--accent { background: linear-gradient(90deg, var(--gold), var(--gold-strong)); }
.bars__track > .bars__bar:first-child { border-radius: var(--pill) 0 0 var(--pill); }
.bars__track > .bars__bar:last-child { border-radius: 0 var(--pill) var(--pill) 0; }
.bars__track > .bars__bar:only-child { border-radius: var(--pill); }
.bars__value { min-width: 4.5ch; font-size: var(--step--1); font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
@keyframes grow { from { transform: scaleX(0); } }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
.table-wrap:focus-visible { outline-offset: 2px; border-radius: var(--r-lg); }
table { width: 100%; border-collapse: collapse; font-size: var(--step--1); font-variant-numeric: tabular-nums; }
caption { padding: var(--s-3) var(--s-4); color: var(--faint); font-size: var(--step--2); text-align: left; caption-side: bottom; }
th, td { padding: 12px var(--s-4); border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
th:first-child { text-align: left; }
thead th { color: var(--faint); font-size: var(--step--2); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
tbody tr:hover { background: var(--gold-soft); }
tbody th a { text-decoration: none; }

/* ==========================================================================
   About
   ========================================================================== */

.sources { display: grid; gap: var(--s-3); margin: 0 0 var(--s-6); }
.sources div { padding: var(--s-4) var(--s-5); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.sources dt { margin-bottom: 4px; font-weight: 800; }
.sources dd { margin: 0; color: var(--muted); font-size: var(--step--1); line-height: 1.6; }
.page--narrow .prose p:first-child::first-letter { float: none; margin: 0; color: inherit; font: inherit; }
.prose .sources { line-height: 1.5; }
.error-page p:last-child { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { margin-top: var(--section); padding-block: clamp(40px, 5vw, 88px) var(--s-6); border-top: 1px solid var(--line); background: var(--bg-raised); color: var(--muted); font-size: var(--step--1); }
.site-footer__grid { display: grid; gap: var(--s-6) var(--s-8); }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .6fr) minmax(0, 1.2fr); } }
.brand--footer { margin-bottom: var(--s-3); color: var(--text); }
.site-footer__brand { max-width: 46ch; }
.site-footer__brand strong { color: var(--text); }
.site-footer__title { margin-bottom: var(--s-3); color: var(--text); font-size: var(--step--2); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.site-footer__nav ul, .attribution { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--gold); }
.site-footer__links { grid-column: 1 / -1; margin: var(--s-4) 0 0; padding-top: var(--s-5); border-top: 1px solid var(--line); color: var(--faint); font-size: var(--step--2); }

/* ==========================================================================
   Motion preferences, print
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

@media print {
    .site-header, .site-footer, .rail__btn, .theme-toggle { display: none; }
    body { background: #fff; color: #000; }
}

/* two-digit ranks: condense so both digits stay visible beside the poster */
.rank:nth-child(n+10) .rank__num { letter-spacing: -.16em; transform: scaleX(.72); transform-origin: left top; }
.service-hero__where { color: var(--muted); font-style: italic; font-weight: 400; }

/* ==========================================================================
   Phase 3 — listing filters, pager, language badges
   ========================================================================== */

.filters {
    display: grid;
    gap: var(--s-3);
    margin: 0 0 var(--s-6);
    padding: var(--s-3);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 70%, transparent), transparent);
}
.filters__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); min-width: 0; }
.filters__flags { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.filters__genres { gap: var(--s-2); padding-top: var(--s-3); border-top: 1px solid var(--line); }

/* segmented control (Vše / Filmy / Seriály) */
.seg { display: inline-flex; flex: none; padding: 3px; border: 1px solid var(--line-strong); border-radius: var(--pill); background: var(--bg-raised); }
.seg__item {
    display: inline-grid;
    place-items: center;
    min-height: 36px;
    padding: 0 16px;
    border-radius: var(--pill);
    color: var(--muted);
    font-size: var(--step--1);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--t-fast), background-color var(--t-fast) var(--ease), box-shadow var(--t) var(--ease);
}
.seg__item:hover { color: var(--text); }
.seg__item[aria-current] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--control-border), var(--shadow-sm); }

.chip--flag { gap: .5em; }
.chip__check {
    position: relative;
    flex: none;
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--control-border);
    border-radius: 5px;
    transition: background-color var(--t-fast), border-color var(--t-fast);
}
.chip--flag.is-active .chip__check { border-color: var(--gold); background: var(--gold); }
.chip--flag.is-active .chip__check::after { content: ""; position: absolute; left: 4.5px; top: 1px; width: 4px; height: 8px; border: solid var(--gold-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.chip--genre { min-height: 36px; padding-inline: .9em; }
.chip__count { margin-left: .15em; color: var(--faint); font-size: .86em; font-variant-numeric: tabular-nums; }
.chip.is-active .chip__count { color: var(--gold); }

.filters__active { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.filters__label { color: var(--muted); font-size: var(--step--1); }
.filters__label strong { color: var(--text); font-variant-numeric: tabular-nums; }
.filters__chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.chip--remove { min-height: 32px; padding: .3em .55em .3em .9em; border-color: color-mix(in srgb, var(--gold) 55%, transparent); background: var(--gold-soft); }
.chip__x { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--text) 10%, transparent); font-size: 15px; line-height: 1; }
.chip--remove:hover .chip__x { background: var(--gold); color: var(--gold-ink); }
.filters__reset { margin-left: auto; color: var(--gold); font-size: var(--step--1); font-weight: 700; }

@media (max-width: 759px) {
    /* phones: one swipeable row per group, bleeding to the screen edges */
    .filters { margin-inline: calc(var(--gutter) * -1); padding: var(--s-3) 0; border-inline: 0; border-radius: 0; }
    .filters__row { flex-wrap: nowrap; overflow-x: auto; padding-inline: var(--gutter); scrollbar-width: none; scroll-padding-inline: var(--gutter); }
    .filters__row::-webkit-scrollbar { display: none; }
    .filters__flags { flex-wrap: nowrap; }
    .filters__active { padding-inline: var(--gutter); }
    .filters__reset { margin-left: 0; }
}

/* pager + "Načíst další" */
.pager__more { min-width: min(100%, 320px); justify-content: center; }
.pager__more[aria-busy="true"] { cursor: progress; opacity: .75; }
.pager__more-count { color: var(--muted); font-weight: 600; }
.pager.is-enhanced .pager__info, .pager.is-enhanced .pager__prev, .pager.is-enhanced .pager__next { display: none; }

/* language badges (cards, offers) */
.lang {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px 3px 6px;
    border-radius: var(--pill);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1.2;
    white-space: nowrap;
}
.lang svg { flex: none; }
.card__langs { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; flex-wrap: wrap; gap: 4px; pointer-events: none; }
.card__langs .lang { background: rgb(8 9 13 / .74); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.card__langs .lang--dub { background: color-mix(in srgb, #e2b866 92%, #000); color: #1c1407; box-shadow: none; }
.watch__langs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.watch__langs .lang { border: 1px solid var(--line-strong); color: var(--text); }
.watch__langs .lang--dub { border-color: color-mix(in srgb, var(--gold) 60%, transparent); background: var(--gold-soft); color: var(--gold-strong); }

/* ==========================================================================
   Skeletons + image fade-in (no layout shift: frames keep their aspect ratio)
   ========================================================================== */

.skeleton {
    position: relative;
    overflow: hidden;
    background: color-mix(in srgb, var(--surface-2) 80%, var(--surface));
}
.skeleton::after,
.js .card__frame:has(> .poster[loading="lazy"]:not(.is-loaded))::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(100deg, transparent 20%, color-mix(in srgb, var(--text) 7%, transparent) 50%, transparent 80%);
    transform: translateX(-100%);
    opacity: 1;
    animation: shimmer 1.4s var(--ease) infinite;
}
.skeleton--line { display: block; height: .9em; margin-top: 10px; border-radius: 6px; }
.skeleton--short { width: 55%; margin-top: 6px; }
.card--skeleton .card__frame { box-shadow: 0 0 0 1px var(--poster-ring); }
@keyframes shimmer { to { transform: translateX(100%); } }

/* lazy posters fade in once decoded (app.js adds .is-loaded); the fallback animation reveals them anyway */
.js .poster[loading="lazy"] { opacity: 0; transition: opacity .45s var(--ease); animation: reveal-fallback 0s 4s forwards; }
.js .poster[loading="lazy"].is-loaded { opacity: 1; animation: none; }
@keyframes reveal-fallback { to { opacity: 1; } }
.card__frame > .poster { position: relative; z-index: 1; }
.card__rating, .card__langs { z-index: 2; }

/* autocomplete skeleton rows */
.suggest__item--skeleton { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; padding: 8px 10px; }
.suggest__item--skeleton .skeleton:first-child { width: 44px; height: 66px; border-radius: 6px; }
.suggest__item--skeleton .skeleton--line { margin: 0 0 8px; width: 70%; }
.suggest__item--skeleton .skeleton--short { width: 40%; margin: 0; }

/* ==========================================================================
   View Transitions (cross-document): soft page fade + poster → detail morph
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
    @view-transition { navigation: auto; }
    ::view-transition-old(root) { animation: vt-out .22s var(--ease) both; }
    ::view-transition-new(root) { animation: vt-in .34s var(--ease) both; }
    ::view-transition-group(*) { animation-duration: .42s; animation-timing-function: var(--ease); }
    ::view-transition-image-pair(*) { isolation: auto; }
    ::view-transition-old(*):not(:only-child), ::view-transition-new(*):not(:only-child) { mix-blend-mode: normal; height: 100%; object-fit: cover; }
    .site-header { view-transition-name: site-header; }
    .bottom-nav { view-transition-name: bottom-nav; }
    ::view-transition-group(site-header), ::view-transition-group(bottom-nav) { animation: none; }
    ::view-transition-old(site-header), ::view-transition-old(bottom-nav) { display: none; }
    ::view-transition-new(site-header), ::view-transition-new(bottom-nav) { animation: none; }
}
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* ==========================================================================
   Header nav (desktop) + mobile bottom nav
   ========================================================================== */

.nav__more { display: none; }
@media (min-width: 1200px) and (max-width: 1399px) {
    .nav__link { padding: 10px 10px; }
    .search, .search:focus-within, .search.is-open { width: clamp(200px, 16vw, 280px); }
}
/* longer labels ("Brzy uvidíme", "Poslední šance"): one header row from 1200px, tighter links and search below 1280px */
@media (min-width: 1200px) and (max-width: 1279px) {
    .site-header__inner { column-gap: var(--s-3); }
    .nav__link { padding: 10px 7px; }
    .search, .search:focus-within, .search.is-open { width: 176px; }
    .search__kbd { display: none; }
}

.bottom-nav { display: none; }
@media (max-width: 760px) {
    .site-header .nav { display: none; }
    .site-header__inner { grid-template-areas: "brand tools"; }
    body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
    /* keyboard focus scrolled into view must not end up under the fixed bottom nav (WCAG 2.4.11) */
    html { scroll-padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
    .bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 55;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        padding: 6px max(6px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px));
        border-top: 1px solid var(--line);
        background: var(--header-bg);
        -webkit-backdrop-filter: saturate(1.6) blur(20px);
        backdrop-filter: saturate(1.6) blur(20px);
        box-shadow: 0 -12px 32px -20px rgb(0 0 0 / .5);
    }
}
.bottom-nav__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 54px;
    padding: 4px 2px;
    border: 0;
    border-radius: var(--r);
    background: none;
    color: var(--muted);
    font: 700 11px/1.1 var(--font-text);
    letter-spacing: .01em;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color var(--t-fast);
}
.bottom-nav__item svg { width: 24px; height: 24px; transition: transform var(--t) var(--ease); }
.bottom-nav__item:hover, .bottom-nav__item:focus-visible { color: var(--text); }
.bottom-nav__item:active svg { transform: scale(.9); }
.bottom-nav__item[aria-current="page"], .bottom-nav__item.is-current { color: var(--gold); }
.bottom-nav__item[aria-current="page"]::before, .bottom-nav__item.is-current::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 30%;
    right: 30%;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--gold);
    box-shadow: 0 0 14px var(--gold);
}

/* "Více" sheet (Popover API, works without JS) */
.sheet {
    position: fixed;
    inset: auto 0 0 0;
    width: 100%;
    max-width: none;
    max-height: 80vh;
    margin: 0;
    padding: var(--s-3) var(--gutter) calc(var(--s-5) + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    border: 0;
    border-top: 1px solid var(--line-strong);
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    background: var(--bg-raised);
    color: var(--text);
    box-shadow: var(--shadow-lg);
}
.sheet::backdrop { background: rgb(0 0 0 / .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
@media (prefers-reduced-motion: no-preference) {
    .sheet:popover-open { animation: sheet-in .32s var(--ease); }
}
@keyframes sheet-in { from { transform: translateY(100%); } }
.sheet__grip { width: 44px; height: 5px; margin: 0 auto var(--s-4); border-radius: 3px; background: var(--line-strong); }
.sheet__title { margin: 0 0 var(--s-3); color: var(--faint); font-size: var(--step--2); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.sheet__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.sheet__link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
}
.sheet__link svg { flex: none; color: var(--gold); }
.sheet__link[aria-current="page"] { border-color: var(--gold); background: var(--gold-soft); }
.sheet__close { display: block; width: 100%; margin-top: var(--s-4); }

/* ==========================================================================
   "Co dnes večer" — moonlit hero, five-question wizard, three picks
   ========================================================================== */

.tonight-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: var(--s-5) clamp(56px, 7vw, 120px); background: #07080b; }
.tonight-hero__sky {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(60% 90% at 82% 0%, rgb(226 184 102 / .16), transparent 60%),
        radial-gradient(70% 120% at 10% 120%, rgb(54 72 140 / .35), transparent 60%),
        linear-gradient(180deg, #0b0e1a 0%, #07080b 100%);
}
.tonight-hero__moon {
    position: absolute;
    top: clamp(28px, 6vw, 90px);
    right: clamp(24px, 9vw, 220px);
    width: clamp(84px, 11vw, 190px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 36% 34%, #fff6df 0%, #f3d290 38%, #c9973f 72%, #8a6223 100%);
    box-shadow: 0 0 60px 10px rgb(240 205 134 / .25), 0 0 180px 40px rgb(240 205 134 / .12);
    -webkit-mask-image: radial-gradient(circle at 70% 36%, transparent 38%, #000 39.5%);
    mask-image: radial-gradient(circle at 70% 36%, transparent 38%, #000 39.5%);
}
.tonight-hero__stars {
    position: absolute;
    inset: 0;
    opacity: .7;
    background-image:
        radial-gradient(1.2px 1.2px at 12% 22%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 28% 62%, #fff 50%, transparent 51%),
        radial-gradient(1.4px 1.4px at 44% 18%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 58% 48%, #fff 50%, transparent 51%),
        radial-gradient(1.2px 1.2px at 66% 12%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 74% 70%, #fff 50%, transparent 51%),
        radial-gradient(1.3px 1.3px at 90% 58%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 6% 80%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 36% 86%, #fff 50%, transparent 51%);
}
@media (prefers-reduced-motion: no-preference) {
    /* WCAG 2.2.2: decorative motion stops within 5 s */
    .tonight-hero__stars { animation: twinkle 1.6s ease-in-out 3 alternate both; }
    .tonight-hero__moon { animation: rise .9s var(--ease) both; }
}
@keyframes twinkle { from { opacity: .35; } to { opacity: .8; } }
.tonight-hero__inner { position: relative; }
.tonight-hero__title { margin: 0 0 var(--s-4); font-size: var(--step-5); font-weight: 400; letter-spacing: -.035em; }
.tonight-hero__title em { color: var(--gold); font-weight: 300; }
.tonight-hero__lead { max-width: 54ch; margin: 0; color: var(--muted); font-size: var(--step-1); line-height: 1.5; }

.tonight__body {
    display: grid;
    gap: var(--section) clamp(32px, 4vw, 88px);
    margin-top: calc(clamp(28px, 4vw, 64px) * -1);
    padding-bottom: var(--section);
}
@media (min-width: 1200px) {
    .tonight__body { grid-template-columns: minmax(420px, 5fr) minmax(0, 7fr); align-items: start; }
    .wizard-wrap { position: sticky; top: 100px; }
    .tonight__body--answered .wizard-wrap { order: -1; }
}
/* answered state: results first, the form collapsed under "Upravit výběr" (opened by JS on wide screens) */
.wizard-wrap { min-width: 0; }
.wizard-wrap__summary { position: relative; z-index: 1; width: fit-content; margin-bottom: var(--s-3); cursor: pointer; list-style: none; }
.wizard-wrap__summary::-webkit-details-marker { display: none; }
.wizard-wrap__summary::after { content: "▾"; margin-left: 8px; transition: transform .2s; }
.wizard-wrap[open] > .wizard-wrap__summary::after { transform: rotate(180deg); }
@media (min-width: 1200px) {
    .tonight__body--answered .tonight-results { padding-top: 0; }
}

/* wizard */
.wizard {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0;
    padding: clamp(18px, 2.4vw, 36px);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-xl);
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, var(--gold) 4%), var(--surface));
    box-shadow: var(--shadow-lg);
}
.wizard__step { min-width: 0; margin: 0; padding: 0 0 var(--s-5); border: 0; border-bottom: 1px solid var(--line); }
.wizard__step + .wizard__step { padding-top: var(--s-5); }
.wizard__step--last { border-bottom: 0; }
.wizard__q { display: flex; align-items: baseline; gap: 12px; margin: 0 0 var(--s-3); padding: 0; font: 500 var(--step-1)/1.2 var(--font-display); letter-spacing: -.01em; }
.wizard__num { color: var(--gold); font-size: .8em; font-style: italic; font-variant-numeric: lining-nums; }
.wizard__hint { margin: calc(var(--s-2) * -1) 0 var(--s-3); color: var(--faint); font-size: var(--step--1); }
.wizard__submit { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); padding-top: var(--s-3); }
.btn--lg { min-height: 54px; padding-inline: 1.8em; font-size: var(--step-0); }
.wizard__reset { color: var(--muted); font-size: var(--step--1); font-weight: 700; }

/* inputs are visually hidden but stay focusable; the face shows state */
.svc-pick input, .opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.svc-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: var(--s-2); }
.svc-pick { position: relative; display: block; cursor: pointer; }
.svc-pick__face {
    position: relative;
    display: grid;
    grid-template-rows: 30px auto;
    gap: 6px;
    align-content: center;
    min-height: 82px;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r);
    background: var(--bg-raised);
    transition: border-color var(--t-fast), background-color var(--t-fast), box-shadow var(--t) var(--ease), transform var(--t-fast);
}
.svc-pick__logo { height: 26px; width: 100%; justify-content: flex-start; }
.svc-pick__logo.logo--initial { width: 28px; height: 28px; justify-content: center; }
.svc-pick__name { overflow: hidden; color: var(--muted); font-size: var(--step--2); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.svc-pick__tick { position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; border: 1.5px solid var(--control-border); border-radius: 50%; transition: background-color var(--t-fast), border-color var(--t-fast); }
.svc-pick:hover .svc-pick__face { border-color: color-mix(in srgb, var(--accent) 60%, var(--line-strong)); }
.svc-pick input:checked + .svc-pick__face {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 14%, var(--bg-raised));
    box-shadow: 0 10px 26px -16px var(--accent), inset 0 0 0 1px var(--accent);
}
.svc-pick input:checked + .svc-pick__face .svc-pick__name { color: var(--text); }
.svc-pick input:checked + .svc-pick__face .svc-pick__tick { border-color: var(--gold); background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8.5 2.5 2.5L12 5.5' fill='none' stroke='%231c1407' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.svc-pick input:focus-visible + .svc-pick__face, .opt input:focus-visible + .opt__face { outline: 2px solid var(--gold); outline-offset: 3px; }

.opt-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s-2); }
.opt-grid--3 { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.opt { position: relative; display: block; cursor: pointer; }
.opt__face {
    display: grid;
    gap: 2px;
    height: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r);
    background: var(--bg-raised);
    transition: border-color var(--t-fast), background-color var(--t-fast), box-shadow var(--t) var(--ease);
}
.opt--pill .opt__face { display: inline-grid; place-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--pill); font-weight: 700; font-size: var(--step--1); }
.opt__glyph { color: var(--gold); font-size: 1.15rem; line-height: 1.2; }
.opt__label { font-weight: 800; font-size: var(--step--1); }
.opt__hint { color: var(--faint); font-size: var(--step--2); line-height: 1.35; }
.opt:hover .opt__face { border-color: color-mix(in srgb, var(--gold) 50%, var(--line-strong)); }
.opt input:checked + .opt__face { border-color: var(--gold); background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold); }

.switch { position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-weight: 700; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { position: relative; flex: none; width: 50px; height: 30px; border: 1px solid var(--control-border); border-radius: var(--pill); background: var(--bg-raised); transition: background-color var(--t-fast), border-color var(--t-fast); }
.switch__thumb { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--muted); box-shadow: var(--shadow-sm); transition: transform var(--t) var(--ease), background-color var(--t-fast); }
.switch input:checked + .switch__track { border-color: var(--gold); background: var(--gold-soft); }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(20px); background: var(--gold); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--gold); outline-offset: 3px; }

/* results */
.tonight-results { min-width: 0; padding-top: clamp(28px, 4vw, 64px); scroll-margin-top: 90px; }
.tonight-results__head { margin-bottom: var(--s-6); }
.tonight-results__head h2 { margin-bottom: var(--s-2); font-size: var(--step-3); }
.picks { display: grid; gap: var(--s-5); margin: 0; padding: 0; list-style: none; }
.pick {
    position: relative;
    display: grid;
    grid-template-columns: clamp(108px, 22vw, 190px) minmax(0, 1fr);
    gap: clamp(16px, 2.4vw, 36px);
    align-items: center;
    padding: clamp(14px, 2vw, 28px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    background:
        radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 55%),
        var(--surface);
    box-shadow: var(--shadow);
}
.pick__num {
    position: absolute;
    right: clamp(14px, 2vw, 32px);
    bottom: -.12em;
    color: transparent;
    font: italic 400 clamp(5rem, 6vw + 2rem, 9rem)/1 var(--font-display);
    -webkit-text-stroke: 1px color-mix(in srgb, var(--gold) 40%, transparent);
    pointer-events: none;
    user-select: none;
}
.pick__poster .card__frame { border-radius: var(--r-lg); }
.pick__body { position: relative; display: grid; gap: 6px; min-width: 0; }
.pick__meta { margin: 0; color: var(--faint); font-size: var(--step--2); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pick__title { margin: 0; font: 500 var(--step-2)/1.08 var(--font-display); letter-spacing: -.015em; }
.pick__title a { text-decoration: none; }
.pick__reason { margin: 4px 0 0; color: var(--gold); font-size: var(--step--1); font-weight: 700; line-height: 1.45; }
.pick__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 0; }
.pick__foot .lang { border: 1px solid var(--line-strong); }
.pick__cta { justify-self: start; margin-top: var(--s-3); }
@media (prefers-reduced-motion: no-preference) {
    .pick { animation: rise .6s var(--ease) both; }
    .pick:nth-child(2) { animation-delay: .08s; }
    .pick:nth-child(3) { animation-delay: .16s; }
}
@media (max-width: 520px) {
    .pick { grid-template-columns: 96px minmax(0, 1fr); align-items: start; }
    .pick__title { font-size: var(--step-1); }
    .pick__cta { min-height: 40px; padding: .5em 1em; }
}
.tonight-more { margin-top: var(--section); }

/* phones: the collapsed search field is a 44px circle (its padding must not widen it under the theme toggle) */
@media (max-width: 759px) {
    .search:not(:focus-within):not(.is-open) .search__input { padding: 0; }
    .tonight-hero__moon { top: 14px; right: 14px; width: 64px; opacity: .85; }
    .tonight-hero .kicker { max-width: calc(100% - 70px); }
}

/* service hub: genre pages */
.hub-genres { display: grid; gap: var(--s-2); margin: 0 0 var(--s-5); }
.hub-genres__title { margin: 0; color: var(--faint); font-size: var(--step--2); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hub-genres__list { display: flex; flex-wrap: wrap; gap: var(--s-2); }
@media (max-width: 759px) {
    .hub-genres__list { flex-wrap: nowrap; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; overflow-x: auto; scrollbar-width: none; scroll-padding-inline: var(--gutter); }
}
.page-head__links { margin: var(--s-3) 0 0; }

/* B detail (phase 4): availability overview, FAQ, genre and service links */
.overview__text { max-width: var(--measure); line-height: 1.75; }
.overview__text p { margin: 0 0 var(--s-3); }
.overview__source { max-width: var(--measure); margin: 0; color: var(--faint); font-size: var(--step--2); }
.faq { max-width: var(--measure); }
.faq h3 { margin: var(--s-5) 0 var(--s-2); font-size: var(--step-0); }
.faq p { margin: 0; line-height: 1.7; color: var(--muted); }
.tags a { color: inherit; text-decoration: none; }
.tags li:has(a):hover { border-color: var(--gold); color: var(--gold); }
.watch-services { margin: var(--s-2) 0 0; color: var(--muted); }
.credits dd a { color: inherit; }

/* C:pages – best rated list (rank numbers), weekly articles */
.best-list { list-style: none; margin: 0; padding: 0; }
.best-list__item { position: relative; min-width: 0; }
.best-list__rank {
    position: absolute; z-index: 2; top: 6px; left: 6px; padding: 2px 8px; border-radius: 999px;
    background: rgba(0, 0, 0, .72); color: #fff; font-weight: 700; font-size: .85rem; pointer-events: none;
}
.weekly__date, .weekly__permalink { margin: var(--s-2) 0 0; color: var(--muted); font-size: .92rem; }
.weekly__list { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: grid; gap: var(--s-6); }
.weekly__item { display: grid; grid-template-columns: minmax(120px, 180px) 1fr; gap: var(--s-4); align-items: start; }
.weekly__title { margin: 0 0 var(--s-2); font-size: 1.2rem; }
.weekly__title a { color: inherit; text-decoration: none; }
.weekly__text p { margin: 0; line-height: 1.7; color: var(--muted); }
.weekly__archive { columns: 2 260px; margin: 0; padding-left: 1.2em; line-height: 1.9; }
.weekly__more { margin-top: var(--s-6); }
@media (max-width: 520px) {
    .weekly__item { grid-template-columns: 110px 1fr; gap: var(--s-3); }
}

/* contact page */
.contact-email { font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); font-weight: 700; margin-block: var(--s-4, 1.5rem); }
.contact-email a { text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* search: people (autocomplete group "Osoby", section on the results page) */
.suggest__group { list-style: none; }
.suggest__group + .suggest__group { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.suggest__group-label { padding: 8px 10px 4px; color: var(--faint); font-size: var(--step--2); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.suggest__avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: var(--step--1); font-weight: 800; box-shadow: 0 0 0 1px var(--poster-ring); }
.search-people { margin: 0 0 var(--s-6); }
.search-people__title { margin: 0 0 var(--s-3); font-size: var(--step-1); }
.search-people__list { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.search-person { display: grid; gap: 2px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-raised); color: var(--text); text-decoration: none; }
.search-person:hover { border-color: var(--gold); }
.search-person__name { font-weight: 700; }
.search-person__meta { color: var(--muted); font-size: var(--step--2); }

/* C:genre-filters – filter panel of the genre pages (templates/_filters.html.twig, panel) */
.filter-panel { margin: 0 0 var(--s-6); }
.filter-panel__box {
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 70%, transparent), transparent);
}
.filter-panel__summary {
    display: flex; align-items: center; gap: var(--s-2); padding: var(--s-3) var(--s-4);
    font-weight: 700; cursor: pointer; list-style: none; border-radius: var(--r-lg);
}
.filter-panel__summary::-webkit-details-marker { display: none; }
.filter-panel__summary::after {
    content: ""; width: 8px; height: 8px; margin-left: auto; border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s;
}
.filter-panel__box[open] > .filter-panel__summary::after { transform: rotate(-135deg); }
.filter-panel__badge {
    min-width: 1.5em; padding: 0 6px; border-radius: var(--pill); background: var(--gold); color: var(--gold-ink);
    font-size: var(--step--1); text-align: center;
}
.filter-panel__types { margin: 0 var(--s-4) var(--s-3); flex-wrap: wrap; }
.filter-form { display: grid; gap: var(--s-4); padding: 0 var(--s-4) var(--s-4); }
.filter-form__group { margin: 0; padding: 0; border: 0; min-width: 0; }
.filter-form__group legend { margin-bottom: var(--s-2); padding: 0; color: var(--muted); font-size: var(--step--1); font-weight: 700; }
.filter-form__checks { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.filter-form__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: var(--s-3); }
.filter-form__field { display: grid; gap: 4px; min-width: 0; }
.filter-form__field label { color: var(--muted); font-size: var(--step--1); font-weight: 700; }
.filter-form__field select {
    width: 100%; min-height: 40px; padding: 6px 10px; border: 1px solid var(--control-border); border-radius: 10px;
    background: var(--bg-raised); color: var(--text); font: inherit;
}
.filter-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.filter-form__actions .filters__reset { margin-left: 0; }
.check {
    display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 12px;
    border: 1px solid var(--control-border); border-radius: var(--pill); background: var(--bg-raised); cursor: pointer;
}
.check input { width: 16px; height: 16px; margin: 0; accent-color: var(--gold); }
.check:has(input:checked) { border-color: var(--gold); color: var(--text); }
.check:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 3px; }
.check input:focus-visible { outline: none; }
.filter-panel__status { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin-top: var(--s-3); }
.filter-panel__count { margin: 0; color: var(--muted); font-size: var(--step--1); }
.filter-panel__count strong { color: var(--text); font-variant-numeric: tabular-nums; }
/* with JS the form submits on change; the button stays for keyboard users who prefer it */
.filter-panel.is-loading ~ #vypis { opacity: .55; transition: opacity .2s; }

/* C:control-border – borders of form controls with at least 3:1 against the page and raised backgrounds (WCAG 1.4.11) */
:root { --control-border: #6f7380; }
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) { --control-border: #857e72; }
}
:root[data-theme="light"] { --control-border: #857e72; }
.filter-panel__count:focus { outline: none; }
.filter-panel__count:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* detail action bar (watchlist, share, calendar, trailer – filled by feature blocks) */
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.detail-actions:empty { display: none; }

/* === P: personal (Moje služby, Můj seznam, Nové, Nedávno zobrazené, Překvap mě, mřížka/seznam, náhled karty) === */
/* controls that need public/js/personal.js appear only with it (:root.sr-js is set before the first paint) */
.card__save, .view-tools, .personal-btn[data-services-open], .watch-toggle { display: none; }
:root.sr-js .watch-toggle { display: inline-flex; }
/* icon button keeps its own centring grid (inline-flex would push the icon to the left) */
:root.sr-js .personal-btn[data-services-open] { display: inline-grid; }
:root.sr-js .view-tools { display: flex; }
:root.sr-js .card__save { display: grid; }

/* header buttons */
.icon-btn {
    position: relative;
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: var(--surface-glass);
    color: var(--text);
    cursor: pointer;
    transition: border-color var(--t-fast), color var(--t-fast);
}
.icon-btn:hover, .icon-btn[aria-current="page"] { border-color: var(--gold); color: var(--gold); }
.icon-btn__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: var(--pill);
    background: var(--gold);
    color: var(--gold-ink);
    font-size: 11px;
    font-weight: 800;
    line-height: 20px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.icon-btn__badge[hidden] { display: none; }
@media (max-width: 760px) {
    /* phones reach "Můj seznam" from the bottom sheet ("Více") */
    .personal-btn--list { display: none; }
}

/* card heart ("Můj seznam") and badges */
.card__save {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 3;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgb(8 9 13 / .66);
    color: #fff;
    cursor: pointer;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2);
    transition: transform var(--t-fast) var(--ease), background-color var(--t-fast);
}
.card__save path { fill: transparent; transition: fill var(--t-fast); }
.card__save:hover { transform: scale(1.08); }
.card__save[aria-pressed="true"] { background: #f0cd86; color: #1c1407; box-shadow: none; }
.card__save[aria-pressed="true"] path { fill: currentColor; }
.card__save:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* a focused heart is never hidden under the sticky header and day headings (WCAG 2.4.11) */
.card__save, .my-list__remove { scroll-margin-top: 180px; scroll-margin-bottom: 96px; }
.card__flags { position: absolute; top: 48px; right: 6px; z-index: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; pointer-events: none; }
.rank > .card__flags { top: 48px; right: 6px; }
.card__flag {
    padding: 3px 8px;
    border-radius: var(--pill);
    background: rgb(8 9 13 / .8);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
    white-space: nowrap;
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18);
}
.card__flag--new { background: #e2b866; color: #1c1407; box-shadow: none; }
.card__flag--mine { background: rgb(20 83 45 / .92); color: #fff; }
/* "Moje služby" chosen: titles only on other services fade (the text keeps its contrast) */
.card.is-elsewhere .poster, .rank.is-elsewhere .poster { opacity: .42; filter: grayscale(.7); transition: opacity var(--t) var(--ease), filter var(--t) var(--ease); }
.card.is-elsewhere:hover .poster, .card.is-elsewhere:focus-within .poster,
.rank.is-elsewhere:hover .poster, .rank.is-elsewhere:focus-within .poster { opacity: 1; filter: none; }

/* detail page */
.watch-toggle { align-items: center; gap: 8px; }
.watch-toggle path { fill: transparent; }
.watch-toggle.is-on { border-color: var(--gold); color: var(--text); }
.watch-toggle.is-on path { fill: var(--gold); stroke: var(--gold); }
.watch__mine { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: var(--pill); background: var(--gold-soft); color: var(--text); font-size: var(--step--2); font-weight: 800; vertical-align: middle; }
.watch-list li.is-mine .watch { box-shadow: inset 3px 0 0 var(--gold); }

/* listing tools: "Jen moje služby" + grid/list switch */
.view-tools { flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-4); margin: 0 0 var(--s-5); }
.view-tools__mine { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); min-width: 0; }
.view-tools__note { color: var(--muted); font-size: var(--step--1); }
.view-tools__note:empty { display: none; }
.mine-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 4px;
    border: 0;
    background: none;
    color: var(--text);
    font: 700 var(--step--1) / 1.2 var(--font-text);
    cursor: pointer;
}
.mine-toggle__track { position: relative; flex: none; width: 44px; height: 26px; border: 1px solid var(--control-border); border-radius: var(--pill); background: var(--bg-raised); transition: background-color var(--t-fast), border-color var(--t-fast); }
.mine-toggle__thumb { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform var(--t) var(--ease), background-color var(--t-fast); }
.mine-toggle[aria-pressed="true"] .mine-toggle__track { border-color: var(--gold); background: var(--gold-soft); }
.mine-toggle[aria-pressed="true"] .mine-toggle__thumb { transform: translateX(18px); background: var(--gold); }
.mine-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: var(--r-sm); }
.view-switch { display: inline-flex; margin-left: auto; padding: 3px; border: 1px solid var(--control-border); border-radius: var(--pill); background: var(--bg-raised); }
.view-switch__btn { display: inline-grid; place-items: center; width: 40px; height: 36px; padding: 0; border: 0; border-radius: var(--pill); background: none; color: var(--muted); cursor: pointer; }
.view-switch__btn:hover { color: var(--text); }
.view-switch__btn[aria-pressed="true"] { background: var(--gold-soft); color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }

/* list view: grids after the switch only (also nested, e.g. days of the news); applied before the first paint */
:root[data-view="list"] :is([data-view-tools] ~ .grid, [data-view-tools] ~ * .grid) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: var(--s-3) var(--gap); }
:root[data-view="list"] :is([data-view-tools] ~ .grid, [data-view-tools] ~ * .grid) .card {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-areas: "frame title" "frame meta" "frame foot" "frame flags";
    grid-template-rows: auto auto auto 1fr;
    gap: 2px 14px;
    padding: 8px 48px 8px 8px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
}
:root[data-view="list"] :is([data-view-tools] ~ .grid, [data-view-tools] ~ * .grid) .card__link { display: contents; }
:root[data-view="list"] :is([data-view-tools] ~ .grid, [data-view-tools] ~ * .grid) .card__frame { grid-area: frame; align-self: start; width: 76px; border-radius: var(--r-sm); }
:root[data-view="list"] :is([data-view-tools] ~ .grid, [data-view-tools] ~ * .grid) .card__title { grid-area: title; align-self: end; font-size: var(--step-0); -webkit-line-clamp: 2; }
:root[data-view="list"] :is([data-view-tools] ~ .grid, [data-view-tools] ~ * .grid) .card__meta { grid-area: meta; }
:root[data-view="list"] :is([data-view-tools] ~ .grid, [data-view-tools] ~ * .grid) .card__foot { grid-area: foot; align-self: start; }
:root[data-view="list"] :is([data-view-tools] ~ .grid, [data-view-tools] ~ * .grid) .card__credit { display: none; }
:root[data-view="list"] :is([data-view-tools] ~ .grid, [data-view-tools] ~ * .grid) .card__rating { top: 4px; left: 4px; min-width: 0; height: 20px; padding: 0 5px; font-size: 10px; }
:root[data-view="list"] :is([data-view-tools] ~ .grid, [data-view-tools] ~ * .grid) .card__langs { left: 4px; right: 4px; bottom: 4px; }
:root[data-view="list"] :is([data-view-tools] ~ .grid, [data-view-tools] ~ * .grid) .card__langs .lang { padding: 2px 3px; font-size: 0; }
:root[data-view="list"] :is([data-view-tools] ~ .grid, [data-view-tools] ~ * .grid) .card__flags { position: static; grid-area: flags; flex-direction: row; flex-wrap: wrap; align-items: flex-start; align-self: start; margin-top: 4px; }
:root[data-view="list"] :is([data-view-tools] ~ .grid, [data-view-tools] ~ * .grid) .card__save { top: 50%; right: 8px; transform: translateY(-50%); }
:root[data-view="list"] :is([data-view-tools] ~ .grid, [data-view-tools] ~ * .grid) .card__link:hover .card__frame,
:root[data-view="list"] :is([data-view-tools] ~ .grid, [data-view-tools] ~ * .grid) .card__link:focus-visible .card__frame { transform: none; }
:root[data-view="list"] :is([data-view-tools] ~ .grid, [data-view-tools] ~ * .grid) .card:hover { border-color: color-mix(in srgb, var(--accent, var(--gold)) 50%, var(--line)); }
:root[data-view="list"] [data-view-tools] ~ .best-list .best-list__rank { top: -8px; left: -8px; padding: 1px 7px; font-size: .75rem; }

/* "Moje služby" dialog */
.services-dialog {
    width: min(640px, calc(100vw - 2 * var(--gutter)));
    max-height: calc(100dvh - 48px);
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-lg);
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-lg);
}
.services-dialog::backdrop { background: rgb(0 0 0 / .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.services-dialog__form { display: grid; gap: var(--s-4); padding: clamp(20px, 3vw, 32px); }
.services-dialog__title { margin: 0; font-size: var(--step-2); }
.services-dialog__lead { margin: 0; color: var(--muted); }
.services-dialog__fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.services-dialog__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* home: prompt, Překvap mě, recently viewed */
.personal-home .wrap { display: grid; gap: var(--s-4); }
.services-prompt {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-3) var(--s-5);
    padding: var(--s-4) var(--s-5);
    border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line));
    border-radius: var(--r-lg);
    background: linear-gradient(120deg, var(--gold-soft), transparent 70%), var(--surface);
}
.services-prompt[hidden] { display: none; }
.services-prompt__text { margin: 0; max-width: 60ch; }
.services-prompt__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.personal-home__surprise { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin: 0; }
.personal-home__surprise .btn, .tonight-hero__surprise .btn, .my-list__start .btn { gap: 8px; }
a[data-surprise][aria-busy="true"] { opacity: .7; cursor: progress; }
.tonight-hero__surprise { margin: var(--s-4) 0 0; }
.recent { margin-top: var(--s-6); }
.recent[hidden] { display: none; }
.recent .row__item { width: var(--rail-w); }

/* "Můj seznam" */
.my-list__tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin: var(--s-4) 0 0; }
.my-list__count { color: var(--muted); font-weight: 700; }
.my-list__count:empty { display: none; }
.my-list__share-field { display: grid; gap: 6px; max-width: 640px; margin: var(--s-3) 0 0; }
.my-list__share-field[hidden] { display: none; }
.my-list__import { margin: 0 0 var(--s-8); padding: var(--s-5); border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line)); border-radius: var(--r-lg); background: var(--surface); }
.my-list__import[hidden] { display: none; }
.my-list__import h2:focus { outline: none; }
.my-list__import-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-5) 0 0; }
.my-list__start { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); }
.my-list__group + .my-list__group { margin-top: var(--section); }
.my-list__title { display: flex; align-items: baseline; gap: 10px; margin: 0 0 4px; }
.my-list__n { color: var(--muted); font-size: var(--step--1); font-weight: 700; font-variant-numeric: tabular-nums; }
.my-list__group > p { margin: 0 0 var(--s-5); }
.my-list__remove {
    align-self: flex-start;
    min-height: 32px;
    margin-top: 4px;
    padding: 0 12px;
    border: 1px solid var(--control-border);
    border-radius: var(--pill);
    background: none;
    color: var(--muted);
    font: 700 var(--step--2) / 1 var(--font-text);
    cursor: pointer;
}
.my-list__remove:hover { border-color: var(--danger); color: var(--text); }
[data-my-list-heading]:focus { outline: none; }
[data-my-list-heading]:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* hover preview of a card (pointer devices and keyboard focus); positioned out of the flow: no layout shift */
.card-peek {
    position: absolute;
    z-index: 60;
    width: 280px;
    padding: 14px 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r);
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-lg);
    font-size: var(--step--1);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.card-peek[hidden] { display: none; }
.card-peek.is-open { opacity: 1; transform: none; }
.card-peek p { margin: 0; }
.card-peek__title { font-weight: 800; line-height: 1.3; }
.card-peek__facts { margin-top: 4px !important; color: var(--muted); }
.card-peek__offers { display: grid; gap: 4px; margin: 10px 0 0; padding: 0; list-style: none; }
.card-peek__offers li { padding-left: 14px; background: radial-gradient(circle at 4px 50%, var(--faint) 3px, transparent 3.5px); }
.card-peek__offers li.is-mine { font-weight: 800; background-image: radial-gradient(circle at 4px 50%, var(--gold) 3px, transparent 3.5px); }
.card-peek__leaving { margin-top: 10px !important; color: var(--gold); font-weight: 800; }

@media (prefers-reduced-motion: reduce) {
    .card__save, .card-peek, .mine-toggle__track, .mine-toggle__thumb, .card.is-elsewhere .poster, .rank.is-elsewhere .poster { transition: none; }
    .card__save:hover { transform: none; }
    .card-peek { transform: none; }
}
:root[data-view="list"] :is([data-view-tools] ~ .grid, [data-view-tools] ~ * .grid) .card__save:hover { transform: translateY(-50%) scale(1.08); }
/* one-row header (1200px+): room for the two personal buttons – up to 1439px the search is an icon that opens over the
   navigation on focus (its 44px stay reserved, so nothing moves), then a narrower field */
@media (min-width: 1200px) and (max-width: 1439px) {
    .site-header__tools .search { width: 44px; }
    .site-header__tools .search .search__input { padding-right: 0; }
    .site-header__tools .search .search__input::placeholder { color: transparent; }
    .site-header__tools .search .search__kbd { display: none; }
    .site-header__tools .search:focus-within,
    .site-header__tools .search.is-open { position: absolute; top: 16px; right: calc(var(--gutter) + 3 * 44px + 3 * var(--s-2)); z-index: 5; width: min(440px, 36vw); }
    .site-header__tools .search:focus-within .search__input,
    .site-header__tools .search.is-open .search__input { padding-right: 14px; }
    .site-header__tools .search:focus-within .search__input::placeholder,
    .site-header__tools .search.is-open .search__input::placeholder { color: var(--faint); }
    .site-header__tools .search:focus-within + .personal-btn,
    .site-header__tools .search.is-open + .personal-btn { margin-left: calc(44px + var(--s-2)); }
}
@media (min-width: 1440px) and (max-width: 1699px) {
    .site-header__tools .search,
    .site-header__tools .search:focus-within,
    .site-header__tools .search.is-open { width: calc(22vw - 136px); }
}
.sheet__count { min-width: 22px; margin-left: auto; padding: 0 7px; border-radius: var(--pill); background: var(--gold); color: var(--gold-ink); font-size: 12px; font-weight: 800; line-height: 22px; text-align: center; }
.sheet__count[hidden] { display: none; }
/* === /P: personal === */

/* === H: hubs (pro děti, česká tvorba, vychází teď, změny cen) and the series status on the detail === */
.day__today {
    display: inline-block; margin-left: .5em; padding: 3px 9px; border-radius: var(--pill); background: var(--gold); color: var(--gold-ink);
    font: 800 var(--step--2)/1.3 var(--font-text); letter-spacing: .08em; text-transform: uppercase; vertical-align: middle;
}
.price-articles { display: grid; gap: var(--s-4); margin: 0 0 var(--s-6); padding: 0; list-style: none; }
.price-article { padding: var(--s-4) var(--s-5); border: 1px solid var(--line); border-left: 4px solid var(--accent, var(--gold)); border-radius: var(--r-lg); background: var(--surface); }
.price-article__title { margin: 0 0 var(--s-2); font-size: var(--step-1); line-height: 1.3; }
.price-article__title a { color: var(--text); text-decoration: none; }
.price-article__title a:hover { text-decoration: underline; }
.price-article__meta { margin: 0; color: var(--muted); font-size: var(--step--1); }
.price-change__text { margin-bottom: var(--s-6); }
.price-change .table-wrap { margin-bottom: var(--s-5); }
.price-table td:nth-child(2) { white-space: normal; }
.price-change-note { margin: var(--s-3) 0 0; color: var(--muted); font-size: var(--step--1); }
.series-status__state { margin: 0 0 var(--s-2); }
.series-status__state strong { margin-right: .35em; }
/* === /H: hubs === */

/* === T: tools (plánovač předplatného, kvíz Kterou službu vybrat, srovnání dvojic, upoutávka na úvodu) === */
.planner { margin-top: var(--s-5); padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.planner h2 { margin-top: 0; }
.planner__intro, .planner__hint { color: var(--muted); }
.planner__hint { margin: 4px 0 0; font-size: var(--step--1); }
.planner__controls { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); margin: var(--s-4) 0; }
.planner__add { position: relative; display: grid; gap: 4px; align-content: start; }
.planner__add label, .planner__owned legend { font-weight: 700; }
.planner__add input {
    width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--control-border); border-radius: 10px;
    background: var(--bg-raised); color: var(--text); font: inherit;
}
.planner__add input:disabled { opacity: .6; }
.planner__listbox {
    position: absolute; z-index: 20; top: 100%; left: 0; right: 0; max-height: 320px; overflow: auto; margin: 4px 0 0; padding: 4px;
    list-style: none; border: 1px solid var(--control-border); border-radius: 10px; background: var(--bg-raised); box-shadow: var(--shadow-sm);
}
.planner__option { display: grid; gap: 2px; min-height: 44px; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.planner__option[aria-selected="true"], .planner__option:hover { background: var(--surface-2); outline: 2px solid var(--gold); outline-offset: -2px; }
.planner__option--empty { color: var(--muted); cursor: default; }
.planner__option-title { font-weight: 700; }
.planner__option-meta { color: var(--muted); font-size: var(--step--1); }
.planner__owned { margin: 0; padding: 0; border: 0; min-width: 0; }
.planner__checks { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
.planner__result[aria-busy="true"] { opacity: .6; transition: opacity .2s; }
.planner__status, .planner-empty { color: var(--muted); }
.planner-summary { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin: var(--s-4) 0; }
.planner-card { padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-raised); }
.planner-card h3 { margin: 0 0 var(--s-2); font-size: var(--step--1); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.planner-card__value { margin: 0; font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.planner-card__text { margin: 4px 0 0; color: var(--muted); }
.planner-block { margin-top: var(--s-5); }
.planner-block h3 { margin-bottom: var(--s-3); }
.planner-months { display: grid; gap: var(--s-3); margin: 0; padding: 0; list-style: none; counter-reset: month; }
.planner-month { padding: var(--s-3) var(--s-4); border-left: 4px solid var(--accent, var(--gold)); border-radius: 0 var(--r-lg) var(--r-lg) 0; background: var(--bg-raised); }
.planner-month__head { margin: 0 0 4px; }
.planner-month__titles { margin: 0; padding-left: 1.2em; }
.planner-tag { display: inline-block; padding: 0 6px; border-radius: var(--pill); font-size: var(--step--1); }
.planner-tag--last { background: color-mix(in srgb, var(--danger) 18%, transparent); color: var(--text); }
.planner-warning { padding: var(--s-2) var(--s-3); border-left: 4px solid var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }
.planner-titles { display: grid; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.planner-title { display: grid; grid-template-columns: 1fr auto; gap: 4px var(--s-3); align-items: center; padding: var(--s-2) var(--s-3); border: 1px solid var(--line); border-radius: 10px; }
.planner-title__name a { font-weight: 700; }
.planner-title__meta, .planner-title__where { color: var(--muted); font-size: var(--step--1); }
.planner-title__where { grid-column: 1; }
.planner-title__remove { grid-column: 2; grid-row: 1 / span 2; min-height: 36px; }
.planner-title--unavailable .planner-title__where, .planner-title--unpriced .planner-title__where { color: var(--text); }
.planner-table { width: 100%; }
.planner-note { margin-top: var(--s-4); }
.planner-info__list { display: grid; gap: var(--s-2); padding-left: 1.2em; }
.planner-prices { width: 100%; }
.quiz-form { display: grid; gap: var(--s-4); margin-top: var(--s-5); }
.quiz-q { margin: 0; padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); min-width: 0; }
.quiz-q legend { padding: 0 var(--s-2); font-weight: 800; font-size: 1.05rem; }
.quiz-q__num {
    display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; margin-right: 6px; border-radius: 50%;
    background: var(--gold); color: var(--gold-ink); font-size: .85em;
}
.quiz-q__hint { margin: 0 0 var(--s-2); color: var(--muted); font-size: var(--step--1); }
.quiz-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.quiz-result h2:focus { outline: none; }
.quiz-result h2:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.quiz-list { display: grid; gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.quiz-item { padding: var(--s-4); border: 1px solid var(--line); border-left: 4px solid var(--accent, var(--line-strong)); border-radius: var(--r-lg); background: var(--bg-raised); }
.quiz-item--top { background: var(--surface); }
.quiz-item__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2); }
.quiz-item__name { margin: 0; font-size: 1.15rem; }
.quiz-item__rank { color: var(--muted); }
.quiz-item__score { margin: 0; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.quiz-item__reasons { margin: var(--s-2) 0 0; padding-left: 1.2em; color: var(--muted); }
.quiz-result__more { margin-top: var(--s-4); }
.pair-verdict__list { display: grid; gap: var(--s-2); padding-left: 1.2em; }
.pair-samples { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.pair-samples__col h3 { margin-top: 0; }
.pair-links { display: grid; gap: 4px var(--s-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); margin: 0; padding: 0; list-style: none; }
.pair-links a { display: inline-block; min-height: 24px; padding: 4px 0; }
.tools-teaser__grid { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.tools-teaser__item {
    display: grid; gap: 4px; padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
    color: var(--text); text-decoration: none;
}
.tools-teaser__item:hover { border-color: var(--gold); }
.tools-teaser__title { font-weight: 800; color: var(--text); }
.tools-teaser__text { color: var(--muted); font-size: var(--step--1); }
@media (prefers-reduced-motion: reduce) {
    .planner__result[aria-busy="true"] { transition: none; }
}
/* === /T: tools === */

/* === G: graphics – posters in <picture> with the dominant color (LQIP), ambient glow, trailer, charts, radar === */

/* AVIF/WebP <picture> wrappers add no box of their own… */
.poster-pic, .backdrop-pic { display: contents; }
/* …except in card frames: there the wrapper holds the poster's dominant color until the lazy poster has faded in */
.card__frame > .poster-pic { position: absolute; inset: 0; z-index: 1; display: block; border-radius: inherit; background-color: var(--lqip, transparent); }
.poster-pic > .poster { background-color: var(--lqip, transparent); }
/* posters without a known color keep the shimmer skeleton */
.js .card__frame:has(> .poster-pic:not([style]) > .poster[loading="lazy"]:not(.is-loaded))::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(100deg, transparent 20%, color-mix(in srgb, var(--text) 7%, transparent) 50%, transparent 80%);
    transform: translateX(-100%);
    animation: shimmer 1.4s var(--ease) infinite;
}

/* ambient glow in the backdrop color: drawn under the dark overlay of the heroes, so text contrast stays what the
   overlay guarantees for any image */
.detail-hero__media { background-color: color-mix(in srgb, var(--ambient, #07080b) 22%, #07080b); }
.detail-hero__ambient,
.hero__ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(75% 95% at 92% 0%, color-mix(in srgb, var(--ambient) 58%, transparent), transparent 72%),
        radial-gradient(60% 80% at 0% 100%, color-mix(in srgb, var(--ambient) 46%, transparent), transparent 78%);
    mix-blend-mode: soft-light;
}
.hero__ambient { z-index: -2; }
/* below 1200 px the title, facts and credits sit over the middle of the backdrop, where the desktop gradient is thin:
   a stronger scrim keeps every text ≥ 4.5:1 over any image (measured over a white backdrop) */
@media (max-width: 1199px) {
    .detail-hero.has-backdrop .detail-hero__media::after {
        background:
            linear-gradient(0deg, #07080b 0%, rgb(7 8 11 / .9) 40%, rgb(7 8 11 / .76) 100%),
            linear-gradient(90deg, rgb(7 8 11 / .5), transparent 70%);
    }
    .detail-hero.has-backdrop .img-credit { color: var(--muted); }
}

/* trailer: our backdrop as a facade, YouTube only after a click and the media consent (public/js/trailer.js) */
.trailer-open { display: none; }
.js .trailer-open { display: inline-flex; }
.trailer h2 { margin-bottom: var(--s-5); }
.trailer__stage {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: var(--r-lg);
    background: color-mix(in srgb, var(--ambient, #07080b) 26%, #07080b);
    box-shadow: 0 0 0 1px var(--poster-ring), var(--shadow);
}
.trailer__facade { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.trailer__stage::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(60% 70% at 50% 50%, rgb(7 8 11 / .25), rgb(7 8 11 / .7)), linear-gradient(0deg, rgb(7 8 11 / .55), transparent 60%);
}
.trailer__play { display: none; }
.js .trailer__play {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: var(--s-3);
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: inherit;
    background: none;
    color: #f6f2ea;
    cursor: pointer;
}
.trailer__icon {
    display: grid;
    place-items: center;
    width: clamp(64px, 6vw + 32px, 88px);
    aspect-ratio: 1;
    padding-left: 4px;
    border-radius: 50%;
    background: #e6be6e;
    color: #1c1407;
    box-shadow: 0 0 0 8px rgb(230 190 110 / .18), 0 18px 40px -12px rgb(0 0 0 / .8);
    transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.trailer__label { padding: 6px 14px; border-radius: var(--pill); background: rgb(7 8 11 / .72); font-weight: 700; font-size: var(--step--1); letter-spacing: .02em; }
.trailer__play:hover .trailer__icon { transform: scale(1.06); box-shadow: 0 0 0 12px rgb(230 190 110 / .22), 0 18px 40px -12px rgb(0 0 0 / .8); }
.trailer__play:focus-visible { outline: 3px solid #e6be6e; outline-offset: -6px; }
.js .trailer__play[hidden] { display: none; }
.trailer__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer__frame:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.trailer__consent {
    position: absolute;
    inset: auto var(--s-3) var(--s-3);
    display: grid;
    gap: var(--s-2);
    justify-items: start;
    padding: var(--s-4);
    border-radius: var(--r);
    background: rgb(7 8 11 / .88);
    color: #f6f2ea;
    font-size: var(--step--1);
}
.trailer__consent p { margin: 0; }
.trailer__note { max-width: var(--measure); margin: var(--s-3) 0 0; color: var(--muted); }
.trailer__bar { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.trailer__bar[hidden] { display: none; }

/* charts: chart position history (detail) and /statistiky – thin marks, hairline grid, text in text tokens */
.viz {
    --viz-1: #3987e5; --viz-2: #d95926; --viz-3: #199e70; --viz-4: #c98500;
    --viz-5: #d55181; --viz-6: #008300; --viz-7: #9085e9; --viz-0: #5b5e66;
}
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .viz {
        --viz-1: #2a78d6; --viz-2: #eb6834; --viz-3: #1baf7a; --viz-4: #eda100;
        --viz-5: #e87ba4; --viz-6: #008300; --viz-7: #4a3aa7; --viz-0: #b9b3a8;
    }
}
:root[data-theme="light"] .viz {
    --viz-1: #2a78d6; --viz-2: #eb6834; --viz-3: #1baf7a; --viz-4: #eda100;
    --viz-5: #e87ba4; --viz-6: #008300; --viz-7: #4a3aa7; --viz-0: #b9b3a8;
}
.viz-data { margin-top: var(--s-3); }
.viz-data > summary { width: fit-content; min-height: 24px; color: var(--muted); font-size: var(--step--1); font-weight: 700; cursor: pointer; }
.viz-data > summary:hover { color: var(--gold); }
.viz-data .table-wrap { margin-top: var(--s-3); }

.spark { margin: var(--s-6) 0 0; }
.position-list + .spark, .spark + .spark { margin-top: var(--s-7); }
.spark__caption { display: grid; gap: 2px; margin-bottom: var(--s-4); }
.spark__title { font-weight: 800; }
.spark__summary { color: var(--muted); font-size: var(--step--1); }
.spark__plot { position: relative; height: 120px; margin-left: 32px; }
.spark__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.spark__grid { stroke: var(--line-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.spark__line { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.spark__dot {
    position: absolute;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 2px var(--bg);
}
.spark__dot--last { width: 14px; height: 14px; margin: -7px 0 0 -7px; box-shadow: 0 0 0 2px var(--bg), 0 0 0 6px var(--gold-soft); }
.spark__tick { position: absolute; left: -32px; width: 24px; color: var(--muted); font-size: var(--step--2); font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; transform: translateY(-50%); }
.spark__tick--top { top: 6%; }
.spark__tick--bottom { top: 94%; }
.spark__axis { display: flex; justify-content: space-between; margin: var(--s-2) 0 0 32px; color: var(--muted); font-size: var(--step--2); font-weight: 600; }

.genre-chart, .arrivals { display: grid; gap: var(--s-3); margin: 0 0 var(--s-5); padding: 0; list-style: none; }
.genre-chart__row, .arrivals__row, .arrivals__axis { display: grid; grid-template-columns: minmax(84px, 9rem) 1fr 5ch; align-items: center; gap: var(--s-4); }
.genre-chart__label, .arrivals__label { overflow: hidden; font-size: var(--step--1); font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.genre-chart__label::before, .arrivals__label::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--accent); vertical-align: middle; }
.genre-chart__svg { display: block; width: 100%; height: 18px; border-radius: 4px; }
.genre-chart__seg { stroke: var(--surface); stroke-width: 2; vector-effect: non-scaling-stroke; }
.genre-chart__value, .arrivals__value { font-size: var(--step--1); font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.viz-fill-1 { fill: var(--viz-1); } .viz-fill-2 { fill: var(--viz-2); } .viz-fill-3 { fill: var(--viz-3); } .viz-fill-4 { fill: var(--viz-4); }
.viz-fill-5 { fill: var(--viz-5); } .viz-fill-6 { fill: var(--viz-6); } .viz-fill-7 { fill: var(--viz-7); } .viz-fill-0 { fill: var(--viz-0); }
.legend__key--1 { background: var(--viz-1); } .legend__key--2 { background: var(--viz-2); } .legend__key--3 { background: var(--viz-3); }
.legend__key--4 { background: var(--viz-4); } .legend__key--5 { background: var(--viz-5); } .legend__key--6 { background: var(--viz-6); }
.legend__key--7 { background: var(--viz-7); } .legend__key--0 { background: var(--viz-0); }
.genre-chart__seg:hover, .arrivals__bar:hover { opacity: .8; }

.arrivals { gap: var(--s-2); }
.arrivals__row { align-items: end; }
.arrivals__svg { display: block; width: 100%; height: 30px; overflow: visible; }
.arrivals__row--total { margin-bottom: var(--s-4); }
.arrivals__row--total .arrivals__svg { height: 84px; }
.arrivals__row--total .arrivals__label::before { background: var(--gold); }
.arrivals__bar { fill: var(--gold); }
.arrivals__base { stroke: var(--line-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.arrivals__nodata { fill: color-mix(in srgb, var(--text) 5%, transparent); }
.arrivals__axis { color: var(--muted); font-size: var(--step--2); font-weight: 600; }
.arrivals__axis span:nth-child(2) { display: flex; justify-content: space-between; }
.legend__item { display: inline-flex; align-items: center; gap: 6px; margin-right: 6px; white-space: nowrap; }
@media (max-width: 559px) {
    /* phones: label and value on one line, the full-width chart below */
    .genre-chart__row, .arrivals__row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
    .genre-chart__svg, .arrivals__svg { grid-column: 1 / -1; grid-row: 2; }
    .arrivals__axis { grid-template-columns: 1fr; }
    .arrivals__axis > span:first-child, .arrivals__axis > span:last-child { display: none; }
}

/* radar of the brand mark behind the home intro (decorative): two sweeps after load, all motion over within 5 s
   (WCAG 2.2.2), none with reduced motion */
.intro { position: relative; isolation: isolate; overflow-x: clip; }
.radar {
    --radar-ink: color-mix(in srgb, var(--gold) 16%, transparent);
    position: absolute;
    top: clamp(-36px, 1vw - 40px, 0px);
    right: max(var(--gutter), (100% - var(--wrap)) / 2 + var(--gutter));
    z-index: -1;
    width: clamp(92px, 18vw + 20px, 340px);
    aspect-ratio: 1;
    pointer-events: none;
}
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .radar { --radar-ink: color-mix(in srgb, var(--gold) 12%, transparent); }
}
:root[data-theme="light"] .radar { --radar-ink: color-mix(in srgb, var(--gold) 12%, transparent); }
.radar__grid { width: 100%; height: 100%; overflow: visible; fill: none; stroke: var(--radar-ink); stroke-width: 1; }
.radar__grid * { vector-effect: non-scaling-stroke; }
.radar__sweep {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0 270deg, var(--radar-ink) 359deg, color-mix(in srgb, var(--gold) 40%, transparent) 360deg);
    animation: radar-sweep 2.2s linear 2 both;
}
.radar__blip {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
    border-radius: 50%;
    background: var(--gold);
    opacity: .3;
    animation: radar-blip 2.2s linear calc(var(--at) * 2.2s) 2 both;
}
@keyframes radar-sweep { to { transform: rotate(1turn); } }
@keyframes radar-blip { 0% { opacity: .3; } 3% { opacity: 1; transform: scale(1.8); } 45%, 100% { opacity: .3; transform: scale(1); } }
@media (max-width: 759px) {
    .radar { top: -8px; right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .radar__sweep, .radar__blip { animation: none; }
}
/* === /G: graphics === */

/* === O: ops – cookie consent (banner, dialogs), privacy page, push opt-in, footer links === */
/* banner: visible only while html.consent-pending (set before first paint by templates/consent/_head.html.twig);
   fixed, so it never shifts the page; scroll-padding keeps focused controls above it (WCAG 2.4.11) */
.consent { display: none; }
.consent-pending .consent {
    display: block;
    position: fixed;
    z-index: 60;
    left: var(--s-3);
    right: var(--s-3);
    bottom: calc(var(--s-3) + env(safe-area-inset-bottom, 0px));
    max-width: 1080px;
    max-height: calc(100vh - 2 * var(--s-3));
    margin-inline: auto;
    padding: var(--s-4) var(--s-5);
    overflow-y: auto;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-lg);
    background: var(--bg-raised);
    color: var(--text);
    box-shadow: var(--shadow-lg);
}
.consent__inner { display: grid; gap: var(--s-3) var(--s-5); align-items: center; }
@media (min-width: 900px) { .consent__inner { grid-template-columns: minmax(0, 1fr) auto; } }
.consent__title { margin: 0 0 4px; font: 700 var(--step-0)/1.3 var(--font-text); letter-spacing: 0; }
.consent__text { margin: 0; color: var(--muted); font-size: var(--step--1); line-height: 1.55; }
.consent__text a { color: var(--text); }
.consent__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
/* accept and reject: one look, equally prominent */
.consent__choice { border-color: var(--control-border); background: var(--surface); color: var(--text); }
.consent__choice:hover { border-color: var(--gold); color: var(--text); }
.consent__actions .btn { flex: 1 1 8.5em; justify-content: center; }
@media (min-width: 900px) { .consent__actions .btn { flex: 0 0 auto; } }
html.consent-pending { scroll-padding-bottom: calc(var(--consent-h, 160px) + var(--s-5)); }
.consent-pending body { padding-bottom: calc(var(--consent-h, 160px) + var(--s-5)); }
@media (max-width: 760px) {
    /* above the bottom navigation */
    .consent-pending .consent { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); max-height: calc(100vh - 96px); padding: var(--s-4); }
    html.consent-pending { scroll-padding-bottom: calc(var(--consent-h, 240px) + 96px + env(safe-area-inset-bottom, 0px)); }
    .consent-pending body { padding-bottom: calc(var(--consent-h, 240px) + 96px + env(safe-area-inset-bottom, 0px)); }
}

.consent-dialog {
    width: min(600px, calc(100% - 2 * var(--s-4)));
    max-height: calc(100vh - 2 * var(--s-4));
    padding: 0;
    overflow-y: auto;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-lg);
    background: var(--bg-raised);
    color: var(--text);
    box-shadow: var(--shadow-lg);
}
.consent-dialog::backdrop { background: rgb(0 0 0 / .6); }
.consent-dialog__body { position: relative; display: grid; gap: var(--s-4); margin: 0; padding: var(--s-5); }
.consent-dialog__title { padding-right: 52px; font: 500 var(--step-2)/1.15 var(--font-display); }
.consent-dialog--ask .consent-dialog__title { padding-right: 0; }
.consent-dialog__intro { margin: 0; color: var(--muted); font-size: var(--step--1); line-height: 1.6; }
.consent-dialog__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.consent-dialog__actions .btn { flex: 1 1 10em; justify-content: center; }
.consent-dialog__more { margin: 0; font-size: var(--step--1); }
.consent-dialog__close {
    position: absolute;
    top: var(--s-4);
    right: var(--s-4);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--control-border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
}
.consent-dialog__close:hover { border-color: var(--gold); }
.consent-cats { display: grid; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.consent-cat { padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.consent-cat__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2); min-height: 44px; }
.consent-cat__name { font-size: var(--step-0); font-weight: 700; }
.consent-cat__always { color: var(--gold); font-size: var(--step--1); font-weight: 700; }
.consent-cat__switch { display: flex; }
.consent-cat__text { margin: 4px 0 0; color: var(--muted); font-size: var(--step--1); line-height: 1.55; }

/* footer: privacy links (the settings button needs JavaScript) */
.site-footer__legal { grid-column: 1 / -1; margin: calc(var(--s-6) * -1 + var(--s-2)) 0 0; color: var(--faint); font-size: var(--step--2); }
.site-footer__legal a, .site-footer__legal .link-btn { display: inline-block; padding-block: 4px; }
.link-btn {
    padding: 0;
    border: 0;
    background: none;
    color: var(--muted);
    font: inherit;
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, currentColor 30%, transparent);
    text-decoration-thickness: 1px;
    text-underline-offset: .2em;
    cursor: pointer;
}
.link-btn:hover { color: var(--gold); }
html:not(.js) .site-footer__consent, html:not(.js) .privacy-consent__action { display: none; }

/* /ochrana-soukromi */
.privacy__updated { margin: var(--s-3) 0 0; color: var(--faint); font-size: var(--step--1); }
.privacy-consent { display: grid; gap: var(--s-3); max-width: var(--measure); margin: 0 0 var(--s-6); padding: var(--s-4) var(--s-5); border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--surface); }
.privacy-consent__title { font: 700 var(--step-1)/1.25 var(--font-text); letter-spacing: 0; }
.privacy-consent__state, .privacy-consent__action { margin: 0; }
.privacy .prose h3 { margin: var(--s-5) 0 var(--s-2); }
.privacy-table { margin: 0 0 var(--s-6); }
.privacy-table table { min-width: 720px; }
.privacy-table th, .privacy-table td { white-space: normal; text-align: left; vertical-align: top; }
.privacy-table tbody th { font-weight: 600; }
.privacy-table code { white-space: nowrap; }

/* Web Push opt-in (templates/push/_optin.html.twig on /muj-seznam) */
.push-optin { display: flex; align-items: flex-start; gap: var(--s-4); margin: 0 0 var(--s-6); padding: var(--s-4) var(--s-5); border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--surface); }
.push-optin[hidden], .push-optin [hidden] { display: none; }
.push-optin__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); }
.push-optin__body { display: grid; gap: var(--s-2); min-width: 0; }
.push-optin__title { font: 700 var(--step-1)/1.25 var(--font-text); letter-spacing: 0; }
.push-optin__text, .push-optin__note { margin: 0; color: var(--muted); font-size: var(--step--1); line-height: 1.55; }
.push-optin__actions, .push-optin__status { margin: 0; }
.push-optin__status { font-size: var(--step--1); font-weight: 700; }
.push-optin [aria-busy="true"] { cursor: progress; opacity: .75; }

@media print {
    .consent, .consent-dialog, .push-optin { display: none !important; }
}
/* === /O: ops === */

/* === M: media – share, calendar reminders and feeds (.ics), newsletter, widget generator === */

/* popover panels ("Sdílet", "Připomenout"): a centered card, a bottom sheet on phones; colors from the zone they sit in */
.pop {
    width: min(400px, calc(100vw - 32px));
    max-height: min(85vh, 640px);
    margin: auto;
    padding: var(--s-5);
    overflow-y: auto;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-lg);
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-lg);
}
.pop::backdrop { background: rgb(0 0 0 / .45); }
@supports not selector(:popover-open) { .pop { display: none; } }
@media (prefers-reduced-motion: no-preference) {
    .pop:popover-open { animation: pop-in .2s var(--ease); }
}
@keyframes pop-in { from { opacity: 0; transform: translateY(10px); } }
.pop__title { margin: 0 0 var(--s-4); font: 500 var(--step-1)/1.2 var(--font-display); }
.pop__list { display: grid; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.pop__item {
    display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px;
    border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface-2); color: var(--text);
    font-weight: 700; text-decoration: none;
}
.pop__item:hover { border-color: var(--gold); color: var(--text); }
.pop__item svg { flex: none; color: var(--gold); }
.pop__meta { margin-left: auto; padding-left: var(--s-2); color: var(--muted); font-size: var(--step--1); font-weight: 600; white-space: nowrap; }
.pop__note { margin: var(--s-3) 0 0; color: var(--muted); font-size: var(--step--1); }
.pop__close { width: 100%; justify-content: center; margin-top: var(--s-4); }
@media (max-width: 560px) {
    .pop {
        width: 100%; max-width: none; margin: auto 0 0; border-radius: var(--r-xl) var(--r-xl) 0 0;
        padding-bottom: calc(var(--s-5) + env(safe-area-inset-bottom, 0px));
    }
}

/* share: the link field with a copy button, confirmation in an aria-live status */
.share__label { display: block; margin-bottom: 6px; color: var(--muted); font-size: var(--step--1); font-weight: 700; }
.share__field { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.share__url {
    flex: 1 1 200px; min-width: 0; min-height: 44px; padding: 0 12px;
    border: 1px solid var(--control-border); border-radius: var(--r-sm); background: var(--bg); color: var(--text);
    font: 500 var(--step--1)/1 var(--font-text);
}
.share__url:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.share__status { min-height: 1.4em; margin: var(--s-2) 0 var(--s-3); color: var(--gold); font-size: var(--step--1); font-weight: 700; }
html:not(.js) .share__copy { display: none; }
.weekly__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s-4); }

/* subscribable calendar (.ics) on /kalendar and /posledni-sance */
.ics-subscribe {
    display: grid; gap: var(--s-3) var(--s-5); max-width: 980px; margin: 0 0 clamp(28px, 3vw, 48px);
    padding: var(--s-4) var(--s-5); border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--surface);
}
@media (min-width: 900px) {
    .ics-subscribe { grid-template-columns: minmax(0, 1fr) auto; }
    .ics-subscribe__title, .ics-subscribe__lead { grid-column: 1; }
    .ics-subscribe__actions { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
    .ics-subscribe__more { grid-column: 1 / -1; }
}
.ics-subscribe__title { margin: 0; font: 500 var(--step-1)/1.2 var(--font-display); }
.ics-subscribe__lead { margin: 0; color: var(--muted); }
.ics-subscribe__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.ics-subscribe__more summary { display: inline-flex; align-items: center; min-height: 32px; color: var(--text); font-weight: 700; cursor: pointer; }
.ics-subscribe__more[open] summary { margin-bottom: var(--s-3); }
.ics-subscribe__howto { display: grid; gap: var(--s-2); max-width: 75ch; margin: var(--s-2) 0; padding-left: 1.2em; }
.ics-subscribe__subtitle { margin: var(--s-4) 0 var(--s-2); font-weight: 800; }
.ics-subscribe__services { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ics-subscribe__services li { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s-4); }
.ics-subscribe__services a { display: inline-flex; align-items: center; min-height: 32px; }
.ics-subscribe__service { min-width: 8em; font-weight: 700; }

/* newsletter sign-up (footer, homepage, end of the weekly articles, /newsletter pages) */
.nl { display: grid; gap: var(--s-3); max-width: 680px; }
.nl__title { margin: 0; color: var(--text); font: 500 var(--step-2)/1.15 var(--font-display); }
.nl__lead { margin: 0; color: var(--muted); }
.nl__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
.nl__label { flex: 1 0 100%; color: var(--text); font-size: var(--step--1); font-weight: 700; }
.nl__input {
    flex: 1 1 240px; min-width: 0; min-height: 46px; padding: 0 18px;
    border: 1px solid var(--control-border); border-radius: var(--pill); background: var(--bg); color: var(--text);
    font: 500 16px/1 var(--font-text);
}
.nl__input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.nl__input[aria-invalid="true"] { border-color: var(--danger); }
.nl__error { margin: 0; color: var(--danger); font-size: var(--step--1); font-weight: 700; }
.nl__consent { max-width: 75ch; margin: 0; color: var(--muted); font-size: var(--step--1); line-height: 1.5; }
.nl__consent a { color: var(--text); }
.nl__hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.nl--footer { grid-column: 1 / -1; max-width: none; padding-top: var(--s-5); border-top: 1px solid var(--line); }
.nl--footer .nl__title { font: 800 var(--step--2)/1.3 var(--font-text); letter-spacing: .16em; text-transform: uppercase; }
.nl--footer .nl__row { max-width: 680px; }
.nl-panel { max-width: 980px; padding: clamp(20px, 3vw, 40px); border: 1px solid var(--line-strong); border-radius: var(--r-xl); background: var(--surface); }
.weekly__newsletter { margin-top: var(--s-7); }

/* /widget generator */
.widget-builder { display: grid; gap: var(--s-6); margin-bottom: var(--s-7); }
@media (min-width: 1000px) {
    .widget-builder { grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); align-items: start; }
    .widget-builder__embed { grid-column: 1 / -1; }
}
.widget-builder__form { display: grid; gap: var(--s-4); padding: var(--s-5); border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--surface); }
.widget-builder__title { margin: 0 0 var(--s-3); font: 500 var(--step-1)/1.2 var(--font-display); }
.widget-builder__form .widget-builder__title { margin: 0; }
.widget-builder__themes .filter-form__checks { flex-direction: column; align-items: flex-start; }
.widget-builder__apply { margin: 0; }
.widget-builder__frame { min-height: 200px; padding: var(--s-5); border: 1px dashed var(--line-strong); border-radius: var(--r-lg); background: var(--bg-raised); }
.widget-builder__label { display: block; margin-bottom: var(--s-2); color: var(--muted); }
.widget-builder__code {
    display: block; width: 100%; min-height: 110px; padding: var(--s-3); resize: vertical;
    border: 1px solid var(--control-border); border-radius: var(--r); background: var(--bg-raised); color: var(--text);
    font: 500 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.widget-builder__code:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.widget-builder__actions { margin: var(--s-3) 0 0; }
.widget-faq { max-width: 75ch; }

@media print {
    .nl, .nl-panel, .ics-subscribe, .share-btn, .pop, [popovertarget="pripomenout"] { display: none !important; }
}
/* === /M: media === */
