:root {
  --red-950: #4b0711;
  --red-800: #84152a;
  --red-700: #a51d35;
  --red-100: #fce7ea;
  --cream: #fffaf5;
  --white: #ffffff;
  --ink: #2a2021;
  --muted: #6d5c5e;
  --border: #eadcdd;
  --shadow: 0 18px 50px rgba(75, 7, 17, 0.12);
  --radius-lg: 22px;
  --radius-md: 14px;
  --content-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

button,
input,
select {
  font: inherit;
}

.hero {
  position: relative;
  display: grid;
  min-height: 440px;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background-color: var(--red-950);
  background-image:
    linear-gradient(135deg, rgba(75, 7, 17, 0.68), rgba(132, 21, 42, 0.82)),
    url("assets/banner.jpg");
  background-position: center;
  background-size: cover;
  text-align: center;
}

.hero::before,
.hero::after {
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  content: "";
}

.hero::before {
  top: -130px;
  left: -70px;
}

.hero::after {
  right: -80px;
  bottom: -150px;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(75, 7, 17, 0.4));
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 40px));
  padding: 64px 0;
}

.hero__eyebrow {
  margin: 0 0 10px;
  color: #ffdce2;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.98;
  text-wrap: balance;
}

.hero__description {
  max-width: 580px;
  margin: 24px auto 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.2rem);
  text-wrap: balance;
}

.controls {
  position: relative;
  z-index: 2;
  width: min(var(--content-width), calc(100% - 32px));
  margin: -42px auto 0;
  border: 1px solid rgba(132, 21, 42, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.controls__inner {
  display: grid;
  grid-template-columns: minmax(180px, 0.75fr) minmax(280px, 1.5fr);
  gap: 22px;
  padding: 24px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--red-950);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field select,
.field input {
  width: 100%;
  height: 50px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.field select {
  padding: 0 42px 0 14px;
  cursor: pointer;
}

.field input {
  padding: 0 14px 0 46px;
}

.field select:focus,
.field input:focus {
  border-color: var(--red-700);
  box-shadow: 0 0 0 4px rgba(165, 29, 53, 0.12);
}

.search-input {
  position: relative;
}

.search-input svg {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 19px;
  fill: none;
  stroke: var(--red-700);
  stroke-linecap: round;
  stroke-width: 2;
  transform: translateY(-50%);
}

.content-shell {
  width: min(var(--content-width), calc(100% - 32px));
  min-height: 260px;
  margin: 64px auto 0;
}

.year-section {
  scroll-margin-top: 30px;
  margin-bottom: 72px;
}

.year-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 28px;
  color: var(--red-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1;
}

.year-heading::after {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border), transparent);
  content: "";
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.video-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 12px 35px rgba(75, 7, 17, 0.07);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.video-card:hover {
  box-shadow: 0 18px 42px rgba(75, 7, 17, 0.13);
  transform: translateY(-3px);
}

.video-placeholder,
.video-frame {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  aspect-ratio: 16 / 9;
  background: #1c1012;
}

.video-placeholder {
  overflow: hidden;
  padding: 0;
  color: var(--white);
  cursor: pointer;
}

.video-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.video-placeholder:hover img {
  transform: scale(1.025);
}

.video-placeholder::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 16, 18, 0.45), transparent 60%);
  content: "";
}

.play-button {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: grid;
  width: 68px;
  height: 50px;
  border-radius: 14px;
  place-items: center;
  background: var(--red-700);
  box-shadow: 0 8px 24px rgba(28, 16, 18, 0.35);
  transform: translate(-50%, -50%);
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.video-placeholder:hover .play-button,
.video-placeholder:focus-visible .play-button {
  background: #d22242;
  transform: translate(-50%, -50%) scale(1.06);
}

.play-button::after {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid var(--white);
  content: "";
}

.video-placeholder:focus-visible {
  outline: 4px solid rgba(165, 29, 53, 0.45);
  outline-offset: -4px;
}

.video-card__body {
  padding: 24px;
}

.video-card__year {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--red-700);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.video-card h3 {
  margin: 0;
  color: var(--red-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1.25;
}

.status-message {
  display: grid;
  min-height: 240px;
  place-items: center;
  align-content: center;
  color: var(--muted);
  text-align: center;
}

.status-message h2 {
  margin: 0 0 5px;
  color: var(--red-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.status-message p {
  margin: 0;
}

.status-message--error {
  padding: 28px;
  border: 1px solid #efc4ca;
  border-radius: var(--radius-md);
  background: var(--red-100);
}

.spinner {
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  border: 3px solid var(--red-100);
  border-top-color: var(--red-700);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

[hidden] {
  display: none !important;
}

footer {
  padding: 34px 20px;
  color: rgba(255, 255, 255, 0.72);
  background: var(--red-950);
  text-align: center;
}

footer p {
  margin: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: 390px;
  }

  .controls__inner,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .controls__inner {
    gap: 16px;
    padding: 18px;
  }

  .content-shell {
    margin-top: 50px;
  }

  .year-section {
    margin-bottom: 54px;
  }

  .video-card__body {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
