/* =========================================================
   10 Year Challenge — site stylesheet (redesign 2026-11)
   Dark editorial theme. "Then" = amber, "Now" = coral.
   Requires Bootstrap 5 (grid, navbar, dropdown, modal) + Font Awesome.
   ========================================================= */

:root {
    --bg: #0e0d12;
    --surface: #17161d;
    --surface-2: #201f28;
    --surface-3: #2a2933;
    --line: rgba(255, 255, 255, .08);
    --line-strong: rgba(255, 255, 255, .16);
    --text: #f4f1ea;
    --muted: #a3a0ad;
    --faint: #6f6c7a;

    --then: #f5b942;
    --now: #ff5d3a;
    --heart: #ff4d6d;
    --grad: linear-gradient(100deg, var(--then) 0%, var(--now) 100%);

    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);

    --font-display: "Smooch Sans", "Arial Narrow", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    /* Bootstrap bridges */
    --bs-body-bg: var(--bg);
    --bs-body-color: var(--text);
    --bs-body-font-family: var(--font-body);
    --bs-link-color: var(--then);
    --bs-link-color-rgb: 245, 185, 66;
    --bs-link-hover-color: var(--now);
    --bs-link-hover-color-rgb: 255, 93, 58;
    --bs-border-color: var(--line);
    --bs-emphasis-color: var(--text);
    --bs-secondary-color: var(--muted);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
body::before {               /* soft warm glow behind the header */
    content: "";
    position: fixed;
    inset: -30vh -10vw auto -10vw;
    height: 70vh;
    background:
        radial-gradient(40% 60% at 20% 30%, rgba(245, 185, 66, .10), transparent 70%),
        radial-gradient(40% 60% at 80% 20%, rgba(255, 93, 58, .10), transparent 70%);
    pointer-events: none;
    z-index: -1;
}
.site-main { flex: 1 0 auto; padding-bottom: 4rem; }
img { max-width: 100%; height: auto; }
a { color: var(--then); text-decoration: none; transition: color .15s; }
a:hover { color: var(--now); }
::selection { background: var(--now); color: #fff; }
:focus-visible { outline: 2px solid var(--then); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4, h5, h6, .display {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: .95;
    letter-spacing: .005em;
    color: var(--text);
    margin: 0;
}
.eyebrow {
    font-family: var(--font-body);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}
.text-grad {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.text-then { color: var(--then) !important; }
.text-now { color: var(--now) !important; }
.text-muted-2 { color: var(--muted) !important; }

@media (max-width: 575.98px) {
    .container { padding-left: 16px; padding-right: 16px; }
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(14, 13, 18, .78);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.site-header .navbar { padding: .65rem 0; }
.brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: var(--text);
    line-height: 1;
}
.brand:hover { color: var(--text); }
.brand__mark {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 2.6rem;
    line-height: .8;
    letter-spacing: -.02em;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.brand__word {
    display: flex;
    flex-direction: column;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.brand__tag {
    font-family: var(--font-body);
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .02em;
    text-transform: none;
    color: var(--muted);
    margin-top: .2rem;
}
.site-header .navbar-toggler {
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    padding: .45rem .7rem;
    color: var(--text);
}
.site-header .navbar-toggler:focus { box-shadow: none; }
.site-header .nav-link {
    font-weight: 500;
    font-size: .95rem;
    color: var(--muted);
    padding: .5rem .85rem !important;
    border-radius: 999px;
    transition: color .15s, background-color .15s;
}
.site-header .nav-link:hover,
.site-header .nav-link:focus,
.site-header .nav-link.show { color: var(--text); background: var(--surface-2); }
.site-header .nav-link.active { color: var(--text); background: var(--surface-3); }
.site-header .dropdown-menu {
    --bs-dropdown-bg: var(--surface);
    --bs-dropdown-border-color: var(--line-strong);
    --bs-dropdown-link-color: var(--text);
    --bs-dropdown-link-hover-bg: var(--surface-3);
    --bs-dropdown-link-hover-color: var(--text);
    --bs-dropdown-link-active-bg: var(--surface-3);
    border-radius: 12px;
    padding: .4rem;
    box-shadow: var(--shadow);
}
.site-header .dropdown-item { border-radius: 8px; padding: .5rem .8rem; font-size: .92rem; }
.nav-fav {
    display: inline-flex !important;
    align-items: center;
    gap: .45rem;
    border: 1px solid var(--line-strong);
}
.nav-fav i { color: var(--heart); }
.nav-fav__count {
    min-width: 1.35rem;
    padding: 0 .35rem;
    border-radius: 999px;
    background: var(--heart);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.35rem;
    text-align: center;
}
.nav-fav__count:empty { display: none; }
@media (max-width: 991.98px) {
    .site-header .navbar-collapse { padding: .75rem 0 .5rem; }
    .site-header .navbar-nav { gap: .15rem; }
    .site-header .nav-link { border-radius: 10px; }
    .site-header .dropdown-menu { border: 0; box-shadow: none; background: var(--surface); margin: .25rem 0 .5rem; }
    .nav-fav { margin-top: .5rem; justify-content: center; }
}

/* ---------- Page head / breadcrumb ---------- */
.page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding: 2.5rem 0 1.75rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
.page-head__sub { color: var(--muted); margin: .6rem 0 0; max-width: 60ch; }
.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    margin-bottom: .9rem;
    font-size: .85rem;
    color: var(--faint);
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs i { font-size: .6rem; }

/* ---------- Buttons ---------- */
.btn-grad, .btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    line-height: 1;
    border: 1px solid transparent;
    transition: transform .15s, background-color .15s, border-color .15s, color .15s;
    cursor: pointer;
}
.btn-grad { background: var(--grad); color: #160b05; }
.btn-grad:hover { color: #160b05; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }

/* Favorite (heart) button — class names are used by js/favorites.js */
.reminder {
    position: relative;
    z-index: 2;
    display: inline-grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    flex: none;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: rgba(14, 13, 18, .55);
    color: var(--text);
    cursor: pointer;
    transition: transform .15s, background-color .15s, border-color .15s, color .15s;
}
.reminder:hover { border-color: var(--heart); color: var(--heart); }
.reminder:active { transform: scale(.92); }
.reminder .reminder__icon { display: inline-flex; pointer-events: none; }
.reminder--status-unset .fas, .reminder--status-set .far { display: none; }
.reminder--status-set { background: var(--heart); border-color: var(--heart); color: #fff; }
.reminder--status-set:hover { color: #fff; filter: brightness(1.08); }
.reminder.loading { opacity: .6; cursor: progress; }
.reminder.loading .reminder__icon { animation: pulse 1s infinite; }
.reminder--lg { width: 3.1rem; height: 3.1rem; font-size: 1.15rem; }
@keyframes pulse { 50% { opacity: .4; } }

/* ---------- Home hero (compact: stays under 15% of the viewport height) ---------- */
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .6rem 2rem;
    max-height: 15vh;
    min-height: 0;
    padding: clamp(.75rem, 2.2vh, 1.5rem) 0;
    margin-bottom: clamp(.75rem, 2vh, 1.5rem);
    overflow: hidden;
}
.hero__text { flex: 1 1 auto; min-width: 0; }
.hero__title, .hero__lead { overflow: hidden; text-overflow: ellipsis; }
.hero__title {
    font-size: clamp(1.7rem, min(4.2vw, 5.5vh), 3.2rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: .95;
    white-space: nowrap;
}
.hero__lead { margin: .35rem 0 0; color: var(--muted); font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__actions { display: flex; gap: .5rem; flex: none; }
.hero__actions .btn-grad, .hero__actions .btn-ghost { padding: .55rem 1rem; font-size: .88rem; }
@media (min-width: 576px) { .hero { flex-wrap: nowrap; } }
@media (max-width: 991.98px) { .hero { gap: 1rem; } .hero__lead { display: none; } }
@media (max-width: 575.98px) {
    .hero__title { font-size: clamp(1.25rem, 6.8vw, 1.8rem); }
    .hero__actions { display: none; }
}
@media (max-height: 560px) { .hero__actions { display: none; } }

.features { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-bottom: 3.5rem; }
@media (min-width: 768px) { .features { grid-template-columns: 1fr 1fr; } }
.feature {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem 1.5rem 1.6rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem 1.1rem;
    align-items: start;
}
.feature__icon {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--surface-3);
    font-size: 1.1rem;
}
.feature--music .feature__icon { color: var(--then); }
.feature--movies .feature__icon { color: var(--now); }
.feature h2 { font-size: 1.8rem; margin-bottom: .35rem; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Sections ---------- */
.section { margin-top: 3.5rem; }
.section:first-child { margin-top: 0; }
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.section-head h2 { font-size: clamp(2rem, 4vw, 2.8rem); text-transform: uppercase; }
.section-head a { font-size: .9rem; font-weight: 500; white-space: nowrap; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem 1rem;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--text);
    font-size: .92rem;
    font-weight: 500;
}
.chip:hover { color: var(--text); border-color: var(--then); background: var(--surface-2); }

/* ---------- Card grid ---------- */
.tc-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tc-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.tc-featured { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 992px) {
    .tc-featured { grid-template-columns: 1.65fr 1fr; }
    .tc-featured__side { display: grid; gap: 1.5rem; grid-template-rows: 1fr 1fr; }
    .tc-featured__side .tc-card__desc { display: none; }
}
@media (min-width: 640px) and (max-width: 991.98px) {
    .tc-featured__side { display: grid; gap: 1.5rem; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 639.98px) { .tc-featured__side { display: grid; gap: 1.5rem; } }

/* ---------- Challenge card ---------- */
.tc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    isolation: isolate;
}
.tc-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.tc-card__media {
    position: relative;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 2px;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}
.tc-card__frame { position: relative; overflow: hidden; min-width: 0; }
.tc-card__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.36);   /* crops the letterbox bars of YouTube hqdefault thumbs */
    transition: transform .5s ease, filter .5s ease;
}
.tc-card--movie .tc-card__frame img { transform: none; object-position: center 20%; }
.tc-card:hover .tc-card__frame img { transform: scale(1.42); }
.tc-card--movie:hover .tc-card__frame img { transform: scale(1.05); }
.tc-card__frame--then img { filter: sepia(.35) saturate(.85) contrast(1.02); }
.tc-card:hover .tc-card__frame--then img { filter: none; }
.tc-card__frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .65), transparent 45%);
}
.tc-card__label {
    position: absolute;
    left: .6rem;
    bottom: .55rem;
    z-index: 1;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    max-width: calc(100% - 1.2rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tc-card__label::before { content: ""; flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: var(--then); }
.tc-card__frame--now .tc-card__label::before { background: var(--now); }
.tc-card__frame--cast .tc-card__label::before { display: none; }
.tc-card__arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--grad);
    color: #160b05;
    font-size: .85rem;
    box-shadow: 0 0 0 4px rgba(14, 13, 18, .85);
    pointer-events: none;
}
.tc-card--n3 .tc-card__arrow { display: none; }
.tc-card__fav { position: absolute; top: .7rem; right: .7rem; z-index: 3; }

.tc-card__body { display: flex; flex-direction: column; gap: .45rem; padding: 1.05rem 1.2rem 1.25rem; flex: 1; }
.tc-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; font-size: .78rem; color: var(--faint); }
.tc-card__cat { color: var(--then); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .72rem; }
.tc-card__title { font-size: 1.85rem; line-height: .98; }
.tc-card__title a { color: var(--text); }
.tc-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }  /* whole card clickable */
.tc-card:hover .tc-card__title a { color: var(--then); }
.tc-card__desc { color: var(--muted); font-size: .92rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.tc-card--featured .tc-card__title { font-size: clamp(2.1rem, 3.6vw, 3rem); }
.tc-card--featured .tc-card__body { padding: 1.3rem 1.5rem 1.6rem; }
.tc-card--featured .tc-card__desc { font-size: 1rem; }
@media (min-width: 992px) {
    .tc-featured__side .tc-card__media { aspect-ratio: 2.1 / 1; }
    .tc-featured__side .tc-card__title { font-size: 1.6rem; }
}

/* ---------- Pagination ---------- */
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4rem; margin: 3rem 0 0; padding: 0; list-style: none; }
.pager a, .pager span {
    display: inline-grid;
    place-items: center;
    min-width: 2.6rem;
    height: 2.6rem;
    padding: 0 .8rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    font-size: .92rem;
    font-weight: 500;
}
.pager a:hover { border-color: var(--line-strong); background: var(--surface-2); color: var(--text); }
.pager .is-current span { background: var(--grad); color: #160b05; border-color: transparent; font-weight: 700; }
.pager .is-disabled span { color: var(--faint); background: transparent; }
.pager .is-gap span { border: 0; background: none; color: var(--faint); min-width: 1.2rem; padding: 0; }

/* ---------- Challenge page: comparison ---------- */
.compare { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-bottom: 3rem; }
@media (min-width: 768px) {
    .compare--n2 { grid-template-columns: 1fr 1fr; }
    .compare--n3 { grid-template-columns: repeat(3, 1fr); }
}
.compare__item { display: flex; flex-direction: column; gap: .8rem; }
.compare__when { display: flex; align-items: center; gap: .6rem; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--then); }
.compare__item--now .compare__when { color: var(--now); }
.compare__when::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .35; }
.compare__song { font-size: 1.7rem; line-height: 1; }

.tc-video {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
    aspect-ratio: 16 / 9;
    cursor: pointer;
}
/* 16:9 box + cover on a 4:3 hqdefault thumb crops exactly the letterbox bars */
.tc-video img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, opacity .3s; opacity: .88; }
.tc-video:hover img { transform: scale(1.04); opacity: 1; }
.tc-video__play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(14, 13, 18, .7);
    border: 2px solid rgba(255, 255, 255, .85);
    color: #fff;
    font-size: 1.2rem;
    padding-left: .2rem;
    transition: transform .2s, background-color .2s;
}
.tc-video:hover .tc-video__play { transform: scale(1.08); background: var(--now); border-color: var(--now); }
.compare__item--then .tc-video img { filter: sepia(.3) saturate(.85); }
.compare__item--then .tc-video:hover img { filter: none; }

/* ---------- Article text ---------- */
.prose { max-width: 70ch; font-size: 1.06rem; line-height: 1.75; color: #dcd8cf; }
.prose p { margin: 0 0 1.15em; }
.prose h2, .prose h3, .prose h4 { margin: 1.6em 0 .5em; }
.prose h2 { font-size: 2.2rem; }
.prose h3 { font-size: 1.8rem; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.15em; }
.prose img { border-radius: var(--radius-sm); }
.prose strong { color: var(--text); }
.prose > :last-child { margin-bottom: 0; }
.prose--lead > p:first-child { font-size: 1.2rem; color: var(--text); }

.article { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 992px) { .article--aside { grid-template-columns: minmax(0, 1fr) 320px; gap: 3.5rem; } }
.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; align-self: start; }
.aside-card h3 { font-size: 1.6rem; margin: 1rem 0 .5rem; }
.aside-card .prose { font-size: .95rem; color: var(--muted); }

/* ---------- Movie page ---------- */
.movie-hero { display: grid; gap: 2rem; grid-template-columns: 1fr; margin-bottom: 3.5rem; }
@media (min-width: 768px) { .movie-hero { grid-template-columns: 260px minmax(0, 1fr); align-items: start; } }
@media (min-width: 1200px) { .movie-hero { grid-template-columns: 300px minmax(0, 1fr) 320px; } }
@media (min-width: 768px) { .movie-hero--noposter { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 992px) { .movie-hero--noposter { grid-template-columns: minmax(0, 1fr) 320px; } .movie-hero--noposter .aside-card { grid-column: auto !important; } }
.movie-hero__poster img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 2 / 3; object-fit: cover; }
@media (max-width: 767.98px) { .movie-hero__poster { max-width: 220px; } }
@media (min-width: 768px) and (max-width: 1199.98px) { .movie-hero .aside-card { grid-column: 1 / -1; } }

.cast-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .cast-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cast-grid { grid-template-columns: repeat(3, 1fr); } }
.cast {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.cast__top { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: #000; aspect-ratio: 4 / 3; }
.cast__top--single { grid-template-columns: 1fr; }
.cast__img { position: relative; padding: 0; border: 0; background: #000; overflow: hidden; cursor: pointer; }
.cast__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; transition: transform .4s ease; }
.cast__img:hover img { transform: scale(1.05); }
.cast__img .tc-card__label { pointer-events: none; }
.cast__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .6), transparent 45%); pointer-events: none; }
.cast__img--then img { filter: sepia(.3) saturate(.85); }
.cast__img--then:hover img { filter: none; }
.cast__body { padding: 1.1rem 1.25rem 1.35rem; }
.cast__name { font-size: 1.9rem; }
.cast__movie { display: flex; align-items: center; gap: .5rem; margin: .4rem 0 .8rem; color: var(--then); font-weight: 600; font-size: .9rem; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.cast__movie:hover { color: var(--now); }
.cast__body .prose { font-size: .95rem; color: var(--muted); line-height: 1.65; }

/* ---------- Empty states / info ---------- */
.empty {
    text-align: center;
    padding: clamp(2.5rem, 8vw, 5rem) 1.5rem;
    background: var(--surface);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
}
.empty__icon { font-size: 2.6rem; margin-bottom: 1.2rem; color: var(--heart); }
.empty h2 { font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: .6rem; }
.empty p { color: var(--muted); max-width: 46ch; margin: 0 auto 1.6rem; }
.big-code { font-family: var(--font-display); font-weight: 900; font-size: clamp(7rem, 25vw, 14rem); line-height: .8; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.5rem); }

.info-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .info-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .info-grid { grid-template-columns: repeat(3, 1fr); } }
.info-card { position: relative; display: flex; gap: 1rem; padding: 1.35rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, background-color .2s; }
.info-card:hover { border-color: var(--line-strong); background: var(--surface-2); }
.info-card h2 { font-size: 1.7rem; margin-bottom: .3rem; }
.info-card h2 a { color: var(--text); }
.info-card h2 a::after { content: ""; position: absolute; inset: 0; }
.info-card p { margin: 0; color: var(--muted); font-size: .92rem; }

.admin-edit { position: fixed; left: 16px; bottom: 16px; z-index: 1040; padding: .45rem .9rem; border-radius: 999px; background: var(--then); color: #160b05; font-weight: 700; font-size: .8rem; }
.admin-edit:hover { color: #160b05; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #0a0a0d; padding: 3.5rem 0 2rem; color: var(--muted); font-size: .92rem; }
.site-footer h2 { font-family: var(--font-body); font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 1rem; }
.site-footer .brand { margin-bottom: 1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.share { display: flex; flex-wrap: wrap; gap: .5rem; }
.share a, .share button {
    display: inline-grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: transparent;
    color: var(--text);
    font-size: 1rem;
    cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s;
}
.share a:hover, .share button:hover { color: #160b05; background: var(--then); border-color: var(--then); }
.share .is-copied { background: var(--then); color: #160b05; border-color: var(--then); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: .82rem; color: var(--faint); }

/* ---------- Back to top ---------- */
#backToTop {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1040;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: rgba(23, 22, 29, .9);
    color: var(--text);
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .2s, transform .2s, visibility .2s, background-color .15s;
}
#backToTop.is-visible { opacity: 1; visibility: visible; transform: none; }
#backToTop:hover { background: var(--surface-3); }

/* ---------- Video modal ---------- */
.video-modal .modal-content { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.video-modal .modal-header { border-bottom: 1px solid var(--line); padding: .75rem 1rem; }
.video-modal .modal-title { font-size: 1.5rem; }
.video-modal .modal-body { padding: 0; background: #000; }
.video-modal iframe { width: 100%; height: 100%; border: 0; }
.modal-backdrop { --bs-backdrop-bg: #000; --bs-backdrop-opacity: .85; }

/* ---------- Toast (favorites.js notifications) ---------- */
.tc-toast {
    position: fixed;
    top: 84px;
    right: 16px;
    z-index: 1090;
    max-width: min(360px, calc(100vw - 32px));
    padding: .8rem 1rem;
    border-radius: 12px;
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    border-left: 3px solid var(--heart);
    color: var(--text);
    font-size: .92rem;
    box-shadow: var(--shadow);
    animation: toast-in .2s ease-out;
}
.tc-toast--error { border-left-color: #ff6b6b; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Print ---------- */
@media print {
    .site-header, .site-footer, #backToTop, .reminder, .share { display: none !important; }
    body { background: #fff; color: #000; }
    body::before { display: none; }
}
