:root {
  --ink: #1c1b1a;
  --swell: #0a4f6d;
  --foam: #f6f3eb;
  --sun: #f2a65a;
  --coral: #e06c4d;
  --mist: rgba(255, 255, 255, 0.7);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 20% 20%, #fbeed7 0%, #f6e0bd 35%, #c6e0e5 100%);
  overflow-x: hidden;
}

.bg-orbit {
  position: fixed;
  inset: -40% -20% auto -40%;
  height: 480px;
  background: conic-gradient(from 140deg, rgba(10, 79, 109, 0.35), rgba(224, 108, 77, 0.2), rgba(242, 166, 90, 0.25));
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.8;
  z-index: -1;
  animation: drift 18s ease-in-out infinite;
}

.shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  display: grid;
  gap: 28px;
}

.hero {
  max-width: 720px;
  animation: fadeUp 0.8s ease both;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 10px;
  color: rgba(28, 27, 26, 0.7);
}

.hero h1 {
  font-family: "Space Grotesk", "Gill Sans", sans-serif;
  font-size: clamp(32px, 5vw, 46px);
  margin: 0 0 14px;
}

.subhead {
  font-size: 18px;
  margin: 0;
  color: rgba(28, 27, 26, 0.75);
}

.control-card,
.video-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 12px 40px rgba(14, 40, 51, 0.12);
  backdrop-filter: blur(12px);
  animation: fadeUp 0.8s ease both;
}

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

.status {
  display: flex;
  gap: 14px;
  align-items: center;
}

.status-indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #3bb273;
  box-shadow: 0 0 0 6px rgba(59, 178, 115, 0.2);
  transition: all 0.3s ease;
}

.status-indicator.busy {
  background: var(--coral);
  box-shadow: 0 0 0 6px rgba(224, 108, 77, 0.25);
}

.status-label {
  font-weight: 600;
  margin: 0;
}

.status-detail {
  margin: 4px 0 0;
  font-size: 14px;
  color: rgba(28, 27, 26, 0.6);
}

.primary {
  border: none;
  border-radius: 999px;
  padding: 14px 26px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(120deg, var(--swell), #13718a);
  box-shadow: 0 10px 24px rgba(10, 79, 109, 0.35);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.primary:not(:disabled):hover {
  transform: translateY(-2px);
}

.helper {
  font-size: 13px;
  color: rgba(28, 27, 26, 0.65);
  margin: 0;
}

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

.video-header h2 {
  margin: 0;
}

.date {
  font-size: 14px;
  color: rgba(28, 27, 26, 0.6);
}

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

.video-item {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(10, 79, 109, 0.12);
  animation: fadeUp 0.5s ease both;
}

.video-item h3 {
  margin: 0;
  font-size: 16px;
}

.video-meta {
  font-size: 13px;
  color: rgba(28, 27, 26, 0.65);
}

video {
  width: 100%;
  border-radius: 12px;
  background: #000;
}

.empty {
  padding: 20px;
  text-align: center;
  color: rgba(28, 27, 26, 0.6);
  border: 1px dashed rgba(28, 27, 26, 0.2);
  border-radius: 12px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(60px, 20px, 0) scale(1.05);
  }
}

@media (max-width: 720px) {
  .shell {
    padding: 36px 18px 52px;
  }

  .video-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
