:root {
  --bg: #08131f;
  --bg-soft: #122436;
  --panel: rgba(8, 19, 31, 0.72);
  --panel-strong: rgba(10, 20, 33, 0.92);
  --text: #f2f5f8;
  --muted: #a5b7c7;
  --line: rgba(194, 214, 233, 0.16);
  --accent: #f29f67;
  --accent-strong: #ffbf70;
  --danger: #e86b6b;
  --success: #5ad6a0;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(242, 159, 103, 0.22), transparent 28%),
    radial-gradient(circle at right 20%, rgba(90, 214, 160, 0.12), transparent 24%),
    linear-gradient(160deg, #08131f 0%, #11253a 54%, #091019 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at center, black, transparent 85%);
  pointer-events: none;
}

.shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 24px;
  min-height: 100vh;
  padding: 32px;
}

.hero-panel,
.stage {
  min-width: 0;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.eyebrow {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.3rem);
  line-height: 0.95;
}

.hero-copy {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.card,
.video-card {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.card {
  padding: 22px;
}

.field {
  display: grid;
  gap: 10px;
}

.field span,
.status-label {
  font-size: 0.92rem;
  color: var(--muted);
}

input {
  width: 100%;
  border: 1px solid rgba(242, 245, 248, 0.1);
  border-radius: 16px;
  padding: 15px 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font: inherit;
}

input:focus {
  outline: 2px solid rgba(242, 159, 103, 0.45);
  border-color: transparent;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

button {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 13px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    opacity 0.18s ease,
    background 0.18s ease;
}

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

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #1f1208;
}

.ghost {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.compact {
  padding: 10px 14px;
}

.danger {
  background: rgba(232, 107, 107, 0.16);
  color: #ffd0d0;
}

.status-card {
  display: grid;
  gap: 18px;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.status-value {
  margin: 6px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  word-break: break-word;
}

.notice {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  line-height: 1.6;
}

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

.video-card {
  min-height: 280px;
}

.video-meta {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(7, 14, 24, 0.55);
  color: var(--text);
  font-size: 0.92rem;
  backdrop-filter: blur(12px);
}

video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  background: linear-gradient(180deg, #131f2c 0%, #090e14 100%);
}

.empty-state {
  position: absolute;
  inset: auto 18px 18px 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(9, 16, 25, 0.78);
  border: 1px solid rgba(194, 214, 233, 0.16);
  color: var(--muted);
  line-height: 1.6;
  z-index: 2;
}

.hidden {
  display: none;
}

@media (max-width: 980px) {
  .shell {
    grid-template-columns: 1fr;
    padding: 18px;
  }

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

  h1 {
    font-size: clamp(2rem, 12vw, 3.4rem);
  }
}
