.rsp-panel { width: 100%; }
.rsp-widget {
    border-radius: 12px;
    padding: 12px 14px;
    color: #e8eaed;
    font-size: 13px;
    box-shadow: 0 4px 20px rgba(0,0,0,.25);
    margin-bottom: 10px;
}
.rsp-widget__title {
    font-weight: 700;
    font-size: 14px;
    margin: 0 0 8px;
    color: #7dd3fc;
    text-align: center;
}
.rsp-widget__dj {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}
.rsp-widget__dj img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #3b82f6;
}
.rsp-widget__song {
    display: block;
    width: 200px !important;
    min-width: 200px;
    max-width: 200px;
    flex: 0 0 200px;
    box-sizing: border-box;
    background: rgba(0,0,0,.25);
    border-radius: 8px;
    padding: 4px 8px;
    margin: 8px 0;
    overflow: hidden;
}
.rsp-widget__song--inline {
    display: inline-block;
    vertical-align: middle;
    width: 200px !important;
    min-width: 200px;
    max-width: 200px;
    margin: 0 4px;
    padding: 2px 6px;
    overflow: hidden;
}
.rsp-widget__song-marquee {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    line-height: 1.4;
    font-size: 13px;
    font-family: inherit;
    overflow: hidden;
}
.rsp-widget--main .rsp-widget__dj > div:not(.rsp-widget__meta) {
    min-width: 0;
    max-width: 100%;
}
.rsp-widget__meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    opacity: .85;
    margin-bottom: 8px;
}
.rsp-players { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.rsp-player-link img { border-radius: 4px; transition: transform .15s; }
.rsp-player-link:hover img { transform: scale(1.1); }
.rsp-wishbox-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    vertical-align: middle;
}
.rsp-whatsapp {
    display: inline-block;
    vertical-align: middle;
    margin-left: 4px;
    line-height: 0;
}
.rsp-whatsapp img {
    display: block;
    border-radius: 4px;
    transition: transform .15s;
}
.rsp-whatsapp:hover img { transform: scale(1.1); }
.rsp-whatsapp-form { margin-top: 8px; }
.rsp-wishbox-form {
    margin-top: 12px;
    padding: 12px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #1e293b;
}
.rsp-wishbox-form h4 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 14px;
}
.rsp-wishbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.rsp-wishbox-grid .rsp-full { grid-column: 1 / -1; }
.rsp-wishbox-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    color: #334155;
}
.rsp-required {
    color: #dc2626;
    font-weight: 700;
    margin-left: 2px;
}
.rsp-wishbox-hint {
    margin: 0 0 10px;
    font-size: 11px;
    color: #64748b;
    line-height: 1.4;
}
.rsp-wishbox-form .textbox,
.rsp-wishbox-form textarea,
.rsp-wishbox-form input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    color: #0f172a;
    background: #fff;
    border: 1px solid #94a3b8;
}
.rsp-wishbox-form .button,
.rsp-wishbox-form button[type="submit"] {
    margin-top: 8px;
}
.rsp-wishbox-feedback,
.rsp-wishbox-wait {
    color: #334155;
    font-size: 13px;
    margin-top: 8px;
}
.rsp-table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 13px; }
.rsp-table th, .rsp-table td { padding: 6px 8px; border: 1px solid #cbd5e1; }
.rsp-table th { background: #e2e8f0; color: #0f172a; font-weight: 600; }
.rsp-table td { background: #fff; color: #334155; }
.rsp-error, .rsp-empty, .rsp-offline { text-align: center; padding: 12px; opacity: .8; }
.rsp-offline-img { display: block; margin: 0 auto 8px; border: 0; }
.rsp-row { display: flex; gap: 8px; flex-wrap: wrap; }
.rsp-row-item { flex: 1; min-width: 200px; }
.rsp-webplayer {
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    border-radius: 14px;
    padding: 24px;
    max-width: 400px;
    margin: 0 auto;
    color: #fff;
    text-align: center;
}
.rsp-webplayer audio { width: 100%; margin-top: 12px; }
.rsp-admin-stats { text-align: center; padding: 10px; font-weight: 600; }

/* Infoseite, Wunschbox-Admin – dunkles Theme (Panel-Hintergrund) */
.rsp-page {
    color: #e8eaed;
}
.rsp-page p,
.rsp-page label,
.rsp-page form,
.rsp-page li {
    color: #e2e8f0;
}
.rsp-page h4,
.rsp-page strong {
    color: #f8fafc;
}
.rsp-page a {
    color: #7dd3fc;
}
.rsp-page a:hover {
    color: #bae6fd;
}
.rsp-page .textbox,
.rsp-page input.textbox,
.rsp-page textarea.textbox,
.rsp-page select.textbox {
    color: #f1f5f9;
    background: #1e293b;
    border: 1px solid #475569;
}
.rsp-page .textbox::placeholder {
    color: #94a3b8;
}
.rsp-page .rsp-warning {
    padding: 10px 12px;
    margin: 0 0 12px;
    background: rgba(120, 53, 15, .45);
    border: 1px solid #d97706;
    border-radius: 6px;
    color: #fde68a;
}
.rsp-page .rsp-wishbox-hint {
    color: #94a3b8;
}
.rsp-page .rsp-required {
    color: #f87171;
}
.rsp-page .rsp-admin-form {
    padding: 10px 0;
    line-height: 1.8;
}
.rsp-page #rsp-wish-admin,
.rsp-page #rsp-listeners {
    color: #e8eaed;
}
.rsp-page .rsp-table th,
.rsp-page .rsp-table td {
    border-color: #334155;
}
.rsp-page .rsp-table th {
    background: #1e293b;
    color: #f1f5f9;
}
.rsp-page .rsp-table td {
    background: #0f172a;
    color: #e2e8f0;
}
.rsp-page .rsp-table td small {
    color: #94a3b8;
}
.rsp-page .rsp-wish-empty,
.rsp-page .rsp-empty,
.rsp-page .rsp-offline {
    color: #cbd5e1;
    opacity: 1;
}
.rsp-page .rsp-admin-stats {
    color: #f1f5f9;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 6px;
    margin-bottom: 10px;
}
.rsp-page .rsp-bulk {
    background: #0f172a;
}
.rsp-stream-select {
    text-align: center;
    margin-bottom: 12px;
}
.rsp-page .rsp-stream-select select {
    min-width: 200px;
    max-width: 100%;
    color: #f1f5f9;
    background: #1e293b;
    border: 1px solid #475569;
}
.rsp-page .rsp-wish-notify-hint {
    margin: 8px 0 0;
    font-size: 12px;
    color: #94a3b8;
    font-style: italic;
}
.rsp-captcha {
    margin: 8px 0;
}

.rsp-copyright {
    margin: 10px 0 0;
    padding-top: 8px;
    border-top: 1px solid rgba(127, 127, 127, .25);
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
    opacity: .85;
}
.rsp-copyright a {
    color: inherit;
    text-decoration: none;
}
.rsp-copyright a:hover {
    text-decoration: underline;
}
.rsp-copyright--compact {
    margin-top: 6px;
    padding-top: 4px;
    font-size: 10px;
    border-top: none;
    opacity: .65;
}
.rsp-admin-panel .rsp-copyright {
    margin-top: 16px;
}

/* Modern Theme-Skins */
.rsp-skin-classic {
    background: linear-gradient(145deg, #1a1d29 0%, #252a3a 100%);
}
.rsp-skin-classic .rsp-widget__title { color: #7dd3fc; }
.rsp-skin-classic .rsp-widget__dj img { border-color: #3b82f6; }

/* Kompakt – horizontale Leiste (Mitte), schmale Seitenleiste */
.rsp-skin-compact {
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
    border-left: 4px solid #22d3ee;
    padding: 10px 12px;
}
.rsp-skin-compact .rsp-widget__title { color: #67e8f9; }
.rsp-compact-bar {
    display: flex;
    gap: 12px;
    align-items: center;
}
.rsp-compact-bar__avatar {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #22d3ee;
}
.rsp-compact-bar__body { flex: 1; min-width: 0; }
.rsp-compact-bar__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}
.rsp-compact-bar__dj { color: #f8fafc; }
.rsp-compact-bar__station {
    font-size: 11px;
    opacity: .75;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.rsp-widget__song--bar { margin: 4px 0; }
.rsp-compact-bar__meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    opacity: .85;
}
.rsp-compact-bar__actions {
    flex-shrink: 0;
    text-align: center;
}
.rsp-compact-bar__actions .rsp-players {
    flex-direction: column;
    align-items: center;
}
.rsp-compact-side__head {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}
.rsp-compact-side__head img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #22d3ee;
}
.rsp-compact-side__label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #22d3ee;
}
.rsp-compact-side__station {
    font-size: 11px;
    opacity: .7;
}
.rsp-compact-side__meta { margin-bottom: 6px; }

/* Glas – Frosted Glass */
.rsp-skin-glass {
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
}
.rsp-skin-glass .rsp-widget__title {
    color: #e2e8f0;
    margin: 0;
}
.rsp-glass__header {
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.rsp-glass__label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .05em;
    opacity: .65;
    margin-bottom: 2px;
}
.rsp-glass__dj {
    margin-bottom: 10px;
}
.rsp-glass__dj img {
    border-radius: 12px;
    border-color: rgba(147, 197, 253, .6);
}
.rsp-glass__track { margin-bottom: 10px; }
.rsp-widget__song--glass {
    background: rgba(0, 0, 0, .2);
    border: 1px solid rgba(255, 255, 255, .08);
}
.rsp-glass__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
    margin-bottom: 10px;
}
.rsp-glass__chips > div,
.rsp-glass__chips > span {
    background: rgba(255, 255, 255, .08);
    border-radius: 999px;
    padding: 3px 10px;
}
.rsp-glass__players { text-align: center; }
.rsp-glass__dj-side img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(147, 197, 253, .5);
}
.rsp-glass__dj-side {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}
.rsp-glass__meta { margin-bottom: 8px; }

/* Hell – für helle Panel-Hintergründe */
.rsp-skin-light {
    background: #f8fafc;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(15, 23, 42, .08);
}
.rsp-skin-light .rsp-widget__title { color: #0f766e; }
.rsp-skin-light .rsp-widget__song {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #334155;
}
.rsp-skin-light .rsp-widget__meta { color: #64748b; }
.rsp-light__top {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}
.rsp-light__top .rsp-widget__title {
    margin: 0;
    text-align: left;
}
.rsp-light__dj {
    display: flex;
    gap: 10px;
    align-items: center;
}
.rsp-light__dj img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #14b8a6;
}
.rsp-light__dj--side {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}
.rsp-light__dj--side img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #14b8a6;
}
.rsp-light__badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    color: #fff;
    background: #14b8a6;
    border-radius: 4px;
    padding: 2px 6px;
    margin-bottom: 4px;
}
.rsp-light__track { margin-bottom: 10px; }
.rsp-light__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.rsp-light__players { flex-shrink: 0; }

/* Studio – Live-Banner, On-Air-Look */
.rsp-skin-studio {
    background: #111827;
    border: 1px solid #374151;
    padding: 0;
    overflow: hidden;
}
.rsp-skin-studio .rsp-widget__title { display: none; }
.rsp-studio__banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, #7f1d1d 0%, #1f2937 100%);
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
}
.rsp-studio__banner--side {
    margin: -12px -14px 10px;
    padding: 6px 10px;
    font-size: 12px;
}
.rsp-studio__live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #fecaca;
    font-size: 11px;
    letter-spacing: .1em;
}
.rsp-studio__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
    animation: rsp-live-pulse 1.4s ease-in-out infinite;
}
@keyframes rsp-live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .5; transform: scale(.85); }
}
.rsp-studio__name {
    flex: 1;
    color: #f9fafb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rsp-studio__grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 14px;
    padding: 12px 14px;
}
.rsp-studio__dj {
    display: flex;
    gap: 10px;
    align-items: center;
    grid-row: span 2;
}
.rsp-studio__dj img {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #ef4444;
}
.rsp-studio__dj--side {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 0 14px 8px;
    grid-row: auto;
}
.rsp-studio__dj--side img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #ef4444;
}
.rsp-studio__role {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #9ca3af;
    margin-bottom: 2px;
}
.rsp-studio__now { min-width: 0; }
.rsp-widget__song--studio {
    background: #1f2937;
    border: 1px solid #374151;
}
.rsp-studio__stats {
    font-size: 11px;
    color: #d1d5db;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.rsp-studio__footer {
    padding: 8px 14px 12px;
    border-top: 1px solid #374151;
    text-align: center;
}
.rsp-studio__meta { padding: 0 14px 8px; }
.rsp-skin-studio.rsp-widget--side { padding: 12px 14px; }
.rsp-skin-studio.rsp-widget--side .rsp-studio__banner--side {
    margin: -12px -14px 10px;
}

/* Legacy-Theme (Tabellen-Slice-Layout) – Overrides für PF9 templates/default.css + Bootstrap */
.rsp-legacy {
    overflow-x: auto;
    max-width: 100%;
    text-align: center;
    box-sizing: content-box;
}
.panel-body .rsp-legacy,
.side-body .rsp-legacy,
.overflow-hide .rsp-legacy {
    overflow-x: auto !important;
    overflow-y: visible !important;
}
.rsp-legacy,
.rsp-legacy table,
.rsp-legacy td {
    box-sizing: content-box !important;
}
.rsp-legacy table,
.rsp-legacy table.table {
    width: auto !important;
    max-width: none !important;
    border-collapse: collapse;
    border-spacing: 0;
    margin: 0 auto;
    table-layout: fixed;
}
.rsp-legacy table#Tabelle_01 {
    width: 701px !important;
    min-width: 701px;
    table-layout: auto;
}
/* Nur max-width zurücksetzen – width/height aus HTML-Attributen behalten (Slice-Tabelle) */
.rsp-legacy #Tabelle_01 tr {
    font-size: 0;
    line-height: 0;
}
.rsp-legacy #Tabelle_01 img {
    max-width: none !important;
    max-height: none !important;
    border: 0;
    display: block;
    vertical-align: top;
}
.thumb .rsp-legacy img,
.panel-body .rsp-legacy img,
.side-body .rsp-legacy img,
.rsp-legacy .img-responsive {
    max-width: none !important;
    max-height: none !important;
}
.rsp-legacy td[background] {
    background-repeat: no-repeat !important;
    background-size: auto !important;
    background-position: left top !important;
}
.rsp-legacy td {
    padding: 0 !important;
    margin: 0;
    vertical-align: top;
    line-height: 0;
    font-size: 0;
}
.rsp-legacy td.modi,
.rsp-legacy td.track {
    height: 16px !important;
    max-height: 16px !important;
    overflow: hidden !important;
    line-height: 16px !important;
    font-size: 12px !important;
    white-space: nowrap;
    vertical-align: top;
}
.rsp-legacy td[background]:not(.modi):not(.track) {
    line-height: normal;
    font-size: 12px;
}
.rsp-legacy td.modi center,
.rsp-legacy td.modi a {
    display: block;
    line-height: 16px !important;
    margin: 0;
    padding: 0;
}
.rsp-legacy td img[width="80"][height="100"] {
    width: 80px !important;
    height: 100px !important;
    display: block;
}
.rsp-legacy center {
    line-height: normal;
    font-size: 12px;
}
.rsp-legacy marquee {
    display: block;
    line-height: 16px !important;
    height: 16px !important;
    margin: 0;
    padding: 0;
    font-size: 12px;
}
.rsp-legacy .rsp-players--legacy {
    display: inline;
    white-space: nowrap;
    line-height: normal;
    font-size: 0;
}
.rsp-legacy .rsp-players--legacy .rsp-player-link {
    display: inline-block;
    vertical-align: middle;
    margin: 0 1px;
}
.rsp-legacy .rsp-players--legacy .rsp-player-link img {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    display: inline-block;
    vertical-align: middle;
}
.rsp-legacy .rsp-wishbox-btn img {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    display: inline-block;
}
.rsp-legacy .rsp-whatsapp img {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    display: inline-block;
    vertical-align: middle;
}
