:root {
    color-scheme: dark;
    --background: #090a0c;
    --panel: #121418;
    --panel-2: #191b20;
    --panel-3: #202329;
    --text: #f4f4f5;
    --muted: #9b9ea6;
    --line: rgba(255, 255, 255, .1);
    --line-strong: rgba(255, 255, 255, .18);
    --accent: #e8aa46;
    --accent-dark: #2b2113;
    --danger: #ef6b6b;
    --success: #72c991;
    --content: 1440px;
    --header-height: 70px;
}

* { box-sizing: border-box; }
html { background: var(--background); scroll-behavior: smooth; }
body {
    min-width: 320px;
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { color: inherit; font: inherit; }
button { border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { flex: none; }
::selection { background: rgba(232, 170, 70, .32); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.site-shell { min-height: 100vh; overflow: clip; }
.skip-link { position: fixed; z-index: 200; top: 10px; left: 10px; padding: 10px 14px; background: white; color: black; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.eyebrow { margin: 0 0 13px; color: var(--accent); font-size: 11px; font-weight: 750; letter-spacing: 1.7px; text-transform: uppercase; }
.muted { color: var(--muted); }

.topbar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    height: var(--header-height);
    display: grid;
    grid-template-columns: 190px 1fr 190px;
    align-items: center;
    padding: 0 clamp(24px, 3vw, 46px);
    background: rgba(7, 8, 10, .96);
    border-bottom: 1px solid rgba(255, 255, 255, .055);
    transition: background-color .18s ease, border-color .18s ease;
}
.topbar.is-scrolled { background: #08090b; border-color: var(--line); }
.wordmark { display: inline-flex; align-items: center; width: fit-content; line-height: 0; }
.brand-logo { width: 158px; height: auto; }
.desktop-nav { display: flex; justify-content: center; gap: clamp(18px, 2.2vw, 32px); }
.desktop-nav a { position: relative; padding: 25px 0 21px; color: #b6b8bd; font-size: 13.5px; font-weight: 560; transition: color .16s ease; }
.desktop-nav a:hover, .desktop-nav a.active { color: white; }
.desktop-nav a.active::after { content: ""; position: absolute; right: 0; bottom: 14px; left: 0; height: 2px; background: var(--accent); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.icon-link, .login-link { display: inline-flex; align-items: center; gap: 8px; color: #c8c9cc; font-size: 13px; }
.icon-link:hover, .login-link:hover { color: white; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--panel-3); border: 1px solid var(--line-strong); font-size: 13px; font-weight: 700; }
.bottom-nav { display: none; }

.flash-stack { position: fixed; z-index: 90; top: 84px; right: 22px; width: min(390px, calc(100vw - 40px)); display: grid; gap: 8px; }
.flash { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 13px 14px; background: #17191e; border: 1px solid var(--line-strong); box-shadow: 0 16px 36px rgba(0, 0, 0, .35); font-size: 13px; }
.flash-success > svg { color: var(--success); }
.flash-error > svg { color: var(--danger); }
.flash button { display: grid; place-items: center; padding: 4px; background: transparent; color: var(--muted); }

.hero { position: relative; height: min(82vh, 780px); min-height: 640px; overflow: hidden; background: #0b0c0f; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 52%; filter: saturate(.68) contrast(1.08) brightness(.72); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 5, 7, .98) 0%, rgba(4, 5, 7, .86) 28%, rgba(4, 5, 7, .42) 58%, rgba(4, 5, 7, .12) 100%); box-shadow: inset 0 -210px 145px rgba(9, 10, 12, .98); }
.hero-copy { position: absolute; z-index: 2; bottom: 105px; left: clamp(26px, 5.4vw, 82px); max-width: 580px; }
.hero h1 { margin: 0; font-size: clamp(42px, 5vw, 76px); font-weight: 790; line-height: .92; letter-spacing: -3.8px; }
.hero-title-logo { width: auto; max-width: min(420px, 80vw); max-height: 150px; object-fit: contain; object-position: left center; }
.hero-meta { margin: 22px 0 0; color: #c7c9ce; font-size: 13.5px; }
.hero-description { max-width: 520px; display: -webkit-box; overflow: hidden; margin: 17px 0 0; color: #dadbde; font-size: 15px; line-height: 1.62; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 27px; }
.hero-score { position: absolute; z-index: 2; right: clamp(28px, 4vw, 62px); bottom: 110px; display: grid; min-width: 125px; padding: 15px 18px; background: linear-gradient(90deg, rgba(232, 170, 70, .12), rgba(11, 12, 15, .82)); border-left: 2px solid var(--accent); backdrop-filter: blur(8px); }
.hero-score strong { font-size: 22px; }
.hero-score span { color: #c5c7cc; font-size: 9.5px; letter-spacing: .8px; text-transform: uppercase; }
.hero-empty { background: radial-gradient(circle at 70% 40%, rgba(232, 170, 70, .1), transparent 35%), #0b0c0f; }
.home-rows { position: relative; z-index: 3; margin-top: -42px; }

.page-body { width: min(var(--content), 100%); min-height: 72vh; margin: 0 auto; padding: 120px clamp(24px, 3vw, 46px) 80px; }
.page-intro { max-width: 780px; margin-bottom: 34px; }
.page-intro h1 { margin: 0; font-size: clamp(40px, 4.5vw, 64px); line-height: .96; letter-spacing: -2.6px; }
.page-intro > p:not(.eyebrow) { max-width: 660px; margin: 16px 0 0; color: var(--muted); line-height: 1.6; }
.media-section { padding: 0 clamp(24px, 3vw, 46px) 48px; }
.page-body > .media-section, .detail-body > .media-section { padding-inline: 0; }
.section-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-title-row h2 { margin: 0; font-size: 21px; font-weight: 640; letter-spacing: -.45px; }
.section-heading-with-source { display: flex; align-items: center; gap: 10px; }
.trend-source { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; font-weight: 650; letter-spacing: .55px; text-transform: uppercase; }
.trend-source::before { width: 6px; height: 6px; content: ""; background: #777b83; border-radius: 50%; }
.trend-source.is-live { color: #d2d4d8; }
.trend-source.is-live::before { background: #72c991; box-shadow: 0 0 0 3px rgba(114, 201, 145, .13); }
.section-title-row > a { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12.5px; }
.section-title-row > a:hover { color: white; }
.media-rail { position: relative; }
.media-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(155px, 1fr); grid-template-rows: 1fr; gap: 15px; overflow-x: auto; overflow-y: hidden; padding: 1px 34px 15px 1px; scroll-padding-inline: 1px 34px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #34363d transparent; }
.media-row .media-card { width: clamp(155px, 13.7vw, 205px); }
.media-row .media-card { scroll-snap-align: start; }
.rail-button { position: absolute; z-index: 8; top: 42%; width: 42px; height: 58px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line-strong); border-radius: 4px; background: rgba(9, 10, 12, .9); color: white; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); opacity: 0; transform: translateY(-50%); transition: opacity .16s ease, background-color .16s ease; }
.media-rail:hover .rail-button, .rail-button:focus-visible { opacity: 1; }
.rail-button:hover { background: white; color: #090a0c; }
.rail-previous { left: -10px; }
.rail-next { right: -10px; }
.rail-button[hidden] { display: none; }
.editorial-band { max-width: 860px; margin: 30px auto 74px; padding: 10px clamp(24px, 4vw, 64px) 16px; text-align: center; }
.editorial-band h2 { margin: 0; font-size: clamp(34px, 4vw, 58px); letter-spacing: -2px; }
.editorial-band > p:not(.eyebrow) { max-width: 680px; margin: 18px auto; color: var(--muted); line-height: 1.65; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 13px; font-weight: 650; }

.site-footer { width: min(var(--content), 100%); display: grid; grid-template-columns: 1fr auto auto; align-items: end; gap: 34px; margin: 25px auto 0; padding: 44px clamp(24px, 3vw, 46px) 34px; border-top: 1px solid var(--line); color: var(--muted); }
.site-footer p { max-width: 390px; margin: 12px 0 0; font-size: 12px; }
.footer-wordmark { color: white; }
.footer-brand-logo { width: 140px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12px; }
.site-footer nav a:hover { color: white; }
.development-badge { display: inline-flex; align-items: center; gap: 7px; width: fit-content; padding: 7px 9px; border: 1px solid rgba(232, 170, 70, .35); color: var(--accent); font-size: 10.5px; letter-spacing: .6px; text-transform: uppercase; }
.site-footer small { grid-column: 1 / -1; font-size: 10.5px; }
