/* --- GRAFISCHES DESIGN MIT DEINEM IPHONE-JPG --- */
body {
    /* Wir laden dein selbstgemachtes iPhone-JPG als Background */
    background-image: linear-gradient(rgba(255, 0, 0, 0.500), rgba(255, 0, 0, 0.500)), url('assets/backgrounds/background_graph_schanze.JPG');
    background-size: cover;          /* Bild füllt den ganzen Bildschirm aus */
    background-position: center;     /* Bild wird zentriert */
    background-attachment: fixed;    /* Bild bleibt beim Scrollen fixiert */
    
    color: #00ffcc;
    font-family: monospace;
    padding: 20px;
}

.player-box {
    /* Leichter Transparenz-Effekt (Glassmorphism), damit man dein Bild durchschimmern sieht */
    background: rgba(30, 30, 30, 0.85);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #00ffcc;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

video, audio {
    width: 100%;
    margin-top: 10px;
}

/* --- BUTTON-REIHEN ZENTRIERT --- */
.button-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
}

/* --- TRANSPARENTE BUTTONS MIT SCHWEBE- & LICHT-EFFEKT --- */
button,
.file-upload-label {
    background: rgba(0, 255, 204, 0.14);
    color: #00ffcc;
    border: 1px solid rgba(0, 255, 204, 0.65);
    border-radius: 24px;
    padding: 8px 14px;
    font-weight: bold;
    font-family: monospace;
    cursor: pointer;
    margin: 5px 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    backdrop-filter: blur(4px);
    box-shadow: 0 0 8px rgba(0, 255, 204, 0.22);
    transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.button-row button,
.button-row .file-upload-label {
    margin: 0;
}

button:hover,
.file-upload-label:hover {
    background: rgba(255, 0, 0, 0.22);
    color: #ffffff;
    border-color: #ff2a2a;
    transform: translateY(-3px);
    box-shadow: 0 0 18px rgba(255, 0, 0, 0.75), 0 8px 20px rgba(255, 0, 0, 0.45);
}

/* --- PLAYLIST CONTAINER LISTE --- */
#playlistContainer,
#channelListUI {
    list-style: none;
    padding-left: 0;
}

#channelListUI li {
    background: rgba(0, 255, 204, 0.08);
    border: 1px solid rgba(0, 255, 204, 0.35);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#channelListUI li:hover {
    background: rgba(255, 0, 0, 0.18);
    border-color: #ff2a2a;
    transform: translateY(-2px);
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.45);
}

/* --- DATEI-AUSWAHL BUTTONS IM SELBEN TRANSPARENTEN STIL --- */
input[type="file"]::file-selector-button {
    background: rgba(0, 255, 204, 0.14);
    color: #00ffcc;
    border: 1px solid rgba(0, 255, 204, 0.65);
    border-radius: 24px;
    padding: 8px 14px;
    font-weight: bold;
    cursor: pointer;
    margin-right: 10px;
    font-family: monospace;
    box-shadow: 0 0 8px rgba(0, 255, 204, 0.22);
    transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

input[type="file"]::file-selector-button:hover {
    background: rgba(255, 0, 0, 0.22);
    color: #fff;
    border-color: #ff2a2a;
    transform: translateY(-3px);
    box-shadow: 0 0 18px rgba(255, 0, 0, 0.75), 0 8px 20px rgba(255, 0, 0, 0.45);
}

/* Für ältere WebKit Browser / Kompatibilität */
input[type="file"]::-webkit-file-upload-button {
    background: rgba(0, 255, 204, 0.14);
    color: #00ffcc;
    border: 1px solid rgba(0, 255, 204, 0.65);
    border-radius: 24px;
    padding: 8px 14px;
    font-weight: bold;
    cursor: pointer;
    margin-right: 10px;
    font-family: monospace;
    box-shadow: 0 0 8px rgba(0, 255, 204, 0.22);
    transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

input[type="file"]::-webkit-file-upload-button:hover {
    background: rgba(255, 0, 0, 0.22);
    color: #fff;
    border-color: #ff2a2a;
    transform: translateY(-3px);
    box-shadow: 0 0 18px rgba(255, 0, 0, 0.75), 0 8px 20px rgba(255, 0, 0, 0.45);
}

/* --- EQUALIZER ZENTRIERT & AUF EINER LINIE --- */
.equalizer-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.equalizer-box br {
    display: none;
}

.equalizer-box label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    max-width: 360px;
    margin: 0;
}

.equalizer-box input[type="range"] {
    flex: 1;
    max-width: 190px;
    margin: 0;
    cursor: pointer;
    accent-color: #00ffcc;
}

/* --- STREAM SENDERLISTE & HINWEISE --- */
.stream-textarea {
    width: 100%;
    min-height: 90px;
    padding: 8px;
    margin-top: 10px;
    background: rgba(18, 18, 18, 0.85);
    color: #00ffcc;
    border: 1px solid rgba(0, 255, 204, 0.5);
    border-radius: 8px;
    font-family: monospace;
    box-sizing: border-box;
}

.stream-status {
    margin-top: 8px;
    font-size: 13px;
    color: #00ffcc;
    text-align: center;
}

/* --- LEUCHTENDES TICKER-ANZEIGEFENSTER (RECHTS NACH LINKS) --- */
.now-playing-ticker {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(12, 16, 18, 0.9);
    border: 1px solid rgba(0, 255, 204, 0.55);
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(0, 255, 204, 0.25), inset 0 0 8px rgba(0, 255, 204, 0.12);
    font-family: monospace;
}

.now-playing-text {
    display: inline-block;
    padding-left: 100%;
    color: #00ffcc;
    font-family: monospace;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-shadow: 0 0 8px rgba(0, 255, 204, 0.8), 0 0 18px rgba(0, 255, 204, 0.45);
    animation: ticker-scroll-rtl 16s linear infinite;
}

@keyframes ticker-scroll-rtl {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}
