/* Quest Collective TV site styles (every page). Palette and type from brand/DESIGN.md:
   Pan Black foundation, red for alerts and actions, gold for the wordmark only,
   Playfair Display upright for headlines, Inter for everything else. */
:root {
    --black: #0B0B0B;
    --surface: #111418;
    --surface-2: #181C22;
    --line: rgba(236, 240, 241, 0.12);
    --red: #E74C3C;          /* brand red: accents, borders, large type */
    --red-deep: #C0392B;     /* any red BEHIND white text: 5.44:1 (brand red is only 3.82:1) */
    --red-press: #A93226;    /* hover/press on red buttons */
    --red-text: #F0705F;     /* red text on dark cards: 5.85:1 on --surface-2 */
    --gold: #F1C40F;
    --text: #ECF0F1;
    --muted: #9CA3AF;
    --display: "Playfair Display", Georgia, serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --pad: clamp(20px, 5vw, 72px);
    --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
/* While the cookie banner is open it covers the bottom of the screen; keep focused items clear of it */
html:has(#qctv-consent) { scroll-padding-bottom: 240px; }
body {
    margin: 0;
    background: var(--black);
    color: var(--text);
    font: 400 17px/1.6 var(--sans);
    -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.12; }
h1, h2 { font-family: var(--display); }
p { margin: 0; }

.wrap { width: 100%; padding: 0 var(--pad); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--text); color: var(--black); padding: 8px 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Buttons: square-cornered, never pills */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 0 22px;
    border-radius: var(--radius);
    font: 600 16px/1 var(--sans);
    text-decoration: none; cursor: pointer;
    border: 1px solid transparent;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-red { background: var(--red-deep); color: #fff; }
.btn-red:hover { background: var(--red-press); }
.btn-line { border-color: rgba(236, 240, 241, 0.55); color: var(--text); background: transparent; }
.btn-line:hover { border-color: var(--text); background: rgba(236, 240, 241, 0.08); }
.btn-dark { background: var(--black); color: var(--text); }
.btn-dark:hover { background: #222; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Header */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    transition: background-color .25s ease, border-color .25s ease;
    border-bottom: 1px solid transparent;
}
.site-header.solid { background: rgba(11, 11, 11, 0.94); border-bottom-color: var(--line); backdrop-filter: blur(8px); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand-word { font: 800 26px/1 var(--sans); letter-spacing: -0.5px; }
.brand-word .qc { color: var(--red); }
.brand-word .tv { color: var(--gold); }
.brand-sub { font: 500 14px/1 var(--sans); color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 16px; color: var(--text); opacity: .86; }
.site-nav a:not(.btn):hover { opacity: 1; color: #fff; }
.menu-btn { display: none; }

/* Hero */
.hero { position: relative; min-height: max(640px, 100svh); display: flex; align-items: flex-end; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero-shade {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(11,11,11,.92) 0%, rgba(11,11,11,.74) 34%, rgba(11,11,11,.18) 64%, rgba(11,11,11,.05) 100%),
        linear-gradient(0deg, rgba(11,11,11,.95) 0%, rgba(11,11,11,0) 42%);
}
.hero-copy { position: relative; padding-bottom: clamp(56px, 10vh, 110px); max-width: 860px; margin-right: auto; }
.hero-new {
    display: inline-flex; align-items: center; gap: 12px;
    color: var(--text); text-decoration: none; font-weight: 500; font-size: 16px;
    margin-bottom: 22px;
}
.hero-new:hover { text-decoration: underline; text-underline-offset: 4px; }
.tag-red { background: var(--red-deep); color: #fff; font-weight: 700; font-size: 13px; padding: 4px 8px; border-radius: 3px; }
.hero h1 { font-size: clamp(44px, 7.2vw, 104px); letter-spacing: -1px; max-width: 12ch; }
.hero-lede { margin-top: 22px; font-size: clamp(17px, 1.6vw, 21px); color: #D8DDDF; max-width: 40ch; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }

/* Play/Pause for looping videos: small, bottom right of the video */
.video-toggle {
    position: absolute; z-index: 2; bottom: 14px; right: var(--pad);
    min-height: 32px; min-width: 64px; padding: 0 12px; font-size: 13px;
    background: rgba(11, 11, 11, .5); border-color: rgba(236, 240, 241, .35); color: #D8DDDF;
}

/* Bands */
.band { padding: clamp(64px, 9vw, 120px) 0; }
.band-surface { background: var(--surface); }
.band-red { background: var(--red-deep); color: #fff; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.section-head h2, .show-copy h2, .news h2, .support h2 { font-size: clamp(32px, 4vw, 52px); }
.text-link { color: var(--text); font-weight: 600; text-underline-offset: 5px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 14px; font-weight: 500; }

/* Latest */
.latest { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.latest-thumb { position: relative; display: block; border-radius: var(--radius); overflow: hidden; }
.latest-thumb img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s ease; }
.latest-thumb:hover img { transform: scale(1.02); }
.latest-copy .meta { margin-bottom: 14px; }
.latest-copy .meta span { color: var(--text); }
.latest-copy h2 { font-size: clamp(28px, 3vw, 42px); }
.latest-copy > p { margin-top: 16px; color: #D2D7DA; }
.inside { margin: 20px 0 28px; padding: 0; list-style: none; display: grid; gap: 8px; }
.inside li { padding-left: 18px; position: relative; color: #D2D7DA; }
.inside li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--red); }

/* Episodes */
.ep-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.ep { text-decoration: none; display: block; }
.ep img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); margin-bottom: 14px; transition: opacity .2s ease; }
.ep:hover img { opacity: .82; }
.ep .meta { margin-bottom: 6px; }
.ep h3 { font: 600 18px/1.35 var(--sans); }
.ep:hover h3 { text-decoration: underline; text-underline-offset: 4px; }

/* Hosts */
.host-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
.host img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); margin-bottom: 16px; }
.host h3 { font: 700 22px/1.2 var(--sans); }
.host .role { color: var(--red); font-weight: 600; font-size: 15px; margin: 4px 0 8px; }
.host p:not(.role) { color: #C9CED1; font-size: 16px; }
.fine { margin-top: 32px; color: var(--muted); font-size: 14px; }

/* Show */
.show { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.show-media { position: relative; }
.show-media .video-toggle { right: 12px; bottom: 12px; }
.show-media video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--surface); }
.segments { margin: 28px 0 0; display: grid; gap: 0; }
.segments div { padding: 18px 0; border-top: 1px solid var(--line); }
.segments div:last-child { border-bottom: 1px solid var(--line); }
.segments dt { font-weight: 700; font-size: 19px; }
.segments dd { margin: 4px 0 0; color: #C9CED1; }

/* Newsletter */
.news { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.news p { margin-top: 12px; font-size: 18px; color: #fff; }
.signup { display: grid; grid-template-columns: 1fr auto; gap: 12px; position: relative; }
.signup input[type="email"] {
    min-height: 54px; padding: 0 16px; border-radius: var(--radius);
    border: 1px solid rgba(0,0,0,.25); background: #fff; color: var(--black);
    font: 400 17px var(--sans);
}
.signup .btn { min-height: 54px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { grid-column: 1 / -1; min-height: 1.4em; font-weight: 600; font-size: 15px; }

/* Support */
.support { max-width: 900px; }
.support p { margin: 14px 0 26px; color: #C9CED1; font-size: 18px; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 56px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid p { margin-top: 14px; color: var(--muted); }
.footer-grid h2 { font: 700 15px/1 var(--sans); margin-bottom: 14px; color: var(--text); }
.footer-grid nav a { display: block; text-decoration: none; color: #C9CED1; padding: 5px 0; }
.footer-grid nav a:hover { color: #fff; text-decoration: underline; }
.footer-fine { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; display: grid; gap: 10px; }

/* Inner pages: the header is always solid and the page starts below it */
.page { padding-top: 76px; }
.page-head { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(38px, 5.4vw, 72px); letter-spacing: -0.5px; }
.page-head .meta { margin-top: 14px; }

/* Legal pages: long-form reading column */
.legal { max-width: 780px; padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(64px, 8vw, 110px); }
.legal section + section { margin-top: 40px; }
.legal h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 14px; }
.legal h3 { font: 700 18px/1.3 var(--sans); margin: 22px 0 8px; }
.legal p, .legal li { color: #D2D7DA; }
.legal p + p, .legal ul + p { margin-top: 12px; }
.legal ul { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 6px; }
.legal a { color: var(--text); text-underline-offset: 3px; }
.legal a:hover { color: #fff; }
.legal strong { color: var(--text); }

/* 404 */
.notfound { min-height: calc(100svh - 76px); display: flex; flex-direction: column; justify-content: center; padding-top: 56px; padding-bottom: 72px; max-width: 1180px; }
.notfound h1 { font-size: clamp(40px, 6vw, 80px); letter-spacing: -0.5px; }
.notfound > p { margin-top: 18px; font-size: 19px; color: #D2D7DA; max-width: 46ch; }
.notfound .hero-actions { margin-top: 30px; }
.notfound-links { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.notfound-links a { color: #C9CED1; font-weight: 500; text-underline-offset: 4px; }

/* Links page (link in bio): full-screen video, then one featured episode and grouped tiles */
.bio-hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.bio-hero .hero-video { object-position: 62% 50%; }
.bio-hero-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,11,11,1) 0%, rgba(11,11,11,.82) 30%, rgba(11,11,11,.2) 62%, rgba(11,11,11,.45) 100%); }
.bio-topbar { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 20px var(--pad); }
.bio-hero-copy { position: relative; width: 100%; max-width: 900px; margin: 0 auto; padding: 0 var(--pad) clamp(60px, 9vh, 88px); text-align: center; }
.bio-hero-copy h1 { font-size: clamp(40px, 7vw, 76px); letter-spacing: -0.5px; text-wrap: balance; }
.bio-hero-copy p { margin: 14px auto 0; max-width: 34ch; font-size: 18px; color: #D8DDDF; }
.bio-cta { margin-top: 26px; width: 100%; max-width: 420px; min-height: 56px; font-size: 17px; }
.bio-body { max-width: 640px; margin: 0 auto; padding: 8px var(--pad) 64px; }
.bio-feature { display: block; text-decoration: none; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.bio-feature-media { position: relative; display: block; }
.bio-feature-media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.bio-feature-copy { display: block; padding: 16px 18px 20px; }
.bio-feature-copy .meta { align-items: center; }
.bio-feature-title { display: block; margin-top: 10px; font: 700 21px/1.3 var(--sans); }
.bio-feature-go { display: block; margin-top: 12px; color: var(--red-text); font-weight: 600; font-size: 15px; }
.bio-feature:hover .bio-feature-title { text-decoration: underline; text-underline-offset: 4px; }
.bio-group { margin-top: 44px; }
.bio-group h2 { font: 700 15px/1 var(--sans); color: var(--muted); margin-bottom: 14px; }
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile {
    display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
    min-height: 120px; padding: 18px; border-radius: var(--radius);
    background: var(--surface-2); border: 1px solid var(--line); text-decoration: none;
    transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.tile:hover { border-color: rgba(236, 240, 241, .4); background: #1E232A; transform: translateY(-2px); }
.tile-wide { grid-column: 1 / -1; min-height: 96px; }
.tile-red { background: var(--red-deep); border-color: var(--red-deep); color: #fff; }
.tile-red:hover { background: var(--red-press); border-color: var(--red-press); }
.tile-title { font: 700 18px/1.25 var(--sans); }
.tile-sub { color: var(--muted); font-size: 15px; }
.tile-red .tile-sub { color: #fff; }
.tile-faces { display: flex; }
.tile-faces img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 2px solid var(--surface-2); }
.tile-faces img + img { margin-left: -9px; }
.bio-signup { grid-template-columns: 1fr auto; }
.bio-signup input[type="email"] { border-color: var(--line); }
.bio-signup .form-msg { color: var(--muted); font-weight: 500; }
.links-copy { margin-top: 40px; text-align: center; }
.links-copy .btn { min-height: 44px; }
.links-copy .form-msg { margin-top: 10px; color: var(--muted); }
.bio-footer { border-top: 1px solid var(--line); padding: 28px var(--pad) 40px; text-align: center; color: var(--muted); font-size: 14px; }
.bio-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin-bottom: 12px; }
.bio-footer a { display: inline-block; padding: 4px 2px; color: #C9CED1; text-underline-offset: 3px; }

/* Cookie banner (built by consent.js) */
#qctv-consent {
    position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%);
    width: min(calc(100% - 32px), 760px); z-index: 90;
    background: var(--surface-2); color: var(--text);
    border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 24px 48px rgba(0,0,0,.45);
    padding: 18px 22px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
    font-family: var(--sans);
}
.qctv-consent-text { flex: 1 1 280px; font-size: 15px; line-height: 1.55; }
.qctv-consent-text strong { color: var(--gold); margin-right: 4px; }
.qctv-consent-text a { color: var(--text); text-underline-offset: 3px; }
.qctv-consent-actions { display: flex; gap: 10px; }
.qctv-consent-btn { appearance: none; cursor: pointer; font: 600 15px/1 var(--sans); padding: 0 18px; min-height: 42px; border-radius: var(--radius); border: 1px solid transparent; }
.qctv-consent-btn.reject { background: transparent; color: var(--text); border-color: rgba(236,240,241,.35); }
.qctv-consent-btn.accept { background: var(--red-deep); color: #fff; }
.qctv-consent-btn.accept:hover { background: var(--red-press); }

/* Tablet */
@media (max-width: 1100px) {
    .ep-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .host-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .latest, .show, .news { grid-template-columns: 1fr; }
}

/* Phone */
@media (max-width: 760px) {
    body { font-size: 16px; }
    .header-row { height: 64px; }
    .page { padding-top: 64px; }
    .notfound { min-height: calc(100svh - 64px); }
    .brand-sub { display: none; }
    .menu-btn {
        display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
        background: transparent; color: var(--text); border: 1px solid rgba(236,240,241,.4);
        border-radius: var(--radius); font: 600 15px var(--sans);
    }
    .site-nav {
        display: none; position: absolute; top: 64px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--black); border-bottom: 1px solid var(--line); padding: 8px var(--pad) 20px;
    }
    .site-nav.open { display: flex; }
    .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
    .site-nav .btn { margin-top: 16px; }
    .hero { min-height: max(600px, 92svh); }
    .hero-video { object-position: 70% 50%; }
    .hero-shade {
        background:
            linear-gradient(0deg, rgba(11,11,11,.97) 0%, rgba(11,11,11,.8) 42%, rgba(11,11,11,.2) 75%, rgba(11,11,11,.35) 100%);
    }
    .hero-actions .btn { flex: 1 1 100%; }
    .ep-grid { grid-template-columns: 1fr; }
    .host-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
    .host h3 { font-size: 19px; }
    .host p:not(.role) { font-size: 15px; }
    .signup, .bio-signup { grid-template-columns: 1fr; }
    .bio-hero .hero-video { object-position: 50% 50%; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
    .section-head { flex-direction: column; gap: 8px; }
    #qctv-consent { bottom: 0; border-radius: var(--radius) var(--radius) 0 0; width: 100%; }
    .qctv-consent-actions { width: 100%; }
    .qctv-consent-btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .latest-thumb img, .ep img, .tile { transition: none; }
    .tile:hover { transform: none; }
}
