/*
Theme Name: OK Radio ZEN
Theme URI: https://OKradio.nl
Author: Riccardo de Wit
Description: Een modern, rustgevend en positief radiothema met glaseffecten en dark mode.
Version: 1.1
Text Domain: ok-radio-zen
*/

/* ==========================================================
   1. VARIABLES & THEMING
   ========================================================== */
:root {
    --bg-color: #f3f3ef;
    --card-bg: #ffffff;
    --text-main: #2d2d2d;
    --text-muted: #717171;
    --text-accent: #f26b6b; 
    --nav-bg: rgba(243, 243, 239, 0.85); 
    --player-bg: rgba(255, 255, 255, 0.70); 
    --player-border: rgba(0, 0, 0, 0.05); /* Aangepast voor beter contrast in light mode */
    --heart-bg: rgba(255, 255, 255, 0.9);
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.08);
    --player-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    --gradient-brand: linear-gradient(135deg, #12c2e9 0%, #c471ed 50%, #f64f59 100%);
    --gradient-text: linear-gradient(to right, #00d2ff, #7a28cb);
}

[data-theme="dark"] {
    --bg-color: #18181b; 
    --card-bg: #27272a; 
    --text-main: #f4f4f5; 
    --text-muted: #a1a1aa;
    --text-accent: #ff8fa3; 
    --nav-bg: rgba(24, 24, 27, 0.85);
    --player-bg: rgba(39, 39, 42, 0.65); 
    --player-border: rgba(255, 255, 255, 0.05);
    --heart-bg: rgba(0, 0, 0, 0.4);
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.6);
    --player-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

/* ==========================================================
   2. BASE STYLES
   ========================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    padding-top: 170px; /* Ruimte voor de dubbele header (topbar + nav) */
    padding-bottom: 120px; /* Ruimte voor de pill player */
    transition: background-color 0.4s ease, color 0.4s ease; 
    overflow-x: hidden;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.page-section { margin-bottom: 4rem; } 
a { text-decoration: none; color: inherit; }

/* Global Section Elements */
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.section-header h2 { font-size: 1.8rem; font-weight: 700; }
.category-tag { display: inline-block; color: var(--text-accent); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.4rem; }
.category-tag.light { color: #fff; background: rgba(255,255,255,0.2); padding: 4px 8px; border-radius: 6px; backdrop-filter: blur(4px); margin-bottom: 0.8rem;}

/* ==========================================================
   3. HEADER & NAVIGATION (PILL MENU)
   ========================================================== */
.main-header {
    position: fixed; top: 0; left: 0; width: 100%;
    background-color: var(--nav-bg);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    z-index: 1000; padding: 1rem 0 0 0;
    border-bottom: 1px solid var(--player-border);
    transition: background-color 0.4s ease;
}

.header-container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; display: flex; justify-content: space-between; align-items: center; }

.brand-logo { font-size: 1.8rem; font-weight: 800; letter-spacing: -1px; }
.logo-air { color: #12c2e9; }
.logo-zen { background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.header-actions { display: flex; align-items: center; gap: 1rem; }

.btn-direct {
    display: flex; align-items: center; gap: 0.5rem; background-color: var(--text-accent);
    color: white; border: none; padding: 0.6rem 1.2rem; border-radius: 50px;
    font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 0.9rem;
    cursor: pointer; box-shadow: 0 4px 12px rgba(242, 107, 107, 0.3); transition: 0.2s;
}
.btn-direct:hover { transform: translateY(-2px); }

.btn-theme { background: none; border: none; color: var(--text-main); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 0.2s; }
.btn-theme:hover { transform: scale(1.1); }

.btn-profile { background: none; border: none; cursor: pointer; border-radius: 50%; overflow: hidden; width: 40px; height: 40px; }
.profile-img { width: 100%; height: 100%; object-fit: cover; }

/* WP Nav Scroller */
.nav-scroller {
    margin-top: 1rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 1rem;
}
.nav-scroller::-webkit-scrollbar { display: none; }

.main-nav ul { 
    display: flex; gap: 0.8rem; width: max-content; list-style: none; margin: 0; padding: 0;
}
.main-nav li { margin: 0; padding: 0; flex-shrink: 0; }

.main-nav a { 
    display: inline-block; padding: 0.5rem 1.4rem; border-radius: 50px; 
    background-color: var(--bg-color); color: var(--text-main); 
    font-weight: 600; font-size: 0.95rem; transition: 0.2s;
    border: 1px solid var(--player-border); text-decoration: none; white-space: nowrap; 
}
.main-nav a:hover, .main-nav li.current-menu-item > a, .main-nav a.active { 
    background-color: var(--text-accent); color: white; border-color: var(--text-accent);
    box-shadow: 0 4px 12px rgba(242, 107, 107, 0.3);
}

/* ==========================================================
   4. HERO SECTION
   ========================================================== */
.hero-card {
    background-color: var(--card-bg); border-radius: 32px; padding: 3rem; margin-bottom: 4rem;
    box-shadow: var(--shadow-soft); display: flex; justify-content: space-between; align-items: center; gap: 2rem;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
.hero-content { flex: 1; }
.hero-title { font-size: 2.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 1.5rem; }
.highlight-text { color: var(--text-accent); font-style: italic; font-weight: 400; }
.hero-subtitle { font-size: 1.2rem; font-weight: 600; margin-bottom: 1.5rem; }
.btn-lire { display: flex; align-items: center; gap: 0.5rem; background-color: var(--text-accent); color: white; border: none; padding: 0.8rem 1.5rem; border-radius: 12px; font-weight: 700; cursor: pointer; transition: 0.2s; }
.btn-lire:hover { transform: translateY(-2px); }
.hero-image { flex: 1; position: relative; border-radius: 24px; overflow: hidden; height: 300px; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge { position: absolute; bottom: 20px; right: 20px; background: var(--gradient-brand); color: white; padding: 0.8rem 1.2rem; border-radius: 12px; font-weight: 700; font-size: 0.9rem; }

/* ==========================================================
   5. RECENTLY PLAYED
   ========================================================== */
.recent-scroll { 
    display: flex; 
    gap: 1.5rem; 
    overflow-x: auto; 
    padding: 0.5rem 0 1.5rem 0; 
    scrollbar-width: none; 
    -webkit-overflow-scrolling: touch;
    /* NIEUW: Sleep-stijlen */
    cursor: grab;
    user-select: none; 
}

.recent-scroll:active { 
    cursor: grabbing; 
}


.recent-scroll::-webkit-scrollbar { display: none; }

.recent-item { 
    display: flex; align-items: center; gap: 1rem; background: var(--card-bg); 
    padding: 12px; border-radius: 24px; min-width: 340px; position: relative;
    box-shadow: var(--shadow-soft); cursor: pointer; transition: 0.3s; flex-shrink: 0;
}
.recent-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.recent-item img { 
    width: 64px; 
    height: 64px; 
    border-radius: 16px; 
    object-fit: cover; 
    flex-shrink: 0; 
    /* NIEUW: Voorkomt oppakken afbeelding */
    pointer-events: none; 
}
.recent-info { padding-right: 55px; overflow: hidden; flex-grow: 1; } /* Ruimte voor de badge zodat tekst er niet tegenaan botst */
.recent-info h4 { font-size: 1rem; font-weight: 700; line-height: 1.2; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-info p { font-size: 0.85rem; color: var(--text-muted); }

.recent-time-badge {
    position: absolute; top: 12px; right: 12px;
    background-color: var(--text-accent); color: #ffffff;
    font-size: 0.75rem; font-weight: 800; padding: 4px 10px; border-radius: 10px;
    box-shadow: 0 4px 10px rgba(242, 107, 107, 0.2); z-index: 5;
}

/* --- Generieke Scroller Fix (Zowel voor Muziek als Recent) --- */
.recent-scroll, .music-grid {
    user-select: none;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE/Edge */
    
    /* Voorkomt dat de browser de 'ghost' afbeelding gaat verslepen */
    -webkit-user-drag: none;
    cursor: grab;
}

.recent-scroll:active, .music-grid:active {
    cursor: grabbing;
}

/* Zorg dat alles binnen de kaarten ook niet selecteerbaar is */
.recent-item *, .music-card * {
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none; /* De events gaan nu direct naar de 'parent' kaart */
}

/* De knoppen binnen de kaarten moeten natuurlijk wel weer klikbaar zijn indien nodig */
.play-overlay, .heart-btn {
    pointer-events: auto !important;
}

/* ==========================================================
   6. BENTO GRID (NEWS)
   ========================================================== */
.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 220px); gap: 1.5rem; }
.bento-card { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-soft); cursor: pointer; transition: 0.3s; }
.bento-card:hover { transform: scale(1.02); box-shadow: var(--shadow-hover); }
.bento-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.bento-card:hover img { transform: scale(1.05); }
.bento-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 1.5rem; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%); color: white; display: flex; flex-direction: column; align-items: flex-start; }
.bento-card h4 { font-size: 1rem; font-weight: 600; line-height: 1.3; }
.bento-card.featured { grid-column: span 2; grid-row: span 2; }
.bento-card.featured .bento-overlay { padding: 2rem; }
.bento-card.featured h3 { font-size: 1.6rem; font-weight: 700; line-height: 1.2; }

/* ==========================================================
   7. NEW MUSIC (HORIZONTAL DRAG SLIDER)
   ========================================================== */
.music-grid { 
    display: flex; gap: 1.5rem; overflow-x: auto; scrollbar-width: none; 
    padding-bottom: 1.5rem; cursor: grab; user-select: none; -webkit-overflow-scrolling: touch;
}
.music-grid:active { cursor: grabbing; }
.music-grid::-webkit-scrollbar { display: none; }

.music-card { width: 220px; flex-shrink: 0; cursor: pointer; }
.music-img-wrapper { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 1/1; margin-bottom: 1rem; box-shadow: var(--shadow-soft); }
.music-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; pointer-events: none; /* Voorkomt het verslepen van de afbeelding als bestand */ }

.play-overlay { 
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.8); 
    background: var(--text-accent); color: white; border: none; width: 50px; height: 50px; 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    opacity: 0; transition: 0.3s; pointer-events: none; 
}
.music-card:hover .music-img-wrapper img { transform: scale(1.05); filter: brightness(0.8); }
.music-card:hover .play-overlay { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.music-card h4 { font-size: 1rem; font-weight: 600; margin-bottom: 2px;}
.music-card p { font-size: 0.85rem; color: var(--text-muted); }

/* ==========================================================
   8. PODCASTS & SHOWS
   ========================================================== */
.shows-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 1.5rem; }
.show-card { display: flex; align-items: center; gap: 1.5rem; background: var(--card-bg); border-radius: 24px; padding: 1rem; box-shadow: var(--shadow-soft); cursor: pointer; transition: 0.3s; }
.show-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.show-card img { width: 120px; height: 120px; border-radius: 16px; object-fit: cover; }
.show-info h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.3rem; line-height: 1.2;}
.show-info p { font-size: 0.9rem; color: var(--text-muted); }

.podcast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.podcast-card { background-color: var(--card-bg); border-radius: 24px; padding: 12px; box-shadow: var(--shadow-soft); transition: 0.3s; cursor: pointer; }
.podcast-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.card-image-wrapper { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; }
.card-image-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.podcast-card:hover .card-image-wrapper img { transform: scale(1.03); }
.heart-btn { position: absolute; top: 10px; right: 10px; background-color: var(--heart-bg); border: none; border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: 0.2s; }
.heart-btn:hover { transform: scale(1.1); }
.card-content { padding: 1rem 0.5rem 0.5rem 0.5rem; }
.card-title { font-size: 1.05rem; font-weight: 700; line-height: 1.3; }

/* ==========================================================
   9. SINGLE POST / ARTICLE STYLES
   ========================================================== */
.single-post { display: flex; flex-direction: column; align-items: center; margin-bottom: 4rem; }
.post-header { text-align: center; max-width: 850px; margin-bottom: 2.5rem; }
.post-title { font-size: 3rem; font-weight: 800; line-height: 1.2; margin: 1rem 0 1.5rem 0; letter-spacing: -0.5px; }
.post-meta { display: flex; align-items: center; justify-content: center; gap: 1rem; color: var(--text-muted); font-size: 0.95rem; font-weight: 600; flex-wrap: wrap; }
.meta-author { display: flex; align-items: center; gap: 0.5rem; color: var(--text-main); }
.author-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.meta-divider { color: var(--player-border); }
.post-cover-wrapper { width: 100%; margin-bottom: 3rem; }
.post-cover-image { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 32px; box-shadow: var(--shadow-soft); max-height: 400px; }
.post-content-body { max-width: 720px; width: 100%; font-size: 1.15rem; line-height: 1.8; color: var(--text-main); }
.post-content-body p { margin-bottom: 1.5rem; }
.post-content-body .lead-paragraph { font-size: 1.3rem; font-weight: 400; color: var(--text-muted); line-height: 1.6; }
.post-content-body h2 { font-size: 1.8rem; font-weight: 700; margin: 3rem 0 1rem 0; }
.post-content-body ul { margin-bottom: 2rem; padding-left: 1.5rem; }
.post-content-body li { margin-bottom: 0.8rem; }
.post-content-body blockquote { position: relative; font-size: 1.3rem; font-style: italic; font-weight: 500; line-height: 1.7; margin: 3.5rem 0; padding: 2.5rem 3rem; background-color: var(--card-bg); border: 1px solid var(--player-border); border-radius: 24px; box-shadow: var(--shadow-soft); z-index: 1; }
.post-content-body blockquote::before { content: '"'; position: absolute; top: -30px; left: 20px; font-size: 8rem; font-family: Georgia, serif; color: var(--text-accent); opacity: 0.15; line-height: 1; z-index: -1; }

/* Article Sharing / Audio */
.post-footer-actions { display: flex; flex-direction: column; gap: 1rem; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--player-border); }
.share-label { font-weight: 700; font-size: 1.1rem; }
.share-buttons-container { display: flex; flex-wrap: wrap; gap: 1rem; }
.share-btn { display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 1.2rem; border: none; border-radius: 12px; font-family: 'Poppins', sans-serif; font-size: 0.95rem; font-weight: 600; color: white; cursor: pointer; transition: 0.2s; }
.share-btn:hover { transform: translateY(-3px); }
.share-facebook { background-color: #1877F2; box-shadow: 0 6px 16px rgba(24, 119, 242, 0.25); }
.share-x { background-color: #000000; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2); }
.share-linkedin { background-color: #0A66C2; box-shadow: 0 6px 16px rgba(10, 102, 194, 0.25); }
[data-theme="dark"] .share-x { background-color: #27272a; border: 1px solid var(--player-border); }

.inline-audio-article { display: flex; align-items: center; gap: 1.2rem; background-color: var(--card-bg); padding: 1rem 1.5rem; border-radius: 100px; border: 1px solid var(--player-border); margin-bottom: 2.5rem; box-shadow: var(--shadow-soft); }
.inline-audio-text { display: flex; flex-direction: column; flex-grow: 1; }
.inline-audio-text strong { font-size: 1rem; }
.inline-audio-text span { font-size: 0.85rem; color: var(--text-muted); }
.inline-audio-time { font-weight: 700; font-size: 0.95rem; color: var(--text-muted); }

/* ==========================================================
   10. PLAYLIST / HISTORY PAGE
   ========================================================== */
.history-controls-card { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; background-color: var(--card-bg); padding: 1.5rem 2rem; border-radius: 24px; box-shadow: var(--shadow-soft); margin-bottom: 3rem; align-items: flex-end; }
.filter-group { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.filter-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); padding-left: 0.5rem; }
.history-input { width: 100%; background-color: var(--bg-color); border: 1px solid var(--player-border); color: var(--text-main); font-family: 'Poppins', sans-serif; padding: 0.8rem 1.2rem; border-radius: 12px; font-size: 0.95rem; outline: none; transition: border-color 0.3s ease; cursor: pointer; }
.history-input:focus { border-color: var(--text-accent); }
select.history-input { -webkit-appearance: none; appearance: none; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23717171" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>'); background-repeat: no-repeat; background-position: right 1.2rem center; background-size: 16px; padding-right: 3rem; }

.history-hour-block { margin-bottom: 3rem; }
.hour-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; padding-left: 1rem; border-left: 4px solid var(--text-accent); }
.history-item { display: flex; align-items: center; background-color: var(--card-bg); padding: 1rem 1.5rem; border-radius: 20px; margin-bottom: 0.8rem; box-shadow: var(--shadow-soft); transition: 0.2s; }
.history-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.history-time { font-size: 1.1rem; font-weight: 700; color: var(--text-accent); width: 80px; flex-shrink: 0; }
.history-cover { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; margin-right: 1.5rem; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.history-details { flex-grow: 1; display: flex; flex-direction: column; }
.history-details .track-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.2rem; }
.history-details .track-artist { font-size: 0.9rem; color: var(--text-muted); }
.history-actions { display: flex; align-items: center; padding-right: 1rem; }
.heart-btn.relative-heart { position: static; background: transparent; box-shadow: none; border: none; padding: 0; color: var(--text-muted); cursor: pointer; transition: 0.2s; }
.heart-btn.relative-heart:hover { transform: scale(1.15); color: var(--text-accent); }

/* ==========================================================
   11. SCHEDULE / PROGRAM PAGE
   ========================================================== */
.schedule-nav { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 2rem; scrollbar-width: none; padding-top: 10px; }
.schedule-nav::-webkit-scrollbar { display: none; }
.day-pill { padding: 0.8rem 1.5rem; background-color: var(--card-bg); border: none; border-radius: 50px; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.95rem; color: var(--text-main); cursor: pointer; white-space: nowrap; box-shadow: var(--shadow-soft); transition: 0.3s; }
.day-pill:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.day-pill.active { background-color: var(--text-accent); color: white; }
.schedule-timeline { display: flex; flex-direction: column; gap: 2rem; margin-top: 1rem; }
.timeline-item { display: flex; gap: 2rem; transition: 0.3s ease; }
.timeline-item.past { opacity: 0.5; }
.timeline-time { width: 80px; font-weight: 800; font-size: 1.1rem; text-align: right; flex-shrink: 0; line-height: 1.2; }
.timeline-time span { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); }
.timeline-content { flex: 1; display: flex; gap: 1.5rem; background-color: var(--card-bg); padding: 1.5rem; border-radius: 24px; box-shadow: var(--shadow-soft); border-left: 4px solid transparent; transition: 0.3s; }
.timeline-item.active .timeline-content { border-left: 4px solid var(--text-accent); box-shadow: var(--shadow-hover); }
.timeline-content img { width: 100px; height: 100px; border-radius: 16px; object-fit: cover; }
.timeline-text { display: flex; flex-direction: column; justify-content: center; }
.timeline-text h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.3rem; }

/* --- Programma Pills op Homepage --- */
.show-days-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.day-pill-mini {
    background-color: var(--bg-color);
    color: var(--text-accent);
    border: 1px solid var(--player-border);
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.2s ease;
    cursor: default; /* Of pointer als je ze later klikbaar maakt */
}

/* Dark mode ondersteuning */
[data-theme="dark"] .day-pill-mini {
    background-color: rgba(255, 255, 255, 0.05);
}

/* FIX: Alleen de individuele pill oplichten bij hover */
.day-pill-mini:hover {
    background-color: var(--text-accent) !important;
    color: white !important;
    border-color: var(--text-accent) !important;
    transform: translateY(-1px);
}

/* ==========================================================
   12. LIVE VIDEO PAGE (IMMERSIVE)
   ========================================================== */
.live-pulse { display: inline-block; background-color: var(--text-accent); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(242, 107, 107, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(242, 107, 107, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(242, 107, 107, 0); }
}
.cinematic-container { max-width: 1400px; }
.video-card-immersive { background-color: var(--card-bg); border-radius: 32px; padding: 1rem; box-shadow: var(--shadow-hover); width: 100%; margin: 0 auto; }
.video-card-immersive video { width: 100%; max-height: 75vh; border-radius: 24px; background-color: #000; object-fit: cover; display: block; }

/* ==========================================================
   13. YOUTUBE LIGHTBOX MODAL
   ========================================================== */
.yt-lightbox { 
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.85); z-index: 2000; align-items: center; justify-content: center; 
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.3s ease;
}
.yt-lightbox.active { display: flex; opacity: 1; }
.yt-lightbox-content { 
    position: relative; width: 90%; max-width: 900px; background: #000; border-radius: 20px; 
    overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.5); transform: translateY(20px); transition: transform 0.3s ease;
}
.yt-lightbox.active .yt-lightbox-content { transform: translateY(0); }
.yt-close { position: absolute; top: -40px; right: 0; background: none; border: none; color: white; font-size: 2.5rem; cursor: pointer; z-index: 10; line-height: 1; transition: color 0.2s; }
.yt-close:hover { color: var(--text-accent); }
.yt-video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; }
.yt-video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* ==========================================================
   14. WIDE FLOATING GLASS PILL AUDIO PLAYER
   ========================================================== */
.pill-player {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); 
    width: 650px; max-width: 95vw; background-color: var(--player-bg);
    backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--player-border); box-shadow: var(--player-shadow); 
    z-index: 1000; padding: 0.6rem 0.8rem; border-radius: 50px; 
}
.pill-player .player-container { display: flex; align-items: center; gap: 1.5rem; margin: 0; }
.pill-player .track-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--gradient-brand); display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; font-weight: 800; font-size: 0.65rem; line-height: 1; flex-shrink: 0; }
.track-info-marquee { display: flex; flex-direction: column; justify-content: center; flex-grow: 1; width: 350px; overflow: hidden; }
.track-status { display: flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; font-weight: 700; color: var(--text-accent); letter-spacing: 0.5px; }
.live-dot { width: 6px; height: 6px; background-color: var(--text-accent); border-radius: 50%; }

.marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    display: flex;
    align-items: center;
}

.track-title {
    flex-shrink: 0;
    width: max-content;
    margin: 0;
    /* Symmetric padding looks best for bouncing */
    padding-left: 4px; 
    padding-right: 4px; 
    transition: none !important; 
}

/* We use ease-in-out so it slows down gently as it hits the edges */
.track-title.is-scrolling {
    animation: marqueeBounce 8s ease-in-out infinite alternate;
}

.marquee-wrapper:hover .track-title.is-scrolling {
    animation-play-state: paused;
}

/* JS will inject the exact pixel distance into --scroll-dist */
@keyframes marqueeBounce {
    0%, 10% { transform: translateX(0); }
    90%, 100% { transform: translateX(var(--scroll-dist)); }
}


.scrolling-text { display: inline-block; padding-left: 1px; font-weight: 700; font-size: 1.05rem; padding-right: 2rem; animation: scroll-ping-pong 10s linear infinite alternate; }
.pill-player:hover .scrolling-text { animation-play-state: paused; }
@keyframes scroll-ping-pong { 0%, 15% { transform: translateX(0); } 85%, 100% { transform: translateX(calc(350px - 100%)); } }
.pill-player .btn-play-pause { width: 48px; height: 48px; border-radius: 50%; border: none; flex-shrink: 0; background-color: var(--text-accent); color: white; margin-left: auto; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 12px rgba(242, 107, 107, 0.4); transition: transform 0.2s ease; }
.pill-player .btn-play-pause:hover { transform: scale(1.08); }

/* ==========================================================
   15. RESPONSIVE DESIGN (MOBILE FIXES)
   ========================================================== */
@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
    .bento-card.featured { grid-column: span 2; aspect-ratio: 16/9; }
    .bento-card { aspect-ratio: 1/1; }
}

@media (max-width: 768px) {
    body { padding-top: 150px; }
    .container { padding: 0 1.2rem; }
    .header-container { padding: 0 1.2rem; gap: 0.5rem; }
    
    /* Header Knoppen op mobiel */
    .btn-direct span { display: none; }
    .btn-direct { padding: 0.6rem; border-radius: 20px; }
    .btn-direct svg { margin: 0; width: 18px; height: 18px; }

    /* Forceer menu weergave op mobiel */
    .main-nav { display: flex !important; }
    .main-nav ul { display: flex !important; flex-direction: row !important; }

    /* Grid naar 1 kolom */
    .bento-grid { grid-template-columns: 1fr; }
    .bento-card.featured, .bento-card { grid-column: 1; aspect-ratio: 16/9; }
    .shows-grid { grid-template-columns: 1fr; }
    
    /* Hero layout mobiel */
    .hero-card { flex-direction: column; padding: 2rem; text-align: center; }
    .hero-image { width: 100%; height: 200px; }
    .btn-lire { margin: 0 auto; }
    
    /* Horizontale Lijsten schalen */
    .recent-item { min-width: 280px; }
    .music-card { width: 160px; }

    /* Forms en inputs op mobiel */
    .history-controls-card { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1.2rem 1rem; }
    .history-input { padding: 0.6rem 0.5rem; font-size: 0.85rem; }
    select.history-input { padding-right: 1.5rem; background-position: right 0.4rem center; }
    .history-item { padding: 1rem; }
    .history-time { width: 60px; font-size: 1rem; }
    .history-cover { width: 48px; height: 48px; margin-right: 1rem; }
    
    /* Artikel lay-out */
    .post-title { font-size: 2.2rem; }
    .post-cover-image { border-radius: 20px; aspect-ratio: 16 / 9; }
    .post-content-body { font-size: 1.05rem; padding: 0 1rem; }
    .inline-audio-article { border-radius: 20px; flex-direction: column; text-align: center; padding: 1.5rem; }
    .post-content-body blockquote { font-size: 1.2rem; padding: 1.5rem; }

    /* Video Player schalen */
    .video-card-immersive { padding: 0.5rem; border-radius: 20px; }
    .video-card-immersive video { border-radius: 16px; max-height: 50vh; }

    /* Pill Player mobiel */
    .pill-player { width: 95vw; padding: 0.5rem; }
    .track-info-marquee { width: 180px; }
    @keyframes scroll-ping-pong { 0%, 15% { transform: translateX(0); } 85%, 100% { transform: translateX(calc(180px - 100%)); } }
}