@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --background: #0b0d12;
  --surface: #121620;
  --border: #242b38;
  --text: #f1f3f8;
  --accent: #8b9cff;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--background);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.site-header {
  width: 100%;
  min-height: 68px;
  padding: 12px clamp(16px, 5vw, 76px);
  display: flex;
  align-items: center;
}

.back-button {
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.back-button span {
  color: var(--accent);
  font-size: 19px;
  line-height: 1;
}

.back-button:hover {
  transform: translateY(-1px);
  border-color: #39445a;
  background: #171d29;
}

.back-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: min(100% - 40px, 1320px);
  margin: 0 auto;
  padding: clamp(16px, 3vw, 30px) 0 56px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.video-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #07090d;
}

.video-frame iframe,
.video-frame video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
}

@media (max-width: 600px) {
  .site-header {
    min-height: 60px;
    padding-inline: 16px;
  }

  .container {
    width: calc(100% - 32px);
    padding-top: 12px;
  }

  .video-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
