* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body { 
    background: #0f1015; 
    color: #fff; 
    font-family: 'Segoe UI', Arial, sans-serif; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: flex-start; 
    min-height: 100vh; 
    padding: 20px; 
}

/* 📦 DAS 1000px PORTAL-CHASSIS */
.portal-wrapper { 
    width: 100%; 
    max-width: 1800px; 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
}

/* 👑 SENDER-HEADER & NAVIGATION VEREINT (PIXEL-SPARER V1) */
.radio-header { 
    width: 100%; 
    text-align: center; 
    padding: 10px 10px 0 10px; /* Unten 0 Padding, damit das Menü bündig abschließt */
    background: #191b26; 
    border-radius: 5px; 
/*    border: 1px solid #00ffaa !important; /* Dünner giftgrüner Rahmen um das Gesamtpaket */
    box-shadow: 0 0 15px rgba(0, 255, 170, 0.4) !important; /* Sattes Neon-Leuchten */
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.radio-header img { 
    width: 100%; 
    max-width: 1760px; 
    height: 350px !important; /* 📐 Deine perfekte Kino-Höhe */
    object-fit: cover !important; /* ⭐ Schneidet das Bild verzerrungsfrei zu */
    
    /* 🎯 DIE RETTUNG FÜR DEINEN TEXT: Richtet den Zuschnitt an der Oberkante aus! */
    object-position: top !important; 
    
    border-radius: 4px; 
    display: block; 
    margin: 0 auto;
}



/* 🗺️ INTEGRATIVE DROPDOWN-NAVIGATION */
.navbar { 
    background: transparent; /* Hintergrund wird vom Header übernommen */
    border: none !important; /* Alter Rahmen fliegt raus! */
    border-top: 1px solid rgba(0, 255, 170, 0.2) !important; /* Dezenter Trennstrich unter dem Logo */
    width: 100%;
}
.navbar ul { 
    list-style: none; 
    display: flex; 
    position: relative; 
}
.navbar li { 
    position: relative; 
}
.navbar a { 
    display: block; 
    color: #fff; 
    padding: 12px 20px; 
    text-decoration: none; 
    font-size: 13px; 
    font-weight: bold; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    transition: all 0.2s; 
}
.navbar a:hover { 
    color: #00ffaa; 
    background: rgba(0, 255, 170, 0.05); 
}

/* Das Dropdown-Fenster bricht sauber nach unten aus */
.dropdown-menu { 
    display: none; 
    position: absolute; 
    top: 100%; 
    left: 0; 
    background: #191b26; 
    border: 1px solid #00ffaa; 
    border-radius: 0 0 6px 6px; 
    min-width: 160px; 
    z-index: 9999; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.5); 
}
.dropdown-menu a { 
    text-transform: none; 
    font-weight: normal; 
    padding: 10px 15px; 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
}
.dropdown-menu a:last-child { 
    border-bottom: none; 
}
.navbar li:hover .dropdown-menu { 
    display: block; 
}


/* 🛒 DAS NEUE 3-SPALTEN HAUPT-GRID (1440px) */
.main-content-grid {
    display: grid;
    /* Links: 270px Player | Mitte: flexibler Inhalt | Rechts: 300px Radio-Info */
    grid-template-columns: 360px 1fr 360px; 
    gap: 20px;
    width: 100%;
    align-items: start;
}

/* 📊 STYLING FÜR DIE FESTSTEHENDE RECHTE INFO-SPALTE */
.right-info-sidebar {
    background: #191b26;
    border: 1px solid rgba(102, 252, 241, 0.2);
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 0 15px rgba(102, 252, 241, 0.1);
}

/* 🎰 RECHTECKIGER WEBPLAYER (CHASSIS-SCHUTZ) */
.radio-container { 
    background: #191b26; 
    border: 1px solid #00ffaa; 
    box-shadow: 0 0 30px rgba(0,255,170,0.15); 
    border-radius: 12px; 
    padding: 25px; 
    text-align: center; 
    height: 100%; 
    width: 100%; /* Füllt die 320px-Spalte exakt aus */
    justify-content: space-between; /* Verteilt die Elemente (Uhr, Logo, Buttons) gleichmäßig bis ganz nach unten */
    display: flex;
    flex-direction: column;
}
.login-container { 
    background: #191b26; 
    border: 1px solid #00ffaa; 
    box-shadow: 0 0 30px rgba(0,255,170,0.15); 
    border-radius: 12px; 
    padding: 25px; 
    text-align: center; 
    height: fit-content; 
    width: 100%; /* Füllt die 320px-Spalte exakt aus */
}

/* 🎯 RECHTECKIGES COVER/LOGO IM PLAYER */
.cover-area { 
    width: 100%; 
    max-width: 270px; 
    height: 180px; 
    background: #0b0c10; 
    margin: 0 auto 20px auto; 
    border-radius: 8px; 
    border: 2px solid #00ffaa; 
    overflow: hidden; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    box-shadow: 0 0 15px rgba(0,255,170,0.2); 
    transition: all 0.3s ease; 
}

.cover-area img { 
    max-width: 100%; 
    max-height: 100%; 
    width: auto;
    height: auto;
    object-fit: contain; 
    padding: 2px; /* Gibt dem Logo minimalen Sicherheitsabstand zum grünen Rahmen */
    box-sizing: border-box; /* Verhindert, dass das Padding das Bild vergrößert */
}


.playing-active { 
    animation: rmePulseEckig 2s infinite alternate; 
}
@keyframes rmePulseEckig {
    0% { box-shadow: 0 0 10px rgba(0,255,170,0.2); border-color: #00ffaa; }
    100% { box-shadow: 0 0 25px rgba(0,255,170,0.5); border-color: #ffed00; }
}

.meta-box { 
    min-height: 60px; 
    margin-bottom: 20px; 
    padding: 0 5px; 
}
.track-title { 
    font-weight: bold; 
    font-size: 14px; 
    color: #fff; 
    margin-bottom: 6px; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    white-space: nowrap; 
}
.artist-name { 
    font-size: 12px; 
    color: #ffed00; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    white-space: nowrap; 
    font-weight: 500; 
}

.play-button { 
    background: #00ffaa; 
    color: #0b0c10; 
    border: none; 
    padding: 12px; 
    font-weight: bold; 
    border-radius: 6px; 
    cursor: pointer; 
    font-size: 13px; 
    text-transform: uppercase; 
    width: 100%; 
    letter-spacing: 0.5px; 
    transition: all 0.2s ease; 
    box-shadow: 0 4px 10px rgba(0,255,170,0.1); 
}
.play-button:hover { 
    background: #00cc88; 
    transform: translateY(-1px); 
}

/* 📝 RECHTE INHALTS-BOX */
.content-box-right { 
    background: #191b26; 
    border: 1px solid rgba(255,255,255,0.05); 
    border-radius: 12px; 
    padding: 25px; 
    box-shadow: 0 0 20px rgba(0,0,0,0.3); 
}
.content-box-title { 
    color: #00ffaa; 
    font-size: 16px; 
    font-weight: bold; 
    text-transform: uppercase; 
    margin-bottom: 12px; 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
    padding-bottom: 6px; 
}
.content-text {
    color: #bbb; 
    font-size: 14px; 
    line-height: 1.6;
}

/* 📱 MOBILE OPTIMIERUNG */
@media (max-width: 768px) {
    .navbar ul { flex-direction: column; }
    .dropdown-menu { position: relative; top: 0; box-shadow: none; border-radius: 0; width: 100%; }
    .main-content-grid { grid-template-columns: 1fr; }
}
/* =========================================================================
   🗂️ DESIGN FÜR DIE AUFGETEILTE RECHTE SEITE (SENDEPLAN & TEAM)
   ========================================================================= */

/* Das innere Grid teilt den Raum rechts in 2 Spalten auf */
.portal-inner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Zwei gleich breite Spalten */
    gap: 15px;
    margin-top: 15px;
}

/* Die Karten für die einzelnen Zonen */
.portal-zone-card {
    background: #111217;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 15px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.zone-title {
    color: #ffed00;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    border-bottom: 1px dashed rgba(255,255,255,0.05);
    padding-bottom: 4px;
}

/* Sendeplan-Styling */
.sendeplan-liste {
    list-style: none;
    font-size: 12px;
    color: #bbb;
}
.sendeplan-liste li {
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.02);
    display: flex;
    justify-content: space-between;
}
.sendeplan-liste li:last-child {
    border-bottom: none;
}
.sendeplan-liste span {
    color: #66fcf1;
    font-weight: 500;
}

/* Team-Steckbriefe Styling */
.team-avatar-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.01);
    padding: 8px;
    border-radius: 6px;
    border-left: 3px solid #00ffaa;
}
.avatar-dummy {
    width: 45px;
    height: 45px;
    background: #191b26;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    border: 1px solid rgba(255,255,255,0.05);
}
.avatar-text {
    font-size: 14px;
    color: #fff;
    line-height: 1.4;
}

/* 📱 HANDY-ABSCHIRMER: Auf Smartphones stapeln sich die 2 Spalten flüssig untereinander! */
@media (max-width: 900px) {
    .portal-inner-grid {
        grid-template-columns: 1fr;
    }
}
/* Styling für den großen Sendeplan im Content-Bereich */
.sendeplan-liste-full {
    list-style: none;
    font-size: 13px;
}
.sendeplan-liste-full li {
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    display: grid;
    grid-template-columns: 180px 150px 1fr; /* Teilt Zeit, DJ und Show perfekt ein */
    gap: 10px;
}
.sendeplan-liste-full li:hover {
    background: rgba(0, 255, 170, 0.02);
}
.content-info-sub {
    font-size: 14px;
    color: #999;
    margin-top: 4px;
}
.sende-time { color: #66fcf1; font-weight: bold; }
.sende-dj { color: #ffed00; font-weight: bold; }
.sende-show { color: #fff; }

/* =========================================================================
   ❌ DESIGN FÜR DIE LÖSCH-TABELLEN IM ADMIN-PANEL
   ========================================================================= */
.admin-table { 
    width: 100%; 
    border-collapse: collapse; 
    font-size: 11px; 
    margin-top: 10px; 
    color: #bbb; 
}
.admin-table th { 
    background: rgba(255,255,255,0.03); 
    color: #fff; 
    text-align: left; 
    padding: 6px; 
    border-bottom: 1px solid rgba(255,255,255,0.1); 
}
.admin-table td { 
    padding: 6px; 
    border-bottom: 1px solid rgba(255,255,255,0.02); 
}
.btn-del { 
    color: #ff3333; 
    text-decoration: none; 
    font-weight: bold; 
}
.btn-del:hover { 
    color: #fff; 
    background: #ff3333; 
    padding: 2px 5px; 
    border-radius: 3px; 
}
/* =========================================================================
   🔑 NAVBAR-ALIGNMENT FÜR DEN STUDIO-LOGIN (Verhindert das Hochrutschen)
   ========================================================================= */
.navbar ul li.admin-nav-item a {
    color: #ff3333 !important; /* Giftiges Studio-Rot */
    font-weight: bold;
    border: 1px dashed rgba(255, 51, 51, 0.4);
    border-radius: 4px;
    padding: 6px 12px;
    /* 🎯 FIX 1: Das margin-left: 15px hier gelöscht, damit es die Boxen nicht blockiert! */
    display: inline-block;
    vertical-align: middle;
    transition: all 0.3s ease;
}

.navbar ul li.admin-nav-item a:hover {
    background: rgba(255, 51, 51, 0.15);
    color: #fff !important;
    border: 1px solid #ff3333;
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.6);
}

/* 🎯 FIX 2: Wir sagen dem Listenpunkt der Admin-Navi, wie er sich im Grid verhalten soll */
.navbar ul li.admin-nav-item {
    display: flex;
    align-items: center;
}


/* =========================================================================
   📸 TEAM-GRID ALIGNMENT (Zwingt Bild und Text nebeneinander)
   ========================================================================= */
.team-avatar-box {
    display: flex !important; /* Aktiviert das Zeilen-Layout */
    flex-direction: row !important; /* Bild links, Text rechts */
    align-items: center; /* Zentriert Bild und Text vertikal zueinander */
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    text-align: left; /* Zwingt den Text nach links */
}


.avatar-text {
    flex-grow: 1; /* Der Text nutzt den restlichen Platz in der Breite */
}
/* =========================================================================
   📸 BILDER-SCHUTZ: Verhindert das Abschneiden von DJ-Fotos
   ========================================================================= */
.team-avatar-box img {
    flex-shrink: 0; /* Verhindert, dass der Text das Bild quetscht */
    width: 80px !important;
    height: 80px !important;
    
    /* 🛡️ DAS GEHEIMNIS: Zeigt das komplette Bild ohne Beschnitt! */
    object-fit: contain !important; 
    
    /* Schicker, dezenter Hintergrund, falls das Bild nicht quadratisch ist */
    background: rgba(0, 0, 0, 0.4); 
    
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-right: 15px; /* Abstand zum Text rechts */
}
/* =========================================================================
   🛡️ NAVBAR-REPARATUR (Verhindert das Quetschen der rechten Boxen)
   ========================================================================= */
.navbar ul {
    display: flex !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Zwingt alle rechten Box-Überschriften wieder in ihr normales Layout */
.player-zone, .content-box-title, .player-status {
    display: block !important; /* Löst das Quetschen komplett auf */
    width: 100% !important;
    white-space: normal !important; /* Erlaubt normalen Zeilenumbruch */
}
/* 🌟 MODAL OVERLAY STYLES */
.custom-modal {
    display: none; /* Standardmäßig unsichtbar */
    position: fixed;
    z-index: 9999; /* Immer ganz oben */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 12, 16, 0.85); /* Abgedunkelter Hintergrund */
    backdrop-filter: blur(5px); /* Schicker Weichzeichner-Effekt */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #1f2833;
    border: 2px solid #00ffaa;
    box-shadow: 0 0 25px rgba(0, 255, 170, 0.4);
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #66fcf1;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #00ffaa;
}

@keyframes modalFadeIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
#wunschbox-dropdown-form, #gaestebuch-dropdown-form {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}
/* 🟢 PULSIERENDER LIVE-PUNKT */
.live-pulse-dot {
    width: 10px;
    height: 10px;
    background: #00ffaa; /* Giftgrünes Live-Licht */
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(0, 255, 170, 0.7);
    animation: live-pulsing 1.8s infinite;
}

@keyframes live-pulsing {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 170, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 255, 170, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 170, 0);
    }
}
