:root {
  color-scheme: dark;
  --archive-bg: #020a10;
  --archive-panel: #07141d;
  --archive-line: rgba(116, 211, 229, .13);
  --archive-text: #edf7f8;
  --archive-muted: #8fa2a9;
  --archive-cyan: #2ed4ea;
}
* { box-sizing: border-box; }
body.video-archive-page {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 76% 0%, rgba(19, 142, 167, .09), transparent 30%),
    linear-gradient(180deg, #031018, var(--archive-bg) 38%);
  color: var(--archive-text);
  font-family: Arial, Helvetica, sans-serif;
}
a { color: inherit; text-decoration: none; }
.archive-header {
  min-height: 74px;
  padding: 0 clamp(18px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid rgba(255,255,255,.055);
  background: rgba(2, 11, 17, .88);
  backdrop-filter: blur(18px);
}
.archive-brand {
  flex: 0 0 auto;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .055em;
}
.archive-brand span { color: var(--archive-cyan); }
.archive-header nav { display: flex; align-items: center; gap: 24px; }
.archive-header nav a { color: #afc0c6; font-size: .78rem; }
.archive-header nav a:hover { color: #fff; }
.archive-main { width: min(1500px, calc(100% - 36px)); margin: 0 auto; padding: 46px 0 90px; }
.archive-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: 18px 0 30px;
}
.archive-hero span { color: var(--archive-cyan); font-size: .69rem; font-weight: 800; letter-spacing: .18em; }
.archive-hero h1 { margin: 7px 0 8px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.4rem, 4.5vw, 4.8rem); font-weight: 400; letter-spacing: -.02em; }
.archive-hero p { max-width: 650px; margin: 0; color: var(--archive-muted); line-height: 1.55; }
.archive-home-link { padding: 12px 16px; border: 1px solid var(--archive-line); border-radius: 12px; color: #9fdce6; font-size: .72rem; }
.archive-tools {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(190px, .65fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 25px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  background: rgba(8, 24, 34, .62);
}
.archive-tools label { display: grid; gap: 7px; }
.archive-tools label > span { color: #6ecbd9; font-size: .62rem; font-weight: 800; letter-spacing: .14em; }
.archive-tools input,
.archive-tools select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(144, 205, 217, .13);
  border-radius: 11px;
  outline: none;
  background: rgba(3, 13, 20, .88);
  color: #eff9fa;
  font: inherit;
  font-size: .9rem;
}
.archive-tools input:focus,
.archive-tools select:focus { border-color: rgba(46, 212, 234, .58); box-shadow: 0 0 0 3px rgba(46, 212, 234, .08); }
.archive-count { align-self: center; justify-self: end; color: #718992; font-size: .78rem; white-space: nowrap; }
.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px 16px;
}
.archive-card { min-width: 0; }
.archive-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  background: #08141c;
}
.archive-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .25s ease, filter .25s ease; }
.archive-thumb::after {
  content: '▶';
  position: absolute;
  left: 14px;
  bottom: 13px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  background: rgba(2, 11, 17, .72);
  color: #fff;
  font-size: .8rem;
  backdrop-filter: blur(8px);
}
.archive-card:hover .archive-thumb img { transform: scale(1.035); filter: saturate(1.06) brightness(1.03); }
.archive-copy { padding: 11px 3px 0; }
.archive-kicker { color: #54cada; font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.archive-copy h2 { margin: 6px 0 5px; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-family: Georgia, 'Times New Roman', serif; font-size: 1.02rem; font-weight: 400; line-height: 1.25; }
.archive-copy p { margin: 0; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: #758b93; font-size: .76rem; line-height: 1.45; }
.archive-empty { grid-column: 1 / -1; min-height: 230px; display: grid; place-items: center; border: 1px dashed rgba(255,255,255,.07); border-radius: 16px; color: #71858d; }
.archive-more-wrap { display: flex; justify-content: center; padding: 34px 0 0; }
.archive-load-more { min-height: 46px; padding: 0 24px; border: 1px solid rgba(46,212,234,.28); border-radius: 999px; background: rgba(7, 35, 45, .7); color: #dffbff; font-weight: 750; cursor: pointer; }
.archive-load-more:hover { border-color: rgba(46,212,234,.58); background: rgba(10, 54, 66, .82); }

.archive-detail {
  padding-top: 10px;
}
.detail-back { display: inline-flex; margin-bottom: 18px; color: #79d7e5; font-size: .75rem; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .7fr); gap: 28px; align-items: start; }
.detail-player { overflow: hidden; aspect-ratio: 16/9; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; background: #000; }
.detail-player iframe { width: 100%; height: 100%; border: 0; }
.detail-copy { padding: 8px 0; }
.detail-copy .archive-kicker { display: block; margin-bottom: 10px; }
.detail-copy h1 { margin: 0 0 14px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2rem, 3.8vw, 3.8rem); font-weight: 400; line-height: 1.02; }
.detail-copy p { color: #93a7ae; line-height: 1.65; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.detail-tags span { padding: 7px 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 999px; color: #87aab2; font-size: .7rem; }

@media (max-width: 1050px) {
  .archive-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .detail-layout { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .archive-header { min-height: 66px; padding-inline: 18px; }
  .archive-header nav { display: none; }
  .archive-main { width: min(100% - 24px, 1500px); padding-top: 24px; }
  .archive-hero { align-items: start; flex-direction: column; padding-bottom: 22px; }
  .archive-tools { grid-template-columns: 1fr 1fr; }
  .archive-count { grid-column: 1 / -1; justify-self: start; }
  .archive-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px 12px; }
}
@media (max-width: 560px) {
  .archive-main { width: calc(100% - 20px); padding-bottom: 60px; }
  .archive-hero h1 { font-size: clamp(2.15rem, 12vw, 3.1rem); }
  .archive-tools { grid-template-columns: 1fr; padding: 12px; }
  .archive-tools input, .archive-tools select { min-height: 48px; font-size: 16px; }
  .archive-count { grid-column: auto; }
  .archive-grid { grid-template-columns: 1fr; gap: 25px; }
  .archive-copy h2 { font-size: 1.12rem; }
  .archive-copy p { font-size: .82rem; }
  .detail-player { border-radius: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
