:root {
  --bg: #fbfbfd; --surface: #ffffff; --ink: #1d1d1f; --ink-2: #6e6e73; --line: rgba(0, 0, 0, .1);
  --fill: #f2f2f5; --brand: #ff6a3d; --navy: #1d2340; --link: #1d2340; --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .06);
  --nav-bg: rgba(251, 251, 253, .78); --radius: 20px;
}
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #000; --surface: #1c1c1e; --ink: #f5f5f7; --ink-2: #a1a1a6; --line: rgba(255, 255, 255, .14); --fill: #1c1c1e;
    --link: #ffb199; --shadow: none; --nav-bg: rgba(0, 0, 0, .72); color-scheme: dark; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; letter-spacing: -.011em; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* navigation */
.nav { position: sticky; top: 0; z-index: 20; background: var(--nav-bg); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; }
.nav .logo img { height: 26px; width: auto; }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.nav ul::-webkit-scrollbar { display: none; }
.nav li a { color: var(--ink-2); text-decoration: none; font-size: 14px; white-space: nowrap; }
.nav li a:hover, .nav li a[aria-current] { color: var(--ink); }

/* type */
h1, h2, h3 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; letter-spacing: -.03em; line-height: 1.08; margin: 0; font-weight: 700; }
h1 { font-size: clamp(36px, 6vw, 64px); }
h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 20px; }
h3 { font-size: 21px; letter-spacing: -.02em; }
.eyebrow { color: var(--ink-2); font-size: 14px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; margin: 0 0 12px; }
.lede { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.4; color: var(--ink-2); max-width: 640px; margin: 20px 0 0; letter-spacing: -.016em; }
.muted { color: var(--ink-2); }

.hero { padding: 72px 0 40px; }
.hero h1 em { font-style: normal; color: var(--brand); }
section { padding: 36px 0; }

/* filter chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 28px 0 0; }
.chip { font: inherit; font-size: 15px; border: 0; background: var(--fill); color: var(--ink); padding: 8px 16px; border-radius: 980px; cursor: pointer; transition: background .2s, color .2s; }
.chip:hover { background: var(--line); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* video grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 36px 24px; }
.card { display: block; color: inherit; text-decoration: none; }
.card[hidden] { display: none; }
.thumb { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: linear-gradient(135deg, var(--fill), var(--line)); aspect-ratio: 16 / 9; box-shadow: var(--shadow); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card:hover .thumb, .card:focus-visible .thumb { transform: translateY(-3px) scale(1.012); box-shadow: 0 2px 4px rgba(0, 0, 0, .08), 0 18px 40px rgba(0, 0, 0, .16); }
.badge { position: absolute; right: 10px; bottom: 10px; background: rgba(0, 0, 0, .72); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 6px; letter-spacing: 0; }
.playmark { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(255, 255, 255, .86); backdrop-filter: blur(8px); display: grid; place-items: center; opacity: 0; transform: scale(.85); transition: opacity .25s, transform .25s; }
.playmark::after { content: ""; border-left: 16px solid #1d1d1f; border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }
.card:hover .playmark, .card:focus-visible .playmark { opacity: 1; transform: scale(1); }
.card h3 { font-size: 18px; line-height: 1.3; letter-spacing: -.015em; margin: 14px 2px 4px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { margin: 0 2px; font-size: 14px; color: var(--ink-2); }
.meta b { color: var(--ink); font-weight: 600; }

/* shorts shelf */
.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 220px); gap: 16px; overflow-x: auto; padding: 4px 24px 24px; margin: 0 -24px; scroll-snap-type: x proximity; scrollbar-width: none; }
.shelf::-webkit-scrollbar { display: none; }
.shelf .card { scroll-snap-align: start; }
.shelf .thumb, .tall { aspect-ratio: 9 / 16; }
.shelf .card h3 { font-size: 16px; }
.shorttag { position: absolute; left: 10px; top: 10px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 980px; letter-spacing: .04em; text-transform: uppercase; }

/* channels */
.channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.channel { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border-radius: var(--radius); padding: 28px; text-decoration: none; color: inherit; box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .3s; min-height: 220px; }
.channel:hover { transform: translateY(-3px); }
.channel .dot { width: 12px; height: 12px; border-radius: 50%; }
.channel h3 { margin-top: 6px; }
.channel p { margin: 0; color: var(--ink-2); font-size: 16px; }
.channel .count { margin-top: auto; font-size: 14px; color: var(--ink-2); }

/* video page */
.crumbs { font-size: 14px; color: var(--ink-2); padding: 28px 0 0; }
.crumbs a { color: var(--ink-2); text-decoration: none; } .crumbs a:hover { color: var(--ink); }
.player { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: #000; box-shadow: var(--shadow); margin: 24px 0 0; padding: 0; border: 0; cursor: pointer; }
.player.is-short { aspect-ratio: 9 / 16; max-width: 400px; margin-left: auto; margin-right: auto; }
.player > a { position: absolute; inset: 0; display: block; }
.player img, .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.player .playmark { opacity: 1; transform: none; width: 76px; height: 76px; margin: -38px 0 0 -38px; }
.player:hover .playmark { transform: scale(1.06); }
.vhead h1 { font-size: clamp(30px, 4.6vw, 48px); margin-top: 8px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 18px 0 0; color: var(--ink-2); font-size: 15px; padding: 0; list-style: none; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 980px; text-decoration: none; font-weight: 600; font-size: 16px; background: var(--brand); color: #1d1d1f; transition: filter .2s; }
.btn:hover { filter: brightness(1.05); }
.btn.ghost { background: var(--fill); color: var(--ink); }
.prose { font-size: 18px; line-height: 1.65; }
.prose h2 { font-size: 28px; margin: 44px 0 12px; } .prose h3 { margin: 28px 0 8px; font-size: 21px; }
.prose p, .prose li { color: var(--ink); } .prose ul, .prose ol { padding-left: 1.3em; }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px 12px 8px 0; text-align: left; vertical-align: top; }
.notice { background: var(--fill); border-radius: 16px; padding: 16px 20px; font-size: 15px; color: var(--ink-2); margin: 36px 0 0; }
details.transcript { margin: 36px 0 0; border-top: 1px solid var(--line); padding-top: 18px; }
details.transcript summary { cursor: pointer; font-weight: 600; font-size: 18px; }
details.transcript p { color: var(--ink-2); font-size: 16px; }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; } .faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 19px; list-style-position: outside; }
.faq p { margin: 10px 0 0; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; margin: 14px 0 0; }
.tags li { background: var(--fill); border-radius: 980px; padding: 4px 12px; font-size: 14px; color: var(--ink-2); }

footer { border-top: 1px solid var(--line); margin-top: 72px; padding: 36px 0 56px; color: var(--ink-2); font-size: 14px; }
footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; margin-bottom: 28px; }
footer h4 { margin: 0 0 8px; color: var(--ink); font-size: 14px; }
footer a { color: var(--ink-2); display: block; text-decoration: none; padding: 3px 0; } footer a:hover { color: var(--ink); }
footer p { max-width: 720px; margin: 0; }

@media (max-width: 640px) {
  .wrap, .narrow { padding: 0 18px; } .shelf { padding: 4px 18px 24px; margin: 0 -18px; }
  .hero { padding: 44px 0 24px; } .grid { gap: 28px 16px; }
  .nav ul { gap: 16px; } .prose { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
