/* ── Fonts ────────────────────────────────────────────────────────────────── */
@font-face {
    font-family: 'Comfortaa';
    src: url('../fonts/Comfortaa/Comfortaa-VariableFont_wght.ttf') format('truetype');
}

/* ── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

/* ── Body ─────────────────────────────────────────────────────────────────── */
body {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    height: 100vh;
    overflow: hidden;
    padding: 1em;
    padding-bottom: .5em;
    font-family: 'Comfortaa', sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .4em;
}

/* ── Keyframes ────────────────────────────────────────────────────────────── */
@keyframes gradient {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes bounce-in {
    0%   { transform: scale(0.5); opacity: 0; }
    60%  { transform: scale(1.05); }
    80%  { transform: scale(0.97); }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes wiggle {
    0%,100% { transform: rotate(-4deg); }
    50%      { transform: rotate(4deg); }
}
@keyframes float {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-7px); }
}
@keyframes pop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.2); }
    100% { transform: scale(1); }
}
@keyframes slide-in {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes progress-stripe {
    from { background-position: 40px 0; }
    to   { background-position: 0 0; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Traffic light pulse keyframes */
@keyframes dot-pulse-red    { 0%,100%{box-shadow:0 0 0 0 #ff5f5766} 50%{box-shadow:0 0 0 5px #ff5f5700} }
@keyframes dot-pulse-yellow { 0%,100%{box-shadow:0 0 0 0 #ffbd2e66} 50%{box-shadow:0 0 0 5px #ffbd2e00} }
@keyframes dot-pulse-green  { 0%,100%{box-shadow:0 0 0 0 #28ca4266} 50%{box-shadow:0 0 0 5px #28ca4200} }
@keyframes dot-pulse-blue   { 0%,100%{box-shadow:0 0 0 0 #4a9eff66} 50%{box-shadow:0 0 0 5px #4a9eff00} }

/* ── macOS Window (main) ─────────────────────────────────────────────────── */
main {
    flex: 1;
    min-height: 0;
    border-radius: 20px;
    background: rgba(255,255,255,.44);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        rgba(17,12,46,.18) 0 32px 80px 0,
        inset 0 1px 0 rgba(255,255,255,.65);
    display: flex;
    flex-direction: column;
}

/* ── Title bar ───────────────────────────────────────────────────────────── */
.sp-titlebar {
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    border-radius: 20px 20px 0 0;
    background: rgba(255,255,255,.22);
    border-bottom: 1px solid rgba(255,255,255,.28);
    position: relative;
    z-index: 1000;
    gap: .5em;
}

/* ── Traffic lights ──────────────────────────────────────────────────────── */
.sp-traffic-lights {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
    z-index: 2;
}

.sp-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    transition: transform .15s, box-shadow .2s;
    flex-shrink: 0;
}
.sp-dot span {
    font-size: 9px;
    color: rgba(0,0,0,.45);
    font-weight: 900;
    opacity: 0;
    line-height: 1;
    transition: opacity .15s;
    user-select: none;
    pointer-events: none;
}
.sp-traffic-lights:hover .sp-dot span { opacity: 1; }
.sp-dot:hover { transform: scale(1.25); }

/* Dot colors */
.sp-dot-red    { background: #ff5f57; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.sp-dot-yellow { background: #ffbd2e; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.sp-dot-green  { background: #28ca42; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.sp-dot-blue   { background: #4a9eff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }

/* Hover glow */
.sp-dot-red:hover    { box-shadow: 0 0 12px 4px #ff5f57; }
.sp-dot-yellow:hover { box-shadow: 0 0 12px 4px #ffbd2e; }
.sp-dot-green:hover  { box-shadow: 0 0 12px 4px #28ca42; }
.sp-dot-blue:hover   { box-shadow: 0 0 12px 4px #4a9eff; }

/* Active = currently on this page → pulsing ring */
.sp-dot-red.sp-dot-active    { animation: dot-pulse-red    2.5s ease-in-out infinite; }
.sp-dot-yellow.sp-dot-active { animation: dot-pulse-yellow 2.5s ease-in-out infinite; }
.sp-dot-green.sp-dot-active  { animation: dot-pulse-green  2.5s ease-in-out infinite; }
.sp-dot-blue.sp-dot-active   { animation: dot-pulse-blue   2.5s ease-in-out infinite; }

/* Dot tooltip below */
.sp-dot::after {
    content: attr(title);
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,.78);
    color: #fff;
    padding: .25em .65em;
    border-radius: 8px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s .12s;
    font-family: 'Comfortaa', sans-serif;
    z-index: 200;
}
.sp-dot:hover::after { opacity: 1; }

/* Title bar center */
.sp-titlebar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: .4em;
    font-family: 'Comfortaa', sans-serif;
    font-size: .86em;
    font-weight: bold;
    color: rgba(255,255,255,.85);
    pointer-events: none;
    white-space: nowrap;
}
.sp-titlebar-center img { animation: float 3s ease-in-out infinite; }
@media(max-width:600px) { .sp-titlebar-center { display: none; } }

/* Title bar right nav */
.sp-titlebar-right {
    display: flex;
    align-items: center;
    gap: .4em;
    z-index: 2;
    flex-shrink: 0;
}
.sp-titlebar-btn {
    display: inline-flex;
    align-items: center;
    gap: .3em;
    padding: .3em .75em;
    border-radius: 50px;
    background: rgba(255,255,255,.2);
    color: rgba(255,255,255,.9);
    text-decoration: none;
    font-size: .78em;
    font-family: 'Comfortaa', sans-serif;
    transition: all .18s;
    border: 1px solid rgba(255,255,255,.22);
    white-space: nowrap;
}
.sp-titlebar-btn:hover {
    background: rgba(255,255,255,.38);
    color: #fff;
    transform: scale(1.04);
}
.sp-titlebar-btn-cta {
    background: linear-gradient(135deg,rgba(231,60,126,.55),rgba(35,166,213,.55));
    border-color: rgba(255,255,255,.3);
}
.sp-titlebar-btn-admin { padding: .3em .55em; }
.sp-titlebar-username { max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
@media(max-width:500px) {
    .sp-titlebar-username { display: none; }
    .sp-titlebar-btn { padding: .3em .5em; font-size: .72em; }
}

/* ── Window body (sidebar + content) ─────────────────────────────────────── */
.sp-window-body {
    flex: 1;
    min-height: 0;
    display: flex;
}

/* ── Sidebar ──────────────────────────────────────────────────────────────── */
sidebar {
    background: rgba(229,229,229,.5);
    border-radius: 0 0 0 20px;
    width: 20%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,.1) transparent;
}
@media(max-width:767px) { sidebar { width: 28%; } }

.sp-sidebar-title {
    padding: .9em 1em .6em;
    font-weight: bold;
    font-size: .76em;
    color: rgba(0,0,0,.38);
    letter-spacing: .07em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: .4em;
    flex-shrink: 0;
}

sidebar ul.creators {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: 'Comfortaa';
    flex: 1;
}
sidebar ul.creators li {
    padding: 1em 1.1em;
    transition: all .18s;
    cursor: pointer;
    color: rgba(0,0,0,.55);
    display: flex;
    align-items: center;
    gap: .6em;
}
sidebar ul.creators li:hover  { background: rgba(255,255,255,.4); }
sidebar ul.creators li.active {
    background: rgba(255,255,255,.5);
    border-right: 3px solid #e73c7e;
}

.creator-list-name {
    padding-left: 2px;
    font-size: .82em;
    line-height: 1.3;
    word-break: break-word;
}
.avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: .28em;
    border-radius: 10px;
    overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: contain; }
svg rect { display: none; }

@media(max-width:767px) {
    sidebar ul.creators li {
        padding: .6em .35em;
        font-size: .68em;
        flex-direction: column;
        gap: .25em;
        text-align: center;
    }
    .creator-list-name { padding: 0; }
    .avatar { width: 32px; height: 32px; }
}

/* ── Content area ─────────────────────────────────────────────────────────── */
content {
    border-radius: 0 0 20px 0;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 1em;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,.1) transparent;
}
content .wrapper { padding: .5em 0; animation: slide-in .3s ease both; }
content h2 {
    font-family: 'Comfortaa';
    font-weight: bold;
    color: rgba(255,255,255,.8);
    margin-bottom: .8em;
}

.main-creator-description {
    background: rgba(0,0,0,.15);
    color: rgba(255,255,255,.85);
    padding: 1em;
    border-radius: 15px;
    margin-bottom: 1.2em;
}
.main-creator-description p { padding: 0; margin: 0; }

/* ── Video grid ───────────────────────────────────────────────────────────── */
.main-creator-videos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1em;
    padding-bottom: 1em;
}
@media(max-width:1100px) { .main-creator-videos { grid-template-columns: repeat(3,1fr); } }
@media(max-width:767px)  { .main-creator-videos { grid-template-columns: repeat(2,1fr); } }

.video-grid-item {
    position: relative;
    background: #000;
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
    height: 180px;
    transition: transform .2s, box-shadow .2s;
}
.video-grid-item img { width:100%; height:100%; object-fit:cover; }
.video-grid-item:hover { transform: scale(1.05); box-shadow: rgb(38,57,77) 0 20px 30px -10px; }
.video-grid-item.sp-bounce-in { animation: bounce-in .4s cubic-bezier(.36,.07,.19,.97) both; }
@media(max-width:767px) { .video-grid-item { height: 100px; } }

.sp-grid-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.75));
    padding: .5em .6em;
    color: #fff;
    font-size: .75em;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-radius: 0 0 16px 16px;
}
.sp-grid-views { font-size: .85em; opacity: .85; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
footer.sp-footer, .sp-footer {
    flex-shrink: 0;
    text-align: right;
    color: rgba(255,255,255,.55);
    font-size: .78em;
    padding: 0 .5em;
    line-height: 1.6em;
}
.sp-footer a {
    color: rgba(255,255,255,.55);
    text-decoration: none;
    margin-left: .9em;
    transition: color .18s;
}
.sp-footer a:hover { color: #fff; }

/* ── Modal (video) ────────────────────────────────────────────────────────── */
.sp-modal-dark .modal-content { background: #0c0c0c; border-radius: 20px; border: 1px solid rgba(255,255,255,.08); }
.sp-modal-dark .modal-header,
.sp-modal-dark .modal-body,
.sp-modal-dark .modal-footer { border: 0; color: #fff; }
.sp-modal-dark .modal-title { font-family: 'Comfortaa'; font-weight: bold; }

.sp-modal-content { background: #fff; border-radius: 20px; }
.sp-modal-content .modal-header,
.sp-modal-content .modal-footer { border: 0; }

.sp-report-modal { background: #fff; border-radius: 20px; }

/* ── Video player ─────────────────────────────────────────────────────────── */
.video-player { max-height: 60vh; border-radius: 12px; display: block; }
.sp-video-detail { padding: .8em 0 0; color: #ddd; }
.sp-video-meta-line { display: flex; gap: 1em; font-size: .85em; color: #aaa; margin-bottom: .5em; }
.video-description { color: #bbb; font-size: .9em; line-height: 1.6; margin: .5em 0; }
.video-description a { color: #23a6d5; text-decoration: none; border-bottom: 1px dotted; }

/* ── Vote buttons ─────────────────────────────────────────────────────────── */
.sp-vote-btn {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    color: #ccc;
    padding: .45em .9em;
    border-radius: 50px;
    cursor: pointer;
    font-size: .9em;
    transition: all .2s;
    font-family: 'Comfortaa';
}
.sp-vote-btn:hover { background: rgba(255,255,255,.18); transform: scale(1.05); }
.sp-vote-btn.active { background: rgba(231,60,126,.25); border-color: #e73c7e; color: #e73c7e; animation: pop .3s ease; }

/* ── AJAX overlay ─────────────────────────────────────────────────────────── */
#ajax-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.32);
    display: none; opacity: 0;
    z-index: 2000;
    transition: opacity .25s ease;
    backdrop-filter: blur(5px);
    pointer-events: none;
}
#ajax-overlay .ajax-overlay-spinner {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%);
}
#ajax-overlay.visible { opacity: 1; pointer-events: all; }

/* ── Welcome placeholder ──────────────────────────────────────────────────── */
.sp-welcome-placeholder {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    flex: 1;
    color: rgba(255,255,255,.75);
    text-align: center;
    animation: slide-in .4s ease;
}
.sp-welcome-logo {
    font-size: 4.5em;
    animation: float 3s ease-in-out infinite;
    margin-bottom: .25em;
}
.sp-welcome-placeholder h2 { font-family: 'Comfortaa'; color: rgba(255,255,255,.85); }

/* ══════════════════════════════════════════════════════════════════════════ */
/* ── STANDALONE WINDOW (auth, contact, static pages) ─────────────────────── */
/* ══════════════════════════════════════════════════════════════════════════ */
body.sp-standalone {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    height: auto;
    min-height: 100vh;
}
.sp-standalone-window {
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 32px 80px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.8);
    animation: bounce-in .42s cubic-bezier(.36,.07,.19,.97);
    overflow: hidden;
}
.sp-standalone-window .sp-titlebar {
    background: rgba(0,0,0,.055);
    border-bottom: 1px solid rgba(0,0,0,.08);
    border-radius: 20px 20px 0 0;
}
.sp-standalone-window .sp-titlebar-center { color: rgba(0,0,0,.6); }
.sp-standalone-window .sp-dot::after { color: #fff; }
.sp-standalone-window .sp-titlebar-btn {
    background: rgba(0,0,0,.07);
    color: rgba(0,0,0,.65);
    border-color: rgba(0,0,0,.1);
}
.sp-standalone-window .sp-titlebar-btn:hover { background: rgba(0,0,0,.12); color: #000; }

.sp-standalone-content { padding: 2em; }

/* Auth forms inside standalone window */
.sp-auth-tabs {
    display: flex; background: #f0f0f0;
    border-radius: 12px; padding: 4px;
    margin-bottom: 1.5em; gap: 4px;
}
.sp-tab {
    flex: 1; padding: .55em; border: none;
    background: transparent; border-radius: 10px;
    cursor: pointer; font-family: 'Comfortaa';
    font-weight: bold; color: #999;
    transition: all .2s; font-size: .88em;
}
.sp-tab.active {
    background: #fff;
    color: #e73c7e;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    animation: pop .2s ease;
}
.sp-tab-panel { display: none; }
.sp-tab-panel.active { display: block; animation: slide-in .3s ease; }
.sp-auth-hint { font-size: .78em; color: #aaa; text-align: center; margin-top: .8em; }
.sp-auth-back { color: rgba(255,255,255,.8); text-decoration: none; font-size: .88em; }
.sp-auth-back:hover { color: #fff; }
.sp-auth-sent-content {
    text-align: center;
    padding: 1em 0;
}
.sp-sent-icon { font-size: 3.5em; animation: wiggle 1s ease-in-out infinite; margin-bottom: .4em; }

/* ══════════════════════════════════════════════════════════════════════════ */
/* ── FULL-PAGE WINDOW (member, admin) ─────────────────────────────────────── */
/* ══════════════════════════════════════════════════════════════════════════ */
.sp-window-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,.1) transparent;
}

/* ══════════════════════════════════════════════════════════════════════════ */
/* ── Form elements ────────────────────────────────────────────────────────── */
/* ══════════════════════════════════════════════════════════════════════════ */
.sp-field { margin-bottom: 1.1em; }
.sp-field label {
    display: block; font-weight: bold;
    margin-bottom: .45em; color: #555;
    font-size: .88em; font-family: 'Comfortaa';
}
.sp-input, .sp-select, .sp-textarea {
    width: 100%; padding: .7em 1em;
    border: 2px solid #e8e8e8; border-radius: 12px;
    font-family: 'Comfortaa'; font-size: .92em;
    transition: border .18s, box-shadow .18s;
    background: #fff; color: #333;
    outline: none; box-sizing: border-box;
}
.sp-input:focus, .sp-select:focus, .sp-textarea:focus {
    border-color: #e73c7e;
    box-shadow: 0 0 0 3px rgba(231,60,126,.15);
}
.sp-textarea { resize: vertical; min-height: 80px; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.sp-btn-primary {
    display: inline-flex; align-items: center; gap: .4em;
    background: linear-gradient(135deg, #e73c7e, #23a6d5);
    color: #fff; border: none;
    padding: .72em 1.6em; border-radius: 50px;
    font-family: 'Comfortaa'; font-weight: bold;
    font-size: .92em; cursor: pointer;
    transition: transform .18s, box-shadow .18s;
    text-decoration: none;
}
.sp-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(231,60,126,.4);
    color: #fff;
}
.sp-btn-primary:active { transform: scale(.97); }
.sp-btn-full { width: 100%; justify-content: center; }
.sp-btn-sm   { padding: .4em 1em; font-size: .84em; }
.sp-btn-xs   { padding: .28em .7em; font-size: .76em; }

.sp-btn-ghost {
    display: inline-flex; align-items: center; gap: .3em;
    background: transparent; color: #555;
    border: 2px solid #ddd; padding: .45em 1.1em;
    border-radius: 50px; font-family: 'Comfortaa';
    font-size: .88em; cursor: pointer; transition: all .18s;
    text-decoration: none;
}
.sp-btn-ghost:hover { background: #f5f5f5; border-color: #bbb; transform: scale(1.03); color: #333; }

.sp-btn-danger {
    display: inline-flex; align-items: center; gap: .3em;
    background: #ff4444; color: #fff; border: none;
    padding: .4em 1em; border-radius: 50px;
    font-family: 'Comfortaa'; font-size: .84em; cursor: pointer;
    transition: all .18s;
}
.sp-btn-danger:hover { background: #cc0000; transform: scale(1.05); }
.sp-btn-danger.sp-btn-xs { padding: .28em .7em; font-size: .76em; }

/* ── Icon buttons (line-icons, square, touch-friendly) ─────────────────── */
.sp-btn-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    padding: 0; border-radius: 14px;
    font-size: 1.25rem; line-height: 1;
    cursor: pointer; flex-shrink: 0;
    transition: all .18s; text-decoration: none;
    background: #fff; color: #555;
    border: 2.5px solid #e5e5e5;
    font-family: inherit;
}
.sp-btn-icon .bi { line-height: 1; }
.sp-btn-icon:hover {
    border-color: #e73c7e; color: #e73c7e;
    transform: scale(1.07);
    box-shadow: 0 4px 14px rgba(231,60,126,.18);
}
.sp-btn-icon:active { transform: scale(.95); }

.sp-btn-icon.sp-btn-primary {
    background: linear-gradient(135deg,#e73c7e,#23a6d5);
    border: none; color: #fff;
}
.sp-btn-icon.sp-btn-primary:hover { color: #fff; box-shadow: 0 6px 18px rgba(231,60,126,.4); }

.sp-btn-icon.sp-btn-danger {
    background: #fff; color: #e83838;
    border: 2.5px solid #ffd5d5;
}
.sp-btn-icon.sp-btn-danger:hover {
    background: #ff4444; color: #fff; border-color: #ff4444;
    box-shadow: 0 4px 14px rgba(255,68,68,.35);
}

.sp-btn-icon.sp-btn-success {
    background: #fff; color: #28a745;
    border: 2.5px solid #c3e6cb;
}
.sp-btn-icon.sp-btn-success:hover {
    background: #28a745; color: #fff; border-color: #28a745;
    box-shadow: 0 4px 14px rgba(40,167,69,.35);
}

.sp-btn-icon.sp-btn-sm { width: 38px; height: 38px; font-size: 1.1rem; border-radius: 12px; }

.sp-btn-icon:disabled, .sp-btn-icon[disabled] {
    opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none !important;
}

/* Inaktiver Kanal/Video: ausgegraut */
.sp-card-inactive { opacity: .65; filter: grayscale(.4); }
.sp-card-inactive:hover { opacity: .85; }

/* Cooldown-Hinweis */
.sp-cooldown {
    display: inline-flex; align-items: center; gap: .35em;
    background: #fff3cd; color: #856404;
    padding: .22em .65em; border-radius: 50px;
    font-size: .76em; font-family: 'Comfortaa'; font-weight: bold;
}

/* Responsive: bigger touch targets on mobile, allow wrapping */
@media (max-width: 600px) {
    .sp-btn-icon { width: 46px; height: 46px; font-size: 1.3rem; }
    .sp-btn-primary, .sp-btn-ghost, .sp-btn-danger {
        font-size: .95em; padding: .65em 1.3em;
    }
    .sp-video-actions, .sp-channel-actions,
    .sp-admin-video-btns, .sp-report-btns { gap: .5em; flex-wrap: wrap; }
    .sp-video-row { flex-wrap: wrap; }
    .sp-video-actions { width: 100%; justify-content: flex-end; }
}

/* ── Alerts ───────────────────────────────────────────────────────────────── */
.sp-alert {
    padding: .9em 1.2em; border-radius: 14px;
    font-family: 'Comfortaa'; font-size: .88em;
    animation: slide-in .28s ease; margin-bottom: .5em;
}
.sp-alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.sp-alert-danger  { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ── Badges ───────────────────────────────────────────────────────────────── */
.sp-badge {
    display: inline-flex; align-items: center;
    padding: .22em .65em; border-radius: 50px;
    font-size: .73em; font-weight: bold; font-family: 'Comfortaa';
}
.sp-badge-ok   { background: #d4edda; color: #155724; }
.sp-badge-warn { background: #fff3cd; color: #856404; }
.sp-badge-err  { background: #f8d7da; color: #721c24; }

/* ══════════════════════════════════════════════════════════════════════════ */
/* ── Member area ────────────────────────────────────────────────────────────── */
/* ══════════════════════════════════════════════════════════════════════════ */
.sp-member-wrap {
    max-width: 1100px; margin: 0 auto;
    padding: 1.2em 1.5em;
    display: flex; flex-direction: column; gap: 1em;
}
.sp-member-tabs {
    display: flex; gap: .4em; flex-wrap: wrap;
    background: rgba(255,255,255,.35); border-radius: 16px; padding: 5px;
}
.sp-member-tabs .sp-tab { color: rgba(255,255,255,.75); background: transparent; }
.sp-member-tabs .sp-tab.active { background: #fff; color: #e73c7e; box-shadow: 0 2px 12px rgba(0,0,0,.1); }
.sp-tab-content { display: none; animation: slide-in .28s ease; }
.sp-tab-content.active { display: block; }

.sp-section-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1em;
}
.sp-section-head h2 { color: rgba(255,255,255,.85); font-family: 'Comfortaa'; margin: 0; }
.sp-empty {
    background: rgba(255,255,255,.25); color: rgba(255,255,255,.8);
    padding: 2em; border-radius: 16px; text-align: center; font-family: 'Comfortaa';
}

.sp-channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px,1fr));
    gap: 1em;
}
.sp-channel-card {
    background: rgba(255,255,255,.9); border-radius: 18px;
    padding: 1.1em; display: flex; flex-direction: column; gap: .6em;
    box-shadow: 0 4px 20px rgba(0,0,0,.07); transition: transform .2s;
}
.sp-channel-card:hover { transform: translateY(-3px); }
.sp-channel-thumb {
    width: 56px; height: 56px; border-radius: 14px; overflow: hidden;
    background: linear-gradient(135deg,#e73c7e,#23a6d5);
}
.sp-channel-thumb img { width:100%; height:100%; object-fit:cover; }
.sp-channel-thumb-placeholder {
    width:100%; height:100%;
    display:flex; align-items:center; justify-content:center;
    font-size:1.7em; font-weight:bold; color:#fff;
}
.sp-channel-info { display:flex; flex-direction:column; gap:.25em; }
.sp-channel-slug { font-size:.76em; color:#999; }
.sp-channel-desc { font-size:.84em; color:#666; margin:0; }
.sp-channel-actions { display:flex; gap:.45em; flex-wrap:wrap; margin-top:.2em; }

.sp-video-list { display:flex; flex-direction:column; gap:.75em; }
.sp-video-row {
    background: rgba(255,255,255,.9); border-radius: 14px;
    display: flex; align-items: center; gap: 1em; padding: .8em 1em;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.sp-video-thumb { width:80px; height:54px; flex-shrink:0; border-radius:9px; overflow:hidden; background:#000; }
.sp-video-thumb img { width:100%; height:100%; object-fit:cover; }
.sp-video-info { flex:1; min-width:0; display:flex; flex-direction:column; gap:.25em; }
.sp-video-meta { display:flex; gap:.6em; flex-wrap:wrap; align-items:center; font-size:.8em; }
.sp-video-actions { display:flex; gap:.35em; flex-shrink:0; }

/* Upload */
.sp-upload-wrap { display:flex; flex-direction:column; gap:1.1em; }
.sp-upload-meta-form {
    background: rgba(255,255,255,.9); border-radius: 18px;
    padding: 1.4em; display: grid;
    grid-template-columns: 1fr 1fr; gap: 1em;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
}
@media(max-width:600px) { .sp-upload-meta-form { grid-template-columns:1fr; } }

.sp-drop-zone {
    background: rgba(255,255,255,.88);
    border: 3px dashed rgba(231,60,126,.55);
    border-radius: 18px; padding: 2.5em 2em;
    text-align: center; transition: all .2s; cursor: pointer;
}
.sp-drop-zone.dragover {
    background: rgba(231,60,126,.08);
    border-color: #e73c7e; transform: scale(1.02);
}
.sp-drop-icon { font-size:3em; animation:float 2.5s ease-in-out infinite; margin-bottom:.3em; }
.sp-drop-text { font-family:'Comfortaa'; font-size:1.05em; font-weight:bold; color:#555; }
.sp-drop-hint { color:#aaa; font-size:.88em; margin:.4em 0; }
.sp-drop-btn { display:inline-flex; cursor:pointer; }
.sp-drop-formats { font-size:.76em; color:#bbb; margin-top:.7em; }

.sp-upload-progress, .sp-upload-progress-card {
    background: rgba(255,255,255,.9); border-radius: 18px;
    padding: 1.4em; display: flex; flex-direction: column; gap: .65em;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
}
.sp-upload-filename { font-weight:bold; font-family:'Comfortaa'; color:#555; word-break: break-word; }
.sp-progress-bar-wrap { height:14px; background:#f0f0f0; border-radius:50px; overflow:hidden; }
.sp-progress-bar {
    height:100%; width:0%;
    background: linear-gradient(90deg,#e73c7e,#23a6d5,#23d5ab);
    background-size:200% 100%;
    animation: gradient 2s linear infinite;
    border-radius:50px; transition: width .3s ease;
}
.sp-progress-info { display:flex; gap:1.5em; font-size:.83em; color:#888; font-family:'Comfortaa'; flex-wrap: wrap; }
.sp-upload-status { font-size:.88em; color:#666; }

/* Split layout: progress card + meta form side-by-side */
.sp-upload-active {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(0, 1.4fr);
    gap: 1em;
    animation: bounce-in .35s cubic-bezier(.36,.07,.19,.97);
}
.sp-upload-active .sp-upload-progress-card { align-self: start; }
.sp-upload-active .sp-upload-meta-form {
    display: flex;
    flex-direction: column;
    gap: 1em;
    grid-template-columns: none;
}
.sp-upload-meta-head {
    margin: 0 0 .2em;
    font-family: 'Comfortaa', sans-serif;
    font-size: 1.05em;
    color: #444;
    display: inline-flex;
    align-items: center;
    gap: .4em;
}
.sp-upload-meta-head .ph { color: #e73c7e; }
.sp-upload-save-row {
    display: flex;
    align-items: center;
    gap: 1em;
    margin-top: .3em;
    flex-wrap: wrap;
}
.sp-upload-save-hint {
    font-size: .82em;
    color: #888;
    flex: 1;
    min-width: 180px;
}
#uploadSaveBtn { min-width: 160px; }
#uploadSaveBtn:disabled { opacity: .65; cursor: not-allowed; }
#uploadSaveBtn.is-busy { animation: pop .8s ease-in-out infinite; }

@media (max-width: 800px) {
    .sp-upload-active { grid-template-columns: 1fr; }
}

.sp-upload-done, .sp-upload-error {
    background: rgba(255,255,255,.9); border-radius: 18px;
    padding: 2em; text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
    animation: bounce-in .5s cubic-bezier(.36,.07,.19,.97);
}
.sp-done-icon { font-size:3.5em; animation: wiggle 1s infinite; margin-bottom:.45em; }
.sp-error-icon { font-size:3.5em; margin-bottom:.45em; }

/* ══════════════════════════════════════════════════════════════════════════ */
/* ── Admin area ─────────────────────────────────────────────────────────────── */
/* ══════════════════════════════════════════════════════════════════════════ */
.sp-admin-wrap {
    max-width: 1200px; margin: 0 auto;
    padding: 1.2em 1.5em;
    display: flex; flex-direction: column; gap: 1em;
}
.sp-admin-stats { display:flex; gap:.7em; flex-wrap:wrap; }
.sp-stat-card {
    background: rgba(255,255,255,.9); border-radius: 14px;
    padding: .9em 1.1em; min-width: 110px;
    display: flex; flex-direction: column; gap: .15em;
    box-shadow: 0 2px 10px rgba(0,0,0,.06); flex: 1; transition: transform .2s;
}
.sp-stat-card:hover { transform: translateY(-2px); }
.sp-stat-card.sp-stat-warn { background: linear-gradient(135deg,#fff8e1,#ffe57f55); }
.sp-stat-icon { font-size:1.4em; }
.sp-stat-num  { font-size:1.7em; font-weight:bold; font-family:'Comfortaa'; color:#333; }
.sp-stat-label{ font-size:.76em; color:#888; }

.sp-admin-nav {
    display: flex; gap: .4em; flex-wrap: wrap;
    background: rgba(255,255,255,.3); border-radius: 14px; padding: 5px;
}
.sp-admin-nav-item {
    padding: .45em 1em; border-radius: 10px; text-decoration: none;
    color: rgba(255,255,255,.8); font-family: 'Comfortaa'; font-size: .85em;
    transition: all .18s; display: inline-flex; align-items: center; gap: .35em;
}
.sp-admin-nav-item:hover { background: rgba(255,255,255,.3); color: #fff; }
.sp-admin-nav-item.active { background: rgba(255,255,255,.9); color: #e73c7e; box-shadow: 0 2px 8px rgba(0,0,0,.08); }

.sp-admin-content {
    background: rgba(255,255,255,.9); border-radius: 18px;
    padding: 1.4em; box-shadow: 0 4px 20px rgba(0,0,0,.07);
}
.sp-admin-content h2 { font-family:'Comfortaa'; color:#333; margin-bottom:1em; }
.sp-admin-hint { font-size:.8em; color:#888; background:#f8f9fa; padding:.5em .8em; border-radius:8px; word-break:break-all; margin-bottom:1em; }

.sp-admin-video-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:1em; }
.sp-admin-video-card {
    background: #f8f8f8; border-radius: 14px; overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: 0 2px 10px rgba(0,0,0,.06); transition: transform .2s;
}
.sp-admin-video-card:hover { transform: translateY(-2px); }
.sp-admin-video-thumb { height:130px; overflow:hidden; background:#000; }
.sp-admin-video-thumb img { width:100%; height:100%; object-fit:cover; }
.sp-admin-video-info { padding:.75em 1em; display:flex; flex-direction:column; gap:.25em; flex:1; font-size:.86em; color:#555; }
.sp-admin-video-info strong { color:#222; }
.sp-admin-video-info p { margin:0; color:#777; }
.sp-admin-video-btns { padding:.65em 1em; display:flex; gap:.4em; flex-wrap:wrap; border-top:1px solid #eee; }

.sp-table { width:100%; border-collapse:collapse; font-size:.86em; }
.sp-table th { background:#f0f0f0; padding:.55em .8em; text-align:left; font-family:'Comfortaa'; color:#555; font-size:.84em; }
.sp-table td { padding:.55em .8em; border-bottom:1px solid #f0f0f0; vertical-align:middle; }
.sp-table tr:hover td { background:#f9f9f9; }

.sp-report-list { display:flex; flex-direction:column; gap:.75em; }
.sp-report-card {
    background:#f8f8f8; border-radius:12px; padding:.9em 1em;
    display:flex; gap:1em; align-items:flex-start; flex-wrap:wrap;
}
.sp-report-info { flex:1; display:flex; flex-direction:column; gap:.25em; font-size:.86em; color:#555; }
.sp-report-info strong { color:#222; }
.sp-report-btns { display:flex; gap:.4em; flex-wrap:wrap; }

/* ── Misc ─────────────────────────────────────────────────────────────────── */
.sp-muted { color:#999; font-size:.8em; }
.sp-bounce-in { animation: bounce-in .4s cubic-bezier(.36,.07,.19,.97) both; }
::-webkit-scrollbar { width:5px; height:5px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:rgba(0,0,0,.14); border-radius:3px; }

/* ═══════════════════════════════════════════════════════════════════════════ */
/* ── DESIGN REFRESH · App-feel, modern surfaces, fixed contrast              */
/* ═══════════════════════════════════════════════════════════════════════════ */
:root {
    /* Surfaces */
    --c-surface:        #ffffff;
    --c-surface-2:      #f7f8fc;
    --c-surface-3:      #eef0f7;
    --c-surface-dark:   #1a1d2e;

    /* Text */
    --c-text:           #1a1d2e;
    --c-text-soft:      #4a4f6a;
    --c-text-muted:     #7a8194;
    --c-text-on-dark:   #ffffff;
    --c-text-on-grad:   rgba(255,255,255,.92);

    /* Borders */
    --c-border:         #e8eaf2;
    --c-border-strong:  #cfd3e0;

    /* Brand */
    --c-primary:        #e73c7e;
    --c-primary-soft:   #fde7ef;
    --c-accent:         #23a6d5;
    --c-accent-soft:    #e0f3fb;
    --c-success:        #10b981;
    --c-success-soft:   #d1fae5;
    --c-warn:           #f59e0b;
    --c-warn-soft:      #fef3c7;
    --c-danger:         #ef4444;
    --c-danger-soft:    #fee2e2;

    /* Gradients */
    --grad-brand:       linear-gradient(135deg, #ff5e9c 0%, #e73c7e 50%, #b13edc 100%);
    --grad-accent:      linear-gradient(135deg, #23a6d5 0%, #2476d5 100%);

    /* Shadow tokens (softer, layered) */
    --shadow-xs:  0 1px 2px rgba(17,12,46,.06);
    --shadow-sm:  0 2px 6px rgba(17,12,46,.07);
    --shadow-md:  0 8px 20px rgba(17,12,46,.10);
    --shadow-lg:  0 18px 44px rgba(17,12,46,.14);
    --shadow-glow:0 8px 24px rgba(231,60,126,.32);

    /* Radii */
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 26px;
    --r-pill: 999px;
}

/* ── Body: ruhigerer Verlauf, langsamer animiert ───────────────────────── */
body {
    background: linear-gradient(-45deg, #ff8a6a, #e73c7e, #5b9ae8, #2cc5a8);
    background-size: 300% 300%;
    animation: gradient 28s ease infinite;
}

/* ── Main shell: kräftigere weiße Fläche statt durchscheinend ─────────── */
main {
    background: rgba(255,255,255,.78);
    box-shadow:
        0 32px 80px rgba(17,12,46,.20),
        inset 0 1px 0 rgba(255,255,255,.8);
}

/* ── Headings IN Cards/Content: dunkel, lesbar ────────────────────────── */
content h2,
.sp-section-head h2,
.sp-welcome-placeholder h2,
.sp-welcome-placeholder {
    color: var(--c-text);
}
.sp-welcome-placeholder { color: var(--c-text-soft); }
content h2 { font-weight: 700; letter-spacing: -.01em; font-size: 1.45em; }
.sp-section-head h2 {
    font-weight: 700; letter-spacing: -.01em;
    color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.18);
}

/* Empty-state Karten: solides Surface ──────────────────────────────────── */
.sp-empty {
    background: var(--c-surface);
    color: var(--c-text-soft);
    border: 2px dashed var(--c-border-strong);
    padding: 2.4em 1.4em;
    border-radius: var(--r-lg);
    text-align: center;
    font-family: 'Comfortaa';
    box-shadow: var(--shadow-sm);
}

/* ── BUTTONS · modern, weich, mit Tiefe ───────────────────────────────── */
.sp-btn-primary,
.sp-btn-ghost,
.sp-btn-danger {
    border-radius: var(--r-md);
    font-weight: 700;
    letter-spacing: .01em;
    padding: .85em 1.6em;
    font-size: .94em;
    line-height: 1;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
    will-change: transform;
}
.sp-btn-primary {
    background: var(--grad-brand);
    color: #fff;
    border: none;
    box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255,255,255,.25);
}
.sp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(231,60,126,.42), inset 0 1px 0 rgba(255,255,255,.3);
    color: #fff;
}
.sp-btn-primary:active { transform: translateY(0); }

.sp-btn-ghost {
    background: var(--c-surface);
    color: var(--c-text);
    border: 1.5px solid var(--c-border);
    box-shadow: var(--shadow-xs);
}
.sp-btn-ghost:hover {
    background: var(--c-surface-2);
    border-color: var(--c-border-strong);
    color: var(--c-text);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.sp-btn-danger {
    background: var(--c-danger);
    color: #fff; border: none;
    box-shadow: 0 6px 18px rgba(239,68,68,.32), inset 0 1px 0 rgba(255,255,255,.25);
}
.sp-btn-danger:hover {
    background: #dc2626; transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(239,68,68,.42), inset 0 1px 0 rgba(255,255,255,.3);
}

.sp-btn-sm { padding: .6em 1.1em; font-size: .85em; border-radius: var(--r-sm); }
.sp-btn-xs { padding: .42em .85em; font-size: .76em; border-radius: var(--r-sm); }

/* Icon buttons polished */
.sp-btn-icon {
    background: var(--c-surface);
    color: var(--c-text-soft);
    border: 1.5px solid var(--c-border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-xs);
}
.sp-btn-icon:hover {
    background: var(--c-surface);
    color: var(--c-primary);
    border-color: var(--c-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.sp-btn-icon.sp-btn-primary {
    background: var(--grad-brand); color: #fff; border: none;
    box-shadow: var(--shadow-glow);
}
.sp-btn-icon.sp-btn-danger {
    background: var(--c-danger-soft); color: var(--c-danger);
    border: 1.5px solid #fecaca;
}
.sp-btn-icon.sp-btn-danger:hover {
    background: var(--c-danger); color: #fff; border-color: var(--c-danger);
    box-shadow: 0 8px 22px rgba(239,68,68,.35);
}
.sp-btn-icon.sp-btn-success {
    background: var(--c-success-soft); color: var(--c-success);
    border: 1.5px solid #a7f3d0;
}
.sp-btn-icon.sp-btn-success:hover {
    background: var(--c-success); color: #fff; border-color: var(--c-success);
    box-shadow: 0 8px 22px rgba(16,185,129,.35);
}

/* ── BADGES: weicher ───────────────────────────────────────────────────── */
.sp-badge {
    background: var(--c-surface-3);
    color: var(--c-text-soft);
    padding: .3em .7em;
    border-radius: var(--r-pill);
    font-size: .72em;
    font-weight: 700;
    border: 1px solid var(--c-border);
}
.sp-badge-ok   { background: var(--c-success-soft); color: #047857; border-color: #a7f3d0; }
.sp-badge-warn { background: var(--c-warn-soft);    color: #92400e; border-color: #fde68a; }
.sp-badge-err  { background: var(--c-danger-soft);  color: #991b1b; border-color: #fecaca; }

/* ── ALERTS ────────────────────────────────────────────────────────────── */
.sp-alert {
    border-radius: var(--r-md);
    padding: 1em 1.2em;
    font-size: .92em;
    border: 1.5px solid transparent;
    box-shadow: var(--shadow-xs);
}
.sp-alert-success { background: var(--c-success-soft); color: #065f46; border-color: #a7f3d0; }
.sp-alert-danger  { background: var(--c-danger-soft);  color: #991b1b; border-color: #fecaca; }

/* ── FORMS · weicher, mit besserem Fokus ──────────────────────────────── */
.sp-input, .sp-select, .sp-textarea {
    border: 1.5px solid var(--c-border);
    background: var(--c-surface);
    border-radius: var(--r-md);
    padding: .85em 1.1em;
    font-size: .95em;
    color: var(--c-text);
    transition: border-color .15s, box-shadow .15s, background .15s;
    box-shadow: inset 0 1px 0 rgba(0,0,0,.02);
}
.sp-input:hover:not(:focus), .sp-select:hover:not(:focus), .sp-textarea:hover:not(:focus) {
    border-color: var(--c-border-strong);
}
.sp-input:focus, .sp-select:focus, .sp-textarea:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 4px rgba(231,60,126,.14);
}
.sp-field label { color: var(--c-text-soft); font-size: .82em; font-weight: 700; display: inline-flex; align-items: center; gap: .35em; }

/* ── Select: eigenes Chevron, einheitlicher Look ──────────────────────── */
select.sp-input,
.sp-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%237a8194' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='4,6 8,10 12,6'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1em center;
    background-size: 16px 16px;
    padding-right: 2.6em;
    cursor: pointer;
}
select.sp-input:focus,
.sp-select:focus {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%23e73c7e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='4,6 8,10 12,6'/></svg>");
}

/* ── Datei-Upload-Input: sieht aus wie unsere Inputs, mit pinkem Button ── */
input[type="file"].sp-input {
    padding: 0;
    line-height: 1;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: var(--c-text-soft);
    font-size: .9em;
}
input[type="file"].sp-input::file-selector-button {
    margin: 0 1em 0 0;
    padding: .9em 1.3em;
    border: none;
    border-right: 1.5px solid var(--c-border);
    background: var(--c-surface-2);
    color: var(--c-text);
    font-family: 'Comfortaa', sans-serif;
    font-weight: 700;
    font-size: .9em;
    cursor: pointer;
    transition: background .18s, color .18s;
}
input[type="file"].sp-input:hover::file-selector-button {
    background: var(--grad-brand);
    color: #fff;
    border-right-color: transparent;
}
/* WebKit-Fallback */
input[type="file"].sp-input::-webkit-file-upload-button {
    margin: 0 1em 0 0;
    padding: .9em 1.3em;
    border: none;
    border-right: 1.5px solid var(--c-border);
    background: var(--c-surface-2);
    color: var(--c-text);
    font-family: 'Comfortaa', sans-serif;
    font-weight: 700;
    font-size: .9em;
    cursor: pointer;
    transition: background .18s, color .18s;
}
input[type="file"].sp-input:hover::-webkit-file-upload-button {
    background: var(--grad-brand);
    color: #fff;
    border-right-color: transparent;
}

/* ── Textarea: dezenter Resize-Handle ─────────────────────────────────── */
.sp-textarea { resize: vertical; min-height: 100px; }
.sp-textarea::-webkit-resizer {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none' stroke='%23cfd3e0' stroke-width='1.6' stroke-linecap='round'><line x1='2' y1='12' x2='12' y2='2'/><line x1='6' y1='12' x2='12' y2='6'/></svg>");
    background-position: bottom right;
    background-repeat: no-repeat;
}

/* ── MEMBER & ADMIN: Tabs/Nav modern stylen ───────────────────────────── */
.sp-member-tabs,
.sp-admin-nav {
    background: rgba(255,255,255,.55);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.4);
    border-radius: var(--r-md);
    padding: 6px;
    gap: 4px;
    box-shadow: var(--shadow-sm);
}
.sp-member-tabs .sp-tab,
.sp-admin-nav-item {
    color: var(--c-text-soft);
    background: transparent;
    border: none;
    padding: .7em 1.1em;
    border-radius: var(--r-sm);
    font-weight: 700;
    font-size: .88em;
    transition: all .18s;
    display: inline-flex; align-items: center; gap: .4em;
}
.sp-member-tabs .sp-tab:hover,
.sp-admin-nav-item:hover {
    background: rgba(255,255,255,.7);
    color: var(--c-text);
}
.sp-member-tabs .sp-tab.active,
.sp-admin-nav-item.active {
    background: var(--grad-brand);
    color: #fff;
    box-shadow: var(--shadow-glow);
    animation: none;
}

/* ── CARDS: solider, modernerer Schatten ──────────────────────────────── */
.sp-channel-card,
.sp-video-row,
.sp-stat-card,
.sp-admin-video-card,
.sp-report-card,
.sp-admin-content,
.sp-upload-meta-form,
.sp-upload-progress,
.sp-upload-progress-card,
.sp-upload-done,
.sp-upload-error,
.sp-drop-zone {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-sm);
    border-radius: var(--r-lg);
}
.sp-channel-card:hover,
.sp-stat-card:hover,
.sp-admin-video-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--c-border-strong);
}
.sp-video-row {
    border-radius: var(--r-md);
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.sp-video-row:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    border-color: var(--c-border-strong);
}

.sp-channel-info strong { color: var(--c-text); font-size: 1.05em; }
.sp-channel-slug { color: var(--c-text-muted); }
.sp-channel-desc { color: var(--c-text-soft); }
.sp-video-info strong { color: var(--c-text); }
.sp-video-meta { color: var(--c-text-muted); }

/* Stat card refresh */
.sp-stat-card {
    padding: 1.1em 1.2em;
    gap: .25em;
}
.sp-stat-num   { color: var(--c-text); font-size: 1.9em; }
.sp-stat-label { color: var(--c-text-muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; font-size: .68em; }
.sp-stat-icon  { font-size: 1.4em; }
.sp-stat-card.sp-stat-warn {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-color: #fed7aa;
}

/* Admin content surface */
.sp-admin-content { padding: 1.6em 1.8em; }
.sp-admin-content h2 { color: var(--c-text); font-weight: 700; }

/* Admin video card body */
.sp-admin-video-info { color: var(--c-text-soft); }
.sp-admin-video-info strong { color: var(--c-text); }
.sp-admin-video-info p { color: var(--c-text-muted); }
.sp-admin-video-btns { border-top-color: var(--c-border); padding: .9em 1.1em; }

/* Reports */
.sp-report-card { padding: 1.1em 1.2em; }
.sp-report-info { color: var(--c-text-soft); }
.sp-report-info strong { color: var(--c-text); }

/* Tables */
.sp-table th {
    background: var(--c-surface-2);
    color: var(--c-text-soft);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: .76em;
    padding: .8em 1em;
    border-bottom: 1.5px solid var(--c-border);
}
.sp-table td {
    padding: .9em 1em;
    border-bottom: 1px solid var(--c-border);
    color: var(--c-text-soft);
}
.sp-table tr:hover td { background: var(--c-surface-2); }
.sp-table strong { color: var(--c-text); }

/* Admin hint */
.sp-admin-hint {
    background: var(--c-surface-2);
    color: var(--c-text-soft);
    border: 1px dashed var(--c-border-strong);
    border-radius: var(--r-md);
    padding: .8em 1em;
}

/* ── Drop zone: weicher ───────────────────────────────────────────────── */
.sp-drop-zone {
    border: 2.5px dashed var(--c-primary);
    background: linear-gradient(180deg, #fff 0%, #fde7ef 100%);
}
.sp-drop-zone.dragover {
    background: linear-gradient(180deg, #fde7ef 0%, #fbcfe0 100%);
    transform: scale(1.01);
    box-shadow: var(--shadow-md);
}
.sp-drop-text { color: var(--c-text); }
.sp-drop-hint { color: var(--c-text-muted); }
.sp-drop-formats { color: var(--c-text-muted); }

/* Upload UI bigger */
.sp-upload-meta-form { padding: 1.6em; gap: 1.2em; }
.sp-upload-progress, .sp-upload-progress-card { padding: 1.6em; gap: .9em; }
.sp-upload-done, .sp-upload-error { padding: 2.4em; }
.sp-upload-filename, .sp-upload-status { color: var(--c-text); }
.sp-progress-info { color: var(--c-text-muted); }
.sp-progress-bar-wrap { height: 12px; background: var(--c-surface-3); }

/* ── Footer ───────────────────────────────────────────────────────────── */
.sp-footer { color: rgba(255,255,255,.75); font-weight: 600; }
.sp-footer a { color: rgba(255,255,255,.85); }
.sp-footer a:hover { color: #fff; text-shadow: 0 0 12px rgba(255,255,255,.6); }

/* ── Sidebar list (creator list): kontraststärker ─────────────────────── */
sidebar { background: rgba(255,255,255,.55); border-right: 1px solid rgba(255,255,255,.4); }
.sp-sidebar-title { color: var(--c-text-muted); }
sidebar ul.creators li { color: var(--c-text-soft); border-radius: 0; }
sidebar ul.creators li:hover { background: rgba(255,255,255,.7); }
sidebar ul.creators li.active {
    background: linear-gradient(90deg, rgba(231,60,126,.12) 0%, transparent 100%);
    border-right: 3px solid var(--c-primary);
    color: var(--c-text);
}
.creator-list-name strong { color: var(--c-text); }

/* ── Standalone window (auth) refresh ─────────────────────────────────── */
.sp-standalone-window {
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(255,255,255,.6);
    box-shadow: 0 32px 80px rgba(17,12,46,.28), inset 0 1px 0 rgba(255,255,255,.9);
}
.sp-standalone-window .sp-titlebar {
    background: var(--c-surface-2);
    border-bottom: 1px solid var(--c-border);
}
.sp-auth-tabs {
    background: var(--c-surface-2);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    padding: 5px;
    gap: 4px;
}
.sp-auth-tabs .sp-tab { color: var(--c-text-muted); font-weight: 700; border-radius: var(--r-sm); padding: .65em; }
.sp-auth-tabs .sp-tab:hover { color: var(--c-text); background: rgba(255,255,255,.7); }
.sp-auth-tabs .sp-tab.active {
    background: var(--grad-brand);
    color: #fff;
    box-shadow: var(--shadow-glow);
    animation: none;
}
.sp-auth-hint { color: var(--c-text-muted); }
.sp-auth-back { font-weight: 600; }

/* ── Modal polish ──────────────────────────────────────────────────────── */
.sp-modal-content {
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-lg);
}
.sp-modal-content .modal-title { color: var(--c-text); font-weight: 700; display: inline-flex; align-items: center; gap: .45em; }
.sp-modal-content .modal-body  { padding: 1.4em 1.6em; }
.sp-modal-content .modal-footer { padding: 1em 1.6em; gap: .5em; }

/* ── Vote buttons (Video-Detail im dunklen Modal) ─────────────────────── */
.sp-vote-btn {
    background: rgba(255,255,255,.06);
    border: 1.5px solid rgba(255,255,255,.14);
    color: #d8d8d8;
    border-radius: var(--r-md);
    padding: .55em 1em;
    font-weight: 600;
}
.sp-vote-btn:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); }
.sp-vote-btn.active { background: rgba(231,60,126,.22); border-color: var(--c-primary); color: #fff; }

/* ── Small utility ─────────────────────────────────────────────────────── */
.sp-muted { color: var(--c-text-muted); }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,.18); }

/* Mobile spacing nudges */
@media (max-width: 600px) {
    .sp-admin-content { padding: 1.2em 1em; }
    .sp-stat-card { padding: .9em 1em; }
    .sp-stat-num  { font-size: 1.5em; }
    .sp-section-head { flex-wrap: wrap; gap: .6em; }
    .sp-channel-card, .sp-video-row { padding: 1em; }
}

/* ── Titlebar refresh: dunkle Lesbarkeit auf hellem main ──────────────── */
.sp-titlebar {
    background: rgba(255,255,255,.55);
    border-bottom: 1px solid rgba(0,0,0,.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.sp-titlebar-center { color: var(--c-text); }
.sp-titlebar-btn {
    background: rgba(255,255,255,.7);
    color: var(--c-text);
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-xs);
    font-weight: 600;
}
.sp-titlebar-btn:hover {
    background: #fff; color: var(--c-text);
    border-color: var(--c-border-strong);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}
.sp-titlebar-btn-cta {
    background: var(--grad-brand);
    color: #fff;
    border: none;
    box-shadow: var(--shadow-glow);
}
.sp-titlebar-btn-cta:hover {
    background: var(--grad-brand);
    color: #fff;
    filter: brightness(1.08);
    box-shadow: 0 12px 28px rgba(231,60,126,.42);
}
.sp-titlebar-btn-admin {
    background: var(--c-surface-dark);
    color: #fff;
    border: none;
}
.sp-titlebar-btn-admin:hover { background: #2a2e44; color: #fff; }

/* ── App-Style Page Header (sp-section-head) ──────────────────────────── */
.sp-section-head {
    background: rgba(255,255,255,.96);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: 1.1em 1.4em 1.1em 1.6em;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.25em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    position: relative;
    overflow: hidden;
}
/* Pink-Akzentstreifen links */
.sp-section-head::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 5px;
    background: var(--grad-brand);
    border-radius: 0 4px 4px 0;
}
.sp-section-head h2 {
    color: var(--c-text);
    text-shadow: none;
    font-size: 1.3em;
    font-weight: 800;
    letter-spacing: -.015em;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: .55em;
    line-height: 1.1;
}

/* Sektions-Trenner unterhalb des Headers (Atmungsraum) */
.sp-tab-content > .sp-section-head + * {
    animation: slide-in .3s ease both;
}

/* Admin-Content-Header an gleichen Stil koppeln */
.sp-admin-content h2 {
    font-size: 1.3em;
    font-weight: 800;
    letter-spacing: -.015em;
    margin: 0 0 1.2em;
    padding: .15em 0 .15em 1em;
    line-height: 1.15;
    color: var(--c-text);
    display: inline-flex;
    align-items: center;
    gap: .55em;
    position: relative;
}
.sp-admin-content h2::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 5px;
    background: var(--grad-brand);
    border-radius: 4px;
}

/* Mobile: Header soll sauber umbrechen */
@media (max-width: 600px) {
    .sp-section-head { padding: .9em 1.1em .9em 1.3em; flex-direction: column; align-items: stretch; }
    .sp-section-head h2 { font-size: 1.1em; }
    .sp-section-head .sp-btn-primary { width: 100%; justify-content: center; }
}

/* ── Visual Disc: rondelle für Channel/Avatar-Icons ───────────────────── */
.sp-disc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    font-weight: 800;
    font-family: 'Comfortaa', sans-serif;
    line-height: 1;
    box-shadow: var(--shadow-xs), inset 0 1px 0 rgba(255,255,255,.25);
    flex-shrink: 0;
}
.sp-disc .ph { line-height: 1; }

/* Sidebar-Avatar mit Disc statt Bild */
.avatar.avatar-disc {
    background: transparent !important;
    padding: 0;
}
.avatar.avatar-disc .sp-disc { width: 100%; height: 100%; border-radius: 12px; }

/* Channel-Card Thumb als Disc */
.sp-channel-thumb-disc {
    background: transparent !important;
    width: auto !important; height: auto !important;
}
.sp-channel-thumb-disc .sp-disc { width: 56px; height: 56px; border-radius: 16px; }

/* ── Icon-Picker (Modals & Profile) ───────────────────────────────────── */
.sp-icon-picker-wrap {
    border: 1.5px solid var(--c-border);
    border-radius: var(--r-md);
    background: var(--c-surface-2);
    overflow: hidden;
}
.sp-icon-search {
    display: flex; align-items: center; gap: .55em;
    padding: .65em .9em;
    background: var(--c-surface);
    border-bottom: 1.5px solid var(--c-border);
}
.sp-icon-search .ph { color: var(--c-text-muted); font-size: 1.1rem; flex-shrink: 0; }
.sp-icon-search-input {
    flex: 1; min-width: 0;
    border: none; outline: none; background: transparent;
    font-family: 'Comfortaa', sans-serif;
    font-size: .92em; color: var(--c-text);
}
.sp-icon-search-input::placeholder { color: var(--c-text-muted); }
.sp-icon-count {
    flex-shrink: 0;
    font-size: .72em; font-weight: 700;
    color: var(--c-text-muted);
    text-transform: uppercase; letter-spacing: .06em;
    background: var(--c-surface-2);
    padding: .25em .65em; border-radius: var(--r-pill);
}
.sp-icon-picker {
    padding: .9em;
    max-height: 360px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
    gap: .55em;
    scroll-behavior: smooth;
}
.sp-icon-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2em 1em;
    color: var(--c-text-muted);
    font-size: .9em;
}
.sp-icon-picker .sp-icon-cat-label {
    grid-column: 1 / -1;
    font-size: .72em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--c-text-muted);
    margin: .35em 0 -.1em;
    padding-left: .25em;
}
.sp-icon-cell {
    background: var(--c-surface);
    border: 1.5px solid var(--c-border);
    border-radius: var(--r-sm);
    width: 100%;
    aspect-ratio: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--c-text-soft);
    font-size: 1.4rem;
    cursor: pointer;
    transition: all .15s ease;
    padding: 0;
}
.sp-icon-cell:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.sp-icon-cell.active {
    background: var(--grad-brand);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}
.sp-icon-cell .sp-icon-none {
    font-size: 1rem;
    color: var(--c-text-muted);
    font-weight: 700;
}
.sp-icon-cell.active .sp-icon-none { color: #fff; }

/* ── Profile Card ─────────────────────────────────────────────────────── */
.sp-profile-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.6em;
    display: flex; flex-direction: column; gap: 1.4em;
    max-width: 720px;
}
.sp-profile-head {
    display: flex; align-items: center; gap: 1em;
    padding-bottom: 1em;
    border-bottom: 1px solid var(--c-border);
}
.sp-profile-head strong { color: var(--c-text); }
.sp-profile-form { display: flex; flex-direction: column; gap: 1em; }
.sp-profile-form .sp-btn-primary { align-self: flex-start; }

@media (max-width: 767px) {
    .avatar.avatar-disc { width: auto !important; height: auto !important; padding: 0 !important; background: transparent !important; }
    .avatar.avatar-disc .sp-disc { width: 36px !important; height: 36px !important; }
    .avatar.avatar-disc .sp-disc .ph { font-size: 20px !important; }
}

/* ── Channel-Hero (Header auf Channel-Detail & Welcome) ───────────────── */
.sp-channel-hero {
    display: flex;
    align-items: center;
    gap: 1.2em;
    padding: 1.2em 1.4em;
    background: rgba(255,255,255,.96);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.2em;
    position: relative;
    overflow: hidden;
}
.sp-channel-hero::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 5px;
    background: var(--grad-brand);
    border-radius: 0 4px 4px 0;
}
.sp-channel-hero-disc { padding-left: .4em; }
.sp-channel-hero-disc .sp-disc { width: 72px; height: 72px; border-radius: 18px; }
.sp-channel-hero-disc .sp-disc .ph { font-size: 36px; }
.sp-channel-hero-text { flex: 1; min-width: 0; }
.sp-channel-hero-text h2 {
    color: var(--c-text);
    margin: 0 0 .25em;
    font-size: 1.45em;
    font-weight: 800;
    letter-spacing: -.015em;
    text-shadow: none;
}
.sp-channel-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    color: var(--c-text-muted);
    font-size: .88em;
    font-weight: 600;
}
.sp-channel-hero-meta span { display: inline-flex; align-items: center; gap: .35em; }
.sp-channel-hero-meta .ph { color: var(--c-primary); font-size: 1.05em; }

@media (max-width: 600px) {
    .sp-channel-hero { padding: 1em 1.1em; gap: .9em; }
    .sp-channel-hero-disc .sp-disc { width: 56px; height: 56px; border-radius: 14px; }
    .sp-channel-hero-disc .sp-disc .ph { font-size: 28px; }
    .sp-channel-hero-text h2 { font-size: 1.2em; }
    .sp-channel-hero-meta { gap: .65em; font-size: .82em; }
}

/* Subhead innerhalb von <content> ──────────────────────────────────── */
.sp-content-subhead {
    color: rgba(255,255,255,.92);
    font-family: 'Comfortaa';
    font-weight: 700;
    font-size: 1.1em;
    margin: 0 0 .9em;
    text-shadow: 0 2px 14px rgba(0,0,0,.18);
    display: inline-flex;
    align-items: center;
    gap: .45em;
}

/* Welcome-Logo wird von Emoji auf Phosphor-Icon umgestellt ────────── */
.sp-welcome-logo .ph {
    font-size: 1em;
    color: #fff;
    filter: drop-shadow(0 6px 18px rgba(231,60,126,.5));
}

/* Sidebar-Title-Icon ─────────────────────────────────────────────── */
.sp-sidebar-title .ph { font-size: 1.1em; color: var(--c-primary); }

/* ── User-Profil ──────────────────────────────────────────────────────── */
.sp-user-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,.45);
    text-underline-offset: 3px;
    transition: color .15s, text-decoration-color .15s;
}
.sp-user-link:hover {
    color: var(--c-primary);
    text-decoration-color: var(--c-primary);
}

.sp-user-channels {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1em;
    margin-bottom: 1.5em;
}
.sp-user-channel-card {
    background: rgba(255,255,255,.92);
    border-radius: 18px;
    padding: 1em 1.1em;
    display: flex;
    align-items: flex-start;
    gap: .9em;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}
.sp-user-channel-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,.12);
}
.sp-user-channel-card .sp-channel-thumb-disc { flex: 0 0 auto; }
.sp-user-channel-card .sp-disc { width: 56px; height: 56px; border-radius: 14px; }
.sp-user-channel-card .sp-disc .ph { font-size: 28px; }
.sp-user-channel-info {
    display: flex;
    flex-direction: column;
    gap: .25em;
    min-width: 0;
    flex: 1;
}
.sp-user-channel-info strong { font-size: 1.02em; }
.sp-user-channel-meta {
    font-size: .82em;
    color: #666;
    display: inline-flex;
    align-items: center;
    gap: .35em;
}
.sp-user-channel-meta .ph { color: var(--c-primary); }

/* ── Channel-Description-Block: solides Card-Surface ──────────────────── */
.main-creator-description {
    background: var(--c-surface);
    color: var(--c-text-soft);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    padding: 1em 1.2em;
    box-shadow: var(--shadow-sm);
}
.main-creator-description p { color: var(--c-text); }
.main-creator-description small,
.main-creator-description small[style] { color: var(--c-text-muted) !important; }
.main-creator-description strong { color: var(--c-text); }

/* ── Subscribe + Bell on channel hero ─────────────────────────────────────── */
.sp-channel-sub-actions {
    display: flex;
    align-items: center;
    gap: .5em;
    margin-top: .8em;
}
.sp-sub-btn {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    padding: .5em 1.2em;
    border-radius: 50px;
    border: 0;
    cursor: pointer;
    font-family: 'Comfortaa', sans-serif;
    font-weight: 700;
    font-size: .88em;
    background: var(--grad-brand, linear-gradient(135deg,#e73c7e,#23a6d5));
    color: #fff;
    transition: transform .15s, box-shadow .2s, opacity .2s;
    box-shadow: 0 4px 14px rgba(231,60,126,.28);
}
.sp-sub-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(231,60,126,.4); }
.sp-sub-btn:active { transform: translateY(0); }
.sp-sub-btn:disabled { opacity: .6; cursor: wait; }
.sp-sub-btn.is-subscribed {
    background: rgba(0,0,0,.06);
    color: var(--c-text, #222);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
.sp-sub-btn.is-subscribed:hover { background: rgba(231,60,126,.1); color: #e73c7e; }
.sp-sub-btn .ph { font-size: 1.05em; }

.sp-bell-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0;
    cursor: pointer;
    background: rgba(0,0,0,.06);
    color: var(--c-text-muted, #777);
    transition: all .18s;
}
.sp-bell-toggle:hover { background: rgba(231,60,126,.12); color: #e73c7e; }
.sp-bell-toggle.is-on { background: linear-gradient(135deg,#ffd700,#ff9800); color: #fff; box-shadow: 0 4px 12px rgba(255,152,0,.35); }
.sp-bell-toggle.is-on:hover { transform: rotate(-8deg); }
.sp-bell-toggle.is-hidden { display: none; }
.sp-bell-toggle:disabled { opacity: .6; cursor: wait; }
.sp-bell-toggle .ph { font-size: 1.15em; }

.sp-channel-sub-count .ph { color: var(--c-primary); }

/* ── Bell button in titlebar ──────────────────────────────────────────────── */
.sp-bell-btn {
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,.22);
    padding: .35em .55em !important;
}
.sp-bell-btn .ph { font-size: 1.05em; }
.sp-bell-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #ff3b5c;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(255,59,92,.5);
    line-height: 1;
}

/* ── Notification dropdown ────────────────────────────────────────────────── */
.sp-notif-dropdown {
    position: absolute;
    top: 50px;
    right: 14px;
    width: 360px;
    max-width: calc(100vw - 28px);
    max-height: 70vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,.22);
    overflow: hidden;
    z-index: 300;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(-8px) scale(.98);
    transition: opacity .18s, transform .18s;
    pointer-events: none;
}
.sp-notif-dropdown.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.sp-notif-dropdown[hidden] { display: none; }

.sp-notif-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .9em 1em;
    border-bottom: 1px solid rgba(0,0,0,.06);
    font-family: 'Comfortaa', sans-serif;
    color: var(--c-text, #222);
    flex-shrink: 0;
}
.sp-notif-head .ph { color: #e73c7e; }
.sp-notif-mark {
    background: transparent;
    border: 0;
    cursor: pointer;
    color: rgba(0,0,0,.45);
    padding: .25em .5em;
    border-radius: 8px;
    transition: all .15s;
    font-size: 1.1em;
}
.sp-notif-mark:hover { background: rgba(0,0,0,.05); color: #28ca42; }

.sp-notif-list {
    overflow-y: auto;
    flex: 1;
    min-height: 80px;
}
.sp-notif-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2em;
    color: rgba(0,0,0,.4);
    font-size: 1.5em;
}
.sp-notif-loading .ph { animation: spin 1s linear infinite; }
.sp-notif-empty {
    text-align: center;
    padding: 1.8em 1.2em;
    color: rgba(0,0,0,.55);
}
.sp-notif-empty .ph {
    font-size: 2.2em;
    color: rgba(0,0,0,.18);
    display: block;
    margin-bottom: .4em;
}
.sp-notif-empty p { margin: .2em 0; font-weight: 600; }
.sp-notif-empty small { color: rgba(0,0,0,.45); font-size: .82em; line-height: 1.4; display: block; margin-top: .3em; }

.sp-notif-item {
    display: flex;
    align-items: center;
    gap: .7em;
    padding: .8em 1em;
    border: 0;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
    border-bottom: 1px solid rgba(0,0,0,.04);
    transition: background .15s;
    font-family: 'Comfortaa', sans-serif;
    color: var(--c-text, #222);
}
.sp-notif-item:hover { background: rgba(231,60,126,.06); }
.sp-notif-item:last-child { border-bottom: 0; }
.sp-notif-item.is-unread { background: linear-gradient(90deg, rgba(231,60,126,.08), transparent); }
.sp-notif-item.is-unread::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e73c7e;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(231,60,126,.6);
}

.sp-notif-disc { flex-shrink: 0; }
.sp-notif-disc .sp-disc { width: 36px !important; height: 36px !important; border-radius: 10px; }
.sp-notif-disc .sp-disc .ph { font-size: 18px !important; }

.sp-notif-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sp-notif-line {
    font-size: .82em;
    color: rgba(0,0,0,.65);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sp-notif-line strong { color: #e73c7e; font-weight: 700; }
.sp-notif-title {
    font-size: .9em;
    font-weight: 700;
    color: var(--c-text, #222);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sp-notif-time {
    font-size: .72em;
    color: rgba(0,0,0,.4);
}
.sp-notif-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 38px;
    border-radius: 8px;
    overflow: hidden;
    background: #222;
}
.sp-notif-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 500px) {
    .sp-notif-dropdown { right: 8px; width: calc(100vw - 16px); }
    .sp-channel-sub-actions { flex-wrap: wrap; }
}

/* ══════════════════════════════════════════════════════════════════════════ */
/* ── Info pages (Imprint / Privacy / Cookies / Terms) ───────────────────── */
/* ══════════════════════════════════════════════════════════════════════════ */
.sp-info-page {
    max-width: 920px;
    margin: 0 auto;
    padding: 1.5em 1.8em 2.2em;
    color: var(--c-text-soft, #4a4f6a);
    font-size: 1em;
    line-height: 1.65;
}

.sp-info-hero {
    display: flex;
    align-items: center;
    gap: 1.2em;
    padding: 1.5em 1.6em;
    background: var(--c-surface, #fff);
    border: 1px solid var(--c-border, #e3e5ee);
    border-radius: var(--r-lg, 18px);
    box-shadow: var(--shadow-sm, 0 4px 18px rgba(17,12,46,.06));
    margin-bottom: 1.6em;
    position: relative;
    overflow: hidden;
}
.sp-info-hero::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 5px;
    background: var(--grad-brand, linear-gradient(135deg,#ff5e9c,#e73c7e,#b13edc));
    border-radius: 0 4px 4px 0;
}
.sp-info-hero-disc { padding-left: .4em; flex-shrink: 0; }
.sp-info-hero-disc .sp-disc { width: 72px; height: 72px; border-radius: 18px; }
.sp-info-hero-disc .sp-disc .ph { font-size: 36px; }
.sp-info-hero-text { flex: 1; min-width: 0; }
.sp-info-hero-text h1 {
    font-family: 'Comfortaa', sans-serif;
    color: var(--c-text, #1a1d2e);
    margin: 0 0 .3em;
    font-size: 1.7em;
    font-weight: 800;
    letter-spacing: -.015em;
    line-height: 1.1;
}
.sp-info-hero-sub {
    margin: 0;
    color: var(--c-text-muted, #7a8194);
    font-size: 1em;
    font-weight: 600;
}

/* Table-of-contents chip row */
.sp-info-toc {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6em;
    padding: 1em 1.2em;
    background: var(--c-surface-2, #f7f8fc);
    border: 1px solid var(--c-border, #e3e5ee);
    border-radius: var(--r-md, 14px);
    margin-bottom: 1.6em;
    font-size: .92em;
}
.sp-info-toc strong {
    color: var(--c-text, #1a1d2e);
    margin-right: .3em;
    font-family: 'Comfortaa', sans-serif;
}
.sp-info-toc a {
    display: inline-flex;
    align-items: center;
    gap: .3em;
    padding: .4em .85em;
    background: var(--c-surface, #fff);
    color: var(--c-text-soft, #4a4f6a);
    border: 1px solid var(--c-border, #e3e5ee);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: .85em;
    transition: all .15s;
}
.sp-info-toc a:hover {
    background: var(--c-primary, #e73c7e);
    color: #fff;
    border-color: var(--c-primary, #e73c7e);
    transform: translateY(-1px);
}

/* Section card */
.sp-info-section {
    background: var(--c-surface, #fff);
    border: 1px solid var(--c-border, #e3e5ee);
    border-radius: var(--r-lg, 18px);
    box-shadow: var(--shadow-sm, 0 4px 18px rgba(17,12,46,.06));
    padding: 1.4em 1.6em;
    margin-bottom: 1.2em;
    scroll-margin-top: 1em;
}
.sp-info-section h2 {
    font-family: 'Comfortaa', sans-serif;
    color: var(--c-text, #1a1d2e);
    margin: 0 0 .7em;
    font-size: 1.2em;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: .4em;
}
.sp-info-section h2 .ph { color: var(--c-primary, #e73c7e); font-size: 1.1em; }
.sp-info-section h3 {
    font-family: 'Comfortaa', sans-serif;
    color: var(--c-text, #1a1d2e);
    margin: 1em 0 .5em;
    font-size: 1em;
    font-weight: 700;
}
.sp-info-section p {
    margin: .6em 0;
    color: var(--c-text-soft, #4a4f6a);
}
.sp-info-section p strong { color: var(--c-text, #1a1d2e); }
.sp-info-section a {
    color: var(--c-primary, #e73c7e);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .15s;
}
.sp-info-section a:hover { border-bottom-color: var(--c-primary, #e73c7e); }

.sp-info-list,
.sp-info-rules {
    list-style: none;
    padding: 0;
    margin: .5em 0;
}
.sp-info-list li {
    padding: .35em 0 .35em 1.6em;
    position: relative;
    color: var(--c-text-soft, #4a4f6a);
}
.sp-info-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: .3em;
    color: #28ca42;
    font-weight: 800;
}

.sp-info-rules li {
    padding: .55em .8em;
    margin-bottom: .4em;
    background: var(--c-surface-2, #f7f8fc);
    border-radius: 10px;
    border-left: 3px solid var(--c-primary, #e73c7e);
}
.sp-info-rules li strong { color: var(--c-text, #1a1d2e); }
.sp-info-rules-no li { border-left-color: #ff5f57; background: #fff5f5; }
.sp-info-rules .sp-rule-icon {
    display: inline-block;
    margin-right: .35em;
    font-size: 1em;
}

.sp-info-callout {
    margin: 1em 0 .2em;
    padding: .9em 1.1em;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid #fed7aa;
    border-radius: 12px;
    color: #92400e;
    font-weight: 600;
    display: flex;
    align-items: flex-start;
    gap: .6em;
}
.sp-info-callout .ph {
    color: #d97706;
    font-size: 1.2em;
    flex-shrink: 0;
    margin-top: .1em;
}

.sp-info-meta {
    text-align: right;
    color: var(--c-text-muted, #7a8194);
    font-size: .82em;
    margin: 1em 0 0;
}

@media (max-width: 700px) {
    .sp-info-page { padding: 1em 1em 1.6em; }
    .sp-info-hero { flex-direction: column; text-align: center; gap: .8em; padding: 1.2em; }
    .sp-info-hero::before { width: 100%; height: 5px; bottom: auto; }
    .sp-info-hero-disc { padding-left: 0; }
    .sp-info-hero-text h1 { font-size: 1.4em; }
    .sp-info-section { padding: 1.1em 1.2em; }
}

/* ══════════════════════════════════════════════════════════════════════════ */
/* ── Registration: terms checkbox row ───────────────────────────────────── */
/* ══════════════════════════════════════════════════════════════════════════ */
.sp-check-row {
    display: flex;
    align-items: flex-start;
    gap: .65em;
    padding: .8em 1em;
    background: var(--c-surface-2, #f7f8fc);
    border: 1px solid var(--c-border, #e3e5ee);
    border-radius: 12px;
    margin-bottom: 1em;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    font-size: .88em;
    color: var(--c-text-soft, #4a4f6a);
    line-height: 1.45;
}
.sp-check-row:hover {
    background: var(--c-primary-soft, #fde7ef);
    border-color: var(--c-primary, #e73c7e);
}
.sp-check-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--c-primary, #e73c7e);
    cursor: pointer;
}
.sp-check-row a {
    color: var(--c-primary, #e73c7e);
    font-weight: 700;
    text-decoration: underline;
}
.sp-check-row a:hover { color: #b13edc; }

/* ── Live-Streaming (OBS-Integration) ───────────────────────────────────── */
.sp-live-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1em;
}
.sp-live-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.1em 1.2em;
    box-shadow: 0 2px 14px rgba(0,0,0,.06);
    display: flex; flex-direction: column;
}
.sp-live-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: .8em; flex-wrap: wrap;
}
.sp-live-actions {
    display: flex; gap: .5em; flex-wrap: wrap; align-items: center;
    margin-top: 1em; padding-top: .8em; border-top: 1px dashed #eee;
}
.sp-copy-row { display: flex; gap: .4em; align-items: stretch; }
.sp-copy-row .sp-input { flex: 1; min-width: 0; }
.sp-input-mono {
    font-family: 'SFMono-Regular', 'Menlo', 'Consolas', monospace;
    font-size: .92em;
    letter-spacing: .02em;
}
.sp-badge-live {
    background: linear-gradient(135deg, #ff3b3b, #c8197a);
    color: #fff;
    font-weight: 700;
    padding: .25em .7em;
    border-radius: 999px;
    font-size: .8em;
    animation: spLivePulse 1.6s infinite;
}
@keyframes spLivePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,59,59,.55); }
    50%      { box-shadow: 0 0 0 .55em rgba(255,59,59,0); }
}
.sp-alert-info {
    background: #eef6ff;
    color: #1d3a66;
    border-left: 4px solid #3aa0ff;
    padding: .8em 1em;
    border-radius: 8px;
}

/* Live-Watch-Seite */
.sp-live-stage {
    max-width: 1100px; margin: 1.5em auto; padding: 0 1em;
}
.sp-live-stage video {
    width: 100%; max-height: 70vh; background: #000;
    border-radius: 12px; box-shadow: 0 6px 30px rgba(0,0,0,.25);
}
.sp-live-meta {
    margin-top: 1em; display: flex; gap: 1em; align-items: center;
    flex-wrap: wrap;
}
.sp-live-offline {
    background: #111; color: #ddd; padding: 4em 1em; border-radius: 12px;
    text-align: center; font-size: 1.05em;
}

/* Live-Badge in Channel-Sidebar/-Hero */
.sp-live-dot {
    display: inline-block; width: .55em; height: .55em; border-radius: 50%;
    background: #ff3b3b; box-shadow: 0 0 0 0 rgba(255,59,59,.7);
    animation: spLivePulse 1.6s infinite;
    vertical-align: middle; margin-right: .3em;
}

/* ── Live-Vorschauen im Channel/Welcome ─────────────────────────────────── */
.sp-live-counter {
    background: linear-gradient(135deg, #ff3b3b, #c8197a);
    color: #fff;
    padding: .15em .7em;
    border-radius: 999px;
    font-weight: 700;
}
.sp-live-counter .sp-live-dot { background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.6); }
.sp-live-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1em;
    margin-bottom: 1.5em;
}
.sp-live-tile {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(0,0,0,.08);
    transition: transform .15s ease, box-shadow .15s ease;
}
.sp-live-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.14); color: inherit; }
.sp-live-tile-video { position: relative; aspect-ratio: 16/9; background: #000; }
.sp-live-tile-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-live-tile-video .sp-badge-live { position: absolute; top: .5em; left: .5em; font-size: .75em; }
.sp-live-tile-meta { display: flex; align-items: center; gap: .6em; padding: .6em .8em; }
.sp-live-tile-disc { flex-shrink: 0; }
.sp-live-tile-text { display: flex; flex-direction: column; min-width: 0; }
.sp-live-tile-text strong { font-size: .95em; }
.sp-live-tile-text span { color: #666; font-size: .85em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Eingebettete Live-Vorschau im Channel-Hero */
.sp-live-embed {
    background: #000; border-radius: 14px; overflow: hidden;
    margin: 1em 0 1.5em; box-shadow: 0 4px 24px rgba(200,25,122,.25);
}
.sp-live-embed-head {
    display: flex; align-items: center; gap: .8em;
    padding: .7em 1em; background: #1a1a1a; color: #fff;
}
.sp-live-embed-head strong { color: #fff; flex: 1; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-live-embed video { width: 100%; max-height: 65vh; display: block; background: #000; }

/* ── Live-Tab im Konto-Bereich ──────────────────────────────────────────── */
.sp-badge-streaming {
    background: #ffb020; color: #4a2e00;
    font-weight: 700; padding: .25em .7em;
    border-radius: 999px; font-size: .8em;
}
.sp-live-mtx-status {
    border-radius: 10px; padding: .8em 1em;
    border-left: 4px solid #aaa; background: #f7f7f7;
}
.sp-live-mtx-status.is-ok    { border-left-color: #38b94c; background: #effaf2; }
.sp-live-mtx-status.is-error { border-left-color: #d33; background: #fff1f1; }
.sp-live-mtx-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: .8em; flex-wrap: wrap;
}
.sp-live-mtx-details { margin-top: .8em; font-size: .9em; }
.sp-live-mtx-details code {
    background: rgba(0,0,0,.06); padding: .1em .35em; border-radius: 4px;
}
.sp-pre {
    background: #111; color: #eee; padding: .8em; border-radius: 8px;
    font-size: .8em; max-height: 280px; overflow: auto;
    white-space: pre-wrap; word-break: break-all;
}
.sp-live-go-public { margin: .6em 0 1em; }
.sp-btn-block { display: block; width: 100%; padding: .8em; font-size: 1.05em; }
.sp-btn-go-live {
    background: linear-gradient(135deg, #ff3b3b, #c8197a);
    color: #fff; border: 0; font-weight: 700;
    animation: spLivePulse 1.8s infinite;
}
.sp-btn-go-live:hover { filter: brightness(1.1); }
.sp-live-waiting {
    display: flex; gap: .8em; align-items: center;
    background: #fffbeb; border: 1px dashed #f0c75e;
    border-radius: 10px; padding: .9em 1.1em;
}
.sp-live-waiting-icon { font-size: 1.8em; }
.text-success { color: #38b94c; }
.text-danger  { color: #d33; }
.text-muted   { color: #888; }

/* Live-Tile: Image füllt den Slot wie das Video vorher */
.sp-live-tile-video img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Live-Tiles: gehärtete Variante (überschreibt frühere Definitionen) ─── */
a.sp-live-tile {
    display: block !important;
    text-decoration: none !important;
    color: inherit !important;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(0,0,0,.08);
    transition: transform .15s ease, box-shadow .15s ease;
    max-width: 100%;
}
a.sp-live-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200,25,122,.18);
    color: inherit !important;
}
.sp-live-tile-video {
    position: relative !important;
    aspect-ratio: 16/9;
    background: #000;
    width: 100%;
    overflow: hidden;
}
.sp-live-tile-video > video,
.sp-live-tile-video > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sp-live-tile-video > .sp-badge-live {
    position: absolute !important;
    top: .6em !important;
    left: .6em !important;
    font-size: .72em !important;
    z-index: 2;
    pointer-events: none;
}
.sp-live-tile-meta {
    display: flex !important;
    align-items: center;
    gap: .7em;
    padding: .7em .9em;
    text-decoration: none;
}
.sp-live-tile-meta * { text-decoration: none !important; }
.sp-live-tile-disc {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sp-live-tile-disc .sp-disc {
    width: 36px !important;
    height: 36px !important;
    font-size: 18px !important;
}
.sp-live-tile-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 auto;
}
.sp-live-tile-text strong {
    font-size: .95em;
    color: #222;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sp-live-tile-text span {
    color: #777;
    font-size: .82em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 2px;
}

/* Strip-Layout: feste Tile-Breite zwischen 260 und 360 px, kein Stretch
   wenn nur ein einziger Stream da ist. */
.sp-live-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 360px));
    gap: 1em;
    margin: .6em 0 1.6em;
    justify-content: start;
}

/* ── State-driven visibility im Live-Tab ────────────────────────────────── */
.sp-live-card[data-state="offline"] .sp-live-show-streaming,
.sp-live-card[data-state="offline"] .sp-live-show-streaming-only,
.sp-live-card[data-state="offline"] .sp-live-show-live-only { display: none !important; }

.sp-live-card[data-state="streaming"] .sp-live-show-offline,
.sp-live-card[data-state="streaming"] .sp-live-show-live-only { display: none !important; }

.sp-live-card[data-state="live"] .sp-live-show-offline,
.sp-live-card[data-state="live"] .sp-live-show-streaming-only { display: none !important; }

/* Sanftes Einblenden beim State-Wechsel */
.sp-live-show-streaming,
.sp-live-show-streaming-only,
.sp-live-show-live-only,
.sp-live-show-offline { transition: opacity .25s ease; }

/* ── Live-Player: Unmute-Overlay + Modus-Label ──────────────────────────── */
.sp-live-stage,
.sp-live-embed { position: relative; }

.sp-unmute-overlay {
    position: absolute;
    bottom: 3.4em;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: .45em;
    padding: .55em 1.1em;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, .72);
    color: #fff;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
    transition: transform .15s ease, background .15s ease;
}
.sp-unmute-overlay:hover {
    background: rgba(0, 0, 0, .88);
    transform: translateX(-50%) scale(1.05);
}
.sp-unmute-overlay[hidden] { display: none; }

.sp-player-mode {
    font-size: .78em;
    padding: .15em .55em;
    border-radius: 999px;
    background: rgba(0, 0, 0, .08);
    white-space: nowrap;
}
.sp-player-mode-webrtc { background: rgba(46, 160, 67, .15); }
.sp-player-mode-hls    { background: rgba(9, 105, 218, .12); }
