/* =====================================================
   Showplan Today Panel – CSS
   /infusions/showplan_today_panel/templates/today_panel.css
   www.krazzfm.com
   ===================================================== */

/* ---- Variablen -------------------------------------- */
.stp-panel {
    --stp-bg:         #141414;
    --stp-surface:    #1e1e1e;
    --stp-surface2:   #2a2a2a;
    --stp-border:     rgba(255,255,255,.08);
    --stp-green:      #ff6b35;
    --stp-green-dim:  rgba(205, 107, 50, 0.3);
    --stp-green-glow: rgba(205, 107, 50, 0.15);
    --stp-orange:     #ff8c00;
    --stp-text:       #e8e8e8;
    --stp-text-muted: #888;
    --stp-live-red:   #e94560;
    --stp-radius:     6px;
    --stp-font:       'Inter', 'Segoe UI', Arial, sans-serif;
    --stp-font-mono:  'Courier New', 'Consolas', monospace;

    background: var(--stp-bg);
    border: 1px solid var(--stp-green-dim);
    border-radius: 10px;
    overflow: hidden;
    font-family: var(--stp-font);
    color: var(--stp-text);
    box-shadow: 0 4px 24px rgba(0,0,0,.5), 0 0 30px var(--stp-green-glow);
}

/* ---- Header ----------------------------------------- */
.stp-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    background: var(--stp-surface);
    border-bottom: 2px solid var(--stp-green);
}

.stp-header-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.stp-header-title {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--stp-green);
    flex: 1;
}

.stp-header-date {
    font-family: var(--stp-font-mono);
    font-size: .75rem;
    color: var(--stp-text-muted);
}

/* ---- Body ------------------------------------------- */
.stp-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stp-empty {
    padding: 24px 10px;
    text-align: center;
    color: var(--stp-text-muted);
    font-size: .88rem;
    font-style: italic;
}

/* ---- Sendungs-Card ---------------------------------- */
.stp-show {
    display: flex;
    align-items: stretch;
    background: var(--stp-surface);
    border: 1px solid var(--stp-border);
    border-radius: var(--stp-radius);
    overflow: hidden;
    transition: transform .15s, box-shadow .15s;
    position: relative;
}

.stp-show:hover {
    transform: translateX(2px);
    box-shadow: 0 3px 16px rgba(0,0,0,.4);
}

/* Vergangene Sendungen abgedunkelt */
.stp-show-past {
    opacity: .45;
}

/* Live-Sendung hervorgehoben */
.stp-show-live {
    opacity: 1;
    border-color: var(--stp-green-dim);
    box-shadow: 0 0 16px var(--stp-green-glow), inset 0 0 30px rgba(50,205,50,.04);
    animation: stp-live-pulse 3s ease-in-out infinite;
}

@keyframes stp-live-pulse {
    0%, 100% { box-shadow: 0 0 16px var(--stp-green-glow); }
    50%       { box-shadow: 0 0 28px rgba(50,205,50,.35); }
}

/* Farbbalken links */
.stp-color-bar {
    width: 4px;
    min-width: 4px;
    background: var(--show-color, #3a86ff);
    flex-shrink: 0;
}

/* Show-Inhalt */
.stp-show-inner {
    flex: 1;
    padding: 10px 12px;
    min-width: 0;
}

/* Live-Badge */
.stp-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--stp-live-red);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.stp-live-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: stp-blink 1s step-start infinite;
}

@keyframes stp-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* Uhrzeit */
.stp-show-time {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 4px;
}

.stp-time-start {
    font-family: var(--stp-font-mono);
    font-size: .95rem;
    font-weight: 700;
}

.stp-time-sep {
    font-size: .7rem;
    opacity: .7;
}

.stp-time-end {
    font-family: var(--stp-font-mono);
    font-size: .78rem;
    opacity: .7;
}

/* Sendungstitel */
.stp-show-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.3;
    word-break: break-word;
}

/* Moderator-Zeile */
.stp-show-host {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    color: var(--stp-text-muted);
    flex-wrap: wrap;
}

.stp-avatar {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,.2);
    flex-shrink: 0;
}

.stp-genre {
    background: var(--stp-surface2);
    color: var(--stp-green);
    font-size: .68rem;
    font-family: var(--stp-font-mono);
    padding: 1px 6px;
    border-radius: 10px;
    letter-spacing: .5px;
}

/* Beschreibung */
.stp-show-desc {
    margin-top: 5px;
    font-size: .75rem;
    color: var(--stp-text-muted);
    line-height: 1.5;
}

/* Badges */
.stp-badge-recurring,
.stp-badge-grussbox {
    font-size: .72rem;
    vertical-align: middle;
    margin-left: 3px;
    opacity: .8;
}
.stp-badge-recurring { color: var(--stp-green); }
.stp-badge-grussbox  { color: var(--stp-orange); }

/* Großes Avatar rechts */
.stp-avatar-big {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border-left: 1px solid var(--stp-border);
    flex-shrink: 0;
}

.stp-avatar-big img {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #fff;
    display: block;
}

/* ---- Footer ----------------------------------------- */
.stp-footer {
    padding: 16px 12px 14px;
    background: var(--stp-surface);
    border-top: 1px solid var(--stp-border);
    margin-top: 4px;
}

.stp-goto-btn {
    display: block;
    width: 100%;
    padding: 10px 0;
    background: #2a2a2a;
    border: 1px solid rgba(50,205,50,.5);
    border-radius: 6px;
    color: #32cd32;
    text-align: center;
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .5px;
    cursor: pointer;
    box-sizing: border-box;
    font-family: inherit;
    transition: background .15s;
}

.stp-goto-btn:hover {
    background: rgba(50,205,50,.15);
    box-shadow: 0 0 12px rgba(50,205,50,.2);
}

/* ---- Genre-Badge (unabhängig von sendeplan.css) ------ */
.sp-list-genre {
    background: #2a2a2a;
    color: #32cd32;
    font-size: .68rem;
    font-family: 'Courier New', 'Consolas', monospace;
    padding: 2px 7px;
    border-radius: 10px;
    letter-spacing: .5px;
    display: inline-block;
}
