/* Design tokens — same values the reference site uses (shadcn-style HSL) */
:root {
  --background: 0 0% 7%;
  --foreground: 0 0% 95%;
  --card: 0 0% 11%;
  --secondary: 0 0% 15%;
  --secondary-foreground: 0 0% 90%;
  --muted: 0 0% 18%;
  --muted-foreground: 0 0% 55%;
  --accent: 0 0% 15%;
  --border: 0 0% 18%;
  --primary: 0 72% 51%;
  --primary-foreground: 0 0% 100%;
  --radius: .75rem;
  --shadow-card: 0 8px 32px hsl(0 0% 0% / .4);
  --shadow-card-hover: 0 16px 48px hsl(0 0% 0% / .6);
  --glow-primary: 0 0 30px hsl(0 72% 51% / .3);
  --font-body: "Inter", sans-serif;
  --font-heading: "Space Grotesk", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; border-color: hsl(var(--border)); }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg.i { width: 1em; height: 1em; flex-shrink: 0; }
h1, h2, h3, .heading { font-family: var(--font-heading); }

.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 1rem; }
.muted { color: hsl(var(--muted-foreground)); }
.text-gradient {
  background: linear-gradient(to right, hsl(var(--primary)), #f87171);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fade-in { animation: fade-in .4s ease-out; }
@keyframes fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { width: 2rem; height: 2rem; border: 3px solid hsl(var(--primary) / .25); border-top-color: hsl(var(--primary)); border-radius: 50%; animation: spin .8s linear infinite; margin: 3rem auto; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid hsl(var(--border) / .4);
  background: hsl(var(--background) / .8);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
.header-row { display: flex; height: 4rem; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.logo svg { width: 1.75rem; height: 1.75rem; color: hsl(var(--primary)); transition: transform .3s; }
.logo:hover svg { transform: rotate(12deg); }
.logo span { font: 700 1.5rem/1 var(--font-heading); letter-spacing: -.02em; }
.nav-desktop { display: none; align-items: center; gap: .6rem; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem 1.05rem; border-radius: 999px; font-size: .9rem; font-weight: 600;
  color: hsl(var(--foreground) / .88); white-space: nowrap;
  background: hsl(var(--secondary) / .45); border: 1px solid hsl(var(--border) / .55);
  transition: color .2s, background .25s, border-color .25s, transform .2s, box-shadow .25s;
}
.nav-link svg { width: 1.05rem; height: 1.05rem; flex-shrink: 0; transition: transform .3s cubic-bezier(.34,1.56,.64,1), color .2s; }
.nav-link:hover {
  color: hsl(var(--foreground)); background: hsl(var(--secondary) / .85);
  border-color: hsl(var(--primary) / .35); transform: translateY(-1px);
  box-shadow: 0 6px 18px -8px hsl(var(--primary) / .45);
}
.nav-link:hover svg { transform: scale(1.15) rotate(-8deg); color: hsl(var(--primary)); }
.nav-link:active { transform: translateY(0) scale(.97); }
.nav-link:focus-visible { outline: 2px solid hsl(var(--primary)); outline-offset: 2px; }
.nav-link.active {
  color: hsl(var(--foreground)); background: hsl(var(--secondary));
  border-color: hsl(var(--primary) / .5); box-shadow: inset 0 0 0 1px hsl(var(--primary) / .15);
}
.nav-link.active svg { color: hsl(var(--primary)); }
@media (prefers-reduced-motion: reduce) { .nav-link, .nav-link svg { transition: none; } .nav-link:hover, .nav-link:hover svg { transform: none; } }
.channel-btn {
  display: flex; align-items: center; gap: .5rem; border-radius: 999px;
  border: 1px solid hsl(var(--border) / .55); background: hsl(var(--secondary) / .45);
  padding: .45rem .75rem; font-size: .7rem; font-weight: 600; transition: all .3s; white-space: nowrap;
}
.channel-btn:hover { background: hsl(var(--secondary)); border-color: rgba(59,130,246,.5); transform: translateY(-1px); box-shadow: 0 6px 18px -8px rgba(59,130,246,.55); }
.channel-btn svg { width: .9rem; height: .9rem; color: #3b82f6; transition: filter .3s, transform .3s; }
.channel-btn:hover svg { filter: drop-shadow(0 0 8px rgba(59,130,246,.6)); transform: translate(2px, -2px); }
@media (max-width: 639px) {
  .header-row { gap: .5rem; }
  .logo { min-width: 0; flex-shrink: 1; }
  .logo span { font-size: 1.1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .logo svg { width: 1.4rem; height: 1.4rem; }
}
.nav-mobile .nav-link { padding: .45rem .85rem; font-size: .82rem; gap: .4rem; }
.nav-mobile .nav-link svg { width: .95rem; height: .95rem; }
.nav-mobile {
  display: flex; gap: .4rem; overflow-x: auto; padding: .55rem .75rem; justify-content: flex-start;
  border-top: 1px solid hsl(var(--border) / .4); scrollbar-width: none;
}
.nav-mobile::-webkit-scrollbar { display: none; }
@media (min-width: 640px) {
  .channel-btn { font-size: .9rem; padding: .6rem 1.15rem; }
  .channel-btn svg { width: 1.1rem; height: 1.1rem; }
  .nav-mobile { justify-content: center; }
}
@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .nav-mobile { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-glow { pointer-events: none; position: absolute; left: 0; right: 0; top: -6rem; height: 12rem; background: hsl(var(--primary) / .1); filter: blur(64px); }
.hero .container { position: relative; padding-top: 1rem; padding-bottom: 1rem; text-align: center; }
.hero h1 { max-width: 56rem; margin: 0 auto; font-size: 1.25rem; font-weight: 700; line-height: 1.25; }
.hero p { max-width: 42rem; margin: .5rem auto 0; font-size: 13px; line-height: 1.6; color: hsl(var(--muted-foreground)); }
@media (min-width: 640px) { .hero h1 { font-size: 1.5rem; } .hero p { font-size: .875rem; } .hero .container { padding-top: 1.25rem; padding-bottom: 1.25rem; } }
@media (min-width: 768px) { .hero h1 { font-size: 1.875rem; } .hero .container { padding-top: 1.5rem; padding-bottom: 1.5rem; } }

/* ---------- Search ---------- */
.search { position: relative; max-width: 36rem; margin: 0 auto; }
.search > svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 1.25rem; height: 1.25rem; color: hsl(var(--muted-foreground)); }
.search input {
  width: 100%; height: 3rem; border-radius: 999px; padding: 0 2.5rem 0 3rem;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border) / .5);
  color: hsl(var(--foreground)); font: 1rem var(--font-body); outline: none; transition: all .2s;
}
.search input::placeholder { color: hsl(var(--muted-foreground)); }
.search input:focus { border-color: hsl(var(--primary) / .5); box-shadow: 0 0 0 3px hsl(var(--primary) / .25); }
.search .clear { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: hsl(var(--muted-foreground)); display: none; }
.search .clear:hover { color: hsl(var(--foreground)); }
.search.has-value .clear { display: block; }

/* ---------- Section / grid / card ---------- */
.section-head { margin-bottom: 1.5rem; }
.section-head h2 { font-size: 1.5rem; font-weight: 700; }
.section-head p { margin-top: .25rem; font-size: .875rem; color: hsl(var(--muted-foreground)); }
.grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  border: 1px solid hsl(var(--border) / .6); background: hsl(var(--card));
  box-shadow: var(--shadow-card); transition: all .3s;
}
.card:hover { transform: translateY(-4px); border-color: hsl(var(--primary) / .4); box-shadow: var(--shadow-card-hover); }
.card .thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: hsl(var(--secondary)); }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.card:hover img { transform: scale(1.08); }
.card .shade { position: absolute; inset: 0; background: linear-gradient(to top, hsl(var(--background)), hsl(var(--background) / .35), transparent); }
.card .dur {
  position: absolute; right: .75rem; top: .75rem; display: inline-flex; align-items: center; gap: .25rem;
  border-radius: .375rem; border: 1px solid rgba(255,255,255,.1); background: hsl(var(--background) / .7);
  padding: .125rem .375rem; font-size: 11px; font-weight: 500; color: hsl(var(--muted-foreground));
  backdrop-filter: blur(4px);
}
.card .hover-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: hsl(var(--background) / .45); opacity: 0; transition: opacity .3s; }
.card:hover .hover-play { opacity: 1; }
.play-circle {
  display: flex; width: 3.5rem; height: 3.5rem; align-items: center; justify-content: center; border-radius: 50%;
  background: hsl(var(--primary)); box-shadow: var(--glow-primary); transform: scale(.75); transition: transform .3s;
}
.card:hover .play-circle { transform: scale(1); }
.play-circle svg { width: 1.5rem; height: 1.5rem; fill: currentColor; color: hsl(var(--primary-foreground)); margin-left: 3px; }
.card .meta { position: absolute; left: 0; right: 0; bottom: 0; padding: .75rem; }
.card .title { font: 600 .875rem var(--font-heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .sub { margin-top: .125rem; font-size: .75rem; color: hsl(var(--muted-foreground) / .8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 2.5rem; padding: 0 2rem;
  border-radius: calc(var(--radius) - 2px); background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  font-weight: 600; font-size: .875rem; transition: opacity .2s;
}
.btn:hover { opacity: .9; }
.load-more { display: flex; justify-content: center; margin: 1.5rem 0 .5rem; }
.empty { text-align: center; padding: 5rem 0; color: hsl(var(--muted-foreground)); font-size: 1.125rem; }

/* ---------- Badges / chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips.center { justify-content: center; }
.badge {
  display: inline-flex; align-items: center; border-radius: 999px; padding: .375rem .75rem;
  font-size: .75rem; font-weight: 400; transition: background .2s, border-color .2s; white-space: nowrap;
  background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); border: 1px solid transparent;
}
.badge:hover { background: hsl(var(--secondary) / .8); border-color: hsl(var(--primary) / .4); }
.badge.outline { background: transparent; border-color: hsl(var(--border)); color: hsl(var(--foreground)); }
.badge.lg { padding: .5rem 1rem; font-size: .875rem; }
.scroll-chips { display: flex; gap: .5rem; overflow-x: auto; padding: 0 1rem; margin: 0 -1rem; scrollbar-width: none; }
@media (min-width: 640px) { .scroll-chips { flex-wrap: wrap; justify-content: center; overflow: visible; margin: 0; padding: 0; } }

/* ---------- Breadcrumb ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; font-size: .75rem; margin-bottom: 1.5rem; }
.crumbs a { color: hsl(var(--muted-foreground)); transition: color .2s; }
.crumbs a:hover { color: hsl(var(--foreground)); }
.crumbs svg { width: .75rem; height: .75rem; color: hsl(var(--muted-foreground) / .5); }
.crumbs .cur { font-weight: 500; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 640px) { .crumbs .cur { max-width: 320px; } }

/* ---------- Page headers ---------- */
.page { padding-top: 2rem; padding-bottom: 2rem; flex: 1; }
.page-title { font-size: 1.5rem; font-weight: 700; }
@media (min-width: 640px) { .page-title { font-size: 1.875rem; } }
.page-intro { margin-top: .75rem; line-height: 1.7; color: hsl(var(--muted-foreground)); max-width: 48rem; }

/* ---------- Categories hub ---------- */
.hub-section { margin-top: 3.5rem; }
.hub-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.25rem; }
.hub-head .l { display: flex; align-items: center; gap: .625rem; }
.icon-box { display: flex; width: 2.25rem; height: 2.25rem; align-items: center; justify-content: center; border-radius: .5rem; border: 1px solid hsl(var(--border) / .4); background: hsl(var(--card)); color: hsl(var(--primary)); }
.icon-box svg { width: 1rem; height: 1rem; }
.hub-head h2 { font-size: 1.25rem; font-weight: 700; }
.hub-head a.more { font-size: .75rem; font-weight: 600; color: hsl(var(--primary)); }
.hub-head a.more:hover { text-decoration: underline; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .tiles { grid-template-columns: repeat(5, 1fr); } .tiles.four { grid-template-columns: repeat(4, 1fr); } }
.tile {
  display: block; border-radius: .5rem; border: 1px solid hsl(var(--border) / .4); background: hsl(var(--card));
  padding: 1rem; transition: all .3s;
}
.tile.center { text-align: center; }
.tile:hover { transform: translateY(-4px); border-color: hsl(var(--primary) / .4); }
.tile b { display: block; font: 600 .875rem var(--font-heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile small { display: block; margin-top: .25rem; font-size: .75rem; color: hsl(var(--muted-foreground)); }
.panels { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 3.5rem; }
@media (min-width: 768px) { .panels { grid-template-columns: 1fr 1fr; } }
.panel { border-radius: .5rem; border: 1px solid hsl(var(--border) / .4); background: hsl(var(--card)); padding: 1.5rem; }
.panel .icon-box { background: hsl(var(--background)); }

/* ---------- Watch page ---------- */
.watch-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.5rem; }
.back { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: hsl(var(--muted-foreground)); transition: color .2s; }
.back:hover { color: hsl(var(--foreground)); }
.back svg { width: 1rem; height: 1rem; transition: transform .2s; }
.back:hover svg { transform: translateX(-4px); }
.watch-top .crumbs { margin: 0; }
.player-wrap { max-width: 64rem; margin: 0 auto; }
.player {
  position: relative; width: 100%; aspect-ratio: 16/9; background: hsl(var(--card));
  border-radius: var(--radius); overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0,0,0,.5);
}
.player button.poster { position: relative; width: 100%; height: 100%; display: block; }
.player .poster img { width: 100%; height: 100%; object-fit: cover; }
.player .poster .ov { position: absolute; inset: 0; background: hsl(var(--background) / .4); display: flex; align-items: center; justify-content: center; }
.player .poster .big { border-radius: 50%; background: hsl(var(--primary)); padding: 1.25rem; box-shadow: 0 10px 15px rgba(0,0,0,.3); transition: transform .3s; display: flex; }
.player .poster:hover .big { transform: scale(1.1); }
.player .poster .big svg { width: 2.5rem; height: 2.5rem; fill: currentColor; }
.player video, .player iframe { width: 100%; height: 100%; background: #000; display: block; border: 0; }
.info { margin-top: 2rem; max-width: 48rem; }
.info h1 { font-size: 1.875rem; font-weight: 700; }
@media (min-width: 768px) { .info h1 { font-size: 2.25rem; } }
.info .cast { margin-top: .5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; font-size: 1.125rem; color: hsl(var(--muted-foreground)); }
.info .cast a:hover { color: hsl(var(--foreground)); text-decoration: underline; text-underline-offset: 4px; }
.info .chips { margin-top: 1rem; }
.info .desc { margin-top: 1.5rem; font-size: .875rem; line-height: 1.7; color: hsl(var(--muted-foreground)); }
.info .desc b { font-weight: 500; color: hsl(var(--foreground)); }
.stats { margin-top: .75rem; display: flex; flex-wrap: wrap; gap: 1rem; font-size: .8rem; color: hsl(var(--muted-foreground)); }
.stats span { display: inline-flex; align-items: center; gap: .3rem; }
.mt16 { margin-top: 4rem; }

/* ---------- FAQ ---------- */
.faq { margin: 4rem auto 0; max-width: 48rem; }
.faq h2 { text-align: center; font-size: 1.5rem; font-weight: 700; }
.faq > p { text-align: center; margin-top: .5rem; font-size: .875rem; color: hsl(var(--muted-foreground)); }
.faq details { border-bottom: 1px solid hsl(var(--border) / .6); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; font-weight: 500; font-size: .95rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 1rem; height: 1rem; color: hsl(var(--muted-foreground)); transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { padding-bottom: 1rem; font-size: .875rem; line-height: 1.7; color: hsl(var(--muted-foreground)); }
.faq-list { margin-top: 1.5rem; }

/* ---------- Footer ---------- */
.footer {
  position: relative; margin-top: 2rem; border-top: 1px solid hsl(var(--border) / .5);
  background: linear-gradient(to bottom, hsl(var(--card) / .7), hsl(var(--background)));
}
.footer::before { /* thin brand-colour line along the top */
  content: ""; position: absolute; top: -1px; left: 50%; transform: translateX(-50%); width: min(40rem, 80%); height: 1px;
  background: linear-gradient(to right, transparent, hsl(var(--primary) / .7), transparent);
}
.footer .container { padding-top: 3rem; padding-bottom: 1.5rem; }
.foot-top { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .foot-top { grid-template-columns: minmax(16rem, 1.15fr) 3fr; gap: 3.5rem; } }
.foot-brand { display: grid; gap: 1rem; align-content: start; justify-items: start; }
.foot-brand .logo span { font-size: 1.35rem; }
.foot-brand p { font-size: .875rem; line-height: 1.75; color: hsl(var(--muted-foreground)); max-width: 26rem; }
.foot-brand .socials { justify-content: flex-start; margin: 0; }
.foot-ch { font-size: .8rem !important; padding: .5rem 1rem !important; }
.foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; font-size: .875rem; }
@media (min-width: 768px) { .foot-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.foot-cols h3 {
  position: relative; margin-bottom: 1.1rem; padding-bottom: .6rem;
  font: 700 .8rem var(--font-heading); text-transform: uppercase; letter-spacing: .12em; color: hsl(var(--foreground));
}
.foot-cols h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 1.5rem; height: 2px; border-radius: 2px; background: hsl(var(--primary)); }
.foot-cols ul { list-style: none; display: grid; gap: .7rem; }
.foot-cols li { min-width: 0; }
.foot-cols a {
  display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: top;
  color: hsl(var(--muted-foreground)); transition: color .2s, transform .2s;
}
.foot-cols a:hover { color: hsl(var(--foreground)); transform: translateX(3px); }
.foot-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem;
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid hsl(var(--border) / .45);
}
.foot-links { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-size: .82rem; }
.foot-links a { color: hsl(var(--muted-foreground)); transition: color .2s; }
.foot-links a:hover { color: hsl(var(--primary)); }
.copy { font-size: .8rem; color: hsl(var(--muted-foreground) / .75); }
@media (max-width: 639px) { .foot-bottom { flex-direction: column-reverse; align-items: flex-start; } }

/* ---------- Legal / prose ---------- */
.prose { max-width: 48rem; }
.prose h2 { font-size: 1.25rem; font-weight: 700; margin: 2rem 0 .75rem; }
.prose p, .prose li { color: hsl(var(--muted-foreground)); line-height: 1.75; font-size: .95rem; }
.prose ul { padding-left: 1.25rem; display: grid; gap: .35rem; }
.prose a { color: hsl(var(--primary)); }

/* ---------- Community popup (the "Join our channel" toast) ---------- */
.toast {
  position: fixed; z-index: 60; right: 1rem; bottom: 1rem; left: 1rem; max-width: 24rem; margin-left: auto;
  border-radius: var(--radius); border: 1px solid hsl(var(--border)); background: hsl(var(--card));
  box-shadow: var(--shadow-card-hover); padding: 1rem 1rem 1rem 1.1rem; animation: fade-in .4s ease-out;
}
.toast b { display: block; font: 600 .95rem var(--font-heading); }
.toast p { margin-top: .25rem; font-size: .825rem; color: hsl(var(--muted-foreground)); line-height: 1.5; }
.toast .row { margin-top: .75rem; display: flex; gap: .5rem; }
.toast .btn { height: 2.1rem; padding: 0 1rem; }
.toast .later { height: 2.1rem; padding: 0 1rem; border-radius: calc(var(--radius) - 2px); background: hsl(var(--secondary)); font-size: .875rem; }
.toast .x { position: absolute; top: .6rem; right: .6rem; color: hsl(var(--muted-foreground)); }
.toast .x svg { width: 1rem; height: 1rem; }
.prose h3 { font-size: 1.05rem; font-weight: 600; margin: 1.5rem 0 .5rem; }
.prose ol { padding-left: 1.25rem; display: grid; gap: .35rem; }
.prose p + p { margin-top: .75rem; }
.prose b { color: hsl(var(--foreground)); }

/* ---------- logo image / socials ---------- */
.logo-img { height: 2.25rem; width: auto; max-width: 11rem; object-fit: contain; }
.socials { display: flex; justify-content: center; gap: .5rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.socials a { width: 2.4rem; height: 2.4rem; display: flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid hsl(var(--border)); color: hsl(var(--muted-foreground)); transition: all .2s; }
.socials a:hover { color: hsl(var(--primary-foreground)); background: hsl(var(--primary)); border-color: hsl(var(--primary)); transform: translateY(-2px); }
.socials svg { width: 1.1rem; height: 1.1rem; }

/* ---------- ad slots ---------- */
.ad-slot { display: block; text-align: center; margin: 1rem auto; }
.ad-slot:empty { display: none; }
.ad-slot .ad-label { display: block; font-size: .6rem; letter-spacing: .15em; text-transform: uppercase; color: hsl(var(--muted-foreground) / .7); margin-bottom: .3rem; }
.ad-slot .ad-body { display: flex; justify-content: center; overflow: hidden; }
.ad-slot img { max-width: 100%; height: auto; border-radius: .5rem; }
.ad-wide { max-width: 970px; }
.grid .ad-grid { grid-column: 1 / -1; margin: .25rem 0; }
.ad-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; margin: 0; padding: .35rem .5rem; background: hsl(var(--background) / .95); backdrop-filter: blur(8px); border-top: 1px solid hsl(var(--border)); }
.ad-sticky .ad-label { display: none; }
.ad-close { position: absolute; top: -.9rem; right: .5rem; width: 1.75rem; height: 1.75rem; border-radius: 999px; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); display: flex; align-items: center; justify-content: center; color: hsl(var(--muted-foreground)); }
.ad-close svg { width: .9rem; height: .9rem; }

/* ---------- cast profile ---------- */
.profile { display: grid; grid-template-columns: 13.75rem 1fr; gap: 2rem; align-items: start; margin-bottom: 2.5rem; padding: 1.5rem; border-radius: var(--radius); background: hsl(var(--card)); border: 1px solid hsl(var(--border) / .6); }
.profile-photo { aspect-ratio: 4/5; border-radius: calc(var(--radius) - 2px); overflow: hidden; background: linear-gradient(135deg, hsl(var(--primary) / .35), hsl(var(--secondary))); display: flex; align-items: center; justify-content: center; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo span { font: 700 3rem var(--font-heading); color: hsl(var(--foreground) / .85); }
.profile-body .page-title { margin-bottom: .25rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .75rem 1.5rem; margin: 1.25rem 0; }
.facts dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: hsl(var(--muted-foreground)); }
.facts dd { font-weight: 500; margin-top: .15rem; }
.bio p { color: hsl(var(--muted-foreground)); line-height: 1.75; }
.bio p + p { margin-top: .75rem; }
.badge svg { width: .85rem; height: .85rem; }
@media (max-width: 640px) { .profile { grid-template-columns: 1fr; padding: 1rem; } .profile-photo { max-width: 12rem; } }
.tax-img { width: 5rem; height: 5rem; border-radius: .75rem; object-fit: cover; margin-bottom: 1rem; border: 1px solid hsl(var(--border)); }

/* ---------- people grid (cast index) ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 1rem; }
.person { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; padding: 1.1rem .75rem; border-radius: var(--radius); background: hsl(var(--card)); border: 1px solid hsl(var(--border) / .5); transition: all .25s; }
.person:hover { transform: translateY(-4px); border-color: hsl(var(--primary) / .45); }
.person b { font: 600 .875rem var(--font-heading); }
.person small { font-size: .75rem; color: hsl(var(--muted-foreground)); }
.avatar { width: 4.5rem; height: 4.5rem; border-radius: 999px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, hsl(var(--primary) / .5), hsl(var(--secondary))); font: 700 1.2rem var(--font-heading); flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 2rem; height: 2rem; font-size: .7rem; }

/* ---------- HTML sitemap ---------- */
.sitemap .sm-hero { margin-bottom: 1.75rem; }
.sm-stats { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.sm-stats span { padding: .4rem .8rem; border-radius: 999px; background: hsl(var(--card)); border: 1px solid hsl(var(--border) / .6); font-size: .8rem; color: hsl(var(--muted-foreground)); }
.sm-stats b { color: hsl(var(--foreground)); font-family: var(--font-heading); }
.sm-jump { display: flex; flex-wrap: wrap; gap: .4rem; position: sticky; top: 4.25rem; z-index: 5; padding: .5rem 0; background: hsl(var(--background) / .9); backdrop-filter: blur(8px); }
.sm-jump a { font-size: .8rem; font-weight: 500; padding: .4rem .85rem; border-radius: 999px; background: hsl(var(--secondary)); transition: all .15s; }
.sm-jump a:hover { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.sm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.sm-card { scroll-margin-top: 7.5rem; border-radius: var(--radius); background: hsl(var(--card)); border: 1px solid hsl(var(--border) / .6); padding: 1.1rem 1.25rem 1.25rem; margin-bottom: 1rem; }
.sm-grid .sm-card { margin-bottom: 0; }
.sm-card > header { display: flex; align-items: center; gap: .6rem; margin-bottom: .9rem; padding-bottom: .75rem; border-bottom: 1px solid hsl(var(--border) / .6); }
.sm-card > header svg { width: 1.1rem; height: 1.1rem; color: hsl(var(--primary)); }
.sm-card > header h2 { font-size: 1.05rem; font-weight: 700; }
.sm-count { margin-left: auto; font-style: normal; font-size: .72rem; color: hsl(var(--muted-foreground)); background: hsl(var(--secondary)); padding: .15rem .55rem; border-radius: 999px; }
.sm-links { list-style: none; display: grid; gap: .1rem; }
.sm-links a { display: flex; justify-content: space-between; gap: .5rem; padding: .4rem .5rem; border-radius: .4rem; font-size: .875rem; color: hsl(var(--muted-foreground)); transition: all .15s; }
.sm-links a:hover { background: hsl(var(--secondary)); color: hsl(var(--foreground)); }
.sm-links small { font-size: .72rem; color: hsl(var(--muted-foreground) / .7); }
.sm-series { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: .6rem; }
.sm-ser { border-radius: .6rem; background: hsl(var(--background)); border: 1px solid hsl(var(--border) / .6); }
.sm-ser summary { list-style: none; display: flex; align-items: center; gap: .5rem; padding: .7rem .85rem; cursor: pointer; }
.sm-ser summary::-webkit-details-marker { display: none; }
.sm-ser summary a { font-weight: 600; font-size: .9rem; }
.sm-ser summary a:hover { color: hsl(var(--primary)); }
.sm-ser summary span { margin-left: auto; font-size: .72rem; color: hsl(var(--muted-foreground)); }
.sm-ser summary svg { width: .9rem; height: .9rem; color: hsl(var(--muted-foreground)); transition: transform .2s; }
.sm-ser[open] summary svg { transform: rotate(180deg); }
.sm-ser ol { padding: 0 .85rem .75rem 2.1rem; display: grid; gap: .3rem; font-size: .82rem; color: hsl(var(--muted-foreground)); }
.sm-ser ol a:hover { color: hsl(var(--foreground)); text-decoration: underline; }
.sm-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .4rem; }
.sm-people a { display: flex; align-items: center; gap: .55rem; padding: .4rem .5rem; border-radius: .5rem; font-size: .85rem; transition: background .15s; }
.sm-people a:hover { background: hsl(var(--secondary)); }
.sm-letters { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: 1rem; }
.sm-letters a { width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center; border-radius: .4rem; background: hsl(var(--secondary)); font: 600 .8rem var(--font-heading); }
.sm-letters a:hover { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.sm-az { columns: 3 16rem; column-gap: 1.5rem; }
.sm-letter { break-inside: avoid; margin-bottom: 1.1rem; scroll-margin-top: 7.5rem; }
.sm-letter h3 { font: 700 1.1rem var(--font-heading); color: hsl(var(--primary)); margin-bottom: .3rem; }
.sm-letter ul { list-style: none; display: grid; gap: .25rem; }
.sm-letter a { font-size: .85rem; color: hsl(var(--muted-foreground)); }
.sm-letter a:hover { color: hsl(var(--foreground)); text-decoration: underline; }

/* ---------- server-rendered fallback (what bots read before the app loads) ---------- */
.ssr h2 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
.ssr h3 { font-size: .95rem; margin: 1rem 0 .25rem; }
.ssr-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: .35rem 1rem; }
.ssr-list a, .ssr ul a { color: hsl(var(--muted-foreground)); }
.ssr img { max-width: 100%; height: auto; border-radius: .5rem; margin: 1rem 0; }
.ssr dl { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin: 1rem 0; }

/* ---------- video page: up next, episodes, end screen ---------- */
.watch-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .75rem; font-size: .8rem; color: hsl(var(--muted-foreground)); }
.ep-pos { font-weight: 500; }
.ap-toggle { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; user-select: none; }
.ap-toggle input { display: none; }
.ap-toggle span { width: 2.1rem; height: 1.2rem; border-radius: 999px; background: hsl(var(--muted)); position: relative; transition: background .15s; }
.ap-toggle span::after { content: ""; position: absolute; top: .15rem; left: .15rem; width: .9rem; height: .9rem; border-radius: 999px; background: #fff; transition: transform .15s; }
.ap-toggle input:checked + span { background: hsl(var(--primary)); }
.ap-toggle input:checked + span::after { transform: translateX(.9rem); }
.ep-nav { display: grid; gap: .75rem; margin-top: .9rem; }
.ep-nav .upnext-card { margin-top: 0; min-width: 0; }
@media (min-width: 768px) { .ep-nav.two { grid-template-columns: 1fr 1fr; } }
.upnext-card.prev .un-go { margin-left: 0; }
.upnext-card .un-go {
  flex-shrink: 0; width: 2.25rem; height: 2.25rem; border-radius: 999px; display: grid; place-items: center;
  background: hsl(var(--secondary)); border: 1px solid hsl(var(--border) / .6); color: hsl(var(--foreground) / .8);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.upnext-card .un-go svg { width: 1.1rem; height: 1.1rem; stroke-width: 2.5; }
.upnext-card:hover .un-go { background: hsl(var(--primary)); border-color: transparent; color: #fff; }
.upnext-card:not(.prev):hover .un-go { transform: translateX(3px); }
.upnext-card.prev:hover .un-go { transform: translateX(-3px); }
.ep-arrow svg { stroke-width: 2.5; }
.upnext-card.prev .un-text small { color: hsl(var(--muted-foreground)); }
.upnext-card { display: flex; align-items: center; gap: .9rem; margin-top: .9rem; padding: .6rem; border-radius: var(--radius); background: hsl(var(--card)); border: 1px solid hsl(var(--border) / .6); transition: border-color .2s, transform .2s; }
.upnext-card:hover { border-color: hsl(var(--primary) / .5); transform: translateY(-2px); }
.un-thumb { position: relative; width: 8.5rem; aspect-ratio: 16/9; border-radius: .5rem; overflow: hidden; flex-shrink: 0; background: hsl(var(--secondary)); }
.un-thumb img { width: 100%; height: 100%; object-fit: cover; }
.un-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.35); }
.un-play svg { width: 1.4rem; height: 1.4rem; fill: #fff; }
.un-text { display: grid; gap: .1rem; min-width: 0; }
.un-text small { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: hsl(var(--primary)); font-weight: 600; }
.un-text b { font: 600 .95rem var(--font-heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.un-text em { font-style: normal; font-size: .75rem; color: hsl(var(--muted-foreground)); }
.un-go { margin-left: auto; color: hsl(var(--muted-foreground)); }
.un-go svg { width: 1.2rem; height: 1.2rem; }

.ep-wrap { position: relative; }
.ep-rail {
  display: flex; gap: .9rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: .25rem;
  padding: .25rem .25rem .4rem; scrollbar-width: none; overscroll-behavior-x: contain;
  --fl: 0px; --fr: 0px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
}
.ep-rail::-webkit-scrollbar { display: none; }
.ep-wrap.fade-l .ep-rail { --fl: 3.5rem; }
.ep-wrap.fade-r .ep-rail { --fr: 3.5rem; }
.ep-arrow {
  position: absolute; z-index: 2; top: calc((15rem * 9 / 16) / 2 + .25rem); transform: translateY(-50%);
  width: 2.6rem; height: 2.6rem; border-radius: 999px; display: grid; place-items: center; cursor: pointer;
  color: #fff; background: hsl(0 0% 8% / .85); border: 1px solid hsl(0 0% 100% / .15);
  box-shadow: 0 6px 18px rgba(0,0,0,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .2s, transform .2s, border-color .2s;
}
.ep-arrow svg { width: 1.2rem; height: 1.2rem; }
.ep-arrow.prev { left: -.6rem; }
.ep-arrow.next { right: -.6rem; }
.ep-arrow:hover { background: hsl(var(--primary)); border-color: transparent; transform: translateY(-50%) scale(1.08); }
.ep-arrow:focus-visible { outline: 2px solid hsl(var(--primary)); outline-offset: 2px; }
.ep-arrow[hidden] { display: none; }
@media (hover: none) { .ep-arrow { display: none; } }
.ep-ph { position: absolute; inset: 0; display: grid; place-items: center; color: hsl(var(--muted-foreground) / .6); z-index: 0; }
.ep-ph svg { width: 2rem; height: 2rem; fill: currentColor; }
.ep-thumb img { position: relative; z-index: 1; }
.ep-thumb .dur, .ep-now { z-index: 2; }
.ep { flex: 0 0 15rem; scroll-snap-align: start; transition: transform .2s; display: grid; grid-template-columns: auto 1fr; gap: .35rem .5rem; align-items: start; }
.ep-thumb { grid-column: 1 / -1; position: relative; aspect-ratio: 16/9; border-radius: .6rem; overflow: hidden; background: hsl(var(--secondary)); border: 2px solid transparent; transition: border-color .2s; }
.ep:hover .ep-thumb { border-color: hsl(var(--border)); }
.ep.now .ep-thumb { border-color: hsl(var(--primary)); }
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep-thumb .dur { position: absolute; right: .4rem; bottom: .4rem; font-size: 11px; padding: .1rem .35rem; border-radius: .3rem; background: rgba(0,0,0,.75); }
.ep-now { position: absolute; left: .4rem; top: .4rem; font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .15rem .45rem; border-radius: .3rem; background: hsl(var(--primary)); color: #fff; }
.ep-n { font: 700 1.1rem var(--font-heading); color: hsl(var(--muted-foreground)); line-height: 1.2; }
.ep b { font-size: .82rem; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.nx-skip { position: absolute; right: 1rem; bottom: 4.5rem; z-index: 3; display: inline-flex; align-items: center; gap: .35rem; padding: .6rem 1.1rem; border-radius: .4rem; background: rgba(255,255,255,.92); color: #111; font-weight: 700; font-size: .9rem; animation: fade-in .3s ease-out; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.nx-skip:hover { background: #fff; }
.nx-skip svg { width: 1rem; height: 1rem; }
.nx-overlay { position: absolute; inset: 0; z-index: 4; display: flex; align-items: flex-end; justify-content: flex-end; padding: 1.25rem; background: linear-gradient(to top, rgba(0,0,0,.9), rgba(0,0,0,.35) 60%, rgba(0,0,0,.15)); animation: fade-in .35s ease-out; }
.nx-card { display: flex; gap: 1rem; align-items: center; max-width: 34rem; width: 100%; padding: .9rem; border-radius: var(--radius); background: hsl(var(--card) / .92); backdrop-filter: blur(12px); border: 1px solid hsl(var(--border)); }
.nx-thumb { width: 10rem; aspect-ratio: 16/9; border-radius: .5rem; overflow: hidden; flex-shrink: 0; }
.nx-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nx-text { display: grid; gap: .2rem; min-width: 0; }
.nx-text small { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: hsl(var(--primary)); font-weight: 700; }
.nx-text b { font: 600 1rem var(--font-heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-text em { font-style: normal; font-size: .75rem; color: hsl(var(--muted-foreground)); }
.nx-actions { display: flex; gap: .5rem; margin-top: .45rem; flex-wrap: wrap; }
.nx-actions .btn { height: 2.3rem; padding: 0 1rem; gap: .4rem; position: relative; }
.nx-actions .btn svg { width: 1rem; height: 1rem; fill: currentColor; }
.nx-actions .nx-cancel { background: hsl(var(--secondary)); color: hsl(var(--foreground)); }
.nx-ring { position: absolute; left: .3rem; top: 50%; transform: translateY(-50%) rotate(-90deg); width: 1.7rem !important; height: 1.7rem !important; fill: none !important; }
.nx-ring circle { fill: none; stroke: rgba(255,255,255,.25); stroke-width: 3; }
.nx-ring .nx-prog { stroke: #fff; stroke-dasharray: 100.5; }
.nx-play:has(.nx-ring) { padding-left: 2.4rem; }
.nx-play:has(.nx-ring) > svg:not(.nx-ring) { display: none; }
@media (max-width: 640px) {
  .nx-overlay { padding: .6rem; align-items: center; justify-content: center; }
  .nx-thumb { display: none; }
  .un-thumb { width: 6.5rem; }
  .nx-skip { bottom: 3.5rem; right: .6rem; font-size: .8rem; }
}

/* ---------- Admin toolbar, WordPress-style (only for a logged-in admin; on/off in Admin → Settings) ---------- */
#adminbar {
  --ab-h: 32px;
  position: fixed; top: 0; left: 0; right: 0; z-index: 99999; height: var(--ab-h);
  display: flex; justify-content: space-between; background: #1d2327; color: #f0f0f1;
  font: 400 13px/var(--ab-h) -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
#adminbar ul { list-style: none; margin: 0; padding: 0; }
#adminbar .ab-list { display: flex; height: 100%; min-width: 0; }
#adminbar .ab-top { position: relative; height: 100%; }
#adminbar .ab-item {
  display: flex; align-items: center; gap: 6px; height: 100%; padding: 0 8px; color: #f0f0f1; white-space: nowrap;
  transition: color .1s, background .1s;
}
#adminbar .ab-item svg { width: 18px; height: 18px; color: #9ca2a7; transition: color .1s; flex-shrink: 0; }
#adminbar .ab-top:hover > .ab-item, #adminbar .ab-top:focus-within > .ab-item, #adminbar .ab-top.open > .ab-item { background: #2c3338; color: #72aee6; }
#adminbar .ab-top:hover > .ab-item svg, #adminbar .ab-top:focus-within > .ab-item svg, #adminbar .ab-top.open > .ab-item svg { color: #72aee6; }
#adminbar .ab-item:focus-visible { outline: 2px solid #72aee6; outline-offset: -2px; }
#adminbar .ab-logo .ab-item { padding: 0 10px; }
#adminbar .ab-logo .ab-label { display: none; }
#adminbar .ab-site .ab-label { max-width: 16rem; overflow: hidden; text-overflow: ellipsis; }
#adminbar .ab-edit .ab-item svg, #adminbar .ab-new .ab-item svg { width: 16px; height: 16px; }
/* submenus */
#adminbar .ab-sub {
  display: none; position: absolute; top: 100%; left: 0; min-width: 11rem; padding: 6px 0;
  background: #2c3338; box-shadow: 0 3px 5px rgba(0,0,0,.2); line-height: 1.4;
}
#adminbar .ab-top:hover > .ab-sub, #adminbar .ab-top:focus-within > .ab-sub, #adminbar .ab-top.open > .ab-sub { display: block; }
#adminbar .ab-sub a { display: block; padding: 6px 12px 6px 14px; color: #f0f0f1; white-space: nowrap; }
#adminbar .ab-sub a:hover, #adminbar .ab-sub a:focus-visible { color: #72aee6; outline: none; }
/* account (right side) */
#adminbar .ab-secondary .ab-top > .ab-item { padding: 0 8px 0 10px; }
#adminbar .ab-avatar {
  display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 2px;
  background: hsl(var(--primary)); color: #fff; font-size: 11px; font-weight: 700; line-height: 1;
}
#adminbar .ab-avatar.lg { width: 64px; height: 64px; font-size: 28px; border-radius: 4px; flex-shrink: 0; }
#adminbar .ab-profile { left: auto; right: 0; min-width: 16rem; padding: 12px; }
#adminbar .ab-card { display: flex; gap: 12px; align-items: flex-start; }
#adminbar .ab-card b { display: block; color: #f0f0f1; font-weight: 600; margin-bottom: 4px; }
#adminbar .ab-card a, #adminbar .ab-card button { display: block; padding: 3px 0; color: #f0f0f1; background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
#adminbar .ab-card a:hover, #adminbar .ab-card button:hover { color: #72aee6; }
html.is-admin body { padding-top: 32px; }
html.is-admin .header { top: 32px; }
/* phones: taller bar, icons only (as WordPress does) */
@media (max-width: 782px) {
  #adminbar { --ab-h: 46px; }
  html.is-admin body { padding-top: 46px; }
  html.is-admin .header { top: 46px; }
  #adminbar .ab-item { padding: 0 12px; }
  #adminbar .ab-item svg { width: 26px; height: 26px; }
  #adminbar .ab-new .ab-item svg, #adminbar .ab-edit .ab-item svg { width: 24px; height: 24px; }
  #adminbar .ab-label { display: none; }
  #adminbar .ab-avatar { width: 26px; height: 26px; font-size: 14px; }
  #adminbar .ab-sub { position: fixed; top: 46px; left: 0; right: 0; width: 100%; line-height: 2; }
  #adminbar .ab-sub a { padding: 8px 16px; font-size: 14px; }
}

.adm-edit {
  position: absolute; top: .5rem; left: .5rem; z-index: 3;
  display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .6rem; border-radius: 999px;
  background: hsl(0 0% 0% / .75); color: #fff; font-size: .72rem; font-weight: 600; cursor: pointer;
  border: 1px solid hsl(0 0% 100% / .2); opacity: 0; transform: translateY(-3px);
  transition: opacity .2s, transform .2s, background .2s;
}
.adm-edit svg { width: .8rem; height: .8rem; }
.card:hover .adm-edit, .card:focus-within .adm-edit, .adm-edit:focus-visible { opacity: 1; transform: none; }
.adm-edit:hover { background: hsl(var(--primary)); border-color: transparent; }
@media (hover: none) { .adm-edit { opacity: 1; transform: none; } }

/* ---------- scrollbars: thin, in the theme's colours, instead of the browser's bright default ---------- */
html { scrollbar-width: thin; scrollbar-color: hsl(var(--foreground) / .2) hsl(var(--background)); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: hsl(var(--background)); }
::-webkit-scrollbar-thumb { background: hsl(var(--foreground) / .18); border-radius: 999px; border: 2px solid hsl(var(--background)); }
::-webkit-scrollbar-thumb:hover { background: hsl(var(--primary) / .7); }
