/* ===========================================================================
   Lifehaki — List detail page (/lists/{owner}/{slug}).
   Loaded only when bodyClass contains `lh-list-detail` (see templates/layout.php).

   Everything is scoped under `body.lh-list-detail` so it outranks the older
   flat `.list-*` / `.le-*` rules in lifehaki-design.css without touching them.
   Class prefix is `ld-*`.
   =========================================================================== */

body.lh-list-detail {
    --ld-paper: #f5f5f9;
    --ld-white: #fff;
    --ld-ink: #15171c;
    --ld-ink-2: #20242b;
    --ld-body: #565d68;
    --ld-muted: #767d89;
    --ld-faint: #9aa0ab;
    --ld-line: #e3e3ea;
    --ld-line-2: #f0f0f5;
    --ld-line-3: #d2d3dc;
    --ld-red: #ca2128;
    --ld-red-dark: #a81a20;
    --ld-gold: #fdc949;
    --ld-gold-700: #c8951f;
    --ld-green: #2f8f5b;

    --ld-display: 'Fraunces', Georgia, serif;
    --ld-text: 'Urbanist', system-ui, sans-serif;
    --ld-cond: 'Barlow Condensed', sans-serif;
    --ld-mono: 'DM Mono', ui-monospace, monospace;

    background: var(--ld-paper);
    color: var(--ld-ink-2);
    font-family: var(--ld-text);
}
body.lh-list-detail main { overflow-x: hidden; padding: 0; max-width: none; }
body.lh-list-detail ::selection { background: var(--ld-gold); color: var(--ld-ink); }

/* ============================ HERO ====================================== */
.ld-hero { position: relative; overflow: hidden; background: var(--ld-ink); }
.ld-hero > .lhh-navwrap { position: relative; z-index: 6; }

.ld-hero-art { position: absolute; inset: 0; display: flex; opacity: .34; filter: blur(2px); }
.ld-hero-art > * { flex: 1; background-size: cover; background-position: center 20%; }
.ld-hero-scrim-x, .ld-hero-scrim-y { position: absolute; inset: 0; }
.ld-hero-scrim-x { background: linear-gradient(90deg, #15171c 4%, rgba(21,23,40,.86) 46%, rgba(21,23,40,.62) 100%); }
.ld-hero-scrim-y { background: linear-gradient(180deg, rgba(21,23,40,.55), rgba(21,23,40,.2) 40%, #15171c 96%); }
.ld-hero-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.ld-hero-orb-gold { top: -190px; right: -90px; width: 560px; height: 560px;
    background: radial-gradient(circle, rgba(253,201,73,.22), rgba(253,201,73,0) 70%); }
.ld-hero-orb-red { bottom: -200px; left: -140px; width: 540px; height: 540px;
    background: radial-gradient(circle, rgba(202,33,40,.20), rgba(202,33,40,0) 70%); }

.ld-hero-inner {
    position: relative; z-index: 4; max-width: 1240px; margin: 0 auto;
    padding: 14px 40px 46px;
    display: grid; grid-template-columns: minmax(0,1fr) 400px; gap: 56px; align-items: end;
}

.ld-crumbs { display: flex; align-items: center; gap: 9px; margin-bottom: 20px;
    font-family: var(--ld-mono); font-size: 13px; color: rgba(255,255,255,.5); flex-wrap: wrap; }
.ld-crumbs a { color: rgba(255,255,255,.66); text-decoration: none; }
.ld-crumbs a:hover { color: var(--ld-gold); }
.ld-crumbs .ld-crumb-now { color: rgba(255,255,255,.4); }

.ld-badges { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.ld-badge {
    font-family: var(--ld-cond); font-weight: 700; font-size: 13px; letter-spacing: .14em;
    text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
    background: var(--ld-gold); color: var(--ld-ink);
}
.ld-badge-outline {
    display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: #fff;
    background: transparent; border: 1.5px solid rgba(255,255,255,.28); padding: 3px 11px;
}
.ld-badge-plain { font-family: var(--ld-cond); font-weight: 600; font-size: 13px;
    letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); }

.ld-hero-title {
    font-family: var(--ld-display); font-weight: 900; font-size: 62px; line-height: .95;
    letter-spacing: -.028em; color: #fff; margin: 0 0 18px; text-wrap: pretty;
}
.ld-hero-title em { color: var(--ld-gold); font-style: italic; font-weight: 900; }
.ld-hero-desc { font-size: 18px; line-height: 1.55; color: rgba(255,255,255,.78);
    margin: 0 0 28px; max-width: 600px; text-wrap: pretty; }

.ld-byline { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-bottom: 30px; }
.ld-author { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.ld-author img, .ld-author .ld-author-fallback {
    width: 46px; height: 46px; border-radius: 999px; object-fit: cover; flex-shrink: 0;
    box-shadow: 0 0 0 2px var(--ld-red), 0 0 0 4px var(--ld-ink);
}
.ld-author-fallback { display: inline-flex; align-items: center; justify-content: center;
    background: var(--ld-red); color: #fff; font-weight: 800; font-size: 18px; }
.ld-author-name { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 16px; color: #fff; }
.ld-author-handle { display: block; font-family: var(--ld-mono); font-size: 13px; color: rgba(255,255,255,.55); }
.ld-byline-sep { width: 1px; height: 36px; background: rgba(255,255,255,.16); }
.ld-byline-meta { font-family: var(--ld-mono); font-size: 14px; color: rgba(255,255,255,.66); line-height: 1.7; }

.ld-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ld-actions form.inline { display: inline; margin: 0; }
.ld-btn {
    display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 20px;
    border-radius: 999px; cursor: pointer; font-family: var(--ld-text); font-weight: 700;
    font-size: 15px; text-decoration: none; border: 1.5px solid rgba(255,255,255,.26);
    background: transparent; color: #fff;
    transition: background 120ms, transform 120ms, color 120ms, border-color 120ms;
}
.ld-btn:hover { background: rgba(255,255,255,.1); transform: translateY(-1px); color: #fff; }
.ld-btn-primary { border: 0; background: var(--ld-red); color: #fffdf8;
    box-shadow: 0 6px 18px rgba(202,33,40,.38); }
.ld-btn-primary:hover { background: var(--ld-red-dark); color: #fffdf8; }
.ld-btn-saved { border: 1.5px solid var(--ld-gold); background: var(--ld-gold); color: var(--ld-ink); box-shadow: none; }
.ld-btn-saved:hover { background: var(--ld-gold); color: var(--ld-ink); }
.ld-btn-liked { border-color: rgba(202,33,40,.6); background: rgba(202,33,40,.18); }
.ld-btn-danger:hover { background: rgba(202,33,40,.25); border-color: rgba(202,33,40,.6); }

.ld-fan { display: flex; justify-content: flex-end; padding-bottom: 6px; }
.ld-fan-inner { display: flex; }
.ld-fan-card {
    width: 150px; height: 225px; flex-shrink: 0; border-radius: 14px; overflow: hidden;
    border: 1px solid rgba(255,255,255,.16); box-shadow: 0 22px 46px rgba(0,0,0,.55);
    background-size: cover; background-position: center;
}

/* ====================== STICKY CONTROL BAR ============================== */
.ld-bar {
    position: sticky; top: 0; z-index: 30; background: rgba(245,245,249,.92);
    backdrop-filter: blur(10px); border-bottom: 1px solid var(--ld-line);
}
.ld-bar-inner { max-width: 1240px; margin: 0 auto; padding: 12px 40px;
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.ld-bar-spacer { flex: 1; }

.ld-views { display: flex; align-items: center; gap: 4px; padding: 4px; background: #ececf1; border-radius: 999px; }
.ld-view {
    height: 34px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer;
    font-family: var(--ld-text); font-weight: 700; font-size: 14px;
    background: transparent; color: var(--ld-muted); transition: background 120ms, color 120ms;
}
.ld-view.is-on { background: var(--ld-ink); color: #fff; }

.ld-progress-wrap { display: flex; align-items: center; gap: 12px; }
.ld-progress { width: 132px; height: 7px; border-radius: 999px; background: var(--ld-line); overflow: hidden; }
.ld-progress > span { display: block; height: 100%; border-radius: 999px; background: var(--ld-red);
    transition: width 200ms cubic-bezier(.16,1,.3,1); }
.ld-progress-label { font-family: var(--ld-mono); font-size: 13px; color: var(--ld-body); white-space: nowrap; }

.ld-sort { position: relative; }
.ld-sort-btn {
    display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px;
    border-radius: 999px; border: 1.5px solid var(--ld-line-3); background: var(--ld-white);
    color: var(--ld-ink-2); font-family: var(--ld-text); font-weight: 600; font-size: 14px; cursor: pointer;
}
.ld-sort-btn .ld-sort-k { color: var(--ld-muted); font-weight: 500; }
.ld-sort-menu {
    position: absolute; top: 46px; right: 0; z-index: 40; min-width: 196px; background: var(--ld-white);
    border: 1px solid var(--ld-line); border-radius: 14px; box-shadow: 0 12px 34px rgba(21,23,40,.16);
    padding: 6px; display: none; flex-direction: column;
}
.ld-sort.is-open .ld-sort-menu { display: flex; }
.ld-sort-menu button {
    text-align: left; padding: 9px 12px; border: 0; border-radius: 9px; cursor: pointer;
    font-family: var(--ld-text); font-weight: 600; font-size: 14px;
    background: transparent; color: var(--ld-ink-2); transition: background 120ms;
}
.ld-sort-menu button:hover { background: var(--ld-line-2); }
.ld-sort-menu button.is-on { background: var(--ld-line-2); color: var(--ld-red); }

.ld-markall {
    display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px;
    border-radius: 999px; border: 0; background: var(--ld-ink); color: #fff;
    font-family: var(--ld-text); font-weight: 700; font-size: 14px; cursor: pointer;
    transition: background 120ms, transform 120ms;
}
.ld-markall:hover { background: var(--ld-red); transform: translateY(-2px); }

/* ============================= MAIN ===================================== */
.ld-main {
    max-width: 1240px; margin: 0 auto; padding: 38px 40px 10px;
    display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 46px; align-items: start;
}
.ld-head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
    margin-bottom: 24px; padding-bottom: 14px; border-bottom: 2px solid var(--ld-ink);
}
.ld-head h2 { font-family: var(--ld-display); font-weight: 800; font-size: 26px;
    letter-spacing: -.015em; color: var(--ld-ink); margin: 0; }
.ld-head-note { font-family: var(--ld-mono); font-size: 13px; color: var(--ld-muted); }

/* --- ranked rows --- */
.ld-rows { display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 0; list-style: none; }
.ld-row {
    display: flex; gap: 22px; align-items: flex-start; background: var(--ld-white);
    border: 1px solid var(--ld-line); border-radius: 20px; padding: 20px 24px;
    box-shadow: 0 2px 14px rgba(21,23,40,.06); transition: box-shadow 200ms, border-color 200ms;
}
.ld-row.is-watched { border-color: #f1cfd1; }
.ld-rank { font-family: var(--ld-mono); font-size: 26px; line-height: 1; width: 52px;
    flex-shrink: 0; padding-top: 6px; color: #c4c8d0; }
.ld-row.is-watched .ld-rank { color: var(--ld-red); }
.ld-poster { position: relative; width: 112px; height: 168px; flex-shrink: 0; border-radius: 12px;
    overflow: hidden; border: 1px solid var(--ld-line); box-shadow: 0 6px 18px rgba(21,23,40,.14); display: block; }
.ld-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ld-poster .art { width: 100%; height: 100%; }
.ld-row-body { flex: 1; min-width: 0; }
.ld-row-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ld-row-title { font-family: var(--ld-display); font-weight: 800; font-size: 25px; line-height: 1.1;
    letter-spacing: -.018em; margin: 0 0 8px; text-wrap: pretty; }
.ld-row-title a { color: var(--ld-ink); text-decoration: none; }
.ld-row-title a:hover { color: var(--ld-red); }
.ld-row-meta { font-family: var(--ld-mono); font-size: 13px; color: var(--ld-muted); margin-bottom: 12px; }
.ld-score { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }
.ld-score-cap { font-family: var(--ld-cond); font-weight: 600; font-size: 11px; letter-spacing: .14em;
    text-transform: uppercase; color: var(--ld-faint); }
.ld-note { font-size: 15px; line-height: 1.55; color: var(--ld-body); margin: 0 0 14px;
    max-width: 560px; text-wrap: pretty; }
.ld-row-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ld-chip {
    display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px;
    background: var(--ld-line-2); color: var(--ld-body); font-weight: 600; font-size: 12px;
    text-decoration: none; transition: background 120ms, color 120ms;
}
a.ld-chip:hover { background: var(--ld-ink); color: var(--ld-gold); }
.ld-row-foot .ld-bar-spacer { flex: 1; }

.ld-watch {
    display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px;
    border-radius: 999px; cursor: pointer; font-family: var(--ld-text); font-weight: 700; font-size: 13px;
    background: var(--ld-white); color: var(--ld-body); border: 1.5px solid var(--ld-line-3);
    transition: all 120ms;
}
.ld-watch.is-on { background: #e8f3ec; color: var(--ld-green); border-color: #cfe6d8; }
.ld-save {
    display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
    border-radius: 999px; cursor: pointer; background: var(--ld-white); color: var(--ld-faint);
    border: 1.5px solid var(--ld-line-3); transition: all 120ms;
}
.ld-save.is-on { background: #fef2d4; color: var(--ld-gold-700); border-color: #f6dfa4; }
.ld-save.is-on svg { fill: currentColor; }

/* --- star rating --- */
.ld-stars { display: inline-flex; align-items: center; gap: 7px; }
.ld-stars-track { position: relative; display: inline-block; line-height: 0; }
.ld-stars-track .ld-stars-fill { position: absolute; inset: 0; overflow: hidden; white-space: nowrap; }
.ld-stars-track svg { display: inline-block; }
.ld-stars-val { font-family: var(--ld-mono); font-size: 13px; color: var(--ld-gold-700); }

/* --- thumbnail grid --- */
.ld-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 22px;
    margin: 0; padding: 0; list-style: none; }
/* `display:` on .ld-rows/.ld-grid otherwise beats the [hidden] attribute the view toggle sets. */
.ld-rows[hidden], .ld-grid[hidden] { display: none; }
.ld-cell { position: relative; }
.ld-thumb {
    position: relative; aspect-ratio: 2/3; border-radius: 12px; overflow: hidden; display: block;
    border: 1px solid var(--ld-line); box-shadow: 0 6px 18px rgba(21,23,40,.14);
    transition: transform 200ms cubic-bezier(.16,1,.3,1), box-shadow 200ms, border-color 200ms;
}
.ld-cell:hover .ld-thumb { transform: translateY(-4px); border-color: var(--ld-line-3);
    box-shadow: 0 18px 40px rgba(21,23,40,.22); }
.ld-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ld-thumb .art { width: 100%; height: 100%; }
.ld-thumb-rank { position: absolute; top: 9px; left: 9px; font-family: var(--ld-mono); font-size: 13px;
    background: var(--ld-gold); color: var(--ld-ink); padding: 2px 9px; border-radius: 999px;
    box-shadow: 0 2px 8px rgba(21,23,40,.3); }
.ld-thumb-tick { position: absolute; top: 9px; right: 9px; width: 24px; height: 24px; border-radius: 999px;
    background: var(--ld-green); color: #fff; display: none; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(21,23,40,.3); }
.ld-cell.is-watched .ld-thumb-tick { display: inline-flex; }

.ld-pop {
    position: absolute; z-index: 25; bottom: -14px; width: 288px; background: var(--ld-white);
    border: 1px solid var(--ld-line); border-radius: 16px; box-shadow: 0 18px 44px rgba(21,23,40,.22);
    padding: 18px; text-align: left; left: 50%; transform: translate(-50%,100%);
    opacity: 0; visibility: hidden; transition: opacity 120ms;
}
.ld-cell:hover .ld-pop, .ld-cell:focus-within .ld-pop { opacity: 1; visibility: visible; }
.ld-cell:nth-child(4n+1) .ld-pop { left: 0; right: auto; transform: translateY(100%); }
.ld-cell:nth-child(4n) .ld-pop { left: auto; right: 0; transform: translateY(100%); }
.ld-pop-arrow { position: absolute; top: -7px; width: 13px; height: 13px; background: var(--ld-white);
    border-left: 1px solid var(--ld-line); border-top: 1px solid var(--ld-line);
    transform: rotate(45deg); left: 50%; margin-left: -7px; }
.ld-cell:nth-child(4n+1) .ld-pop-arrow { left: 34px; margin-left: 0; }
.ld-cell:nth-child(4n) .ld-pop-arrow { left: auto; right: 34px; margin-left: 0; }
.ld-pop-head { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.ld-pop-rank { font-family: var(--ld-mono); font-size: 12px; background: var(--ld-gold);
    color: var(--ld-ink); padding: 1px 8px; border-radius: 999px; }
.ld-pop-cap { font-family: var(--ld-cond); font-weight: 600; font-size: 11px; letter-spacing: .14em;
    text-transform: uppercase; color: var(--ld-faint); }
.ld-pop-title { display: block; font-family: var(--ld-display); font-weight: 800; font-size: 19px;
    line-height: 1.16; letter-spacing: -.015em; color: var(--ld-ink); text-decoration: none;
    margin-bottom: 7px; text-wrap: pretty; }
.ld-pop-title:hover { color: var(--ld-red); }
.ld-pop-meta { font-family: var(--ld-mono); font-size: 12px; color: var(--ld-muted); margin-bottom: 11px; }
.ld-pop-stars { margin-bottom: 12px; }
.ld-pop-note { font-size: 13.5px; line-height: 1.5; color: var(--ld-body); margin: 0 0 13px; text-wrap: pretty; }
.ld-pop-chips { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.ld-pop-chips .ld-chip { height: 24px; padding: 0 10px; }
.ld-pop-acts { display: flex; align-items: center; gap: 8px; }

/* --- empty state --- */
.ld-empty { background: var(--ld-white); border: 1px solid var(--ld-line); border-radius: 20px;
    padding: 34px; text-align: center; color: var(--ld-body); }

/* ========================== COMMENTS ==================================== */
.ld-comments { margin-top: 52px; }
.ld-signin {
    background: var(--ld-white); border: 2px solid var(--ld-ink); border-radius: 14px;
    box-shadow: 4px 4px 0 var(--ld-gold); padding: 26px 28px;
    display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.ld-signin-copy { flex: 1; min-width: 280px; }
.ld-signin-h { font-family: var(--ld-display); font-weight: 800; font-size: 22px; line-height: 1.2;
    color: var(--ld-ink); margin-bottom: 7px; }
.ld-signin p { font-size: 15px; line-height: 1.5; color: var(--ld-muted); margin: 0; }
.ld-cta {
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px;
    background: var(--ld-red); color: #fffdf8; font-weight: 700; font-size: 15px; text-decoration: none;
    border: 0; cursor: pointer; font-family: var(--ld-text);
    box-shadow: 0 6px 18px rgba(202,33,40,.32);
    transition: transform 120ms cubic-bezier(.16,1,.3,1), background 120ms;
}
.ld-cta:hover { background: var(--ld-red-dark); color: #fffdf8; transform: translateY(-2px); }

.ld-cform { background: var(--ld-white); border: 1px solid var(--ld-line); border-radius: 16px;
    padding: 18px; margin-bottom: 22px; }
.ld-cform textarea {
    width: 100%; border: 1px solid var(--ld-line); border-radius: 12px; padding: 12px 14px;
    font-family: var(--ld-text); font-size: 15px; color: var(--ld-ink-2); background: var(--ld-paper);
    resize: vertical; margin-bottom: 12px;
}
.ld-cform textarea:focus { outline: 2px solid var(--ld-gold); outline-offset: 1px; }

.ld-clist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.ld-crow { display: flex; gap: 14px; background: var(--ld-white); border: 1px solid var(--ld-line);
    border-radius: 16px; padding: 16px 18px; }
.ld-cavatar img, .ld-cavatar .avatar-mini {
    width: 38px; height: 38px; border-radius: 999px; object-fit: cover; display: inline-flex;
    align-items: center; justify-content: center; color: #fff; font-weight: 700;
}
.ld-cbody { flex: 1; min-width: 0; }
.ld-chead { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 5px; }
.ld-cauthor { font-weight: 700; font-size: 15px; color: var(--ld-ink); text-decoration: none; }
.ld-cauthor:hover { color: var(--ld-red); }
.ld-ctime { font-family: var(--ld-mono); font-size: 12px; color: var(--ld-faint); }
.ld-cdel { margin-left: auto; border: 0; background: transparent; color: var(--ld-faint);
    font-size: 18px; line-height: 1; cursor: pointer; }
.ld-cdel:hover { color: var(--ld-red); }
.ld-ctext { font-size: 15px; line-height: 1.55; color: var(--ld-body); margin: 0; }

/* =========================== RIGHT RAIL ================================= */
.ld-rail { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 84px; }
.ld-card { background: var(--ld-white); border: 1px solid var(--ld-line); border-radius: 20px;
    padding: 22px; box-shadow: 0 2px 14px rgba(21,23,40,.06); }
.ld-card-h { font-family: var(--ld-cond); font-weight: 700; font-size: 14px; letter-spacing: .14em;
    text-transform: uppercase; color: var(--ld-ink); border-bottom: 2.5px solid var(--ld-red);
    display: inline-block; padding-bottom: 8px; margin-bottom: 18px; }
.ld-card-h.is-gold { border-bottom-color: var(--ld-gold); }
.ld-stat-list { display: flex; flex-direction: column; gap: 14px; }
.ld-stat { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ld-stat-k { font-family: var(--ld-cond); font-weight: 600; font-size: 13px; letter-spacing: .12em;
    text-transform: uppercase; color: var(--ld-muted); }
.ld-stat-v { font-family: var(--ld-mono); font-size: 15px; color: var(--ld-ink); }
.ld-stat-v.is-gold { color: var(--ld-gold-700); }
.ld-stat-v.is-red { color: var(--ld-red); }

.ld-decades { display: flex; flex-direction: column; gap: 13px; }
.ld-decade-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.ld-decade-k { font-family: var(--ld-mono); font-size: 13px; color: var(--ld-ink-2); }
.ld-decade-n { font-family: var(--ld-mono); font-size: 12px; color: var(--ld-faint); }
.ld-decade-bar { height: 6px; border-radius: 999px; background: var(--ld-line-2); overflow: hidden; }
.ld-decade-bar > span { display: block; height: 100%; border-radius: 999px; }

.ld-rail-cta { background: var(--ld-ink); border-radius: 20px; padding: 24px; position: relative; overflow: hidden; }
.ld-rail-cta::before { content: ''; position: absolute; top: -70px; right: -50px; width: 220px; height: 220px;
    border-radius: 50%; background: radial-gradient(circle, rgba(253,201,73,.26), rgba(253,201,73,0) 70%); }
.ld-rail-cta > div { position: relative; }
.ld-rail-cta-h { font-family: var(--ld-display); font-weight: 800; font-size: 23px; line-height: 1.14;
    color: #fff; margin-bottom: 10px; }
.ld-rail-cta-h em { color: var(--ld-gold); font-style: italic; }
.ld-rail-cta p { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.72); margin: 0 0 18px; }
.ld-rail-cta .ld-cta { padding: 11px 18px; font-size: 14px; box-shadow: 0 6px 18px rgba(202,33,40,.4); }

/* =========================== RESPONSIVE ================================= */
@media (max-width: 1080px) {
    .ld-hero-inner { grid-template-columns: minmax(0,1fr); gap: 34px; }
    .ld-fan { justify-content: flex-start; }
    .ld-main { grid-template-columns: minmax(0,1fr); gap: 34px; }
    .ld-rail { position: static; }
    .ld-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .ld-cell:nth-child(4n+1) .ld-pop, .ld-cell:nth-child(4n) .ld-pop { left: 50%; right: auto; transform: translate(-50%,100%); }
    .ld-cell:nth-child(4n+1) .ld-pop-arrow, .ld-cell:nth-child(4n) .ld-pop-arrow { left: 50%; right: auto; margin-left: -7px; }
}
@media (max-width: 780px) {
    .ld-hero-inner, .ld-bar-inner, .ld-main { padding-left: 20px; padding-right: 20px; }
    .ld-hero-title { font-size: 40px; }
    .ld-hero-desc { font-size: 16px; }
    .ld-fan-card { width: 112px; height: 168px; }
    .ld-bar-inner { gap: 12px; }
    .ld-progress { width: 96px; }
    .ld-row { gap: 14px; padding: 16px; border-radius: 16px; }
    .ld-rank { width: 34px; font-size: 20px; }
    .ld-poster { width: 84px; height: 126px; }
    .ld-row-title { font-size: 20px; }
    .ld-row-top { flex-direction: column; gap: 8px; }
    .ld-score { align-items: flex-start; }
    .ld-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
    .ld-pop { display: none; }
    .ld-signin { padding: 20px; }
}
