/* Papa Dudut | Playful theme layer
   Loaded after site.css. Bright, friendly and rounded: sky-blue navigation, clouds and green
   hills, chunky "pressable" buttons, rainbow accents and full-width color bands with
   scalloped edges. Remove this file's <link> to fall back to the editorial light theme. */

/* ------------------------------------------------------------------ Font */
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/quicksand-latin-wght-normal.woff2') format('woff2');
}

/* ------------------------------------------------------------------ Tokens */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef7fd;
  --surface-hover: #ffffff;
  --hairline: rgba(15, 151, 244, 0.14);
  --hairline-strong: rgba(15, 110, 190, 0.26);

  --text: #252525;
  --text-2: #464b55;
  --text-3: #626a75;

  --sky: #0f97f4;
  --sky-deep: #0a6fbf;
  --red: #eb442d;
  --red-hover: #f25a42;
  --orange: #f7931e;
  --yellow: #f2b705;
  --green: #3db54a;
  --purple: #8e44cf;
  --pink: #e84393;
  --teal: #00b8c4;

  --crimson: var(--red);
  --crimson-hover: var(--red-hover);
  --crimson-line: rgba(15, 151, 244, 0.45);
  --amber: var(--sky-deep);

  --font-display: 'Quicksand', 'Nunito', system-ui, sans-serif;
  --font-ui: 'Quicksand', 'Nunito', system-ui, sans-serif;
  --font-mono: 'Quicksand', 'Nunito', system-ui, sans-serif;

  --radius-lg: 24px;
  --radius: 20px;
  --radius-sm: 14px;
  --press: 0 4px 0 rgba(37, 37, 37, 0.2);
  --card-shadow: 0 6px 0 rgba(15, 151, 244, 0.1), 0 18px 40px -22px rgba(15, 60, 120, 0.35);
}

body {
  font-weight: 500;
}

body::before {
  display: none;
}

h1,
h2,
h3,
h4,
.display,
.section-title,
.feature-title,
.bento-lead-title,
.bento-card-title,
.card-title,
.person-name,
.series-name,
.hall-title,
.timeline-body h3,
.readout-title h3,
.watch-title,
.story-dialog-title,
.empty-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.display {
  font-size: clamp(2.3rem, 1.5rem + 2.8vw, 3.9rem);
  line-height: 1.08;
}

.display--page {
  font-size: clamp(2.1rem, 1.5rem + 2.2vw, 3.3rem);
}

.section-title {
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.75rem);
  line-height: 1.1;
}

.kicker {
  color: var(--sky-deep);
  letter-spacing: 0.12em;
}

.kicker .num {
  color: var(--text);
}

.num,
.pill--duration,
.impact-strip dd,
.readout-freq,
.station-freq,
.page-num,
.pill-count {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.sep {
  color: var(--sky);
}

/* ------------------------------------------------------------------ Buttons */
.btn {
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background-color 0.2s var(--ease), transform 0.12s var(--ease), box-shadow 0.12s var(--ease);
}

.btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow: inset 0 5px 15px rgba(255, 255, 255, 0.2), inset 0 -5px 15px rgba(0, 0, 0, 0.1), var(--press);
}

.btn--primary:hover {
  background: var(--red-hover);
}

.btn--ghost {
  border: 2px solid var(--sky);
  background: #fff;
  color: var(--sky-deep);
  box-shadow: 0 4px 0 rgba(15, 151, 244, 0.28);
}

.btn--ghost:hover {
  border-color: var(--sky);
  background: #f2f9ff;
}

.btn--quiet {
  border: 0;
  background: var(--surface-2);
  color: var(--sky-deep);
  box-shadow: 0 3px 0 rgba(15, 151, 244, 0.22);
}

.btn--quiet:hover {
  background: #e0f1fd;
}

.btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 rgba(37, 37, 37, 0.2);
}

.link-more {
  color: var(--sky-deep);
  font-weight: 700;
}

.link-more:hover {
  color: var(--sky);
  text-decoration-color: currentColor;
}

/* ------------------------------------------------------------------ Header */
.site-header {
  position: relative;
  height: auto;
  border-bottom: 0;
  background: #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 2px 0 rgba(15, 151, 244, 0.12);
}

.site-header--compact {
  position: sticky;
}

.header-top {
  position: relative;
  height: var(--header-h);
  background: #fff;
}

.header-inner {
  gap: 18px;
}

.brand {
  gap: 10px;
}

.brand-tiles {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.brand-tile {
  display: grid;
  place-items: center;
  width: 26px;
  height: 30px;
  border-radius: 7px;
  background: var(--tile);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.16), inset 0 3px 0 rgba(255, 255, 255, 0.25);
}

.brand-tile:nth-child(odd) {
  transform: rotate(-3deg);
}

.brand-tile:nth-child(3n) {
  transform: translateY(-2px) rotate(2deg);
}

.brand-gap {
  width: 6px;
}

.brand-freq {
  border: 0;
  border-radius: 6px;
  background: var(--sky);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.2em 0.45em;
}

.site-nav a {
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 700;
}

.site-nav a:hover {
  color: var(--sky);
}

.site-nav a[aria-current='page'] {
  color: var(--sky-deep);
  background: var(--surface-2);
}

.menu-toggle {
  border: 2px solid var(--hairline-strong);
  color: var(--sky-deep);
}

/* Colorful section bar */
.section-bar {
  background: var(--sky);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.08);
}

.section-bar-list {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 0 auto;
  padding-top: 12px;
  padding-bottom: 14px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.section-bar-list::-webkit-scrollbar {
  display: none;
}

.section-bar a {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 96px;
  padding: 4px 8px;
  border-radius: 14px;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease);
}

.section-bar a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.section-bar-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--tile);
  color: #fff;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2), inset 0 3px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.2s var(--ease);
}

.section-bar a:hover .section-bar-icon {
  transform: translateY(-3px) rotate(-4deg);
}

.section-bar-icon .icon {
  width: 22px;
  height: 22px;
}

@media (max-width: 899px) {
  .section-bar-list {
    justify-content: flex-start;
  }

  .section-bar a {
    min-width: 84px;
    font-size: 0.78rem;
  }

  .section-bar-icon {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 719px) {
  .site-nav ul {
    background: #fff;
    box-shadow: 0 10px 20px -10px rgba(15, 60, 120, 0.3);
  }
}

@media (max-width: 479px) {
  .brand-tile {
    width: 22px;
    height: 26px;
    font-size: 0.92rem;
  }

}

/* ------------------------------------------------------------------ Cards */
.media {
  border-radius: 14px;
  background: #e3f2fc;
}

.media::before {
  background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, 0.8) 45%, transparent 65%) #e3f2fc;
  background-size: 220% 100%;
}

.feature-card,
.bento-lead,
.bento-card,
.video-card,
.person-card,
.series-card,
.tuner-console,
.tuner-readout,
.rec-card {
  border: 0;
  background: #fff;
  box-shadow: var(--card-shadow);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.feature-card:hover,
.bento-lead:hover,
.bento-card:hover,
.video-card:hover,
.person-card:hover,
.series-card:hover {
  border: 0;
  background: #fff;
  transform: translateY(-4px);
  box-shadow: 0 10px 0 rgba(15, 151, 244, 0.12), 0 24px 44px -22px rgba(15, 60, 120, 0.4);
}

.bento-lead::before,
.bento-card::before,
.video-card::before,
.series-card::before {
  --spot: rgba(15, 151, 244, 0.08);
}

.rec-card {
  background: #fff;
}

.play-badge {
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  color: var(--red);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18);
}

a.media:hover .play-badge,
.video-card:hover .play-badge,
.series-card:hover .play-badge {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.feature-media .play-badge {
  background: rgba(255, 255, 255, 0.9);
  color: var(--red);
  border: 0;
}

.feature-media:hover .play-badge {
  background: var(--red);
  color: #fff;
}

.pill--duration {
  border-radius: 8px;
  background: rgba(37, 37, 37, 0.82);
  color: #fff;
  font-weight: 700;
}

/* Rainbow category chips */
.tag {
  border: 0;
  border-radius: 999px;
  padding: 0.35em 0.75em;
  background: #e8f4fe;
  color: var(--sky-deep);
  letter-spacing: 0.06em;
}

.tag--quiet {
  background: none;
  padding-inline: 0;
  color: var(--text-3);
}

[data-cat='love'] .tag:not(.tag--quiet) {
  background: #ffe3e8;
  color: #c0182f;
}

[data-cat='family'] .tag:not(.tag--quiet) {
  background: #ffefd9;
  color: #a84d00;
}

[data-cat='spooky'] .tag:not(.tag--quiet) {
  background: #f1e5fb;
  color: #6c2ba8;
}

[data-cat='dokyu'] .tag:not(.tag--quiet) {
  background: #e1f6e4;
  color: #1d7a32;
}

.card-actions {
  border-top: 2px dashed var(--hairline);
}

.meta {
  color: var(--text-3);
  font-weight: 600;
}

/* ------------------------------------------------------------------ Sections and color bands */
.section {
  border-top: 0;
}

.section::before {
  display: none;
}

/* Bands get a scalloped top edge in their own color, like the hills meeting the sky */
:is(.tuner-section, .hall, section[aria-labelledby='people-title'], section[aria-labelledby='series-title']) {
  position: relative;
}

:is(.tuner-section, .hall, section[aria-labelledby='people-title'], section[aria-labelledby='series-title'])::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -38px;
  height: 40px;
  background: var(--band-top);
  -webkit-mask: var(--img-ui-wave) 0 0 / 160px 40px repeat-x;
  mask: var(--img-ui-wave) 0 0 / 160px 40px repeat-x;
  pointer-events: none;
}

:is(.tuner-section, .hall, section[aria-labelledby='people-title'], section[aria-labelledby='series-title']) .section-title,
:is(.tuner-section, .hall, section[aria-labelledby='people-title'], section[aria-labelledby='series-title']) > .container > .section-head .kicker,
:is(.tuner-section, .hall, section[aria-labelledby='people-title'], section[aria-labelledby='series-title']) .section-head .kicker,
:is(.tuner-section, .hall, section[aria-labelledby='people-title'], section[aria-labelledby='series-title']) .section-lede {
  color: #fff;
}

:is(.tuner-section, .hall, section[aria-labelledby='people-title'], section[aria-labelledby='series-title']) .section-lede {
  font-weight: 600;
  opacity: 0.95;
}

:is(.tuner-section, .hall, section[aria-labelledby='people-title'], section[aria-labelledby='series-title']) .section-head .kicker {
  opacity: 0.9;
}

.tuner-section {
  --band-top: #e23d80;
  background: linear-gradient(180deg, #e23d80 0%, #a23cc6 100%);
}

.hall {
  --band-top: #0b7fd6;
  background: linear-gradient(180deg, #0b7fd6 0%, #0a5fb4 100%);
}

section[aria-labelledby='people-title'] {
  --band-top: #ea5a2c;
  background: linear-gradient(180deg, #ea5a2c 0%, #d63f2b 100%);
}

section[aria-labelledby='series-title'] {
  --band-top: #23955e;
  background: linear-gradient(180deg, #23955e 0%, #1b7d4f 100%);
}

/* ------------------------------------------------------------------ Sky hero (home, page heroes, about, watch) */
.hero,
.page-hero,
.about-hero,
.not-found {
  position: relative;
  overflow: hidden;
  background: var(--img-ui-hills) bottom / 100% 150px no-repeat,
    var(--img-ui-clouds) center 62% / 1600px 320px repeat-x,
    linear-gradient(180deg, #a9def2 0%, #c6ecf3 55%, #e2f6ef 100%);
}

.hero {
  padding-bottom: 150px;
}

.page-hero,
.about-hero,
.not-found {
  padding-bottom: 120px;
}

.hero::before,
.hero-glow {
  display: none;
}

.hero-copy .lede,
.page-hero .lede,
.not-found .lede {
  color: #2f3a48;
  font-weight: 600;
}

.onair-badge {
  border: 0;
  background: #fff;
  color: var(--text);
  box-shadow: 0 3px 0 rgba(15, 151, 244, 0.2);
}

.feature-card {
  padding: 12px;
}

.feature-vu {
  border: 0;
  background: var(--surface-2);
  color: var(--sky-deep);
}

.vu-meter i {
  background: var(--green);
}

.vu-meter i:nth-child(n + 6) {
  background: var(--yellow);
}

.vu-meter i:nth-child(n + 11) {
  background: var(--orange);
}

.vu-meter i:nth-child(n + 14) {
  background: var(--red);
}

.vu-meter::after {
  background: rgba(238, 247, 253, 0.92);
}

.vu-unit {
  color: var(--sky-deep);
}

/* Impact strip sits on the hills as a white panel with rainbow numbers */
.impact-strip {
  position: relative;
  z-index: 1;
  margin-top: 56px;
  border: 0;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.impact-strip > div {
  padding: 22px 24px !important;
  border-color: var(--hairline) !important;
}

.impact-strip dd {
  font-family: var(--font-display);
  font-weight: 700;
}

.impact-strip > div:nth-child(1) dd {
  color: var(--red);
}

.impact-strip > div:nth-child(2) dd {
  color: var(--sky);
}

.impact-strip > div:nth-child(3) dd {
  color: var(--green);
}

.impact-strip > div:nth-child(4) dd {
  color: var(--purple);
}

.impact-strip dt {
  color: var(--text-2);
  font-weight: 700;
}

/* ------------------------------------------------------------------ Tuner: a toy radio */
.tuner-console,
.tuner-readout {
  background: #fff;
}

.dial-window {
  border: 4px solid #0a5fb4;
  background: linear-gradient(180deg, #1c4b8f, #0f2f5e);
  box-shadow: inset 0 0 40px rgba(15, 151, 244, 0.45), 0 4px 0 rgba(10, 60, 120, 0.3);
}

.dial-window::before {
  background: radial-gradient(28% 90% at var(--needle) 45%, rgba(255, 226, 122, 0.4), transparent 72%);
}

.station-dot {
  background: var(--yellow);
  box-shadow: 0 0 10px rgba(242, 183, 5, 0.9);
}

.dial-needle,
.dial-needle::before {
  background: #ffd23f;
  box-shadow: 0 0 14px rgba(255, 210, 63, 0.9);
}

.band-label {
  color: var(--text-3);
  font-weight: 700;
}

.stereo {
  border: 0;
  background: #fff4c9;
  color: #8a5a00;
  box-shadow: 0 3px 0 rgba(242, 183, 5, 0.4);
}

.station {
  border: 2px solid var(--hairline);
  font-weight: 600;
}

.station:hover {
  border-color: var(--sky);
}

.station[aria-pressed='true'] {
  border-color: var(--sky);
  background: #e8f4fe;
}

.station-freq {
  color: #fff;
  justify-self: start;
  padding: 0.25em 0.5em;
  border-radius: 8px;
  background: var(--sky);
  font-size: 0.95rem;
}

.station:nth-child(1) .station-freq {
  background: var(--orange);
}

.station:nth-child(2) .station-freq {
  background: var(--pink);
}

.station:nth-child(3) .station-freq {
  background: var(--purple);
}

.station:nth-child(4) .station-freq {
  background: var(--green);
}

.station:nth-child(5) .station-freq {
  background: var(--sky-deep);
}

.station[aria-pressed='true'] .station-freq {
  color: #fff;
}

.readout-freq {
  color: var(--sky);
}

.readout-freq small {
  color: var(--pink);
}

.equalizer rect {
  fill: var(--red);
}

.equalizer rect:nth-child(6n + 2) {
  fill: var(--orange);
}

.equalizer rect:nth-child(6n + 3) {
  fill: var(--yellow);
}

.equalizer rect:nth-child(6n + 4) {
  fill: var(--green);
}

.equalizer rect:nth-child(6n + 5) {
  fill: var(--sky);
}

.equalizer rect:nth-child(6n) {
  fill: var(--purple);
}

.station-line {
  border-left: 0;
  border-radius: var(--radius-sm);
  background: #fff4c9;
}

.line-en {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
}

.station-line figcaption {
  color: #8a5a00;
}

/* ------------------------------------------------------------------ Merch */

/* ------------------------------------------------------------------ Archive */
.pill-btn {
  border: 2px solid var(--hairline-strong);
  background: #fff;
  color: var(--text);
  font-weight: 700;
}

.pill-btn:hover {
  border-color: var(--sky);
  color: var(--sky-deep);
}

.pill-btn[aria-pressed='true'] {
  border-color: var(--sky);
  background: var(--sky);
  color: #fff;
  box-shadow: 0 3px 0 rgba(10, 95, 180, 0.35);
}

.field {
  border: 2px solid var(--hairline-strong);
  background: #fff;
}

.field:focus-within {
  border-color: var(--sky);
}

.series-banner {
  border: 0;
  background: #fff4c9;
  box-shadow: 0 3px 0 rgba(242, 183, 5, 0.35);
}

.series-banner > .icon {
  color: #8a5a00;
}

.page-list {
  border: 2px solid var(--hairline-strong);
  background: #fff;
}

.page-num {
  color: var(--text);
}

.page-num[aria-current='page'] {
  background: var(--sky);
  color: #fff;
}

.page-step {
  border: 2px solid var(--hairline-strong);
  background: #fff;
  color: var(--sky-deep);
  font-weight: 700;
}

/* ------------------------------------------------------------------ Hall of Fame on the blue band */
.hall .tab-list {
  border: 0;
  background: rgba(255, 255, 255, 0.16);
}

.hall [role='tab'] {
  color: #fff;
}

.hall [role='tab'][aria-selected='true'] {
  background: #fff;
  color: var(--sky-deep);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.15);
}

.hall .hall-list {
  padding: 8px 24px;
  border: 0;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.1);
}

.hall-item:last-child {
  border-bottom: 0;
}

.hall-rank {
  font-family: var(--font-display);
  font-weight: 700;
}

.hall-item:nth-child(1) .hall-rank {
  color: var(--red);
}

.hall-item:nth-child(2) .hall-rank {
  color: var(--orange);
}

.hall-item:nth-child(3) .hall-rank {
  color: var(--yellow);
}

.hall-item:nth-child(4) .hall-rank {
  color: var(--green);
}

.hall-item:nth-child(5) .hall-rank {
  color: var(--sky);
}

/* ------------------------------------------------------------------ About */
.about-portrait {
  border: 6px solid #fff;
  box-shadow: var(--card-shadow);
}

.fact-grid dd {
  color: var(--text);
}

.timeline-when {
  color: var(--sky-deep);
}

.timeline-item--now .timeline-when {
  color: var(--red);
}

.timeline-item {
  border-bottom: 2px dashed var(--hairline);
}

.series-body .btn {
  border-radius: 12px;
}

/* ------------------------------------------------------------------ Watch page */
.watch-stage {
  background: var(--img-ui-clouds) center 70% / 1600px 320px repeat-x,
    linear-gradient(180deg, #bfe7f4 0%, #e6f6f2 100%);
}

.player {
  border: 6px solid #fff;
  box-shadow: var(--card-shadow);
}

.play-badge--xl {
  background: var(--red);
  color: #fff;
}

/* ------------------------------------------------------------------ Footer */
.site-footer {
  --band-top: #0f97f4;
  position: relative;
  margin-top: 40px;
  background: linear-gradient(180deg, #0f97f4 0%, #0a6fbf 100%);
  color: #e6f4ff;
}

.site-footer::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -38px;
  height: 40px;
  background: var(--band-top);
  -webkit-mask: var(--img-ui-wave) 0 0 / 160px 40px repeat-x;
  mask: var(--img-ui-wave) 0 0 / 160px 40px repeat-x;
  pointer-events: none;
}

.footer-brand p,
.footer-col a,
.footer-base {
  color: #e6f4ff;
}

.footer-col-title {
  color: #fff;
}

.footer-col a:hover {
  color: #fff;
}

.footer-base {
  border-top-color: rgba(255, 255, 255, 0.25);
}

.footer-base .sep {
  color: #fff;
}

/* Section-seam spacing so the scalloped bands breathe */
.tuner-section,
.hall,
section[aria-labelledby='people-title'],
section[aria-labelledby='series-title'] {
  margin-top: 38px;
}
