:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #261d20;
  --muted: #62565a;
  --line: #eadce0;
  --accent: #a22537;
  --accent-dark: #7a1829;
  --soft-red: #fff1f3;
  font: 16px / 1.55 system-ui, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2 { line-height: 1.1; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; top: 6px; left: 6px; z-index: 4; background: #fff; padding: 10px; }
:focus-visible { outline: 3px solid #b15c2e; outline-offset: 3px; }

.site-head { background: #fff9f9; color: var(--ink); }
.head-inner, .foot-inner { max-width: 1410px; margin: 0 auto; padding: 12px 26px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 23px; font-weight: 800; white-space: nowrap; }
.brand-mark { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 10px; background: var(--accent); color: #fff; font: bold 25px Georgia, serif; }
.nav-bar { background: var(--accent); color: #fff; }
.nav-bar nav { max-width: 1410px; margin: 0 auto; padding-inline: 26px; display: flex; gap: 6px; overflow-x: auto; }
.nav-bar a, .foot-inner nav a { display: inline-flex; align-items: center; min-height: 46px; padding: 7px 15px; white-space: nowrap; font-weight: 700; font-size: 15px; }
.nav-bar a[aria-current], .nav-bar a:hover { background: var(--accent-dark); }
.nav-bar a:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
.head-search { display: flex; flex: 0 1 250px; min-width: 90px; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.head-search input { min-width: 0; width: 100%; background: transparent; color: var(--ink); height: 44px; border: 0; padding: 0 0 0 10px; }
.head-search input::placeholder { color: var(--muted); }
.head-search button { display: grid; place-items: center; flex: 0 0 44px; background: transparent; color: var(--accent); border: 0; padding: 0; }
.search-glyph { width: 14px; height: 14px; border: 2px solid; border-radius: 50%; position: relative; }
.search-glyph::after { content: ""; position: absolute; width: 7px; height: 2px; top: 9px; left: 9px; transform: rotate(45deg); background: currentColor; }

main { max-width: 1410px; min-height: 62vh; margin: 0 auto; padding: 22px 26px 64px; }
.replay-intro { margin-bottom: 13px; }
.replay-intro h1 { font: 800 clamp(24px, 3.2vw, 40px) / 1.12 system-ui, sans-serif; letter-spacing: -.035em; }
.replay-intro p { margin-top: 7px; color: var(--muted); }
.button, .text-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; font-size: 15px; font-weight: 760; }
.button { padding: 9px 16px; border-radius: 8px; background: var(--accent); color: #fff; }
.button:hover { background: var(--accent-dark); }
.text-link { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 4px; }
.replay-feature { padding: 9px 9px 5px; border-radius: 12px; background: #201a20; color: #fff5f5; scroll-margin-top: 10px; }
.replay-main { min-width: 0; }
.replay-main .player, .replay-main video { width: 100%; }
.replay-main video { max-height: 360px; object-fit: contain; background: #110e13; border-radius: 7px; }
.replay-caption { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 0 14px; margin: 13px 6px 0; }
.replay-caption h2 { font-size: clamp(19px, 3vw, 26px); }
.replay-caption time, .replay-main .media-credit { color: #d5c6cc; }
.replay-caption .text-link { color: #ffbbc5; }
.replay-main .media-credit { margin: 3px 6px 5px; overflow-wrap: anywhere; }
.replay-main .player-error { color: #ffb9ad; }
.home-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 29%); gap: clamp(16px, 3vw, 40px); align-items: start; margin-top: 26px; }
.home-content-empty { grid-template-columns: minmax(0, 1fr); }
.replay-queue { min-width: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.replay-queue h2 { padding: 13px 16px; background: var(--soft-red); color: var(--accent-dark); border-bottom: 2px solid #bd3449; font-size: 20px; }
.replay-queue ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.replay-queue li + li { border-top: 1px solid var(--line); }
.replay-queue a { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px 13px; }
.replay-queue a:hover, .replay-queue a[aria-current] { background: var(--soft-red); color: var(--accent-dark); }
.replay-queue a:focus-visible { outline-offset: -3px; }
.replay-queue strong, .replay-queue time { display: block; }
.replay-queue time { font-size: 14px; color: var(--muted); }
.replay-queue .play-mark { flex: 0 0 26px; width: 26px; height: 26px; }
.replay-queue .play-mark::after { border-width: 5px 0 5px 8px; }

.section { margin-top: 35px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 13px; }
.section-head h2, .panel h2 { font-size: clamp(24px, 4vw, 34px); letter-spacing: -.04em; }
.video-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.video-card { min-width: 0; overflow: hidden; border-bottom: 1px solid var(--line); background: #fff; }
.card-cover { position: relative; display: grid; place-items: center; border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 9; background: #201920; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.card-cover:hover img { opacity: .88; }
.play-mark { position: relative; display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; background: var(--accent); }
.play-mark::after { content: ""; border: 8px solid transparent; border-right: 0; border-left: 12px solid #fff; margin-left: 3px; }
.card-text { padding: 9px 1px 13px; }
.card-text p { color: var(--muted); font-size: 14px; }
.card-text h3 { margin-top: 4px; font-size: 18px; line-height: 1.25; }
.card-description { margin-top: 5px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }

.page-head { margin: 14px 0 24px; }
.page-head h1 { font: bold clamp(36px, 6vw, 64px) / 1.06 Georgia, serif; letter-spacing: -.04em; }
.page-head p { margin-top: 10px; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.filters a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 13px; border: 1px solid var(--line); border-radius: 8px; font-weight: 680; }
.filters a[aria-current] { background: var(--accent); color: #fff; border-color: var(--accent); }
.date-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.date-filter input[type=date] { min-height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.date-filter button { border: 0; }
.player-empty, .player video { min-height: 150px; width: min(100%, 890px); background: #1a151b; color: #fff; border-radius: 10px; aspect-ratio: 16 / 9; }
.player-empty { display: grid; place-items: center; text-align: center; padding: 16px; }
.player { width: min(100%, 890px); }
.player-media { position: relative; }
.player-start:not([hidden]) {
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 14px 8px 8px; border: 1px solid #ffffff80; border-radius: 25px;
  background: #21171bf2; color: white; font-weight: 750; white-space: nowrap;
}
.player-start .play-mark { width: 32px; height: 32px; }
.player-error { color: #9d2929; margin-top: 8px; }
.part-picker { width: min(100%, 890px); margin-top: 20px; }
.part-picker h2 { font-size: 20px; margin-bottom: 10px; }
.part-picker ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 0; margin: 0; list-style: none; gap: 8px; }
.part-picker a { display: grid; align-content: center; height: 100%; min-height: 54px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; background: var(--soft-red); color: var(--accent-dark); }
.part-picker a:hover { border-color: var(--accent); }
.part-picker a[aria-current] { border-color: var(--accent-dark); background: var(--accent-dark); color: #fff; }
.part-picker a span { font-size: 13px; overflow-wrap: anywhere; }
.media-credit { color: var(--muted); font-size: 14px; margin-top: 10px; }
.panel { border: 1px solid var(--line); background: #fffefa; border-radius: 12px; padding: 18px 20px; }
.panel p { margin-top: 10px; color: var(--muted); }
.site-foot { border-top: 1px solid var(--line); background: #fff9f9; color: var(--ink); }
.foot-inner nav { display: flex; }
.foot-inner { padding-block: 25px; }

@media (max-width: 880px) {
  .home-content { grid-template-columns: minmax(0, 1fr) minmax(180px, 28%); }
  .home-gallery .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .head-inner, .foot-inner, .nav-bar nav { padding-inline: 12px; }
  .head-inner { padding-block: 8px; }
  .brand { font-size: 19px; gap: 7px; }
  .brand-mark { width: 30px; height: 30px; font-size: 20px; }
  .head-search { flex: 0 1 150px; }
  .nav-bar nav { gap: 2px; }
  .nav-bar a { font-size: 14px; padding-inline: 10px; }
  main { padding: 13px 12px 34px; }
  .replay-intro { margin-bottom: 12px; }
  .replay-feature { padding: 6px; }
  .home-content { grid-template-columns: minmax(0, 1fr); gap: 17px; margin-top: 18px; }
  .replay-queue h2 { font-size: 17px; }
  .replay-caption { margin: 8px 5px 0; }
  .part-picker ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { margin-top: 23px; }
  .video-grid, .home-gallery .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .card-text { padding: 8px 2px 10px; }
  .card-text p { font-size: 13px; }
  .card-text h3 { font-size: 15px; }
  .play-mark { width: 40px; height: 40px; }
  .foot-inner { flex-wrap: wrap; }
  .foot-inner nav { flex-wrap: wrap; gap: 0; }
}
