html, body {
    font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
}

.srs-appbar {
    border-bottom: 1px solid #2a2e33;
}

.srs-drawer {
    border-right: 1px solid #2a2e33;
}

.srs-brand {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.srs-brand span {
    color: #ff9f1c;
}

.srs-muted {
    color: #9aa0a6 !important;
}

.srs-mono {
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 0.85rem;
}

.srs-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.srs-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4a4f55;
    flex: none;
    display: inline-block;
}

.srs-dot-live {
    background: #e71d36;
    box-shadow: 0 0 0 0 rgba(231, 29, 54, 0.7);
    animation: srs-pulse 1.6s infinite;
}

.srs-dot-paused {
    background: #ff9f1c;
}

@keyframes srs-pulse {
    0% { box-shadow: 0 0 0 0 rgba(231, 29, 54, 0.6); }
    70% { box-shadow: 0 0 0 7px rgba(231, 29, 54, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 29, 54, 0); }
}

/* "Now playing"-Karte */
.srs-onair {
    background: linear-gradient(135deg, #1f2226 0%, #1a1d21 60%, #22201b 100%);
    border: 1px solid #2a2e33;
}

.srs-onair-title {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
    word-break: break-word;
}

.srs-badge-live {
    background: #e71d36;
    color: #fff;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    padding: 2px 8px;
    border-radius: 4px;
}

.srs-badge-off {
    background: #2a2e33;
    color: #9aa0a6;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    padding: 2px 8px;
    border-radius: 4px;
}

.srs-station-card {
    border: 1px solid #2a2e33;
    transition: border-color 0.15s ease;
    height: 100%;
}

.srs-station-card:hover {
    border-color: #ff9f1c;
}

.srs-pad {
    min-height: 72px;
    text-transform: none !important;
    white-space: normal;
    line-height: 1.2 !important;
}

.srs-code {
    background: #0d0f11;
    border: 1px solid #2a2e33;
    border-radius: 8px;
    padding: 8px 12px;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 0.85rem;
    overflow-x: auto;
    white-space: pre;
}

.srs-folder-row {
    cursor: pointer;
}

.srs-folder-row:hover {
    background: rgba(255, 159, 28, 0.08);
}

#blazor-error-ui {
    background: #e71d36;
    color: #fff;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 2000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

#blazor-error-ui .reload {
    color: #fff;
}

/* Upload-Feld */
.srs-drop {
    border: 2px dashed #3a3f45 !important;
    border-radius: 12px;
    min-height: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    text-align: center;
    padding: 16px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.srs-drop:hover,
.srs-drop-active {
    border-color: #ff9f1c !important;
    background: rgba(255, 159, 28, 0.06);
}

/* Vorhoer-Leiste unten */
.srs-preview {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: min(820px, calc(100vw - 32px));
    z-index: 1200;
    border: 1px solid #2a2e33;
}

/* Werbebildschirm: Vorschau und Diashow-Vorschaubilder */
.srs-screen-preview {
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.srs-screen-preview img,
.srs-screen-preview video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.srs-slide-thumb {
    width: 72px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    background: #1b1e21;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Login ---------- */
.srs-login-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 15%, rgba(255, 159, 28, 0.10), transparent 40%),
        radial-gradient(circle at 85% 90%, rgba(46, 196, 182, 0.08), transparent 45%),
        #111315;
    color: #e8e6e3;
    font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
}

.srs-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.srs-login-card {
    width: 100%;
    max-width: 380px;
    background: #1a1d21;
    border: 1px solid #2a2e33;
    border-radius: 14px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.srs-login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.srs-login-title {
    font-size: 1.3rem;
    font-weight: 700;
}

.srs-login-title span {
    color: #ff9f1c;
}

.srs-login-sub {
    color: #9aa0a6;
    font-size: 0.9rem;
}

.srs-login-label {
    font-size: 0.82rem;
    color: #9aa0a6;
    margin: 10px 0 6px;
}

.srs-login-input {
    background: #111315;
    border: 1px solid #3a3f45;
    border-radius: 8px;
    color: #e8e6e3;
    font: inherit;
    padding: 11px 12px;
    outline: none;
    transition: border-color 0.15s ease;
}

.srs-login-input:focus {
    border-color: #ff9f1c;
}

.srs-login-check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9aa0a6;
    font-size: 0.88rem;
    margin: 16px 0 18px;
    cursor: pointer;
}

.srs-login-check input {
    accent-color: #ff9f1c;
}

.srs-login-button {
    background: #ff9f1c;
    color: #111315;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font: inherit;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

.srs-login-button:hover {
    background: #ffb24d;
}

.srs-login-error {
    background: rgba(231, 29, 54, 0.12);
    border: 1px solid rgba(231, 29, 54, 0.5);
    color: #ff8a98;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

/* ---------- Web-Player (Leiste unten) ---------- */
.srs-player {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #15181b;
    border-top: 1px solid #2a2e33;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.35);
}

.srs-player-info {
    flex: 1;
    min-width: 0;
}

/* Platz fuer die Leiste lassen; Vorhoer-Leiste der Mediathek rutscht darueber */
body:has(.srs-player) .srs-content {
    padding-bottom: 96px !important;
}

body:has(.srs-player) .srs-preview {
    bottom: 84px;
}

/* ---------- Warteschlange ---------- */
.srs-tag {
    display: inline-block;
    padding: 0 6px;
    border-radius: 6px;
    border: 1px solid #2a2e33;
    color: #9aa0a6;
    line-height: 1.5;
}

.srs-tag-manual {
    border-color: rgba(255, 159, 28, 0.5);
    color: #ff9f1c;
}

.srs-tag-scheduled {
    border-color: rgba(231, 29, 54, 0.55);
    color: #ff8a98;
}

/* ---------- Studio ---------- */
.srs-meter {
    height: 10px;
    border-radius: 5px;
    background: #2a2e33;
    overflow: hidden;
}

.srs-meter > div {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #4caf50 0%, #ff9f1c 70%, #e71d36 100%);
    transition: width 60ms linear;
}

.srs-live-on {
    border-color: #e71d36 !important;
    box-shadow: 0 0 0 1px #e71d36 inset;
}

/* ---------- Statistik ---------- */
.srs-chart {
    position: relative;
}

.srs-chart-max {
    position: absolute;
    top: -2px;
    right: 0;
    font-size: 0.7rem;
}
