:root {
  color-scheme: dark;
  --bg: #0f1115;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-border: rgba(255, 255, 255, 0.12);
  --text: #f5f7fb;
  --muted: rgba(245, 247, 251, 0.72);
  --accent: #7aa2ff;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

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

body {
  background:
    radial-gradient(circle at top, rgba(122, 162, 255, 0.18), transparent 36%),
    linear-gradient(180deg, #11141a 0%, var(--bg) 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 90%);
}

.app-shell {
  width: min(100%, 430px);
  margin: 0 auto;
  padding: calc(28px + env(safe-area-inset-top)) 16px calc(32px + env(safe-area-inset-bottom));
}

.hero {
  padding: 8px 4px 24px;
}

.hero__eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__title {
  margin: 0;
  font-size: clamp(28px, 9vw, 38px);
  line-height: 1.05;
}

.hero__subtitle {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.video-list {
  display: grid;
  gap: 18px;
}

.video-card {
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.video-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.video-card__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(122, 162, 255, 0.18);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.video-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #050608;
}

.video-frame__player {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #050608;
}

.video-frame__status {
  position: absolute;
  inset: auto 12px 12px 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(10, 12, 16, 0.7);
  color: rgba(245, 247, 251, 0.82);
  font-size: 12px;
  line-height: 1.3;
  backdrop-filter: blur(12px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.video-frame--ready .video-frame__status {
  opacity: 0;
  transform: translateY(8px);
}

.video-frame--error .video-frame__status {
  opacity: 1;
  background: rgba(110, 20, 32, 0.75);
  color: #ffd6dc;
}
