@font-face {
    font-family: "Rubik FS";
    src: url("/assets/Rubik.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
}

:root {
    --page: #0e0f24;
    --surface: #171839;
    --surface-2: #1d1f45;
    --ink: #f4f2f7;
    --ink-2: #c3c0d6;
    --ink-3: #8a87a3;
    --hairline: rgb(255 255 255 / 0.10);
    --orange: #ff9c64;
    --pink: #f9579a;
    --grad: linear-gradient(90deg, #ffa05f, #f9579a);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    background: var(--page);
    color: var(--ink);
    font-family: "Rubik FS", Arial, sans-serif;
    line-height: 1.6;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- top bar ---------- */
.topbar {
    position: sticky; top: 0; z-index: 50;
    background: rgb(14 15 36 / 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--hairline);
}
.topbar .wrap {
    display: flex; align-items: center; gap: 16px;
    height: 62px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand .name { font-size: 20px; font-weight: 800; letter-spacing: 0.5px; }
.topnav { display: flex; gap: 20px; margin-inline-start: auto; }
.topnav a {
    color: var(--ink-2); text-decoration: none;
    font-size: 15px; font-weight: 500;
}
.topnav a:hover, .topnav a.current { color: var(--ink); }

/* ---------- hero ---------- */
.hero {
    position: relative;
    display: block;
    text-decoration: none;
    border-radius: 18px;
    overflow: hidden;
    margin: 22px 0 8px;
    min-height: 460px;
    background: var(--surface);
}
.hero img.bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.hero .shade {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgb(10 10 26 / 0.96) 0%, rgb(10 10 26 / 0.55) 42%, rgb(10 10 26 / 0.05) 75%);
}
.hero .content {
    position: absolute; inset-inline: 0; bottom: 0;
    padding: 26px 28px;
}
.badges { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.chip {
    font-size: 13px; font-weight: 600;
    padding: 3px 12px; border-radius: 999px;
    background: var(--grad); color: #1a1030;
}
.badge {
    font-size: 13px; font-weight: 600;
    padding: 3px 12px; border-radius: 999px;
    border: 1px solid var(--orange); color: var(--orange);
}
.badge.reported { border-color: var(--ink-3); color: var(--ink-3); }
.badges .date { color: var(--ink-2); font-size: 13.5px; }
.hero h1 {
    margin: 0 0 10px;
    font-size: 42px; font-weight: 800; line-height: 1.2;
    text-shadow: 0 2px 14px rgb(0 0 0 / 0.5);
}
.hero .dek {
    margin: 0 0 14px;
    font-size: 17.5px; color: var(--ink-2);
    max-width: 720px;
}
.readlink { color: var(--orange); font-weight: 700; font-size: 16px; }

/* ---------- sections ---------- */
.section { margin: 34px 0; }
.section-title {
    display: flex; align-items: center; gap: 12px;
    margin: 0 0 18px;
    font-size: 26px; font-weight: 800;
}
.section-title::before {
    content: ""; width: 5px; height: 26px; border-radius: 3px;
    background: var(--grad);
}

/* ---------- card grid ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.15s ease, border-color 0.15s ease;
}
a.card:hover { transform: translateY(-3px); border-color: rgb(255 255 255 / 0.25); }
.card .thumb {
    width: 100%; aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #0a0b1e;
}
.card .thumb-contain {
    width: 100%; aspect-ratio: 16 / 10;
    object-fit: contain;
    padding: 18px;
    background: #0a0b1e;
}
.card .body { padding: 12px 14px 14px; }
.card h3 { margin: 0 0 8px; font-size: 15.5px; font-weight: 700; line-height: 1.45; }
.card .meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); }
.card .meta .badge, .card .meta .chip { font-size: 11.5px; padding: 2px 9px; }

/* ---------- news list ---------- */
.news-row {
    display: flex; gap: 16px; align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--hairline);
    text-decoration: none;
}
.news-row .thumb {
    width: 168px; aspect-ratio: 16 / 10; flex-shrink: 0;
    object-fit: cover; border-radius: 10px;
    background: #0a0b1e;
}
.news-row h3 { margin: 0 0 6px; font-size: 19px; font-weight: 700; line-height: 1.4; }
.news-row .dek { margin: 0 0 8px; color: var(--ink-2); font-size: 14.5px; }
.news-row .meta { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--ink-3); }
.news-row .meta .badge, .news-row .meta .chip { font-size: 11.5px; padding: 2px 9px; }
a.news-row:hover h3 { color: var(--orange); }

/* ---------- article ---------- */
.article-hero {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    margin: 22px 0 30px;
    min-height: 380px;
}
.article-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-hero .shade {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgb(10 10 26 / 0.95) 0%, rgb(10 10 26 / 0.4) 50%, rgb(10 10 26 / 0.05) 80%);
}
.article-hero .content { position: absolute; inset-inline: 0; bottom: 0; padding: 24px 28px; }
.article-hero h1 { margin: 0; font-size: 36px; font-weight: 800; line-height: 1.25; text-shadow: 0 2px 14px rgb(0 0 0 / 0.5); }

.article-body { max-width: 740px; margin: 0 auto; }
.lede { font-size: 19px; color: var(--ink-2); line-height: 1.75; margin: 0 0 26px; }
.article-body h2 {
    font-size: 23px; font-weight: 800;
    margin: 36px 0 14px;
    padding-inline-start: 12px;
    border-inline-start: 4px solid var(--orange);
}
.article-body p { margin: 0 0 16px; font-size: 16.5px; color: var(--ink-2); }
.article-body figure { margin: 22px 0; }
.article-body figure img { border-radius: 12px; width: 100%; }
.article-body figcaption { color: var(--ink-3); font-size: 13px; margin-top: 8px; }
.tl { border-top: 1px solid var(--hairline); }
.tl-row { display: flex; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.tl-row .when { flex-shrink: 0; width: 130px; font-weight: 700; font-size: 15px; }
.tl-row .what { color: var(--ink-2); font-size: 15.5px; }
.facts { border-top: 1px solid var(--hairline); }
.facts .fact { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hairline); font-size: 15.5px; }
.facts .fact .k { color: var(--ink-2); }
.facts .fact .v { font-weight: 700; text-align: left; }
.quote {
    background: var(--surface);
    border-inline-start: 4px solid var(--pink);
    border-radius: 12px;
    padding: 20px 22px;
    font-size: 17.5px; line-height: 1.8;
    margin: 24px 0;
}
.quote .src { color: var(--ink-3); font-size: 13.5px; margin-top: 12px; }
.sources a { color: var(--orange); text-decoration: none; }
.sources a:hover { text-decoration: underline; }

/* ---------- search ---------- */
.searchbox {
    width: 100%;
    padding: 14px 18px;
    font-size: 17px; font-family: inherit;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 14px;
    margin: 22px 0 10px;
}
.searchbox:focus { outline: none; border-color: var(--orange); }
.searchbox::placeholder { color: var(--ink-3); }
.empty { color: var(--ink-3); padding: 22px 0; }

/* ---------- footer ---------- */
.footer {
    margin-top: 56px;
    border-top: 1px solid var(--hairline);
    padding: 26px 0 40px;
    color: var(--ink-3); font-size: 14px;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 34px; }
    .article-hero h1 { font-size: 30px; }
}
@media (max-width: 600px) {
    .topbar .wrap { height: auto; flex-wrap: wrap; row-gap: 2px; padding-top: 10px; padding-bottom: 10px; }
    .topnav { width: 100%; gap: 16px; }
    .hero { min-height: 430px; }
    .hero h1 { font-size: 26px; }
    .hero .dek { font-size: 15.5px; }
    .hero .content { padding: 18px; }
    .article-hero { min-height: 300px; }
    .article-hero h1 { font-size: 23px; }
    .article-hero .content { padding: 16px 18px; }
    .section-title { font-size: 21px; }
    .card h3 { font-size: 13.5px; }
    .news-row .thumb { width: 108px; }
    .news-row h3 { font-size: 16px; }
    .news-row .dek { display: none; }
    .tl-row { flex-direction: column; gap: 4px; }
    .tl-row .when { width: auto; }
}

.sources a { display: block; padding: 7px 0; }
.sources .src-date { color: var(--ink-3); }

/* fixes: light backdrop for dark monochrome logos; explicit space above card meta */
.card .thumb-light, .fs-card .thumb-light, .news-row .thumb-light, .fs-news-row .thumb-light { background: #f5f5f7; }
.fs-card .meta, .card .meta { margin-top: 10px; }

/* clickable cards + episodes embed */
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { border-color: var(--ink-3, #5a5f8a); }
.embed { border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--hairline); }
.embed iframe { display: block; }
.embed-note { margin: 8px 2px 0; font-size: 12.5px; color: var(--ink-3, #8a8fb3); }
.embed-note a { color: inherit; }

/* ---------- polish pass ---------- */
html { scroll-behavior: smooth; }
::selection { background: rgb(249 87 154 / 0.35); }
a:focus-visible, button:focus-visible, .searchbox:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
    border-radius: 6px;
}

/* card hover */
a.card { transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
a.card:hover { transform: translateY(-3px); border-color: var(--orange); box-shadow: 0 12px 32px rgb(0 0 0 / 0.38); }
a.card:hover h3 { color: var(--orange); }
.card .thumb, .card .thumb-contain { transition: transform 0.25s ease; }
a.card:hover .thumb, a.card:hover .thumb-contain { transform: scale(1.03); }

/* hero hover */
.hero img.bg { transition: transform 0.5s ease; }
.hero:hover img.bg { transform: scale(1.025); }

/* news rows: hover background + contain thumbs */
.news-row { border-radius: 12px; padding-inline: 12px; margin-inline: -12px; transition: background 0.15s ease; }
a.news-row:hover { background: rgb(255 255 255 / 0.06); }
.news-row .thumb-contain { object-fit: contain; padding: 8px; background: #0a0b1e; }
.news-row .meta { row-gap: 4px; }
.news-row .meta span:last-child { white-space: nowrap; }

/* article hero: contain/plate variant for logos and product shots */
.article-hero.contain-hero {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 42px 24px 118px;
    background:
        radial-gradient(ellipse 90% 120% at 50% 0%, rgb(255 160 95 / 0.10) 0%, transparent 55%),
        radial-gradient(ellipse 120% 140% at 50% 110%, rgb(249 87 154 / 0.12) 0%, transparent 60%),
        var(--surface);
}
.article-hero.contain-hero img.plate {
    position: static;
    max-width: min(520px, 78%);
    max-height: 240px;
    width: auto; height: auto;
    border-radius: 14px;
    box-shadow: 0 18px 50px rgb(0 0 0 / 0.45);
}
.article-hero.contain-hero img.plate-light { background: #ffffff; padding: 26px 34px; }
.article-hero.contain-hero .shade {
    background: linear-gradient(to top, rgb(10 10 26 / 0.92) 0%, rgb(10 10 26 / 0.35) 45%, transparent 70%);
}

/* archive topic filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.filter {
    font-family: inherit; font-size: 13.5px; font-weight: 600;
    color: var(--ink-2);
    background: var(--surface);
    border: 1px solid var(--hairline);
    padding: 6px 16px; border-radius: 999px;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.filter:hover { border-color: var(--orange); color: var(--ink); }
.filter.active { background: var(--grad); color: #1a1030; border-color: transparent; }

/* related stories */
.related { margin-top: 44px; }
.related-grid { grid-template-columns: repeat(3, 1fr); }

/* footer links */
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.footer-links a { color: var(--ink-2); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--orange); }
.footer-note { margin: 0; }

@media (max-width: 600px) {
    .news-row { padding-inline: 8px; margin-inline: -8px; }
    .article-hero.contain-hero { padding: 28px 18px 100px; }
    .article-hero.contain-hero img.plate { max-height: 170px; }
    .article-hero.contain-hero img.plate-light { padding: 16px 20px; }
    .related-grid { grid-template-columns: 1fr; }
}

/* episode archive list */
.eplist-title { margin: 20px 0 10px; font-size: 16px; font-weight: 800; }
.eplist { display: flex; flex-direction: column; gap: 10px; }
.epcard { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px; padding: 12px 16px; text-decoration: none; color: inherit; transition: border-color 0.15s ease, transform 0.15s ease; }
.epcard:hover { border-color: var(--ink-2); transform: translateY(-1px); }
.ep-play { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: #1DB954; color: #04130a; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.ep-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ep-title { font-size: 14.5px; font-weight: 700; text-align: left; }
.ep-meta { font-size: 12.5px; color: var(--ink-2); }
