/* ===== FRONT PAGE STYLES - MOBILE FIRST ===== */
.front-page-container {
    padding: var(--spacing-sm);
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== FRONT PAGE CONTENT & SIDEBAR LAYOUT ===== */
.front-page-content {
    margin-bottom: var(--spacing-xl);
}

.front-page-sidebar {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: var(--spacing-xl);
    overflow: visible; /* Changed from auto to visible */
}

.front-page-sidebar .sideber-widget {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--light-gray);
}

.front-page-sidebar .sideber-widget:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--dark-bg);
    margin: 0 0 var(--spacing-sm) 0;
    padding-bottom: var(--spacing-xs);
    border-bottom: 2px solid var(--primary-green);
}

.tag-cloud a {
    display: inline-block;
    background: rgba(39, 174, 96, 0.1);
    color: var(--primary-green);
    padding: 5px 10px;
    margin: 0 5px 8px 0;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none !important;
    transition: all var(--transition-normal);
}

.tag-cloud a:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateY(-2px);
}

.recent-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts li {
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--light-gray);
}

.recent-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-posts a {
    display: block;
    font-weight: 600;
    color: var(--dark-bg);
    margin-bottom: 4px;
    transition: color var(--transition-normal);
}

.recent-posts a:hover {
    color: var(--primary-green);
}

.post-date {
    font-size: 0.8rem;
    color: #7f8c8d;
}

.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    margin-bottom: 8px;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--dark-bg);
    font-weight: 600;
    padding: 8px;
    border-radius: var(--radius-sm);
    background: rgba(39, 174, 96, 0.05);
    transition: all var(--transition-normal);
}

.categories-list a:hover {
    background: rgba(39, 174, 96, 0.15);
    color: var(--primary-green);
    transform: translateX(5px);
}

.category-count {
    font-size: 0.8rem;
    background: var(--primary-green);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
}

/* Newsletter form styling */
.front-page-sidebar form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.front-page-sidebar input[type="email"],
.front-page-sidebar input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: border-color var(--transition-normal);
}

.front-page-sidebar input[type="email"]:focus,
.front-page-sidebar input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-green);
}

.front-page-sidebar button[type="submit"] {
    background: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.front-page-sidebar button[type="submit"]:hover {
    background: #219653;
    transform: translateY(-2px);
}

/* ===== GOSPEL SECTION ===== */
.gospel-section {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-sm);
    background: linear-gradient(135deg, rgba(142, 68, 173, 0.1) 0%, rgba(155, 89, 182, 0.05) 100%);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(155, 89, 182, 0.3);
}

.gospel-section .section-titile {
    color: #8e44ad;
    margin-bottom: 2px;
}

.section-titile-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.section-subtitle {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 600;
    font-style: italic;
}

.gospel-section .no-thumbnail {
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
}

.gospel-section .view-all-posts {
    color: #8e44ad;
    border-color: #8e44ad;
}

.gospel-section .view-all-posts:hover {
    background: #8e44ad;
    color: var(--white);
    box-shadow: 0 4px 12px rgba(142, 68, 173, 0.3);
}

/* ===== TOP WEEKLY SONGS SECTION ===== */
.top-weekly-songs-section {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-sm);
    background: linear-gradient(135deg, rgba(52, 73, 94, 0.1) 0%, rgba(44, 62, 80, 0.05) 100%);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(52, 73, 94, 0.3);
}

.top-weekly-songs-section .section-titile {
    color: #2c3e50;
}

.weekly-country-sections {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.country-weekly-section .section-headar {
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.country-weekly-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1.1rem;
    color: var(--dark-bg);
    font-weight: 800;
    margin: 0;
}

.country-flag {
    font-size: 1.3rem;
}

.country-name {
    font-size: 1rem;
}

.country-weekly-section .view-allo-section {
    font-size: 0.8rem;
}

.country-weekly-section .view-all-posts {
    font-size: 0.85rem;
    padding: 8px 16px;
}

/* ===== AUDIO SECTION ===== */
.audio-section {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-sm);
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1) 0%, rgba(33, 150, 83, 0.05) 100%);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.audio-section .section-titile {
    color: #27ae60;
}

.audio-section .no-thumbnail {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

/* ===== NEWS SECTION ===== */
.news-section {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-sm);
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(41, 128, 185, 0.05) 100%);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.news-section .section-titile {
    color: #2980b9;
}

.news-section .no-thumbnail {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
}

.news-item .post-content {
    gap: 8px; /* More space for excerpt */
}

.news-item .post-title {
    font-size: 1.2rem; /* Slightly smaller for news */
    margin-bottom: 5px;
}

.post-excerpt {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #5d6d7e;
    margin: 5px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-top: 8px;
    font-size: 0.8rem;
    color: #7f8c8d;
}

.post-date,
.post-author {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-date i,
.post-author i {
    font-size: 0.9rem;
    color: #3498db;
}

/* ===== TOP ARTISTS SECTION ===== */
.top-artists-section {
    margin-bottom: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.1) 0%, rgba(142, 68, 173, 0.05) 100%);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(155, 89, 182, 0.3);
}

.artists-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.artist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: white;
    border-radius: var(--radius-md);
    text-decoration: none !important;
    color: var(--dark-bg);
    border: 1px solid var(--light-gray);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.artist-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-gold);
}

.artist-ranks {
    position: absolute;
    top: 5px;
    right: 5px;
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    font-size: 0.7rem;
    font-weight: 900;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.artist-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-gold));
    display: flex;
    align-items: center;
    justify-content: center;
}

.artist-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artist-initials {
    font-size: 1.2rem;
    font-weight: 900;
    color: white;
}

.artist-info {
    flex: 1;
    min-width: 0;
}

.artist-name {
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0 0 4px 0;
    color: var(--dark-bg);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artist-song-count {
    font-size: 0.75rem;
    color: #7f8c8d;
    font-weight: 600;
}

/* ===== ARTIST SONGS SECTION ===== */
.artist-songs-section {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-sm);
    background: linear-gradient(135deg, rgba(0, 40, 85, 0.05) 0%, rgba(0, 0, 0, 0.02) 100%);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 150, 255, 0.2);
}

/* ===== TRENDING SONGS SECTION ===== */
.trending-songs-section {
    margin-bottom: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(192, 57, 43, 0.05) 100%);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.trending-item .post-thumbnail {
    position: relative;
}

.trending-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 3px;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.trending-badge i {
    font-size: 0.6rem;
}

.trending-artists-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trending-artist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: var(--radius-md);
    text-decoration: none !important;
    color: var(--dark-bg);
    border: 1px solid var(--light-gray);
    transition: all var(--transition-normal);
    position: relative;
}

.trending-artist-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-gold);
}

.artist-trending-rank {
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    color: var(--dark-bg);
    font-size: 0.8rem;
    font-weight: 900;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.artist-trending-info {
    flex: 1;
    min-width: 0;
}

.artist-trending-name {
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 3px 0;
    color: var(--dark-bg);
}

.artist-trending-song {
    font-size: 0.8rem;
    color: #7f8c8d;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artist-trending-stats {
    flex-shrink: 0;
}

.trending-count {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #e74c3c;
    font-weight: 700;
    background: rgba(231, 76, 60, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
}

.trending-count i {
    font-size: 0.7rem;
}

/* ===== VIDEO SECTION ===== */
.video-section {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-sm);
    background: linear-gradient(135deg, rgba(0, 40, 85, 0.05) 0%, rgba(0, 0, 0, 0.02) 100%);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 150, 255, 0.2);
}

.video-section .section-titile {
    color: #0066cc;
}

.video-section .no-thumbnail {
    background: linear-gradient(135deg, #0066cc 0%, #00aaff 100%);
}

.video-section .stream-label {
    color: #0066cc;
}

.video-section .stream-label::before {
    background-color: #0066cc;
}

.video-section .post-item:hover .stream-label {
    color: #0052a3;
}

.video-section .post-item:hover .stream-label::before {
    background-color: #0052a3;
}

/* ===== COUNTRY SECTIONS ===== */
.country-section {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-sm);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--accent-gold);
}

.country-section:nth-child(3n+1) {
    border-left-color: #27ae60; /* Green for Nigeria */
}

.country-section:nth-child(3n+2) {
    border-left-color: #e74c3c; /* Red for Ghana */
}

.country-section:nth-child(3n+3) {
    border-left-color: #0066cc; /* Blue for South Africa */
}

.country-section:nth-child(3n+4) {
    border-left-color: #9b59b6; /* Purple for UK */
}

.country-section:nth-child(3n+5) {
    border-left-color: #f39c12; /* Orange for USA */
}

/* ===== FEATURED SECTION ===== */
.featured-section {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-sm);
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.05) 0%, rgba(0, 0, 0, 0.02) 100%);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.featured-section .section-titile {
    color: #e74c3c;
}

/* ===== LATEST POSTS SECTION ===== */
.latest-posts-section {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-sm);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--primary-green);
}

/* ===== SECTION HEADER STYLES ===== */
.section-headar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-xs);
    border-bottom: 2px solid var(--accent-gold);
}

.section-titile {
    font-size: 1.4rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--dark-bg);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view-allo-section {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--primary-green);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all var(--transition-normal);
}

.view-allo-section:hover {
    color: var(--accent-gold);
    gap: 6px;
}

/* ===== POSTS LIST LAYOUT - SINGLE COLUMN FOR ALL DEVICES ===== */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

/* Make entire post clickable */
.post-item-link {
    display: block;
    text-decoration: none !important;
    color: inherit;
    cursor: pointer;
    outline: none;
}

.post-item {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-normal);
    overflow: hidden;
    border: 1px solid var(--light-gray);
    margin-bottom: 5px;
    position: relative;
}

.post-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-gold);
}

.post-content-wrapper {
    display: flex;
    gap: var(--spacing-sm);
    padding: 5px;
    align-items: flex-start;
}

/* ===== POST THUMBNAIL ===== */
.post-thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.post-item:hover .post-thumbnail img {
    transform: scale(1.05);
}

.no-thumbnail {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-gold) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

/* ===== POST CONTENT ===== */
.post-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 5px;
}

/* INCREASED TITLE SIZE */
.post-title {
    font-size: 1.2rem;
    line-height: 1.4;
    margin: 0;
    color: var(--dark-bg);
    font-weight: 800;
    transition: color var(--transition-normal);
}

.post-item:hover .post-title {
    color: var(--primary-green);
}

.title-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== ACTION LABELS ===== */
.action-labels {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
    align-items: flex-start;
}

.stream-label,
.download-label {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 0;
    position: relative;
    transition: all var(--transition-normal);
}

.stream-label {
    color: #27ae60;
    order: 1;
}

.stream-label::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #27ae60;
    border-radius: 50%;
    margin-right: 6px;
    transition: all var(--transition-normal);
}

.post-item:hover .stream-label {
    color: #219653;
}

.post-item:hover .stream-label::before {
    background-color: #219653;
    transform: scale(1.2);
}

.download-label {
    color: #e74c3c;
    order: 2;
}

.download-label::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #e74c3c;
    border-radius: 50%;
    margin-right: 6px;
    transition: all var(--transition-normal);
}

.post-item:hover .download-label {
    color: #c0392b;
}

.post-item:hover .download-label::before {
    background-color: #c0392b;
    transform: scale(1.2);
}

/* ===== VIDEO PLAY ICON ===== */
.video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    z-index: 2;
}

.post-thumbnail:hover .video-icon {
    background: rgba(0, 102, 204, 0.9);
}

/* ===== SECTION FOOTER STYLES ===== */
.section-footer {
    text-align: center;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--light-gray);
}

.view-all-posts {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-green);
    font-weight: 800;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 20px;
    border: 2px solid var(--primary-green);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    background: transparent;
}

.view-all-posts:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

/* Specific section footer colors */
.featured-section .view-all-posts {
    color: #e74c3c;
    border-color: #e74c3c;
}

.featured-section .view-all-posts:hover {
    background: #e74c3c;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.top-artists-section .view-all-posts {
    color: #9b59b6;
    border-color: #9b59b6;
}

.top-artists-section .view-all-posts:hover {
    background: #9b59b6;
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.3);
}

.gospel-section .view-all-posts {
    color: #8e44ad;
    border-color: #8e44ad;
}

.gospel-section .view-all-posts:hover {
    background: #8e44ad;
    box-shadow: 0 4px 12px rgba(142, 68, 173, 0.3);
}

.artist-songs-section .view-all-posts {
    color: #9b59b6;
    border-color: #9b59b6;
}

.artist-songs-section .view-all-posts:hover {
    background: #9b59b6;
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.3);
}

.trending-songs-section .view-all-posts {
    color: #e74c3c;
    border-color: #e74c3c;
}

.trending-songs-section .view-all-posts:hover {
    background: #e74c3c;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.audio-section .view-all-posts {
    color: #27ae60;
    border-color: #27ae60;
}

.audio-section .view-all-posts:hover {
    background: #27ae60;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.video-section .view-all-posts {
    color: #0066cc;
    border-color: #0066cc;
}

.video-section .view-all-posts:hover {
    background: #0066cc;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.country-section .view-all-posts {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
}

.country-section .view-all-posts:hover {
    background: var(--accent-gold);
    color: var(--dark-bg);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.country-weekly-section .view-all-posts {
    color: #34495e;
    border-color: #34495e;
}

.country-weekly-section .view-all-posts:hover {
    background: #34495e;
    color: var(--white);
    box-shadow: 0 4px 12px rgba(52, 73, 94, 0.3);
}

.news-section .view-all-posts {
    color: #2980b9;
    border-color: #2980b9;
}

.news-section .view-all-posts:hover {
    background: #2980b9;
    box-shadow: 0 4px 12px rgba(41, 128, 185, 0.3);
}

.trending-artists-section .view-all-posts {
    color: #f39c12;
    border-color: #f39c12;
}

.trending-artists-section .view-all-posts:hover {
    background: #f39c12;
    color: var(--dark-bg);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.post-item {
    animation: fadeIn 0.3s ease-out;
}

@media (min-width: 769px) {
    .front-page-container {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: var(--spacing-lg);
        align-items: start;
    }
    
    .front-page-content {
        margin-bottom: 0;
    }
    
    .front-page-sidebar {
        position: sticky;
        top: var(--spacing-lg);
        height: auto;
        max-height: none; /* Removed max-height constraint */
        overflow: visible; /* Changed from auto to visible */
    }
    
    .artists-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .posts-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    /* Single column for specific sections on desktop */
    .country-weekly-section .posts-list,
    .gospel-section .posts-list,
    .featured-section .posts-list {
        grid-template-columns: 1fr;
    }
    
    /* Ensure sidebar widgets don't create overflow */
    .front-page-sidebar .tag-cloud {
        max-height: 200px;
        overflow-y: auto;
        padding-right: 5px;
    }
    
    .front-page-sidebar .tag-cloud::-webkit-scrollbar {
        width: 4px;
    }
    
    .front-page-sidebar .tag-cloud::-webkit-scrollbar-track {
        background: var(--light-gray);
        border-radius: 2px;
    }
    
    .front-page-sidebar .tag-cloud::-webkit-scrollbar-thumb {
        background: var(--primary-green);
        border-radius: 2px;
    }
    
    .front-page-sidebar .tag-cloud::-webkit-scrollbar-thumb:hover {
        background: #219653;
    }
}

/* ===== REMOVE LINK DECORATION GLOBALLY ===== */
a {
    text-decoration: none !important;
}

a:hover,
a:focus,
a:active {
    text-decoration: none !important;
    outline: none;
}

/* ===== FIX SIDEBAR OVERFLOW ON ALL SCREENS ===== */
.front-page-sidebar {
    overflow: visible !important;
}

.front-page-sidebar .sideber-widget {
    overflow: visible;
}

/* Prevent any internal overflow */
.front-page-sidebar * {
    box-sizing: border-box;
}

/* Ensure tag cloud doesn't overflow on mobile */
@media (max-width: 768px) {
    .front-page-sidebar .tag-cloud {
        max-height: 150px;
        overflow-y: auto;
        padding-right: 5px;
    }
}
/* ===== SIDEBAR POSTS LIST ===== */
.sidebar-posts-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.sidebar-post-item {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.sidebar-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-post-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    color: inherit;
    padding: 5px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sidebar-post-link:hover {
    background: rgba(39, 174, 96, 0.1);
    transform: translateX(3px);
}

/* Sidebar post thumbnail */
.sidebar-post-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.sidebar-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* DJ Mix icon */
.dj-mix-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

/* Sidebar post info */
.sidebar-post-info {
    flex: 1;
    min-width: 0;
}

.sidebar-post-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #2c3e50;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-post-date {
    font-size: 0.75rem;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sidebar-post-date i {
    font-size: 0.8rem;
    color: #3498db;
}

/* ===== POPULAR RANK STYLES ===== */
.popular-rank {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #f0f0f0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
}

.popular-rank.rank-1 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
}

.popular-rank.rank-2 {
    background: linear-gradient(135deg, #C0C0C0, #A9A9A9);
    color: #000;
}

.popular-rank.rank-3 {
    background: linear-gradient(135deg, #CD7F32, #A0522D);
    color: #000;
}

/* Song stats */
.song-stats {
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
}

.song-views,
.song-date {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #7f8c8d;
}

.song-views i {
    color: #e74c3c;
}

.song-date i {
    color: #3498db;
}

/* ===== DAY BADGE STYLES ===== */
.day-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    color: #2c3e50;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 12px;
    margin-right: 8px;
}

.day-badge i {
    font-size: 0.7rem;
}

/* Songs of the day specific styles */
.song-today-date {
    font-size: 0.75rem;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.song-today-date i {
    color: #f39c12;
}

/* ===== ALBUMS GRID ===== */
.albums-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .albums-grid {
        grid-template-columns: 1fr;
    }
}

.album-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.album-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.album-link {
    text-decoration: none !important;
    color: inherit;
    display: block;
}

/* Album cover */
.album-cover {
    position: relative;
    height: 180px;
    overflow: hidden;
}

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

.album-item:hover .album-cover img {
    transform: scale(1.05);
}

.album-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.album-item:hover .album-overlay {
    opacity: 1;
}

.album-overlay i {
    color: white;
    font-size: 2rem;
    background: rgba(39, 174, 96, 0.8);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Album info */
.album-info {
    padding: 12px;
}

.album-title {
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #2c3e50;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.album-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.album-views {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #e74c3c;
    font-weight: 700;
}

.album-views i {
    font-size: 0.9rem;
}

.album-date {
    color: #7f8c8d;
    font-weight: 600;
}

/* ===== VIEW ALL LINK ===== */
.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #27ae60;
    font-weight: 700;
    text-decoration: none !important;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 15px;
    border: 2px solid #27ae60;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: transparent;
    margin-top: 10px;
}

.view-all-link:hover {
    background: #27ae60;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

/* ===== NO RESULTS STYLES ===== */
.no-results {
    text-align: center;
    color: #7f8c8d;
    font-size: 0.9rem;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px dashed #ddd;
}

/* ===== RESPONSIVE ADJUSTMENTS FOR SIDEBAR ===== */
@media (max-width: 768px) {
    .sidebar-post-thumb {
        width: 50px;
        height: 50px;
    }
    
    .sidebar-post-title {
        font-size: 0.85rem;
    }
    
    .album-cover {
        height: 150px;
    }
    
    .album-title {
        font-size: 0.9rem;
    }
}

.trending-songs-section .view-all-posts {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.trending-songs-section .view-all-posts:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
    padding: 12px 35px;
}

.trending-songs-section .trending-stats-preview {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.trending-songs-section .trending-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
}

.trending-songs-section .trending-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.15);
    border-color: #e74c3c;
}

.trending-songs-section .trending-stat i {
    font-size: 1.5rem;
    color: #e74c3c;
}

.trending-songs-section .stat-label {
    font-size: 0.9rem;
    color: #5d6d7e;
    font-weight: 500;
}

.trending-songs-section .stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .trending-songs-section .posts-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 992px) {
    .trending-songs-section {
        padding: 5px;
    }
    
    .trending-songs-section .posts-list {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .trending-songs-section {
        padding: 5px;
    }
    
    .trending-songs-section .section-headar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-xs);
    border-bottom: 2px solid var(--accent-gold);
    }
    
    .trending-songs-section .posts-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .trending-songs-section .post-thumbnail {
        height: 150px;
    }
    
    .trending-songs-section .trending-stats-preview {
        gap: 20px;
    }
    
    .trending-songs-section .trending-stat {
        padding: 12px 20px;
    }
}

@media (max-width: 576px) {
    .trending-songs-section .posts-list {
        grid-template-columns: 1fr;
    }
    
    .trending-songs-section .action-labels {
        flex-direction: column;
    }
    
    .trending-songs-section .trending-stats-preview {
        flex-direction: column;
        align-items: center;
    }
    
    .trending-songs-section .trending-stat {
        width: 100%;
        max-width: 300px;
    }
}

/* Popular Albums Widget Styles */
.albums-grid-enhanced {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.album-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rank-number {
    color: #ffd700;
}

.rank-trend {
    color: #27ae60;
}

.album-card-link {
    display: flex;
    text-decoration: none;
    color: inherit;
    gap: 12px;
    padding: 5px;
    align-items: flex-start;
}

.album-cover-enhanced {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.album-cover-enhanced img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.album-card:hover .album-cover-enhanced img {
    transform: scale(1.1);
}

.album-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    pointer-events: none;
}

.album-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
}

.album-cover-placeholder i {
    font-size: 32px;
    opacity: 0.8;
}

.album-type-icon {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0,0,0,0.8);
    color: white;
    font-size: 9px;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
}

.country-flag-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 16px;
    z-index: 2;
    background: rgba(0,0,0,0.7);
    border-radius: 4px;
    padding: 2px 4px;
    backdrop-filter: blur(5px);
}

.album-play-button {
    position: absolute;
    bottom: 5px;
    left: 5px;
    width: 24px;
    height: 24px;
    background: rgba(39, 174, 96, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.album-card:hover .album-play-button {
    opacity: 1;
    transform: scale(1);
}

.album-views-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    font-size: 10px;
    padding: 4px 6px;
    text-align: center;
    backdrop-filter: blur(2px);
}

.album-info-enhanced {
    flex: 1;
    min-width: 0;
}

.album-title-enhanced {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #2c3e50;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.album-artist-enhanced {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 12px;
}

.album-artist-enhanced i {
    color: #27ae60;
    font-size: 10px;
}

.artist-name {
    color: #7f8c8d;
    font-weight: 500;
}

.album-meta-enhanced {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.album-type-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    display: inline-block;
}

.album-tracks {
    font-size: 11px;
    color: #95a5a6;
    display: flex;
    align-items: center;
    gap: 4px;
}

.album-tracks i {
    font-size: 10px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.widget-footer {
    padding: 15px 12px 0;
    border-top: 1px solid #eee;
    margin-top: 10px;
}

.view-all-enhanced {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #27ae60, #219653);
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
}

.view-all-enhanced:hover {
    background: linear-gradient(135deg, #219653, #1e8449);
    transform: translateX(3px);
}

.no-albums-state {
    text-align: center;
    padding: 30px 20px;
}

.no-albums-icon {
    font-size: 40px;
    color: #ddd;
    margin-bottom: 15px;
}

.no-albums-text {
    color: #95a5a6;
    font-weight: 600;
    margin-bottom: 5px;
}

.no-albums-subtext {
    color: #bdc3c7;
    font-size: 13px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .album-cover-enhanced {
        width: 70px;
        height: 70px;
    }
    
    .album-title-enhanced {
        font-size: 13px;
    }
}
/* ===== TOP GRID SECTIONS - SIMPLIFIED ===== */
/* ===== TOP GRID SECTIONS - MOBILE GRID ===== */
.top-grid-section {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.98) 100%);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    border: 1px solid rgba(0,0,0,0.08);
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.top-grid-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-gold));
    z-index: 1;
}

.top-grid-section .widget-title {
    font-size: 1.1rem;
    color: var(--dark-bg);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid rgba(39, 174, 96, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Grid containers - MOBILE GRID (2 columns) */
.top-countries-grid,
.top-artists-grid,
.top-genre-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

/* Grid items */
.country-grid-item,
.artist-grid-item,
.genre-grid-item {
    background: white;
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    text-decoration: none !important;
    color: var(--dark-bg);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 100px;
    height: 100%;
}

.country-grid-item:hover,
.artist-grid-item:hover,
.genre-grid-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: transparent;
}

.country-grid-item::before,
.genre-grid-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--country-color, var(--primary-green)), transparent);
    opacity: 0.8;
}

/* Grid headers */
.country-grid-header,
.artist-grid-header,
.genre-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.country-ranks,
.genre-ranks {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-gold));
    color: white;
}

.artist-ranks {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-gold));
    color: white;
}

.country-ranks.rank-1,
.artist-ranks.rank-1,
.genre-ranks.rank-1 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.country-ranks.rank-2,
.artist-ranks.rank-2,
.genre-ranks.rank-2 {
    background: linear-gradient(135deg, #C0C0C0, #A9A9A9);
}

.country-ranks.rank-3,
.artist-ranks.rank-3,
.genre-ranks.rank-3 {
    background: linear-gradient(135deg, #CD7F32, #A0522D);
}

.country-flag {
    font-size: 1.5rem;
}

.genre-icon {
    font-size: 1.5rem;
}

/* Artist avatar */
.artist-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.artist-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artist-initials {
    font-size: 0.9rem;
    font-weight: 900;
    color: white;
}

/* Grid content */
.country-grid-content,
.artist-grid-content,
.genre-grid-content {
    flex: 1;
    display: flex;
    align-items: center;
}

.country-name,
.artist-name,
.genre-name {
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0;
    color: var(--dark-bg);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
}

/* Grid footers */
.country-grid-footer,
.artist-grid-footer,
.genre-grid-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.view-badge {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary-green);
    display: flex;
    align-items: center;
    gap: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

.view-badge i {
    font-size: 0.6rem;
    transition: transform var(--transition-normal);
}

.country-grid-item:hover .view-badge,
.artist-grid-item:hover .view-badge,
.genre-grid-item:hover .view-badge {
    opacity: 1;
}

.country-grid-item:hover .view-badge i,
.artist-grid-item:hover .view-badge i,
.genre-grid-item:hover .view-badge i {
    transform: translateX(3px);
}

/* Widget footer */
.widget-footer {
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(0,0,0,0.08);
    margin-top: var(--spacing-sm);
}

.view-all-enhanced {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1), rgba(39, 174, 96, 0.05));
    color: var(--primary-green);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9rem;
    transition: all var(--transition-normal);
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.view-all-enhanced:hover {
    background: linear-gradient(135deg, var(--primary-green), #219653);
    color: white;
    transform: translateX(3px);
    border-color: var(--primary-green);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.2);
}

.view-all-enhanced i {
    font-size: 0.8rem;
    transition: transform var(--transition-normal);
}

.view-all-enhanced:hover i {
    transform: translateX(5px);
}

/* No results */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #95a5a6;
    font-style: italic;
}

/* ===== RESPONSIVE GRID - MOBILE FIRST ===== */

/* Mobile (default - already 2 columns) */
@media (max-width: 480px) {
    .top-countries-grid,
    .top-artists-grid,
    .top-genre-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .top-grid-section {
        padding: 15px;
    }
    
    .country-name,
    .artist-name,
    .genre-name {
        font-size: 0.9rem;
    }
    
    .country-flag,
    .genre-icon {
        font-size: 1.3rem;
    }
    
    .country-ranks,
    .artist-ranks,
    .genre-ranks {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
    }
    
    .artist-avatar {
        width: 28px;
        height: 28px;
    }
    
    .artist-initials {
        font-size: 0.8rem;
    }
}

/* Tablet */
@media (min-width: 481px) and (max-width: 768px) {
    .top-countries-grid,
    .top-artists-grid,
    .top-genre-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .country-grid-item,
    .artist-grid-item,
    .genre-grid-item {
        min-height: 110px;
    }
    
    .country-name,
    .artist-name,
    .genre-name {
        font-size: 1rem;
    }
}

/* Desktop */
@media (min-width: 769px) {
    .top-countries-grid,
    .top-artists-grid,
    .top-genre-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .country-grid-item,
    .artist-grid-item,
    .genre-grid-item {
        min-height: 120px;
        padding: var(--spacing-sm);
    }
    
    .country-name,
    .artist-name,
    .genre-name {
        font-size: 1.05rem;
    }
    
    .country-flag,
    .genre-icon {
        font-size: 1.8rem;
    }
    
    .artist-avatar {
        width: 36px;
        height: 36px;
    }
    
    .artist-initials {
        font-size: 1rem;
    }
}

/* Large desktop */
@media (min-width: 1025px) {
    .top-countries-grid,
    .top-artists-grid,
    .top-genre-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.country-grid-item,
.artist-grid-item,
.genre-grid-item {
    animation: fadeInUp 0.3s ease-out;
    animation-fill-mode: both;
}

.country-grid-item:nth-child(2),
.artist-grid-item:nth-child(2),
.genre-grid-item:nth-child(2) {
    animation-delay: 0.1s;
}

.country-grid-item:nth-child(3),
.artist-grid-item:nth-child(3),
.genre-grid-item:nth-child(3) {
    animation-delay: 0.2s;
}

.country-grid-item:nth-child(4),
.artist-grid-item:nth-child(4),
.genre-grid-item:nth-child(4) {
    animation-delay: 0.3s;
}

.country-grid-item:nth-child(5),
.artist-grid-item:nth-child(5),
.genre-grid-item:nth-child(5) {
    animation-delay: 0.4s;
}

.country-grid-item:nth-child(6),
.artist-grid-item:nth-child(6),
.genre-grid-item:nth-child(6) {
    animation-delay: 0.5s;
}

/* Ensure consistent item heights */
.country-grid-item,
.artist-grid-item,
.genre-grid-item {
    min-height: 100px;
    height: auto;
}

/* Improve grid item layout for mobile */
@media (max-width: 768px) {
    .country-grid-header,
    .artist-grid-header,
    .genre-grid-header {
        flex-wrap: wrap;
    }
    
    .country-grid-content,
    .artist-grid-content,
    .genre-grid-content {
        margin-top: 5px;
    }
    
    .country-grid-footer,
    .artist-grid-footer,
    .genre-grid-footer {
        margin-top: auto;
    }
}

/* Specific styles for artist grid items */
.artist-grid-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.artist-rank-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Ensure content fits in grid items */
.country-grid-content h4,
.artist-grid-content h4,
.genre-grid-content h4 {
    margin: 0;
    line-height: 1.2;
}

/* Touch-friendly hover effects for mobile */
@media (hover: hover) and (pointer: fine) {
    .country-grid-item:hover,
    .artist-grid-item:hover,
    .genre-grid-item:hover {
        transform: translateY(-3px);
    }
}

@media (hover: none) {
    .country-grid-item:active,
    .artist-grid-item:active,
    .genre-grid-item:active {
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
}

/* Improve spacing for mobile grid */
@media (max-width: 768px) {
    .top-grid-section {
        margin-bottom: var(--spacing-md);
    }
    
    .widget-footer {
        margin-top: var(--spacing-sm);
    }
}

/* ===== COUNTRY WEEKLY SECTION STYLES ===== */
.country-weekly-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--country-color, #27ae60), transparent);
    opacity: 0.3;
}

.country-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.country-flag-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid;
    backdrop-filter: blur(10px);
}

.country-flag {
    font-size: 1.3rem;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2));
}

.country-name {
    font-size: 1rem;
}

/* Country thumbnail badge */
.country-thumbnail-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    border: 2px solid white;
}

/* View count badge */
.view-count-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 3px;
    backdrop-filter: blur(5px);
}

.view-count-badge i {
    font-size: 0.6rem;
}

/* Post country info */
.post-country-info {
    margin-bottom: 8px;
}

.country-mini-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Stream label with dynamic color */
.stream-label {
    --stream-color: #27ae60;
    color: var(--stream-color);
}

.stream-label::before {
    background-color: var(--stream-color);
}

/* View all links with country colors */
.view-allo-section {
    color: var(--country-color, #27ae60);
    border-bottom: 2px solid transparent;
    transition: all var(--transition-normal);
}

.view-allo-section:hover {
    border-bottom-color: var(--country-color, #27ae60);
}

.view-all-posts {
    border-color: var(--country-color, #27ae60);
    color: var(--country-color, #27ae60);
}

.view-all-posts:hover {
    background: var(--country-color, #27ae60);
    color: white;
    box-shadow: 0 4px 15px rgba(var(--country-color-rgb, 39, 174, 96), 0.3);
}

/* Country badges from your function */
.country-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 8px 0;
}

.country-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(0,0,0,0.1);
    transition: all var(--transition-normal);
}

.country-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Responsive styles */
@media (max-width: 768px) {
    .country-header-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .country-flag-badge {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .country-flag {
        font-size: 1.1rem;
    }
    
    .country-name {
        font-size: 0.9rem;
    }
}

/* Animation for country sections */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.country-weekly-section {
    animation: slideInRight 0.4s ease-out;
}

.country-weekly-section:nth-child(2) {
    animation-delay: 0.1s;
}

.country-weekly-section:nth-child(3) {
    animation-delay: 0.2s;
}

.country-weekly-section:nth-child(4) {
    animation-delay: 0.3s;
}

.artist-section-headar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-xs);
    border-bottom: 2px solid var(--accent-gold);
}

.artist-section-titile {
    font-size: 1.4rem;
    color: var(--dark-bg);
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-gold);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}

.artist-ranks {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 900;
    color: white;
    background: linear-gradient(135deg, #FF9800, #FF5722);
}

.artist-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark-bg);
}

.artist-song-total {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 600;
}

.view-all-artist-songs {
    font-size: 0.8rem;
    font-weight: 700;
    color: #FF9800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.view-all-artist-songs:hover {
    color: #F57C00;
    gap: 6px;
}

.artist-songs-list {
    margin-top: var(--spacing-md);
}

.artist-songs-list .post-item {
    margin-bottom: var(--spacing-sm);
    border-left: 3px solid #FF9800;
}

.artist-songs-list .post-item:hover {
    border-left-color: #F57C00;
}

.post-country {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0;
    font-size: 0.8rem;
    color: #5d6d7e;
}

.post-country i {
    color: #3498db;
    font-size: 0.9rem;
}

.country-name {
    font-weight: 600;
}

/* ===== ALBUMS SECTION ===== */
.albums-section {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-sm);
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.1) 0%, rgba(142, 68, 173, 0.05) 100%);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(155, 89, 182, 0.3);
}

.album-icon {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(155, 89, 182, 0.9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.albums-section .post-item {
    border-left: 3px solid #9b59b6;
}

.albums-section .post-item:hover {
    border-left-color: #8e44ad;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.artist-name {
    font-size: 0.9rem;
    color: #5d6d7e;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.artist-name i {
    color: #9b59b6;
    font-size: 0.8rem;
}

/* Album Type Badges */
.album-type-badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 12px;
    margin-top: 6px;
}

.album-type-badge.album {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.album-type-badge.ep {
    background: rgba(155, 89, 182, 0.1);
    color: #9b59b6;
    border: 1px solid rgba(155, 89, 182, 0.3);
}

.album-type-badge.mixtape {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.album-type-badge.compilation {
    background: rgba(241, 196, 15, 0.1);
    color: #f39c12;
    border: 1px solid rgba(241, 196, 15, 0.3);
}

/* Album Stats */
.album-stats {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    margin-top: 8px;
}

.album-tracks-count,
.album-release-date {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #7f8c8d;
}

.album-tracks-count i {
    color: #9b59b6;
}

.album-release-date i {
    color: #3498db;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .artist-section-headar {
        display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-xs);
    border-bottom: 2px solid var(--accent-gold);
    }
    
    .artist-section-titile {
        font-size: 1rem;
    }
    
    .artist-name {
        font-size: 0.9rem;
    }
    
    .artist-ranks {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
    
    .view-all-artist-songs {
        font-size: 0.75rem;
    }
    
    .albums-section {
        padding: var(--spacing-sm);
    }
    
    .album-icon {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }
    
    .post-meta {
        font-size: 0.8rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .artist-section-headar {
        gap: var(--spacing-xs);
    }
    
    .artist-section-titile {
        font-size: 1.05rem;
    }
}

/* Animation for artist sections */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.artist-songs-section {
    animation: slideInLeft 0.4s ease-out;
    animation-fill-mode: both;
}

.artist-songs-section:nth-child(2) {
    animation-delay: 0.1s;
}

.artist-songs-section:nth-child(3) {
    animation-delay: 0.2s;
}

.artist-songs-section:nth-child(4) {
    animation-delay: 0.3s;
}

.artist-songs-section:nth-child(5) {
    animation-delay: 0.4s;
}

/* Hover effects */
.artist-songs-section:hover .artist-section-titile {
    color: #FF9800;
}

.artist-songs-section:hover .artist-ranks {
    background: linear-gradient(135deg, #F57C00, #E64A19);
}

.artist-songs-section:hover .artist-song-total {
    color: #FF9800;
}

.albums-section .post-item:hover .album-icon {
    background: rgba(142, 68, 173, 0.9);
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* View All Posts buttons for these sections */
.trending-artists-section .view-all-posts {
    border-color: #FF9800;
    color: #FF9800;
}

.trending-artists-section .view-all-posts:hover {
    background: #FF9800;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.albums-section .view-all-posts {
    border-color: #9b59b6;
    color: #9b59b6;
}

.albums-section .view-all-posts:hover {
    background: #9b59b6;
    color: white;
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.3);
}

/* Country info in artist songs */
.post-country i {
    font-size: 0.8rem;
    color: #3498db;
}

.country-name {
    font-weight: 600;
}

/* Album specific styles in main content */
.albums-section .post-content-wrapper {
    position: relative;
}

.albums-section .post-thumbnail {
    position: relative;
}

.albums-section .no-thumbnail {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.albums-section .no-thumbnail i {
    color: white;
    font-size: 1.8rem;
}

/* Album stats in thumbnail overlay */
.album-stats-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    font-size: 0.7rem;
    padding: 6px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(2px);
}

.album-stats-overlay span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.album-stats-overlay i {
    font-size: 0.6rem;
}

/* Responsive adjustments for album stats */
@media (max-width: 480px) {
    .album-stats {
        flex-direction: column;
        gap: 4px;
    }
    
    .album-stats-overlay {
        flex-direction: column;
        gap: 3px;
        padding: 4px;
        font-size: 0.6rem;
    }
}

/* ===== SUBSCRIBE SECTION ===== */
.sideber-widget {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-sm) var(--spacing-sm);
    border-radius: var(--radius-lg);
    border-left: 4px solid #3498db;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.15);
    position: relative;
    overflow: hidden;
}

.sideber-widget::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(41, 128, 185, 0.05) 100%);
    border-radius: 50%;
    transform: translate(30%, -30%);
    z-index: 0;
}

.sideber-widget .widget-title {
    font-size: 1.4rem;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.sideber-widget p {
    color: #7f8c8d;
    margin-bottom: var(--spacing-lg);
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.post-thumbnail {
    position: relative;
}

.thumbnail-country-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    color: white;
    padding: 3px 8px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
}

.thumbnail-country-badge .country-flag {
    font-size: 12px;
}

.post-thumbnail {
    position: relative;
}

.artist-on-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    padding: 10px;
    box-sizing: border-box;
}

.artist-name-thumbnail {
    color: white;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    display: block;
}

.album-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 3;
}