:root {
    --xmas-frost-bg: #0c1924;
    --xmas-frost-card: #10202e;
    --xmas-ice-border: rgba(148, 210, 238, 0.28);
    --xmas-ice-glow: rgba(125, 211, 252, 0.16);
    --xmas-warm-gold: #f5c85c;
}

/* Moderner Header mit Navigation */
header.top {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px clamp(14px, 3vw, 32px);
    background: linear-gradient(90deg, rgba(13, 27, 39, 0.9) 0%, rgba(11, 14, 19, 0.9) 55%, rgba(18, 34, 48, 0.88) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--xmas-ice-border);
    box-shadow: 0 8px 26px rgba(2, 10, 18, 0.55);
}

/* Logo-Schriftzug ohne Punkt */
header.top .brand {
    position: relative;
    display: inline-flex;
    align-items: baseline;
    padding: 4px 2px;
    font-size: clamp(1.15rem, 1.8vw, 1.52rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.025em;
    text-decoration: none;
    color: #ffffff;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

header.top .brand::before {
    content: none;
}

header.top .brand span {
    color: var(--xmas-warm-gold);
    font-weight: 700;
}

header.top .brand:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

/* Navigationsleiste */
header.top nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

header.top nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.86);
    background: transparent;
    border: 1px solid transparent;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

header.top nav a:hover {
    color: #e0f2fe;
    background: rgba(125, 211, 252, 0.14);
    border-color: rgba(125, 211, 252, 0.34);
    transform: translateY(-1px);
}

header.top nav a:active {
    transform: translateY(0);
}

header.top nav a:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Hervorhebung für Login-Bereich im Header */
header.top nav #acct a {
    padding: 7px 14px;
    color: #171204;
    background: linear-gradient(135deg, var(--xmas-warm-gold), #e2ad3b);
    border-color: var(--xmas-warm-gold);
}

header.top nav #acct a:hover {
    color: #171204;
    background: linear-gradient(135deg, var(--xmas-warm-gold), #e2ad3b);
    border-color: var(--xmas-warm-gold);
    filter: brightness(1.08);
}

@media (max-width: 760px) {
    header.top {
        padding: 10px 12px;
        gap: 10px;
    }

    header.top nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
    }

    header.top nav::-webkit-scrollbar {
        display: none;
    }

    header.top nav a,
    header.top nav #acct a {
        padding: 6px 10px;
        font-size: 0.85rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
}

#acct3 { display: contents; }

.stage {
    padding: 56px 0 36px;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(56, 189, 248, 0.14), transparent 55%),
        radial-gradient(ellipse at 82% 24%, rgba(245, 200, 92, 0.10), transparent 50%);
}
.stage .w { display: flex; gap: clamp(28px, 6vw, 80px); align-items: center; justify-content: center; flex-wrap: wrap; }

.disc {
    width: clamp(200px, 28vw, 320px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: repeating-radial-gradient(circle, #101010 0 3px, #1e1e1e 3px 5px);
    border: 3px solid #000;
    box-shadow:
        0 0 0 3px rgba(186, 230, 253, 0.45),
        0 0 0 7px rgba(14, 35, 52, 0.75),
        0 22px 60px rgba(0, 0, 0, 0.75),
        0 0 65px var(--xmas-ice-glow);
    display: grid;
    place-items: center;
}
.disc i {
    width: 34%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, #0a0a0a 0 7%, var(--gold) 8% 100%);
    box-shadow: inset 0 0 0 4px #000;
}
.disc.spin { animation: sp 6s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

.now { flex: 1; min-width: 260px; max-width: 560px; }
.tag {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #bae6fd;
    background: rgba(15, 34, 50, 0.55);
    border: 1px dashed rgba(186, 230, 253, 0.42);
    border-radius: 999px;
    padding: 5px 14px;
}
.dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
    animation: p 1.4s infinite;
}
@keyframes p { 50% { opacity: .25; } }

.now h1 { font: italic 700 clamp(36px, 6vw, 64px)/1.05 Georgia, serif; margin: 14px 0 4px; color: #fff; }
.dj { margin: 0; color: var(--gold); font-size: 18px; }
.song { margin: 10px 0 22px; color: var(--mute); min-height: 1.6em; }

.go, .btn {
    display: inline-block;
    border-radius: 999px;
    padding: 12px 26px;
    font: 600 16px inherit;
    border: 2px solid var(--xmas-warm-gold);
    cursor: pointer;
    text-decoration: none;
    margin: 4px 6px 4px 0;
}
.go, .p {
    background: linear-gradient(135deg, var(--xmas-warm-gold), #e2ad3b);
    border-color: var(--xmas-warm-gold);
    color: #171204;
}
.s {
    background: transparent;
    border-color: rgba(186, 230, 253, 0.42);
    color: #e0f2fe;
}
.s:hover {
    border-color: #7dd3fc;
    background: rgba(125, 211, 252, 0.1);
}
.p:hover, .go:hover { color: #171204; filter: brightness(1.1); }

h2 { font: italic 700 30px Georgia, serif; color: var(--gold); margin: 0 0 6px; text-align: center; }
h2:after { content: ""; display: block; border-bottom: 2px dashed var(--gold2); margin: 10px auto 0; width: min(320px, 70%); }

section.w { padding: 34px 20px; }
.sub { color: var(--mute); text-align: center; margin: 10px 0 22px; }

#sl { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x proximity; }
.slot {
    flex: none;
    min-width: 220px;
    scroll-snap-align: start;
    background: linear-gradient(165deg, rgba(16, 32, 46, 0.84) 0%, var(--card) 62%);
    border: 2px dashed var(--xmas-ice-border);
    border-radius: 18px;
    padding: 16px 18px;
}
.slot:hover { border-color: rgba(125, 211, 252, 0.55); }
.slot .h { display: block; color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; }
.slot b { display: block; font-size: 18px; margin-top: 6px; }
.slot small { display: block; color: var(--mute); }
.slot.on { border-style: solid; border-color: #38bdf8; box-shadow: 0 0 22px rgba(56, 189, 248, 0.24); }
.slot.on::after {
    content: "ON AIR";
    display: inline-block;
    margin: 8px 0 0;
    font-size: 11px;
    font-weight: 700;
    color: var(--red);
    border: 1px solid var(--red);
    padding: 1px 7px;
    border-radius: 4px;
}

.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 0 0 22px; }
.tile {
    display: block;
    text-align: center;
    background: linear-gradient(165deg, rgba(16, 32, 46, 0.84) 0%, var(--card) 62%);
    border: 2px dashed var(--xmas-ice-border);
    border-radius: 18px;
    padding: 20px 12px;
    color: var(--tx);
    text-decoration: none;
    font-weight: 700;
}
.tile:hover { border-color: rgba(125, 211, 252, 0.55); color: var(--gold); }
.tile span { display: block; font-size: 30px; }

.acc { text-align: center; }
.g { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 22px; }
.c {
    background: linear-gradient(165deg, rgba(16, 32, 46, 0.84) 0%, var(--card) 62%);
    border: 2px dashed var(--xmas-ice-border);
    border-radius: 18px;
    padding: 18px;
}
.c h3 { margin: 2px 0 6px; color: #fff; }
.c p { margin: 0; color: var(--mute); font-size: 14px; }
.t { font-size: 12px; color: var(--gold); letter-spacing: .06em; text-transform: uppercase; }
.sb q { display: block; font-style: normal; }
.sb small { color: var(--mute); }

footer { text-align: center; color: var(--mute); font-size: 14px; padding: 26px 20px; }
footer a { margin: 0 8px; }

.disc i.has { width: 54%; background-size: cover; background-position: center; box-shadow: inset 0 0 0 4px #000, 0 0 18px rgba(0, 0, 0, .6); }
.hi { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: 8px; border: 2px solid var(--gold2); }
.slot img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; float: right; border: 2px solid var(--gold2); }
.main { display: flex; flex-wrap: wrap; gap: clamp(28px, 6vw, 80px); align-items: center; justify-content: center; flex: 1 1 100%; }
.comm .acc { text-align: left; }
.side { flex: 1 1 100%; width: 100%; max-width: 1180px; }
.side h2 { font-size: 24px; text-align: left; }
.side h2:after { margin-left: 0; }
.side .sub { text-align: left; margin: 6px 0 14px; }

#mm-todo-open {
    margin: 24px auto 0;
    max-width: 960px;
    text-align: left;
    background: linear-gradient(165deg, rgba(16, 32, 46, 0.84) 0%, var(--card) 62%);
    border: 2px dashed var(--xmas-ice-border);
    border-radius: 18px;
    padding: 18px 20px;
}
.mm-td-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: 14px;
    border-bottom: 1px dashed var(--gold2);
}
.mm-td-head h3 { margin: 0; font: italic 700 22px Georgia, serif; color: var(--gold); }
.mm-td-group { margin-bottom: 16px; }
.mm-td-group:last-child { margin-bottom: 0; }
.mm-td-list-title {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 8px;
}
.mm-td-list-title small { color: var(--mute); font-weight: 400; }

.mm-td-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #0f0f0f;
    border: 1px solid #2b240b;
    border-left: 4px solid var(--gold2);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 8px;
    transition: opacity .25s ease, transform .25s ease;
}
.mm-td-item:last-child { margin-bottom: 0; }
.mm-td-item.prio-2 { border-left-color: var(--gold); }
.mm-td-item.prio-3 { border-left-color: var(--red); }
.mm-td-item.finishing { opacity: 0; transform: translateX(12px); }

.mm-td-chk { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--gold); cursor: pointer; flex: none; }
.mm-td-chk:disabled { cursor: not-allowed; opacity: .45; }
.mm-td-body { flex: 1; min-width: 0; }
.mm-td-text { display: block; color: var(--tx); font-size: 15px; white-space: pre-line; }
.mm-td-meta { display: block; font-size: 12px; color: var(--mute); margin-top: 2px; }
.mm-td-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 999px;
    margin-left: 6px;
    border: 1px solid var(--gold2);
    color: var(--gold);
}
.mm-td-badge.p3 { border-color: var(--red); color: #ff8a80; }
.mm-td-err { color: #ff8a80; font-size: 13px; margin-top: 8px; }

.pm-toast {
    position: fixed;
    right: 20px;
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    width: min(92vw, 390px);
    background: linear-gradient(155deg, #1b1708 0%, #121212 100%);
    border: 1px solid var(--gold);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .75), 0 0 24px rgba(255, 210, 31, .18);
    border-radius: 16px;
    padding: 15px 16px;
    opacity: 0;
    transform: translateY(16px) scale(.98);
    transition: opacity .25s ease, transform .25s ease;
}
.pm-toast.show { opacity: 1; transform: translateY(0) scale(1); }
.pm-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.pm-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gold);
}
.pm-close { background: none; border: 0; color: var(--mute); font-size: 18px; line-height: 1; cursor: pointer; padding: 2px 6px; }
.pm-close:hover { color: #fff; }
.pm-subj { font-weight: 700; font-size: 15px; color: #fff; margin: 0 0 4px; }
.pm-from { font-size: 12px; color: var(--gold); margin: 0 0 6px; }
.pm-prev { font-size: 13px; color: var(--mute); margin: 0 0 12px; line-height: 1.45; }
.pm-act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pm-act .btn { padding: 6px 14px; font-size: 13px; margin: 0; }

.pm-badge {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 999px;
    margin-left: 6px;
    vertical-align: middle;
}

@media (min-width: 1100px) {
    .stage { padding: 40px 0 28px; }
    .stage .w { flex-wrap: wrap; max-width: 1380px; gap: 28px 44px; align-items: center; }
    .main { flex: 1 1 0; min-width: 0; flex-wrap: nowrap; justify-content: flex-start; }
    .disc { width: clamp(180px, 18vw, 250px); flex: none; }
    .now { min-width: 0; }
    .side { flex: 0 0 350px; width: 350px; }
    .side #sl { flex-direction: column; overflow: visible; padding: 0; gap: 10px; }
    .side .slot { min-width: 0; padding: 12px 16px; }
    .side .slot b { font-size: 16px; margin-top: 2px; }
    .side .slot img { width: 40px; height: 40px; }
}

@media (min-width: 1100px) {
    .comm { flex: 1 1 100%; width: 100%; max-width: 1380px; }
}

@media (min-width: 1320px) {
    .stage .w { flex-wrap: nowrap; max-width: 1560px; gap: 40px; }
    .main { gap: 32px; }
    .disc { width: clamp(150px, 13vw, 200px); }
    .side, .comm { flex: 0 0 330px; width: 330px; }
    .comm .tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
    .comm .tile { padding: 14px 8px; font-size: 14px; }
    .comm .tile span { font-size: 24px; }
    .comm .btn { padding: 10px 18px; font-size: 15px; }
    .now h1 { font-size: clamp(34px, 3.6vw, 52px); }
}

#mm { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; }
.avw { display: inline-block; margin: 4px 14px 4px 0; line-height: 0; }
.ava {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
    box-shadow: 0 0 0 3px #000, 0 0 0 5px var(--gold2), 0 0 20px rgba(255, 210, 31, .35);
    display: block;
    transition: transform .2s;
}
.avw:hover .ava { transform: scale(1.06); }
.ava.ph {
    display: grid;
    place-items: center;
    background: radial-gradient(circle, #3a2c00, #0a0a0a);
    color: var(--gold);
    font: 700 28px Georgia, serif;
}

.more { margin: 10px 0 0; text-align: left; }
.more a { color: var(--gold); }
#spview { padding: 22px 18px 36px; max-width: 1180px; margin: 0 auto; }
.back { margin: 0 0 16px; }
.back a { color: var(--gold); text-decoration: none; font-weight: 700; }

#spview .pf-shell, #spview .ep-shell, #spview .pm-shell, #spview .mb-shell { color: var(--tx); }
#spview .headbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px dashed var(--gold2);
}
#spview .headbar h1 { margin: 0; font: italic 700 30px Georgia, serif; color: var(--gold); }
#spview .headbar h2 { margin: 0; font: italic 700 22px Georgia, serif; color: var(--gold); text-align: left; }
#spview .headbar h2:after { display: none; }
#spview .pf-meta, #spview .ep-meta, #spview .pm-meta, #spview .mb-meta { font-size: 13px; color: var(--mute); }
#spview .pm-tabs, #spview .mb-tabs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

#spview .pf-card, #spview .ep-card, #spview .pm-card, #spview .mb-card {
    background: var(--card);
    border: 2px dashed var(--gold2);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 20px;
}
#spview .ep-intro { text-align: center; color: var(--mute); margin: 0 0 18px; font-size: 14px; }
#spview .ep-msg {
    background: #1b1708;
    border: 1px solid var(--gold2);
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 14px;
}
#spview .ep-verify {
    background: #1b1708;
    border: 1px dashed var(--gold);
    border-radius: 14px;
    padding: 12px 16px;
    margin: 0 auto 18px;
    max-width: 680px;
    text-align: center;
    font-size: 14px;
}
#spview .pm-alert { border-radius: 14px; padding: 12px 16px; margin-bottom: 16px; font-size: 14px; }
#spview .pm-alert.ok { background: #162212; border: 1px solid #4caf50; color: #c8e6c9; }
#spview .pm-alert.err { background: #261111; border: 1px solid var(--red); color: #ff8a80; }

#spview .pm-field { margin-bottom: 14px; }
#spview .pm-field label { display: block; font-size: 13px; color: var(--gold); margin-bottom: 5px; font-weight: 600; }
#spview .pm-field input[type="text"], #spview .pm-field textarea {
    width: 100%;
    background: #0d0d0d;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--tx);
    padding: 9px 12px;
    font: inherit;
    font-size: 14px;
}
#spview .pm-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
#spview .pm-form.inline { display: inline-flex; gap: 6px; margin: 0; }

#spview .pm-read-head { padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px dashed #3a2e08; }
#spview .pm-read-body { font-size: 15px; line-height: 1.65; white-space: normal; word-break: break-word; }

#spview .pm-table-wrap, #spview .mb-table-wrap { width: 100%; overflow-x: auto; }
#spview .pm-table, #spview .mb-table { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
#spview .pm-table th, #spview .mb-table th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--gold);
    text-align: left;
    padding: 4px 12px;
}
#spview .mb-table th.mb-col-center, #spview .mb-table td.mb-col-center { text-align: center; }
#spview .pm-table td, #spview .mb-table td {
    background: #0e0e0e;
    border-top: 1px solid #2b240b;
    border-bottom: 1px solid #2b240b;
    padding: 11px 12px;
    font-size: 14px;
    vertical-align: middle;
}
#spview .pm-table td:first-child, #spview .mb-table td:first-child { border-left: 3px solid var(--gold2); border-radius: 12px 0 0 12px; }
#spview .pm-table td:last-child, #spview .mb-table td:last-child { border-right: 1px solid #2b240b; border-radius: 0 12px 12px 0; white-space: nowrap; }
#spview .pm-table tr.alt td, #spview .mb-table tr.alt td { background: #131109; }
#spview .pm-table tr.unread td:first-child { border-left-color: var(--gold); }
#spview .pm-empty, #spview .mb-empty { text-align: center; padding: 24px 14px; color: var(--mute); margin: 0; }
#spview .mb-user-link { font-weight: 700; color: var(--gold); }
#spview .mb-tag-self {
    display: inline-block;
    background: rgba(255, 210, 31, .16);
    border: 1px solid var(--gold2);
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 999px;
    margin-left: 8px;
}
#spview .mb-level {
    display: inline-block;
    background: #171408;
    border: 1px solid var(--line);
    color: var(--tx);
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 999px;
}
#spview .mb-muted { color: var(--mute); }

#spview .mb-alpha-wrap {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed #3a2e08;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
}
#spview .mb-alpha-all {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--gold2);
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
#spview .mb-alpha-all.active, #spview .mb-alpha-all:hover { background: var(--gold); color: #1a1400; border-color: var(--gold); }
#spview .mb-alpha-grid { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; }
#spview .mb-alpha-key {
    display: inline-grid;
    place-items: center;
    min-width: 30px;
    height: 30px;
    padding: 0 6px;
    border-radius: 8px;
    background: #0e0e0e;
    border: 1px solid #2b240b;
    color: var(--tx);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
#spview .mb-alpha-key.active, #spview .mb-alpha-key:hover { background: var(--gold); color: #1a1400; border-color: var(--gold); }

#spview .mb-pager { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; }
#spview .mb-page-num {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid var(--gold2);
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
#spview .mb-page-num.active, #spview .mb-page-num:hover { background: var(--gold); color: #1a1400; border-color: var(--gold); }

#spview .pf-body, #spview .ep-body { font-size: 14px; line-height: 1.6; overflow-x: auto; }
#spview .pf-body table, #spview .ep-body table { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
#spview .pf-body td, #spview .pf-body th, #spview .ep-body td, #spview .ep-body th {
    padding: 9px 12px;
    background: #0e0e0e;
    border-top: 1px solid #2b240b;
    border-bottom: 1px solid #2b240b;
    vertical-align: top;
}
#spview .pf-body tr td:first-child, #spview .pf-body tr th:first-child, #spview .ep-body tr td:first-child, #spview .ep-body tr th:first-child {
    border-left: 3px solid var(--gold2);
    border-radius: 10px 0 0 10px;
    color: var(--gold);
    font-weight: 600;
}
#spview .pf-body tr td:last-child, #spview .pf-body tr th:last-child, #spview .ep-body tr td:last-child, #spview .ep-body tr th:last-child {
    border-right: 1px solid #2b240b;
    border-radius: 0 10px 10px 0;
}
#spview .pf-body img, #spview .ep-body img { max-width: 100%; height: auto; border-radius: 10px; }

#spview .pf-body input[type="text"], #spview .pf-body input[type="password"], #spview .pf-body select, #spview .pf-body textarea,
#spview .ep-body input[type="text"], #spview .ep-body input[type="password"], #spview .ep-body input[type="email"], #spview .ep-body select, #spview .ep-body textarea {
    background: #0d0d0d;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--tx);
    padding: 7px 10px;
    font: inherit;
    font-size: 13px;
    max-width: 100%;
}
#spview .pf-body input[type="submit"], #spview .pf-body button,
#spview .ep-body input[type="submit"], #spview .ep-body button {
    border-radius: 999px;
    padding: 7px 18px;
    font: 600 13px inherit;
    border: 2px solid var(--gold);
    background: var(--gold);
    color: #1a1400;
    cursor: pointer;
}

#spview .pf-group-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px dashed #3a2e08;
    font-size: 16px;
}
#spview .pf-table-wrap { width: 100%; overflow-x: auto; }
#spview .pf-table { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
#spview .pf-table th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--gold);
    text-align: left;
    padding: 4px 12px;
}
#spview .pf-table td {
    background: #0e0e0e;
    border-top: 1px solid #2b240b;
    border-bottom: 1px solid #2b240b;
    padding: 10px 12px;
    font-size: 14px;
    vertical-align: middle;
}
#spview .pf-table td:first-child { border-left: 3px solid var(--gold2); border-radius: 12px 0 0 12px; }
#spview .pf-table td:last-child { border-right: 1px solid #2b240b; border-radius: 0 12px 12px 0; white-space: nowrap; }
#spview .pf-row-alt td { background: #131109; }
#spview .pf-empty { text-align: center; padding: 24px 14px; color: var(--mute); }
#spview .btn.sm { padding: 6px 14px; font-size: 13px; }

@media (max-width: 560px) {
    .slot { min-width: 190px; }
}

dialog {
    border: 1px solid var(--line);
    border-bottom: 4px solid var(--ac);
    border-radius: 6px;
    background: var(--card);
    color: var(--tx);
    padding: 22px;
    width: min(92vw, 380px);
}
dialog::backdrop { background: rgba(0, 0, 0, .65); }
dialog h3 { margin: 0 0 4px; font-size: 20px; }
dialog label { display: block; margin: 12px 0 0; font-size: 13px; color: var(--mute); }
dialog input[type=text], dialog input[type=password] {
    width: 100%;
    margin-top: 4px;
    padding: 10px 12px;
    border-radius: 4px;
    border: 1px solid var(--line);
    background: #0b0b3a;
    color: #fff;
    font: inherit;
}
dialog .ck { display: flex; gap: 8px; align-items: center; }

.ac { display: flex; gap: 8px; margin-top: 16px; }
.ac button { margin: 0; cursor: pointer; font: inherit; font-weight: 600; border: 1px solid var(--line); }
.ac .p { border-color: var(--ac); }
.lk { margin: 14px 0 0; font-size: 13px; text-align: center; }
.ib.in { transform: none; }
.ib img { border-radius: 10px; flex: none; }
.ib .it { flex: 1; min-width: 150px; }
.ib .it b { display: block; }
.ib .it small { color: var(--mute); font-size: 12px; display: block; }
.is { margin-top: 8px; font-size: 13px; line-height: 1.5; }
.ib .btn { margin: 0; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
#ix { background: none; border: 0; color: var(--mute); font-size: 20px; cursor: pointer; padding: 6px; }

@media (min-width: 700px) {
    .ib { left: auto; right: 20px; max-width: 420px; }
}
.ib { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }

/* Player-Leiste im frostigen Abend-Look */
.bar {
    background: linear-gradient(90deg, rgba(13, 27, 39, 0.95) 0%, rgba(12, 15, 20, 0.96) 55%, rgba(18, 34, 48, 0.94) 100%);
    border-top: 1px solid var(--xmas-ice-border);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.58);
}

.bar #pb {
    background: linear-gradient(135deg, var(--xmas-warm-gold), #e2ad3b);
    border-color: var(--xmas-warm-gold);
    color: #171204;
}

.bar #pd {
    color: #bae6fd;
}

.bar #pv {
    accent-color: #7dd3fc;
}

/* Schneeflocken nur aktiv, wenn body die Klasse .snow-on hat */
body.snow-on::before,
body.snow-on::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    background-repeat: repeat;
    will-change: transform;
    backface-visibility: hidden;
    contain: strict;
}

body.snow-on::before {
    background-image:
        radial-gradient(2.5px 2.5px at 75px 90px, rgba(224, 242, 254, 0.70) 50%, transparent 55%),
        radial-gradient(3px 3px at 245px 230px, rgba(255, 255, 255, 0.62) 50%, transparent 55%),
        radial-gradient(2.2px 2.2px at 390px 140px, rgba(186, 230, 253, 0.64) 50%, transparent 55%);
    background-size: 460px 460px;
    opacity: 0.58;
    animation: ofSnowFallSlow 18s linear infinite;
}

body.snow-on::after {
    background-image:
        radial-gradient(1.8px 1.8px at 65px 80px, rgba(255, 255, 255, 0.52) 50%, transparent 55%),
        radial-gradient(2px 2px at 195px 245px, rgba(186, 230, 253, 0.48) 50%, transparent 55%),
        radial-gradient(1.6px 1.6px at 305px 135px, rgba(255, 255, 255, 0.50) 50%, transparent 55%);
    background-size: 360px 360px;
    opacity: 0.42;
    animation: ofSnowFallFast 12s linear infinite;
}

@keyframes ofSnowFallSlow {
    from {
        transform: translate3d(0, -460px, 0);
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes ofSnowFallFast {
    from {
        transform: translate3d(0, -360px, 0);
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.snow-on::before,
    body.snow-on::after {
        animation: none;
        opacity: 0.25;
    }
}