/* 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.
   Fraunces is instanced to wght 400-700 with a fixed opsz 32 (scripts/fonts/build.py), its italic is synthesized. */

/* core.css is on every page (phase 6 point 49): tokens, base, header, search, navigation, cards, footer,
   dialogs of base.html.twig, consent, popovers. A page group adds its own file after it in {% block stylesheets %}:
   home, detail, listing, service, tonight, tools, stats, pages (see README, Nasazení). Rules keep the order of the
   former app.css; a rule used by pages of one group only belongs to that group's file. */

@font-face {
    font-family: "Fraunces";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("fonts/fraunces-v2-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: 400 700;
    font-display: swap;
    src: url("fonts/fraunces-v2-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); }
.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); }
/* ==========================================================================
   Homepage hero + intro
   ========================================================================== */

@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes hero-zoom { from { transform: scale(1.06); } }
/* ==========================================================================
   Sections, rails, grids
   ========================================================================== */

.section { padding-block: var(--section) 0; }
.page > .section:first-of-type { padding-top: var(--s-6); }
.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); }
.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__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)
   ========================================================================== */

.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; }
}

/* ==========================================================================
   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; }
/* calendar: compact rows (next episodes, leaving), later weeks collapsed */

.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); }
/* light theme: the real brand color (dark ones are only lightened for dark backgrounds) */

.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); }
/* ==========================================================================
   Statistics
   ========================================================================== */

@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; }
/* ==========================================================================
   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; }
/* ==========================================================================
   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); }
/* 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; }
@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); }
}

/* 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; }
/* ==========================================================================
   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). Hidden unless open: separate rules, because a browser without the
   Popover API (old TVs, iOS 16) drops a whole rule with :popover-open; app.js opens it there with .is-open */
.sheet {
    display: none;
    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:popover-open { display: block; }
.sheet.is-open { display: block; right: 0; bottom: 0; left: 0; z-index: 1000; }
.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
   ========================================================================== */

@keyframes twinkle { from { opacity: .35; } to { opacity: .8; } }
/* 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)); }
.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; }
/* 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; }
}

/* service hub: genre pages */
.hub-genres { display: grid; gap: var(--s-2); margin: 0 0 var(--s-5); }
.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 */

.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); }
/* 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-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__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;
}
.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; }
/* 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; }
/* === 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; }
/* 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; }
.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; }
/* 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); }
.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); }
.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)); }
/* "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__surprise .btn, .tonight-hero__surprise .btn, .my-list__start .btn { gap: 8px; }
a[data-surprise][aria-busy="true"] { opacity: .7; cursor: progress; }
.recent { margin-top: var(--s-6); }
.recent[hidden] { display: none; }
.recent .row__item { width: var(--rail-w); }
/* "Můj seznam" */

[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 === */
/* === /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;
}
/* charts: chart position history (detail) and /statistiky – thin marks, hairline grid, text in text tokens */

.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); }
/* 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 */

@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); } }
/* === /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; }
/* 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 {
    display: none;
    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); }
.pop:popover-open { display: block; }
.pop.is-open { display: block; position: fixed; top: 10vh; right: 0; left: 0; z-index: 1000; }

@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__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; }
/* 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 */

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

/* === /M: media === */

/* === F6-B1: UX wave 1 (hidden, detail hero link, title on no service, prompts pinned at the bottom) === */
/* the hidden attribute always hides, whatever display the element's class sets (.card, .btn, …) */
[hidden] { display: none !important; }
/* phones: the collapsed 44px header search keeps its value (/hledat?q=…) but does not draw it over the magnifier */
@media (max-width: 759px) {
    .search:not(:focus-within):not(.is-open) .search__input { color: transparent; caret-color: transparent; }
}

/* prompts pinned at the bottom (public/js/personal.js queue): fixed, so the layout never moves */
.nudge {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 54;
    width: min(400px, calc(100vw - 32px));
    padding: var(--s-4) var(--s-5);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-lg);
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-lg);
}
.nudge__text { margin: 0; font-weight: 700; }
.nudge__status { margin: var(--s-2) 0 0; color: var(--muted); font-size: var(--step--1); }
.nudge__status:empty { display: none; }
.nudge__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: var(--s-3) 0 0; }
@media (max-width: 760px) {
    .nudge { left: 16px; right: 16px; width: auto; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: no-preference) {
    .nudge { opacity: 0; transform: translateY(12px); transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); }
    .nudge.is-open { opacity: 1; transform: none; }
}

@media print {
    .nudge, .watch-alert { display: none !important; }
}

/* === /F6-B1 === */

/* === F6-G1: content wave 1 (Christmas season link, monthly news) === */
.chip--season { min-height: 36px; padding-inline: .9em; border-color: var(--gold); background: var(--gold-soft); }
.f6g-season-link { margin-block: 0 var(--gap); }
.f6g-months .section-head__more:first-child { font-weight: 700; }
/* === /F6-G1 === */
/* === /F6-D1 === */
/* === /F6-A2 === */

/* === F6-V2: performance wave 2 (self-hosted MotN logos keep their full height: they have built-in padding) === */
.logo__img[src^="/img/services/motn/"] { height: 100%; }
/* === /F6-V2 === */

/* === F6-U2: UX wave 2 (search help, 404, detail order and offer rows, FAQ, service page, Moje služby, filters) === */
/* card "Můj seznam" button: a 48 × 48 target, the 36px circle drawn at the same place */
.card__save { top: 0; right: 0; width: 48px; height: 48px; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.card__save::before { content: ""; position: absolute; inset: 6px; z-index: -1; border-radius: 50%; background: rgb(8 9 13 / .66); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.card__save { isolation: isolate; }
.card__save[aria-pressed="true"] { background: transparent; }
.card__save[aria-pressed="true"]::before { background: #f0cd86; box-shadow: none; }
.card__save:focus-visible { outline-offset: -4px; border-radius: 50%; }
:root[data-view="list"] :is([data-view-tools] ~ .grid, [data-view-tools] ~ * .grid) .card__save { right: 2px; }
/* bottom navigation: Můj seznam with its count; an opaque background keeps the labels at 4.5:1 over any card */
@media (max-width: 760px) {
    .bottom-nav { background: color-mix(in srgb, var(--bg) 94%, transparent); }
}

.bottom-nav__count {
    position: absolute;
    top: 2px;
    left: calc(50% + 6px);
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--pill);
    background: var(--gold);
    color: var(--gold-ink);
    font: 800 11px/18px var(--font-text);
    text-align: center;
}
/* genre filters: full option texts on desktop; on phones a bottom sheet with "Zobrazit N titulů" */

.filter-form__field select { width: 100%; }
@keyframes f6u2-sheet-in { from { transform: translateY(24px); opacity: 0; } }
/* === /F6-U2 === */
/* === F6-G2: content wave 2 (price page /sluzba/{id}/cena, Netflix Top 10 hub, weeks and years) === */

.f6g-week-link { margin: var(--s-3) 0 0; }
/* === /F6-G2 === */
/* === /F6-P2 === */
/* === /F6-D2 === */

/* === F6-V3: performance wave 3 (home sections below the fold, sprite icons, Top 10 panels loaded on open) === */
/* the sprite heart (<use href="#i-heart">) inherits its fill from the <svg> */
.card__save svg { fill: transparent; transition: fill var(--t-fast); }
.card__save[aria-pressed="true"] svg { fill: currentColor; }
.top__fallback { margin: 0; padding: var(--s-2) var(--s-5) var(--s-6); }
.top[aria-busy="true"] .top__fallback { opacity: .6; }
@media (prefers-reduced-motion: reduce) {
    .card__save svg { transition: none; }
}

/* === /F6-V3 === */
/* === F6-U3: UX wave 3 (since the last visit, personal calendars, install, rows by Moje služby) === */

.sheet__install { margin-top: var(--s-4); }
.sheet__install-btn { width: 100%; justify-content: center; gap: var(--s-2); }
.sheet__install-ios { margin: 0; color: var(--muted); font-size: var(--step--1); }
@media print {
    .visit-summary, .visit-sep, .sheet__install { display: none !important; }
}

/* === /F6-U3 === */
/* === /F6-G3 === */
