:root {
  --paper: #f4ede0;
  --paper-deep: #ebe2d0;
  --paper-edge: #d8ccb3;
  --ink: #1a1715;
  --ink-soft: #4a4540;
  --ink-faint: #8a7f72;
  --rust: #b8362a;
  --petrol: #1f5b6e;
  --navy: #1a3a5c;
  --ochre: #c08a2c;
  --cream: #faf6ec;
  --brand-teal: #1BC6D6;
  --brand-red: #E11D2B;
  --brand-blue: #1E5AA8;
  --tricolor: linear-gradient(90deg, var(--brand-teal) 0 22%, var(--brand-red) 22% 44%, var(--paper) 44% 58%, var(--brand-blue) 58% 100%);
  --font-display: 'Oswald', 'Impact', sans-serif;
  --font-serif: 'Libre Caslon Text', Georgia, serif;
  --font-sans: 'Roboto Condensed', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

body.gazette-video-page {
  margin: 0;
  background:
    radial-gradient(ellipse at top, rgba(255,255,255,0.48), transparent 58%),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
}

body.gazette-video-page::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>");
}

.vmg-masthead {
  position: relative;
  padding: 22px 36px 28px;
  border-bottom: 6px double var(--ink);
  background: linear-gradient(180deg, var(--cream), var(--paper));
  text-align: center;
}

.vmg-masthead::before {
  content: '';
  position: absolute;
  top: 0;
  left: 36px;
  right: 36px;
  height: 3px;
  background: var(--tricolor);
}

.vmg-rule {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 8px 0;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.vmg-rule a {
  color: var(--ink);
  text-decoration: none;
}

.vmg-masthead p,
.archive-kicker,
.archive-meta,
.vmg-footer {
  font-family: var(--font-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.vmg-masthead p {
  margin: 22px 0 6px;
  color: var(--ink-soft);
  font-size: 12px;
}

.vmg-masthead h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(54px, 10vw, 132px);
  line-height: 0.9;
  text-transform: uppercase;
}

.vmg-deck {
  max-width: 760px;
  margin: 16px auto 0;
  font-size: 18px;
  color: var(--ink-soft);
}

.archive-shell {
  position: relative;
  max-width: 1420px;
  margin: 0 auto;
  padding: 34px 36px 56px;
}

.archive-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(220px, 320px);
  gap: 18px;
  margin-bottom: 24px;
}

.archive-toolbar label {
  display: grid;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.archive-toolbar input,
.archive-toolbar select {
  width: 100%;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--cream);
  color: var(--ink);
  padding: 11px 12px;
  font: 16px var(--font-sans);
}

.archive-status {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.archive-card,
.archive-empty {
  display: block;
  color: inherit;
  text-decoration: none;
  background: var(--cream);
  border: 1px solid var(--paper-edge);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 0 var(--paper-edge), 0 16px 36px rgba(26, 23, 21, 0.12);
}

.archive-card:hover h2 {
  color: var(--rust);
}

.archive-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  overflow: hidden;
}

.archive-thumb::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--tricolor);
}

.archive-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.05) saturate(0.9);
}

.archive-thumb span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  background: rgba(26, 23, 21, 0.86);
  color: var(--paper);
  padding: 3px 7px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.archive-card-copy {
  padding: 16px 17px 18px;
}

.archive-kicker {
  color: var(--rust);
  font-size: 10px;
}

.archive-card h2 {
  margin: 7px 0 8px;
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1;
  text-transform: uppercase;
}

.archive-card p {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.45;
}

.archive-meta {
  color: var(--ink-faint);
  font-size: 10px;
}

.archive-empty {
  grid-column: 1 / -1;
  padding: 28px;
  font-family: var(--font-display);
  text-transform: uppercase;
}

.vmg-footer {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 4px double var(--ink);
  padding: 24px 36px;
  background: var(--cream);
  color: var(--ink-soft);
  font-size: 11px;
}

body.player-page.gazette-video-page {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
}

body.player-page.gazette-video-page .venturi-header-container {
  background: var(--cream);
  border-bottom: 4px double var(--ink);
}

.player-archive-rule {
  max-width: 1480px;
  margin: 16px auto 0;
  padding-left: 32px;
  padding-right: 32px;
  box-sizing: border-box;
}

body.player-page.gazette-video-page .player-layout {
  margin-top: 28px;
}

body.player-page.gazette-video-page .video-shell,
body.player-page.gazette-video-page .channel-card,
body.player-page.gazette-video-page .video-description,
body.player-page.gazette-video-page .comments-section,
body.player-page.gazette-video-page .recommendation-card {
  border-radius: 6px;
  background: var(--cream);
  border: 1px solid var(--paper-edge);
  color: var(--ink);
}

body.player-page.gazette-video-page .video-title,
body.player-page.gazette-video-page .suggestions-heading,
body.player-page.gazette-video-page .comments-title,
body.player-page.gazette-video-page .channel-name {
  color: var(--ink);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0;
}

body.player-page.gazette-video-page .video-metadata-row,
body.player-page.gazette-video-page .channel-subs,
body.player-page.gazette-video-page .video-description,
body.player-page.gazette-video-page .comment-count {
  color: var(--ink-soft);
}

body.player-page.gazette-video-page .action-button,
body.player-page.gazette-video-page .subscribe-btn,
body.player-page.gazette-video-page .comment-form-actions button,
body.player-page.gazette-video-page .comment-channel-link {
  border-radius: 3px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .vmg-rule,
  .archive-toolbar,
  .vmg-footer {
    grid-template-columns: 1fr;
    flex-direction: column;
    text-align: center;
  }

  .archive-shell,
  .vmg-masthead {
    padding-left: 20px;
    padding-right: 20px;
  }
}
