:root {
  --bg:      #0b0d12;
  --surface: #161a23;
  --border:  #262c3a;
  --text:    #e8eaf0;
  --dim:     #8b93a7;
  --accent:  #ff2d4b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 980px; margin: 0 auto; padding: 44px 20px 80px; }
.wrap--center { min-height: 100vh; display: grid; place-items: center; }

.title { font-size: clamp(24px, 4vw, 34px); font-weight: 800; letter-spacing: -0.03em; }

.note {
  margin: 14px 0 0;
  padding: 12px 16px;
  background: rgba(245, 197, 24, 0.1);
  border: 1px solid rgba(245, 197, 24, 0.3);
  border-radius: 10px;
  color: #f5c518;
  font-size: 14px;
}

/* Shaka menyuntikkan kontrolnya ke dalam wadah ini,
   jadi wadahnya yang diberi ukuran — bukan elemen video. */
.player {
  position: relative;
  margin-top: 22px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
}
.player video { width: 100%; height: 100%; display: block; }

.status {
  margin-top: 14px;
  padding: 11px 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--dim);
}
.status.is-error { color: var(--accent); border-color: rgba(255, 45, 75, 0.4); }

.notes { margin-top: 46px; max-width: 72ch; }
.notes h2 {
  font-size: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.notes h3 { margin: 24px 0 6px; font-size: 15.5px; }
.notes p { color: #b9c0d0; font-size: 15px; }

code {
  padding: 2px 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 13px;
}

.err { text-align: center; max-width: 460px; }
.err__code { font-size: 64px; font-weight: 800; color: var(--accent); line-height: 1; }
.err__title { margin-top: 10px; font-size: 22px; }
.err__msg { margin-top: 8px; color: var(--dim); }

.btn {
  display: inline-block;
  margin-top: 24px;
  padding: 11px 24px;
  background: var(--accent);
  border-radius: 100px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}
.btn:hover { opacity: 0.9; }

/* Tautan kembali ke beranda di halaman pemutar */
.balik {
  display: inline-block; margin-bottom: 10px;
  color: var(--dim); text-decoration: none; font-size: 13.5px;
}
.balik:hover { color: var(--text); }
