/*
 * Knifi.cz – the design "Knifi.cz – Pop" (knifi_website.pen): its variables are the tokens below,
 * dark and light. The theme is data-theme on <html> (the toggle, else the system's), and a
 * section can pin its own (Knifi kino is always dark, the share card always light).
 */

/* ---------- Tokens ---------- */

:root,
[data-theme="dark"] {
    --bg: #110E15;
    --bg-soft: #17131D;
    --surface: #1D1824;
    --surface-2: #2A2433;
    --border: #FFFFFF1A;
    --text: #F6F1FA;
    --text-2: #C3B9CF;
    --text-3: #9289A0;
    --accent: #D8A5EE;
    --accent-2: #F79ADA;
    --accent-solid: #B94FDD;
    --logo-accent: #C483E0;
    --accent-tint: #2C1E35;
    --accent-tint-2: #4A2E5C;
    --cta-glow: #CD059E73;
    --star: #FFC531;
    --shadow: #000000A6;
    --shadow-soft: #00000066;
    --scrim-top: #110E158C;
    --scrim-mid: #110E15BF;
    --glow: #A21BC48C;
    --shadow-poster: #00000099;
    --ok-bg: #1E3325;
    --ok-ink: #7FD39A;
    --bad-bg: #3A1F1F;
    --bad-ink: #F09B9B;
    --kino: #18131F;
    color-scheme: dark;
}

[data-theme="light"] {
    --bg: #FFFFFF;
    --bg-soft: #F6F2FA;
    --surface: #FFFFFF;
    --surface-2: #F1ECF6;
    --border: #1A14201F;
    --text: #1A1420;
    --text-2: #4E4658;
    --text-3: #766D82;
    --accent: #760A90;
    --accent-2: #A30480;
    --accent-solid: #9313B0;
    --logo-accent: #9313B0;
    --accent-tint: #F6EBFB;
    --accent-tint-2: #DFC0F2;
    --cta-glow: #CD059E59;
    --star: #E89B00;
    --shadow: #3A154A33;
    --shadow-soft: #3A154A1F;
    --scrim-top: #FFFFFFC9;
    --scrim-mid: #FFFFFFE3;
    --glow: #9313B038;
    --shadow-poster: #2A103857;
    --ok-bg: #E4F2E6;
    --ok-ink: #1D6B39;
    --bad-bg: #FAE7E7;
    --bad-ink: #9D1F1F;
    color-scheme: light;
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme]) {
        --bg: #FFFFFF;
        --bg-soft: #F6F2FA;
        --surface: #FFFFFF;
        --surface-2: #F1ECF6;
        --border: #1A14201F;
        --text: #1A1420;
        --text-2: #4E4658;
        --text-3: #766D82;
        --accent: #760A90;
        --accent-2: #A30480;
        --accent-solid: #9313B0;
        --logo-accent: #9313B0;
        --accent-tint: #F6EBFB;
        --accent-tint-2: #DFC0F2;
        --cta-glow: #CD059E59;
        --star: #E89B00;
        --shadow: #3A154A33;
        --shadow-soft: #3A154A1F;
        --scrim-top: #FFFFFFC9;
        --scrim-mid: #FFFFFFE3;
        --glow: #9313B038;
        --shadow-poster: #2A103857;
        --ok-bg: #E4F2E6;
        --ok-ink: #1D6B39;
        --bad-bg: #FAE7E7;
        --bad-ink: #9D1F1F;
        color-scheme: light;
    }
}

:root {
    --cta: #CD059E;
    --on-cta: #FFFFFF;
    --purple: #9313B0;
    --font-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
    --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-brand: "Source Serif 4", Georgia, serif;
    --page: 1200px;
    --gutter: clamp(16px, 6vw, 120px);
    --radius: 16px;
}

/* ---------- Base ---------- */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: clip;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

[data-theme] {
    color: var(--text);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote {
    margin: 0;
}

ul, ol {
    list-style: none;
    padding: 0;
}

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

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.rot-up {
    transform: rotate(90deg);
}

.rot-down {
    transform: rotate(90deg);
}

.icon {
    width: 1em;
    height: 1em;
    flex: none;
    fill: currentColor;
}

.wrap {
    width: min(var(--page), 100% - 2 * var(--gutter));
    margin-inline: auto;
}

@media (max-width: 600px) {
    .wrap {
        width: calc(100% - 32px);
    }
}

/* ---------- Typography helpers ---------- */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-2);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 1.3;
}

.eyebrow .icon {
    font-size: 16px;
}

.display {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 700;
    white-space: nowrap;
}

.more-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.meta {
    color: var(--text-3);
    font-size: 14px;
}

/* ---------- Buttons and chips ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 22px 12px 18px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.btn .icon {
    font-size: 19px;
}

.btn:active {
    transform: translateY(1px);
}

.btn--cta {
    background: var(--cta);
    color: var(--on-cta);
    box-shadow: 0 10px 24px var(--cta-glow);
}

.btn--cta:hover {
    box-shadow: 0 14px 30px var(--cta-glow);
    transform: translateY(-1px);
}

.btn--lg {
    padding: 15px 30px 15px 24px;
    font-size: 16px;
    gap: 10px;
}

.btn--lg .icon {
    font-size: 22px;
}

.btn--sm {
    padding: 10px 20px 10px 16px;
    font-size: 13px;
    gap: 8px;
}

.btn--sm .icon {
    font-size: 18px;
}

.btn--outline {
    border: 1px solid var(--border);
    color: var(--text);
}

.btn--outline:hover {
    background: var(--surface-2);
}

.btn--ghost-strong {
    border: 1px solid var(--text-2);
    color: var(--text);
    padding: 11px 24px;
    font-size: 14px;
}

.btn--ghost-strong:hover {
    background: var(--text);
    color: var(--bg);
}

.btn--inverse {
    background: var(--text);
    color: var(--bg);
}

.btn--link {
    color: var(--accent);
    padding-inline: 6px;
}

.btn[disabled],
.btn[aria-disabled="true"] {
    background: var(--surface-2);
    color: var(--text-3);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

.chip--tint {
    background: var(--accent-tint);
    color: var(--accent);
}

.chip--cta {
    background: var(--cta);
    color: var(--on-cta);
}

.chip--soft {
    background: var(--surface-2);
    color: var(--text-2);
    font-weight: 600;
    padding: 5px 11px;
}

.chip--glass {
    background: #FFFFFF2E;
    color: #fff;
    font-size: 12px;
    letter-spacing: 0.03em;
    padding: 5px 12px;
}

.chip--dark {
    background: #110E15D9;
    color: #fff;
    font-size: 12px;
    letter-spacing: 0.13em;
    padding: 7px 12px;
    gap: 6px;
}

.chip--dark .icon {
    font-size: 14px;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-2);
    font-size: 15px;
    font-weight: 600;
}

a.tag-pill:hover {
    color: var(--text);
    border-color: var(--text-3);
}

.icon-badge {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 12px;
    background: var(--accent-tint);
    color: var(--accent);
    font-size: 24px;
}

/* ---------- Header ---------- */

.site-header {
    position: relative;
    z-index: 20;
    height: 104px;
}

.site-header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: none;
}

.logo__mascot {
    width: 52px;
    height: 70px;
    object-fit: contain;
}

.logo__words {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.logo__name {
    font-family: var(--font-brand);
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
}

.logo__name span {
    color: var(--logo-accent);
}

.logo__tagline {
    font-family: var(--font-brand);
    color: var(--text-3);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 1;
}

.main-nav {
    align-self: stretch;
    display: flex;
    gap: 34px;
}

.main-nav a {
    position: relative;
    display: flex;
    align-items: center;
    color: var(--text-2);
    font-size: 15px;
    font-weight: 500;
}

.main-nav a:hover {
    color: var(--text);
}

.main-nav a[aria-current="page"] {
    color: var(--text);
    font-weight: 700;
}

.main-nav a[aria-current="page"]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 36px;
    height: 3px;
    margin-left: -18px;
    border-radius: 0 0 3px 3px;
    background: var(--cta);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: none;
}

.header-actions .icon-btn {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin: -6px;
    border-radius: 50%;
    color: var(--text-2);
    font-size: 20px;
}

.header-actions .icon-btn:hover {
    color: var(--text);
    background: var(--surface-2);
}

.theme-toggle .icon--to-dark {
    display: none;
}

[data-theme="light"] .theme-toggle .icon--to-light {
    display: none;
}

[data-theme="light"] .theme-toggle .icon--to-dark {
    display: block;
}

.menu-toggle {
    display: none !important;
}

.search-panel {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    padding-bottom: 8px;
}

.search-panel.is-open {
    display: block;
}

.search-form {
    display: flex;
    gap: 10px;
    margin-left: auto;
    max-width: 520px;
    padding: 8px 8px 8px 18px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    box-shadow: 0 16px 40px var(--shadow-soft);
}

.search-form input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 16px;
    outline: none;
}

/* the header's seven links: closer together, without the tagline, then behind the menu button */
@media (max-width: 1320px) {
    .main-nav {
        gap: 22px;
    }

    .logo__tagline {
        display: none;
    }
}

@media (max-width: 1100px) {
    .site-header {
        height: 84px;
    }

    .menu-toggle {
        display: grid !important;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 10px;
        border: 1px solid var(--border);
        border-radius: 20px;
        background: var(--surface);
        box-shadow: 0 24px 60px var(--shadow);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 12px 14px;
        border-radius: 12px;
        font-size: 17px;
    }

    .main-nav a[aria-current="page"] {
        background: var(--accent-tint);
    }

    .main-nav a[aria-current="page"]::before {
        display: none;
    }

    .logo__mascot {
        width: 42px;
        height: 56px;
    }

    .logo__name {
        font-size: 27px;
    }
}

@media (max-width: 600px) {
    .header-actions {
        gap: 14px;
    }

    .header-actions .btn {
        display: none;
    }

    .header-actions .icon-btn--facebook {
        display: none;
    }
}

/* ---------- Hero backdrop (blurred image under the header) ---------- */

.backdrop {
    position: relative;
    isolation: isolate;
    overflow-x: clip;
}

.backdrop__image {
    position: absolute;
    inset: -60px -100px 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.backdrop__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(38px);
    opacity: 0.8;
    transform: scale(1.06);
}

.backdrop::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, var(--scrim-top) 0%, var(--scrim-mid) 50%, var(--bg) 90%);
    pointer-events: none;
}

/* ---------- Section header ---------- */

.section {
    padding-block: 56px;
}

.section-head {
    display: grid;
    gap: 22px;
    margin-bottom: 36px;
}

.section-head__row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px 40px;
    flex-wrap: wrap;
}

.section-head__title {
    display: grid;
    gap: 12px;
}

.section-head h2 {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-display);
    font-size: clamp(30px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.section-head__lead {
    max-width: 400px;
    color: var(--text-2);
    font-size: 16px;
    line-height: 1.5;
}

.rule {
    position: relative;
    height: 3px;
}

.rule::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: var(--border);
}

.rule::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 72px;
    height: 3px;
    background: var(--accent-solid);
}

.section-head--small h2 {
    font-size: clamp(26px, 3vw, 32px);
    letter-spacing: -0.02em;
}

/* ---------- Featured quiz carousel ---------- */

.hero-zone {
    padding-bottom: 104px;
}

.carousel {
    position: relative;
    height: 560px;
    margin-top: 24px;
}

.carousel::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1200px;
    max-width: 100vw;
    height: 660px;
    transform: translate(-50%, -50%);
    background: radial-gradient(closest-side, var(--glow), transparent);
    pointer-events: none;
}

.carousel__slides {
    position: relative;
    height: 100%;
}

.quiz-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    transition: transform 0.55s cubic-bezier(0.22, 0.8, 0.3, 1), opacity 0.4s ease;
    will-change: transform;
}

.quiz-slide[data-pos="0"] {
    z-index: 3;
    transform: translate(-50%, -50%);
}

.quiz-slide[data-pos="-1"],
.quiz-slide[data-pos="1"] {
    z-index: 2;
    opacity: 0.5;
}

.quiz-slide[data-pos="-1"] {
    transform: translate(calc(-50% - 668px), -50%);
}

.quiz-slide[data-pos="1"] {
    transform: translate(calc(-50% + 668px), -50%);
}

.quiz-slide[data-pos="hidden"] {
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.92);
}

.quiz-slide__main {
    display: none;
}

.quiz-slide__side {
    display: flex;
}

.quiz-slide[data-pos="0"] .quiz-slide__main {
    display: block;
}

.quiz-slide[data-pos="0"] .quiz-slide__side {
    display: none;
}

.featured-quiz {
    position: relative;
    width: 880px;
    max-width: calc(100vw - 32px);
    padding: 44px 48px 44px 430px;
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 32px 80px var(--shadow);
}

.featured-quiz__poster {
    position: absolute;
    top: -40px;
    left: 36px;
    width: 350px;
    height: 499px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 24px 48px var(--shadow-poster);
}

.featured-quiz__content {
    display: grid;
    gap: 18px;
}

.featured-quiz h2 {
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -0.027em;
    line-height: 1.05;
}

.featured-quiz p {
    color: var(--text-2);
    line-height: 1.55;
}

.divider {
    height: 1px;
    background: var(--border);
}

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 40px;
}

.stat {
    display: grid;
    gap: 2px;
}

.stat strong {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
}

.stat span {
    color: var(--text-3);
    font-size: 14px;
}

.featured-quiz__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.featured-quiz__actions > a:first-child {
    font-weight: 600;
}

.side-quiz {
    width: 426px;
    height: 330px;
    gap: 28px;
    align-items: center;
    padding: 24px;
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 20px 50px var(--shadow-soft);
    text-align: left;
}

.side-quiz img {
    width: 170px;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.side-quiz__text {
    width: 180px;
    display: grid;
    gap: 14px;
}

.side-quiz__text .eyebrow {
    font-size: 11px;
    letter-spacing: 0.18em;
}

.side-quiz__text h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.15;
}

.carousel__nav {
    position: absolute;
    bottom: -34px;
    left: 50%;
    z-index: 5;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.carousel__dot {
    width: 9px;
    height: 9px;
    border-radius: 99px;
    background: var(--text-3);
    opacity: 0.45;
    transition: width 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.carousel__dot[aria-current="true"] {
    width: 28px;
    background: var(--cta);
    opacity: 1;
}

@media (max-width: 1000px) {
    .carousel {
        height: auto;
        margin-top: 16px;
    }

    .carousel__slides {
        height: auto;
    }

    .quiz-slide {
        position: static;
        display: none;
        transform: none !important;
    }

    .quiz-slide[data-pos="0"] {
        display: block;
    }

    .featured-quiz {
        width: auto;
        max-width: none;
        padding: 260px 24px 28px;
        margin-top: 0;
    }

    .featured-quiz__poster {
        top: 24px;
        left: 24px;
        width: 160px;
        height: 214px;
    }

    .featured-quiz h2 {
        font-size: 34px;
    }

    .carousel__nav {
        position: static;
        justify-content: center;
        transform: none;
        margin-top: 20px;
    }

    .hero-zone {
        padding-bottom: 32px;
    }
}

@media (max-width: 600px) {
    .featured-quiz {
        padding-top: 248px;
    }

    .featured-quiz__actions {
        flex-wrap: wrap;
    }

    .stats {
        gap: 14px 28px;
    }
}

/* ---------- Universe ---------- */

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

@media (max-width: 1000px) {
    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 40px;
    }

    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: minmax(0, 1fr);
    }
}

.universe-card {
    display: grid;
    align-content: start;
    gap: 20px;
}

.universe-card__poster {
    position: relative;
    aspect-ratio: 282 / 376;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface-2);
    box-shadow: 0 24px 44px var(--shadow);
}

.universe-card__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.universe-card:hover .universe-card__poster img {
    transform: scale(1.04);
}

.universe-card__poster .chip {
    position: absolute;
    top: 14px;
    left: 14px;
}

.universe-card__text {
    display: grid;
    gap: 10px;
}

.universe-card h3 {
    font-family: var(--font-display);
    font-size: 23px;
    font-weight: 700;
    line-height: 1.15;
}

.universe-card p {
    color: var(--text-2);
    font-size: 15px;
    line-height: 1.5;
}

.quiz-link {
    display: flex;
    gap: 8px;
    padding-top: 4px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.quiz-link .icon {
    font-size: 18px;
}

.quiz-link:hover span {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- Post cards ---------- */

.post-feature {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 360px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface-2);
    box-shadow: 0 24px 44px var(--shadow);
    color: #fff;
}

.post-feature > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-feature:hover > img {
    transform: scale(1.03);
}

.post-feature__text {
    position: relative;
    display: grid;
    justify-items: start;
    gap: 10px;
    width: 100%;
    padding: 90px 32px 28px;
    background: linear-gradient(180deg, #0E0B1200 0%, #0E0B12F2 80%);
}

.post-feature h3 {
    font-family: var(--font-display);
    font-size: clamp(24px, 2.6vw, 30px);
    font-weight: 700;
    letter-spacing: -0.017em;
    line-height: 1.1;
}

.post-feature p {
    color: #FFFFFFD1;
    font-size: 15px;
    line-height: 1.5;
}

.post-feature .meta {
    color: #FFFFFF99;
}

.post-card {
    display: grid;
    align-content: start;
    gap: 16px;
}

.post-card__image {
    aspect-ratio: 282 / 168;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface-2);
    box-shadow: 0 16px 32px var(--shadow-soft);
}

.post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-card__image img {
    transform: scale(1.04);
}

.post-card__text {
    display: grid;
    gap: 8px;
}

.post-card .eyebrow {
    letter-spacing: 0.13em;
}

.post-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.post-card:hover h3 {
    color: var(--accent);
}

.post-card p {
    color: var(--text-2);
    font-size: 15px;
    line-height: 1.5;
}

.post-card--related {
    gap: 14px;
}

.post-card--related .post-card__image {
    aspect-ratio: 384 / 216;
}

.post-card--related h3 {
    font-size: 22px;
}

.more-posts {
    margin-top: 36px;
}

/* ---------- Knifi kino ---------- */

.kino {
    padding-block: 72px;
    background: var(--kino);
}

.kino__row {
    display: grid;
    grid-template-columns: minmax(0, 660fr) minmax(0, 484fr);
    align-items: center;
    gap: 56px;
}

.video {
    position: relative;
    aspect-ratio: 660 / 372;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: radial-gradient(120% 140% at 50% 50%, #4A1C5C 0%, #1B1424 70%, #120E17 100%);
    box-shadow: 0 24px 60px #00000080;
    color: #fff;
}

.video > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video__play {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    background: #0E0B1259;
}

.video--cover .video__play {
    background: #0E0B1299;
}

.video__button {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--cta);
    box-shadow: 0 14px 36px #CD059E80;
    font-size: 36px;
    transition: transform 0.2s ease;
}

.video__play:hover .video__button {
    transform: scale(1.06);
}

.video__caption {
    display: flex;
    align-items: center;
    gap: 10px;
    align-self: stretch;
    color: #FFFFFFCC;
    font-size: 14px;
    font-weight: 600;
}

.video__caption .icon {
    font-size: 22px;
}

.video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video__spacer {
    height: 22px;
}

.counter {
    display: grid;
    gap: 20px;
}

.counter h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.018em;
}

.counter h3 .icon {
    font-size: 26px;
}

.counter > p {
    color: var(--text-2);
}

.numbered {
    display: grid;
}

.numbered li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-block: 16px;
    border-top: 1px solid var(--border);
}

.numbered li:last-child {
    border-bottom: 1px solid var(--border);
}

.numbered__no {
    width: 52px;
    flex: none;
    color: var(--accent-2);
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
}

.numbered strong {
    display: block;
    font-size: 19px;
    font-weight: 700;
}

.numbered small {
    display: block;
    color: var(--text-3);
    font-size: 15px;
}

@media (max-width: 1000px) {
    .kino__row {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }
}

/* ---------- Poll and tonight's pick ---------- */

.duo {
    padding-top: 104px;
}

.card {
    display: grid;
    align-content: start;
    gap: 22px;
    padding: 36px;
    border-radius: 20px;
}

.card--surface {
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 20px 50px var(--shadow-soft);
}

.card--tint {
    background: var(--accent-tint);
}

.card__title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-display);
    font-size: clamp(24px, 2.6vw, 30px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.card--tint .icon-badge {
    background: var(--accent-tint-2);
}

.poll__options {
    display: grid;
    gap: 10px;
}

.poll__option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 54px;
    padding: 0 18px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface-2);
    font-size: 17px;
    font-weight: 600;
    text-align: left;
}

.poll__bar {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    background: var(--accent-tint-2);
    transition: width 0.6s cubic-bezier(0.22, 0.8, 0.3, 1);
}

.poll__option span {
    position: relative;
}

.poll__pct {
    color: var(--text-2);
    font-size: 16px;
    font-weight: 700;
}

.poll__option.is-leading .poll__bar {
    background: var(--purple);
}

.poll__option.is-leading {
    color: #fff;
    font-weight: 700;
}

.poll__option.is-leading .poll__pct {
    color: #FFFFFFE6;
}

.poll:not(.is-voted) .poll__pct {
    visibility: hidden;
}

.poll:not(.is-voted) .poll__option:hover {
    outline: 1px solid var(--accent-solid);
}

.poll.is-voted .poll__option {
    cursor: default;
}

.poll__option.is-mine::after {
    content: "✓";
    position: relative;
    margin-left: auto;
    margin-right: 10px;
    font-weight: 700;
}

.poll__note {
    color: var(--text-3);
    font-size: 14px;
}

.pick {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
    min-height: 220px;
}

.pick__mascot {
    width: 138px;
    flex: none;
}

.pick__text {
    display: grid;
    justify-items: start;
    gap: 10px;
}

.pick__text h3 {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.018em;
    line-height: 1.1;
}

.pick__text p {
    color: var(--text-2);
    font-size: 17px;
}

.pick__text .btn {
    margin-top: 10px;
    padding: 13px 24px 13px 20px;
}

.pick.is-spinning .pick__text {
    animation: pick-spin 0.45s ease;
}

@keyframes pick-spin {
    0% { opacity: 1; transform: none; }
    40% { opacity: 0; transform: translateY(-10px); }
    60% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: none; }
}

@media (max-width: 600px) {
    .card {
        padding: 24px;
    }

    .pick {
        gap: 20px;
    }

    .pick__mascot {
        width: 96px;
    }

    .pick__text h3 {
        font-size: 28px;
    }
}

/* ---------- TV ---------- */

.tv-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    min-height: 256px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 16px 36px var(--shadow-soft);
}

.tv-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.tv-card__time {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1;
}

.tv-card h3 {
    font-family: var(--font-display);
    font-size: 23px;
    font-weight: 700;
    line-height: 1.15;
}

.tv-card .meta {
    margin-top: 4px;
}

.tv-card .chip--tint .icon {
    color: var(--star);
    font-size: 16px;
}

.tv-card .chip--soft .icon {
    color: var(--text-3);
    font-size: 16px;
}

.tv-card .chip {
    align-self: flex-start;
    padding: 7px 14px 7px 10px;
    font-size: 14px;
}

.tv-mascot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 256px;
    padding: 24px;
    border-radius: 16px;
    background: var(--accent-tint);
    color: var(--text-2);
    font-size: 15px;
    text-align: center;
}

.tv-mascot img {
    width: 125px;
    height: 130px;
    object-fit: contain;
}

.tv-mascot .icon {
    color: var(--accent);
    font-size: 36px;
}

/* stacked on a phone: no grid row to fill, so no empty space between the time and the name */
@media (max-width: 600px) {
    .tv-card,
    .tv-mascot {
        min-height: 0;
    }
}

/* the day's programme per channel (/dnes-v-tv) */

.tv-schedule {
    display: grid;
    gap: 24px;
}

.tv-jump {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-block: 12px;
    background: var(--bg);
}

.tv-jump .chip {
    padding: 8px 14px;
    font-size: 14px;
}

.tv-jump .chip:hover,
.tv-jump .chip:focus-visible {
    background: var(--accent-tint);
    color: var(--accent);
}

.tv-channel h3 {
    /* a jump (to the heading) lands with the channel's box below the sticky row of channels */
    scroll-margin-top: 140px;
}

.tv-schedule__channels {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 24px;
    align-items: start;
}

.tv-channel {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
}

.tv-channel h3 {
    margin-bottom: 8px;
    font-family: var(--font-display);
    font-size: 23px;
    font-weight: 700;
}

.tv-channel li {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    padding-block: 12px;
    border-top: 1px solid var(--border);
}

.tv-channel time {
    color: var(--accent);
    font-family: var(--font-display);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.tv-channel strong {
    display: block;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.tv-channel small {
    display: block;
    color: var(--text-3);
    font-size: 14px;
}

.tv-channel p {
    margin-top: 4px;
    color: var(--text-2);
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.tv-schedule .source-note a,
.listing .empty a {
    color: var(--accent);
    font-weight: 600;
}

.tv-channel__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
}

/* ---------- Ranking ---------- */

.ranking {
    display: grid;
    grid-template-columns: 440px minmax(0, 1fr);
    gap: 24px;
}

.rank-first {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    min-height: 344px;
    padding: 24px 36px 36px;
    border-radius: 20px;
    background: var(--purple);
    box-shadow: 0 24px 48px var(--cta-glow);
    color: #fff;
}

.rank-first__top {
    display: flex;
    justify-content: space-between;
}

.rank-first__no {
    font-family: var(--font-display);
    font-size: 120px;
    font-weight: 800;
    letter-spacing: -0.033em;
    line-height: 1;
}

.rank-first__trophy {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-top: 14px;
    border-radius: 50%;
    background: #FFFFFF29;
    color: #FFC531;
    font-size: 26px;
}

.rank-first h3 {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.017em;
    line-height: 1.1;
}

.rank-first .meta {
    margin-top: 8px;
    color: #FFFFFFB3;
}

.scores {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rank-first .scores {
    padding-top: 18px;
}

.score {
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text-2);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.score--ours {
    background: var(--accent-tint);
    color: var(--accent);
}

.rank-first .score {
    background: #FFFFFF2E;
    color: #fff;
}

.rank-first .score--ours {
    background: #fff;
    color: #760A90;
}

.rank-rows {
    display: grid;
    gap: 16px;
}

.rank-row {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 104px;
    padding: 16px 28px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
}

.rank-row__no {
    width: 40px;
    flex: none;
    color: var(--accent-solid);
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
}

.rank-row__text {
    flex: 1;
    min-width: 0;
}

.rank-row h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

@media (max-width: 1000px) {
    .ranking {
        grid-template-columns: minmax(0, 1fr);
    }

    .rank-row {
        flex-wrap: wrap;
        gap: 12px 20px;
    }

    .rank-row .scores {
        width: 100%;
        padding-left: 60px;
    }
}

/* ---------- Stories and categories ---------- */

.columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 72px;
    padding-block: 72px 96px;
}

.stories,
.categories {
    display: grid;
    align-content: start;
    gap: 22px;
}

.categories {
    gap: 24px;
}

.block-title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-display);
    font-size: clamp(26px, 3vw, 32px);
    font-weight: 700;
    letter-spacing: -0.019em;
    line-height: 1.15;
}

.stories > p:not(.eyebrow) {
    color: var(--text-2);
    font-size: 17px;
    line-height: 1.55;
}

.stories .numbered li {
    padding-block: 18px;
}

.stories .numbered__no {
    font-size: 28px;
}

.stories .numbered a {
    flex: 1;
    font-size: 19px;
    font-weight: 700;
}

.stories .numbered a:hover {
    color: var(--accent);
}

.stories .numbered .meta {
    flex: none;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 8px 18px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
}

.category-tag:hover {
    border-color: var(--accent-solid);
}

.category-tag__count {
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--surface-2);
    font-size: 13px;
    font-weight: 700;
}

.category-tag--hot {
    border-color: transparent;
    background: var(--cta);
    color: var(--on-cta);
}

.category-tag--hot .category-tag__count {
    background: #FFFFFF38;
}

.mascots {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    padding-top: 20px;
}

.mascots img {
    height: 120px;
    width: auto;
}

@media (max-width: 900px) {
    .columns {
        grid-template-columns: minmax(0, 1fr);
        gap: 56px;
    }
}

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--border);
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-block: 32px;
    flex-wrap: wrap;
}

.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-3);
    font-size: 15px;
}

.site-footer__brand img {
    width: 30px;
    height: 40px;
    object-fit: contain;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
}

.site-footer nav a {
    color: var(--accent);
    font-size: 15px;
    font-weight: 600;
}

.site-footer nav a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ---------- Post hero ---------- */

.post-hero__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 520px;
    align-items: center;
    gap: 64px;
    padding-block: 20px 100px;
}

.post-hero__intro {
    display: grid;
    justify-items: start;
    gap: 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-size: 15px;
    font-weight: 700;
}

.back-link .icon {
    font-size: 16px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    color: var(--text-2);
    font-size: 15px;
}

.post-meta .chips {
    display: flex;
    gap: 10px;
}

.post-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(36px, 4.6vw, 60px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.04;
}

.post-hero--article h1 {
    font-size: clamp(34px, 3.8vw, 50px);
}

.post-hero__lead {
    color: var(--text-2);
    font-size: clamp(17px, 1.5vw, 19px);
    line-height: 1.6;
}

.post-hero__stats {
    width: 100%;
    display: grid;
    gap: 20px;
}

.post-hero__stats .stats {
    gap: 16px 44px;
}

.post-hero__image {
    width: 100%;
    aspect-ratio: 520 / 400;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 28px 56px var(--shadow-poster);
}

@media (max-width: 1000px) {
    .post-hero__content {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
        padding-bottom: 56px;
    }

    .post-hero__image {
        order: -1;
    }
}

/* ---------- Post body ---------- */

.post-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 80px;
    padding-bottom: 72px;
}

.post-main {
    display: grid;
    align-content: start;
    gap: 40px;
    min-width: 0;
}

.post-main--review {
    gap: 36px;
}

.post-sidebar {
    display: grid;
    align-content: start;
    gap: 24px;
}

.post-sidebar__sticky {
    position: sticky;
    top: 24px;
    display: grid;
    gap: 24px;
}

@media (max-width: 1000px) {
    .post-body {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
    }

    .post-sidebar__sticky {
        position: static;
    }
}

.prose {
    display: grid;
    gap: 1.1em;
    color: var(--text-2);
    font-size: 18px;
    line-height: 1.7;
}

.prose a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose strong {
    color: var(--text);
}

.prose h2,
.prose h3 {
    color: var(--text);
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.prose h2 {
    font-size: 30px;
}

.prose h3 {
    font-size: 24px;
}

.prose ul,
.prose ol {
    padding-left: 1.3em;
    list-style: disc;
}

.prose ol {
    list-style: decimal;
}

.prose img {
    height: auto;
    border-radius: 16px;
}

.prose--article {
    font-size: 17px;
    line-height: 1.65;
}

/* an "html" block: an old WordPress post's paragraphs, lists, quotes and tables */
.prose em,
.prose i {
    font-style: italic;
}

.prose li + li {
    margin-top: 0.35em;
}

.prose blockquote {
    padding: 4px 0 4px 20px;
    border-left: 4px solid var(--accent-solid);
    color: var(--text);
    font-style: italic;
}

.prose blockquote p + p {
    margin-top: 0.8em;
}

.prose figure {
    display: grid;
    gap: 8px;
}

.prose figcaption {
    color: var(--text-3);
    font-size: 14px;
}

.prose table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 15px;
}

.prose th,
.prose td {
    padding: 8px 12px;
    border: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.prose th {
    background: var(--surface-2);
    color: var(--text);
}

.prose--rich {
    overflow-wrap: anywhere;
}

/* a post's poll block */
.post-poll .card__title {
    font-size: clamp(22px, 2.4vw, 28px);
}

.poll__option:disabled {
    cursor: default;
}

/* a page of the site (O mně, Kontakt): one column, no sidebar */
.post-body--page {
    grid-template-columns: minmax(0, 760px);
}

.chapter {
    display: grid;
    gap: 8px;
    scroll-margin-top: 24px;
}

.chapter-title {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 8px;
    font-family: var(--font-display);
    font-size: clamp(24px, 2.6vw, 30px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    scroll-margin-top: 24px;
}

.chapter-title::before {
    content: "";
    width: 6px;
    height: 34px;
    flex: none;
    border-radius: 3px;
    background: var(--accent-solid);
}

.media-row {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-block: 16px;
    border-top: 1px solid var(--border);
}

.chapter-title + .media-row {
    border-top: 0;
}

/* the design stacks a chapter's rows with dividers only, not the column's gap */
.post-main > .media-row + .media-row {
    margin-top: -40px;
}

.post-main > .chapter-title + .media-row {
    margin-top: -32px;
}

.media-row img {
    width: 88px;
    height: 108px;
    flex: none;
    border-radius: 12px;
    object-fit: cover;
}

.media-row .prose {
    font-size: 17px;
    line-height: 1.65;
}

/* a portrait with its caption (an old post's image with its source) */
.media-row__figure {
    display: grid;
    gap: 6px;
    width: 88px;
    flex: none;
}

.media-row__figure figcaption {
    color: var(--text-3);
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.callout {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 24px 32px;
    border-radius: 20px;
    background: var(--accent-tint);
}

.callout img {
    width: 82px;
    flex: none;
}

.callout p {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.figure-quote {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    align-items: center;
    gap: 36px;
}

.figure-quote img {
    width: 100%;
    aspect-ratio: 380 / 253;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 16px 36px var(--shadow-soft);
}

.pull-quote {
    display: grid;
    gap: 12px;
}

.pull-quote .icon {
    color: var(--accent-solid);
    font-size: 36px;
}

.pull-quote p {
    font-family: var(--font-display);
    font-size: clamp(21px, 2.2vw, 26px);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.25;
}

@media (max-width: 700px) {
    .figure-quote {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .media-row {
        align-items: flex-start;
        gap: 16px;
    }

    .media-row img {
        width: 64px;
        height: 80px;
    }

    .media-row__figure {
        width: 64px;
    }

    .callout {
        gap: 18px;
        padding: 20px;
    }

    .callout img {
        width: 60px;
    }
}

.figure {
    display: grid;
    gap: 12px;
}

.figure img {
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.figure figcaption,
.source-note {
    color: var(--text-3);
    font-size: 14px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.share .btn {
    padding: 12px 22px 12px 18px;
}

.share .btn .icon {
    font-size: 20px;
}

/* sidebar */

.toc {
    display: grid;
    gap: 6px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
}

.toc a {
    display: flex;
    gap: 14px;
    padding-top: 12px;
    color: var(--text-2);
    font-weight: 500;
    line-height: 1.35;
}

.toc a span:first-child {
    color: var(--text-3);
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.toc a.is-active,
.toc a:hover {
    color: var(--text);
    font-weight: 700;
}

.toc a.is-active span:first-child {
    color: var(--accent-2);
}

.promo {
    display: grid;
    justify-items: start;
    gap: 14px;
    padding: 24px;
    border-radius: 20px;
    background: var(--accent-tint);
}

.promo img {
    width: 82px;
}

.promo h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.15;
}

.promo p {
    color: var(--text-2);
    font-size: 15px;
}

.promo .btn {
    padding: 12px 24px 12px 18px;
}

.promo .btn .icon {
    font-size: 20px;
}

.latest {
    display: grid;
    gap: 16px;
    padding-top: 8px;
}

.latest h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
}

.latest a {
    display: flex;
    align-items: center;
    gap: 14px;
}

.latest img {
    width: 96px;
    height: 64px;
    flex: none;
    border-radius: 10px;
    object-fit: cover;
}

.latest strong {
    display: block;
    font-size: 16px;
    line-height: 1.25;
}

.latest a:hover strong {
    color: var(--accent);
}

.facts {
    padding: 8px 24px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
}

.facts div {
    display: grid;
    gap: 4px;
    padding-block: 16px;
}

.facts div + div {
    border-top: 1px solid var(--border);
}

.facts dt {
    color: var(--text-3);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.facts dd {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.videos {
    display: grid;
    gap: 14px;
}

.videos h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.videos ul {
    display: grid;
    gap: 8px;
}

.videos a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--surface-2);
}

.videos li:first-child a,
.videos a:hover {
    background: var(--accent-tint);
}

.videos .icon {
    color: var(--accent);
    font-size: 24px;
}

.videos strong {
    display: block;
    font-size: 16px;
    line-height: 1.25;
}

/* review */

.verdict {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 20px 50px var(--shadow-soft);
}

.verdict > img {
    width: 100px;
    flex: none;
}

.verdict__score {
    display: grid;
    gap: 14px;
    flex: 1;
}

.verdict__value {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.verdict__value strong {
    color: var(--text);
    font-family: var(--font-display);
    font-size: 76px;
    font-weight: 800;
    letter-spacing: -0.026em;
    line-height: 0.9;
}

.verdict__value span {
    padding-bottom: 6px;
    color: var(--text-3);
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
}

.meter {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 6px;
}

.meter i {
    height: 10px;
    border-radius: 99px;
    background: var(--surface-2);
}

.meter i.is-on {
    background: var(--cta);
}

.meter i.is-half {
    background: linear-gradient(90deg, var(--cta) 50%, var(--surface-2) 50%);
}

.verdict__score > p:last-child:not(.verdict__value) {
    color: var(--text-2);
    font-size: 17px;
    line-height: 1.55;
}

@media (max-width: 600px) {
    .verdict {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 24px;
    }

    .verdict > img {
        width: 72px;
    }
}

.reactions {
    display: grid;
    gap: 20px;
    padding-top: 12px;
}

.reactions__faces {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.reaction {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 18px 8px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: var(--surface-2);
    color: var(--text-2);
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.reaction img {
    width: 56px;
    height: 75px;
    object-fit: contain;
}

.reaction:hover {
    transform: translateY(-2px);
    border-color: var(--border);
}

.reaction[aria-pressed="true"] {
    border-color: var(--accent-solid);
    background: var(--accent-tint);
    color: var(--accent);
    font-weight: 700;
}

.reactions__note {
    color: var(--text-3);
    font-size: 15px;
}

@media (max-width: 600px) {
    .reactions__faces {
        gap: 6px;
    }

    .reaction {
        padding: 12px 4px;
        font-size: 12px;
    }

    .reaction img {
        width: 40px;
        height: 54px;
    }
}

.sources {
    display: grid;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.sources h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
}

.sources ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sources a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px 9px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
}

.sources a .icon {
    color: var(--accent);
    font-size: 16px;
}

.sources a:hover {
    border-color: var(--accent-solid);
}

/* related */

.related {
    padding-block: 24px 96px;
}

.related .section-head {
    gap: 20px;
    margin-bottom: 32px;
}

/* listing pages */

.page-hero {
    display: grid;
    gap: 16px;
    padding-block: 32px 64px;
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.03;
}

.page-hero p:not(.eyebrow) {
    max-width: 720px;
    color: var(--text-2);
    font-size: clamp(17px, 1.6vw, 20px);
    line-height: 1.55;
}

.listing {
    display: grid;
    gap: 48px;
    padding-bottom: 96px;
}

.empty {
    padding: 48px;
    border: 1px dashed var(--border);
    border-radius: 20px;
    color: var(--text-2);
    text-align: center;
}

.pager {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* ---------- Film database (/filmy, /lide, /zdroje-dat) ---------- */

/* title page hero */

.post-hero--title h1 {
    font-size: clamp(36px, 4.4vw, 58px);
}

.post-hero--title .post-meta .chips {
    flex-wrap: wrap;
}

.title-names {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    margin: 0;
}

.title-names div {
    display: grid;
    gap: 2px;
}

.title-names dt {
    color: var(--text-3);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.title-names dd {
    margin: 0;
    color: var(--text);
    font-size: 18px;
    font-weight: 600;
}

.title-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    color: var(--text-2);
    font-size: 16px;
    font-weight: 600;
}

.title-facts li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.title-facts .icon {
    color: var(--accent);
    font-size: 20px;
}

.title-image {
    display: grid;
    gap: 10px;
}

.title-image figcaption {
    color: var(--text-3);
    font-size: 13px;
}

/* no licensed image: the mascot card */
.title-mascot {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 520 / 400;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background:
        radial-gradient(circle at 70% 30%, var(--accent-tint-2), transparent 60%),
        linear-gradient(160deg, var(--accent-tint), var(--surface));
    box-shadow: 0 28px 56px var(--shadow-poster);
}

.title-mascot img {
    position: relative;
    width: 38%;
    max-width: 190px;
    height: auto;
    filter: drop-shadow(0 18px 28px var(--shadow));
}

.title-mascot__name {
    position: absolute;
    right: 24px;
    bottom: 20px;
    left: 24px;
    overflow: hidden;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.title-mascot__year {
    position: absolute;
    top: 14px;
    right: 22px;
    color: var(--accent-solid);
    font-family: var(--font-display);
    font-size: clamp(48px, 6vw, 84px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    opacity: 0.55;
}

@media (max-width: 1000px) {
    .title-mascot,
    .title-image {
        order: -1;
    }

    .title-mascot {
        aspect-ratio: auto;
        min-height: 220px;
    }

    .title-mascot img {
        width: 120px;
    }
}

/* title page body */

.title-section {
    display: grid;
    gap: 20px;
}

.title-subhead {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
}

.title-empty {
    color: var(--text-3);
}

.attribution,
.title-sources {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-3);
    font-size: 14px;
    line-height: 1.5;
}

.attribution .icon,
.title-sources .icon {
    margin-top: 2px;
    color: var(--accent);
    font-size: 17px;
}

.attribution a,
.title-sources a,
.title-section .source-note a,
.title-results a,
.listing .source-note a,
.source-card a,
.source-text a,
.tv-source a {
    color: var(--accent);
    font-weight: 600;
}

.crew {
    display: grid;
    margin: 0;
    padding: 4px 24px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
}

.crew div {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 16px;
    padding-block: 14px;
}

.crew div + div {
    border-top: 1px solid var(--border);
}

.crew dt {
    padding-top: 2px;
    color: var(--text-3);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.crew dd {
    margin: 0;
    font-weight: 600;
    line-height: 1.5;
}

.crew a,
.cast a,
.filmography__name {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--accent-tint-2);
    text-underline-offset: 4px;
}

.crew a:hover,
.cast a:hover,
.filmography__name:hover {
    color: var(--accent);
}

.cast {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.cast li {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--surface-2);
}

.cast__avatar,
.person-hero__avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 50%;
    background: var(--accent-tint);
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
}

.cast__text {
    display: grid;
    min-width: 0;
}

.cast strong {
    font-weight: 700;
    overflow-wrap: anywhere;
}

.cast small {
    color: var(--text-2); /* --text-3 on the tile's --surface-2 is under 4.5:1 in light */
    font-size: 14px;
    overflow-wrap: anywhere;
}

.title-airings {
    display: grid;
}

.title-airings li {
    display: grid;
    grid-template-columns: 120px auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 16px;
    padding-block: 14px;
    border-top: 1px solid var(--border);
}

.title-airings time {
    display: grid;
    color: var(--text-2);
    font-size: 14px;
}

.title-airings time strong {
    color: var(--text);
    font-family: var(--font-display);
    font-size: 18px;
}

.title-airings__name {
    display: grid;
    font-weight: 700;
}

.title-airings__name small {
    color: var(--text-3);
    font-size: 14px;
    font-weight: 400;
}

.title-airings .chip {
    justify-self: start;
}

.title-airings .tv-channel__link {
    margin-top: 0;
}

/* on a phone the scores come first, right under the hero; the links and the sources last */
@media (max-width: 1000px) {
    .post-body--title {
        display: flex;
        flex-direction: column;
    }

    .post-body--title .post-sidebar,
    .post-body--title .post-sidebar__sticky {
        display: contents;
    }

    .post-body--title .title-scores {
        order: -1;
    }
}

@media (max-width: 600px) {
    .crew div {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }

    .cast {
        grid-template-columns: minmax(0, 1fr);
    }

    .title-airings li {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .title-airings__name {
        grid-column: 1 / -1;
    }
}

/* the sidebar: scores, the vote, links */

.title-scores {
    display: grid;
    padding: 4px 24px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 20px 50px var(--shadow-soft);
}

.title-score {
    display: grid;
    gap: 10px;
    padding-block: 20px;
}

.title-score + .title-score {
    border-top: 1px solid var(--border);
}

.title-score__value {
    display: flex;
    align-items: flex-end;
    gap: 6px;
}

.title-score__value strong {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 0.9;
}

.title-score__value span {
    padding-bottom: 4px;
    color: var(--text-3);
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
}

.title-score__value--small strong {
    font-size: 36px;
}

.title-vote:not(.has-votes) .title-score__value {
    display: none;
}

.vote-scale {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    margin-top: 4px;
}

.vote-scale button {
    min-height: 40px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--text-2);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.vote-scale button:hover {
    transform: translateY(-1px);
    border-color: var(--accent-solid);
    color: var(--text);
}

.vote-scale button.is-filled {
    background: var(--accent-tint-2);
    color: var(--text);
}

.vote-scale button[aria-pressed="true"] {
    background: var(--cta);
    color: var(--on-cta);
    box-shadow: 0 8px 18px var(--cta-glow);
}

.title-vote__mine {
    color: var(--text-3);
    font-size: 14px;
}

.out-links {
    display: grid;
    gap: 12px;
}

.out-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.out-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px 8px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.out-links a .icon {
    color: var(--accent);
    font-size: 14px;
}

.out-links a:hover {
    border-color: var(--accent-solid);
}

/* the post's sidebar: the film it is about */

.title-card {
    display: grid;
    gap: 16px;
    padding: 22px 24px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
}

.title-card__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.title-card__head > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.title-card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.15;
}

.title-card h3 a:hover {
    color: var(--accent);
}

.facts--flat {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
}

.title-card .facts--flat {
    border-top: 1px solid var(--border);
}

.title-card .facts--flat div {
    padding-block: 12px;
}

.title-card__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* the list /filmy */

.title-search {
    display: flex;
    gap: 10px;
    max-width: 640px;
    margin-top: 8px;
    padding: 6px 6px 6px 20px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
}

.title-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: none;
    color: var(--text);
    font: inherit;
    font-size: 16px;
}

.title-search input:focus {
    outline: none;
}

.title-search:focus-within {
    border-color: var(--accent-solid);
}

.title-results {
    color: var(--text-2);
}

.title-tile {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.title-tile:hover {
    transform: translateY(-2px);
    border-color: var(--accent-solid);
}

.title-tile__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.title-tile__text {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.title-tile h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.title-tile:hover h3 {
    color: var(--accent);
}

.title-tile__genres {
    margin-top: auto;
    color: var(--text-2);
    font-size: 14px;
}

@media (max-width: 1000px) {
    .title-grid {
        row-gap: 24px;
    }
}

@media (max-width: 680px) {
    .title-grid {
        row-gap: 14px;
    }

    .title-tile {
        gap: 12px;
        padding: 18px;
    }
}

/* a person */

.person-hero {
    justify-items: start;
}

.person-hero__row {
    display: flex;
    align-items: center;
    gap: 28px;
}

.person-hero__avatar {
    width: 112px;
    height: 112px;
    font-size: 40px;
    box-shadow: 0 20px 40px var(--shadow-soft);
}

.person-hero__text {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.person-hero__alt {
    color: var(--text-3);
    font-size: 18px;
}

.filmography {
    display: grid;
}

.filmography li {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 16px;
    padding-block: 16px;
    border-top: 1px solid var(--border);
}

.filmography__year {
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.filmography li > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.filmography__name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {
    .person-hero__row {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .person-hero__avatar {
        width: 80px;
        height: 80px;
        font-size: 30px;
    }
}

/* the sources page */

.source-card {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
}

.source-card h2 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.source-card p,
.source-text p {
    color: var(--text-2);
    line-height: 1.6;
}

.source-card__notice {
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--accent-tint);
    color: var(--text) !important;
    font-size: 15px;
    font-weight: 600;
}

.source-text {
    display: grid;
    gap: 16px;
    max-width: 820px;
}

.source-text code {
    padding: 1px 6px;
    border-radius: 6px;
    background: var(--surface-2);
    font-size: 0.9em;
}

/* TV: ČT's page beside our title page, the credit */

.tv-card__ct {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    color: var(--text-3);
    font-size: 13px;
    font-weight: 600;
}

.tv-card__ct:hover {
    color: var(--accent);
}

.tv-card h3 a:hover {
    color: var(--accent);
}

.tv-channel__links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
}

.tv-source {
    margin-top: 20px;
}

/* ---------- Quiz ---------- */

.quiz-section {
    padding-bottom: 72px;
}

.quiz-card {
    display: grid;
    gap: 24px;
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 32px 80px var(--shadow);
}

.quiz-card[hidden] {
    display: none;
}

@media (max-width: 700px) {
    .quiz-card {
        padding: 20px;
        border-radius: 20px;
    }
}

.quiz-intro {
    display: flex;
    align-items: center;
    gap: 32px;
}

.quiz-intro > img {
    width: 132px;
    flex: none;
}

.quiz-intro__text {
    display: grid;
    justify-items: start;
    gap: 14px;
}

.quiz-intro h2 {
    font-family: var(--font-display);
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.15;
}

.quiz-intro p {
    color: var(--text-2);
    font-size: 17px;
    line-height: 1.55;
}

.quiz-intro .challenge {
    padding: 10px 16px;
    border-radius: 14px;
    background: var(--accent-tint);
    color: var(--accent);
    font-weight: 700;
}

@media (max-width: 600px) {
    .quiz-intro {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .quiz-intro > img {
        width: 88px;
    }
}

.quiz-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 16px;
    font-weight: 700;
}

.quiz-status__answered {
    color: var(--text-3);
    font-size: 15px;
    font-weight: 400;
}

.timer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px 8px 12px;
    border-radius: 999px;
    background: var(--accent-tint);
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.timer .icon {
    font-size: 20px;
}

.timer.is-low {
    background: var(--bad-bg);
    color: var(--bad-ink);
}

.quiz-progress {
    display: grid;
    gap: 8px;
}

.quiz-steps {
    display: flex;
    gap: 6px;
}

.quiz-steps i {
    flex: 1;
    height: 6px;
    border-radius: 99px;
    background: var(--surface-2);
}

.quiz-steps i.is-done {
    background: var(--accent-solid);
}

.quiz-steps i.is-current {
    background: var(--cta);
}

.quiz-time {
    height: 4px;
    border-radius: 99px;
    background: var(--surface-2);
    overflow: hidden;
}

.quiz-time i {
    display: block;
    height: 100%;
    width: 100%;
    border-radius: 99px;
    background: var(--accent-solid);
    transform-origin: left;
}

.question {
    display: grid;
    grid-template-columns: minmax(0, 470fr) minmax(0, 600fr);
    gap: 48px;
    padding-top: 8px;
}

.question--noimage {
    grid-template-columns: minmax(0, 1fr);
}

.question__image {
    width: 100%;
    aspect-ratio: 470 / 352;
    border-radius: 16px;
    object-fit: cover;
}

.question__body {
    display: grid;
    align-content: start;
    gap: 22px;
}

.question h2 {
    font-family: var(--font-display);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 700;
    letter-spacing: -0.022em;
    line-height: 1.12;
}

@media (max-width: 860px) {
    .question {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .question__image {
        aspect-ratio: 16 / 9;
    }
}

.options {
    display: grid;
    gap: 12px;
}

.options--duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.option {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 13px 20px 13px 14px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: var(--surface-2);
    font-size: 19px;
    font-weight: 600;
    text-align: left;
    transition: border-color 0.15s ease, background 0.15s ease, opacity 0.2s ease;
}

.option__letter {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: 10px;
    background: var(--surface);
    color: var(--accent-2);
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
}

.option__text {
    flex: 1;
}

.option > .icon {
    display: none;
    font-size: 22px;
}

.option:not([disabled]):hover {
    border-color: var(--accent-solid);
}

.option:not([disabled]):hover > .icon--hover {
    display: block;
    color: var(--accent);
    font-size: 20px;
}

.option.is-selected {
    border-color: var(--accent-solid);
    background: var(--accent-tint);
}

.option.is-selected .option__letter {
    background: var(--purple);
    color: #fff;
}

.option.is-correct {
    border-color: var(--ok-ink);
    background: var(--ok-bg);
    opacity: 1;
}

.option.is-correct .option__letter {
    background: var(--ok-ink);
    color: var(--ok-bg);
}

.option.is-correct > .icon--ok {
    display: block;
    color: var(--ok-ink);
}

.option.is-wrong {
    border-color: var(--bad-ink);
    background: var(--bad-bg);
    opacity: 1;
}

.option.is-wrong .option__letter {
    background: var(--bad-ink);
    color: var(--bad-bg);
}

.option.is-wrong > .icon--bad {
    display: block;
    color: var(--bad-ink);
}

.option.is-dim {
    opacity: 0.5;
}

.option[disabled] {
    cursor: default;
}

.options--duo .option {
    font-size: 17px;
    padding: 11px 18px 11px 12px;
}

.options--duo .option__letter {
    width: 34px;
    height: 34px;
    font-size: 16px;
}

@media (max-width: 600px) {
    .option {
        font-size: 17px;
        gap: 12px;
    }

    .options--duo {
        grid-template-columns: minmax(0, 1fr);
    }
}

.skip {
    justify-self: start;
    color: var(--text-3);
    font-size: 16px;
}

.skip:hover {
    color: var(--text);
}

.hint {
    display: inline-flex;
    justify-self: start;
    align-items: center;
    gap: 8px;
    padding: 7px 14px 7px 10px;
    border-radius: 999px;
    background: var(--accent-tint);
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
}

.hint .icon {
    font-size: 18px;
}

.choices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.choice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--surface-2);
    font-size: 16px;
    font-weight: 600;
}

.choice .icon {
    display: none;
    font-size: 16px;
}

.choice[aria-pressed="true"] {
    padding-left: 12px;
    background: var(--purple);
    color: #fff;
}

.choice[aria-pressed="true"] .icon {
    display: block;
}

.choice.is-correct {
    border-color: var(--ok-ink);
    background: var(--ok-bg);
    color: var(--text);
}

.choice.is-wrong {
    border-color: var(--bad-ink);
    background: var(--bad-bg);
    color: var(--text);
}

.choice.is-missed {
    border-color: var(--ok-ink);
    border-style: dashed;
}

.question-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--text-2);
    font-size: 15px;
}

.sortable {
    display: grid;
    gap: 8px;
}

.sortable li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 9px 16px 9px 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--surface-2);
    font-size: 17px;
    font-weight: 600;
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.sortable__no {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: none;
    border-radius: 9px;
    background: var(--surface);
    color: var(--accent-2);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
}

.sortable__text {
    flex: 1;
}

.sortable li > .icon {
    color: var(--text-3);
    font-size: 20px;
}

.sortable__move {
    display: flex;
    gap: 2px;
}

.sortable__move button {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: var(--text-3);
    font-size: 16px;
}

.sortable__move button:hover {
    background: var(--surface);
    color: var(--text);
}

.sortable li.is-dragging {
    border-color: var(--accent-solid);
    background: var(--accent-tint);
    box-shadow: 0 12px 28px var(--shadow);
    cursor: grabbing;
}

.sortable li.is-dragging .sortable__no {
    background: var(--purple);
    color: #fff;
}

.sortable li.is-correct {
    border-color: var(--ok-ink);
    background: var(--ok-bg);
}

.sortable li.is-wrong {
    border-color: var(--bad-ink);
    background: var(--bad-bg);
}

.pictures {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.picture {
    display: grid;
    border: 1px solid transparent;
    border-radius: 14px;
    overflow: hidden;
    background: var(--surface-2);
    text-align: left;
}

.picture img {
    width: 100%;
    aspect-ratio: 130 / 160;
    object-fit: cover;
    background: #fff;
}

.picture__label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.picture .option__letter {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    font-size: 13px;
}

.picture:not([disabled]):hover,
.picture.is-selected {
    border-color: var(--accent-solid);
}

.picture.is-selected {
    background: var(--accent-tint);
}

.picture.is-selected .option__letter {
    background: var(--purple);
    color: #fff;
}

.picture.is-correct {
    border-color: var(--ok-ink);
    background: var(--ok-bg);
}

.picture.is-wrong {
    border-color: var(--bad-ink);
    background: var(--bad-bg);
}

.picture.is-dim {
    opacity: 0.5;
}

@media (max-width: 600px) {
    .pictures {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.quote-box {
    display: grid;
    gap: 10px;
    padding: 28px;
    border-radius: 18px;
    background: var(--accent-tint);
}

.quote-box .icon {
    color: var(--accent-solid);
    font-size: 36px;
}

.quote-box p {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    letter-spacing: -0.022em;
    line-height: 1.12;
}

.statement {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px;
    border-radius: 18px;
    background: var(--surface-2);
}

.statement img {
    width: 84px;
    flex: none;
}

.statement__text {
    display: grid;
    gap: 8px;
}

.statement p {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 700;
    letter-spacing: -0.017em;
    line-height: 1.15;
}

.duel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.duel button {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 8px;
    min-height: 132px;
    border: 1px solid transparent;
    border-radius: 18px;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    transition: transform 0.15s ease, opacity 0.2s ease;
}

.duel button .icon {
    font-size: 40px;
}

.duel .duel__false {
    background: var(--bad-bg);
    border-color: var(--bad-ink);
    color: var(--bad-ink);
}

.duel .duel__true {
    background: var(--ok-bg);
    border-color: var(--ok-ink);
    color: var(--ok-ink);
}

.duel button:not([disabled]):hover {
    transform: translateY(-2px);
}

.duel button.is-dim {
    opacity: 0.35;
}

.duel button.is-picked {
    box-shadow: 0 0 0 3px var(--text) inset;
}

.explanation {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--surface-2);
    font-size: 16px;
}

.explanation .icon {
    color: var(--star);
    font-size: 22px;
}

/* result */

.result {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    align-items: center;
    gap: 56px;
}

.result__persona {
    display: flex;
    align-items: center;
    gap: 32px;
}

.result__persona > img {
    width: 150px;
    flex: none;
}

.result__text {
    display: grid;
    justify-items: start;
    gap: 12px;
}

.result__title {
    font-family: var(--font-display);
    font-size: clamp(40px, 5vw, 56px);
    font-weight: 800;
    letter-spacing: -0.029em;
    line-height: 1;
}

.result__text > p:not(.eyebrow):not(.result__score):not(.challenge) {
    color: var(--text-2);
    font-size: 18px;
}

.result__score {
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px 10px 16px;
    border-radius: 16px;
    background: var(--accent-tint-2);
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.017em;
}

.result__score .icon {
    color: var(--star);
    font-size: 24px;
}

.result__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding-top: 8px;
}

.distribution {
    display: grid;
    gap: 12px;
}

.distribution h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.017em;
}

.distribution h3 .icon {
    font-size: 24px;
}

.distribution > p {
    color: var(--text-2);
}

.chart {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    height: 176px;
    padding-top: 12px;
}

.chart div {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.chart i {
    width: 100%;
    min-height: 6px;
    border-radius: 8px;
    background: var(--accent-tint-2);
    transition: height 0.6s cubic-bezier(0.22, 0.8, 0.3, 1);
}

.chart span {
    color: var(--text-3);
    font-size: 14px;
    font-weight: 500;
}

.chart .is-mine i {
    background: var(--cta);
}

.chart .is-mine span {
    color: var(--text);
    font-weight: 700;
}

@media (max-width: 1100px) {
    .result {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .result__persona {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .result__persona > img {
        width: 96px;
    }
}

.after {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.after .quiz-card {
    padding: 32px;
    align-content: start;
}

.after__title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.after__title .icon {
    font-size: 26px;
}

@media (max-width: 1000px) {
    .after {
        grid-template-columns: minmax(0, 1fr);
    }
}

.answers {
    display: grid;
    gap: 12px;
}

.answers li {
    display: flex;
    gap: 14px;
    padding: 14px 18px 14px 14px;
    border-radius: 14px;
    background: var(--ok-bg);
}

.answers li.is-wrong {
    background: var(--bad-bg);
}

.answers li > .icon {
    color: var(--ok-ink);
    font-size: 24px;
}

.answers li.is-wrong > .icon {
    color: var(--bad-ink);
}

.answers strong {
    display: block;
    font-size: 17px;
    line-height: 1.3;
}

.answers p {
    font-size: 15px;
}

.answers p + p {
    color: var(--text-2);
}

.challenge-box {
    display: grid;
    gap: 16px;
}

.challenge-box > p {
    color: var(--text-2);
    font-size: 17px;
}

.link-field {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 8px 18px;
    border-radius: 16px;
    background: var(--surface-2);
}

.link-field input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    outline: none;
}

.share-via {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 28px;
    padding-top: 4px;
}

.share-via a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 16px;
    font-weight: 700;
}

.share-via .icon {
    font-size: 24px;
}

.story-card {
    display: flex;
    align-items: center;
    gap: 28px;
}

.story-image {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 300px;
    height: 300px;
    flex: none;
    padding: 24px;
    border-radius: 20px;
    background: var(--accent-tint);
    box-shadow: 0 16px 36px #00000059;
}

.story-image__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-brand);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.story-image__logo img {
    width: 25px;
}

.story-image__logo span {
    color: var(--logo-accent);
}

.story-image__result {
    display: flex;
    align-items: flex-end;
    gap: 14px;
}

.story-image__result img {
    width: 86px;
}

.story-image__result strong {
    display: block;
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.story-image__result em {
    display: block;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
}

.story-image__result .eyebrow {
    font-size: 11px;
}

.story-image > p {
    color: var(--text-2);
    font-size: 14px;
}

.story-card__text {
    display: grid;
    justify-items: start;
    gap: 12px;
}

.story-card__text p {
    color: var(--text-2);
}

@media (max-width: 600px) {
    .story-card {
        flex-direction: column;
        align-items: stretch;
    }

    .story-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }
}

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    z-index: 100;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--text);
    color: var(--bg);
    font-weight: 700;
    transform: translate(-50%, 20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-shown {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
