
/* ==========================================
   THE TWITCH - RESPONSIVE CSS
   Desktop: Fixed 860px
   Responsive: 859px and below
========================================== */

* {
    box-sizing: border-box;
}


/* ==========================================
   DESKTOP LAYOUT
========================================== */

#mainContainer {
    width: 860px;
    max-width: 860px;
    margin: 0 auto;
}

#bodyContainer {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 15px;
    width: 100%;
    padding: 0;
    align-items: start;
}


/* ==========================================
   LEFT SIDEBAR
========================================== */

#artistImage {
    width: 270px;
    min-width: 0;
    float: none;
}

#artistImage > img {
    display: block;
    width: 100%;
    height: auto;
}

.airplaytext {
    width: 100%;
    padding: 10px 0;
}

.airplaytext img {
    max-width: 100%;
    height: auto;
}


/* Sidebar Spotify */

.sidebar-spotify {
    width: 100%;
    margin: 15px 0;
}

.sidebar-spotify iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 0;
}


/* ==========================================
   RIGHT CONTENT
========================================== */

#rightBody {
    width: 100%;
    min-width: 0;
    float: none;
    padding-left: 15px;
}


/* Artist Logo */

#artistTitle {
    width: 200px;
    max-width: 100%;
    float: left;
}

#artistTitle img {
    display: block;
    width: 100%;
    height: auto;
}


/* Social Icons */

#artistLink {
    width: 300px;
    max-width: 100%;
    float: right;
}

#artistLink .socialLinks {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.socialLinks img {
    display: inline-block;
    width: 30px;
    height: 30px;
    object-fit: contain;
}


/* ==========================================
   MAIN BODY
========================================== */

#mainBody {
    width: 100%;
    min-width: 0;
    clear: both;
    padding-top: 20px;
    overflow-wrap: break-word;
}

#mainBody p {
    font-size: 10.66px;
    line-height: normal;
    margin-bottom: 18px;
}

#mainBody iframe {
    max-width: 100%;
}


/* ==========================================
   EMBEDS
========================================== */

/* General Embed */

.embed-container {
    width: 100%;
    max-width: 500px;
    margin: 15px 0;
}

.embed-container iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 0;
}


/* Facebook */

.facebook-embed {
    width: 100%;
    max-width: 500px;
    margin: 15px 0;
    overflow: hidden;
}

.facebook-embed iframe {
    display: block;
    width: 100% !important;
    max-width: 100%;
    border: none;
}


/* YouTube */

.youtube-videos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 520px;
    margin: 15px 0;
}

.youtube-videos iframe {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 0;
}


/* ==========================================
   RESPONSIVE LAYOUT
   859px and below
========================================== */

@media screen and (max-width: 859px) {

    /* Main Container */

    #mainContainer {
        width: 100%;
        max-width: 100%;
    }

    #bodyContainer {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 15px;
        gap: 0;
    }


    /* Flatten wrappers for common ordering */

    #artistImage,
    .airplaytext,
    #rightBody {
        display: contents;
    }


    /* Hide Airplay button and description */

    .airplaytext > p,
    .airplaytext > .style7 {
        display: none;
    }


    /* ----------------------------------
       1. ARTIST IMAGE
    ---------------------------------- */

    #artistImage > img {
        order: 1;
        display: block;
        width: 100%;
        max-width: 400px;
        height: auto;
        margin: 0 auto 20px;
    }


    /* ----------------------------------
       2. ARTIST LOGO
    ---------------------------------- */

    #artistTitle {
        order: 2;
        display: block;
        width: 100%;
        float: none;
        text-align: center;
        margin: 0 auto 15px;
    }

    #artistTitle img {
        display: block;
        width: 200px;
        max-width: 100%;
        height: auto;
        margin: 0 auto;
    }


    /* ----------------------------------
       3. SOCIAL ICONS
    ---------------------------------- */

    #artistLink {
        order: 3;
        display: block;
        width: 100%;
        float: none;
        margin: 0 0 20px;
    }

    #artistLink .socialLinks {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
    }


    /* ----------------------------------
       4. PAGE CONTENT
       Same position on every page
    ---------------------------------- */

    #mainBody {
        order: 4;
        display: block;
        width: 100%;
        min-width: 0;
        float: none;
        clear: none;
        padding-top: 10px;
        margin: 0;
    }

    #mainBody p {
        text-align: left;
    }


    /* ----------------------------------
       5. SIDEBAR SPOTIFY PLAYERS
       After all page content
    ---------------------------------- */

    .sidebar-spotify {
        order: 5;
        display: block;
        width: 100%;
        max-width: 100%;
        margin: 15px 0;
    }

    .sidebar-spotify iframe {
        display: block;
        width: 100%;
        max-width: 100%;
        border: 0;
    }


    /* ----------------------------------
       GENERAL EMBEDS
    ---------------------------------- */

    .embed-container {
        width: 100%;
        max-width: 100%;
        margin: 15px 0;
    }

    .embed-container iframe {
        width: 100%;
        max-width: 100%;
    }


    /* Facebook */

    .facebook-embed {
        width: 100%;
        max-width: 500px;
        margin: 15px auto;
        overflow: hidden;
    }

    .facebook-embed iframe {
        display: block;
        width: 100% !important;
        max-width: 100%;
    }


    /* ----------------------------------
       YOUTUBE - FULL WIDTH
       One video per row
    ---------------------------------- */

    .youtube-videos {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
        gap: 15px;
        margin: 15px 0;
    }

    .youtube-videos iframe {
        display: block;
        width: 100% !important;
        max-width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        border: 0;
        border-radius: 15px;
    }


    /* Hide unnecessary clear divs */

    #mainBody > div[style*="clear"],
    #bodyContainer + div[style*="clear"] {
        display: none;
    }
}


/* ==========================================
   SMALL MOBILE
   480px and below
========================================== */

@media screen and (max-width: 480px) {

    #bodyContainer {
        padding: 10px;
    }

    /* Logo */

    #artistTitle img {
        width: 160px;
    }

    /* Social Icons */

    #artistLink .socialLinks {
        gap: 10px;
    }

    .socialLinks img {
        width: 26px;
        height: 26px;
    }

    /* Content */

    #mainBody p {
        font-size: 10.66px;
        line-height: normal;
    }

    /* YouTube */

    .youtube-videos {
        grid-template-columns: 1fr;
    }

    .youtube-videos iframe {
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    /* Airplay text */

    .style7 {
        font-size: 11px;
        line-height: 1.5;
    }
}





/* ==========================================
   NEWS LIST
========================================== */

.news-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.news-image {
    width: 120px;
    min-width: 120px;
}

.news-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.news-content {
    flex: 1;
    min-width: 0;
}

.news-content h3 {
    margin: 0 0 8px;
    font-size: 10.66px;
    font-weight: 700;
    line-height: normal;
}

.news-description {
    font-size: 10.66px;
    line-height: normal;
    overflow-wrap: break-word;
}

.news-description img {
    max-width: 100%;
    height: auto;
}


/* ==========================================
   NEWS PAGINATION
========================================== */

.news-pagination {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 25px 0;
}

.pagination-list {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.pagination-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #690200;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(.active) {
    background: #690200;
    color: #fff;
    border-color: #690200;
}

.pagination-btn.active {
    background: #690200;
    color: #fff;
    border-color: #690200;
    cursor: default;
}


/* ==========================================
   MOBILE NEWS
========================================== */

@media screen and (max-width: 859px) {

    .news-item {
        gap: 12px;
    }

    .news-image {
        width: 100px;
        min-width: 100px;
    }

    .news-content h3 {
        font-size: 10.66px;
        line-height: normal;
        font-weight: 700;
    }

    .news-description {
        font-size: 10.66px;
    }
}

@media screen and (max-width: 480px) {

    .news-item {
        gap: 10px;
        padding-bottom: 15px;
    }

    .news-image {
        width: 85px;
        min-width: 85px;
    }

    .news-content h3 {
        font-size: 10.66px;
        line-height: normal;
        font-weight: 700;
    }

    .news-description {
        font-size: 10.66px;
        line-height: normal;
    }

    .pagination-list {
        gap: 6px;
    }

    .pagination-btn {
        min-width: 34px;
        height: 34px;
        font-size: 12px;
        padding: 0 9px;
    }
}




/* Bio Download - Always at the bottom on mobile */

@media screen and (max-width: 859px) {

    #artistImage > div[align="center"] {
        order: 6;
        display: block;
        width: 100%;
        text-align: center;
        margin: 20px 0;
    }

    #artistImage > div[align="center"] img {
        display: inline-block;
        max-width: 100%;
        height: auto;
    }
}