@font-face { font-family: "Fredoka"; src: url(fredoka.woff?v=3) format("woff"); font-weight: 300 700; font-display: swap; }
:root {
  --cream: #fff3df; --cream-2: #fbe6c4; --ink: #2a1b16; --ink-soft: #5a4038;
  --toast: #e8743b; --toast-deep: #c4532e; --teal: #3fb5ad; --teal-deep: #1f6b67;
  --bg: var(--cream); --surface: #fffaf1; --text: var(--ink); --muted: var(--ink-soft);
  --line: var(--ink); --cta: var(--toast); --cta-text: var(--ink); --link: var(--toast-deep);
  --radius: 22px; --shadow: 0 6px 0 var(--line);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #123836; --surface: #1a4744; --text: #fff3df; --muted: #d8c8b0; --line: #0a1f1e; --cta: #f08a4f; --cta-text: #2a1b16; --link: #f6a676; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Fredoka", ui-rounded, "Segoe UI", system-ui, sans-serif; font-weight: 400; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border: 3px solid var(--ink); border-radius: 12px; z-index: 5; }
.skip:focus { left: 12px; }

/* top bar */
.top { border-bottom: 3px solid var(--ink); background: var(--surface); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 12px; padding-bottom: 12px; }
.top .logo img { width: 138px; }
.top nav { display: flex; gap: 6px 18px; flex-wrap: wrap; justify-content: flex-end; }
.top nav a { font-weight: 600; text-decoration: none; padding: 4px 2px; border-bottom: 3px solid transparent; }
.top nav a:hover, .top nav a[aria-current="page"] { border-bottom-color: var(--cta); }
.top nav a:focus-visible, .crumbs a:focus-visible, .ep-card:focus-visible, .pn a:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* buttons, pills */
.btn { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; background: var(--cta); color: var(--cta-text); text-decoration: none; font-weight: 600; font-size: 1.1rem; padding: 13px 24px 14px; border: 3px solid var(--ink); border-radius: 999px; box-shadow: 0 5px 0 var(--ink); transition: transform .18s cubic-bezier(.16,1,.3,1), box-shadow .18s cubic-bezier(.16,1,.3,1); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
.btn .play { width: 0; height: 0; border-left: 12px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.pill { display: inline-block; font-size: .95rem; font-weight: 600; background: var(--teal); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 14px; }

/* breadcrumb */
.crumbs { font-size: .95rem; color: var(--muted); margin: 22px 0 16px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li + li::before { content: "›"; margin: 0 9px; color: var(--muted); }
.crumbs a { color: var(--text); font-weight: 600; text-underline-offset: 3px; }

/* episode page */
.ep h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.9rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; margin: 14px 0 10px; max-width: 24ch; text-wrap: balance; }
.meta { color: var(--muted); margin: 0 0 26px; font-size: 1rem; }
.ep-grid { display: grid; gap: 32px; padding-bottom: 56px; }
.player { position: relative; width: 100%; max-width: 380px; margin: 0 auto; aspect-ratio: 9 / 16; border: 3px solid var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #1a1210; }
.player img, .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.facade { all: unset; position: absolute; inset: 0; cursor: pointer; display: block; }
.facade:focus-visible { outline: 4px solid var(--teal); outline-offset: -8px; border-radius: 18px; }
.facade .ring { position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; background: var(--cta); border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); display: grid; place-items: center; transition: transform .18s cubic-bezier(.16,1,.3,1); }
.facade .ring::after { content: ""; margin-left: 7px; border-left: 26px solid var(--ink); border-top: 16px solid transparent; border-bottom: 16px solid transparent; }
.facade:hover .ring { transform: scale(1.06); }
.facade .lbl { position: absolute; left: 12px; right: 12px; bottom: 12px; text-align: center; font-weight: 600; color: #fff3df; background: rgba(42,27,22,.78); border-radius: 999px; padding: 6px 12px; font-size: .95rem; }
.player.soon img { filter: saturate(.8) brightness(.82); }
.player.soon .when { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-3deg); background: var(--cta); color: var(--ink); border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); border-radius: 18px; padding: 14px 22px; text-align: center; white-space: nowrap; }
.player.soon .when b { display: block; font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.player.soon .when span { font-size: .95rem; font-weight: 600; }
.watch-link { text-align: center; margin: 14px 0 0; font-size: .95rem; color: var(--muted); }
.watch-link a { color: var(--text); font-weight: 600; text-underline-offset: 3px; }

.body h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); font-weight: 600; margin: 40px 0 10px; letter-spacing: -0.01em; }
.body h2:first-child { margin-top: 0; }
.story p { font-size: 1.14rem; margin: 0 0 1em; max-width: 62ch; text-wrap: pretty; }
.story p:first-child { font-size: 1.28rem; font-weight: 500; }
.sources ol { margin: 0; padding-left: 1.3em; max-width: 70ch; color: var(--muted); }
.sources li { margin: 0 0 .6em; }
.sources a { color: var(--link); font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }
.picks .note { margin: 0 0 16px; color: var(--muted); font-size: 1.05rem; }
.slots { display: grid; gap: 14px; }
.slot { border: 3px dashed var(--line); border-radius: var(--radius); padding: 22px; min-height: 120px; display: grid; place-content: center; text-align: center; color: var(--muted); background: var(--surface); }
.slot b { color: var(--text); font-weight: 600; font-size: 1.1rem; }

.pn { display: grid; gap: 14px; margin: 44px 0 0; }
.pn a, .pn .end { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; text-decoration: none; background: var(--surface); border: 3px solid var(--ink); border-radius: 18px; padding: 10px 16px 10px 10px; box-shadow: 0 4px 0 var(--ink); transition: transform .18s cubic-bezier(.16,1,.3,1); }
.pn a:hover { transform: translateY(-2px); }
.pn img { width: 64px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; border: 2px solid var(--ink); }
.pn small { display: block; color: var(--muted); font-weight: 600; font-size: .9rem; }
.pn strong { font-weight: 600; line-height: 1.25; display: block; }
.pn .end { grid-template-columns: 1fr; color: var(--muted); }
.subcard { margin: 28px 0 0; background: var(--surface); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.subcard p { margin: 0; font-size: 1.1rem; font-weight: 500; max-width: 36ch; }

/* index */
.ix-head { padding: 34px 0 26px; }
.ix-head h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); font-weight: 600; margin: 12px 0 8px; line-height: 1.05; letter-spacing: -0.01em; }
.ix-head p { color: var(--muted); font-size: 1.1rem; margin: 0; max-width: 52ch; }
.ep-list { list-style: none; margin: 0; padding: 0 0 64px; display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.soon-cta { display: block; margin: -6px 14px 14px; padding: 6px 10px; border-radius: 10px; background: var(--cta); color: var(--ink); font-weight: 700; font-size: .85rem; line-height: 1.25; }
.notify-line { margin: 14px 0 10px; font-weight: 600; }
.btn.notify { width: 100%; justify-content: center; }
.ep-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 22px; font-weight: 600; }
.sort-btn { font: inherit; font-weight: 700; padding: 6px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; }
.sort-btn.on { background: var(--cta); }
.sort-btn:focus-visible, .sort-start:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.sort-start { margin-left: auto; font-weight: 700; color: inherit; }
.ep-card { display: block; height: 100%; text-decoration: none; background: var(--surface); border: 3px solid var(--ink); border-radius: 18px; overflow: hidden; box-shadow: 0 5px 0 var(--ink); transition: transform .18s cubic-bezier(.16,1,.3,1), box-shadow .18s cubic-bezier(.16,1,.3,1); }
.ep-card:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--ink); }
.ep-card .pic { position: relative; border-bottom: 3px solid var(--ink); }
.ep-card .pic img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.ep-card .num { position: absolute; left: 8px; top: 8px; background: var(--cta); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; font-weight: 700; padding: 1px 10px; font-size: .95rem; }
.ep-card .tag { position: absolute; right: 8px; top: 8px; background: var(--teal); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; font-weight: 600; padding: 1px 10px; font-size: .85rem; }
.ep-card h2 { font-size: 1.02rem; font-weight: 600; line-height: 1.25; margin: 0; padding: 12px 14px 16px; text-wrap: pretty; }

footer { border-top: 3px solid var(--ink); background: var(--surface); }
.foot { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding: 22px 20px; font-size: .98rem; color: var(--muted); }
.foot a { color: var(--text); font-weight: 600; text-underline-offset: 3px; }
.foot img { width: 132px; }

@media (min-width: 620px) {
  .ep-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .btn.shop { margin: 6px 0 8px; }
  .pn { grid-template-columns: 1fr 1fr; }
  .pn .next { text-align: right; grid-template-columns: 1fr 64px; padding: 10px 10px 10px 16px; }
  .pn .next img { order: 2; }
}
@media (min-width: 900px) {
  .wrap { padding: 0 40px; }
  .top .logo img { width: 156px; }
  .ep-grid { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 64px; align-items: start; }
  .ep-grid .media { position: sticky; top: 24px; }
  .ep-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
  .ix-head { padding: 24px 0 34px; }
}
@media (min-width: 1180px) { .ep-list { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .btn, .ep-card, .pn a, .facade .ring { transition: none; } }
