:root {
  --ink: #1d1925;
  --muted: #706a79;
  --paper: #f9f7fb;
  --line: #dfd9e4;
  --accent: #e8469b;
  --deep: #40235e;
}

* { box-sizing: border-box; }
body { margin: 0; padding-bottom: 44px; color: var(--ink); background: var(--paper); font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif; }
button, input, select { font: inherit; }
.site-header { height: 72px; max-width: 1056px; margin: auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { color: var(--ink); text-decoration: none; font-size: 22px; font-weight: 800; letter-spacing: .03em; }
.brand span { color: var(--accent); font-style: italic; }
main { display: flex; flex-direction: column; max-width: 1056px; margin: auto; padding: 48px 24px 96px; }
.hero { padding: 40px; color: white; background: linear-gradient(130deg, var(--deep), #cb4c9a); border-radius: 20px; }
.hero h1, .admin-heading h2 { margin: 4px 0 8px; font-size: clamp(28px, 5vw, 44px); }
.hero p:last-child { margin: 0; opacity: .85; }
.eyebrow { margin: 0; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.hero .eyebrow { color: #ffd2ed; }
.schedule { order: 2; margin-top: 28px; background: white; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.schedule-day + .schedule-day { border-top: 1px solid var(--line); }
.schedule-day-heading { margin: 0; padding: 14px 24px; color: var(--deep); background: #f4f0f7; font-size: 15px; }
.stream-card { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.schedule-day .stream-card:last-child { border-bottom: 0; }
.stream-time { color: var(--accent); font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stream-meta { margin: 0 0 4px; color: var(--muted); font-size: 14px; }
.stream-title { margin: 0; font-size: 17px; }
.stream-admin-actions { display: flex; gap: 8px; }
.stream-admin-actions[hidden] { display: none !important; }
.button { padding: 10px 16px; border: 0; border-radius: 8px; background: var(--accent); color: white; font-weight: 700; cursor: pointer; }
.button:disabled { color: #fff9; background: #a9a1ae; cursor: not-allowed; }
.button-quiet, .text-button { color: var(--deep); background: transparent; border: 1px solid var(--line); }
.text-button { padding: 7px 10px; border-radius: 6px; cursor: pointer; }
.admin-panel { order: 1; margin-top: 28px; padding: 32px; background: white; border: 1px solid var(--line); border-radius: 16px; }
.admin-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.admin-heading h2 { font-size: 26px; }
.stream-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
label { display: grid; gap: 7px; color: var(--muted); font-size: 14px; font-weight: 700; }
input, select { width: 100%; padding: 11px; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; background: white; }
.form-wide { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 8px; }
dialog { width: min(400px, calc(100% - 32px)); border: 0; border-radius: 16px; box-shadow: 0 24px 72px #0004; }
dialog::backdrop { background: #1d192588; }
.login-form { position: relative; display: grid; gap: 16px; padding: 12px; }
.login-form h2 { margin: -8px 0 4px; }
.dialog-close { position: absolute; top: 0; right: 0; border: 0; background: transparent; font-size: 28px; cursor: pointer; }
.form-error { margin: 0; color: #b0003a; }
.form-hint { color: var(--muted); font-size: 12px; font-weight: 400; }
.member-links { order: 3; margin-top: 48px; }
.member-links-heading h2 { margin: 4px 0 20px; font-size: 28px; }
.member-link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.member-link-card { padding: 22px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.member-link-card p { margin: 0 0 4px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.member-link-card h3 { margin: 0 0 16px; font-size: 20px; }
.member-link-card div { display: flex; flex-wrap: wrap; gap: 8px; }
.member-link-card a { text-decoration: none; }
.related-links { order: 4; margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--line); }
.related-links-heading h2 { margin: 4px 0 20px; font-size: 28px; }
.related-link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.official-link-card { grid-column: 1 / -1; padding: 22px; background: #f4f0f7; border: 1px solid var(--line); border-radius: 14px; }
.official-link-card p { margin: 0 0 4px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.official-link-card h3 { margin: 0 0 16px; font-size: 20px; }
.official-link-card div { display: flex; flex-wrap: wrap; gap: 8px; }
.official-link-card a { text-decoration: none; }
.site-footer { position: fixed; right: 0; bottom: 0; left: 0; z-index: 10; padding: 12px 24px; color: white; background: var(--deep); font-size: 12px; text-align: center; }
.empty, .loading { margin: 0; padding: 40px 24px; color: var(--muted); text-align: center; }
@media (max-width: 640px) { .hero { padding: 28px; } .stream-card { grid-template-columns: 72px minmax(0, 1fr); padding: 16px; } .stream-admin-actions { grid-column: 2; } .stream-form, .member-link-grid, .related-link-grid { grid-template-columns: 1fr; } .form-wide { grid-column: auto; } .official-link-card { grid-column: auto; } }
