:root {
  color-scheme: dark;
  --bg: #08111f;
  --bg-2: #101b31;
  --panel: rgba(11, 18, 34, 0.82);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #eef3ff;
  --muted: #b8c4e0;
  --accent: #67d5ff;
  --accent-strong: #7c8cff;
  --good: #33d69f;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(103, 213, 255, 0.22), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(124, 140, 255, 0.18), transparent 24%),
    linear-gradient(160deg, var(--bg), var(--bg-2));
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 22px;
}

.eyebrow,
.label {
  margin: 0 0 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: var(--accent);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.3rem, 4.8vw, 4.9rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  margin-bottom: 16px;
  max-width: 11ch;
}

.lede {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.card,
.player-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.card {
  border-radius: 22px;
  padding: 22px;
}

.info-card h2,
.player-header h2 {
  font-size: 1.28rem;
  margin-bottom: 8px;
}

.info-card ol {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.inline-code {
  display: inline-block;
  padding: 0.06rem 0.42rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.92em;
}

.player-panel {
  border-radius: 28px;
  padding: 22px;
}

.player-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-weight: 600;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 5px rgba(51, 214, 159, 0.14);
}

.player-frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}

video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.player-hint {
  position: absolute;
  left: 18px;
  bottom: 18px;
  right: 18px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(8, 17, 31, 0.84);
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.controls {
  margin-top: 18px;
}

.admin-panel {
  margin-top: 18px;
}

.admin-panel h2 {
  margin-bottom: 18px;
  font-size: 1.38rem;
}

.controls label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--text);
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.share-row {
  margin-bottom: 12px;
}

input,
button {
  font: inherit;
}

input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 16px;
  padding: 15px 16px;
  outline: none;
}

input::placeholder {
  color: rgba(238, 243, 255, 0.45);
}

input:focus {
  border-color: rgba(103, 213, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(103, 213, 255, 0.15);
}

button {
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  color: #06101d;
  background: linear-gradient(135deg, var(--accent), #93f2ff);
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease;
}

button:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

button:disabled {
  cursor: not-allowed;
  transform: none;
  filter: saturate(0.7) brightness(0.85);
  opacity: 0.72;
}

button:disabled:hover {
  transform: none;
  filter: saturate(0.7) brightness(0.85);
}

.secondary-button {
  width: 100%;
  margin-top: 4px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.secondary-button:hover {
  filter: brightness(1.06);
}

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

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 20px, 1120px);
    padding-top: 20px;
  }

  .player-panel,
  .card {
    border-radius: 20px;
    padding: 18px;
  }

  .input-row,
  .player-header {
    grid-template-columns: 1fr;
    display: grid;
  }

  .status {
    width: fit-content;
  }

  .player-hint {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}
