/*
Theme Name: ChartzoneFm
Theme URI: https://chartfunkfm.de
Author: Chartzone FM
Description: Modernes Mattschwarz-Neon-Orange-Cyan WordPress Theme für Chartzone FM mit laut.fm/hits API, Top 100 Playlist, allen Streamlinks und Twitch Studiocam.
Version: 3.0
Text Domain: chartzonefm
*/

:root {
    --bg-dark: #06070a;
    --bg-card: #101218;
    --bg-card-hover: #171b24;
    --neon-orange: #ff7b00;
    --neon-cyan: #00e5ff;
    --twitch-purple: #9146ff;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-glow: rgba(255, 123, 0, 0.28);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-image:
        radial-gradient(circle at 12% 10%, rgba(255, 123, 0, 0.08), transparent 35%),
        radial-gradient(circle at 88% 85%, rgba(0, 229, 255, 0.08), transparent 35%);
    min-height: 100vh;
}

a { color: var(--neon-cyan); }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.site-header {
    text-align: center;
    padding: 55px 20px;
    border-bottom: 1px solid var(--border-glow);
    background: linear-gradient(180deg, rgba(16, 18, 24, 0.92) 0%, rgba(6, 7, 10, 1) 100%);
}

.brand-wrap {
    font-size: inherit;
    line-height: 1.1;
}

.brand-title,
.brand-title:hover {
    display: inline-block;
    text-decoration: none;
    font-size: 3.3rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-style: italic;
    background: linear-gradient(90deg, #ffffff 0%, #ff9e44 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 0 18px rgba(255, 123, 0, 0.45));
}

.brand-title span {
    background: linear-gradient(90deg, #00e5ff 0%, #66f2ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 18px rgba(0, 229, 255, 0.5));
}

.brand-tagline {
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 0.92rem;
    margin-top: 8px;
    text-transform: uppercase;
}

/* Live Audio Player Card */
.player-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 16px;
    padding: 25px;
    margin: 28px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 260px;
}

.play-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--neon-orange), var(--neon-cyan));
    color: #000;
    font-size: 1.7rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 22px rgba(255, 123, 0, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.play-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 0 32px rgba(0, 229, 255, 0.65);
}

.now-playing-info .live-badge {
    display: inline-block;
    background: rgba(255, 123, 0, 0.14);
    color: var(--neon-orange);
    border: 1px solid var(--neon-orange);
    padding: 2px 10px;
    border-radius: 99px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.track-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
}

.track-artist {
    color: var(--neon-cyan);
    font-size: 0.96rem;
}

.player-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.volume-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

input[type="range"] {
    accent-color: var(--neon-orange);
    cursor: pointer;
}

/* Studiocam Header Button */
.studiocam-quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--twitch-purple);
    color: #fff;
    text-decoration: none;
    padding: 11px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 0 18px rgba(145, 70, 255, 0.45);
    transition: transform 0.2s ease, background 0.2s ease;
}

.studiocam-quick-btn:hover {
    background: #772ce8;
    transform: translateY(-2px);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

@media (max-width: 860px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .brand-title {
        font-size: 2.2rem;
    }
}

.card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
}

.card h2 {
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--neon-orange);
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Top 100 Playlist & Suchfilter */
.playlist-search {
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 14px;
    border-radius: 10px;
    border: 1px solid rgba(0, 229, 255, 0.28);
    background: #07090d;
    color: #fff;
    font-size: 0.92rem;
}

.playlist-search:focus {
    outline: none;
    border-color: var(--neon-orange);
}

.playlist-scroll-box {
    max-height: 620px;
    overflow-y: auto;
    padding-right: 6px;
}

.playlist-scroll-box::-webkit-scrollbar {
    width: 6px;
}

.playlist-scroll-box::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon-orange), var(--neon-cyan));
    border-radius: 99px;
}

.playlist-list {
    list-style: none;
}

.playlist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 11px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: background 0.15s ease;
}

.playlist-item:hover {
    background: var(--bg-card-hover);
}

.playlist-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.playlist-rank {
    min-width: 34px;
    height: 32px;
    border-radius: 8px;
    background: rgba(0, 229, 255, 0.1);
    color: var(--neon-cyan);
    font-weight: 800;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.playlist-item:first-child .playlist-rank {
    background: var(--neon-orange);
    color: #000;
}

.playlist-song strong {
    display: block;
    color: #fff;
    font-size: 0.96rem;
}

.playlist-song span {
    color: var(--text-muted);
    font-size: 0.84rem;
}

.playlist-time {
    font-size: 0.78rem;
    color: var(--neon-orange);
    background: rgba(255, 123, 0, 0.12);
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

/* Studiocam Card */
.studiocam-card {
    border: 1px solid rgba(145, 70, 255, 0.45);
    background: linear-gradient(145deg, #131122 0%, #101218 100%);
}

.studiocam-card h2 {
    color: #c084fc;
}

.twitch-embed-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    margin: 14px 0;
    border: 1px solid rgba(145, 70, 255, 0.35);
    background: #000;
}

.twitch-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Stream Links Grid */
.stream-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.stream-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.3);
    color: #fff;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.86rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
}

.stream-link-btn:hover {
    background: var(--neon-orange);
    border-color: var(--neon-orange);
    color: #000;
    box-shadow: 0 0 15px rgba(255, 123, 0, 0.45);
}

.stream-url-copy {
    margin-top: 15px;
    background: #07090d;
    padding: 12px;
    border-radius: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    font-size: 0.82rem;
    color: var(--text-muted);
    word-break: break-all;
}

.copy-btn {
    margin-top: 8px;
    background: rgba(0, 229, 255, 0.14);
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.copy-btn:hover {
    background: var(--neon-cyan);
    color: #000;
}

/* Info Box */
.info-content p {
    color: #cbd5e1;
    margin-bottom: 12px;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 28px 20px;
    color: var(--text-muted);
    font-size: 0.86rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 20px;
    margin-bottom: 10px;
}

.footer-links a {
    color: #dbe4f0;
    text-decoration: none;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--neon-orange);
}

/* Normale Seiten (Impressum, Datenschutz …) */
.page-wrap {
    padding-top: 40px;
    padding-bottom: 60px;
    max-width: 860px;
}

.page-wrap h1 {
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--neon-orange);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-glow);
}

.page-wrap .entry { color: #cbd5e1; }
.page-wrap .entry h2 { color: var(--neon-cyan); font-size: 1.15rem; margin: 22px 0 8px; }
.page-wrap .entry p { margin-bottom: 14px; }
