/* =========================================================
   RADIO CITY — NIEUWS.PHP
   Versie 12: één samenhangende stylesheet, zonder stapels
   tijdelijke overrides uit eerdere versies.
   ========================================================= */

* {
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

/* Algemene sectiekoppen en introducties */
.section-heading {
    display: block;
    width: calc(100% - 48px);
    max-width: 1280px;
    margin: 28px auto 12px;
    padding: 8px 12px;
    background: #003596;
    color: #fff;
    border: 0;
    border-radius: 8px;
    text-align: center;
    font: 700 26px/1.25 Arial, sans-serif;
}

.section-intro,
.news-intro {
    margin: 0 auto 18px;
    padding: 0 12px;
    text-align: center;
    font: 16px/1.4 Arial, sans-serif;
    color: #222;
}

/* Tracks van de Week */
.section-featured {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto 28px;
}

.card-hitknaller,
.card-djtip {
    flex: 0 1 300px;
    width: 300px;
    max-width: calc(25% - 15px);
    margin: 0;
}

.card-hitknaller p,
.card-djtip p {
    margin: 0;
    text-align: center;
}

.card-hitknaller img,
.card-djtip img {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 0 auto;
    border-radius: 10px;
}

/* Hoofdnieuws: grote kaart links, twee DJ-kaarten rechts */
.news-container {
    display: flex;
    align-items: stretch;
    gap: 20px;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto 28px;
    padding: 0 24px;
}

.news-main {
    position: relative;
    flex: 2 1 0;
    min-width: 0;
    overflow: hidden;
    border-radius: 10px;
}

.news-main > a {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100%;
}

.news-main img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
}

.news-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 16px;
    color: #fff;
    background: linear-gradient(transparent, rgba(0,0,0,.78));
    font-family: Arial, sans-serif;
    text-shadow: 1px 1px 3px #000;
}

.news-overlay h2 {
    margin: 3px 0 0;
    color: #fff;
    font: 700 clamp(16px, 2vw, 24px)/1.15 Arial, sans-serif;
}

.news-side {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.news-small {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    border-radius: 10px;
}

.news-small a {
    display: block;
    width: 100%;
    height: 100%;
}

.news-small img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
}

/* Twee extra nieuwskaarten onder de hoofdnieuwskaarten */
.extra-news-wrap {
    display: block;
    width: 100%;
    max-width: 1280px;
    margin: 20px auto 28px;
    padding: 0 24px;
}

.extra-news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 20px;
    width: 100%;
}

.extra-news-card {
    position: relative;
    min-width: 0;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.10);
}

.extra-news-card-link {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.extra-news-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    border-radius: 0;
}

.extra-news-overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 12px 16px;
    color: #fff;
    background: linear-gradient(transparent, rgba(0,0,0,.8));
    text-shadow: 1px 1px 3px #000;
}

.extra-news-title {
    margin: 0;
    color: #fff;
    font: 700 clamp(13px, 1.6vw, 20px)/1.15 Arial, sans-serif;
}

.extra-news-kicker {
    font-size: 12px;
}

/* =========================
   TOP 25-BANNERS
   ========================= */

.top3-container {
    width: 100%;
    max-width: 1280px;
    margin: 40px auto;
    padding: 0 30px;
}

.top3-item {
    display: flex;
    align-items: center;
    gap: 30px;
    width: 100%;
    background: #E1EBFF;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 18px;
    text-decoration: none;
    color: #222;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    transition: all .30s ease;
    font-family: Arial, sans-serif;
}

.top3-item:hover {
    background: #010A63;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

.top3-item:hover .positie,
.top3-item:hover .details,
.top3-item:hover h2,
.top3-item:hover p {
    color: #fff;
}

.positie {
    width: 70px;
    min-width: 70px;
    text-align: center;
    font-size: 48px;
    font-weight: bold;
    color: #010A63;
    font-family: Arial, sans-serif;
}

.cover {
    width: 100px;
    min-width: 100px;
}

.cover img {
    display: block;
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

.info {
    flex: 1;
    min-width: 0;
    font-family: Arial, sans-serif;
}

.details {
    font-size: 12px;
    color: #555;
    margin-bottom: 8px;
    font-family: Arial, sans-serif;
}

.info h2 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: bold;
    color: #010A63;
    font-family: Arial, sans-serif;
}

.info p {
    margin: 0;
    font-size: 18px;
    color: #222;
    overflow-wrap: anywhere;
    font-family: Arial, sans-serif;
}

@media (max-width: 1100px) {
    .top3-container {
        padding-left: 20px;
        padding-right: 20px;
    }
    .top3-item { gap: 20px; }
}

@media (max-width: 800px) {
    .top3-container {
        padding: 0 15px;
        margin: 30px auto;
    }
    .top3-item { gap: 15px; padding: 12px; }
    .positie { width: 55px; min-width: 55px; font-size: 38px; }
    .cover { width: 80px; min-width: 80px; }
    .cover img { width: 65px; height: 65px; }
    .info h2 { font-size: 18px; }
    .info p { font-size: 16px; }
}

@media (max-width: 600px) {
    .top3-container {
        width: 100%;
        padding: 0 10px;
        margin: 25px auto;
    }
    .top3-item { gap: 10px; padding: 10px; }
    .positie { width: 45px; min-width: 45px; font-size: 30px; }
    .cover { width: 65px; min-width: 65px; }
    .cover img { width: 55px; height: 55px; }
    .details { font-size: 11px; margin-bottom: 5px; }
    .info h2 { font-size: 16px; line-height: 1.2; }
    .info p { font-size: 14px; line-height: 1.25; }
}

@media (max-width: 380px) {
    .top3-item { gap: 8px; }
    .positie { width: 38px; min-width: 38px; font-size: 26px; }
    .cover { width: 55px; min-width: 55px; }
    .cover img { width: 50px; height: 50px; }
    .info h2 { font-size: 15px; }
    .info p { font-size: 13px; }
}

/* Actieknoppen en links onder secties */
.section-action-button,
.link-placeholder-wrap,
.last-played-link {
    width: 100%;
    margin: 22px auto 28px;
    text-align: center;
}

.section-action-button a,
.link-placeholder-button,
.last-played-link a {
    display: inline-block;
    padding: 10px 20px;
    color: #fff;
    background: #003596;
    border: 1px solid #003596;
    border-radius: 7px;
    font: 700 14px/1.2 Arial, sans-serif;
    text-decoration: none;
}

.section-action-button a:hover,
.link-placeholder-button:hover,
.last-played-link a:hover {
    background: #244aa5;
}

/* Nieuwe Muziek */
.nieuwe-muziek {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1280px;
    margin: 20px auto 28px;
    padding: 0 24px;
}

.muziek-item {
    min-width: 0;
    overflow: hidden;
    margin: 0;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
}

.muziek-item a {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: #222;
}

.muziek-item img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0;
}

.muziek-item h3 {
    margin: 8px 8px 3px;
    color: #111;
    font: 700 13px/1.2 Arial, sans-serif;
}

.muziek-item p {
    margin: 0 8px 3px;
    color: #222;
    font: 400 12px/1.25 Arial, sans-serif;
}

.muziek-item span {
    margin: 0 8px 8px;
    color: #666;
    font: 400 11px/1.2 Arial, sans-serif;
}

/* Laatst Gespeelde Tracks */
.last-played-section {
    display: block;
    width: 100%;
    max-width: 1280px;
    margin: 28px auto 0;
    padding: 0 24px 40px;
}

.last-played-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 20px;
    width: 100%;
}

.last-played-card {
    display: block;
    min-width: 0;
    width: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
}

.last-played-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.last-played-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.last-played-time {
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 3px 5px;
    color: #fff;
    background: rgba(0,0,0,.75);
    border-radius: 4px;
    font: 700 10px/1 Arial, sans-serif;
}

.last-played-info {
    padding: 8px;
    font-family: Arial, sans-serif;
}

.last-played-song-title {
    margin: 0 0 3px;
    color: #222;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.last-played-artist {
    color: #666;
    font-size: 11px;
    line-height: 1.2;
}

/* Tablet */
@media (max-width: 900px) {
    .section-heading {
        width: calc(100% - 30px);
        font-size: 23px;
    }

    .news-container {
        padding: 0 15px;
        gap: 15px;
    }

    .extra-news-wrap,
    .last-played-section,
    .nieuwe-muziek {
        padding-right: 15px;
        padding-left: 15px;
    }

    .nieuwe-muziek {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .last-played-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobiel */
@media (max-width: 600px) {
    .section-heading {
        width: calc(100% - 20px);
        margin-top: 22px;
        font-size: 21px;
    }

    .section-featured {
        gap: 12px;
        padding: 0 10px;
    }

    .card-hitknaller,
    .card-djtip {
        flex-basis: calc(50% - 6px);
        max-width: calc(50% - 6px);
    }

    .news-container {
        flex-direction: column;
        padding: 0 10px;
    }

    .news-main {
        flex: none;
        width: 100%;
    }

    .news-side {
        flex-direction: row;
        gap: 10px;
    }

    .news-small {
        flex: 1 1 0;
    }

    .extra-news-wrap,
    .last-played-section,
    .nieuwe-muziek {
        padding-right: 10px;
        padding-left: 10px;
    }

    .extra-news-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .nieuwe-muziek,
    .last-played-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 380px) {
    .nieuwe-muziek,
    .last-played-grid {
        grid-template-columns: 1fr;
    }
}


/* Hover-effect uitsluitend voor afbeeldingen die daadwerkelijk gelinkt zijn */
.news-main a img,
.news-small a img,
.extra-news-card-link .extra-news-image,
.muziek-item a img,
.last-played-card a img,
.card-hitknaller a img,
.card-djtip a img {
    transition: transform 0.25s ease, filter 0.25s ease;
    transform-origin: center center;
}

.news-main a:hover img,
.news-small a:hover img,
.extra-news-card-link:hover .extra-news-image,
.muziek-item a:hover img,
.last-played-card a:hover img,
.card-hitknaller a:hover img,
.card-djtip a:hover img {
    transform: scale(1.07);
    filter: brightness(1.06);
}
