:root {
  color-scheme: light;
  --paper: #faf8f4;
  --surface: #fff;
  --ink: #271c1e;
  --muted: #675f5c;
  --line: #ddd6ce;
  --wine: #812a37;
  --wine-dark: #5e1c27;
  --night: #25191c;
  --gold: #f5c46e;
  --soft: #f5e9e6;
  font: 16px/1.5 "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body, h1, h2, h3, p, ol, ul { margin: 0; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, video, iframe { display: block; max-width: 100%; }
button, input, a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #ab5b18; outline-offset: 3px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; left: 8px; top: 8px; z-index: 5; padding: 10px; color: var(--ink); background: white; }

.head-inner, .foot-inner, main { width: min(calc(100% - 56px), 1230px); margin-inline: auto; }
.site-head { border-top: 3px solid var(--gold); background: var(--night); color: #fffaf2; }
.head-inner { min-height: 71px; display: flex; align-items: center; gap: clamp(18px, 4vw, 64px); }
.brand { display: inline-flex; align-items: center; gap: 11px; font: 750 clamp(19px, 2vw, 25px)/1.1 "Segoe UI", Arial, sans-serif; letter-spacing: -.045em; white-space: nowrap; }
.brand-mark { position: relative; display: grid; flex: 0 0 auto; width: 36px; height: 32px; place-items: center; isolation: isolate; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; border-radius: 4px; transform: skewX(-10deg); }
.brand-mark::before { inset: 5px 5px 0 0; background: #c47b40; }
.brand-mark::after { inset: 0 0 5px 5px; background: var(--gold); }
.brand-mark i { z-index: 1; margin: -5px 0 0 7px; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--night); }
.main-nav { align-self: stretch; display: flex; gap: 23px; }
.main-nav a { display: flex; align-items: center; position: relative; min-height: 44px; color: #dfd7d0; font-size: .94rem; font-weight: 620; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current] { color: #fff; }
.main-nav a[aria-current]::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--gold); }
.head-search { margin-left: auto; display: flex; flex: 0 1 260px; min-width: 0; align-items: center; border: 1px solid #61494c; background: #37282b; border-radius: 6px; }
.head-search:focus-within { border-color: var(--gold); }
.head-search input { min-width: 0; width: 100%; height: 42px; padding: 0 0 0 14px; border: 0; outline: 0; color: #fff; background: transparent; }
.head-search input::placeholder { color: #d1c4c1; }
.head-search button { display: grid; place-items: center; flex: 0 0 42px; height: 42px; padding: 0; border: 0; color: var(--gold); background: transparent; }
.search-glyph { position: relative; width: 15px; height: 15px; border: 2px solid; border-radius: 50%; }
.search-glyph::after { content: ""; position: absolute; width: 7px; height: 2px; top: 10px; left: 10px; background: currentColor; transform: rotate(46deg); }
.site-head :focus-visible, .site-foot :focus-visible { outline-color: var(--gold); outline-offset: -2px; }

main { min-height: 68vh; padding: 30px 0 62px; }
.replay-intro { display: flex; justify-content: space-between; align-items: baseline; gap: 10px 24px; margin: 0 0 17px; }
.replay-intro h1, .page-head h1 { font: 730 clamp(2.3rem, 4.1vw, 3.6rem)/1.09 Georgia, "Times New Roman", serif; letter-spacing: -.045em; color: #37252a; overflow-wrap: anywhere; }
.replay-intro p { color: var(--muted); font-size: .95rem; white-space: nowrap; }
.replay-intro p strong { color: var(--wine-dark); font-weight: 750; }
.replay-intro p span { margin: 0 5px; }
.replay-feature { overflow: hidden; border-radius: 9px; background: var(--night); color: #fff8f0; scroll-margin-top: 12px; }
.replay-caption { display: flex; justify-content: space-between; align-items: center; gap: 10px 20px; margin: 0 23px; padding: 15px 0; }
.replay-caption h2 { font-size: clamp(1.13rem, 2vw, 1.55rem); line-height: 1.25; letter-spacing: -.018em; }
.media-credit { color: var(--muted); margin-top: 6px; font-size: .875rem; overflow-wrap: anywhere; }
.replay-caption .media-credit { color: #d0c1c1; }
.text-link { display: inline-flex; align-items: center; min-height: 42px; color: var(--wine-dark); font-size: .94rem; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #c69792; }
.text-link:hover { text-decoration-color: currentColor; }
.replay-caption .text-link { color: var(--gold); white-space: nowrap; text-decoration-color: #826c53; }
.player-media { position: relative; width: 100%; overflow: hidden; border-radius: 8px; background: #160f11; }
.player-media video, .player-media iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; object-fit: contain; background: #100c0d; }
.replay-feature .player-media { --stage-height: clamp(280px, 36vw, 446px); display: grid; place-items: center; height: var(--stage-height); border-radius: 0; isolation: isolate; }
.replay-feature .player-media::before { content: ""; position: absolute; z-index: -1; inset: -20px; background: var(--stage-poster, none) center/cover; filter: blur(21px) brightness(.34) saturate(.77); }
.replay-feature .player-media video, .replay-feature .player-media iframe { width: min(100%, calc(var(--stage-height) * 16 / 9)); height: 100%; }
.player-start:not([hidden]) { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 47px; padding: 7px 16px 7px 8px; border: 1px solid #ffffffa6; border-radius: 30px; color: #fff; background: #23191bee; box-shadow: 0 3px 16px #0005; white-space: nowrap; font-weight: 700; }
.player-start:hover { background: var(--wine-dark); }
.cpc2-poster .player-start:not([hidden]) { inset: 0 0 42px; width: 100%; height: calc(100% - 42px); transform: none; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: transparent; }
.cpc2-poster .player-start .play-mark { display: none; }
.cpc2-poster .player-start:focus-visible { outline-offset: -4px; outline-color: var(--gold); }
.play-mark, .mini-play { display: grid; flex: 0 0 auto; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--gold); }
.play-mark::after, .mini-play::after { content: ""; margin-left: 2px; border: solid transparent; border-width: 5px 0 5px 8px; border-left-color: var(--night); }
.player-error { padding: 8px; color: var(--wine-dark); }
.replay-feature .player-error { color: #ffd1a4; }

.content-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(215px, 25%); gap: clamp(18px, 2.5vw, 38px); align-items: start; }
.replay-feature + .content-columns { margin-top: 32px; }
.catalogue-column, .sidebar { min-width: 0; }
.home-gallery + .home-gallery { margin-top: 33px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; margin-bottom: 17px; border-bottom: 2px solid var(--wine-dark); }
.section-head h2, .rail-box h2 { margin: 0; font-size: clamp(1.22rem, 2.1vw, 1.56rem); line-height: 1.2; letter-spacing: -.02em; }
.section-head h2 { position: relative; padding-left: 13px; }
.section-head h2::before { content: ""; position: absolute; width: 4px; left: 0; top: 3px; bottom: 2px; border-radius: 1px; background: var(--wine); }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px 15px; }
.video-card { min-width: 0; }
.card-cover { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: #352628; border-radius: 6px; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease-out; }
.card-cover:hover img { transform: scale(1.035); }
.cover-channel, .cover-parts { position: absolute; bottom: 7px; border-radius: 3px; padding: 2px 6px; color: #fff; font-size: .76rem; font-weight: 700; line-height: 1.45; }
.cover-channel { left: 7px; background: #501a25f2; }
.cover-parts { right: 7px; background: #201b1cf0; font-variant-numeric: tabular-nums; }
.card-text { padding: 9px 0 0; }
.card-text h3 { font-size: clamp(.99rem, 1.4vw, 1.16rem); line-height: 1.3; letter-spacing: -.011em; overflow-wrap: anywhere; }
.card-text h3 a:hover, .detail-head p a:hover { color: var(--wine); text-decoration: underline; }
.card-date, .recent-list time { display: block; margin-top: 5px; color: var(--muted); font-size: .84rem; font-variant-numeric: tabular-nums; }
.sidebar { display: grid; gap: 18px; }
.rail-box { overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: white; }
.rail-box h2 { padding: 12px 16px; color: #fff8ef; background: var(--wine-dark); font-size: 1.12rem; }
.channels a { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 9px 16px; min-height: 44px; }
.channels a + a, .recent-list li + li { border-top: 1px solid var(--line); }
.channels a:hover, .channels a[aria-current], .recent-list a:hover { background: var(--soft); color: var(--wine-dark); }
.channels a span { color: var(--muted); font-size: .875rem; }
.recent-list { padding: 0; list-style: none; }
.recent-list a { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; }
.recent-list strong { display: block; font-size: .92rem; line-height: 1.35; }
.mini-play { width: 27px; height: 27px; margin-top: 1px; border-radius: 5px; background: #f3e4d7; }
.mini-play::after { border-width: 4px 0 4px 6px; border-left-color: var(--wine-dark); }

.page-head { margin-bottom: 23px; }
.page-head h1 { font-size: clamp(2.05rem, 4vw, 3.3rem); }
.page-head p { margin-top: 12px; color: var(--muted); }
.detail-head { max-width: 940px; }
.date-filter, .panel { padding: 14px 16px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.date-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; scroll-margin: 16px; }
.date-filter label { font-weight: 650; }
.date-filter input { min-height: 42px; min-width: 0; max-width: 100%; padding: 6px 9px; border: 1px solid #bfb3a8; background: white; color: var(--ink); border-radius: 5px; }
.button { min-height: 42px; border: none; border-radius: 5px; padding: 6px 16px; background: var(--wine); color: #fff; font-weight: 700; }
.button:hover { background: var(--wine-dark); }
.filters, .pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.filters { margin-bottom: 12px; }
.filters a, .pagination a { display: inline-grid; place-items: center; min-width: 42px; min-height: 42px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 5px; background: white; }
.filters a[aria-current], .pagination a[aria-current] { border-color: var(--wine-dark); background: var(--wine-dark); color: #fff; }
.result-count { margin: 16px 0; color: var(--muted); font-size: .92rem; }
.pagination, .panel { margin-top: 22px; }
.part-picker { margin: 22px 0 0; }
.part-picker h2 { margin-bottom: 12px; font-size: 1.22rem; }
.part-picker summary { padding: 10px 3px; min-height: 44px; font-weight: 650; }
.part-picker details + details { border-top: 1px solid var(--line); }
.part-picker details[open] > ol { padding-bottom: 12px; }
.part-picker ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,126px), 1fr)); padding: 0; gap: 7px; list-style: none; }
.part-picker li a { display: grid; align-content: center; height: 100%; min-height: 48px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 5px; background: white; color: var(--ink); overflow-wrap: anywhere; }
.part-picker li a:hover { border-color: var(--wine); }
.part-picker a[aria-current] { border-color: var(--wine); color: white; background: var(--wine); }
.part-picker li span, .part-meta small { font-size: .82rem; }
.part-meta { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 0 4px; }
.part-meta small { font-variant-numeric: tabular-nums; }
.home-picker { margin: 0 23px; border-top: 1px solid #4b393d; }
.home-picker[open] { padding-bottom: 12px; }
.home-picker details + details { border-color: #4b393d; }
.home-picker summary { color: var(--gold); }
.site-foot { background: var(--night); color: #fff8ef; }
.foot-inner { min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 12px 22px; }
.foot-inner .brand { font-size: 1.22rem; }
.foot-inner nav { display: flex; gap: 18px; }
.foot-inner nav a { display: inline-flex; align-items: center; min-height: 44px; color: #dfd3d2; font-weight: 620; font-size: .94rem; }

@media (max-width: 950px) {
  .head-inner, .foot-inner, main { width: min(calc(100% - 36px), 1230px); }
  .head-inner { gap: 20px; }
  .main-nav { gap: 15px; }
  .content-columns { grid-template-columns: minmax(0, 1fr) minmax(177px, 25%); gap: 20px; }
  .video-grid { gap: 18px 11px; }
}
@media (max-width: 730px) {
  .head-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(124px, 35%); gap: 0 10px; padding-top: 9px; }
  .main-nav { grid-row: 2; grid-column: 1/-1; gap: 24px; }
  .head-search { width: 100%; grid-column: 2; grid-row: 1; }
  .head-search input { padding-left: 9px; font-size: .875rem; }
  .head-search button { flex-basis: 34px; }
  .main-nav a { font-size: .9rem; }
  .head-inner, .foot-inner, main { width: calc(100% - 28px); }
  main { padding-block: 19px 39px; }
  .replay-intro { flex-wrap: wrap; row-gap: 4px; margin-bottom: 12px; }
  .replay-intro h1 { font-size: clamp(2rem, 7.4vw, 2.7rem); }
  .replay-feature .player-media { height: auto; }
  .replay-feature .player-media video, .replay-feature .player-media iframe { width: 100%; height: auto; }
  .replay-caption, .home-picker { margin-inline: 13px; }
  .replay-caption { padding-block: 11px; flex-wrap: wrap; gap: 0 10px; }
  .replay-caption .text-link { min-height: 38px; }
  .content-columns { grid-template-columns: minmax(0, 1fr); gap: 25px; }
  .replay-feature + .content-columns { margin-top: 21px; }
  .video-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px 10px; }
  .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px; }
  .section-head { margin-bottom: 12px; }
  .home-gallery + .home-gallery { margin-top: 25px; }
  .foot-inner { min-height: 82px; flex-wrap: wrap; padding-block: 13px; }
}
@media (max-width: 460px) {
  .head-inner, .foot-inner, main { width: calc(100% - 24px); }
  .brand { gap: 7px; font-size: 1.14rem; }
  .brand-mark { width: 29px; height: 27px; }
  .brand-mark i { border-width: 5px 0 5px 8px; }
  .head-search input { height: 37px; }
  .head-search button { flex-basis: 30px; height: 37px; }
  .replay-intro { align-items: flex-start; flex-direction: column; }
  .replay-intro p { font-size: .875rem; }
  .card-text h3 { font-size: .97rem; }
  .cover-channel, .cover-parts { bottom: 4px; padding: 1px 4px; }
  .cover-channel { left: 4px; }
  .cover-parts { right: 4px; }
  .sidebar { grid-template-columns: minmax(0,1fr); }
  .date-filter { padding: 12px; }
  .date-filter label { flex: 1 0 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .card-cover img { transition: none; }
}
