body { margin: 0; }
.skip-link { position: absolute; top: 8px; left: 16px; z-index: 10; padding: 12px; background: var(--panel); color: var(--text); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
[hidden] { display: none !important; }
.sched-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; flex-shrink: 0; }
.sched-brand img { display: block; flex: none; }
.sched-tools { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; min-width: 0; margin-left: auto; }
.sched-preferences { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sched-legal { padding: 24px 32px 32px; text-align: center; color: var(--text-dim); font-size: 13px; }
.sched-legal a { color: var(--text-dim); }
.sched-tools .sched-theme-label { display: flex; flex-direction: row; align-items: center; gap: 8px; color: var(--text-dim); font-size: 12px; }
#schedule-theme { width: 150px; padding: 7px 10px; border: 1px solid var(--panel-border-soft); background: var(--bg); color: var(--text); border-radius: 6px; font: inherit; }
.sched-page { padding: 24px 32px 28px; }
.sched-identity { display: grid; gap: 5px; min-width: 0; }
.sched-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sched-head { flex-wrap: wrap; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.sched-head h1 { margin: 0; font-size: 30px; line-height: 1.2; letter-spacing: -.8px; overflow-wrap: anywhere; }
.sched-eyebrow { margin: 0; color: var(--accent); font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .1em; }
.sched-status { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 7px 12px; border: 1px solid var(--panel-border-soft); border-radius: 6px; color: var(--text-dim); font-size: 12px; }
.sched-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sched-status.is-paused { background: var(--amber-soft); color: var(--amber); border-color: var(--amber-soft); }
.sched-status.is-live { background: var(--green-soft); color: var(--green); border-color: var(--green-soft); }
.sched-workspace { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.is-voting .sched-workspace { grid-template-columns: minmax(0, 1fr) minmax(0, 1.16fr); }
.sched-watch { min-width: 0; }
.sched-player { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: transparent; }
.sched-player.has-embed { min-height: 300px; }
.sched-player iframe { display: block; position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sched-player-fallback { height: 100%; min-height: 175px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.sched-player-fallback p { margin: 0; }
.sched-overview { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.sched-overview:has(> [hidden]):not(:has(> :not([hidden]))) { display: none; }
.sched-card { display: grid; align-content: start; gap: 10px; padding: 16px 0; }
.sched-card .sched-title { font-size: 18px; letter-spacing: -.4px; }
.sched-panel { min-width: 0; overflow: hidden; }
.sched-panel-head { padding: 0 0 20px; }
.sched-panel-head .sched-h2 { margin: 8px 0; }
.sched-h2 { font-size: 20px; font-weight: 650; letter-spacing: -.5px; margin: 0; }
.sched-note, .sched-meta { color: var(--text-dim); font-size: 12px; line-height: 1.6; }
.sched-note { margin: 0; }
.sched-list { list-style: none; margin: 0; padding: 0; display: grid; align-content: start; gap: 10px; }
#schedule-list { padding: 0; }
.vote-list > li + li, #schedule-list > li + li { border-top: 1px solid color-mix(in srgb, var(--text) 7%, transparent); }
.sched-row { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border: 0; background: transparent; }
.sched-thumb { width: 88px; aspect-ratio: 16 / 9; border-radius: 5px; overflow: hidden; background: var(--panel); }
.sched-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.sched-text { min-width: 0; display: grid; gap: 5px; }
.sched-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; font-size: 13px; font-weight: 600; line-height: 1.5; }
.sched-when { max-width: 110px; text-align: right; color: var(--accent); font-size: 12px; font-variant-numeric: tabular-nums; }
.sched-now { grid-template-columns: 112px minmax(0, 1fr); background: transparent; padding: 18px 0; border: 0; border-radius: 0; }
.sched-now .sched-thumb { width: 112px; }
.sched-now .sched-title { font-size: 20px; letter-spacing: -.4px; }
.sched-now .sched-eyebrow { color: var(--green); }
.sched-empty { text-align: center; color: var(--text-dim); margin: 48px 0; }
.sched-load-error { color: var(--amber); font-size: 13px; }
#schedule-vote { padding: 0; display: flex; flex-direction: column; gap: 22px; }
.vote-intro { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.vote-heading { display: grid; gap: 8px; }
.vote-intro > .sched-note { flex-basis: 100%; }
.vote-account { display: flex; align-items: center; }
.sched-tools .sched-status, #schedule-theme, .sched-tools .vote-account .btn { height: 36px; min-height: 36px; box-sizing: border-box; margin: 0; line-height: 1; }
.sched-tools .vote-account .btn { width: auto; padding: 0 12px; white-space: nowrap; font-size: 12px; }
.vote-h3 { margin: 0 0 12px; font-size: 12px; font-weight: 650; letter-spacing: .02em; color: var(--text-dim); }
.vote-top-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.vote-top-item { min-width: 0; }
.vote-top-choice { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-content: start; align-items: start; gap: 12px; width: 100%; height: 100%; min-height: 144px; padding: 16px 10px; background: transparent; border: 0; border-top: 2px solid var(--panel-border-soft); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.vote-top-item:first-child .vote-top-choice { border-top-color: var(--accent); }
.vote-top-item:first-child .vote-rank { color: var(--accent); }
.vote-arrow { color: var(--text-faint); }
.vote-count.has-votes .vote-arrow { color: #e34234; }
.vote-top-choice .vote-count { grid-column: 2; }
.vote-top-choice .sched-text { min-height: 65px; }
.vote-top-choice .sched-title { -webkit-line-clamp: 3; line-clamp: 3; }
.vote-rank { color: var(--text-faint); font-size: 30px; font-weight: 650; line-height: 1; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; }
.vote-top-choice:hover:not(:disabled) { background: var(--hover); }
.vote-top-choice.is-picked { background: var(--accent-soft); }
.vote-top-choice:disabled { cursor: default; opacity: .65; }
.vote-clock { font-size: 30px; line-height: 1.15; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.vote-columns { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 18px; min-height: 0; flex: 1; }
.vote-columns.is-vods-only { grid-template-columns: minmax(0, 1fr); }
.vote-col { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.vote-col > .sched-note { min-height: 40px; margin-bottom: 12px; }
.vote-col .vote-list { overflow: auto; min-height: 0; padding: 2px 4px 4px 2px; scrollbar-width: thin; scrollbar-color: var(--panel-border) transparent; }
.vote-search { width: 100%; height: 40px; flex: none; box-sizing: border-box; margin-bottom: 12px; padding: 9px 12px; font: inherit; font-size: 13px; color: var(--text); background: var(--bg); border: 1px solid var(--panel-border-soft); border-radius: 6px; }
.vote-choice { width: 100%; min-height: 86px; padding: 10px; gap: 10px; font: inherit; color: inherit; text-align: left; cursor: pointer; position: relative; overflow: hidden; grid-template-columns: 72px minmax(0, 1fr) auto; }
.vote-choice .sched-thumb { width: 72px; }
.vote-choice:hover:not(:disabled) { border-color: var(--accent); background: var(--hover); }
.vote-choice:disabled { cursor: default; opacity: .65; }
.vote-choice.is-picked { border-color: var(--accent); background: var(--accent-soft); }
.vote-badge { color: var(--accent); font-size: 11px; font-weight: 650; }
.vote-playing { margin-right: 8px; }
.vote-count { justify-self: end; white-space: nowrap; font-size: 12px; font-variant-numeric: tabular-nums; }
.sched-thumb.is-group { display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 1; border: 1px solid var(--panel-border); background: var(--accent-soft); color: var(--accent); font-size: 10px; }
.group-count { font-size: 23px; line-height: 1.2; }
.vote-groups .vote-choice { grid-template-columns: 48px minmax(0, 1fr) auto; }
.vote-groups .sched-thumb { width: 48px; }
.vote-error { color: var(--red); margin: 0; font-size: 13px; }
.is-waiting .vote-intro > .sched-note { margin-top: 24px; padding: 24px 0; }
:where(a, button, select, input, [tabindex="0"]):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (min-width: 1200px) and (min-height: 800px) {
    .sched-page { height: 100dvh; display: flex; flex-direction: column; box-sizing: border-box; }
    .sched-workspace { flex: 1; min-height: 0; align-items: stretch; }
    .sched-watch { overflow: auto; scrollbar-width: thin; }
    .sched-player { max-height: calc(100dvh - 290px); }
    #schedule-vote { min-height: 0; }
    #schedule-upnext { min-height: 0; display: flex; flex-direction: column; }
    #schedule-list { overflow: auto; min-height: 0; scrollbar-width: thin; }
    .has-legacy-queue .sched-workspace { overflow: auto; }
    .has-legacy-queue #schedule-vote { min-height: 650px; }
    .has-legacy-queue #schedule-upnext { grid-column: 1 / -1; }
}
@media (max-width: 1500px) {
    .vote-columns { grid-template-columns: minmax(0, 1fr); }
    .vote-groups .vote-list { display: flex; flex-shrink: 0; overflow-x: auto; }
    .vote-groups .vote-list > li { min-width: 220px; flex: 1; }
    .vote-groups > .sched-note { display: none; }
    .vote-groups { flex-shrink: 0; }
    .vote-columns { grid-template-rows: auto minmax(0, 1fr); }
    .vote-columns.is-vods-only { grid-template-rows: minmax(0, 1fr); }
}
@media (max-width: 1199px), (max-height: 799px) {
    .sched-page { padding: 20px; }
    .sched-workspace, .is-voting .sched-workspace { grid-template-columns: minmax(0, 1fr); }
    .sched-player { max-height: 65vh; }
    .vote-columns { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
    .vote-groups .vote-list { display: grid; }
    .vote-groups .vote-list > li { min-width: 0; }
    .vote-col .vote-list { max-height: 600px; }
}
@media (max-width: 600px) {
    .sched-identity { width: 100%; }
    .sched-brand { gap: 7px; }
    .sched-brand img { width: 24px; height: 24px; }
    .sched-tools { width: 100%; gap: 8px; }
    .sched-tools .sched-theme-label { font-size: 0; gap: 0; }
    #schedule-theme { width: 140px; font-size: 12px; }
    .sched-page { padding: 20px 16px; }
    .sched-head h1 { font-size: 26px; }
    .sched-workspace { gap: 20px; }
    .sched-overview { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .sched-card { padding: 12px 0; gap: 7px; }
    .sched-now { grid-template-columns: 80px minmax(0, 1fr); }
    .sched-now .sched-thumb { width: 80px; }
    .sched-now .sched-title { font-size: 16px; }
    #schedule-vote { padding: 0; gap: 20px; }
    .vote-top-list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .vote-top-choice { min-height: 0; grid-template-columns: 38px minmax(0, 1fr) auto; padding: 14px 10px; align-items: center; }
    .vote-top-choice .sched-text { min-height: 0; }
    .vote-top-choice .vote-count { grid-column: 3; }
    .vote-columns { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .vote-col .vote-list { max-height: none; overflow: visible; }
    .vote-groups .vote-list { display: grid; }
    .sched-row:not(.sched-now) { grid-template-columns: 64px minmax(0, 1fr); }
    .sched-row.vote-choice { grid-template-columns: 64px minmax(0, 1fr) auto; }
    .vote-choice .sched-thumb { width: 64px; }
    .vote-groups .sched-thumb { width: 48px; }
    .sched-thumb { width: 64px; }
    .sched-when { grid-column: 2; text-align: left; max-width: none; }
    .sched-panel-head { padding: 0 0 16px; }
    #schedule-list { padding: 0; }
}

.sched-progress { grid-column: 1 / -1; display: grid; gap: 7px; }
.sched-progress-track { height: 5px; overflow: hidden; border-radius: 99px; background: var(--panel-border-soft); }
.sched-progress-fill { display: block; height: 100%; background: var(--accent); }
.sched-progress-times { display: flex; justify-content: space-between; gap: 12px; color: var(--text-dim); font-size: 12px; font-variant-numeric: tabular-nums; }
.sched-now.is-paused .sched-eyebrow { color: var(--amber); }
.sched-now.is-paused .sched-progress-fill { background: var(--amber); }
