:root { --bg: #070b12; --card: #0f1725; --card2: #13213a; --line: #2b3d5e; --ink: #eef3f8; --muted: #b3c0cf; --accent: #7fb2ff; --live: #ff6b6b; color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 20px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
.wrap { max-width: 1000px; margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) 16px max(40px, env(safe-area-inset-bottom)); }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
header.top a.home { color: var(--muted); text-decoration: none; font-size: 18px; }
h1 { font-size: 32px; line-height: 1.2; margin: 6px 0 8px; }
.lead { color: var(--muted); font-size: 21px; margin: 0 0 22px; }
.ward { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin-bottom: 14px; }
.ward .name { font-size: 25px; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ward .when { color: var(--muted); font-size: 18px; margin: 2px 0 12px; }
.btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn { display: block; text-align: center; text-decoration: none; font-size: 21px; font-weight: 700; padding: 16px 10px; border-radius: 14px; color: #fff; background: #2f6fbf; }
.btn.alt { background: var(--card2); border: 2px solid var(--line); color: var(--ink); }
.badge { font-size: 15px; font-weight: 800; letter-spacing: .06em; color: #fff; background: var(--live); border-radius: 999px; padding: 3px 10px; }
.badge.paused { background: #b8730a; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #fff; margin-right: 6px; animation: pulse 1.4s infinite; vertical-align: 1px; }
@keyframes pulse { 50% { opacity: .3; } }
.player { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wait { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px 20px; text-align: center; }
.wait .big { font-size: 28px; font-weight: 700; margin-bottom: 6px; }
.wait .sub { color: var(--muted); font-size: 20px; }
.note { color: var(--muted); font-size: 18px; margin-top: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tile { background: var(--card2); border: 2px solid var(--line); border-radius: 16px; overflow: hidden; cursor: pointer; color: inherit; text-align: left; padding: 0; font: inherit; }
.tile:hover, .tile:focus { border-color: var(--accent); outline: none; }
.tile.playing { border-color: #f2b84b; }
.tile img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.tile .d { padding: 14px 16px 16px; }
.tile .day { font-size: 24px; font-weight: 700; }
.tile .date { color: var(--muted); font-size: 19px; }
.tile .go { display: inline-block; margin-top: 8px; color: var(--accent); font-weight: 700; font-size: 19px; }
.empty { background: var(--card); border: 2px dashed var(--line); border-radius: 16px; padding: 28px; font-size: 22px; text-align: center; }
.now { font-size: 22px; font-weight: 700; margin: 10px 0 16px; }
@media (max-width: 420px) { .btn { font-size: 19px; padding: 15px 6px; } h1 { font-size: 28px; } }
