:root {
  --bg: #0a0a0f;
  --surface: #13131a;
  --surface-hover: #1c1c26;
  --border: #262636;
  --text: #f3f3f6;
  --muted: #8b8b9e;
  --primary: #f02d3a;
  --primary-hover: #ff3b47;
  --live: #22c55e;
  --radius: 12px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--bg); }
.bg__glow { position: absolute; top: -20%; left: 50%; transform: translateX(-50%); width: 800px; height: 400px; background: radial-gradient(circle, rgba(240,45,58,0.12) 0%, transparent 70%); }
.header { position: sticky; top: 0; z-index: 100; background: rgba(10,10,15,0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.header__inner { max-width: 1400px; margin: 0 auto; height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 0.95rem; }
.brand__mark { display: flex; align-items: center; background: var(--primary); color: #fff; padding: 4px 8px; border-radius: 6px; font-size: 0.8rem; font-family: monospace; }
.brand__live { color: var(--primary); }
.brand__pill { font-size: 0.7rem; background: rgba(240,45,58,0.15); color: var(--primary); padding: 2px 6px; border-radius: 20px; font-weight: 700; }
.header__search { flex: 1; max-width: 320px; position: relative; display: flex; align-items: center; }
.header__search input { width: 100%; height: 38px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 0 16px; color: var(--text); font-size: 0.85rem; outline: none; }
.header__search input:focus { border-color: var(--primary); }
.header__actions { display: flex; align-items: center; gap: 12px; }
.icon-btn { background: var(--surface); border: 1px solid var(--border); width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; color: var(--text); cursor: pointer; }
.hero { position: relative; max-width: 1400px; margin: 20px auto; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); min-height: 320px; display: flex; align-items: flex-end; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 0%, rgba(10,10,15,0.6) 60%, transparent 100%); z-index: 1; }
.hero__inner { position: relative; z-index: 2; padding: 32px; width: 100%; }
.hero__eyebrow { display: flex; align-items: center; font-size: 0.8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; margin-bottom: 8px; }
.hero__eyebrow i { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; display: inline-block; margin-right: 6px; }
.hero__title { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 900; margin: 0 0 8px; }
.hero__meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: 8px; font-size: 0.85rem; font-weight: 700; cursor: pointer; border: none; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); }
.rail { max-width: 1400px; margin: 0 auto 20px; padding: 0 20px; }
.rail__inner { display: flex; align-items: center; gap: 16px; }
.tabs { display: flex; gap: 6px; background: var(--surface); padding: 4px; border-radius: 10px; border: 1px solid var(--border); }
.tab { background: none; border: none; color: var(--muted); padding: 6px 14px; border-radius: 6px; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.tab.is-active { background: var(--surface-hover); color: var(--text); }
.tab--live.is-active { color: var(--live); }
.main { max-width: 1400px; margin: 0 auto; padding: 0 20px 60px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: transform .2s, border-color .2s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); border-color: rgba(240,45,58,0.4); }
.card__media { position: relative; aspect-ratio: 16/9; background: #000; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__topbar { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; z-index: 2; }
.badge { background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); color: var(--text); padding: 4px 8px; border-radius: 4px; font-size: 0.65rem; font-weight: 800; font-family: monospace; border: 1px solid rgba(255,255,255,0.1); }
.badge--live { background: rgba(34,197,94,0.2); color: var(--live); border-color: rgba(34,197,94,0.3); }
.card__play { position: absolute; inset: 0; background: rgba(0,0,0,0.4); display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.card:hover .card__play { opacity: 1; }
.card__play span { width: 44px; height: 44px; background: var(--primary); border-radius: 50%; display: grid; place-items: center; color: #fff; padding-left: 2px; }
.card__body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 0.95rem; font-weight: 700; margin: 0 0 12px; }
.card__actions { display: flex; gap: 8px; margin-top: auto; }
.card__actions .btn { flex: 1; padding: 8px; font-size: 0.75rem; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--surface); border: 1px solid var(--border); color: var(--text); padding: 10px 20px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; transition: transform .3s; z-index: 2000; pointer-events: none; }
.toast.is-show { transform: translateX(-50%) translateY(0); }
[hidden] { display: none !important; }
