* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #1f2937 0, #020617 55%, #000 100%);
    color: #e5e7eb;
    min-height: 100vh;
}

.app-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.player-card {
    background: rgba(15, 23, 42, 0.96);
    border-radius: 20px;
    padding: 22px 20px 16px;
    width: 100%;
    max-width: 420px;
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(148, 163, 184, 0.08);
    backdrop-filter: blur(12px);
}

.player-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.station-logo {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 0 0 2px rgba(248, 250, 252, 0.1);
}

.player-header h1 {
    font-size: 20px;
    font-weight: 700;
}

.tagline {
    font-size: 13px;
    color: #9ca3af;
}

.audio-wrap {
    background: #020617;
    border-radius: 14px;
    padding: 12px 12px 14px;
    margin-bottom: 14px;
    box-shadow: inset 0 0 0 1px rgba(30, 64, 175, 0.4);
}

audio {
    width: 100%;
    margin-bottom: 10px;
}

.primary-btn,
.secondary-btn {
    border-radius: 999px;
    padding: 9px 18px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
}

.primary-btn {
    width: 100%;
    background: linear-gradient(to right, #f97316, #facc15);
    color: #111827;
    box-shadow: 0 8px 18px rgba(249, 115, 22, 0.5);
}

.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.7);
}

.secondary-btn {
    background: #0f172a;
    color: #e5e7eb;
    border: 1px solid rgba(148, 163, 184, 0.5);
}

.secondary-btn:hover {
    background: #111827;
}

.info-block {
    margin-top: 14px;
}

.info-block h2 {
    font-size: 15px;
    margin-bottom: 4px;
}

.now-playing {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.sub-hint {
    font-size: 12px;
    color: #9ca3af;
    min-height: 16px;
}

.history-list {
    list-style: none;
    margin-top: 6px;
    max-height: 210px;
    overflow-y: auto;
    padding-right: 4px;
    font-size: 14px;
}

.history-list li {
    padding: 4px 0;
    border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

.history-list li:last-child {
    border-bottom: none;
}

.track-time {
    color: #9ca3af;
    font-size: 12px;
    margin-right: 6px;
}

.track-artist {
    font-weight: 600;
}

.track-title {
    color: #e5e7eb;
}

.muted {
    color: #6b7280;
}

.controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}

.status-badge {
    font-size: 12px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(75, 85, 99, 0.6);
    white-space: nowrap;
}

.status-badge.ok {
    color: #bbf7d0;
    border-color: rgba(34, 197, 94, 0.9);
}

.status-badge.err {
    color: #fecaca;
    border-color: rgba(239, 68, 68, 0.9);
}

.footer-note {
    margin-top: 12px;
    font-size: 11px;
    color: #6b7280;
    text-align: center;
}
/* ===== Cover art za Trenutno svira ===== */

.now-cover-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 12px 0 6px;
}

.now-cover {
    width: 160px;
    height: 160px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.6),
        0 0 0 2px rgba(255, 255, 255, 0.07);
    transition: transform 0.25s ease;
}

.now-cover:hover {
    transform: scale(1.03);
}
