@font-face {
    font-family: 'Bebas Neue';
    src: url('../fonts/bebas-neue/BebasNeue-Regular.woff2') format('woff2'),
         url('../fonts/bebas-neue/BebasNeue-Regular.woff') format('woff'),
         url('../fonts/bebas-neue/BebasNeue-Regular.ttf') format('truetype'),
         url('../fonts/bebas-neue/BebasNeue-Regular.eot?#iefix') format('embedded-opentype'),
         url('../fonts/bebas-neue/BebasNeue-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* =====================
   GRUNDLAYOUT
   ===================== */

body {
    margin: 0;
    background: var(--bg-body);
    color: var(--text-main);
    font-family: Arial, sans-serif;
}

.player-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.header-player-area {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 15px;
    width: 100%;
    max-width: 960px;
}

.header-live-now,
.header-now-playing,
.header-player-icons {
    flex: 0 0 300px;
    max-width: 300px;
    min-width: 0;
}


/* =====================
   GEMEINSAME BOX
   ===================== */

.header-box {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 2px solid var(--accent);
    background: linear-gradient(135deg, var(--accent-soft) 0%, rgba(0, 0, 0, 0.9) 100%);
    box-shadow: 0 4px 20px var(--accent-glow);
    height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.header-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(50, 205, 50, 0.1), transparent);
    animation: shine 3s infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes shine {
    0%   { left: -100%; }
    100% { left: 100%; }
}

/* =====================
   LIVE-NOW BOX
   ===================== */

.live-now-compact {
    padding: 10px 20px;
    backdrop-filter: blur(10px);
}

.live-indicator-small {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.live-dot-small {
    width: 10px;
    height: 10px;
    background: var(--live-red);
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 10px var(--live-red), 0 0 20px rgba(255, 0, 0, 0.5);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.3); opacity: 0.6; }
}

.live-label,
.live-live-label {
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-size: 16px;
    color: var(--accent);
    letter-spacing: 2px;
    font-weight: bold;
}

.live-current-show {
    margin-bottom: 8px;
}

.current-show-name {
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-size: 18px;
    color: var(--text-main);
    margin: 0 0 4px 0;
    line-height: 1.2;
    letter-spacing: 1px;
}

.current-show-moderator,
.current-show-time {
    color: var(--text-soft);
    font-size: 12px;
    margin: 0 0 2px 0;
    font-weight: 600;
}

.header-buttons-row {
    display: flex;
    gap: 6px;
}

/* =====================
   BUTTONS
   ===================== */

.btn-listen-compact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 5px 20px;
    background: linear-gradient(135deg, var(--accent) 0%, #28a428 100%);
    color: var(--text-main);
    border-radius: 5px;
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-size: 16px;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px var(--accent-glow);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-listen-compact:hover {
    background: linear-gradient(135deg, var(--accent-hover1) 0%, var(--accent-hover2) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(50, 205, 50, 0.6);
    color: var(--text-main);
    border-color: var(--btn-outline-border);
}

.btn-listen-compact i {
    font-size: 18px;
    animation: pulse-icon 2s infinite;
}

.btn-live-next {
    flex: 1;
    background: var(--warning);
    border-color: var(--warning);
}

.btn-live-gb {
    flex: 1;
    background: var(--danger);
    border-color: var(--danger);
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.15); }
}

/* =====================
   NOW-PLAYING BOX
   ===================== */

.header-now-playing {
    flex-shrink: 0;
}

.now-playing-compact {
    position: relative;
    padding: 10px 15px;
    color: var(--text-main);
    overflow: hidden;
}

.np-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(12px);
    transform: scale(1.1);
    z-index: 1;
}

.np-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 2;
}

.now-playing-inner {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.now-playing-header-small {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-family: 'Bebas Neue', Arial, sans-serif;
    letter-spacing: 1px;
    font-size: 14px;
}

.now-playing-header-small i {
    color: var(--accent);
}

.now-playing-label {
    color: var(--accent);
}

.now-playing-main {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 1;
}

.np-cover {
    flex: 0 0 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
    background: rgba(0, 0, 0, 0.5);
}

.np-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.np-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.now-playing-info .np-section {
    margin-bottom: 4px;
}

.np-content {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn.btn-tracklist {
    margin-top: 8px;
    font-size: 12px;
    padding: 4px 10px;
}

/* =====================
   PLAYER ICONS BOX
   ===================== */

.player-icons-box {
    padding: 10px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.player-icons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 6px;
    flex: 1;
    align-content: center;
}

.player-icon-item {
    display: flex;
    font-size: 18px !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: var(--icon-tile-bg);
    border-radius: 4px;
    transition: all 0.25s ease;
    text-decoration: none;
    border: 1px solid var(--icon-tile-border);
    height: 100%;
    width: 100%;
    color: var(--text-main);
    z-index: 1;
}

.player-icon-item:hover {
    background: var(--icon-tile-hoverbg);
    border-color: var(--icon-tile-hoverbor);
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(5, 182, 28, 0.3);
}

.player-icon-item i {
    font-size: 22px;
    margin-bottom: 3px;
    transition: all 0.3s ease;
}

.player-icon-item:hover i {
    transform: scale(1.15);
    filter: brightness(1.2);
}

.player-name {
    font-size: 14px;
    line-height: 1.1;
    color: var(--text-soft);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.icon-winamp {
    color: var(--icon-winamp);
}

.icon-mediaplayer {
    color: var(--icon-mediaplayer);
}

.icon-popup {
    color: var(--icon-popup);
}

.icon-radiode {
    color: var(--icon-radiode);
}

/* =====================
   TRACKLIST MODAL
   ===================== */

.tracklist-modal {
    background: radial-gradient(circle at top left, var(--accent-soft), #050505 55%);
    border-radius: 8px;
    border: 2px solid var(--accent);
    box-shadow: 0 0 25px rgba(50, 205, 50, 0.7);
    color: var(--text-main);
}

.tracklist-modal .modal-header,
.tracklist-modal .modal-footer {
    border-color: var(--modal-border-soft);
}

.tracklist-modal .modal-title {
    font-family: 'Bebas Neue', Arial, sans-serif;
    letter-spacing: 1px;
    color: var(--accent);
}

.tracklist-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    color: var(--text-main);
}

tracklist-table thead {
    background: rgba(0, 0, 0, 0.9);
}

.tracklist-table thead th {
    padding: 6px 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
    color: var(--text-head-soft);
    border-bottom: 1px solid var(--modal-border-strong);
}

.tracklist-table tbody tr {
    background: linear-gradient(90deg, var(--track-bg1), var(--track-bg2));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tracklist-table tbody tr:last-child {
    border-bottom: none;
}

.tracklist-table tbody tr:hover {
    background: linear-gradient(90deg, var(--track-hover1), var(--track-hover2));
}

.tracklist-table td {
    padding: 6px 10px;
    font-size: 12px;
    vertical-align: middle;
    border: none;
}

.tl-song-cell {
    vertical-align: middle;
}

.tl-song-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tl-cover {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.tl-cover:hover {
    transform: scale(1.1);
}

.tl-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.tl-title {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tl-artist {
    font-size: 11px;
    color: var(--text-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tl-info-cell {
    vertical-align: middle;
    text-align: right;
    width: 36px;
}

.tl-info-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    padding: 0;
}

.tl-info-btn:hover {
    background: rgba(50, 205, 50, 0.2);
    border-color: var(--accent);
    color: var(--accent);
}

/* =====================
   SONG-DETAIL MODAL
   ===================== */

.sd-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

sd-cover {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sd-cover img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(50, 205, 50, 0.5);
}

.sd-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.sd-title {
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-size: 28px;
    letter-spacing: 1px;
    color: var(--text-main);
    line-height: 1.1;
}

.sd-artist {
    font-size: 16px;
    color: var(--accent);
    font-weight: 600;
}

.sd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.sd-tag {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
}

.sd-tag:empty {
    display: none;
}

.sd-widget-wrapper {
    margin-top: 16px;
}

/* =====================
   RESPONSIVE
   ===================== */

@media (max-width: 991px) {
    .header-player-area {
        flex-direction: column;
        align-items: center;
    }

    .header-live-now,
    .header-now-playing,
    .header-player-icons {
        flex: 0 0 100%;
        max-width: 400px;
        width: 100%;
    }

    .header-box {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .player-wrapper {
        padding: 10px;
    }

    .header-live-now,
    .header-now-playing,
    .header-player-icons {
        max-width: 100%;
    }

    .live-now-compact {
        padding: 10px 14px;
    }

    .now-playing-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .np-cover {
        flex: 0 0 70px;
        width: 70px;
        height: 70px;
    }

    .sd-layout {
        flex-direction: column;
        align-items: center;
    }

    .sd-cover {
        flex: 0 0 auto;
        width: 100%;
        align-items: center;
    }

    .sd-cover img {
        width: 160px;
        height: 160px;
    }

    .sd-title {
        font-size: 22px;
    }

    .tracklist-table thead th,
    .tracklist-table td {
        padding: 4px 6px;
        font-size: 11px;
    }

    .tl-cover {
        width: 26px;
        height: 26px;
    }
}