:root {
    --brand-primary: #009a8f;
    --brand-secondary: #8bc34a;
    --brand-oldies-primary: #bc487f;
    --brand-oldies-secondary: #41bcb2;
    --brand-primary-light: #c8e2d2;
    --brand-secondary-light: #d1e5c0;
    --brand-oldies-primary-light: rgba(188, 72, 127, 0.15);
    --brand-oldies-secondary-light: #BBE1D2;
    --brand-primary-background-light: #B2D8C9;
    --brand-secondary-background-light: #E9E4B8;
    --brand-theritary: #DC2C43;
    --brand-theritary-light: #DC2C4344;

    /* ik moest het zelf ook even opzoeken */
    --brand-quaternary: #FFC500; 
    --brand-quaternary-light: #FFC50044;


    --text-gray: rgba(0, 0, 0, 0.65);
    --bg-gray: #e3eddd;
    --pricing-starter: #88c7c1;
    --pricing-medium: #489b8e;
    --pricing-large: #c8d655;
    --btn-accent: #d3434c;
}

body {
    font-family: "Source Sans Pro", Helvetica, Arial, sans-serif;
    background-color: var(--bg-gray);
    color: rgba(0, 0, 0, 0.87);
    margin: 0;
    line-height: 1.6;
}

body.main-station {
    background: var(--brand-secondary-light);
}

body.oldies-station {
    background: var(--brand-oldies-secondary-light);
}

body.player {
    transform: scale(0.85);
    transform-origin: top left;

    width: calc(100% / 0.85);
    height: calc(100% / 0.85);

    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #009a8f 0%, #8bc34a 100%);
    padding: 20px 0;
    color: white;
}

a {
    color: black;
}

.header-cta {
    background: var(--btn-accent);
    color: white;
    padding: 12px 15px;
    text-decoration: none;
    border-radius: 5px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    display: inline-block;
    margin-top: -1em;
    transform: rotate(-1.2deg);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    z-index: 999;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    position: relative;
    padding: 10px 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 14px;
}

.sub-menu {
    display: none;
    position: absolute;
    background: white;
    top: 100%;
    left: 0;
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
    padding: 10px 0;
}

nav ul li:hover .sub-menu {
    display: block;
}

.sub-menu li {
    padding: 5px 15px;
}

.sub-menu li a {
    color: #333;
    text-transform: none;
}

.page-wrapper {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.main-content {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-right {
    flex: 1;
    min-width: 300px;
    margin-top: -20px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.hero-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: -57px;
}

.hero-card.main-station {
    border-top: 5px solid var(--brand-secondary);
    background: var(--brand-secondary-light);
    transform: rotate(-0.2deg);
}

.hero-card.oldies-station {
    border-top: 5px solid var(--brand-oldies-primary);
    background: var(--brand-oldies-secondary-light);
    transform: rotate(0.3deg);
}

.hero-card-player {
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 0px dotted #000;
}

.hero-card-player.main-station {
    background: var(--brand-secondary-light);
}

.hero-card-player.oldies-station {
    background: var(--brand-oldies-secondary-light);
}

.hero-logo {
    height: 250px;
    object-fit: contain;
    margin-bottom: 20px;
}

.album-art-wrapper {
    position: relative;
    width: 380px;
    height: 380px;
    margin: 0 auto 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
    z-index: 1;
    background: #eee;
}

.album-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.track-info-container {
    position: relative;
    width: 100%;
    height: 60px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.info-bar {
    position: absolute;
    background: white;
    border: 5px solid #fff;
    color: #fff;
    padding: 5px 15px;
    font-weight: bold;
    font-size: 24px;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    z-index: 2;
    max-width: 90%;
    overflow: hidden;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: font-size 0.2s, letter-spacing 0.2s;



    display: block; /* Veranderd van flex naar block voor ellipsis */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip; /* Standaard geen puntjes */
    text-align: center;

}

.info-bar.is-narrow {
    letter-spacing: -1.5px;
}

.info-bar.is-extra-narrow {
    font-size: 18px;
    letter-spacing: -0.5px;
}

.info-bar.is-super-narrow {
    font-size: 14px;
    letter-spacing: -0.5px;
    line-height: 1.1;
    margin-top: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 90%;
}

.artist-bar {
    transform: rotate(-2deg);
    top: -40px;
    left: 50%;
    translate: -50% 0;
    background: var(--brand-secondary);
}

.title-bar {
    transform: rotate(1deg);
    top: 13px;
    left: 50%;
    translate: -50% 0;
    z-index: 3;
    background: var(--brand-primary);
}

#oldies-title {
    background: var(--brand-oldies-secondary);
}

#oldies-artist {
    background: var(--brand-oldies-primary);
}

.hero-play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--brand-secondary);
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 4px 10px rgba(0, 154, 143, 0.4);
    margin-top: 10px;
    z-index: 4;
}

.hero-play-btn:hover {
    transform: scale(1.1);
}

.oldies-station .hero-play-btn {
    background: var(--brand-oldies-primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.content-box {
    background: white;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 15px;
    margin-top: -20px;
}

.content-box .borderless {
    width: calc(100% + 320px);
    height: auto;
    object-fit: scale-down;
    display: block;
    margin-left: -200px;
    margin-top: -200px;
}

.frequenties {
    background: var(--brand-secondary-light);
    border-left: 8px solid var(--brand-secondary);
}

.frequenties h1 {
    background: var(--brand-secondary);
}


.frequenties h2 {
    color: var(--brand-secondary);
    border-bottom: 2px solid var(--brand-secondary);
}


.voorwaarden {
    background: var(--brand-oldies-primary-light);
    border-left: 8px solid var(--brand-oldies-primary);
}

.voorwaarden h1 {
    background: var(--brand-oldies-primary);
}

.voorwaarden h2 {
    color: var(--brand-oldies-primary);
    border-bottom: 2px solid var(--brand-oldies-primary);
}

.over-ons {
    background: var(--brand-oldies-secondary-light);
    border-left: 8px solid var(--brand-oldies-secondary);
}

.over-ons h1 {
    background: var(--brand-oldies-secondary);
}

.over-ons h2 {
    color: var(--brand-oldies-secondary);
    border-bottom: 2px solid var(--brand-oldies-secondary);
}
.doneren {
    background: var(--brand-theritary-light);
    border-left: 8px solid var(--brand-theritary);
}

.doneren h1 {
    background: var(--brand-theritary);
}


.doneren h2 {
    color: var(--brand-theritary);
    border-bottom: 2px solid var(--brand-theritary);
}


.overige {
    background: var(--brand-quaternary-light);
    border-left: 8px solid var(--brand-quaternary);
}

.overige h1 {
    background: var(--brand-quaternary);
}

.overige h2 {
    color: var(--brand-quaternary);
    border-bottom: 2px solid var(--brand-quaternary);
}


.doneren-cta {
    display: inline-block;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    transform: rotate(-0.3deg);
    overflow: hidden;
    margin-top: 20px;
}

h1 {
    background: var(--brand-primary);
    text-transform: uppercase;
    color: #fff;
    display: inline-block;
    padding: 5px 15px;
    border: 5px solid #fff;
    font-weight: bold;
    font-size: 24px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    z-index: 2;
    border-radius: 5px;
    transform: rotate(-1deg);
    margin-top: -15px;
    margin-bottom: 20px;
    margin-left: -18px;
}

h2 {
    color: var(--brand-primary);
    text-transform: uppercase;
    border-bottom: 2px solid var(--brand-secondary-light);
    padding-bottom: 10px;
    margin-top: 40px;
}

.news-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    align-items: center;
    transition: transform 0.2s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.news-item:hover {
    transform: scale(1.02);
}

.news-item img {
    width: 140px;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    background: #ddd;
    margin-bottom: -6px;
}

.news-item h4 {
    margin: 0;
    font-size: 16px;
    line-height: 1.3;
}

.news-item a {
    color: #333;
    text-decoration: none;
    margin: 0;
}

.news-item a:hover {
    color: var(--brand-primary);
}

.category-tag {
    display: inline-block;
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    vertical-align: middle;
    margin-bottom: 5px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

.tag-rijswijk {
    background: var(--brand-primary);
    transform: rotate(0.5deg);
}

.tag-pijnacker-nootdorp {
    background: var(--brand-secondary);
    transform: rotate(1deg);
}

.tag-regio {
    background: var(--brand-primary);
    transform: rotate(-0.4deg);
}

.tag-leidschendam-voorburg {
    background: var(--brand-oldies-secondary);
    transform: rotate(0.2deg);
}

.bg-rijswijk {
    background-color: var(--brand-primary-light);
    border-left: 5px solid var(--brand-primary);
}

.bg-pijnacker-nootdorp {
    background-color: var(--brand-secondary-light);
    border-left: 5px solid var(--brand-secondary);
}

.bg-regio {
    background-color: var(--brand-primary-background-light);
    border-left: 5px solid var(--brand-primary);
}

.bg-leidschendam-voorburg {
    background-color: var(--brand-oldies-secondary-light);
    border-left: 5px solid var(--brand-oldies-secondary);
}

.news-cta {
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    transform: rotate(-0.3deg);
    overflow: hidden;
    margin-top: 20px;
}

.pricing-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.pricing-card {
    color: white;
    text-align: center;
    padding: 40px 20px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pricing-card.starter {
    background-color: var(--pricing-starter);
}

.pricing-card.medium {
    background-color: var(--pricing-medium);
}

.pricing-card.large {
    background-color: var(--pricing-large);
}

.pricing-card h3 {
    font-size: 38px;
    margin: 0;
    text-transform: none;
    color: white;
}

.pricing-card .weeks {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.pricing-card .price {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 30px;
    font-style: italic;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    font-size: 18px;
    line-height: 1.4;
}

.pricing-card .btn-order {
    background: var(--btn-accent);
    color: white;
    padding: 12px 35px;
    text-decoration: none;
    font-weight: bold;
    font-size: 22px;
    border-radius: 5px;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.1);
}

.pricing-card .footer-note {
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.9;
}

.faq-item {
    border: 1px solid #eee;
    margin-bottom: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    background: #f9f9f9;
    padding: 15px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
}

.faq-question:after {
    content: '+';
}

.faq-answer {
    padding: 15px;
    display: none;
    border-top: 1px solid #eee;
    background: white;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--text-gray);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

.btn-submit {
    background: var(--brand-primary);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
}

.poll-box {
    background: var(--brand-primary-light);
    padding: 25px;
    border-radius: 8px;
    border-left: 8px solid var(--brand-primary);
    border-radius: 15px;
}

.poll-option {
    background: white;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    border: 1px solid transparent;
}

.poll-option:hover {
    border-color: var(--brand-primary);
}

.poll-option input {
    margin-right: 15px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.alert-danger ul {
    margin: 0;
    padding-left: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

footer {
    background: var(--brand-oldies-primary);
    color: var(--bg-gray);
    padding: 20px 0;
    margin-top: 20px;
}

footer a {
    text-decoration: none;
    font-weight: 500;
    color: var(--bg-gray);
}

@media (max-width: 900px) {
    .container,
    .page-wrapper {
        flex-direction: column;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-right {
        margin-top: 40px;
    }
}

/* --- Popup Streamplayer --- */

.hero-card-player {
    overflow: hidden;
    justify-content: space-between;
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    width: 100%;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 20;
    background: inherit;
    position: relative;
}

.volume-container {
    width: 100px;
    display: flex;
    align-items: center;
}

.volume-slider {
    width: 100%;
    cursor: pointer;
    height: 4px;
    border-radius: 2px;
    accent-color: var(--brand-primary);
    outline: none;
}

.playlist-toggle-btn {
    background: var(--brand-primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: "Source Sans Pro", sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.playlist-toggle-btn:hover {
    background: var(--brand-secondary);
    transform: translateY(-2px);
}

.playlist-overlay {
    position: absolute;
    top: 280px;
    width: 500px;
    margin-left: 5px;
    height: 505px;
    background: var(--brand-primary);
    color: white;
    z-index: 10;
    display: none;
    flex-direction: column;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
    text-align: left;
    transition: opacity 0.3s ease;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
}

.playlist-overlay.oldies-station {
    background: var(--brand-oldies-primary);
}

.playlist-overlay.oldies-station h3 {
    border-bottom: 2px solid var(--brand-oldies-secondary);
}

.playlist-overlay.oldies-station #playlist-content > div > div > span.playlist-artist {
    color: var(--brand-oldies-secondary);
}

.playlist-overlay.active {
    display: flex;
}

.playlist-overlay h3 {
    margin-top: 0;
    font-size: 18px;
    border-bottom: 2px solid var(--brand-secondary);
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: white;
    text-transform: uppercase;
}

.playlist-item {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 4px;
}

.playlist-item:last-child {
    border-bottom: none;
}

.playlist-item img {
    width: 75px;
    height: 75px;
    border-radius: 6px;
    margin-right: 12px;
    object-fit: cover;
    background: #333;
}

.playlist-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.playlist-artist {
    font-size: 12px;
    color: var(--brand-secondary);
    font-weight: bold;
    text-transform: uppercase;
}

.playlist-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.playlist-time {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 600;
    margin-left: auto;
    font-variant-numeric: tabular-nums;
}