/* ============================================================
   Held Patterns — shared styles
   A faceless psychology & relationships video library.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito+Sans:ital,opsz,wght@0,6..12,400;0,6..12,600;0,6..12,700;0,6..12,800;1,6..12,600&display=swap');

:root{
  /* BMC-inspired palette: bright yellow + near-black ink + white cards,
     with four pastel accent colors for the topic system. Yellow is
     reserved for backgrounds/fills only (buttons, badges, highlights)
     — never as text color on a light background, since #FFDD00 text
     fails WCAG contrast. Ink carries all readable accent text instead. */
  --yellow:       #FFDD00;
  --yellow-deep:  #F4CE00;
  --yellow-soft:  #FFF3A6;
  --ink:          #14120E;
  --ink-soft:     #34302A;
  --cream:        #FFFBF0;
  --cream-deep:   #FFF3C4;
  --paper:        #FFFFFF;

  /* kept as named variables so existing component CSS didn't need a
     rewrite — mapped to accessible dark tones instead of decorative
     mid-tones, since BMC's style leans on black text + yellow fills
     rather than colored text. */
  --terracotta:   #6B5900;
  --terracotta-d: #574800;
  --rose:         #FFB4A2;
  --rose-soft:    #FFD9D0;
  --plum:         var(--ink);
  --plum-soft:    var(--ink-soft);
  --sage:         #2F6B4F;
  --sage-soft:    #B9FBC0;
  --charcoal:     var(--ink);
  --ink-70:       rgba(20,18,14,.74);
  --ink-50:       rgba(20,18,14,.54);
  --ink-30:       rgba(20,18,14,.32);
  --line:         rgba(20,18,14,.16);

  /* four topic accent colors, in category order */
  --topic-1: #FFB4A2; /* Psychology & Human Behavior — coral */
  --topic-2: #A8DADC; /* Relationships — teal */
  --topic-3: #B9FBC0; /* Self-Improvement — mint */
  --topic-4: #CDB4F6; /* Psychology in Everyday Life — lavender */

  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-1: 3px 3px 0 var(--ink);
  --shadow-2: 5px 5px 0 var(--ink);
  --shadow-soft: 0 2px 6px rgba(20,18,14,.06), 0 20px 40px -20px rgba(20,18,14,.24);

  --font-display: 'Fredoka', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxw: 1180px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

body{
  margin:0;
  background:var(--cream);
  color:var(--charcoal);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

img,svg{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family:var(--font-display); margin:0; font-weight:560; letter-spacing:-.01em; color:var(--plum); }
p{ margin:0; }

:focus-visible{ outline:2.5px solid var(--terracotta); outline-offset:3px; border-radius:4px; }

.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 22px; }
@media(min-width:900px){ .wrap{ padding:0 40px; } }

/* ---------- eyebrow / labels ---------- */
.eyebrow{
  font-family:var(--font-body); font-weight:700; font-size:12.5px; letter-spacing:.14em;
  text-transform:uppercase; color:var(--terracotta-d);
  display:flex; align-items:center; gap:9px;
}
.eyebrow::before{ content:""; width:16px; height:1px; background:var(--terracotta-d); display:block; }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:13px 24px; border-radius:100px; font-weight:700; font-size:15px;
  border:2px solid var(--ink); transition:transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space:nowrap; min-height:44px;
}
.btn:hover{ transform:translate(-2px,-2px); }
.btn-primary{ background:var(--yellow); color:var(--ink); box-shadow:var(--shadow-1); }
.btn-primary:hover{ background:var(--yellow-deep); box-shadow:var(--shadow-2); }
.btn-secondary{ background:var(--paper); color:var(--ink); box-shadow:var(--shadow-1); }
.btn-secondary:hover{ background:var(--cream-deep); box-shadow:var(--shadow-2); }
.btn-ghost{ background:var(--paper); color:var(--ink); border-color:var(--line); }
.btn-ghost:hover{ border-color:var(--ink); transform:translate(-1px,-1px); }
.btn-sm{ padding:9px 16px; font-size:13.5px; min-height:38px; }
.btn-icon{ width:44px; height:44px; padding:0; border-radius:50%; background:var(--paper); border:2px solid var(--line); }
.btn-icon:hover{ border-color:var(--ink); }
.btn[disabled]{ opacity:.45; pointer-events:none; }

/* ---------- header ---------- */
.site-header{
  position:sticky; top:0; z-index:60;
  background:rgba(245,239,228,.88); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.site-header .bar{ display:flex; align-items:center; justify-content:space-between; padding:16px 22px; max-width:var(--maxw); margin:0 auto; }
@media(min-width:900px){ .site-header .bar{ padding:18px 40px; } }
.brand{ display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-weight:560; font-size:19px; color:var(--plum); }
.brand .mark{ width:30px; height:30px; }
.brand .name{ display:none; }
@media(min-width:480px){ .brand .name{ display:inline; } }

.nav-desktop{ display:none; align-items:center; gap:2px; }
@media(min-width:900px){ .nav-desktop{ display:flex; } }
.nav-desktop a{
  padding:10px 14px; font-size:14.5px; font-weight:600; color:var(--ink-70); border-radius:100px; transition:background .15s, color .15s;
}
.nav-desktop a:hover{ background:var(--cream-deep); color:var(--plum); }
.nav-desktop a.active{ color:var(--ink); background:var(--yellow); }

.nav-actions{ display:flex; align-items:center; gap:10px; }
.hamburger{ display:flex; width:44px; height:44px; border-radius:50%; border:2px solid var(--ink); background:var(--paper); align-items:center; justify-content:center; }
@media(min-width:900px){ .hamburger{ display:none; } }
.hamburger span{ position:relative; width:16px; height:2px; background:var(--plum); display:block; }
.hamburger span::before,.hamburger span::after{ content:""; position:absolute; left:0; width:16px; height:2px; background:var(--plum); }
.hamburger span::before{ top:-5px; } .hamburger span::after{ top:5px; }

.mobile-nav{ display:none; border-top:1px solid var(--line); background:var(--paper); }
.mobile-nav.open{ display:block; }
.mobile-nav a{ display:block; padding:14px 22px; font-weight:600; font-size:15.5px; border-bottom:1px solid var(--line); color:var(--ink-70); }
.mobile-nav a.active{ color:var(--terracotta-d); }
@media(min-width:900px){ .mobile-nav{ display:none !important; } }

/* ---------- pattern thread (signature motif) ---------- */
.thread-divider{ width:100%; height:34px; opacity:.5; }
.thread-divider path{ fill:none; stroke:var(--terracotta); stroke-width:1.4; }
.thread-divider path.b{ stroke:var(--sage); }

/* ---------- hero ---------- */
.skip-link{
  position:absolute; left:12px; top:-60px; z-index:200; background:var(--yellow); color:var(--ink);
  padding:12px 20px; border-radius:8px; font-weight:800; border:2px solid var(--ink); transition:top .15s ease;
}
.skip-link:focus{ top:12px; }

.hero{ position:relative; padding:40px 0 36px; overflow:hidden; }
@media(min-width:900px){ .hero{ padding:64px 0 48px; } }
.hero h1{ font-size:clamp(30px,6vw,52px); line-height:1.08; margin:14px 0 16px; max-width:18ch; }
.hero .sub{ font-size:16.5px; color:var(--ink-70); max-width:56ch; margin-bottom:8px; }

.hero-topics{ display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin-top:26px; }
@media(min-width:640px){ .hero-topics{ grid-template-columns:repeat(4,1fr); gap:16px; } }
.hero-topic-tile{
  display:flex; flex-direction:column; gap:10px; padding:18px 16px; border-radius:var(--radius-lg);
  border:2.5px solid var(--ink); box-shadow:var(--shadow-1); background:var(--paper); min-height:44px;
  transition:transform .15s ease, box-shadow .15s ease;
}
.hero-topic-tile:hover{ transform:translate(-3px,-3px); box-shadow:var(--shadow-2); }
.hero-topic-tile .ic-wrap{ width:42px; height:42px; border-radius:13px; display:flex; align-items:center; justify-content:center; border:2px solid var(--ink); }
.hero-topic-tile .ic-wrap svg{ width:21px; height:21px; color:var(--ink); }
.hero-topic-tile .lbl{ font-family:var(--font-display); font-weight:600; font-size:15.5px; color:var(--ink); line-height:1.28; }
.hero-topic-tile .n{ font-size:12px; color:var(--ink-50); font-weight:700; }

/* ---------- section shell ---------- */
.section{ padding:40px 0; }
.section-head{ display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:20px; flex-wrap:wrap; }
.section-head h2{ font-size:clamp(20px,3vw,27px); display:flex; align-items:center; gap:9px; }
.h2-icon{ display:inline-flex; width:26px; height:26px; flex-shrink:0; }
.h2-icon svg{ width:100%; height:100%; color:var(--ink); }
.h2-icon-lg{ width:46px; height:46px; padding:9px; border-radius:14px; border:2.5px solid var(--ink); background:var(--paper); box-shadow:var(--shadow-1); box-sizing:border-box; }
.h2-icon-lg.yt{ background:#FF0000; color:#fff; }
.h2-icon-lg.tt{ background:#000000; color:#fff; }
.h2-icon-lg.fb{ background:#1877F2; color:#fff; }
.section-head-links{ display:flex; align-items:center; gap:14px; margin-left:auto; }
.section-head .see-all{ font-weight:700; font-size:14px; color:var(--terracotta-d); white-space:nowrap; }
.section-head .see-all:hover{ text-decoration:underline; }
.section-note{ color:var(--ink-50); font-size:14.5px; max-width:60ch; margin-top:6px; }

/* ---------- carousel (used for platform + trending sections) ---------- */
.carousel-controls{ display:flex; gap:8px; }
.carousel-btn{
  width:40px; height:40px; min-width:40px; border-radius:50%; background:var(--paper); border:2px solid var(--ink);
  display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow-1);
}
.carousel-btn svg{ width:16px; height:16px; }
.carousel-btn.prev svg{ transform:rotate(180deg); }
.carousel-btn:hover{ background:var(--yellow); }
.carousel-btn[disabled]{ opacity:.35; box-shadow:none; pointer-events:none; }
.carousel-track{ display:flex; gap:18px; overflow-x:auto; padding:4px 4px 14px; scroll-snap-type:x proximity; scroll-behavior:smooth; -webkit-overflow-scrolling:touch; }
.carousel-track::-webkit-scrollbar{ height:6px; } .carousel-track::-webkit-scrollbar-thumb{ background:var(--line); border-radius:10px; }
.carousel-track > *{ flex-shrink:0; scroll-snap-align:start; }
.carousel-track .quote-card{ width:210px; }
.carousel-track .plain-card{ width:290px; }
.carousel-track .vcard{ width:250px; }

/* ---------- video card ---------- */
.rail{ display:flex; gap:16px; overflow-x:auto; padding:4px 4px 14px; scroll-snap-type:x proximity; -webkit-overflow-scrolling:touch; }
.rail::-webkit-scrollbar{ height:6px; } .rail::-webkit-scrollbar-thumb{ background:var(--line); border-radius:10px; }
.rail .vcard{ min-width:250px; scroll-snap-align:start; }
.rail.rail-short .vcard{ min-width:180px; }

.grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:16px 14px; }
@media(min-width:640px){ .grid{ grid-template-columns:repeat(3,1fr); gap:22px; } }
@media(min-width:1040px){ .grid{ grid-template-columns:repeat(4,1fr); } }

.vcard{ display:block; border-radius:var(--radius-md); overflow:hidden; background:var(--paper); border:2px solid var(--ink); box-shadow:var(--shadow-1); transition:transform .15s ease, box-shadow .15s ease; }
.vcard:hover{ transform:translate(-2px,-2px); box-shadow:var(--shadow-2); }
.vcard .thumb{ position:relative; aspect-ratio:9/16; overflow:hidden; }
.vcard.is-wide .thumb{ aspect-ratio:16/9; }
.vcard .thumb svg{ width:100%; height:100%; transition:transform .35s ease; }
.vcard:hover .thumb svg{ transform:scale(1.045); }
.thumb .play{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
}
.thumb .play span{
  width:46px; height:46px; border-radius:50%; background:rgba(253,251,247,.92);
  display:flex; align-items:center; justify-content:center; box-shadow:0 6px 18px rgba(0,0,0,.25);
}
.thumb .badge{
  position:absolute; top:9px; left:9px; display:flex; align-items:center; gap:5px;
  background:rgba(20,18,14,.62); color:#fff; font-size:11px; font-weight:700; padding:5px 9px 5px 7px; border-radius:100px; backdrop-filter:blur(2px);
}
.thumb .badge svg{ width:13px; height:13px; flex-shrink:0; }
.thumb .dur{ position:absolute; bottom:9px; right:9px; background:rgba(20,18,14,.78); color:#fff; font-size:11px; font-weight:700; padding:3px 7px; border-radius:6px; }
.thumb .save{
  position:absolute; top:9px; right:9px; width:30px; height:30px; border-radius:50%; background:rgba(253,251,247,.9);
  display:flex; align-items:center; justify-content:center; border:none;
}
.thumb .save svg{ width:15px; height:15px; }
.thumb .save.saved svg{ fill:var(--terracotta-d); stroke:var(--terracotta-d); }

.vcard .body{ padding:12px 13px 15px; }
.vcard .topic-tag{ font-size:11px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--sage); }
.vcard h3{ font-size:15.5px; line-height:1.32; margin:5px 0 7px; font-weight:560; color:var(--plum); }
.vcard .meta{ display:flex; align-items:center; gap:6px; font-size:12px; color:var(--ink-50); }
.vcard .meta .dot{ width:3px; height:3px; border-radius:50%; background:var(--ink-30); }
.platform-row{ display:flex; align-items:center; gap:7px; margin-top:8px; color:var(--ink-30); }
.platform-row svg{ width:15px; height:15px; }

/* platform pill colors */
.p-youtube .badge{ background:rgba(190,55,42,.78); }
.p-tiktok .badge{ background:rgba(20,18,14,.78); }
.p-facebook .badge{ background:rgba(47,73,124,.78); }

/* ---------- quote wall (TikTok/short-form) ----------
   Inspired by buymeacoffee.com/reviews' TikTok section: a vertical
   video, a pulled caption underneath, and a creator handle linking
   back to the original post — a testimonial-style wall rather than a
   standard content-card grid. */
.quote-wall{ display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
@media(min-width:640px){ .quote-wall{ grid-template-columns:repeat(3,1fr); gap:24px; } }
@media(min-width:1040px){ .quote-wall{ grid-template-columns:repeat(4,1fr); } }
.quote-card{ display:block; }
.quote-card .thumb{ position:relative; aspect-ratio:9/16; border-radius:var(--radius-md); overflow:hidden; box-shadow:var(--shadow-1); transition:transform .2s ease, box-shadow .2s ease; }
.quote-card:hover .thumb{ transform:translateY(-3px); box-shadow:var(--shadow-2); }
.quote-card .thumb svg{ width:100%; height:100%; }
.quote-card blockquote{ margin:12px 0 8px; font-family:var(--font-display); font-style:italic; font-size:14.5px; line-height:1.4; color:var(--plum); }
.quote-card .handle{ display:flex; align-items:center; gap:6px; font-size:12.5px; font-weight:700; color:var(--terracotta-d); }
.quote-card .handle svg{ width:13px; height:13px; }
.quote-card .handle:hover{ text-decoration:underline; }

/* ---------- plain grid (YouTube) ----------
   Inspired by buymeacoffee.com/reviews' YouTube section: an
   unadorned, uniform grid of embeds with no card chrome — the
   thumbnail itself is the whole visual. */
.plain-grid{ display:grid; grid-template-columns:1fr; gap:20px; }
@media(min-width:640px){ .plain-grid{ grid-template-columns:repeat(2,1fr); } }
@media(min-width:1040px){ .plain-grid{ grid-template-columns:repeat(3,1fr); } }
.plain-card{ display:block; }
.plain-card .thumb{ position:relative; aspect-ratio:16/9; border-radius:10px; overflow:hidden; }
.plain-card .thumb svg{ width:100%; height:100%; transition:transform .3s ease; }
.plain-card:hover .thumb svg{ transform:scale(1.03); }
.plain-card .tt{ margin-top:10px; font-size:14.5px; font-weight:600; color:var(--plum); line-height:1.35; }

/* ---------- featured card ---------- */
.featured{ display:grid; gap:20px; background:var(--paper); border-radius:var(--radius-lg); box-shadow:var(--shadow-2); overflow:hidden; }
@media(min-width:800px){ .featured{ grid-template-columns:.85fr 1fr; align-items:stretch; gap:0; } }
.featured .thumb{ aspect-ratio:9/16; }
.featured.is-wide .thumb{ aspect-ratio:16/9; }
@media(min-width:800px){ .featured .thumb{ aspect-ratio:auto; height:100%; max-height:420px; } }
.featured .info{ padding:26px 26px 30px; display:flex; flex-direction:column; justify-content:center; gap:14px; }
.featured .info h3{ font-size:clamp(20px,2.6vw,27px); line-height:1.22; }
.featured .info p{ color:var(--ink-70); font-size:15px; }

/* ---------- topic collections (home) ---------- */
.topic-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
@media(min-width:640px){ .topic-grid{ grid-template-columns:repeat(4,1fr); } }
.topic-chip{
  display:flex; flex-direction:column; gap:10px; padding:18px 16px; border-radius:var(--radius-md);
  background:var(--paper); border:1px solid var(--line); transition:border-color .2s, transform .2s;
}
.topic-chip:hover{ border-color:var(--terracotta); transform:translateY(-2px); }
.topic-chip .ic{ width:28px; height:28px; color:var(--terracotta-d); }
.topic-chip .lbl{ font-family:var(--font-display); font-size:16px; color:var(--plum); }
.topic-chip .n{ font-size:12px; color:var(--ink-50); }

/* ---------- platform strip ---------- */
.platform-strip{ display:grid; grid-template-columns:1fr; gap:14px; }
@media(min-width:700px){ .platform-strip{ grid-template-columns:repeat(3,1fr); } }
.platform-card{ display:flex; align-items:center; gap:14px; padding:20px; border-radius:var(--radius-md); background:var(--paper); border:1px solid var(--line); }
.platform-card .ic{ width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; flex-shrink:0; }
.platform-card.yt .ic{ background:#BE372A; } .platform-card.tt .ic{ background:var(--charcoal); } .platform-card.fb .ic{ background:#2F497C; }
.platform-card .t{ font-weight:700; color:var(--plum); font-size:15px; }
.platform-card .d{ font-size:13px; color:var(--ink-50); }
.platform-card .go{ margin-left:auto; }

/* ---------- disclaimer / footer ---------- */
.disclaimer{ background:var(--cream-deep); border-top:1px solid var(--line); padding:22px 0; }
.disclaimer p{ font-size:12.5px; color:var(--ink-50); max-width:78ch; line-height:1.6; }

.site-footer{ background:var(--plum); color:rgba(253,251,247,.82); padding:52px 0 28px; }
.site-footer .cols{ display:grid; gap:34px; grid-template-columns:1.3fr repeat(3,1fr); margin-bottom:36px; }
.site-footer .cols{ grid-template-columns:1fr; }
@media(min-width:720px){ .site-footer .cols{ grid-template-columns:1.3fr repeat(3,1fr); } }
.site-footer .brand{ color:var(--paper); }
.site-footer .tag{ margin-top:12px; font-size:14px; max-width:34ch; color:rgba(253,251,247,.65); }
.site-footer h4{ color:var(--paper); font-family:var(--font-body); font-size:12.5px; letter-spacing:.1em; text-transform:uppercase; margin-bottom:14px; font-weight:700; }
.site-footer li{ margin-bottom:9px; }
.site-footer a{ font-size:14.5px; color:rgba(253,251,247,.72); transition:color .15s; }
.site-footer a:hover{ color:var(--rose); }
.site-footer .bottom{ border-top:1px solid rgba(253,251,247,.14); padding-top:22px; display:flex; flex-wrap:wrap; justify-content:space-between; gap:10px 18px; font-size:12.5px; color:rgba(253,251,247,.5); }
.site-footer .bottom-links a{ color:rgba(253,251,247,.65); font-size:12.5px; }
.site-footer .bottom-links a:hover{ color:var(--rose); }
.social-row{ display:flex; gap:10px; margin-top:16px; }
.social-row a{ width:38px; height:38px; border-radius:50%; background:rgba(253,251,247,.1); display:flex; align-items:center; justify-content:center; }
.social-row a:hover{ background:var(--terracotta); }
.social-row svg{ width:16px; height:16px; color:var(--paper); }

/* ---------- filter bar (library) ---------- */
.lib-head{ padding:36px 0 18px; }
.lib-head h1{ font-size:clamp(28px,4.4vw,40px); }
.lib-head p{ color:var(--ink-70); margin-top:8px; max-width:58ch; }

.filter-bar{ position:sticky; top:73px; z-index:40; background:var(--cream); padding:14px 0; border-bottom:1px solid var(--line); }
.search-row{ display:flex; gap:10px; margin-bottom:12px; }
.search-input{ flex:1; display:flex; align-items:center; gap:9px; background:var(--paper); border:1.5px solid var(--line); border-radius:100px; padding:10px 16px; }
.search-input input{ border:none; background:none; outline:none; font-family:var(--font-body); font-size:14.5px; width:100%; color:var(--charcoal); }
.search-input svg{ width:16px; height:16px; color:var(--ink-50); flex-shrink:0; }
.sort-select{ border:1.5px solid var(--line); background:var(--paper); border-radius:100px; padding:0 16px; font-family:var(--font-body); font-weight:600; font-size:13.5px; color:var(--plum); }

.chip-row{ display:flex; gap:8px; overflow-x:auto; padding-bottom:2px; }
.chip-row::-webkit-scrollbar{ display:none; }
.chip{
  flex-shrink:0; padding:8px 15px; border-radius:100px; border:1.5px solid var(--line); background:var(--paper);
  font-size:13px; font-weight:700; color:var(--ink-70); display:flex; align-items:center; gap:6px;
}
.chip.active{ background:var(--yellow); border-color:var(--ink); color:var(--ink); }
.chip-group-label{ font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:var(--ink-30); font-weight:700; align-self:center; padding-right:2px; flex-shrink:0; }

.lib-results{ padding:26px 0 10px; }
.lib-count{ font-size:13.5px; color:var(--ink-50); margin-bottom:16px; }
.load-more-row{ display:flex; justify-content:center; padding:34px 0 8px; }

.empty-state{ text-align:center; padding:64px 20px; }
.empty-state .ic{ width:52px; height:52px; margin:0 auto 18px; color:var(--rose); }
.empty-state h3{ font-size:20px; margin-bottom:8px; }
.empty-state p{ color:var(--ink-50); max-width:40ch; margin:0 auto 18px; }

/* ---------- topic page ---------- */
.topic-hero{ padding:44px 0 30px; border-bottom:1px solid var(--line); }
.topic-hero .ic-wrap{ width:52px; height:52px; border-radius:16px; background:var(--rose-soft); display:flex; align-items:center; justify-content:center; margin-bottom:16px; }
.topic-hero .ic-wrap svg{ width:26px; height:26px; color:var(--terracotta-d); }
.topic-hero h1{ font-size:clamp(28px,4vw,38px); }
.topic-hero p{ color:var(--ink-70); max-width:60ch; margin-top:12px; font-size:15.5px; }
.topic-list-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:12px; margin-top:26px; }
.topic-pill{ padding:11px 16px; border-radius:12px; background:var(--paper); border:1px solid var(--line); font-weight:600; font-size:13.5px; }
.topic-pill:hover{ border-color:var(--terracotta); }
.topic-pill.active{ background:var(--plum); color:var(--paper); border-color:var(--plum); }

/* ---------- video detail ---------- */
.vd-wrap{ display:grid; gap:34px; padding:30px 0 60px; }
@media(min-width:980px){ .vd-wrap{ grid-template-columns:1fr 320px; align-items:start; } }
.player{ position:relative; aspect-ratio:9/16; max-width:420px; margin:0 auto; border-radius:var(--radius-lg); overflow:hidden; background:var(--plum); box-shadow:var(--shadow-2); }
.player.is-wide{ aspect-ratio:16/9; max-width:none; margin:0; }
.player svg{ width:100%; height:100%; }
.player .play-overlay{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; }
.player .play-overlay span{ width:68px; height:68px; border-radius:50%; background:rgba(253,251,247,.94); display:flex; align-items:center; justify-content:center; box-shadow:0 10px 30px rgba(0,0,0,.3); }
.player .unavailable{ position:absolute; inset:0; display:none; align-items:center; justify-content:center; flex-direction:column; gap:10px; background:var(--plum); color:var(--paper); text-align:center; padding:20px; }

.vd-title-row{ margin-top:20px; }
.vd-title-row .topic-tag{ font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--terracotta-d); }
.vd-title-row h1{ font-size:clamp(23px,3.4vw,32px); line-height:1.2; margin:8px 0 10px; }
.vd-meta-row{ display:flex; flex-wrap:wrap; align-items:center; gap:10px; color:var(--ink-50); font-size:13.5px; }
.vd-meta-row .badge-inline{ display:flex; align-items:center; gap:6px; font-weight:700; color:var(--plum); }

.share-row{ display:flex; flex-wrap:wrap; gap:9px; margin:20px 0; }
.share-btn{ width:38px; height:38px; border-radius:50%; background:var(--paper); border:1.5px solid var(--line); display:flex; align-items:center; justify-content:center; }
.share-btn svg{ width:16px; height:16px; color:var(--plum); }
.share-btn:hover{ border-color:var(--terracotta); }
.share-btn.copied{ background:var(--sage); border-color:var(--sage); }
.share-btn.copied svg{ color:#fff; }

.send-someone{ display:flex; align-items:center; gap:12px; background:var(--rose-soft); border-radius:var(--radius-md); padding:16px 18px; margin:22px 0; }
.send-someone svg{ width:22px; height:22px; color:var(--terracotta-d); flex-shrink:0; }
.send-someone p{ font-size:14px; color:var(--plum); font-weight:600; }

.vd-block{ margin-top:28px; }
.vd-block h2{ font-size:17px; margin-bottom:12px; }
.vd-block p{ color:var(--ink-70); font-size:15px; }
.transcript-box{ background:var(--paper); border:1px solid var(--line); border-radius:var(--radius-md); padding:16px 18px; max-height:220px; overflow-y:auto; font-size:13.5px; color:var(--ink-70); line-height:1.75; }
.transcript-box summary{ cursor:pointer; font-weight:700; color:var(--plum); margin-bottom:6px; }
.source-list li{ font-size:13px; color:var(--ink-50); padding:4px 0; }

.sidebar-card{ background:var(--paper); border:1px solid var(--line); border-radius:var(--radius-md); padding:18px; margin-bottom:18px; }
.sidebar-card h3{ font-size:14.5px; margin-bottom:14px; }
.sidebar-vcard{ display:flex; gap:11px; padding:9px 0; border-bottom:1px solid var(--line); }
.sidebar-vcard:last-child{ border-bottom:none; }
.sidebar-vcard .th{ width:56px; aspect-ratio:9/16; border-radius:8px; overflow:hidden; flex-shrink:0; position:relative; }
.sidebar-vcard.is-wide .th{ width:92px; aspect-ratio:16/9; }
.sidebar-vcard .tt{ font-size:13px; font-weight:600; line-height:1.32; color:var(--plum); }
.sidebar-vcard .mm{ font-size:11px; color:var(--ink-50); margin-top:4px; }

.also-watch-row{ display:flex; flex-wrap:wrap; gap:10px; }
.also-watch-btn{ display:flex; align-items:center; gap:7px; font-size:13.5px; font-weight:700; color:var(--ink); border:2px solid var(--ink); border-radius:100px; padding:8px 16px; background:var(--paper); box-shadow:var(--shadow-1); min-height:40px; }
.also-watch-btn svg{ width:16px; height:16px; }
.also-watch-btn:hover{ background:var(--yellow); }

/* ---------- about page ---------- */
.about-hero{ padding:56px 0 24px; }
.about-hero h1{ font-size:clamp(30px,5vw,46px); max-width:16ch; }
.about-hero .sub{ color:var(--ink-70); font-size:16.5px; max-width:56ch; margin-top:16px; }
.about-block{ padding:26px 0; border-top:1px solid var(--line); display:grid; gap:24px; }
@media(min-width:800px){ .about-block{ grid-template-columns:220px 1fr; } }
.about-block h2{ font-size:20px; }
.about-block p, .about-block li{ color:var(--ink-70); font-size:15px; }
.about-block li{ padding:6px 0; }
.mission-note{ background:var(--paper); border:1px solid var(--line); border-radius:var(--radius-lg); padding:28px; margin:32px 0; }
.mission-note p{ font-family:var(--font-display); font-size:clamp(19px,2.4vw,24px); color:var(--plum); line-height:1.4; font-weight:440; font-style:italic; }
.care-note{ background:var(--plum); color:var(--paper); border-radius:var(--radius-lg); padding:30px; margin-top:10px; }
.care-note h2{ color:var(--paper); font-size:19px; margin-bottom:10px; }
.care-note p{ color:rgba(253,251,247,.78); font-size:14.5px; }

/* ---------- toast ---------- */
.toast{
  position:fixed; bottom:22px; left:50%; transform:translate(-50%,20px); background:var(--plum); color:var(--paper);
  padding:12px 22px; border-radius:100px; font-size:13.5px; font-weight:600; opacity:0; pointer-events:none; transition:all .25s ease; z-index:100; box-shadow:var(--shadow-2);
}
.toast.show{ opacity:1; transform:translate(-50%,0); }

/* ---------- misc utility ---------- */
.stack{ display:flex; flex-direction:column; }
.center{ text-align:center; }
.mt-8{ margin-top:8px;} .mt-16{ margin-top:16px;} .mt-24{margin-top:24px;} .mt-40{margin-top:40px;}
.visually-hidden{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

.page-enter{ animation:fadeUp .5s ease both; }
@keyframes fadeUp{ from{ opacity:0; transform:translateY(10px);} to{ opacity:1; transform:translateY(0);} }
