/* Black American Network: red, black and gold from the Black American Heritage Flag */
:root {
  --bg: #FBF8F3; --card: #FFFFFF; --fg: #111111; --muted: #5C564E; --line: #E6DED2;
  --tint: #F4EEE4; --red: #C8102E; --gold: #F2B705; --gold-ink: #8A5F00; --black: #0A0A0A;
  --serif: "Instrument Serif", Georgia, serif; --sans: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.23, 1, .32, 1); --r: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0A0A0A; --card: #151515; --fg: #F4F1EC; --muted: #A9A29A; --line: #2A2725; --tint: #121110; --gold-ink: #F2B705; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #0A0A0A; --card: #151515; --fg: #F4F1EC; --muted: #A9A29A; --line: #2A2725; --tint: #121110; --gold-ink: #F2B705; color-scheme: dark; }

@view-transition { navigation: auto; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1.125rem/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -0.01em; margin: 0 0 .4em; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 7vw, 5.8rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.45rem, 2.2vw, 1.8rem); }
p { margin: 0 0 1em; }
em { font-style: italic; }
.wrap { width: min(1240px, 100% - 2rem); margin-inline: auto; }
.narrow { width: min(720px, 100% - 2rem); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--card); padding: .6rem 1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.kicker { display: inline-block; font: 700 .8rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: .9rem; }
.meta { font-size: .95rem; color: var(--muted); }
.lede { font-size: clamp(1.2rem, 2vw, 1.45rem); color: var(--muted); max-width: 36ch; line-height: 1.45; }
.fine { font-size: .9rem; color: var(--muted); }

/* Heritage stripe + header */
.stripe { height: 8px; background: linear-gradient(105deg, var(--red) 0 33%, var(--black) 33% 67%, var(--red) 67%); box-shadow: inset 0 -2px 0 var(--gold); }
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.logo { font: 400 1.75rem/1 var(--serif); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.logo em { font-style: italic; }
.logo span { font: 700 .72rem var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); margin-left: .45rem; vertical-align: .35em; }
.logo-sm { font-size: 1.5rem; }
.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: 1.02rem; padding: .4rem 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 300ms var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.top-tools { display: flex; gap: .4rem; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--fg); font-size: 1.15rem; cursor: pointer; display: grid; place-items: center; transition: transform 160ms var(--ease); }
.icon-btn:active { transform: scale(.94); }
.menu-btn { display: none; }
@media (max-width: 1120px) {
  .menu-btn { display: grid; }
  .top-tools { margin-left: auto; }
  .nav { position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem 1rem 1.2rem; margin: 0; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 0s 200ms; }
  .nav.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav a { font-size: 1.35rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 1.6rem; border-radius: 999px; font: 600 1.05rem var(--sans); text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform 160ms var(--ease), background-color 200ms ease, color 200ms ease; }
.btn:active { transform: scale(.97); }
.btn-gold { background: var(--gold); color: #000; }
.btn-gold:hover { background: #FFC933; }
.btn-line { border-color: currentColor; background: transparent; }
.btn-line:hover { background: var(--fg); color: var(--bg); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--black); color: #F4F1EC; padding: clamp(4rem, 9vw, 8rem) 0; isolation: isolate; }
.ribbon { position: absolute; inset: -20% -10%; z-index: -1; background:
  linear-gradient(105deg, transparent 0 46%, var(--red) 46% 58%, transparent 58% 63%, var(--red) 63% 69%, transparent 69%);
  opacity: .9; filter: saturate(1.1); animation: drift 18s var(--ease) infinite alternate; }
.ribbon::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 0 58.4%, var(--gold) 58.4% 59.2%, transparent 59.2%); }
@keyframes drift { from { transform: translateX(-3%); } to { transform: translateX(3%); } }
.hero-in { display: grid; gap: 3rem; align-items: end; }
@media (min-width: 980px) { .hero-in { grid-template-columns: 1.25fr .9fr; } }
.date { font-weight: 600; color: var(--gold); margin-bottom: 1.2rem; }
.hero h1 { font-size: clamp(3.4rem, 9.5vw, 8.4rem); line-height: .95; margin-bottom: .3em; }
.hero h1 em { color: var(--gold); }
.hero .lede { color: #CFC8BF; }
.hero .btn-line { color: #F4F1EC; } .hero .btn-line:hover { background: #F4F1EC; color: #000; }
.hero-story { display: block; text-decoration: none; background: rgba(10,10,10,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r); padding: clamp(1.4rem, 3vw, 2.2rem); transition: transform 300ms var(--ease), border-color 300ms; }
.hero-story:hover { transform: translateY(-4px); border-color: var(--gold); }
.hero-story .kicker { color: var(--gold); }
.hero-story h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.hero-story p { color: #CFC8BF; }
.hero-story .meta { color: #A9A29A; }

/* Sections */
.sec { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.sec-tight { padding-top: 1rem; }
.sec-dark { background: var(--black); color: #F4F1EC; --line: #2A2725; --muted: #A9A29A; --card: #151515; }
.sec-tint { background: var(--tint); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); margin-bottom: 2rem; padding-bottom: .6rem; }
.sec-head h2 { margin: 0; }
.sec-head a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.sec-head a:hover { color: var(--red); }
.sec-dark .sec-head a:hover { color: var(--gold); }
.sec-head-sm { margin-top: 4rem; }
.phead { padding: clamp(3.5rem, 8vw, 6rem) 0 2.5rem; }
.phead-dark { background: var(--black); color: #F4F1EC; } .phead-dark .lede { color: #CFC8BF; } .phead-dark .kicker { color: var(--gold); }

/* Story cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), border-color 300ms; }
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(0,0,0,.45); border-color: var(--red); }
.card-link { display: flex; flex-direction: column; height: 100%; padding: 1.6rem; text-decoration: none; }
.card-link .meta { margin-top: auto; padding-top: 1rem; }
.dek { color: var(--muted); }
.bento { display: grid; gap: 1.1rem; }
@media (min-width: 760px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .bento { grid-template-columns: repeat(4, 1fr); } .bento-all { grid-template-columns: repeat(3, 1fr); } .bento-3 { grid-template-columns: repeat(3, 1fr); } }
.story-lead { grid-column: 1 / -1; background: var(--black); color: #F4F1EC; border-color: var(--black); }
.story-lead .card-link { padding: clamp(1.8rem, 4vw, 3rem); }
.story-lead h3 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); max-width: 18ch; }
.story-lead .dek { color: #CFC8BF; font-size: 1.25rem; max-width: 50ch; }
.story-lead .kicker { color: var(--gold); }

/* Videos */
.vids { display: grid; gap: 1.4rem; }
@media (min-width: 900px) { .vids { grid-template-columns: 1.6fr 1fr; } }
.vid-list { display: grid; gap: 1.4rem; align-content: start; }
.vid-grid { display: grid; gap: 1.6rem; }
@media (min-width: 760px) { .vid-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .vid-grid { grid-template-columns: repeat(3, 1fr); } }
.video { margin: 0; }
.play { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; cursor: pointer; background: #000; }
.play img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease), opacity 300ms; opacity: .85; }
.play:hover img { transform: scale(1.04); opacity: 1; }
.play-dot { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: var(--gold); color: #000; display: grid; place-items: center; font-size: 1.4rem; padding-left: 4px; transition: transform 300ms var(--ease); }
.play:hover .play-dot { transform: scale(1.1); }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r); display: block; }
.video figcaption { padding-top: .8rem; display: grid; gap: .2rem; }
.video figcaption strong { font: 400 1.5rem/1.15 var(--serif); }
.video figcaption span { color: var(--muted); font-size: .98rem; }
.video-feature figcaption strong { font-size: 2rem; }

/* Opinion */
.ops { display: grid; gap: 1.1rem; }
@media (min-width: 900px) { .ops { grid-template-columns: repeat(3, 1fr); } }
.op a { display: flex; flex-direction: column; height: 100%; text-decoration: none; padding: 1.8rem; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); transition: transform 300ms var(--ease), border-color 300ms; }
.op a:hover { transform: translateY(-4px); border-color: var(--gold); }
.op blockquote { margin: 0 0 1.4rem; font: italic 400 clamp(1.6rem, 2.6vw, 2.1rem)/1.15 var(--serif); color: var(--fg); }
.op blockquote::first-letter { color: var(--red); }
.op h3 { font-family: var(--sans); font-weight: 700; font-size: 1.15rem; letter-spacing: 0; margin-bottom: .3rem; }
.op p { color: var(--muted); }
.op .meta { margin-top: auto; }

/* Shop */
.shop { display: grid; gap: 1.4rem; }
@media (min-width: 1000px) { .shop { grid-template-columns: 1fr 1.2fr; } }
.product-ours { display: grid; gap: 1.6rem; align-items: center; background: var(--black); color: #F4F1EC; border-radius: var(--r); padding: clamp(1.4rem, 3vw, 2.2rem); }
@media (min-width: 560px) { .product-ours { grid-template-columns: 180px 1fr; } }
.product-ours img { border-radius: 6px; box-shadow: 0 30px 60px -30px rgba(200, 16, 46, .7); transition: transform 500ms var(--ease); }
.product-ours:hover img { transform: rotate(-2deg) scale(1.03); }
.product-ours .kicker { color: var(--gold); }
.product-ours p { color: #CFC8BF; }
.price { font: 400 2rem var(--serif); color: #F4F1EC !important; margin: .2rem 0 1rem; }
.soon { display: inline-block; padding: .6rem 1rem; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold); font-weight: 600; }
.shop-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.product a { display: flex; flex-direction: column; height: 100%; text-decoration: none; padding: 1.4rem; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); transition: transform 300ms var(--ease), border-color 300ms; }
.product a:hover { transform: translateY(-4px); border-color: var(--red); }
.mono { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--black); color: var(--gold); font: 400 1.8rem var(--serif); margin-bottom: 1rem; }
.product h3 { font-size: 1.5rem; margin-bottom: .2rem; }
.product .maker { font-weight: 600; color: var(--gold-ink); font-size: .95rem; margin-bottom: .5rem; }
.product p { color: var(--muted); font-size: 1rem; }
.go { margin-top: auto; font-weight: 600; }
.note { margin-top: 1.5rem; }

/* Signup */
.signup { background: var(--red); color: #fff; padding: clamp(3.5rem, 7vw, 5.5rem) 0; position: relative; overflow: hidden; }
.signup::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 0 62%, var(--black) 62% 80%, transparent 80%); opacity: .55; }
.signup-in { position: relative; display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .signup-in { grid-template-columns: 1fr 1fr; } }
.signup .kicker { color: var(--gold); }
.signup h2 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.signup p { color: #FFE5E9; max-width: 40ch; }
.sform label { display: block; font-weight: 600; margin-bottom: .5rem; }
.srow { display: flex; gap: .6rem; flex-wrap: wrap; }
.srow input { flex: 1 1 240px; min-height: 56px; border-radius: 999px; border: 0; padding: 0 1.3rem; font: 1.1rem var(--sans); color: #111; background: #fff; }
.srow input:focus-visible { outline: 3px solid var(--gold); }
.signup .fine { color: #FFE5E9; margin-top: .7rem; }

/* Articles */
.article { padding: clamp(2.5rem, 6vw, 4.5rem) 0 2rem; }
.back { display: inline-block; text-decoration: none; font-weight: 600; color: var(--muted); margin-bottom: 2rem; }
.back:hover { color: var(--red); }
.article h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.article .dek { font-size: 1.35rem; line-height: 1.45; }
.prose { font-size: 1.2rem; line-height: 1.7; margin-top: 2rem; }
.prose p:first-child::first-letter { float: left; font: 400 4.6rem/.8 var(--serif); color: var(--red); padding: .35rem .5rem 0 0; }
.source { display: flex; gap: 1rem; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1rem 0; margin-top: 2rem; }
.source span { font: 700 .8rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.source a { font-weight: 600; }
.article-op .prose p:nth-child(3) { font: italic 400 1.9rem/1.25 var(--serif); border-left: 4px solid var(--gold); padding-left: 1.2rem; }

/* Footer */
.foot { background: var(--black); color: #CFC8BF; padding: 3.5rem 0 2.5rem; border-top: 8px solid var(--red); }
.foot-in { display: grid; gap: 2rem; }
@media (min-width: 860px) { .foot-in { grid-template-columns: 1.4fr 1fr; } .foot-in .fine { grid-column: 1 / -1; } }
.foot .logo { color: #F4F1EC; }
.foot nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; align-content: start; }
.foot nav a { color: #F4F1EC; text-decoration: none; font-weight: 600; }
.foot nav a:hover { color: var(--gold); }
.foot .fine { color: #8E877F; border-top: 1px solid #2A2725; padding-top: 1.4rem; margin: 0; }

/* Reveal on scroll */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* Phone refinements */
.back { display: table; }
@media (max-width: 979px) {
  .ribbon { inset: -10% -70% 40% 20%; opacity: .75; }
  .hero-copy { position: relative; }
  .hero .lede, .hero h1 { text-shadow: 0 2px 18px rgba(0,0,0,.6); }
}

/* ================= Community platform ================= */
[hidden] { display: none !important; }
.btn-post { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: 0 1rem; border-radius: 999px; background: var(--red); color: #fff; font-weight: 600; text-decoration: none; transition: transform 160ms var(--ease), background-color 200ms; }
.btn-post span { font-size: 1.3rem; line-height: 1; }
.btn-post:hover { background: #A50D26; }
.btn-post:active { transform: scale(.96); }
.acct { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 600; text-decoration: none; white-space: nowrap; max-width: 12rem; overflow: hidden; text-overflow: ellipsis; }
.acct.in { padding-left: .35rem; }
@media (max-width: 560px) {
  .btn-post { width: 44px; padding: 0; justify-content: center; font-size: 0; }
  .btn-post span { font-size: 1.5rem; }
  .acct { padding: 0 .8rem; font-size: .95rem; max-width: 7.5rem; }
  .acct.in { font-size: 0; padding: 0; width: 44px; justify-content: center; }
  .acct.in .avatar { font-size: .9rem; }
  .logo { font-size: 1.45rem; } .logo span { display: none; }
  .top-in { gap: .6rem; }
}
.avatar { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; color: #fff; font: 600 1rem var(--sans); background: var(--black); }
.avatar-xs { width: 30px; height: 30px; font-size: .8rem; }
.avatar-sm { width: 36px; height: 36px; font-size: .9rem; }
.avatar-lg { width: 96px; height: 96px; font-size: 2.4rem; box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--gold); }

/* Video grid */
.vgrid { display: grid; gap: 1.6rem 1.2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.vcard { min-width: 0; }
.vthumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--line); }
.vthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.vcard:hover .vthumb img { transform: scale(1.04); }
.vcat { position: absolute; left: .6rem; bottom: .6rem; background: rgba(10,10,10,.82); color: #F4F1EC; font: 600 .78rem var(--sans); padding: .25rem .6rem; border-radius: 999px; }
.vinfo { padding-top: .75rem; display: grid; gap: .3rem; }
.vlink { text-decoration: none; }
.vinfo h3 { font: 600 1.08rem/1.35 var(--sans); letter-spacing: 0; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vlink:hover h3 { color: var(--red); }
.vby { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--muted); font-size: .98rem; font-weight: 500; }
.vby:hover { color: var(--fg); }
.vmeta { margin: 0; color: var(--muted); font-size: .92rem; }
.sec-dark .vinfo h3, .sec-dark .vby:hover { color: #F4F1EC; }
.skeleton, .skl { background: linear-gradient(90deg, var(--line) 0 40%, color-mix(in srgb, var(--line) 60%, var(--bg)) 50%, var(--line) 60% 100%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; }
.skl { height: 14px; border-radius: 6px; margin-top: .8rem; } .skl.short { width: 55%; margin-top: .5rem; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.empty { grid-column: 1 / -1; text-align: center; padding: 3rem 1rem; border: 1px dashed var(--line); border-radius: var(--r); }
.empty-title { font: 400 2rem var(--serif); margin-bottom: .3rem; }
.empty p { color: var(--muted); }
.more-row { display: flex; justify-content: center; margin-top: 2rem; }

/* Watch page controls */
.watch-head { padding-bottom: 3rem; }
.tabs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1rem 0 1rem; }
.tab { min-height: 44px; padding: 0 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--fg); font: 600 1rem var(--sans); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.search { margin-left: auto; flex: 1 1 220px; max-width: 360px; }
.search input { width: 100%; min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--fg); padding: 0 1.1rem; font: 1rem var(--sans); }
.chips { display: flex; gap: .45rem; overflow-x: auto; padding-bottom: .6rem; margin-bottom: 1.6rem; scrollbar-width: thin; }
.chip { flex: none; min-height: 38px; padding: 0 .95rem; border-radius: 999px; border: 0; background: var(--tint); color: var(--fg); font: 500 .95rem var(--sans); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--gold); color: #000; font-weight: 600; }

/* Video page */
.vpage { padding-top: 1.5rem; }
.vpage-in { display: grid; gap: 2rem; }
@media (min-width: 1080px) { .vpage-in { grid-template-columns: minmax(0, 1fr) 360px; } }
.vmain { min-width: 0; }
.player { aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; }
.player iframe, .player .skeleton { width: 100%; height: 100%; border: 0; display: block; }
.vtitle { font: 600 clamp(1.35rem, 2.6vw, 1.75rem)/1.25 var(--sans); letter-spacing: -0.01em; margin: 1rem 0 .8rem; }
.vbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.by { display: flex; gap: .7rem; align-items: center; text-decoration: none; min-width: 0; }
.by strong { display: block; } .by small { display: block; color: var(--muted); font-size: .9rem; }
.vactions { display: flex; flex-wrap: wrap; gap: .45rem; }
.pill { min-height: 44px; padding: 0 1.05rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--fg); font: 600 .98rem var(--sans); cursor: pointer; transition: transform 160ms var(--ease), background-color 200ms; }
.pill:active { transform: scale(.96); }
.pill[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.pill.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pill-quiet { color: var(--muted); }
.pill-danger, .armed { border-color: var(--red) !important; color: var(--red) !important; background: transparent !important; }
.vdesc { margin-top: 1.2rem; padding: 1rem 1.2rem; border-radius: 14px; background: var(--tint); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1.02rem; }
.vside h2 { font: 600 1.15rem var(--sans); letter-spacing: 0; }
.vlist { display: grid; gap: 1rem; }
.vlist .vcard { display: grid; grid-template-columns: 160px 1fr; gap: .8rem; }
.vlist .vinfo { padding-top: 0; } .vlist .vinfo h3 { font-size: .98rem; } .vlist .vcat { display: none; } .vlist .vby .avatar { display: none; }
.vlist .empty { padding: 1.2rem; }

/* Comments */
.comments { margin-top: 2rem; }
.comments h2 { font: 600 1.2rem var(--sans); letter-spacing: 0; }
.cform { display: flex; gap: .6rem; align-items: flex-start; flex-wrap: wrap; margin-bottom: 1.4rem; }
.cform textarea { flex: 1 1 260px; min-height: 52px; resize: vertical; }
.clist { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; }
.cm { display: flex; gap: .8rem; }
.cm-body { min-width: 0; }
.cm-head { margin: 0; font-weight: 600; } .cm-head a { text-decoration: none; }
.cm-text { margin: .2rem 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.cm-tools { display: flex; gap: 1rem; }
.linkbtn { background: none; border: 0; padding: .3rem 0; color: var(--muted); font: 500 .92rem var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.linkbtn:hover { color: var(--fg); }

/* Channel header */
.chead { padding: clamp(2.5rem, 6vw, 4rem) 0 1rem; background: linear-gradient(180deg, var(--tint), var(--bg)); }
.chead-in { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.cinfo { flex: 1 1 280px; min-width: 0; }
.cinfo h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: .1em; }
.cinfo p { margin: .2rem 0; overflow-wrap: anywhere; }
.cact { display: flex; gap: .6rem; flex-wrap: wrap; }

/* Forms */
.formpage { padding-top: clamp(2.5rem, 6vw, 4rem); }
.formpage h1 { font-size: clamp(2.6rem, 6vw, 4rem); }
.card-form { display: grid; gap: .55rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.2rem, 3vw, 2rem); margin: 1.5rem 0; }
.card-form label { font-weight: 600; margin-top: .6rem; }
.card-form label:first-child { margin-top: 0; }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="url"], input:not([type]), input[inputmode], select, textarea {
  width: 100%; min-height: 50px; padding: .7rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: 1.05rem var(--sans); }
textarea { line-height: 1.5; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
#code { font-size: 1.8rem; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.prefix { display: flex; align-items: stretch; }
.prefix span { display: grid; place-items: center; padding: 0 .9rem; border: 1px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px; background: var(--tint); font-weight: 600; }
.prefix input { border-radius: 0 12px 12px 0; }
.card-form .btn { justify-self: start; margin-top: .8rem; }
.msg { min-height: 1.4em; margin: .3rem 0 0; color: var(--red); font-weight: 500; }
.msg.ok { color: var(--muted); }
.preview { border-radius: 12px; overflow: hidden; max-width: 320px; }
.acct-links { display: flex; flex-wrap: wrap; gap: .6rem; }

/* Toast + dialog */
.toast { position: fixed; left: 50%; bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 1rem); opacity: 0; background: var(--fg); color: var(--bg); padding: .8rem 1.2rem; border-radius: 999px; font-weight: 600; z-index: 100; pointer-events: none; transition: opacity 200ms var(--ease), transform 200ms var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.dlg { border: 0; border-radius: var(--r); padding: 0; width: min(440px, calc(100% - 2rem)); background: var(--card); color: var(--fg); }
.dlg::backdrop { background: rgba(0,0,0,.55); }
.dlg form { display: grid; gap: .6rem; padding: 1.5rem; }
.dlg h2 { font-size: 1.9rem; }
.dlg fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: .2rem; }
.radio { display: flex; gap: .6rem; align-items: center; min-height: 40px; cursor: pointer; }
.radio input { width: 20px; height: 20px; accent-color: var(--red); }
.dlg-actions { display: flex; gap: .6rem; justify-content: flex-end; margin-top: .4rem; }

/* Admin + legal */
.reports { display: grid; gap: 1rem; }
.report { border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem; background: var(--card); }
.report-content { font-size: 1.1rem; overflow-wrap: anywhere; }
.report-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.legal h2 { font-size: 1.9rem; margin-top: 1.6em; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .4rem; }
.foot .fine a { color: #CFC8BF; }

/* ---------- Voice, music and rich comments ---------- */
.ap { display: flex; align-items: center; gap: .7rem; padding: .45rem .8rem .45rem .45rem; border-radius: 999px; background: var(--black); color: #F4F1EC; max-width: 340px; margin: .35rem 0; }
.ap-btn { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--red); display: grid; place-items: center; cursor: pointer; transition: transform 160ms var(--ease); }
.ap-btn:active { transform: scale(.94); }
.ap-icon { width: 0; height: 0; border-left: 12px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.ap.on .ap-icon { width: 12px; height: 14px; border: 0; margin: 0; background: linear-gradient(90deg, #fff 0 35%, transparent 35% 65%, #fff 65%); }
.ap-track { position: relative; flex: 1; height: 26px; min-width: 90px; }
.ap-bars, .ap-fill { position: absolute; inset: 0; -webkit-mask: repeating-linear-gradient(90deg, #000 0 3px, transparent 3px 6px); mask: repeating-linear-gradient(90deg, #000 0 3px, transparent 3px 6px); }
.ap-bars { background: linear-gradient(180deg, transparent 0 30%, #5c5650 30% 70%, transparent 70%), linear-gradient(180deg, transparent 0 15%, #5c5650 15% 85%, transparent 85%) 0 0 / 18px 100%; }
.ap-fill { background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 200ms linear; clip-path: inset(15% 0); }
.ap-time { font: 600 .9rem var(--sans); font-variant-numeric: tabular-nums; min-width: 2.6rem; text-align: right; }

.rec { display: grid; gap: .7rem; }
.rec-row { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.rec-btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 46px; padding: 0 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--fg); font: 600 1rem var(--sans); cursor: pointer; }
.rec-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--red); }
.rec.live .rec-btn { border-color: var(--red); color: var(--red); }
.rec.live .rec-dot { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.rec-meter { flex: 1 1 160px; display: grid; gap: .3rem; }
.rec-bar { display: block; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.rec-bar span { display: block; height: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; }
.rec-time { font: 600 .9rem var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }

/* Channel media */
.cmedia { flex: 1 1 100%; display: grid; gap: 1rem; }
@media (min-width: 900px) { .cmedia { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); align-items: start; } }
.greeting, .song { display: grid; gap: .4rem; min-width: 0; }
.greet-label { font: 700 .78rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.greeting .ap { max-width: 380px; box-shadow: 0 0 0 3px var(--gold); }
.song-frame { width: 100%; border: 0; border-radius: 14px; display: block; background: var(--tint); }
.song-video { aspect-ratio: 16 / 9; max-width: 480px; }
.greet-setup h2 { font-size: 2rem; margin: 0; }

/* Comment composer */
.cform { display: grid; gap: .6rem; }
.cform textarea { width: 100%; }
.ctools { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.ctools .btn { margin-left: auto; }
.tool { min-width: 46px; min-height: 44px; padding: 0 .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--fg); font: 700 .95rem var(--sans); cursor: pointer; }
.tool[aria-expanded="true"] { border-color: var(--gold); background: var(--tint); }
.panel { border: 1px solid var(--line); border-radius: 14px; padding: .8rem; background: var(--card); }
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: .2rem; }
.emoji { min-height: 44px; border: 0; background: none; font-size: 1.5rem; border-radius: 10px; cursor: pointer; }
.emoji:hover { background: var(--tint); }
.panel input[type="search"], .panel input[type="url"] { margin-bottom: .6rem; }
.gif-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .4rem; max-height: 280px; overflow-y: auto; }
.gif { padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--tint); aspect-ratio: 1; }
.gif img { width: 100%; height: 100%; object-fit: cover; }
.attach { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }
.att { display: flex; gap: .6rem; align-items: center; }
.att-gif { width: 90px; border-radius: 8px; }
.att-voice { font-weight: 600; }
.cm-gif { max-width: min(260px, 100%); border-radius: 10px; margin: .4rem 0; display: block; }
.ytcard { position: relative; display: block; width: min(320px, 100%); aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer; margin: .4rem 0; background: #000; }
.ytcard img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.ytframe { width: min(420px, 100%); aspect-ratio: 16 / 9; border: 0; border-radius: 10px; display: block; margin: .4rem 0; }
.cm-text a { color: var(--red); overflow-wrap: anywhere; }

.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
