/* ==========================================================================
   Filmecheck.cz — cinematic dark theme, v2
   Single stylesheet, no build step (autonomous-operation friendly).
   ========================================================================== */

:root {
    --bg: #0a0d13;
    --bg-raised: #10151d;
    --bg-card: #161c26;
    --bg-card-hover: #1c2431;
    --border: #232c3a;
    --border-strong: #32405a;
    --text: #eef2f7;
    --text-muted: #96a2b4;
    --text-faint: #5d6a7c;
    --accent: #ff3d67;
    --accent-hover: #ff6287;
    --accent-deep: #d92c53;
    --accent-soft: rgba(255, 61, 103, 0.12);
    --accent-glow: rgba(255, 61, 103, 0.35);
    /* ČSFD-style rating semantics familiar to Czech users: red = good,
       blue = average, grey = poor. */
    --rating-good: #e5393e;
    --rating-mid: #6591b5;
    --rating-low: #59636f;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.35);
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Sora", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: #fff; }

a { color: var(--text); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-hover); }

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

/* height:auto keeps the intrinsic ratio when CSS resizes the width — without
   it the height="" attribute wins and images stretch. */
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: var(--font-display); }

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Thin custom scrollbar so the dark theme carries through the chrome. */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a3444; border-radius: 8px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #384456; }

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 13, 19, 0.85);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header .container {
    display: flex;
    align-items: center;
    gap: 26px;
    height: 68px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.03em;
    white-space: nowrap;
}
.logo:hover { color: var(--text); }
.logo .logo-mark {
    width: 30px;
    height: 30px;
    flex: none;
    filter: drop-shadow(0 2px 8px var(--accent-glow));
}
.logo .tld { color: var(--accent); }

.main-nav { display: flex; gap: 2px; }
.main-nav a {
    position: relative;
    padding: 9px 15px;
    border-radius: 10px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14.5px;
    letter-spacing: 0.01em;
}
.main-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.main-nav a.active { color: var(--text); }
.main-nav a.active::after {
    content: "";
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
}

.search-form {
    margin-left: auto;
    position: relative;
    display: flex;
    flex: 0 1 340px;
}
.search-form .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    color: var(--text-faint);
    pointer-events: none;
}
.search-form input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    padding: 9px 18px 9px 42px;
    font-size: 14.5px;
    font-family: var(--font);
    outline: none;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.search-form input::placeholder { color: var(--text-faint); }
.search-form input:focus {
    border-color: var(--accent);
    background: var(--bg-raised);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

/* CSS-only mobile menu */
.nav-toggle-input { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0 9px;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    flex: none;
}
.nav-toggle span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--text-muted);
    transition: transform 0.2s, opacity 0.2s;
}

/* --------------------------------------------------------------------------
   Hero (homepage)
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    padding: 96px 0 84px;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

/* Tilted poster wall behind the headline — pure CSS over the film data
   already on the page, no extra requests beyond the poster thumbs. */
.hero-wall {
    position: absolute;
    inset: -12% -6%;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
    transform: rotate(-6deg) translateY(-4%);
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
}
.hero-wall img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 10px;
}
.hero-wall img:nth-child(odd) { transform: translateY(26px); }
.hero-veil {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 75% 90% at 50% 40%, rgba(10, 13, 19, 0.4) 0%, rgba(10, 13, 19, 0.88) 62%, var(--bg) 100%),
        linear-gradient(180deg, rgba(10, 13, 19, 0.7), rgba(10, 13, 19, 0.25) 35%, var(--bg) 96%);
}

.hero .container { position: relative; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 6px 15px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.hero-eyebrow .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.hero h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5.4vw, 58px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.08;
}
.hero h1 em {
    font-style: normal;
    background: linear-gradient(100deg, var(--accent) 10%, #ff8a5c 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    margin: 0 auto 30px;
    max-width: 620px;
    color: var(--text-muted);
    font-size: 17.5px;
}

.hero-search {
    position: relative;
    max-width: 560px;
    margin: 0 auto 22px;
    display: flex;
}
.hero-search .search-icon {
    position: absolute;
    left: 21px;
    top: 50%;
    width: 19px;
    height: 19px;
    transform: translateY(-50%);
    color: var(--text-faint);
    pointer-events: none;
}
.hero-search input {
    width: 100%;
    background: rgba(16, 21, 29, 0.9);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    padding: 16px 150px 16px 54px;
    font-size: 16.5px;
    font-family: var(--font);
    outline: none;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.hero-search input::placeholder { color: var(--text-faint); }
.hero-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-sm); }
.hero-search button {
    position: absolute;
    right: 7px;
    top: 7px;
    bottom: 7px;
    padding: 0 26px;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}
.hero-search button:hover { background: var(--accent-hover); }

.hero-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.hero-links a {
    display: inline-block;
    padding: 7px 16px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.15s;
}
.hero-links a:hover {
    border-color: var(--accent);
    color: var(--text);
    background: var(--accent-soft);
    transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Sections & film grid
   -------------------------------------------------------------------------- */

.section { padding: 46px 0 10px; }

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}
.section-head h2 {
    position: relative;
    margin: 0;
    padding-left: 16px;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.025em;
}
.section-head h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.18em;
    bottom: 0.18em;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--accent), var(--accent-deep));
    box-shadow: 0 0 12px var(--accent-glow);
}
.section-head a {
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}
.section-head a:hover { color: var(--accent-hover); }
.section-head .hint { white-space: nowrap; }

.film-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
    gap: 26px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.film-card { position: relative; }
.film-card > a { display: block; }
.film-card .poster {
    display: block;
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.3, 1.2), box-shadow 0.22s, border-color 0.22s;
}
.film-card .poster::after {
    /* subtle sheen + bottom scrim so the badge always reads */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(200deg, rgba(255, 255, 255, 0.09) 0%, transparent 28%),
                linear-gradient(0deg, rgba(0, 0, 0, 0.45) 0%, transparent 32%);
    opacity: 0;
    transition: opacity 0.22s;
}
.film-card:hover .poster {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow), 0 0 0 1px rgba(255, 61, 103, 0.35);
    border-color: transparent;
}
.film-card:hover .poster::after { opacity: 1; }
.film-card .poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.film-card:hover .poster img { transform: scale(1.05); }
.film-card .title {
    display: block;
    margin-top: 11px;
    font-weight: 600;
    font-size: 14.5px;
    line-height: 1.35;
    color: var(--text);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.15s;
}
.film-card:hover .title { color: var(--accent-hover); }
.film-card .meta {
    display: block;
    margin-top: 1px;
    color: var(--text-faint);
    font-size: 13px;
    font-weight: 500;
}
.film-card > a::after {
    /* whole card clickable */
    content: "";
    position: absolute;
    inset: 0;
}

/* Rating badge */
.rating-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 4px 9px;
    border-radius: 9px;
    font-weight: 800;
    font-size: 13.5px;
    color: #fff;
    line-height: 1.4;
    white-space: nowrap;
    letter-spacing: 0.01em;
}
.rating-badge.good { background: var(--rating-good); }
.rating-badge.mid { background: var(--rating-mid); }
.rating-badge.low { background: var(--rating-low); }
.film-card .rating-badge {
    position: absolute;
    top: 9px;
    right: 9px;
    z-index: 1;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

/* --------------------------------------------------------------------------
   Film detail
   -------------------------------------------------------------------------- */

.breadcrumbs {
    padding: 20px 0 0;
    font-size: 13.5px;
    color: var(--text-faint);
    position: relative;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent-hover); }
.breadcrumbs .sep { margin: 0 8px; color: var(--text-faint); opacity: 0.7; }

/* Full-bleed blurred-poster backdrop behind the detail header. Blur hides
   the low-res legacy thumbs while giving each film its own color mood. */
.film-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}
.film-hero .backdrop {
    position: absolute;
    inset: -40px;
    background-size: cover;
    background-position: center 20%;
    filter: blur(42px) saturate(1.5) brightness(0.75);
    transform: scale(1.15);
    opacity: 0.55;
}
.film-hero .backdrop-veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 13, 19, 0.82) 0%, rgba(10, 13, 19, 0.55) 40%, var(--bg) 100%),
        radial-gradient(ellipse 60% 100% at 20% 0%, rgba(10, 13, 19, 0.3), transparent 70%);
}
.film-hero .container { position: relative; }

.film-detail {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 44px;
    padding: 32px 0 44px;
    align-items: stretch;
}

/* Right column is a flex stack; the info panel sinks to the bottom so both
   columns close on the same line — the poster defines the hero's height. */
.film-detail .detail-col { display: flex; flex-direction: column; align-items: flex-start; }
.film-detail .detail-col .info-table { margin-top: auto; padding-top: 18px; width: 100%; }

.film-detail .poster-col { height: 100%; }
.film-detail .poster-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow);
}

.film-detail h1 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}
.film-detail h1 .year { color: var(--text-muted); font-weight: 600; }

.film-detail .watch-intent {
    margin: 0 0 14px;
    color: var(--text-muted);
    font-size: 16px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}
.film-detail .chips { margin-bottom: 18px; }
.chips a {
    display: inline-block;
    padding: 6px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 600;
    backdrop-filter: blur(6px);
    transition: all 0.15s;
}
.chips a:hover { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }

/* TMDB-style score ring, ČSFD colors */
.score-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    /* Spans the detail column, so the right-aligned watch button closes on
       the same line as the info box and the container edge. */
    align-self: stretch;
    flex-wrap: wrap;
}
.score-row .btn-watch {
    margin-left: auto;
    padding: 12px 22px;
    font-size: 15.5px;
}
@media (max-width: 640px) {
    .score-row .btn-watch { margin-left: 0; }
}
.score-ring { position: relative; width: 72px; height: 72px; flex: none; }
.score-ring svg { width: 72px; height: 72px; transform: rotate(-90deg); display: block; }
.score-ring .track { stroke: rgba(255, 255, 255, 0.12); }
.score-ring .good { stroke: var(--rating-good); }
.score-ring .mid { stroke: var(--rating-mid); }
.score-ring .low { stroke: var(--rating-low); }
.score-ring .value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.02em;
}
.score-ring .value small { font-size: 10px; font-weight: 700; color: var(--text-muted); margin-top: 3px; }
.score-row .label { line-height: 1.4; }
.score-row .label strong { display: block; font-size: 15px; }
.score-row .label .count { color: var(--text-muted); font-size: 13.5px; }

.btn-watch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: #fff;
    font-weight: 700;
    font-size: 16.5px;
    padding: 14px 28px;
    border-radius: 12px;
    transition: box-shadow 0.15s, transform 0.1s, filter 0.15s;
    box-shadow: 0 8px 28px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-watch:hover {
    color: #fff;
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 12px 34px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-watch svg { width: 18px; height: 18px; flex: none; }
.btn-watch .ext { font-weight: 500; opacity: 0.8; font-size: 13.5px; }

.info-table {
    margin: 28px 0 0;
    padding: 20px 24px;
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 9px 26px;
    font-size: 15px;
    background: rgba(16, 21, 29, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    backdrop-filter: blur(8px);
}
.info-table dt {
    color: var(--text-faint);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    padding-top: 2px;
}
.info-table dd { margin: 0; color: var(--text); }
.info-table dd a { color: var(--text-muted); border-bottom: 1px dotted var(--text-faint); }
.info-table dd .more-people { color: var(--text-faint); }
.info-table dd a:hover { color: var(--accent-hover); border-color: var(--accent); }

.film-description {
    padding: 34px 0 8px;
}
.film-description p { max-width: 75ch; }
.film-description h2 {
    position: relative;
    padding-left: 16px;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}
.film-description h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.18em;
    bottom: 0.18em;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--accent), var(--accent-deep));
}
.film-description p {
    color: var(--text-muted);
    font-size: 16.5px;
    line-height: 1.8;
    margin: 0 0 14px;
}

.film-faq {
    padding: 34px 0 8px;
}
.film-faq h2 {
    position: relative;
    padding-left: 16px;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
}
.film-faq h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.18em;
    bottom: 0.18em;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--accent), var(--accent-deep));
}
.film-faq dl {
    margin: 0;
    display: grid;
    gap: 12px;
    max-width: 82ch;
}
.film-faq .faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
}
.film-faq dt {
    font-weight: 700;
    margin: 0 0 6px;
}
.film-faq dd {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Listing pages & pagination
   -------------------------------------------------------------------------- */

.page-head { padding: 42px 0 4px; }
.page-head h1 {
    margin: 0 0 8px;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 800;
    letter-spacing: -0.03em;
}
.page-head h1 em {
    font-style: normal;
    background: linear-gradient(100deg, var(--accent) 10%, #ff8a5c 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.page-head p { margin: 0; color: var(--text-muted); font-size: 16.5px; }

/* ---- Genre tiles (žánry index) ------------------------------------------
   Poster-collage cards: each genre shows its three most-rated posters fanned
   behind a per-genre color wash (--tile-hue set inline from the name). */
.genre-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    padding: 28px 0 44px;
    list-style: none;
    margin: 0;
}
.genre-tiles a {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background:
        linear-gradient(155deg,
            hsl(var(--tile-hue) 45% 16%) 0%,
            hsl(var(--tile-hue) 55% 9%) 60%,
            var(--bg-card) 100%);
    transition: transform 0.2s cubic-bezier(0.2, 0.7, 0.3, 1.2), border-color 0.2s, box-shadow 0.2s;
}
.genre-tiles a:hover {
    transform: translateY(-4px);
    border-color: hsl(var(--tile-hue) 70% 55% / 0.55);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), 0 0 0 1px hsl(var(--tile-hue) 70% 55% / 0.25);
}
.tile-posters {
    position: absolute;
    inset: 0;
    display: block;
}
.tile-posters img {
    position: absolute;
    width: 34%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
    transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.3, 1.2);
}
/* Fan of three: middle up front, sides tucked and tilted. */
.tile-posters img:nth-child(1) { right: 26%; top: 12%; transform: rotate(3deg); z-index: 2; }
.tile-posters img:nth-child(2) { right: 6%; top: 22%; transform: rotate(10deg); z-index: 1; }
.tile-posters img:nth-child(3) { right: 45%; top: 26%; transform: rotate(-8deg); opacity: 0.9; }
.genre-tiles a:hover .tile-posters img:nth-child(1) { transform: rotate(1deg) translateY(-7px) scale(1.04); }
.genre-tiles a:hover .tile-posters img:nth-child(2) { transform: rotate(13deg) translateY(-3px); }
.genre-tiles a:hover .tile-posters img:nth-child(3) { transform: rotate(-11deg) translateY(-3px); }
.tile-letter {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-display);
    font-size: 120px;
    font-weight: 800;
    color: hsl(var(--tile-hue) 60% 60% / 0.18);
    line-height: 1;
    user-select: none;
}
.tile-veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, hsl(var(--tile-hue) 50% 7% / 0.92) 0%, hsl(var(--tile-hue) 50% 7% / 0.55) 45%, transparent 75%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, transparent 45%);
}
.tile-label {
    position: absolute;
    left: 18px;
    bottom: 15px;
    right: 14px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.tile-label strong {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.02em;
    color: var(--text);
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}
.tile-label .count {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
}
.genre-tiles a::after {
    content: "→";
    position: absolute;
    right: 16px;
    bottom: 14px;
    z-index: 3;
    color: hsl(var(--tile-hue) 80% 70%);
    font-size: 18px;
    font-weight: 700;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.2s, transform 0.2s;
}
.genre-tiles a:hover::after { opacity: 1; transform: translateX(0); }
@media (max-width: 640px) {
    .genre-tiles { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
    .tile-label strong { font-size: 19px; }
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 7px;
    padding: 38px 0 12px;
    flex-wrap: wrap;
}
.pagination a,
.pagination span {
    min-width: 40px;
    padding: 8px 13px;
    text-align: center;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.15s;
}
.pagination a:hover {
    border-color: var(--accent);
    color: var(--text);
    background: var(--bg-card-hover);
    transform: translateY(-1px);
}
.pagination .current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px var(--accent-glow);
}
.pagination .disabled { opacity: 0.35; }

/* --------------------------------------------------------------------------
   Criteria search ("Najít film")
   -------------------------------------------------------------------------- */

.criteria-form {
    position: relative;
    background: linear-gradient(170deg, var(--bg-card), var(--bg-raised));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 32px 32px;
    margin: 28px 0 8px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.criteria-form::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #ff8a5c 60%, transparent);
}
.criteria-form fieldset {
    border: 0;
    padding: 0;
    margin: 0 0 26px;
}
.criteria-form legend {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.01em;
    padding: 0;
    margin-bottom: 14px;
}
.hint { color: var(--text-faint); font-weight: 400; font-size: 13.5px; font-family: var(--font); }

.genre-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.genre-picker label { cursor: pointer; }
.genre-picker input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.genre-picker span {
    display: inline-block;
    padding: 7px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.13s;
    user-select: none;
}
.genre-picker span:hover { border-color: var(--accent); color: var(--text); }
.genre-picker input:checked + span {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 3px 12px var(--accent-glow);
}
.genre-picker input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.param-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px 30px;
}
.param-grid label {
    display: block;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
}
.param-grid output {
    color: var(--text);
    font-weight: 800;
    font-family: var(--font-display);
}

.param-grid input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    margin-top: 14px;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent) var(--fill, 50%), #2a3444 var(--fill, 50%));
    outline: none;
    cursor: pointer;
}
.param-grid input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--accent);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.12s;
}
.param-grid input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
.param-grid input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--accent);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.param-grid input[type="range"]::-moz-range-track {
    height: 6px;
    border-radius: 6px;
    background: #2a3444;
}
.param-grid input[type="range"]::-moz-range-progress {
    height: 6px;
    border-radius: 6px;
    background: var(--accent);
}

.param-grid input[type="text"] {
    width: 100%;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    padding: 10px 15px;
    font-size: 15px;
    font-family: var(--font);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.param-grid input[type="text"]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.form-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.form-actions .btn-watch {
    border: 0;
    cursor: pointer;
    font-family: var(--font);
}
.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-family: var(--font);
    font-weight: 700;
    font-size: 15px;
    padding: 14px 26px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }

.form-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-soft);
    border: 1px solid rgba(255, 61, 103, 0.4);
    border-radius: 12px;
    padding: 13px 18px;
    color: var(--accent-hover);
    font-weight: 600;
    margin: 20px 0 0;
}

/* --------------------------------------------------------------------------
   Magazine
   -------------------------------------------------------------------------- */

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.article-card a {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    padding: 24px 26px;
    background: linear-gradient(160deg, var(--bg-card), var(--bg-raised));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.article-card a:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 61, 103, 0.45);
    box-shadow: var(--shadow-sm);
    color: var(--text);
}
.article-card .thumb {
    display: block;
    margin: -24px -26px 4px;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
    border-bottom: 1px solid var(--border);
}
.article-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.article-card a:hover .thumb img { transform: scale(1.04); }
.article-card time {
    color: var(--accent);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.article-card h2,
.article-card h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
}
.article-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.6;
    flex: 1;
}
.article-card .read-more {
    color: var(--accent);
    font-size: 13.5px;
    font-weight: 600;
}

.magazine-article {
    max-width: 760px;
    margin: 0 auto;
    padding: 30px 0 10px;
}
.article-head { margin-bottom: 30px; }
.article-head time {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.article-head h1 {
    margin: 0 0 16px;
    font-size: clamp(28px, 4.4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}
.article-head .perex {
    margin: 0;
    color: var(--text-muted);
    font-size: 19px;
    line-height: 1.65;
}

.article-image {
    margin: 0 0 30px;
}
.article-image img {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.prose {
    color: #c6cfda;
    font-size: 17px;
    line-height: 1.85;
}
.prose h2, .prose h3 {
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin: 36px 0 14px;
}
.prose h2 { font-size: 24px; font-weight: 800; }
.prose h3 { font-size: 19px; font-weight: 700; }
.prose p { margin: 0 0 18px; }
.prose a {
    color: var(--accent-hover);
    border-bottom: 1px dotted rgba(255, 98, 135, 0.5);
}
.prose a:hover { border-bottom-style: solid; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 26px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--text); }
.prose blockquote {
    margin: 24px 0;
    padding: 4px 0 4px 20px;
    border-left: 3px solid var(--accent);
    color: var(--text-muted);
    font-style: italic;
}
.prose hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 32px 0;
}

/* --------------------------------------------------------------------------
   Footer / 404 / empty states
   -------------------------------------------------------------------------- */

.site-footer {
    margin-top: 72px;
    border-top: 1px solid var(--border);
    background: var(--bg-raised);
    color: var(--text-faint);
    font-size: 14px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 36px;
    padding: 44px 0 36px;
}
.footer-brand .logo { font-size: 19px; margin-bottom: 12px; }
.footer-brand p {
    margin: 0;
    max-width: 340px;
    color: var(--text-faint);
    line-height: 1.65;
}
.footer-col h3 {
    margin: 4px 0 14px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.footer-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.footer-col a { color: var(--text-faint); font-weight: 500; }
.footer-col a:hover { color: var(--accent-hover); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 18px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 30px;
    justify-content: space-between;
    font-size: 13px;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}
.empty-state h1 {
    font-size: clamp(70px, 14vw, 120px);
    margin: 0 0 4px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    background: linear-gradient(180deg, var(--text-faint), transparent 130%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.empty-state p { font-size: 16.5px; }
.empty-state a { color: var(--accent); font-weight: 600; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
    .hero-wall { grid-template-columns: repeat(5, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .film-detail { grid-template-columns: 240px 1fr; gap: 28px; }
}

@media (max-width: 680px) {
    .site-header .container { gap: 12px; }

    .nav-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 12px;
        right: 12px;
        flex-direction: column;
        gap: 2px;
        padding: 10px;
        background: var(--bg-raised);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
    }
    .nav-toggle-input:checked ~ .main-nav { display: flex; }
    .main-nav a { padding: 12px 16px; font-size: 15.5px; }
    .main-nav a.active { background: var(--accent-soft); }
    .main-nav a.active::after { display: none; }
    .nav-toggle-input:checked ~ .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle-input:checked ~ .nav-toggle span:nth-child(2) { opacity: 0; }
    .nav-toggle-input:checked ~ .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .hero { padding: 60px 0 52px; }
    .hero-wall { grid-template-columns: repeat(4, 1fr); }
    .hero-search input { padding-right: 54px; }
    .hero-search button { padding: 0 16px; font-size: 0; }
    .hero-search button::after { content: "→"; font-size: 18px; }

    .film-detail { grid-template-columns: 1fr; }
    .film-detail .poster-col { max-width: 220px; height: auto; }
    .film-detail .poster-col img { height: auto; object-fit: initial; }
    .film-grid { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 18px 13px; }
    .info-table { padding: 16px 18px; gap: 8px 18px; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; padding: 34px 0 26px; }
}

/* ---- Fake player (film detail) ------------------------------------------
   A player-look block whose only action is the Přehraj.to affiliate link —
   the visual visitors expect on a "watch online" page. */
.player-section { padding: 34px 0 6px; }
.player-section h2 {
    position: relative;
    margin: 0 0 14px;
    padding-left: 16px;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.player-section h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.18em;
    bottom: 0.18em;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--accent), var(--accent-deep));
}
.fake-player {
    display: block;
    position: relative;
    /* Full container width on the shared alignment line; 21:9 keeps the
       height cinematic instead of monumental. */
    aspect-ratio: 21 / 9;
    margin: 0;
    background: #000;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.fake-player .player-backdrop {
    position: absolute;
    inset: 0;
    background-image: var(--player-poster, none);
    background-size: cover;
    background-position: center 25%;
    filter: blur(26px) saturate(1.3) brightness(0.5);
    transform: scale(1.12);
    opacity: 0.5;
    transition: opacity 0.2s;
}
.fake-player::after { /* subtle vignette so controls read on bright posters */
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 70% at 50% 45%, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}
.fake-player .player-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 1;
}
.fake-player .play-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: #fff;
    box-shadow: 0 10px 38px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition: transform 0.15s, filter 0.15s;
}
.fake-player .play-circle svg { width: 36px; height: 36px; margin-left: 4px; }
.fake-player:hover .play-circle { transform: scale(1.09); filter: brightness(1.08); }
.fake-player:hover .player-backdrop { opacity: 0.62; }
.fake-player .player-hint {
    color: #fff;
    font-weight: 700;
    font-size: 15.5px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}
.fake-player .player-hint .ext { font-weight: 500; opacity: 0.75; font-size: 13.5px; }
.fake-player .player-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), transparent);
    z-index: 1;
}
.fake-player .player-knob {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 10px;
    border-color: transparent transparent transparent rgba(255, 255, 255, 0.85);
    flex: none;
}
.fake-player .player-track {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    overflow: hidden;
}
.fake-player .player-progress {
    display: block;
    width: 3%;
    height: 100%;
    border-radius: 999px;
    background: var(--accent);
}
.fake-player .player-time {
    color: rgba(255, 255, 255, 0.85);
    font-size: 12.5px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    flex: none;
}
@media (max-width: 640px) {
    .player-section { padding-top: 24px; }
    .fake-player { aspect-ratio: 16 / 9; } /* 21:9 gets too short on phones */
    .fake-player .play-circle { width: 64px; height: 64px; }
    .fake-player .play-circle svg { width: 26px; height: 26px; }
}

/* ---- Country / year hub pages ------------------------------------------- */
.country-list,
.year-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 10px;
    padding: 0 0 20px;
    list-style: none;
    margin: 0;
}
.country-list { padding-top: 24px; padding-bottom: 44px; }
.country-list a,
.year-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 15px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14.5px;
    transition: border-color 0.15s, transform 0.15s, background 0.15s;
}
.country-list a:hover,
.year-list a:hover {
    border-color: rgba(255, 61, 103, 0.45);
    transform: translateY(-2px);
    color: var(--text);
}
.country-list .count,
.year-list .count {
    color: var(--text-faint);
    font-size: 12.5px;
    font-weight: 500;
}
.decade-block { padding-bottom: 8px; }
.year-nav {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 10px 0 30px;
    font-weight: 600;
    font-size: 14.5px;
}
.year-nav a { color: var(--text-muted); }
.year-nav a:hover { color: var(--accent-hover); }

/* ---- Person page portrait ------------------------------------------------ */
.person-head { display: flex; align-items: center; gap: 22px; }
.person-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 2px solid rgba(255, 255, 255, 0.14);
    box-shadow: var(--shadow-sm);
    flex: none;
}

/* ---- Home: genre tile strip + magazine teaser ---------------------------- */
.genre-tiles--home { padding: 0; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.article-grid--home { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* ---- Sort row (/filmy) ---------------------------------------------------- */
.sort-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 4px 0 6px;
}
.sort-row a {
    padding: 7px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.15s;
}
.sort-row a:hover { border-color: rgba(255, 61, 103, 0.45); color: var(--text); }
.sort-row a.active {
    background: var(--accent-soft);
    border-color: rgba(255, 61, 103, 0.5);
    color: var(--text);
}

/* ---- Magazine article hero ------------------------------------------------ */
.article-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    margin-bottom: 26px;
}
.article-hero .backdrop {
    position: absolute;
    inset: -40px;
    background-size: cover;
    background-position: center 30%;
    filter: blur(42px) saturate(1.4) brightness(0.7);
    transform: scale(1.15);
    opacity: 0.5;
}
.article-hero .backdrop-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 13, 19, 0.82) 0%, rgba(10, 13, 19, 0.5) 45%, var(--bg) 100%);
}
.article-hero .container { position: relative; }
.article-hero .article-head { margin: 0; padding: 26px 0 38px; max-width: 780px; }

/* 404 search sizing */
.empty-state .hero-search { max-width: 460px; margin: 22px auto 0; }

/* --------------------------------------------------------------------------
   Toplists (/zebricky)
   -------------------------------------------------------------------------- */

.film-grid.ranked { counter-reset: rank; }
.film-grid.ranked .film-card { counter-increment: rank; }
.film-grid.ranked .film-card .poster::before {
    content: counter(rank);
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 1;
    min-width: 26px;
    height: 26px;
    padding: 0 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(10, 13, 19, 0.82);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 800;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.toplist-index {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    margin: 26px 0 46px;
    padding: 0;
    list-style: none;
}
.toplist-index a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: border-color 0.15s ease, background 0.15s ease;
}
.toplist-index a:hover { border-color: var(--accent); background: var(--accent-soft); }
.toplist-index strong { font-weight: 700; }
.toplist-index span { color: var(--text-faint); font-size: 13.5px; }

.related-toplists .chips a { font-size: 13.5px; }
