/* Sendeplan für PHP-Fusion 9 – Copyright (C) 2026 Haschi & Panart – https://www.testseite-php-fussel.de */
/* =========================================================
   Sendeplan – PHP-Fusion 9
   ========================================================= */

/* ---------- Wochenplan ---------- */
.sp-week { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.sp-day { flex: 1 0 160px; min-width: 160px; background: rgba(0,0,0,.03); border-radius: 8px; padding: 8px; }
.sp-day.sp-today { background: rgba(217,83,79,.06); box-shadow: inset 0 0 0 2px rgba(217,83,79,.4); }
.sp-day-head { position: relative; font-weight: 700; text-align: center; padding: 4px 0 8px; border-bottom: 1px solid rgba(0,0,0,.08); margin-bottom: 8px; }
.sp-day-head small { display: block; font-weight: 400; opacity: .7; }
.sp-book-btn { position: absolute; top: 4px; right: 0; padding: 0 5px; }
.sp-empty { text-align: center; opacity: .4; padding: 10px 0; }

/* ---------- Sendungskarte mit Rahmen ---------- */
.sp-card {
    position: relative;
    background: rgba(127,127,127,.08);   /* halbtransparent: passt zu hellen und dunklen Themes */
    color: inherit;
    border: 1px solid rgba(127,127,127,.4);
    border-top: 4px solid #3a87ad;      /* Farbe der Sendung */
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
    font-size: 13px;
    text-align: center;
}
.sp-card + .sp-card { margin-top: 2px; }
.sp-card.sp-live {
    border-color: rgba(217,83,79,.55);
    background: rgba(217,83,79,.08);
    box-shadow: 0 2px 8px rgba(217,83,79,.18);
}
.sp-card-text { min-width: 0; }
.sp-time { font-size: 12px; font-weight: 600; opacity: .75; }
.sp-title { font-weight: 700; font-size: 15px; margin: 2px 0 3px; word-wrap: break-word; }
.sp-dj, .sp-genre { font-size: 12px; opacity: .85; }
.sp-desc { font-size: 12px; margin-top: 5px; opacity: .75; }
.sp-badges { margin-top: 6px; }
.sp-badges .label { display: inline-block; margin: 0 2px 3px 0; }

/* Breite Ansichten (Tag, Meine Sendungen, Listen): Bild links, Text rechts */
.sp-timeline .sp-card,
.sp-onair-current,
.sp-autodj-box {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    text-align: left;
}
.sp-timeline .sp-card .sp-imgwrap,
.sp-onair-current .sp-imgwrap,
.sp-autodj-box .sp-imgwrap { margin: 0; }
.sp-timeline .sp-card-text,
.sp-onair-current .sp-card-text,
.sp-autodj-box .sp-card-text { flex: 1; }
.sp-autodj-box { border: 0; box-shadow: none; padding: 0; margin: 0; background: transparent; }

/* ---------- Bilder: immer höchstens 100 x 100 Pixel ---------- */
.sp-imgwrap {
    position: relative;
    box-sizing: border-box;
    width: 100px;
    height: 100px;
    flex: 0 0 100px;
    margin: 0 auto 8px;
}
.sp-img {
    display: block;
    box-sizing: border-box;
    width: 100px;
    height: 100px;
    max-width: 100px;
    max-height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,.1);
}
.sp-img-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 36px;
    opacity: .85;
    border: 0;
}
.sp-img-autodj { background: linear-gradient(135deg, #5d6d7e, #95a5a6); }
.sp-card img, .sp-preview img, .sp-panel img, .sp-onair img { max-width: 100px; max-height: 100px; }
.sp-imgwrap-live .sp-img { box-shadow: 0 0 0 3px rgba(217,83,79,.3); }

/* ---------- Schwach rotes Mikrofon: Moderator ist auf Sendung ---------- */
.sp-mic {
    position: absolute;
    right: -7px;
    bottom: -7px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    color: rgba(217,83,79,.6);
    border: 1px solid rgba(217,83,79,.25);
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    animation: sp-mic 2.4s ease-in-out infinite;
}
@keyframes sp-mic {
    0%, 100% { color: rgba(217,83,79,.45); box-shadow: 0 0 0 0 rgba(217,83,79,.25); }
    50%      { color: rgba(217,83,79,.8);  box-shadow: 0 0 0 6px rgba(217,83,79,0); }
}
.sp-live-badge { background: rgba(217,83,79,.8) !important; }
.sp-live-badge .fa { font-size: 8px; vertical-align: middle; animation: sp-pulse 1.6s infinite; }
@keyframes sp-pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

/* ---------- AutoDJ (kein Moderator auf Sendung) ---------- */
.sp-autodj .sp-title { opacity: .9; }
.sp-autodj { border-top-color: #95a5a6; }

/* ---------- On-Air-Box auf der Sendeplan-Seite ---------- */
.sp-onair-box { border: 1px solid rgba(127,127,127,.4); border-radius: 8px; padding: 12px 15px; height: 100%; margin-bottom: 10px; background: rgba(127,127,127,.06); }
.sp-onair-box h4 { margin-top: 0; }
.sp-onair-title { font-size: 20px; font-weight: 700; }
.sp-progress { height: 6px; margin-bottom: 0; }
.sp-next li { padding: 3px 0; border-bottom: 1px dashed rgba(0,0,0,.08); }
.sp-next li:last-child { border-bottom: 0; }
.sp-next .sp-next-item { border-left: 3px solid #3a87ad; padding-left: 7px; margin-bottom: 4px; border-bottom: 0; }

/* ---------- Seitenpanels ---------- */
.sp-preview-day { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; opacity: .7; margin: 12px 0 6px; padding-bottom: 3px; border-bottom: 1px solid rgba(0,0,0,.08); }
.sp-preview-day:first-child { margin-top: 0; }
.sp-preview-item .sp-title { font-size: 14px; }

/* ---------- Panel-Karte: Bild links, Status rechts, Infos darunter ---------- */
.sp-pcard { text-align: left; padding: 10px; }
.sp-pcard-top { display: flex; gap: 10px; align-items: flex-start; }
.sp-pcard-top .sp-imgwrap { margin: 0; }
.sp-pcard-status { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.sp-pcard-info { margin-top: 8px; padding-top: 7px; border-top: 1px solid rgba(127,127,127,.25); }
.sp-pcard-info .sp-title { font-size: 14px; margin-top: 0; }
.sp-pcard-time { font-size: 12px; font-weight: 600; opacity: .8; padding: 2px 2px 0; }

/* Status-Kästen ("Auf Sendung", "Wunschbox", ...) */
.sp-status {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 5px 6px;
    border: 2px solid rgba(127,127,127,.5);
    border-radius: 5px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    color: inherit;
    text-decoration: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sp-status-live    { border-color: rgba(217,83,79,.65); background: rgba(217,83,79,.14); }
.sp-status-wish    { border-color: rgba(92,184,92,.75); background: rgba(92,184,92,.14); }
a.sp-status-wish:hover, a.sp-status-wish:focus { background: rgba(92,184,92,.3); color: inherit; }
.sp-status-soft    { opacity: .75; font-weight: 600; }
.sp-status-special { border-color: rgba(240,173,78,.75); background: rgba(240,173,78,.14); }
.sp-status-autodj  { border-color: rgba(149,165,166,.75); background: rgba(149,165,166,.14); }
/* schwach rotes, pulsierendes Mikrofon */
.sp-status-mic { color: rgba(217,83,79,.6); animation: sp-mic-icon 2.4s ease-in-out infinite; }
@keyframes sp-mic-icon { 0%, 100% { color: rgba(217,83,79,.45); } 50% { color: rgba(231,76,60,.95); } }

/* ---------- Sonstiges ---------- */
.sp-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.sp-djimg { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.sp-djimg-xs { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; vertical-align: middle; }
.sp-matrix td, .sp-matrix th { padding: 2px !important; font-size: 11px; }
.sp-matrix td { border: 1px solid rgba(0,0,0,.06); height: 18px; min-width: 18px; }

/* Wunschbox */
.sp-wish-choice .btn { padding: 12px 6px; font-weight: 600; }
.sp-wish-choice input[type=radio] { position: absolute; clip: rect(0,0,0,0); pointer-events: none; }
.sp-greeting { margin-top: 4px; padding: 4px 8px; background: rgba(92,184,92,.08); border-radius: 4px; font-size: 12px; }

@media (max-width: 767px) {
    .sp-week { flex-direction: column; }
    .sp-day { min-width: 0; }
}

/* Sondersendung (im Admin angehakt) */
.sp-special-text { display: inline-block; margin-bottom: 4px; padding: 2px 7px; border-radius: 4px; font-size: 12px; font-weight: 700; color: #f0ad4e; background: rgba(240,173,78,.14); border: 1px solid rgba(240,173,78,.5); }
.sp-special-label { white-space: normal; }
.sp-special-box { padding: 8px 10px; margin-bottom: 15px; border: 1px dashed rgba(240,173,78,.7); border-radius: 5px; }

/* Copyright */
.sp-copyright { margin-top: 15px; text-align: center; font-size: 11px; opacity: .6; }
.sp-copyright a { color: inherit; text-decoration: underline; }
