/* General page styling */
body {
    font-family: sans-serif, Arial;
    color: #e5e5e5;
    background-color: #121212;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

a {
    color: #fff;
    text-decoration: none;
}

a:hover {
    color: #1ed760;
}

h2, h3 {
    color: #1db954;
}

.header {
    display: flex;
    align-items: center;
    padding: 0 12px;
    height: 65px;
    background-color: #000;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    position: absolute;
    top: 5px;
    width: 135px;
    height: 33px;
}

.slogan {
    display: block;
    width: 315px;
    color: #777777;
    font-size: 11px;
    margin-top: 0;
    margin-left: 2px;
    font-style: italic;
}

.search-container {
    position: absolute;
    right: 0;
    margin-left: auto;
    width: 30%;
    height: 59px;
    top: 10px;
}

.search-icon {
    position: absolute;
    top: 5px;
    right: 10px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    z-index: 10;
}

.search-input {
    position: absolute;
    right: 0;
    width: 0;
    height: 42px;
    border-radius: 21px;
    background-color: #333333;
    color: #ffffff;
    border: none;
    padding-left: 15px;
    transition: width 0.4s ease;
    opacity: 0;
    pointer-events: none;
}

.search-input.active {
    width: 400px !important;
    opacity: 1;
    pointer-events: auto;
    right: 5px;
    border-radius: 27px;
}

.clear-icon {
    position: absolute;
    top: 9px;
    right: 52px;
    font-size: 30px;
    color: #888888;
    cursor: pointer;
}

.clear-icon:hover {
    color: #ffffff;
}

/* Background and gradient overlay styling */
.header-background {
    position: relative;
    background-image: url('{{ artist_image }}');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: auto;
}

.gradient-overlay {
    position: relative;
    z-index: 1;
    color: #ffffff;
    padding: 0px 11px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.85) 80%, rgba(0, 0, 0, 0.95) 100%);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: auto;
}

/* Title and text styling */
/*.article-title {
    font-size: 36px;
    color: #1DB954;
    margin-top: 120px;
    margin-bottom: 60px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}*/

.article-title {
    font-size: 36px;
    color: #1DB954;
/*    margin-top: 0px;*/
margin-top: 80px;
/*    margin-top: 80px;*/
    margin-bottom: 0px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.closing-text {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.7;
}

.closing-text {
    padding: 30px;
}


.intro-text {
    font-size: 24px;
    color: #ffffff;
    margin-top: 20px;
    margin-bottom: 20px;
    line-height: 1.7;
}

/* Song List Styling */
.song-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

.song-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background-color: #222;
    border-radius: 10px;
}

.thumbnail-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.thumbnail-link:hover .song-thumbnail {
    transform: scale(1.05);
}

.song-thumbnail {
    width: 150px;
    height: auto;
    border-radius: 10px;
}

.song-info {
    flex: 1;
}

.song-title {
    font-size: 30px;
    color: #1DB954;
    margin: 0 0 10px;
    font-weight: bold;
}

.song-description {
    font-size: 20px;
    line-height: 1.5em;
    color: #ffffff;
    margin: 0 0 10px;
}

/* Buttons Styling */
.song-buttons {
    display: flex;
    gap: 10px;
}

.watch-now-btn {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #1DB954;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
}

.watch-youtube-btn {
    padding: 8px 16px;
    font-size: 14px;
    background-color: #222;
    color: #ffffff;
    border: 1px solid #555;
    border-radius: 5px;
    cursor: pointer;
}

.watch-now-btn:hover {
    background-color: #1aa34a;
}

.watch-youtube-btn:hover {
    background-color: #333;
}

/* YouTube Popup Overlay */
.youtube-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.youtube-popup {
    position: relative;
    background: #000;
    padding: 10px;
    border-radius: 10px;
}

.youtube-popup iframe {
    border-radius: 10px;
    width: 560px;
    height: 315px;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    font-size: 16px;
    color: #ffffff;
    background: #333;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.close-popup:hover {
    background-color: #555;
}

/* About Section Styling */
#about {
    margin-top: 40px;
    padding: 20px;
    background-color: #1b1b1b;
    border-radius: 10px;
}

#about h2 {
    font-size: 28px;
    color: #1DB954;
    margin-bottom: 15px;
}

#about p {
    font-size: 20px;
    color: #ffffff;
    line-height: 1.7;
}

/* Related Tags Styling */
#related-tags {
    margin-top: 20px;
    padding: 20px;
    background-color: #222;
    border-radius: 10px;
    font-size: 18px;
}

#related-tags strong {
    color: #ffffff;
}

#related-tags a {
    color: #1DB954;
    text-decoration: none;
    margin: 0 5px;
}

#related-tags a:hover {
    text-decoration: underline;
}

/* Recently Added Articles */
/*.content {
    padding: 0 20px;
}
*/
.section-title {
    font-size: 1.8rem;
    color: #777;
    margin-bottom: 60px;
    font-weight: bold;
    margin-top: 75px;
    font-style: italic;
}

.article-group {
    align-items: center;
    margin-bottom: 60px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background-color: #222;
    border-radius: 10px;
    
}
}

/* Thumbnail Image */
.thumbnail {
    width: 200px;
    height: 200px;
    background-color: #444;
    margin-right: 15px;
    overflow: hidden;
    border-radius: 4px;
}

.thumbnail img {
    width: 200px;
    height: auto;
    object-fit: cover;
}

/* Article Title and Info */
.article-details {
    flex: 1;
}

/*.article-title {
    font-size: 1.4rem;
    margin: 0 0 8px;
    color: #c8c8c8;
    font-weight: normal;
}*/

.article-info {
    color: #ffffff;
    font-size: 20px;
    line-height: 1.5;
}

.article-info .tag {
    color: #888;
    text-decoration: underline;
}

.article-info .tag:hover {
    color: #1db954;
}

/* Footer Section */
.footer {
    background-color: #000000;
    padding: 20px;
    text-align: center;
    color: #666666;
    font-size: 0.9rem;
}

.footer a {
    color: #c6c6c6;
    margin: 0 10px;
    font-size: 0.9rem;
}

.footer a:hover {
    color: #1db954;
}

.social-icons {
    margin-top: 10px;
}

.social-link {
    margin: 0 10px;
    color: #666666;
    font-size: 1rem;
}

.social-link:hover {
    color: #1db954;
}

.main-content {
    display: flex;
}

.ad-container {
    position: relative;
    display: flex;
    margin: auto;
    padding: 30px;  
}

.ad-container.728x90,
.ad-container.728x90 {
    width: 728px;
    height: 90px;
}

.ad-container.970x250,
.ad-container.970x250 {
    width: 970px;
    height: 250px;
}

.ad-leaderboard {
    display: flex;
     margin: auto;
    padding: 30px;   
}

.content .ad-leaderboard,
.main-content .ad-leaderboard {
    display: flex;
    margin: auto;
    padding: 30px;
    width: 100%;
}

.content .ad-leaderboard.728x90,
.main-content .ad-leaderboard.728x90 {
    height: 90px;
}

.content .ad-leaderboard.970x250,
.main-content .ad-leaderboard.970x250 {
    height: 250px;
}

.content .ad-leaderboard.728x90 img,
.main-content .ad-leaderboard.728x90 img {
    width: 728px;
    height: 90px;
}

.content .ad-leaderboard.970x250 img,
.main-content .ad-leaderboard.970x250 img {
    width: 970px;
    height: 250px;
}

/* Sidebar Section */
.sidebar {
    position: relative;
    top: 5px;
    left: -30px;
    display: block;
    width: 340px;
    height: auto;
} 

.sidebar .ad-container {
    margin: 20px;
    width: 300px;
}

.sidebar .ad-container.300x250 {
    width: 300px;
    height: 250px;
}

.sidebar .ad-container.300x600 {
    width: 300px;
    height: 600px;
}

/* General Ad Styling */
.ad-leaderboard img,
.ad-container img {
    object-fit: cover;
    margin: auto;
}



.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

/*.pagination a {
    padding: 10px 15px;
    margin: 0 5px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
}*/

.pagination a:hover {
    background-color: #0056b3;
}

.pagination .page-info {
    margin: 0 10px;
    font-weight: bold;
}

.page-article-title {
    font-size: 30px;
    color: #1DB954;
    margin-top: 0px;
    margin-bottom: 0px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}


/* Base styles */
/*.article-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 60px;
}*/

.thumbnail {
    width: 200px;
    height: 200px;
    background-color: #444;
    margin-right: 15px;
    overflow: hidden;
    border-radius: 4px;
}

.thumbnail img {
    width: 200px;
    height: auto;
    object-fit: cover;
}

.article-details {
    flex: 1;
}

.page-article-title {
    font-size: 30px;
    color: #1DB954;
    margin-top: 0px;
    margin-bottom: 0px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.article-info {
    color: #ffffff;
    font-size: 20px;
    line-height: 1.5;
}

/* Responsive styles for mobile */
@media (max-width: 768px) {
    .article-group {
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background-color: #222;
    border-radius: 10px;
    
}

    .thumbnail {
        width: 100%;
        height: auto;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .page-article-title {
        font-size: 24px;
        text-align: center;
    }

    .article-info {
        font-size: 18px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .thumbnail {
        margin: 20px 0;
    } 
     
    .page-article-title {
        font-size: 20px;
    }

    .article-info {
        font-size: 16px;
        line-height: 1.4;
    }
}


/* Base styles */
.song-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

.song-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background-color: #222;
    border-radius: 10px;
}

.thumbnail-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.song-info {
    flex: 1;
}

.song-title {
    font-size: 30px;
    color: #1DB954;
    margin: 0 0 10px;
    font-weight: bold;
}

.song-description {
    font-size: 20px;
    line-height: 1.5em;
    color: #ffffff;
    margin: 0 0 10px;
}

.song-buttons {
    display: flex;
    gap: 10px;
}

.watch-now-btn {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #1DB954;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
}

.watch-youtube-btn {
    padding: 8px 16px;
    font-size: 14px;
    background-color: #222;
    color: #ffffff;
    border: 1px solid #555;
    border-radius: 5px;
    cursor: pointer;
}

/* Responsive styles for mobile */
@media (max-width: 768px) {
    .song-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .thumbnail-link {
        width: 100%;
        margin-bottom: 15px;
    }

    .thumbnail-link img {
        width: 100%;
        height: auto;
        border-radius: 10px;
    }

    .song-title {
        font-size: 24px;
    }

    .song-description {
        font-size: 18px;
    }

    .watch-now-btn,
    .watch-youtube-btn {
        font-size: 14px;
        padding: 8px 16px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .song-title {
        font-size: 20px;
    }

    .song-description {
        font-size: 16px;
        line-height: 1.4;
    }

    .watch-now-btn,
    .watch-youtube-btn {
        font-size: 13px;
    }
}



/* Content Wrapper */
.content-wrapper {
    display: flex;
    justify-content: space-between;
    padding: 20px;
}

/* Main Content */
.content {
    flex: 3;
    margin-right: 20px;
}


.song-title {
    text-align: center;
    margin-bottom: 20px;
}

.article-title {
    font-size: 36px;
    color: #1DB954;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin: 0;
}

.video-container {
    text-align: center;
    margin-bottom: 20px;
}

.video-container iframe {
    width: 100%;
    max-width: 700px;
    height: 394px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

.song-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #ffffff;
}

/* About Section */
#about {
    background-color: #222222;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.about-wrapper {
    display: flex;
    align-items: flex-start;
}

.artist-thumbnail {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-right: 20px;
}

.artist-bio h2 {
    font-size: 22px;
    color: #1DB954;
    margin-bottom: 10px;
}

.artist-bio p {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* Related Tags Section */
#related-tags {
    padding: 20px;
    background-color: #222222;
    border-radius: 10px;
    margin-bottom: 20px;
}

#related-tags strong {
    font-size: 18px;
    color: #ffffff;
}

#related-tags a {
    color: #1DB954;
    font-size: 16px;
    margin-right: 10px;
}


/*Yas*/
.song-description {
    font-size: 20px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #ffffff;
}

.artist-bio p {
    font-size: 20px;
    line-height: 1.7;
    margin: 0;
}

.ad-container, .ad-leaderboard, .content .ad-leaderboard, .main-content .ad-leaderboard {
    margin: auto;
    padding: 30px;
}
h1 {
    text-align: center;
    color: #1db954;
    margin-top: 20px;
}
.genre-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 20px auto;
    padding: 10px;
    width: 90%;
    max-width: 1200px;
}
.genre-column a {
    color: white;
    font-size: 1rem;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}
.genre-column a:hover {
    color: #1db954;
    text-decoration: underline;
}
.pagination {
    text-align: center;
    margin: 20px 0;
}
.pagination a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    font-size: 1.2rem;
}
.pagination a:hover {
    color: #1db954;
    text-decoration: underline;
}
.language-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 20px auto;
    padding: 10px;
    width: 90%;
    max-width: 1200px;
    margin-bottom: 200px;
}
.language-column a {
    color: white;
    font-size: 1rem;
    text-decoration: none;
    display: block;
    margin-bottom: 30px;
}
.language-column a:hover {
    color: #1db954;
    text-decoration: underline;
}
.country-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 20px auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
}
.country-column a {
    color: white;
    font-size: 1rem;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.country-column a:hover {
    color: #1db954;
    text-decoration: underline;
}
@media (max-width: 480px) {
    .song-item {
        flex-direction: row;
    }

    .thumbnail-link, .song-thumbnail {
        max-width: 150px;
    }

    .article-title {
        font-size: 36px;
    }

    .intro-text, .closing-text {
        font-size: 24px;
    }

    .song-description {
        font-size: 20px;
    }

    .sidebar {
        flex: 0 0 300px;
        margin-left: 20px;
    }

    .main-content {
        flex-wrap: nowrap;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-container {
        margin-left: 0;
        margin-top: 10px;
        width: auto;
        position: static;
    }

    .search-input.active {
        width: 94%;
        max-width: 500px;
        right: 5px;
        top: 8px;
        border-radius: 21px;
        font-size: 16px;
    }

        .search-icon {
        top: 15px;
        right: 4px;
    }


    .page-title {
        font-size: 28px;
    }

    .intro-text, .section-content {
        font-size: 16px;
        line-height: 1.5;
    }

    .button {
        font-size: 16px;
        padding: 9px 18px;
    }

    .main-content,
    .content-wrapper {
        flex-direction: column;
        flex-wrap: wrap;
    }

    aside.sidebar {
        width: 100%;
        margin-top: 20px;
    }


    .header-background {
        height: auto;
        min-height: 200px;
    }

    .article-title {
        font-size: 24px;
    }

    .song-title {
        font-size: 24px;
    }

    .song-description,
    .article-info {
        font-size: 17px;
    }

    .slogan {
        display: none;
    }

    .thumbnail {
        width: 100%;
        max-width: 300px;
        height: auto;
        border-radius: 10px;
        margin: auto;
    }  
     .footer {
        line-height: 2.5;
    }  

    .article-tracks, .track-link {
        font-size: 16px;
        line-height: 1.5;
    }  
    .article-group {
        gap: 20px;
        padding: 20px;
        background-color: #222;
        border-radius: 10px;     
    } 
       .about-wrapper {
        flex-wrap: wrap;
    }             

    .intro-text, .section-content {
        font-size: 15px;
        line-height: 1.5;
    }

    .button {
        font-size: 14px;
        padding: 8px 16px;
    }

    .header {
        padding: 8px;
        height: 55px;
    }


    #about {
        margin-top: 0;
    }

    .article-title,
    .song-title {
        font-size: 22px;
        margin-top: 20px;
    }

    .song-description,
    .article-info {
        font-size: 17px;
    }

    .search-input.active {
        width: 94%;
        max-width: 500px;
        right: 5px;
        top: 8px;
        border-radius: 21px;
        font-size: 16px;
    }
    .thumbnail {
        width: 100%;
        max-width: 300px;
        height: auto;
        border-radius: 10px;
    }  
     .footer {
        line-height: 2.5;
    } 
     .article-tracks, .track-link {
        font-size: 16px;
        line-height: 1.5;
    } 

    .article-group {
        gap: 20px;
        padding: 20px;
        background-color: #222;
        border-radius: 10px;     
    }
     .about-wrapper {
        flex-wrap: wrap;
    }

     #related-tags {
        font-size: 18px;
        line-height: 2.5;
    }  

    .logo {
        margin-top: 0;
    }    

    .header {
        padding: 8px;
        height: 55px;
    }

    .intro-text, .closing-text {
        font-size: 18px;
        line-height: 1.7;
    }

    .song-description {
        font-size: 18px;
        line-height: 1.7;
        margin: 0 0 10px;
    }

    .song-thumbnail {
        padding: 0 10px;
    }
}

.footer a {
    color: #c6c6c6;
}

img, iframe {
    max-width: 100%;
    height: auto;
}

.content,
.main-content,
.content-wrapper {
    max-width: 100%;
    overflow-x: hidden; /* Optional: Allows scrolling only if needed */
    box-sizing: border-box; /* Includes padding and border in the element's width */
}
.clearfix::after {
    content: "";
    display: block;
    clear: both;
}
img, video {
    max-width: 100%;
    height: auto;
}
