/*
Theme Name: Guavva Music Theme
Theme URI: https://afromziki.com
Author: King David +255 792 744 041
Author URI: https://afromziki.com
Description: Premium music WordPress theme using normal WordPress post type. No need to change your posts. Includes full Adsense integration via admin panel.
Version: 2.1
*/

/* ===== RESET & VARIABLES ===== */
/* Dark Mode (Default) */
:root,
body.dark-mode {
    --primary-bg: #0a0a0a;
    --secondary-bg: #111111;
    --card-bg: #1a1a1a;
    --golden: #FFD700;
    --golden-light: #FFE55C;
    --golden-dark: #B8860B;
    --text-primary: #ffffff;
    --text-secondary: #f5f0f0;
    --text-muted: #FFD700;
    --border-color: #2a2a2a;
    --sidebar-width: 300px;
    --spacing: 1rem;
    --border-radius: 12px;
    --gradient-golden: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --overlay-bg: rgba(0, 0, 0, 0.7);
}

/* Light Mode - Darker Golden Colors for Better Visibility */
body.light-mode {
    --primary-bg: #c0c6cc;
    --secondary-bg: #ffffff;
    --card-bg: #ffffff;
    --golden: #f2c657;
    --golden-light: #9e7819;
    --golden-dark: #bd9022;
    --text-primary: #1a1a1a;
    --text-secondary: #333333;
    --text-muted: #b09a25;
    --border-color: #e0e0e0;
    --gradient-golden: linear-gradient(135deg, #DAA520 0%, #B8860B 100%);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --overlay-bg: rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.5;
    padding-bottom: 80px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--golden);
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--golden);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.theme-toggle:hover {
    transform: scale(1.05);
    background: var(--golden-light);
}

.theme-toggle img {
    width: 20px;
    height: 20px;
}

/* ===== HEADER STYLES ===== */
.site-header {
    background: rgba(17, 17, 17, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    padding: 0;
    transition: background 0.3s ease, border-color 0.3s ease;
}

body.light-mode .site-header {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: rgba(218, 165, 32, 0.3);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.6rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo a {
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--gradient-golden);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-logo img {
    max-height: 40px;
    width: auto;
}

.main-navigation {
    display: none;
}

@media (min-width: 769px) {
    .main-navigation {
        display: block;
    }
    
    .main-navigation .primary-menu {
        display: flex;
        list-style: none;
        gap: 1.5rem;
        margin: 0;
        padding: 0;
    }
    
    .main-navigation .primary-menu li a {
        color: var(--text-primary);
        font-weight: 500;
        font-size: 0.9rem;
        padding: 0.4rem 0;
        position: relative;
    }
    
    .main-navigation .primary-menu li a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--golden);
        transition: width 0.3s;
    }
    
    .main-navigation .primary-menu li a:hover::after,
    .main-navigation .primary-menu li.current-menu-item a::after {
        width: 100%;
    }
    
    .main-navigation .primary-menu li a:hover,
    .main-navigation .primary-menu li.current-menu-item a {
        color: var(--golden);
    }
    
    .mobile-menu-toggle,
    .theme-toggle {
        display: none;
    }
}

.mobile-menu-toggle {
    font-size: 1.5rem;
    background: rgba(255, 215, 0, 0.1);
    border: none;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: var(--golden);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-panel {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: linear-gradient(135deg, #111111 0%, #0a0a0a 100%);
    z-index: 2000;
    padding: 2rem;
    transition: left 0.3s ease;
    box-shadow: 2px 0 20px rgba(0,0,0,0.5);
    border-right: 2px solid var(--golden);
}

body.light-mode .mobile-menu-panel {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 2px 0 20px rgba(0,0,0,0.1);
}

.mobile-menu-panel.open {
    left: 0;
}

.close-menu {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--golden);
    background: rgba(255,215,0,0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-panel ul {
    list-style: none;
    margin-top: 3rem;
}

.mobile-menu-panel li {
    margin-bottom: 1rem;
}

.mobile-menu-panel a {
    font-size: 1.1rem;
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,215,0,0.2);
    color: var(--text-primary);
}

body.light-mode .mobile-menu-panel a {
    border-bottom-color: rgba(218, 165, 32, 0.2);
}

.mobile-menu-panel a:hover {
    color: var(--golden);
}

/* ===== FIX: PUSH CONTENT BELOW FIXED HEADER ===== */
body {
    padding-top: 80px !important;
}

html {
    scroll-padding-top: 80px !important;
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    body {
        padding-top: 70px !important;
    }
    html {
        scroll-padding-top: 70px !important;
    }
    .theme-toggle {
        display: inline-flex !important;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 65px !important;
    }
    html {
        scroll-padding-top: 65px !important;
    }
}

/* ===== STYLISH COUNTRY FLAGS MENU ===== */
.country-flags-menu {
    background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--primary-bg) 100%);
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    border-top: 1px solid rgba(255, 215, 0, 0.3);
    position: relative;
    z-index: 99;
    margin-top: 0;
    padding: 0.3rem 0;
    transition: background 0.3s ease, border-color 0.3s ease;
}

body.light-mode .country-flags-menu {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom-color: rgba(218, 165, 32, 0.3);
    border-top-color: rgba(218, 165, 32, 0.3);
}

.flags-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    padding: 0 3rem;
}

.flags-wrapper {
    display: flex;
    gap: 0.5rem 0.8rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0.3rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.flags-wrapper::-webkit-scrollbar {
    height: 4px;
}

.flags-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
}

.flags-wrapper::-webkit-scrollbar-thumb {
    background: var(--golden);
    border-radius: 10px;
}

.flag-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.2rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 70px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    cursor: pointer;
}

body.light-mode .flag-item {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(218, 165, 32, 0.2);
}

.flag-item:hover {
    transform: translateY(-4px);
    border-color: var(--golden);
    background: rgba(255, 215, 0, 0.15);
    box-shadow: 0 8px 20px var(--shadow-color);
}

.flag-emoji {
    font-size: 1.2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.flag-item:hover .flag-emoji {
    transform: scale(1.1);
}

.flag-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.3s;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.flag-item:hover .flag-name {
    color: var(--golden);
}

.flags-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--golden);
    color: var(--golden);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.flags-scroll-btn:hover {
    background: var(--golden);
    color: #000;
    transform: translateY(-50%) scale(1.05);
}

.flags-prev {
    left: 0;
}

.flags-next {
    right: 0;
}

@media (max-width: 768px) {
    .flags-container {
        padding: 0 2rem;
    }
    .flag-item {
        min-width: 60px;
        padding: 0.15rem 0.4rem;
    }
    .flag-emoji {
        font-size: 1rem;
    }
    .flag-name {
        font-size: 0.65rem;
        display: inline-block !important;
    }
    .flags-scroll-btn {
        width: 32px;
        height: 32px;
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .flags-container {
        padding: 0 1.5rem;
    }
    .flag-item {
        min-width: 50px;
        padding: 0.1rem 0.3rem;
    }
    .flag-emoji {
        font-size: 0.9rem;
    }
    .flag-name {
        font-size: 0.55rem;
        display: inline-block !important;
    }
    .flags-scroll-btn {
        width: 28px;
        height: 28px;
        border-radius: 5px;
    }
}

/* ===== SEARCH SECTION ===== */
.boomplay-search-section {
    background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--primary-bg) 100%);
    padding: 0.75rem 1rem;
    position: relative;
    transition: background 0.3s ease;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-wrapper {
    position: relative;
    background: var(--card-bg);
    border-radius: 50px;
    overflow: visible;
    box-shadow: 0 4px 15px var(--shadow-color);
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.search-input {
    width: 100%;
    padding: 0.8rem 3rem 0.8rem 1.5rem;
    border: none;
    font-size: 0.9rem;
    outline: none;
    background: transparent;
    color: var(--text-primary);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    padding: 0 1.2rem;
    background: var(--gradient-golden);
    color: #000;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.search-button:hover {
    transform: scale(1.02);
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-radius: 20px;
    margin-top: 10px;
    box-shadow: 0 20px 40px var(--shadow-color);
    max-height: 450px;
    overflow-y: auto;
    display: none;
    z-index: 10000;
    border: 1px solid var(--golden-dark);
}

.search-results-dropdown.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
}

.search-result-item:hover {
    background: var(--secondary-bg);
}

.search-result-thumb {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    object-fit: cover;
    margin-right: 1rem;
    border: 2px solid var(--golden-dark);
}

.search-result-info {
    flex: 1;
}

.search-result-title {
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
}

.search-result-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.trending-tags {
    margin-top: 0.6rem;
    text-align: center;
    font-size: 0.7rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.trending-tags strong {
    color: var(--golden);
}

.trending-tags a {
    color: var(--text-muted);
    transition: color 0.3s;
}

.trending-tags a:hover {
    color: var(--golden);
}

/* ===== HOMEPAGE LAYOUT ===== */
.home-container {
    width: 100%;
    max-width: 100%;
    margin: 2rem 0;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    overflow-x: hidden;
}

@media (min-width: 992px) {
    .home-container {
        grid-template-columns: 1fr 300px;
    }
}

@media (max-width: 768px) {
    .home-container {
        padding: 0 0.75rem !important;
        margin: 1rem 0 !important;
        gap: 1rem !important;
    }
}

@media (max-width: 480px) {
    .home-container {
        padding: 0 0.5rem !important;
    }
}

.main-content {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

.section-title {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 0.6rem;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-golden);
    border-radius: 3px;
}

/* ===== FEATURED TRACKS CAROUSEL ===== */
.featured-slider-section {
    margin-bottom: 2rem;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.carousel-container::-webkit-scrollbar {
    height: 6px;
}

.carousel-container::-webkit-scrollbar-track {
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
}

.carousel-container::-webkit-scrollbar-thumb {
    background: var(--golden);
    border-radius: 10px;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    padding: 0.5rem 0.25rem;
}

.featured-card {
    flex: 0 0 auto;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
    width: 220px;
}

.featured-card:hover {
    transform: translateY(-8px);
    border-color: var(--golden);
    box-shadow: 0 20px 40px var(--shadow-color);
}

.featured-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--secondary-bg);
}

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

.featured-card:hover .featured-image img {
    transform: scale(1.08);
}

.play-overlay-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.featured-card:hover .play-overlay-card {
    opacity: 1;
}

.play-btn-card {
    width: 60px;
    height: 60px;
    background: var(--gradient-golden);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    box-shadow: 0 4px 15px var(--shadow-color);
}

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

.play-btn-card svg {
    width: 30px;
    height: 30px;
    fill: #000;
    margin-left: 4px;
}

.featured-info {
    padding: 1rem;
}

.featured-artist {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--golden);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-song {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-date {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.featured-date svg {
    width: 12px;
    height: 12px;
    fill: var(--golden);
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--golden);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
    opacity: 0.7;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--golden);
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
}

.carousel-prev svg,
.carousel-next svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.carousel-prev:hover svg,
.carousel-next:hover svg {
    fill: black;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--golden);
}

@media (min-width: 1400px) {
    .featured-card { width: 220px; }
}
@media (min-width: 1200px) and (max-width: 1399px) {
    .featured-card { width: 220px; }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .featured-card { width: 200px; }
}
@media (max-width: 991px) {
    .featured-card { width: 280px; }
}
@media (max-width: 768px) {
    .featured-card { width: 260px; }
    .play-btn-card { width: 50px; height: 50px; }
    .play-btn-card svg { width: 24px; height: 24px; }
    .carousel-prev, .carousel-next { width: 36px; height: 36px; }
}
@media (max-width: 480px) {
    .featured-card { width: 260px; }
    .featured-info { padding: 0.75rem; }
    .featured-artist { font-size: 0.7rem; }
    .featured-song { font-size: 0.85rem; }
    .play-btn-card { width: 40px; height: 40px; }
    .play-btn-card svg { width: 20px; height: 20px; }
}

/* ===== TRACK CARDS ===== */
.tracks-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
    width: 100%;
    margin: 0 !important;
    padding: 0.25rem;
    box-sizing: border-box;
    margin-bottom: 2rem;
}

@media (min-width: 1200px) {
    .tracks-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 1.5rem !important;
    }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .tracks-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 1.2rem !important;
    }
}
@media (min-width: 769px) and (max-width: 991px) {
    .tracks-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
    }
}
@media (max-width: 768px) {
    .tracks-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
        padding: 0.5rem 0.25rem !important;
    }
}
@media (max-width: 480px) {
    .tracks-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
        padding: 0.25rem !important;
    }
}

.track-card {
    background: var(--card-bg);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 215, 0, 0.15);
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.track-card:hover {
    transform: translateY(-5px);
    border-color: var(--golden);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.track-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    flex-shrink: 0;
}

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

.track-card:hover .track-image img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.track-card:hover .play-overlay {
    opacity: 1;
}

.play-overlay svg {
    width: 50px;
    height: 50px;
    fill: var(--golden);
    filter: drop-shadow(0 4px 10px var(--shadow-color));
    transition: transform 0.2s;
}

.play-overlay svg:hover {
    transform: scale(1.1);
}

.track-info {
    padding: 0.75rem 0.6rem;
    min-width: 0;
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.track-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical;
    overflow: hidden !important;
    word-break: break-word !important;
    hyphens: auto;
}

.track-artist {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 0.25rem;
}

.track-type {
    font-weight: 700;
    text-transform: uppercase;
    background: var(--golden-dark);
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-size: 0.6rem;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 215, 0, 0.25);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .track-info { padding: 0.5rem 0.45rem !important; }
    .track-title { font-size: 0.73rem !important; }
    .track-artist { font-size: 0.63rem; }
    .track-type { font-size: 0.48rem; }
    .play-overlay svg { width: 40px; height: 40px; }
}
@media (max-width: 480px) {
    .track-info { padding: 0.45rem 0.4rem !important; }
    .track-title { font-size: 0.68rem !important; }
    .track-artist { font-size: 0.58rem; }
    .track-type { font-size: 0.42rem; }
}

/* ===== SIDEBAR STYLES ===== */
.sidebar {
    width: 100%;
    overflow-x: hidden;
}

.widget {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    overflow-x: hidden;
}

.widget-title {
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    font-weight: 700;
    font-size: 1.1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--golden-dark);
}

.trending-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.trending-tab {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
    border-radius: 20px;
}

.trending-tab:hover {
    color: var(--golden);
}

.trending-tab.active {
    background: var(--golden);
    color: #000;
}

.trending-list {
    display: none;
}

.trending-list.active {
    display: block;
}

.trending-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s;
}

.trending-item:hover {
    background: var(--secondary-bg);
}

.trending-number {
    width: 28px;
    height: 28px;
    background: transparent;
    color: var(--golden);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.trending-item .sidebar-post-thumb,
.sidebar-post-thumb {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid var(--golden-dark);
    flex-shrink: 0;
}

.trending-item .sidebar-post-info,
.sidebar-post-info {
    flex: 1;
    min-width: 0;
}

.trending-item .sidebar-post-title,
.sidebar-post-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trending-item .sidebar-post-artist,
.sidebar-post-artist {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
}

.related-tracks-widget {
    max-height: 400px;
    overflow-y: auto;
}

@media (min-width: 769px) {
    .related-tracks-widget {
        columns: 2;
        column-gap: 1rem;
    }
    .related-tracks-widget .sidebar-post {
        break-inside: avoid;
        display: flex !important;
    }
}

/* ===== SINGLE POST PAGE ===== */
.single-post-wrapper-full {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 2rem 0;
    background: var(--primary-bg);
}
.single-post-content-area {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}
@media (max-width: 768px) {
    .single-post-content-area { padding: 0 1rem; }
}
.single-post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}
@media (max-width: 992px) {
    .single-post-layout { grid-template-columns: 1fr !important; }
}
.single-music-card {
    background: var(--card-bg);
    border-radius: 24px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    overflow: hidden;
    margin-bottom: 2rem;
}
.music-hero-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--card-bg) 100%);
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
}
@media (max-width: 768px) {
    .music-hero-row { flex-direction: column; padding: 1.5rem; gap: 1.5rem; }
}
.music-image-col {
    flex: 0 0 280px;
}
@media (max-width: 768px) {
    .music-image-col { flex: 0 0 auto; max-width: 280px; margin: 0 auto; }
}
.music-featured-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 30px -10px var(--shadow-color);
    border: 2px solid var(--golden-dark);
    background: var(--secondary-bg);
}
.music-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.music-details-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}
.music-song-title {
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--gradient-golden);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0;
}
@media (max-width: 768px) { .music-song-title { font-size: 1.6rem; } }
@media (max-width: 480px) { .music-song-title { font-size: 1.4rem; } }
.music-artist-name {
    font-size: 1.2rem;
    color: var(--golden-light);
    font-weight: 500;
}
.music-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 0.5rem 0;
}
.meta-date, .meta-category {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 215, 0, 0.1);
    padding: 0.3rem 0.9rem;
    border-radius: 30px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.meta-date svg, .meta-category svg {
    width: 14px;
    height: 14px;
    fill: var(--golden);
}
.meta-category a { color: var(--text-secondary); }
.meta-category a:hover { color: var(--golden); }
.music-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
    flex-direction: row;
    align-items: center;
}
.download-btn-main { order: 1; }
.play-btn-main { order: 2; }
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 1.8rem;
    border-radius: 60px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
}
.play-btn-main {
    background: var(--gradient-golden);
    color: #000;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    border: 1px solid var(--golden);
}
.download-btn-main {
    background: rgba(255, 215, 0, 0.1);
    color: var(--golden);
    border: 1px solid var(--golden);
}
.download-btn-main:hover, .play-btn-main:hover {
    transform: translateY(-3px);
}
.music-description-section, .share-section, .premium-tags-section, .related-tracks-container {
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    background: var(--card-bg);
}
.description-content {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary);
}
.description-content h2, .description-content h3, .description-content h4 {
    color: var(--golden);
    margin: 1.5rem 0 0.8rem;
}
.share-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}
.share-btn.facebook { background: #1877f2; }
.share-btn.x { background: #000000; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.telegram { background: #0088cc; }
.share-btn.copy { background: #333333; }
.premium-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 30px;
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
}
.premium-tag:hover {
    background: var(--golden);
    color: #000;
}
.related-tracks-widget {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.related-track {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    cursor: pointer;
}
.related-track:hover {
    background: var(--secondary-bg);
    border-color: var(--golden);
}
.single-post-sidebar {
    width: 300px;
    flex-shrink: 0;
}
@media (max-width: 992px) {
    .single-post-sidebar { width: 100% !important; margin-top: 1.5rem !important; }
}

/* ===== FOOTER ===== */
.site-footer-full {
    background: var(--secondary-bg);
    border-top: 2px solid var(--golden);
    padding: 1rem 0;
    margin-top: 2rem;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}
.footer-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
    margin-bottom: 0.8rem;
}
.footer-menu li a {
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.3s;
}
.footer-menu li a:hover {
    color: var(--golden);
}
.footer-bottom {
    font-size: 0.75rem;
    font-weight: 600;
}

/* ===== LOAD MORE ===== */
.load-more-container {
    text-align: center;
    margin: 3rem 0;
}
.load-more-btn {
    background: var(--golden);
    color: #000;
    border: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
}
.load-more-btn:hover {
    transform: translateY(-3px);
    background: var(--golden-dark);
}
.load-more-spinner {
    margin-top: 1rem;
    color: var(--golden);
}
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,215,0,0.3);
    border-radius: 50%;
    border-top-color: var(--golden);
    animation: spin 1s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== FIXED PLAYER ===== */
.fixed-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--secondary-bg);
    border-top: 2px solid var(--golden);
    padding: 10px 15px;
    z-index: 1000;
}
.player-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}
.player-track {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
    flex: 1;
}
.player-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid var(--golden);
}
.player-track-name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.player-artist-name {
    font-size: 12px;
    color: var(--golden);
}
.player-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}
.player-btn {
    background: transparent;
    border: none;
    cursor: pointer;
}
.play-btn {
    width: 44px;
    height: 44px;
    background: var(--golden);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.play-btn svg {
    width: 22px;
    height: 22px;
    fill: #000;
}
.progress-bar {
    flex: 1;
    height: 4px;
    background: #333;
    border-radius: 4px;
    cursor: pointer;
}
.progress-fill {
    height: 100%;
    background: var(--golden);
    border-radius: 4px;
    width: 0%;
}
@media (max-width: 768px) {
    .player-progress-area, .player-volume-area { display: none !important; }
    .player-track { flex: 2; }
    .play-btn { width: 40px; height: 40px; }
}
@media (max-width: 480px) {
    .player-thumb { width: 36px; height: 36px; }
    .play-btn { width: 36px; height: 36px; }
}

/* ===== OVERLAY & MOBILE MENU ===== */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1500;
}
.overlay.active { display: block; }
@media (min-width: 769px) {
    .mobile-menu-toggle, .mobile-menu-panel { display: none !important; }
    .overlay { display: none !important; }
}
@media (max-width: 768px) {
    .mobile-menu-toggle { display: flex !important; }
}

/* ===== RESPONSIVE FIXES ===== */
@media (max-width: 768px) {
    .header-container { padding: 0.5rem 1rem !important; }
    .site-logo a { font-size: 1.2rem; }
    .search-input { padding: 0.7rem 2.5rem 0.7rem 1rem; font-size: 0.85rem; }
    .search-button .search-text { display: none; }
}

/* ===== HIDE DEFAULT AUDIO PLAYERS ===== */
.wp-block-audio, .wp-audio-shortcode, .mejs-container, .audio-player, audio {
    display: none !important;
}
/* ===== FORCE RECENT TRACKS TO MATCH TRENDING EXACTLY ===== */
.widget .sidebar-post {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid var(--border-color) !important;
    cursor: pointer !important;
}

.widget .sidebar-post:hover {
    background: var(--secondary-bg) !important;
    border-radius: 8px !important;
}

.widget .sidebar-post-thumb {
    width: 45px !important;
    height: 45px !important;
    border-radius: 8px !important;
    border: 2px solid var(--golden-dark) !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
}

/* THIS IS THE KEY - forces vertical stacking */
.widget .sidebar-post-info {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

/* Song title - on TOP line */
.widget .sidebar-post-title {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    line-height: 1.3 !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Artist name - on BOTTOM line */
.widget .sidebar-post-artist {
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    color: var(--text-muted) !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.widget .sidebar-post:hover .sidebar-post-title {
    color: var(--golden) !important;
}