:root {
  --bg: #070707;
  --panel: rgba(255, 255, 255, 0.04);
  --text: #f5f2ea;
  --muted: rgba(245, 242, 234, 0.62);
  --line: rgba(245, 242, 234, 0.12);
  --accent: #f2c230;
  --accent-soft: rgba(242, 194, 48, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(circle at top, rgba(242, 194, 48, 0.08), transparent 28%), var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
}

body { line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.shell { min-height: 100vh; padding: 24px; }
.frame { width: min(100%, var(--max)); margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; letter-spacing: 0.28em; text-transform: uppercase; font-size: 0.76rem; color: var(--muted); }
.brand::before { content: ""; width: 22px; height: 1px; background: var(--accent); display: inline-block; }
.hero .brand::before { width: 18px; }
.hero { min-height: calc(100vh - 48px); display: grid; place-items: center; }
.gate { width: min(100%, 460px); display: grid; gap: 24px; padding: 42px 34px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015)); box-shadow: var(--shadow); }
.title-block h1, .catalog-head h1, .watch-head h1 { margin: 0; font-size: clamp(2rem, 5vw, 4.6rem); line-height: 0.95; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.subtle { color: var(--muted); font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase; }
.gate-form { display: grid; gap: 14px; }
.hero .gate-form .btn { margin-top: 14px; letter-spacing: 0.28em; }
.input-toggle svg { width: 18px; height: 18px; }
.input, .select { width: 100%; padding: 15px 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--text); outline: none; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 56px; }
.input-toggle { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 0; background: transparent; color: rgba(245, 242, 234, 0.68); cursor: pointer; }
.input-toggle:hover, .input-toggle:focus-visible { color: var(--accent); }
.input:focus, .select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.btn, .text-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 18px; border: 1px solid var(--accent); background: var(--accent); color: #111; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.8rem; cursor: pointer; }
.text-btn { width: fit-content; }
.btn.secondary, .text-btn.secondary { background: transparent; color: var(--accent); }
.error { min-height: 1.2rem; color: #ff9c9c; font-size: 0.9rem; }
.catalog-layout, .watch-layout { display: grid; gap: 34px; padding: 34px 0 60px; }
.catalog-layout { gap: 54px; }
.catalog-head, .watch-head { display: grid; gap: 12px; padding-top: 22px; }
.catalog-head { gap: 10px; }
.program-label { color: rgba(245, 242, 234, 0.52); text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.75rem; }
.catalog-meta, .meta-row { display: flex; flex-wrap: wrap; gap: 10px 20px; color: rgba(245, 242, 234, 0.52); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; }
.poster-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px 24px; }
.poster-card { display: grid; gap: 10px; }
.poster-frame { position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: rgba(255,255,255,0.03); border: 1px solid var(--line); transition: transform 180ms ease, filter 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.poster-frame::after { content: "Enter"; position: absolute; right: 14px; bottom: 14px; color: rgba(245, 242, 234, 0); text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.68rem; transition: color 180ms ease; }
.poster-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 180ms ease, filter 180ms ease; }
.poster-card:hover .poster-frame, .poster-card:focus-visible .poster-frame { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.poster-card:hover .poster-frame img, .poster-card:focus-visible .poster-frame img { transform: scale(1.02); filter: brightness(1.04) contrast(1.03); }
.poster-card:hover .poster-frame::after, .poster-card:focus-visible .poster-frame::after { color: rgba(245, 242, 234, 0.72); }
.poster-copy { display: grid; gap: 3px; }
.poster-copy h2, .watch-copy h2 { margin: 0; font-size: clamp(1.2rem, 2vw, 1.8rem); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }
.poster-copy p, .watch-copy p, .catalog-note { margin: 0; color: var(--muted); }
.player-wrap { display: grid; gap: 18px; }
.player-shell { border: 1px solid var(--line); background: #000; box-shadow: var(--shadow); }
.player-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.player-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-controls { display: flex; flex-wrap: wrap; gap: 12px; padding: 16px; border-top: 1px solid var(--line); background: rgba(10, 10, 10, 0.96); }
.part-selector { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.part-link { position: relative; padding: 0; border: 0; background: transparent; color: var(--muted); text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.76rem; cursor: pointer; }
.part-link:hover, .part-link:focus-visible, .part-link[aria-current="true"] { color: var(--accent); }
.part-link[aria-current="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--accent); }
.player-note { color: var(--muted); font-size: 0.9rem; }
.empty-state { color: var(--muted); border: 1px dashed var(--line); padding: 20px; }
.watch-copy { display: grid; gap: 6px; }
@media (max-width: 720px) { .shell { padding: 18px; } .gate { padding: 30px 22px; } }
