:root {
  --bg: #0b0b0f;
  --panel: #15151d;
  --panel-2: #1d1d28;
  --line: #2a2a38;
  --text: #ece9e2;
  --muted: #9a96a6;
  --gold: #d9b26a;
  --gold-2: #f0d296;
  --red: #e0533d;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: radial-gradient(1200px 600px at 50% -10%, #17131f 0%, var(--bg) 55%);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

header.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11,11,15,0.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { font-family: 'Playfair Display', Georgia, serif; font-size: 22px; letter-spacing: 0.5px; }
.brand b { color: var(--gold); }
.nav .spacer { flex: 1; }
.nav a.link { color: var(--muted); font-size: 14px; }
.nav a.link:hover, .nav a.link.active { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #1a1206; border: none; border-radius: 999px; padding: 10px 20px;
  font-weight: 600; font-size: 14px; cursor: pointer; transition: transform .08s ease, filter .2s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn:disabled { opacity: .5; cursor: default; }

.hero { padding: 60px 0 30px; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: 46px; margin: 0 0 10px; }
.hero p { color: var(--muted); max-width: 620px; font-size: 16px; line-height: 1.6; }

.section-title { font-family: 'Playfair Display', serif; font-size: 26px; margin: 40px 0 18px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  transition: transform .12s ease, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: #3a3550; }
.poster { aspect-ratio: 2/3; background: linear-gradient(135deg, #23202e, #14121a); width: 100%; object-fit: cover; display: block; }
.card .body { padding: 12px 14px 16px; }
.card .body h3 { margin: 0 0 4px; font-size: 15px; }
.card .body .meta { color: var(--muted); font-size: 12px; display: flex; justify-content: space-between; }
.price { color: var(--gold); font-weight: 600; }

.event-row {
  display: flex; align-items: center; gap: 16px; padding: 16px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px;
}
.event-row .when { color: var(--gold); font-size: 13px; font-weight: 600; }
.event-row .spacer { flex: 1; }
.badge { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.badge.live { color: var(--red); border-color: var(--red); }

.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: none; align-items: center; justify-content: center; z-index: 50; }
.modal-bg.open { display: flex; }
.modal { background: var(--panel-2); border: 1px solid var(--line); border-radius: 16px; padding: 28px; width: 360px; }
.modal h2 { font-family: 'Playfair Display', serif; margin: 0 0 6px; }
.modal p { color: var(--muted); font-size: 13px; margin: 0 0 18px; }
.field { display: block; margin-bottom: 12px; }
.field input { width: 100%; padding: 11px 13px; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; color: var(--text); font-size: 14px; }
.field input:focus { outline: none; border-color: var(--gold); }
.muted { color: var(--muted); font-size: 13px; }
.err { color: var(--red); font-size: 13px; min-height: 18px; }
.center { text-align: center; }
.tabs { display: flex; gap: 10px; margin-bottom: 16px; }
.tabs button { flex: 1; background: transparent; border: 1px solid var(--line); color: var(--muted); padding: 9px; border-radius: 9px; cursor: pointer; }
.tabs button.active { color: var(--gold); border-color: var(--gold); }

.detail { display: grid; grid-template-columns: 300px 1fr; gap: 40px; padding: 50px 0; }
.detail .poster { border-radius: 14px; border: 1px solid var(--line); }
.detail h1 { font-family: 'Playfair Display', serif; font-size: 40px; margin: 0 0 8px; }
.detail .sub { color: var(--muted); margin-bottom: 18px; }
.detail .syn { line-height: 1.7; color: #cfccc3; max-width: 560px; }
.detail .actions { margin-top: 26px; display: flex; gap: 12px; align-items: center; }

.player-wrap { background: #000; min-height: 100vh; display: flex; flex-direction: column; }
video.player { width: 100%; height: 100vh; background: #000; }
.live-bar { position: fixed; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 14px; padding: 12px 20px; background: linear-gradient(180deg, rgba(0,0,0,.7), transparent); z-index: 10; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.waiting { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.waiting .count { font-family: 'Playfair Display', serif; font-size: 64px; color: var(--gold); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--panel-2); border: 1px solid var(--line); padding: 12px 20px; border-radius: 10px; z-index: 60; display: none; }
footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 30px 0; color: var(--muted); font-size: 13px; }
