/*
 * PlayHub dark theme.
 *
 * Loaded after app.css and light-blue.css, which still provide component
 * structure. Everything visual (palette, header, buttons, hero layout, full
 * width schedule) is owned here and follows the PlayHub logo: deep indigo
 * surfaces with a magenta → violet → cyan accent, in a Twitch-like flat style.
 */
:root {
    --bg: #0e0c1f;
    --bg-deep: #09081a;
    --surface: #17142e;
    --surface-2: #1f1b3d;
    --surface-3: #2a2452;
    --panel: var(--surface);
    --panel-solid: var(--surface-2);
    --line: rgba(167, 139, 250, .16);
    --line-strong: rgba(167, 139, 250, .34);
    --text: #efedff;
    --muted: #a9a3c9;
    --muted-strong: #d6d1f2;
    --purple: #a855ff;
    --violet: #6d5bff;
    --blue: #3fc8ff;
    --cyan: #7fdcff;
    --pink: #ff6bea;
    --green: #4ee6a8;
    --live: #ff3b5c;
    --brand-grad: linear-gradient(120deg, #c637ff 0%, #5965ff 55%, #20d9ff 100%);
    --brand-grad-soft: linear-gradient(120deg, rgba(198, 55, 255, .18), rgba(89, 101, 255, .14) 55%, rgba(32, 217, 255, .12));
    --focus-ring: 0 0 0 3px rgba(168, 85, 255, .45);
    --radius-lg: 18px;
    --radius-md: 12px;
    --shadow: 0 18px 50px rgba(4, 3, 16, .45);
    --header-height: 64px;
    color-scheme: dark;
}

body {
    color: var(--text);
    background:
        radial-gradient(circle at 85% -10%, rgba(198, 55, 255, .16), transparent 38%),
        radial-gradient(circle at 0% 30%, rgba(32, 217, 255, .08), transparent 34%),
        linear-gradient(180deg, #110e26 0%, var(--bg) 40%, var(--bg-deep) 100%);
}
.page-noise { opacity: .02; mix-blend-mode: normal; }
.page-glow { opacity: .35; }
.page-glow--one { background: radial-gradient(circle, rgba(198, 55, 255, .35), transparent 68%); }
.page-glow--two { background: radial-gradient(circle, rgba(32, 217, 255, .18), transparent 67%); }
::selection { color: #fff; background: rgba(168, 85, 255, .55); }

/* ---------- Scrollbars ---------- */
/* WebKit/Blink get the gradient thumb; browsers without ::-webkit-scrollbar (Firefox) use the standard properties. */
@supports not selector(::-webkit-scrollbar) {
    * { scrollbar-width: thin; scrollbar-color: #7c4dff var(--bg-deep); }
}
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
    border: 3px solid var(--bg-deep);
    border-radius: 999px;
    background: linear-gradient(180deg, #c637ff, #5965ff 60%, #20d9ff) border-box;
}
::-webkit-scrollbar-thumb:hover { border-width: 2px; filter: brightness(1.15); }
::-webkit-scrollbar-corner { background: var(--bg-deep); }


/* ---------- Floating rounded header ---------- */
.site-header {
    position: sticky;
    top: 12px;
    z-index: 100;
    width: min(calc(100% - 32px), var(--max));
    max-width: none;
    min-height: var(--header-height);
    margin: 14px auto 0;
    padding: 10px 12px 10px 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(23, 20, 46, .82);
    box-shadow: 0 14px 40px rgba(4, 3, 16, .45), inset 0 1px rgba(255, 255, 255, .04);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
}
section[id] { scroll-margin-top: calc(var(--header-height) + 32px); }

.site-header .brand { padding: 0; }
.brand-logo {
    width: auto;
    height: 60px;
    margin: -10px 0;
    filter: drop-shadow(0 0 10px rgba(124, 77, 255, .45));
    transition: transform .2s ease, filter .2s ease;
}
.brand:hover .brand-logo,
.brand:focus-visible .brand-logo { filter: drop-shadow(0 0 16px rgba(198, 55, 255, .7)); transform: scale(1.04); }
.brand:focus-visible { border-radius: 10px; outline: none; box-shadow: var(--focus-ring); }

.brand-copy strong {
    color: #fff;
    font-size: 19px;
    font-weight: 900;
    letter-spacing: .06em;
    text-shadow: none;
    background: linear-gradient(160deg, #ff78ec 0%, #c94bff 48%, #897dff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.brand-copy strong span {
    background: linear-gradient(160deg, #ffffff 0%, #d7e0ff 48%, #8ea9ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.brand-copy small { color: var(--muted); }

.main-nav { gap: 4px; }
.main-nav a { min-height: 38px; padding: 0 14px; border-radius: 10px; color: var(--muted-strong); font-size: 13px; }
.main-nav a::after { right: 14px; bottom: 5px; left: 14px; background: var(--brand-grad) border-box; }
.main-nav a:hover,
.main-nav a:focus-visible { border-color: transparent; color: #fff; background: rgba(168, 85, 255, .14); box-shadow: none; }
.main-nav a.is-active { color: #fff; background: transparent; }
.main-nav a:focus-visible { box-shadow: var(--focus-ring); }
.main-nav-link--accent,
.main-nav .main-nav-link--accent {
    margin-left: 8px;
    padding: 0 16px;
    border: 0;
    color: #fff !important;
    background: var(--brand-grad) border-box;
    box-shadow: 0 6px 18px rgba(124, 77, 255, .35);
    font-weight: 800;
}
.main-nav .main-nav-link--accent:hover,
.main-nav .main-nav-link--accent:focus-visible {
    color: #fff !important;
    background: var(--brand-grad) border-box;
    box-shadow: 0 10px 26px rgba(124, 77, 255, .5);
    filter: brightness(1.08);
    transform: translateY(-1px);
}
.nav-toggle { border-color: var(--line); background: var(--surface-2); }
.nav-toggle > .fa-bars { color: var(--muted-strong); }

/* ---------- Buttons ---------- */
/*
 * Gradient fills use "border-box" inside the background shorthand: the default
 * padding-box origin repeats a 1px sliver of the gradient's blue end into the
 * transparent left border, and the shorthand resets any separate origin rule.
 */
.button { border-radius: 12px; font-size: 13px; }
.button:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.button--solid,
.button--primary {
    color: #fff;
    background: var(--brand-grad) border-box;
    background-size: 140% 100%;
    box-shadow: 0 10px 28px rgba(124, 77, 255, .38), inset 0 1px rgba(255, 255, 255, .2);
    transition: transform .2s ease, box-shadow .2s ease, background-position .4s ease;
}
.button--primary:hover,
.button--solid:hover { background-position: 100% 0; box-shadow: 0 14px 34px rgba(124, 77, 255, .55), inset 0 1px rgba(255, 255, 255, .2); }
.button-play { color: #8d3dff; background: #fff; }
.button--ghost {
    border-color: var(--line-strong);
    color: var(--muted-strong);
    background: rgba(168, 85, 255, .06);
}
.button--ghost:hover,
.button--ghost:focus-visible { border-color: var(--purple); color: #fff; background: rgba(168, 85, 255, .16); }
.about-links .button--youtube { border-color: rgba(255, 59, 92, .45); color: #ff8fa3; background: rgba(255, 59, 92, .1); }
.about-links .button--youtube:hover { border-color: rgba(255, 59, 92, .8); color: #fff; background: rgba(255, 59, 92, .22); }
.about-links .button--twitch { border-color: rgba(145, 70, 255, .5); color: #c9a6ff; background: rgba(145, 70, 255, .12); }
.about-links .button--twitch:hover { border-color: rgba(145, 70, 255, .9); color: #fff; background: rgba(145, 70, 255, .26); }

.stream-link {
    gap: 6px;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 11px;
}
.stream-link--youtube { border-color: rgba(255, 59, 92, .4); color: #ff9aac; background: rgba(255, 59, 92, .1); }
.stream-link--youtube:hover { border-color: rgba(255, 59, 92, .8); color: #fff; background: rgba(255, 59, 92, .24); }
.stream-link--twitch { border-color: rgba(145, 70, 255, .45); color: #cdaaff; background: rgba(145, 70, 255, .12); }
.stream-link--twitch:hover { border-color: rgba(145, 70, 255, .85); color: #fff; background: rgba(145, 70, 255, .28); }
.stream-link--tiktok { border-color: rgba(37, 244, 238, .4); color: #8ff7f3; background: rgba(37, 244, 238, .08); }
.stream-link--tiktok:hover { border-color: rgba(254, 44, 85, .75); color: #fff; background: rgba(254, 44, 85, .18); }
.stream-link:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.text-link { color: var(--cyan); }
.text-link:hover,
.text-link:focus-visible { color: #fff; }

.description-more-button,
.hero-description-more {
    margin-top: 0;
    padding: 7px 13px;
    border-color: var(--line-strong);
    border-radius: 999px;
    color: var(--muted-strong);
    background: rgba(255, 255, 255, .04);
    font-size: 11px;
}
.description-more-button:hover,
.hero-description-more:hover,
.description-more-button:focus-visible,
.hero-description-more:focus-visible {
    border-color: var(--purple);
    color: #fff;
    background: rgba(168, 85, 255, .16);
    box-shadow: var(--focus-ring);
}

/* ---------- Typography helpers ---------- */
.eyebrow, .section-index, .mini-label { color: var(--purple); }
.section-index { letter-spacing: .18em; }
.hero h1::first-line { color: inherit; }
.hero-description, .section-heading p, .about-copy p { color: var(--muted); }
.section-heading h2, .about-copy h2 { margin-top: 0; color: #fff; }
.card-kicker { color: var(--green); }

/* ---------- Hero: stream card left, copy + events right ---------- */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "stream copy"
        "stream events";
    align-items: stretch;
    gap: 20px;
    min-height: 0;
    padding-top: 40px;
    padding-bottom: 90px;
}
.hero-stream { grid-area: stream; }
.hero-copy { grid-area: copy; }
.hero-events { grid-area: events; }

.hero-copy {
    max-width: none;
    padding: clamp(26px, 3.2vw, 40px);
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--brand-grad-soft), var(--surface);
    box-shadow: var(--shadow);
}
.hero h1 {
    max-width: none;
    margin-bottom: 14px;
    color: #fff;
    font-size: clamp(2rem, 3.4vw, 3.1rem);
    letter-spacing: -.035em;
    line-height: 1.06;
}
.hero-description { max-width: 52ch; font-size: 15px; line-height: 1.7; }
.hero-actions { margin-top: 24px; }

.next-stream-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: clamp(24px, 3vw, 34px);
    border: 1px solid var(--line);
    border-radius: 28px;
    color: var(--text);
    background:
        radial-gradient(circle at 100% 0%, rgba(198, 55, 255, .22), transparent 42%),
        radial-gradient(circle at 0% 100%, rgba(32, 217, 255, .12), transparent 45%),
        var(--surface);
    box-shadow: var(--shadow);
}
.next-stream-card::after { display: none; }
.next-stream-card.is-live {
    border-color: rgba(255, 59, 92, .55);
    box-shadow: var(--shadow), 0 0 0 1px rgba(255, 59, 92, .25), 0 0 40px rgba(255, 59, 92, .18);
}
.next-stream-card .card-kicker { gap: 10px; color: var(--green); font-size: 14px; letter-spacing: .14em; }
.next-stream-card .card-kicker .live-dot { font-size: 9px; }
.next-stream-card .live-badge { padding: 4px 10px; font-size: 12px; }
.next-stream-card .card-kicker--empty { color: var(--muted); }
.next-stream-card.is-live .card-kicker { color: #ff8fa3; }
.live-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 6px;
    color: #fff;
    background: var(--live);
    box-shadow: 0 0 16px rgba(255, 59, 92, .55);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .1em;
    animation: live-pulse 1.8s ease-in-out infinite;
}
.live-badge[hidden],
.live-dot[hidden] { display: none; }
@keyframes live-pulse {
    50% { box-shadow: 0 0 4px rgba(255, 59, 92, .35); }
}
@media (prefers-reduced-motion: reduce) {
    .live-badge { animation: none; }
}
.next-stream-card .next-date { flex-wrap: wrap; gap: 4px 16px; margin-top: 26px; }
.next-date span,
.next-date strong { white-space: nowrap; }
.next-date span { color: #fff; font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 800; letter-spacing: -.02em; }
.next-date strong { color: var(--cyan); }
.next-stream-card .hero-stream-title {
    position: relative;
    z-index: 1;
    max-width: none;
    margin: 12px 0 10px;
    color: #fff;
    font-size: clamp(1.8rem, 3.2vw, 2.8rem);
    letter-spacing: -.04em;
    line-height: 1.04;
}
.next-stream-card p { max-width: 54ch; color: var(--muted); font-size: 14px; }
.next-stream-card .stream-description { max-height: calc(1.65em * 3); }
.next-stream-card p a { color: var(--cyan); }
.hero-stream-footer {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}
.hero-stream-footer .stream-links--next { gap: 8px; margin-top: 0; }
/* Flatten the links wrapper so every button shares the row and the leftover width. */
.hero-stream-footer .stream-links--next:not([hidden]) { display: contents; }
.hero-stream-footer .stream-link,
.hero-stream-footer .hero-description-more { flex: 1 1 auto; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 16px; font-size: 13px; }
.hero-stream-footer .stream-link > .fa-brands { font-size: 15px; }
.youtube-embed { margin-top: 18px; border-color: var(--line); border-radius: 16px; background: #000; box-shadow: 0 14px 30px rgba(4, 3, 16, .4); }
.next-stream-card .countdown,
.next-stream-card.has-youtube-embed .countdown {
    position: relative;
    right: auto;
    bottom: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    align-self: stretch;
    gap: 6px 16px;
    margin-top: auto;
    padding: 14px 18px 14px 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(90deg, rgba(168, 85, 255, .12), rgba(32, 217, 255, .06)), rgba(9, 8, 26, .6);
}
.next-stream-card .youtube-embed:not([hidden]) ~ .countdown { margin-top: 20px; }
.countdown-label { display: inline-flex; align-items: center; gap: 9px; color: var(--purple); font-size: 15px; }
.countdown .countdown-label small { color: var(--muted-strong); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.countdown [data-countdown-value] {
    color: #fff;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(120deg, #ffffff 0%, #d7e0ff 45%, #7fdcff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.countdown.is-live { justify-content: flex-start; border-color: rgba(255, 59, 92, .45); background: linear-gradient(90deg, rgba(255, 59, 92, .16), rgba(255, 59, 92, .04)), rgba(9, 8, 26, .6); }
.countdown.is-live .countdown-label { display: none; }
.countdown.is-live [data-countdown-value] { color: var(--live); background: none; -webkit-text-fill-color: currentColor; text-shadow: 0 0 18px rgba(255, 59, 92, .5); }

/* With a playable YouTube embed the video carries the stream; keep the title for screen readers only. */
.next-stream-card.has-youtube-embed .hero-stream-title {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.hero-events {
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow);
}
.hero-events-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero-events-heading h2 { margin: 0; color: #fff; font-size: 18px; letter-spacing: -.02em; }
.hero-events-count { padding: 4px 10px; border-radius: 999px; color: var(--muted-strong); background: var(--surface-2); font-size: 11px; font-weight: 800; }
.hero-events { display: flex; flex-direction: column; min-height: 0; scroll-margin-top: calc(var(--header-height) + 32px); }
.hero-events-list {
    display: grid;
    align-content: start;
    gap: 10px;
    max-height: 360px;
    margin: 16px -6px 0 0;
    padding: 0 6px 0 0;
    overflow-y: auto;
    list-style: none;
    scrollbar-color: rgba(168, 85, 255, .5) transparent;
    scrollbar-width: thin;
}
a.hero-event { cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
a.hero-event:hover,
a.hero-event:focus-visible { border-color: rgba(168, 85, 255, .55); background: var(--surface-3); outline: none; transform: translateY(-1px); }
a.hero-event:focus-visible { box-shadow: var(--focus-ring); }
.hero-event-arrow { color: var(--cyan); font-size: 12px; }
.hero-event:has(.hero-event-arrow) { grid-template-columns: 60px minmax(0, 1fr) 16px; }
.hero-event {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: var(--surface-2);
}
.hero-event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 52px;
    border-radius: 12px;
    background: var(--brand-grad) border-box;
    box-shadow: 0 6px 16px rgba(124, 77, 255, .3);
}
.hero-event-date strong { color: #fff; font-size: 20px; line-height: 1; }
.hero-event-date small { max-width: 100%; margin-top: 3px; overflow: hidden; color: rgba(255, 255, 255, .85); font-size: 8px; font-weight: 800; letter-spacing: .02em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.hero-event-copy { min-width: 0; }
.hero-event-copy strong,
.hero-event-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-event-copy strong { color: #fff; font-size: 14px; }
.hero-event-copy small { margin-top: 3px; color: var(--muted); font-size: 12px; text-transform: capitalize; }
.hero-events-empty { margin: 16px 0 0; color: var(--muted); font-size: 13px; }

/* ---------- Full-width schedule ---------- */
.schedule-list,
.schedule-list--full {
    padding: 22px 26px 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    color: var(--text);
    background: var(--surface);
    box-shadow: var(--shadow);
}
.list-topline { border-bottom-color: var(--line); color: var(--muted-strong); font-size: 11px; }
.list-topline span:last-child { color: var(--muted); font-size: 11px; }
.schedule-list--full .schedule-view-tabs { max-width: 420px; margin: 16px 0 0; }
.schedule-view-tabs { border-color: var(--line); border-radius: 12px; background: var(--bg-deep); }
.schedule-view-tab { border-radius: 9px; color: var(--muted); font-size: 11px; }
.schedule-view-tab:hover,
.schedule-view-tab:focus-visible { border-color: transparent; color: #fff; background: rgba(168, 85, 255, .12); }
.schedule-view-tab:focus-visible { box-shadow: var(--focus-ring); }
.schedule-view-tab.is-active { border-color: transparent; color: #fff; background: var(--brand-grad) border-box; box-shadow: 0 4px 14px rgba(124, 77, 255, .35); }
.schedule-month-controls { padding-top: 16px; padding-bottom: 14px; }
.schedule-period { color: #fff; font-size: 16px; text-transform: capitalize; }
.month-button,
.schedule-today-button {
    height: 34px;
    border-color: var(--line-strong);
    border-radius: 10px;
    color: var(--muted-strong);
    background: var(--surface-2);
}
.month-button { width: 34px; }
.schedule-today-button { min-width: 48px; padding: 0 12px; font-size: 11px; }
.month-button:hover:not(:disabled),
.month-button:focus-visible:not(:disabled),
.schedule-today-button:hover:not(:disabled),
.schedule-today-button:focus-visible:not(:disabled) { border-color: var(--purple); color: #fff; background: rgba(168, 85, 255, .2); box-shadow: var(--focus-ring); }

.schedule-day-option { border-color: var(--line); border-radius: 12px; color: var(--muted); background: var(--surface-2); }
.schedule-day-option:hover,
.schedule-day-option:focus-visible { border-color: var(--line-strong); color: #fff; }
.schedule-day-option.is-today { border-color: rgba(127, 220, 255, .6); }
.schedule-day-option.is-today .schedule-day-name { color: var(--cyan); }
.schedule-day-option.is-selected { border-color: transparent; color: #fff; background: var(--brand-grad) border-box; }
.schedule-day-option.is-selected .schedule-day-name { color: rgba(255, 255, 255, .85); }
.schedule-day-name { color: var(--muted); font-size: 10px; }
.schedule-day-number { color: #fff; font-size: 18px; }
.schedule-day-marker { background: var(--green); box-shadow: 0 0 8px rgba(78, 230, 168, .8); }

.schedule-row { min-height: 96px; border-bottom-color: var(--line); }
.schedule-row:hover,
.schedule-row:focus-visible { background: rgba(168, 85, 255, .08); }
.schedule-row:focus-visible { box-shadow: var(--focus-ring); }
.schedule-row--active::before { left: -26px; background: var(--brand-grad) border-box; box-shadow: 0 0 13px rgba(168, 85, 255, .7); }
.schedule-row { grid-template-columns: 76px minmax(0, 1fr) 140px; }
.schedule-date { border-color: var(--line-strong); background: var(--surface-2); }
.schedule-date strong, .schedule-main h3 { color: #fff; }
.schedule-main h3 { font-size: 16px; }
.schedule-date span, .schedule-time strong { color: var(--cyan); }
.schedule-main p { color: var(--muted); font-size: 12px; }
.schedule-time small { color: var(--muted); font-size: 11px; }
.schedule-time strong { font-size: 14px; }
.schedule-month-empty { color: var(--muted); font-size: 14px; }

.calendar-weekdays { gap: 8px; color: var(--muted); font-size: 11px; }
.calendar-grid { gap: 8px; }
.calendar-day { min-height: 118px; padding: 9px 8px; border-color: var(--line); border-radius: 12px; background: var(--surface-2); }
.calendar-day--empty { border-color: transparent; background: rgba(255, 255, 255, .015); }
.calendar-day--today { border-color: rgba(127, 220, 255, .7); box-shadow: inset 0 0 0 1px rgba(127, 220, 255, .15); }
.calendar-day-number { color: var(--muted-strong); font-size: 13px; }
.calendar-day--today .calendar-day-number { color: var(--cyan); }
.calendar-day-items { max-height: 84px; scrollbar-color: rgba(168, 85, 255, .5) transparent; }
.calendar-day-items::-webkit-scrollbar-thumb { background: rgba(168, 85, 255, .5); }
.calendar-item,
button.calendar-item { padding: 5px 7px; border-radius: 7px; font-size: 11px; line-height: 1.2; }
.calendar-item-time { font-size: 10px; }
.calendar-item-title { margin-top: 2px; font-size: 11px; }
.calendar-item--stream { border-color: rgba(168, 85, 255, .35); color: #e6d8ff; background: rgba(168, 85, 255, .16); }
.calendar-item--stream:hover,
.calendar-item--stream:focus-visible { border-color: rgba(168, 85, 255, .8); color: #fff; background: rgba(168, 85, 255, .3); }
.calendar-item--stream:focus-visible { box-shadow: var(--focus-ring); }
.calendar-item--stream.calendar-item--active,
.calendar-item--stream.calendar-item--active:hover,
.calendar-item--stream.calendar-item--active:focus-visible { border-color: transparent; color: #fff; background: var(--brand-grad) border-box; box-shadow: 0 4px 14px rgba(124, 77, 255, .4); }
.calendar-item--stream.calendar-item--past,
.calendar-item--stream.calendar-item--past.calendar-item--active { border-color: rgba(169, 163, 201, .2); color: #9993b8; background: rgba(169, 163, 201, .08); box-shadow: none; }
.calendar-item--stream.calendar-item--past:hover,
.calendar-item--stream.calendar-item--past:focus-visible,
.calendar-item--stream.calendar-item--past.calendar-item--active:hover,
.calendar-item--stream.calendar-item--past.calendar-item--active:focus-visible { border-color: rgba(169, 163, 201, .5); color: #d6d1f2; background: rgba(169, 163, 201, .16); }
.calendar-legend { gap: 18px; color: var(--muted); font-size: 11px; }
.calendar-legend-dot--stream { color: var(--purple); text-shadow: 0 0 9px rgba(168, 85, 255, .7); }
.calendar-legend-dot--past { color: #8c86ab; }
.schedule-day-marker--past,
.calendar-legend-dot--past { background: #8c86ab; box-shadow: none; }
.schedule-list .empty-state { color: var(--muted); }
.schedule-list .empty-state span { color: var(--purple); }

/* ---------- Stream details modal ---------- */
.stream-modal-backdrop { background: rgba(6, 5, 18, .78); }
.stream-modal-dialog {
    border-color: var(--line-strong);
    background: radial-gradient(circle at 100% 0%, rgba(198, 55, 255, .2), transparent 40%), var(--surface);
    box-shadow: 0 28px 90px rgba(0, 0, 0, .6);
}
.stream-modal-scroll { scrollbar-color: rgba(168, 85, 255, .6) transparent; }
.stream-modal-scroll::-webkit-scrollbar-track { background: transparent; }
.stream-modal-scroll::-webkit-scrollbar-thumb,
.stream-modal-scroll::-webkit-scrollbar-thumb:hover { background: rgba(168, 85, 255, .6) padding-box; box-shadow: none; }
.stream-modal-close { border-color: var(--line-strong); color: var(--muted-strong); background: var(--surface-2); }
.stream-modal-close:hover,
.stream-modal-close:focus-visible { border-color: var(--purple); color: #fff; background: rgba(168, 85, 255, .2); box-shadow: var(--focus-ring); }
.stream-modal-dialog .card-kicker { color: var(--purple); }
.stream-modal-date span { color: var(--muted-strong); }
.stream-modal-date strong { color: var(--cyan); }
.stream-modal-dialog h2 { color: #fff; }
.stream-modal-description { color: var(--muted-strong); }
.stream-modal-description a { color: var(--cyan); }

/* ---------- Events ---------- */
.events-grid .event-card {
    border-color: var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
}
.events-grid .event-card::before { background: radial-gradient(circle, rgba(168, 85, 255, .18), transparent 68%); }
.events-grid .event-card:hover { border-color: rgba(168, 85, 255, .6); box-shadow: 0 24px 60px rgba(4, 3, 16, .55), 0 0 30px rgba(168, 85, 255, .15); }
.event-art { background: radial-gradient(circle at 75% 15%, rgba(255, 107, 234, .6), transparent 26%), linear-gradient(135deg, #2a1466, #6a2fc4 49%, #1c1a52); }
.event-art--blue { background: radial-gradient(circle at 30% 15%, rgba(32, 217, 255, .6), transparent 26%), linear-gradient(135deg, #142a6b, #3f4fd6 50%, #1c1a52); }
.event-art::after { border-color: rgba(233, 227, 255, .25); }
.events-grid .event-content { background: none; }
.events-grid .event-date { border-color: rgba(255, 255, 255, .2); background: var(--brand-grad) border-box; box-shadow: 0 12px 25px rgba(124, 77, 255, .35), inset 0 1px rgba(255, 255, 255, .25); }
.events-grid .event-date span:first-child,
.events-grid .event-content h3 { color: #fff; }
.events-grid .event-date span:nth-child(2) { color: rgba(255, 255, 255, .9); }
.events-grid .event-date small { color: rgba(255, 255, 255, .78); }
.events-grid .event-content p { color: var(--muted); }
.events-grid .event-meta span { border-color: var(--line); color: var(--muted-strong); background: var(--surface-2); }
.events-grid .event-card .text-link { color: var(--cyan); }
.events-grid .event-note { color: var(--muted); }
.events-grid .empty-state,
.events-grid .empty-state p { color: var(--muted); }
.events-grid .empty-state span { color: var(--purple); }
.empty-state--wide { border-color: var(--line); background: var(--surface); }

/* ---------- About + footer ---------- */
/* The logo blob's glow rings reach ~60px past its box; keep them clear of the divider. */
.about-section { padding-top: 90px; border-top-color: var(--line); }
.about-links .button--tiktok { border-color: rgba(37, 244, 238, .4); color: #8ff7f3; background: rgba(37, 244, 238, .08); }
.about-links .button--tiktok:hover { border-color: rgba(254, 44, 85, .7); color: #fff; background: rgba(254, 44, 85, .16); }
.footer-links { flex-wrap: wrap; gap: 8px 10px; }
.footer-links .footer-link--tiktok { border-color: rgba(37, 244, 238, .32); color: #8ff7f3; background: rgba(37, 244, 238, .07); }
.footer-links .footer-link--tiktok:hover { border-color: rgba(254, 44, 85, .65); color: #fff; background: rgba(254, 44, 85, .14); }
.site-footer { border-top-color: var(--line); }
.footer-center p { color: var(--muted-strong); }
.footer-center small { color: var(--muted); }
.copyright-link { color: var(--cyan); }
.copyright-link:hover,
.copyright-link:focus-visible { color: #fff; }
.footer-links { color: var(--muted); }
.footer-links .footer-link--youtube { border-color: rgba(255, 59, 92, .35); color: #ff9aac; background: rgba(255, 59, 92, .08); }
.footer-links .footer-link--youtube:hover { border-color: rgba(255, 59, 92, .75); color: #fff; background: rgba(255, 59, 92, .2); }
.footer-links .footer-link--twitch { border-color: rgba(145, 70, 255, .4); color: #cdaaff; background: rgba(145, 70, 255, .1); }
.footer-links .footer-link--twitch:hover { border-color: rgba(145, 70, 255, .8); color: #fff; background: rgba(145, 70, 255, .24); }
.footer-links .footer-link--impressum { border-color: var(--line-strong); color: var(--muted-strong); background: var(--surface-2); }
.footer-links .footer-link--impressum:hover,
.footer-links .footer-link--impressum:focus-visible { border-color: var(--purple); color: #fff; background: rgba(168, 85, 255, .18); }

/* ---------- Impresszum + 404 ---------- */
.legal-hero h1, .error-copy h1 { color: #fff; }
.legal-hero p, .error-copy p { color: var(--muted); }
.legal-card { border-color: var(--line); background: var(--surface); box-shadow: var(--shadow); }
.legal-details > div { border-bottom-color: var(--line); }
.legal-details dt { color: var(--muted); }
.legal-details dd { color: var(--text); }
.legal-details a { color: var(--cyan); }
.legal-date { color: var(--muted); }
.legal-date strong { color: var(--muted-strong); }
.error-visual::before { background: radial-gradient(circle, rgba(198, 55, 255, .3), rgba(89, 101, 255, .12) 42%, transparent 70%); }
.error-number {
    color: transparent;
    background: var(--brand-grad) border-box;
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 18px 40px rgba(124, 77, 255, .35));
}
.error-orbit { border-color: rgba(168, 85, 255, .35); }
.error-orbit--inner { border-color: rgba(32, 217, 255, .3); }
.error-signal { border-color: var(--line-strong); color: #fff; background: var(--surface-2); box-shadow: 0 12px 25px rgba(4, 3, 16, .4), 0 0 24px rgba(168, 85, 255, .25); }
.error-signal--one { color: var(--cyan); }
.error-signal--two { color: var(--pink); }
.error-signal--three { color: #b9a6ff; }

/* ---------- Video submit page: dark instead of its own light skin ---------- */
body.video-submit-body {
    --submit-bg: var(--bg);
    --submit-surface: var(--surface);
    --submit-surface-strong: var(--surface-2);
    --submit-line: var(--line);
    --submit-text: var(--text);
    --submit-muted: var(--muted);
    --submit-muted-strong: var(--muted-strong);
    --submit-accent: var(--purple);
    --submit-accent-dark: #fff;
    --submit-blue: var(--cyan);
    color-scheme: dark;
    color: var(--text);
    background:
        radial-gradient(circle at 85% -10%, rgba(198, 55, 255, .16), transparent 38%),
        linear-gradient(180deg, #110e26 0%, var(--bg) 40%, var(--bg-deep) 100%);
}
body.video-submit-body .site-header { border-color: var(--line); background: rgba(23, 20, 46, .82); box-shadow: 0 14px 40px rgba(4, 3, 16, .45); }
body.video-submit-body .brand-copy strong { color: #fff; text-shadow: none; }
body.video-submit-body .brand-copy small { color: var(--muted); }
body.video-submit-body .main-nav a { color: var(--muted-strong); }
body.video-submit-body .main-nav a:hover,
body.video-submit-body .main-nav a:focus-visible { color: #fff; }
body.video-submit-body .main-nav .main-nav-link--accent { border: 0; color: #fff !important; background: var(--brand-grad) border-box; }
body.video-submit-body .nav-toggle { border-color: var(--line); color: var(--muted-strong); background: var(--surface-2); }
body.video-submit-body .button--ghost { border-color: var(--line-strong); color: var(--muted-strong); background: rgba(168, 85, 255, .06); }
body.video-submit-body .button--ghost:hover,
body.video-submit-body .button--ghost:focus-visible { border-color: var(--purple); color: #fff; background: rgba(168, 85, 255, .16); }
body.video-submit-body .button--primary,
body.video-submit-body .button--primary:hover,
body.video-submit-body .button--primary:focus-visible { color: #fff; background: var(--brand-grad) border-box; box-shadow: 0 10px 28px rgba(124, 77, 255, .38); }
/* Upload hero: a card with a measured headline instead of the oversized display type. */
body.video-submit-body .video-submit-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(20px, 4vw, 48px);
    margin-top: 40px;
    margin-bottom: 26px;
    padding: clamp(28px, 4vw, 48px);
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
        radial-gradient(circle at 100% 0%, rgba(198, 55, 255, .22), transparent 45%),
        radial-gradient(circle at 0% 100%, rgba(32, 217, 255, .1), transparent 45%),
        var(--surface);
    box-shadow: var(--shadow);
}
body.video-submit-body .video-submit-hero::before { display: none; }
body.video-submit-body .video-submit-card h2,
body.video-submit-body .video-submit-info-card h2 { font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
body.video-submit-body .video-submit-hero .section-index { color: var(--purple); }
body.video-submit-body .video-submit-hero h1 {
    max-width: 16ch;
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(2.2rem, 4.4vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.05;
}
body.video-submit-body .video-submit-hero h1 span {
    background: linear-gradient(120deg, #ff78ec 0%, #c94bff 40%, #7f8cff 75%, #20d9ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
body.video-submit-body .video-submit-hero p { max-width: 58ch; color: var(--muted); font-size: 16px; line-height: 1.7; }
.video-submit-hero-icon {
    display: grid;
    place-items: center;
    width: clamp(96px, 12vw, 140px);
    aspect-ratio: 1;
    border-radius: 32px;
    color: #fff;
    background: var(--brand-grad) border-box;
    box-shadow: 0 20px 50px rgba(124, 77, 255, .4), inset 0 1px rgba(255, 255, 255, .25);
    font-size: clamp(40px, 5vw, 58px);
    transform: rotate(-6deg);
}
body.video-submit-body .video-submit-card,
body.video-submit-body .video-submit-info-card,
body.video-submit-body .video-submit-rules-card { border-color: var(--line); background: var(--surface); box-shadow: var(--shadow); }
body.video-submit-body .video-submit-card { background: radial-gradient(circle at 100% 0, rgba(198, 55, 255, .16), transparent 36%), var(--surface); }
body.video-submit-body .video-submit-rules-card { background: var(--brand-grad-soft), var(--surface); }
body.video-submit-body .card-kicker--selected strong { border-color: var(--line-strong); color: var(--purple); background: rgba(168, 85, 255, .12); }
body.video-submit-body .video-submit-field input { border-color: var(--line-strong); color: var(--text); background: var(--bg-deep); }
body.video-submit-body .video-submit-field input:focus { border-color: var(--purple); box-shadow: var(--focus-ring); }
body.video-submit-body .video-submit-field input::placeholder { color: #6f6992; }
body.video-submit-body .video-submit-field small,
body.video-submit-body .video-submit-captcha > small,
body.video-submit-body .video-submit-bottom p,
body.video-submit-body .video-submit-info-card li p { color: var(--muted); }
body.video-submit-body .video-submit-rules-card li { color: var(--muted-strong); }
body.video-submit-body .video-submit-captcha cap-widget {
    --cap-background: var(--bg-deep);
    --cap-border-color: var(--line-strong);
    --cap-color: var(--text);
    --cap-checkbox-border: 1px solid var(--line-strong);
    --cap-checkbox-background: var(--surface-2);
    --cap-spinner-color: var(--purple);
    --cap-spinner-background-color: var(--surface-3);
}
body.video-submit-body .video-submit-closed-icon { border-color: var(--line-strong); color: var(--purple); background: rgba(168, 85, 255, .12); }
body.video-submit-body .submit-alert--success { border-color: rgba(78, 230, 168, .3); color: #a8f3d4; background: rgba(78, 230, 168, .08); }
body.video-submit-body .submit-alert--success i { color: var(--green); }
body.video-submit-body .submit-alert--error { border-color: rgba(255, 59, 92, .35); color: #ffb3c0; background: rgba(255, 59, 92, .08); }
body.video-submit-body .submit-alert--error i { color: #ff8fa3; }
body.video-submit-body .footer-center p { color: var(--muted-strong); }
body.video-submit-body .footer-center small,
body.video-submit-body .footer-links { color: var(--muted); }

/* ---------- Shared confirmation modal ---------- */
.playhub-confirm-modal__backdrop { background: rgba(6, 5, 18, .78); }
.playhub-confirm-modal__dialog { border-color: var(--line-strong); color: var(--text); background: var(--surface); box-shadow: 0 28px 90px rgba(0, 0, 0, .6); }
.playhub-confirm-modal__dialog h2 { color: #fff; }
.playhub-confirm-modal__dialog p { color: var(--muted); }
.playhub-confirm-modal__kicker { color: var(--purple); }
.playhub-confirm-modal__close,
.playhub-confirm-modal__button { border-color: var(--line-strong); color: var(--muted-strong); background: var(--surface-2); }
.playhub-confirm-modal__close:hover,
.playhub-confirm-modal__close:focus-visible,
.playhub-confirm-modal__button:hover,
.playhub-confirm-modal__button:focus-visible { border-color: var(--purple); color: #fff; background: rgba(168, 85, 255, .2); }
.playhub-confirm-modal__button--confirm,
.playhub-confirm-modal__button--confirm:hover,
.playhub-confirm-modal__button--confirm:focus-visible { border-color: transparent; color: #fff; background: var(--brand-grad) border-box; box-shadow: 0 10px 23px rgba(124, 77, 255, .35); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .site-header { width: min(calc(100% - 24px), var(--max)); padding-right: 10px; padding-left: 16px; }
    .hero {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-template-areas:
            "stream"
            "copy"
            "events";
        padding-top: 28px;
    }
    .schedule-row { grid-template-columns: 70px minmax(0, 1fr) 110px; }
}
@media (max-width: 720px) {
    .site-header { top: 8px; margin-top: 8px; padding: 8px 8px 8px 14px; border-radius: 16px; }
    .brand-logo { height: 50px; margin: -8px 0; }
    .next-stream-card { padding: 20px 18px; }
    .next-stream-card .next-date { margin-top: 18px; }
    .next-date strong { font-size: 24px; }
    body.video-submit-body .video-submit-hero { grid-template-columns: 1fr; margin-top: 24px; padding: 24px 20px; border-radius: 22px; }
    body.video-submit-body .video-submit-hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
    body.video-submit-body .video-submit-hero p { font-size: 14px; }
    .video-submit-hero-icon { display: none; }
    .about-section { padding-top: 70px; }
    .site-header .main-nav.is-open {
        top: calc(100% + 8px);
        border-color: var(--line);
        border-radius: 16px;
        background: var(--surface);
        box-shadow: var(--shadow);
    }
    .main-nav.is-open a { color: var(--muted-strong); }
    .main-nav.is-open .main-nav-link--accent { justify-content: center; margin: 6px 0 0; }
    .next-stream-card, .hero-copy { border-radius: 22px; }
    .hero h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); letter-spacing: -.03em; }
    .schedule-list--full { padding: 16px 14px 12px; border-radius: 18px; }
    .schedule-list--full .schedule-view-tabs { max-width: none; }
    .schedule-row { grid-template-columns: 58px minmax(0, 1fr) 74px; }
    .schedule-row--active::before { left: -14px; }
    .schedule-time strong { font-size: 12px; }
    .calendar-weekdays, .calendar-grid { gap: 3px; }
    .calendar-weekdays { font-size: 9px; }
    .calendar-day { min-height: 64px; padding: 5px 3px; border-radius: 8px; }
    .calendar-day-number { font-size: 11px; }
    .calendar-day-items { max-height: 44px; }
    .calendar-item, button.calendar-item { padding: 2px 3px; border-radius: 4px; font-size: 8px; }
    .calendar-item-time { display: none; }
    .calendar-item-title { margin-top: 0; font-size: 8px; }
}

/* ---------- Privacy + Terms pages ---------- */
.legal-prose { margin-top: 18px; max-width: 860px; }
.legal-prose h2 { margin: 28px 0 10px; color: #fff; font-size: 1.15rem; letter-spacing: -.01em; }
.legal-prose .legal-prose-section:first-child h2 { margin-top: 0; }
.legal-prose p, .legal-prose li { color: var(--text); font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
.legal-prose p { margin: 0 0 12px; }
.legal-prose ul { margin: 0 0 12px; padding-left: 1.3em; }
.legal-prose li { margin-bottom: 6px; }
.legal-prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }
.legal-prose a:hover, .legal-prose a:focus-visible { color: #fff; }
.legal-prose code { padding: 1px 5px; border-radius: 6px; background: var(--surface-3); font-size: 12px; overflow-wrap: anywhere; }
.legal-prose .legal-date { margin-top: 24px; text-align: left; }
.legal-lang-switch { display: flex; gap: 8px; margin-top: 20px; }
.legal-lang-switch a { padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted-strong); background: var(--surface-2); font-size: 12px; font-weight: 700; text-decoration: none; }
.legal-lang-switch a:hover, .legal-lang-switch a:focus-visible { border-color: var(--purple); color: #fff; }
.legal-lang-switch a.is-active { border-color: var(--purple); color: #fff; background: rgba(168, 85, 255, .22); }

/* Mobile schedule row: full-width wrapping title, time under it, platform links in one row */
@media (max-width: 720px) {
    .schedule-row {
        grid-template-columns: 58px minmax(0, 1fr);
        grid-template-areas:
            "date title"
            "date time"
            "links links";
        align-items: center;
        column-gap: 12px;
        row-gap: 4px;
    }
    .schedule-row .schedule-main { display: contents; }
    .schedule-row .schedule-date { grid-area: date; }
    .schedule-row .schedule-title-line { grid-area: title; align-self: end; }
    .schedule-row .schedule-main h3 {
        overflow: visible;
        font-size: 15px;
        line-height: 1.25;
        text-overflow: clip;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .schedule-row .schedule-time { grid-area: time; align-self: start; text-align: left; }
    .schedule-row .schedule-time strong { white-space: nowrap; }
    .schedule-row .stream-links { grid-area: links; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
    .schedule-row .stream-link { flex: 1 1 auto; justify-content: center; min-width: 0; padding: 6px 8px; font-size: 11px; }
}

/* Special schedule states: cancelled show, stream break, other notice */
.stream-notices { display: grid; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.stream-notice { display: flex; align-items: flex-start; gap: 9px; padding: 10px 12px; border: 1px solid rgba(255, 176, 74, .45); border-radius: 12px; background: rgba(255, 176, 74, .14); color: #fff; font-size: 12px; line-height: 1.45; }
.stream-notice > i { margin-top: 2px; color: #ffb04a; }
.stream-notice--break { border-color: rgba(124, 196, 255, .5); background: rgba(124, 196, 255, .14); }
.stream-notice--break > i { color: #7cc4ff; }
.stream-notice--other { border-color: rgba(201, 168, 255, .5); background: rgba(201, 168, 255, .14); }
.stream-notice--other > i { color: #c9a8ff; }
.schedule-special-badge { flex: none; padding: 3px 8px; border-radius: 999px; background: rgba(255, 176, 74, .2); color: #ffb04a; font-size: 10px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.schedule-special-badge--break { background: rgba(124, 196, 255, .2); color: #7cc4ff; }
.schedule-special-badge--other { background: rgba(201, 168, 255, .2); color: #c9a8ff; }
.schedule-row--special .schedule-main h3,
.schedule-row--special .schedule-time strong { opacity: .7; }
.schedule-row--cancelled .schedule-main h3,
.schedule-row--cancelled .schedule-time strong { text-decoration: line-through; }
.calendar-item--special { opacity: .7; border-style: dashed; }
.stream-modal-notice { margin: 18px 0 16px; padding: 10px 12px; border: 1px solid rgba(255, 176, 74, .45); border-radius: 12px; background: rgba(255, 176, 74, .14); font-weight: 700; }
.stream-modal-notice[hidden] { display: none; }
.stream-modal-notice--break { border-color: rgba(124, 196, 255, .5); background: rgba(124, 196, 255, .14); }
.stream-modal-notice--other { border-color: rgba(201, 168, 255, .5); background: rgba(201, 168, 255, .14); }
@media (max-width: 640px) {
    .schedule-special-badge { padding: 2px 6px; font-size: 9px; }
    .schedule-row .schedule-title-line { flex-wrap: wrap; }
}
.schedule-row--special .stream-links { display: none; }

/* The display rules above would otherwise override the hidden attribute (links of cancelled shows). */
.stream-link[hidden],
.stream-links[hidden] { display: none !important; }
