:root {
  color-scheme: dark;
  font: 100% system-ui, sans-serif;
  color: #fbf3ed;
  background: #161013;
  --accent: #ffab7f;
  --muted: #d4bac2;
  --line: #543641;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, .button { cursor: pointer; border: 0; border-radius: .6rem; padding: .8rem 1rem; background: var(--accent); color: #25130f; font-weight: 750; }
button:hover, .button:hover { filter: brightness(1.12); }
:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(1200px, calc(100% - 2rem)); margin: auto; }
.top { border-bottom: 1px solid var(--line); }
.bar { display: flex; justify-content: space-between; align-items: center; height: 4.25rem; }
.brand { font: bold 1.65rem Georgia, serif; }
.brand span, em { color: var(--accent); }
.hero { margin: 1.5rem 0 3.5rem; min-height: 410px; display: grid; grid-template-columns: 1.15fr 1fr; background: #301b25; border: 1px solid var(--line); border-radius: 1.5rem; overflow: hidden; }
.intro { padding: clamp(1.5rem, 5vw, 4rem); align-self: center; }
.eyebrow { color: var(--accent); font-size: .875rem; letter-spacing: .14em; font-weight: 750; }
h1, h2 { font-family: Georgia, serif; margin: 0; }
h1 { font-size: clamp(3rem, 6vw, 5.75rem); line-height: .98; letter-spacing: -.06em; }
.intro > p:not(.eyebrow), #count, footer { color: var(--muted); }
form { display: flex; gap: .5rem; margin-top: 1.5rem; }
input { min-width: 0; flex: 1; background: #21161d; color: inherit; border: 1px solid #815567; border-radius: .6rem; padding: .8rem; }
.spotlight { position: relative; min-width: 0; display: flex; align-items: end; isolation: isolate; overflow: hidden; }
.spotlight img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 32%; z-index: -2; }
.spotlight::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg,#170e14 0%, transparent 75%); z-index: -1; }
.spotlight a { padding: 1.5rem; width: 100%; font: bold clamp(1.4rem, 3vw, 2.5rem) Georgia, serif; }
.spotlight small { display: block; color: var(--accent); font: 750 .875rem system-ui; margin-bottom: .5rem; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: .9rem 0 1.4rem; }
.filters button, .episodes button { background: #291b23; color: inherit; border: 1px solid var(--line); font-size: .875rem; }
button[aria-pressed="true"] { background: var(--accent); color: #25130f; }
.cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.card { display: block; min-width: 0; background: #21161d; border-radius: .85rem; overflow: hidden; border: 1px solid var(--line); }
.card:hover { border-color: var(--accent); }
.poster { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; display: block; background: linear-gradient(150deg,#754555,#2b1a2a); }
.card div { padding: .7rem; }
.card small { display: block; color: var(--accent); margin-bottom: .35rem; }
.card strong { display: block; line-height: 1.3; overflow-wrap: anywhere; }
.more { display: block; margin: 2rem auto; }
footer { margin-top: 3rem; border-top: 1px solid var(--line); padding: 1.5rem 0; font-size: .875rem; }
dialog { width: min(54rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); overflow: auto; padding: 2.8rem 1.5rem 1.5rem; border: 1px solid var(--line); border-radius: 1.1rem; background: #231720; color: inherit; }
dialog::backdrop { background: #100a0de0; }
.close { position: absolute; top: .5rem; right: .65rem; padding: .2rem .65rem; font-size: 1.3rem; }
.detail-layout { display: grid; grid-template-columns: minmax(10rem, 15rem) 1fr; gap: 1.5rem; }
.detail-layout iframe { display: block; width: 100%; aspect-ratio: 9 / 16; background: #130f11; border: 0; border-radius: .7rem; }
.detail-layout p { line-height: 1.6; white-space: pre-line; }
.episodes { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0; }
.button { display: inline-block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .hero { grid-template-columns: 1fr; margin-bottom: 2rem; }
  .spotlight:not(:empty) { min-height: 16rem; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout { display: flex; flex-direction: column; }
  .detail-layout iframe, .detail-layout .poster { width: min(100%, 15rem); margin: auto; }
}
