:root {
  color-scheme: light;
  --bg: #f4f1ea;
  --card: #ffffff;
  --text: #1f2933;
  --muted: #667085;
  --accent: #116466;
  --accent-dark: #0b4547;
  --border: rgba(31, 41, 51, 0.14);
  --shadow: 0 18px 45px rgba(31, 41, 51, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(17, 100, 102, 0.16), transparent 32rem),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.page {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.hero {
  text-align: center;
  margin-bottom: 34px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
}

.intro {
  max-width: 640px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.video-card,
.player-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.video-card {
  padding: 22px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.video-card h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.video-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--accent);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:hover,
button:focus-visible {
  background: var(--accent-dark);
}

.plain-button {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
}

.plain-button:hover,
.plain-button:focus-visible {
  background: rgba(17, 100, 102, 0.08);
  color: var(--accent-dark);
}

.player-panel {
  padding: 22px;
}

.player-head,
.player-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.player-head h2 {
  margin: 0;
  font-size: 1.35rem;
}

video {
  display: block;
  width: 100%;
  max-height: 70vh;
  background: #111827;
  border-radius: 18px;
  object-fit: contain;
}

.player-actions {
  margin-top: 14px;
  margin-bottom: 0;
}

.hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

[hidden] {
  display: none !important;
}

.hero-image {
  display: block;
  width: min(100%, 760px);
  height: auto;
  margin: 24px auto 0;
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(31, 41, 51, 0.14);
}

@media (max-width: 860px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .page {
    width: min(100% - 22px, 980px);
    padding: 34px 0;
  }

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

  .player-head,
  .player-actions {
    align-items: stretch;
    flex-direction: column;
  }

  button {
    width: 100%;
  }
}
