:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0f1216;
  color: #edf2f7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(33, 43, 52, 0.7), rgba(15, 18, 22, 0.95)),
    url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1600&q=80");
  background-attachment: fixed;
  background-size: cover;
}

button,
input {
  font: inherit;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.eyebrow {
  margin: 0 0 4px;
  color: #96f2d7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 48px);
}

h2 {
  margin-bottom: 0;
  font-size: 20px;
}

h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

.session {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 54px) 54px;
}

.panel {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(17, 22, 27, 0.86);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.wide {
  grid-column: 1 / -1;
}

.panel-head,
.video-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.muted {
  color: #a9b6c2;
}

.form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: #c8d2dc;
  font-size: 14px;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  padding: 10px 12px;
}

.inline-field {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
}

.file-drop {
  min-height: 120px;
  place-items: center;
  border: 1px dashed rgba(150, 242, 215, 0.45);
  border-radius: 8px;
  background: rgba(150, 242, 215, 0.08);
  text-align: center;
}

.file-drop input {
  max-width: 260px;
  border: 0;
  background: transparent;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 9px 14px;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.primary {
  border-color: rgba(93, 230, 190, 0.55);
  background: #17b890;
  color: #08110f;
  font-weight: 800;
}

.badge,
.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #dce7f0;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 800;
}

.hidden {
  display: none;
}

.latest {
  display: grid;
  gap: 12px;
}

.latest video {
  width: 100%;
  max-height: 420px;
  border-radius: 8px;
  background: #050607;
}

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

.video-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.video-item video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background: #050607;
}

.meta {
  color: #a9b6c2;
  font-size: 14px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.actions input {
  width: 96px;
}

.form-status {
  min-height: 22px;
  margin: 0;
  font-size: 14px;
}

.progress {
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: #17b890;
  transition: width 160ms ease;
}

.progress.indeterminate .progress-bar {
  width: 38%;
  animation: progress-slide 1.1s ease-in-out infinite;
}

@keyframes progress-slide {
  0% {
    transform: translateX(-110%);
  }

  100% {
    transform: translateX(285%);
  }
}

.form-status.error {
  color: #ffb4a8;
}

.form-status.success {
  color: #96f2d7;
}

@media (max-width: 820px) {
  .topbar,
  .layout {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .session {
    justify-content: flex-start;
  }

  .video-item {
    grid-template-columns: 1fr;
  }
}
