/* ===========================================================
   POWER RADIO - REQUEST MODAL + BADGE
   Prefix: pr-req- (voorkomt botsingen met index.css)
   =========================================================== */

/* ==================== REQUEST-BADGE (now-playing) ==================== */
.pr-request-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(78, 203, 113, 0.12);
    border: 1px solid rgba(78, 203, 113, 0.35);
    color: var(--secondary, #4ecb71);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
    letter-spacing: 0.2px;
    animation: prReqGlow 2.2s ease-in-out infinite;
}

.pr-request-badge i {
    font-size: 11px;
}

@keyframes prReqGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(78, 203, 113, 0.35); }
    50%      { box-shadow: 0 0 0 8px rgba(78, 203, 113, 0); }
}

/* ==================== MODAL BREEDTE ==================== */
#prRequestModal .pr-modal {
    max-width: 620px;
    width: 100%;
}

#prRequestModal .pr-modal-body {
    padding: 20px 24px;
    text-align: left;
    max-height: 65vh;
    overflow-y: auto;
}

/* ==================== STATUS MELDINGEN ==================== */
.pr-req-msg {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-bottom: 16px;
    display: none;
}
.pr-req-msg.pr-req-show {
    display: flex;
    align-items: center;
    gap: 10px;
}
.pr-req-msg.pr-req-error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: #ff8080;
}
.pr-req-msg.pr-req-success {
    background: rgba(78, 203, 113, 0.1);
    border: 1px solid rgba(78, 203, 113, 0.3);
    color: var(--secondary, #4ecb71);
}

/* ==================== SELECTED TRACK ==================== */
.pr-req-selected {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--card-elevated, #1a1d25);
    border: 1px solid var(--border-subtle, #252830);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 18px;
    min-height: 72px;
}
.pr-req-selected.pr-req-empty {
    justify-content: center;
    color: var(--text-muted, #7a8294);
    font-size: 0.85rem;
    text-align: center;
}
.pr-req-selected-cover {
    width: 60px; height: 60px;
    border-radius: 8px;
    background: var(--card-bg, #16181d);
    border: 1px solid var(--border-subtle, #252830);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.pr-req-selected-cover img { width: 100%; height: 100%; object-fit: cover; }
.pr-req-selected-cover i { color: var(--text-muted, #7a8294); font-size: 22px; }
.pr-req-selected-info { flex: 1; min-width: 0; }
.pr-req-selected-title {
    font-size: 0.95rem; font-weight: 600; margin-bottom: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pr-req-selected-artist {
    font-size: 0.8rem; color: var(--text-secondary, #b8becc);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pr-req-change-btn {
    background: transparent;
    border: 1px solid var(--border-subtle, #252830);
    color: var(--text-secondary, #b8becc);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    flex-shrink: 0;
}
.pr-req-change-btn:hover {
    color: var(--primary, #4f9dff);
    border-color: var(--primary, #4f9dff);
    background: var(--primary-faint, rgba(79, 157, 255, 0.05));
}

/* ==================== SEARCH ==================== */
.pr-req-search-box {
    position: relative;
    margin-bottom: 16px;
}
.pr-req-search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card-elevated, #1a1d25);
    border: 1px solid var(--border-subtle, #252830);
    border-radius: 10px;
    padding: 10px 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.pr-req-search-wrap:focus-within {
    border-color: var(--primary, #4f9dff);
    box-shadow: 0 0 0 3px rgba(79, 157, 255, 0.1);
}
.pr-req-search-wrap i {
    color: var(--text-muted, #7a8294);
    font-size: 0.95rem;
}
.pr-req-search-wrap input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary, #e8eaed);
    font-family: inherit;
    font-size: 0.92rem;
}
.pr-req-search-wrap input::placeholder {
    color: var(--text-muted, #7a8294);
}

/* Dropdown — in-flow (geen overlay) */
.pr-req-search-results {
    position: relative;
    margin-top: 8px;
    background: var(--card-elevated, #1a1d25);
    border: 1px solid var(--border-subtle, #252830);
    border-radius: 10px;
    max-height: 240px;
    overflow-y: auto;
    display: none;
}
.pr-req-search-results.pr-req-active {
    display: block;
}
.pr-req-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid var(--border-subtle, #252830);
}
.pr-req-search-item:last-child { border-bottom: none; }
.pr-req-search-item:hover {
    background: var(--primary-faint, rgba(79, 157, 255, 0.05));
}
.pr-req-search-item-cover {
    width: 40px; height: 40px;
    border-radius: 6px;
    background: var(--card-bg, #16181d);
    border: 1px solid var(--border-subtle, #252830);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.pr-req-search-item-cover img { width: 100%; height: 100%; object-fit: cover; }
.pr-req-search-item-cover i { color: var(--text-muted, #7a8294); font-size: 14px; }
.pr-req-search-item-info { flex: 1; min-width: 0; }
.pr-req-search-item-title {
    font-size: 0.85rem; font-weight: 600; margin-bottom: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    color: var(--text-primary, #e8eaed);
}
.pr-req-search-item-artist {
    font-size: 0.72rem; color: var(--text-secondary, #b8becc);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pr-req-search-item-year {
    font-size: 0.68rem;
    color: var(--text-muted, #7a8294);
    flex-shrink: 0;
}
.pr-req-search-info {
    padding: 16px 14px;
    text-align: center;
    color: var(--text-muted, #7a8294);
    font-size: 0.82rem;
}

/* ==================== FORMULIER ==================== */
.pr-req-form-row { margin-bottom: 14px; }
.pr-req-form-row label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary, #b8becc);
    margin-bottom: 6px;
}
.pr-req-form-row label .pr-req-req {
    color: #ff4444;
}
.pr-req-form-row input,
.pr-req-form-row textarea {
    width: 100%;
    background: var(--card-elevated, #1a1d25);
    border: 1px solid var(--border-subtle, #252830);
    color: var(--text-primary, #e8eaed);
    border-radius: 10px;
    padding: 11px 14px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.pr-req-form-row input:focus,
.pr-req-form-row textarea:focus {
    outline: none;
    border-color: var(--primary, #4f9dff);
    box-shadow: 0 0 0 3px rgba(79, 157, 255, 0.1);
}
.pr-req-form-row textarea {
    resize: vertical;
    min-height: 60px;
}
.pr-req-form-row input::placeholder,
.pr-req-form-row textarea::placeholder {
    color: var(--text-muted, #7a8294);
}

.pr-req-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.pr-req-btn-cancel,
.pr-req-btn-submit {
    flex: 1;
    padding: 12px 20px;
    border-radius: 10px;
    border: none;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.pr-req-btn-cancel {
    background: transparent;
    border: 1px solid var(--border-subtle, #252830);
    color: var(--text-secondary, #b8becc);
}
.pr-req-btn-cancel:hover {
    background: var(--card-elevated, #1a1d25);
    color: var(--text-primary, #e8eaed);
}
.pr-req-btn-submit {
    background: var(--primary, #4f9dff);
    color: #fff;
    box-shadow: 0 4px 15px rgba(79, 157, 255, 0.3);
}
.pr-req-btn-submit:hover:not(:disabled) {
    background: var(--primary-dark, #3d87e0);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 157, 255, 0.5);
}
.pr-req-btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==================== LIGHT MODE ==================== */
body.light-mode .pr-req-selected,
body.light-mode .pr-req-search-wrap,
body.light-mode .pr-req-search-results,
body.light-mode .pr-req-form-row input,
body.light-mode .pr-req-form-row textarea {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .pr-req-selected-title,
body.light-mode .pr-req-search-item-title {
    color: #1a1d25;
}

/* ==================== MOBIEL ==================== */
@media (max-width: 600px) {
    .pr-request-badge {
        font-size: 11px;
        padding: 5px 11px;
    }
    #prRequestModal .pr-modal-body {
        padding: 16px 18px;
    }
}

/* ==================== TOP 5 MEEST AANGEVRAAGD ==================== */
#pr-top-requests {
    max-width: 1240px;
    margin: 40px auto;
    padding: 0 20px;
}

.pr-top-container {
    background: var(--card-bg, #16181d);
    border: 1px solid var(--border-subtle, #252830);
    border-radius: 16px;
    padding: 32px 28px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.pr-top-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-primary, #e8eaed);
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 28px;
    letter-spacing: -0.02em;
    flex-wrap: wrap;
}

.pr-top-heading i {
    color: #ffcc00;
    font-size: 22px;
    filter: drop-shadow(0 0 8px rgba(255, 204, 0, 0.5));
}

.pr-top-heading-week {
    display: inline-block;
    background: rgba(79, 157, 255, 0.1);
    border: 1px solid rgba(79, 157, 255, 0.25);
    color: #4f9dff;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.pr-top-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    align-items: start;
}

.pr-top-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 14px 8px;
    border-radius: 12px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    position: relative;
}

.pr-top-item:hover {
    background: rgba(79, 157, 255, 0.05);
    border-color: rgba(79, 157, 255, 0.25);
    transform: translateY(-3px);
}

/* ==================== RANK BADGES ==================== */
.pr-top-rank {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    border-radius: 50%;
    z-index: 3;
    color: #0f1115;
    transition: all 0.3s ease;
}

.pr-top-rank-1 {
    width: 44px;
    height: 44px;
    font-size: 18px;
    background: linear-gradient(135deg, #ffd700, #ffae00);
    box-shadow: 0 4px 14px rgba(255, 215, 0, 0.55),
                0 0 20px rgba(255, 215, 0, 0.3);
    animation: prGoldPulse 2.2s ease-in-out infinite;
}

.pr-top-rank-2 {
    width: 40px;
    height: 40px;
    font-size: 16px;
    background: linear-gradient(135deg, #d8d8d8, #a8a8a8);
    box-shadow: 0 4px 12px rgba(200, 200, 200, 0.4);
}

.pr-top-rank-3 {
    width: 36px;
    height: 36px;
    font-size: 15px;
    background: linear-gradient(135deg, #cd7f32, #a0651f);
    box-shadow: 0 4px 12px rgba(205, 127, 50, 0.4);
}

.pr-top-rank-4 {
    width: 32px;
    height: 32px;
    font-size: 14px;
    background: linear-gradient(135deg, #8a5a3a, #6a4228);
    color: #ffd7b5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.pr-top-rank-5 {
    width: 28px;
    height: 28px;
    font-size: 13px;
    background: linear-gradient(135deg, #8a5a3a, #6a4228);
    color: #ffd7b5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0.85;
}

/* ==================== MEDAILLE-TEKST (speels schuin) ==================== */
.pr-top-medal {
    position: absolute;
    top: 52px;
    left: 12px;
    font-weight: 800;
    letter-spacing: 0.3px;
    white-space: nowrap;
    z-index: 4;
    transform: rotate(-15deg);
    transform-origin: left center;
    pointer-events: none;
    font-style: italic;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.pr-top-medal-1 {
    font-size: 16px;
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6),
                 0 2px 4px rgba(0, 0, 0, 0.5);
}

.pr-top-medal-2 {
    font-size: 14px;
    color: #d8d8d8;
    text-shadow: 0 0 6px rgba(200, 200, 200, 0.5),
                 0 2px 4px rgba(0, 0, 0, 0.5);
}

.pr-top-medal-3 {
    font-size: 13px;
    color: #e0a56a;
    text-shadow: 0 0 6px rgba(205, 127, 50, 0.5),
                 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* ==================== COVER ==================== */
.pr-top-cover {
    width: 100%;
    aspect-ratio: 1;
    max-width: 150px;
    background: var(--card-elevated, #1a1d25);
    border: 2px solid var(--border-subtle, #252830);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    transition: all 0.2s ease;
}

.pr-top-item:hover .pr-top-cover {
    border-color: #4f9dff;
    box-shadow: 0 0 20px rgba(79, 157, 255, 0.3);
}

.pr-top-item[data-idx="0"] .pr-top-cover {
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.15);
}

.pr-top-item[data-idx="0"]:hover .pr-top-cover {
    border-color: #ffd700;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.5);
}

.pr-top-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pr-top-cover i {
    color: var(--text-muted, #7a8294);
    font-size: 32px;
}

/* ==================== ×N BADGE ==================== */
.pr-top-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: linear-gradient(135deg, #4ecb71, #3bb564);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    padding: 5px 11px;
    border-radius: 14px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
    z-index: 2;
    letter-spacing: 0.3px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    min-width: 38px;
    text-align: center;
}

.pr-top-count.pr-top-count-1 {
    background: linear-gradient(135deg, #7a8294, #5a6274);
}

/* ==================== INFO ==================== */
.pr-top-info {
    text-align: center;
    width: 100%;
    min-width: 0;
}

.pr-top-title {
    color: var(--text-primary, #e8eaed);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.pr-top-artist {
    color: var(--text-secondary, #b8becc);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==================== LOADING / EMPTY ==================== */
.pr-top-loading,
.pr-top-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px;
    color: var(--text-muted, #7a8294);
    font-size: 14px;
}

.pr-top-loading i {
    margin-right: 8px;
    color: #4f9dff;
}

/* ==================== GOUD PULSE ANIMATIE ==================== */
@keyframes prGoldPulse {
    0%, 100% {
        box-shadow: 0 4px 14px rgba(255, 215, 0, 0.55),
                    0 0 20px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 4px 18px rgba(255, 215, 0, 0.8),
                    0 0 30px rgba(255, 215, 0, 0.5);
    }
}

/* ==================== LIGHT MODE ==================== */
body.light-mode .pr-top-container {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .pr-top-heading,
body.light-mode .pr-top-title {
    color: #1a1d25;
}

body.light-mode .pr-top-artist {
    color: #4a5568;
}

body.light-mode .pr-top-heading-week {
    background: rgba(79, 157, 255, 0.15);
    color: #3d87e0;
}

/* ==================== MOBIEL ==================== */
@media (max-width: 900px) {
    .pr-top-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .pr-top-rank-1 { width: 38px; height: 38px; font-size: 16px; }
    .pr-top-rank-2 { width: 34px; height: 34px; font-size: 15px; }
    .pr-top-rank-3 { width: 32px; height: 32px; font-size: 14px; }
    .pr-top-medal { top: 46px; left: 10px; }
    .pr-top-medal-1 { font-size: 14px; }
    .pr-top-medal-2 { font-size: 13px; }
    .pr-top-medal-3 { font-size: 12px; }
}

@media (max-width: 600px) {
    .pr-top-container {
        padding: 24px 16px 20px;
    }
    .pr-top-heading {
        font-size: 18px;
        gap: 8px;
    }
    .pr-top-heading-week {
        font-size: 11px;
        display: block;
        margin: 4px auto 0;
    }
    .pr-top-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .pr-top-grid .pr-top-item:nth-child(5) {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }
    .pr-top-rank-1 { width: 34px; height: 34px; font-size: 15px; }
    .pr-top-rank-2 { width: 30px; height: 30px; font-size: 14px; }
    .pr-top-rank-3 { width: 28px; height: 28px; font-size: 13px; }
    .pr-top-rank-4 { width: 26px; height: 26px; font-size: 12px; }
    .pr-top-rank-5 { width: 24px; height: 24px; font-size: 11px; }
    .pr-top-medal {
        top: 42px;
        left: 8px;
        transform: rotate(-15deg) scale(0.85);
    }
    .pr-top-medal-1 { font-size: 12px; }
    .pr-top-medal-2 { font-size: 11px; }
    .pr-top-medal-3 { font-size: 10px; }
    .pr-top-count { font-size: 11px; padding: 4px 9px; min-width: 32px; }
    .pr-top-title { font-size: 12px; }
    .pr-top-artist { font-size: 11px; }
}

/* ==================== TOP 5 — FOOTER KNOP ==================== */
.pr-top-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle, #252830);
}

.pr-top-history-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--border-subtle, #252830);
    color: var(--text-secondary, #b8becc);
    padding: 6px 14px;
    border-radius: 20px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 6px;
    white-space: nowrap;
}

.pr-top-history-btn i {
    font-size: 12px;
}

.pr-top-history-btn:hover {
    background: var(--primary-faint, rgba(79, 157, 255, 0.05));
    color: var(--primary, #4f9dff);
    border-color: var(--primary, #4f9dff);
    transform: translateY(-2px);
}

.pr-top-history-btn i {
    font-size: 14px;
}

/* ==================== WEEK HISTORY OVERLAY ==================== */
.pr-wh-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pr-wh-overlay.pr-wh-active { display: flex; }

.pr-wh-panel {
    width: 100%;
    max-width: 720px;
    max-height: 85vh;
    background: var(--card-bg, #16181d);
    border: 1px solid var(--border-subtle, #252830);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: prWhIn 0.25s ease;
}

@keyframes prWhIn {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.pr-wh-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-subtle, #252830);
    background: var(--card-elevated, #1a1d25);
}

.pr-wh-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary, #e8eaed);
}

.pr-wh-title i {
    color: var(--primary, #4f9dff);
    font-size: 1rem;
}

.pr-wh-close {
    background: transparent;
    border: 1px solid var(--border-subtle, #252830);
    color: var(--text-secondary, #b8becc);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}

.pr-wh-close:hover {
    background: rgba(255, 68, 68, 0.15);
    color: #ff4444;
    border-color: rgba(255, 68, 68, 0.35);
}

/* Jaar-tabs */
.pr-wh-years {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle, #252830);
    overflow-x: auto;
    background: var(--card-elevated, #1a1d25);
}

.pr-wh-years:empty {
    display: none;
}

.pr-wh-year {
    background: transparent;
    border: 1px solid var(--border-subtle, #252830);
    color: var(--text-secondary, #b8becc);
    padding: 8px 18px;
    border-radius: 20px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.pr-wh-year:hover {
    background: var(--primary-faint, rgba(79, 157, 255, 0.05));
    color: var(--primary, #4f9dff);
    border-color: var(--primary, #4f9dff);
}

.pr-wh-year.pr-wh-year-active {
    background: var(--primary, #4f9dff);
    color: #fff;
    border-color: var(--primary, #4f9dff);
    box-shadow: 0 4px 12px rgba(79, 157, 255, 0.35);
}

/* Weken-lijst */
.pr-wh-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

.pr-wh-week {
    background: var(--card-elevated, #1a1d25);
    border: 1px solid var(--border-subtle, #252830);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.pr-wh-week:last-child { margin-bottom: 0; }

.pr-wh-week-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(79, 157, 255, 0.05);
    border-bottom: 1px solid var(--border-subtle, #252830);
}

.pr-wh-week-num {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary, #4f9dff);
}

.pr-wh-week-range {
    font-size: 0.8rem;
    color: var(--text-muted, #7a8294);
    font-weight: 500;
}

.pr-wh-week-items {
    padding: 8px;
}

.pr-wh-week-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    transition: background 0.15s;
}

.pr-wh-week-item:hover {
    background: rgba(79, 157, 255, 0.05);
}

.pr-wh-week-rank {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
    color: #0f1115;
}

.pr-wh-rank-1 { background: linear-gradient(135deg, #ffd700, #ffae00); }
.pr-wh-rank-2 { background: linear-gradient(135deg, #d8d8d8, #a8a8a8); }
.pr-wh-rank-3 { background: linear-gradient(135deg, #cd7f32, #a0651f); }
.pr-wh-rank-4 { background: linear-gradient(135deg, #8a5a3a, #6a4228); color: #ffd7b5; }
.pr-wh-rank-5 { background: linear-gradient(135deg, #8a5a3a, #6a4228); color: #ffd7b5; opacity: 0.85; }

.pr-wh-week-cover {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: var(--card-bg, #16181d);
    border: 1px solid var(--border-subtle, #252830);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.pr-wh-week-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pr-wh-week-cover i {
    color: var(--text-muted, #7a8294);
    font-size: 14px;
}

.pr-wh-week-info {
    flex: 1;
    min-width: 0;
}

.pr-wh-week-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary, #e8eaed);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.pr-wh-week-artist {
    font-size: 0.72rem;
    color: var(--text-secondary, #b8becc);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pr-wh-week-count {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--secondary, #4ecb71);
    background: rgba(78, 203, 113, 0.1);
    border: 1px solid rgba(78, 203, 113, 0.3);
    padding: 3px 10px;
    border-radius: 12px;
    flex-shrink: 0;
}

.pr-wh-week-empty {
    padding: 16px;
    text-align: center;
    color: var(--text-muted, #7a8294);
    font-size: 0.82rem;
    font-style: italic;
}

.pr-wh-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted, #7a8294);
}

.pr-wh-empty i {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
    opacity: 0.5;
}

.pr-wh-empty p {
    margin: 0;
    font-size: 0.9rem;
}

/* Light mode */
body.light-mode .pr-wh-panel {
    background: rgba(255, 255, 255, 0.98);
}

body.light-mode .pr-wh-header,
body.light-mode .pr-wh-years,
body.light-mode .pr-wh-week,
body.light-mode .pr-wh-week-header {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .pr-wh-title,
body.light-mode .pr-wh-week-title {
    color: #1a1d25;
}

body.light-mode .pr-wh-week-artist,
body.light-mode .pr-wh-year {
    color: #4a5568;
}

body.light-mode .pr-top-history-btn {
    color: #4a5568;
    border-color: rgba(0, 0, 0, 0.1);
}

/* Mobiel */
@media (max-width: 600px) {
    .pr-wh-panel {
        max-height: 92vh;
    }
    .pr-wh-header {
        padding: 16px 18px;
    }
    .pr-wh-years {
        padding: 12px 14px;
    }
    .pr-wh-year {
        padding: 6px 14px;
        font-size: 13px;
    }
    .pr-wh-list {
        padding: 12px 14px;
    }
    .pr-wh-week-header {
        padding: 10px 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .pr-wh-week-item {
        padding: 6px 8px;
        gap: 8px;
    }
    .pr-wh-week-rank {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    .pr-wh-week-cover {
        width: 34px;
        height: 34px;
    }
    .pr-wh-week-title { font-size: 0.8rem; }
    .pr-wh-week-artist { font-size: 0.68rem; }
    .pr-wh-week-count { font-size: 0.7rem; padding: 2px 8px; }
}

/* ==================== IN DE WACHTRIJ ==================== */
#pr-wachtrij {
    max-width: 1240px;
    margin: 20px auto 30px;
    padding: 0 20px;
}

.pr-wr-container {
    background: var(--card-bg, #16181d);
    border: 1px solid var(--border-subtle, #252830);
    border-radius: 14px;
    padding: 20px 22px 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.pr-wr-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-primary, #e8eaed);
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 18px;
    letter-spacing: -0.01em;
    flex-wrap: wrap;
}

.pr-wr-heading i {
    color: #4f9dff;
    font-size: 16px;
    filter: drop-shadow(0 0 6px rgba(79, 157, 255, 0.4));
}

.pr-wr-count {
    display: inline-block;
    background: rgba(79, 157, 255, 0.12);
    border: 1px solid rgba(79, 157, 255, 0.3);
    color: #4f9dff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 12px;
    min-width: 26px;
    text-align: center;
}

.pr-wr-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    align-items: start;
}

.pr-wr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 6px;
    border-radius: 10px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    position: relative;
    text-align: center;
    min-width: 0;
}

.pr-wr-item:hover {
    background: rgba(79, 157, 255, 0.05);
    border-color: rgba(79, 157, 255, 0.2);
    transform: translateY(-2px);
}

.pr-wr-rank {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #4f9dff, #3d87e0);
    color: #fff;
    font-weight: 800;
    font-size: 11px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(79, 157, 255, 0.4);
}

.pr-wr-cover {
    width: 100%;
    aspect-ratio: 1;
    max-width: 100px;
    background: var(--card-elevated, #1a1d25);
    border: 1px solid var(--border-subtle, #252830);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    transition: all 0.2s ease;
}

.pr-wr-item:hover .pr-wr-cover {
    border-color: #4f9dff;
    box-shadow: 0 0 15px rgba(79, 157, 255, 0.25);
}

.pr-wr-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pr-wr-cover i {
    color: var(--text-muted, #7a8294);
    font-size: 22px;
}

.pr-wr-title {
    color: var(--text-primary, #e8eaed);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    margin-top: 2px;
}

.pr-wr-artist {
    color: var(--text-secondary, #b8becc);
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.pr-wr-loading,
.pr-wr-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    color: var(--text-muted, #7a8294);
    font-size: 13px;
}

.pr-wr-loading i {
    margin-right: 6px;
    color: #4f9dff;
}

.pr-wr-empty i {
    color: #4f9dff;
    margin-right: 8px;
    opacity: 0.5;
}

/* Light mode */
body.light-mode .pr-wr-container {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .pr-wr-heading,
body.light-mode .pr-wr-title {
    color: #1a1d25;
}

body.light-mode .pr-wr-artist {
    color: #4a5568;
}

body.light-mode .pr-wr-count {
    background: rgba(79, 157, 255, 0.15);
    color: #3d87e0;
}

/* Mobiel */
@media (max-width: 900px) {
    .pr-wr-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
    .pr-wr-cover { max-width: 90px; }
}

@media (max-width: 600px) {
    #pr-wachtrij {
        margin: 16px auto 24px;
    }
    .pr-wr-container {
        padding: 16px 14px 14px;
    }
    .pr-wr-heading {
        font-size: 15px;
        gap: 8px;
        margin-bottom: 14px;
    }
    .pr-wr-count {
        font-size: 11px;
        padding: 2px 8px;
    }
    .pr-wr-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .pr-wr-cover { max-width: 80px; }
    .pr-wr-rank {
        width: 18px;
        height: 18px;
        font-size: 10px;
        top: 3px;
        left: 3px;
    }
    .pr-wr-title { font-size: 10px; }
    .pr-wr-artist { font-size: 9px; }
}