/*
Theme Name: Afro Mziki
Theme URI: https://afromziki.com
Author: King David
Author URI: https://afromziki.com
Description: Premium African music WordPress theme
Version: 1.0
*/

/* ===== RESET & VARIABLES ===== */
:root {
    --primary-bg: #0a0a0a;
    --secondary-bg: #111111;
    --card-bg: #1a1a1a;
    --golden: #FFD700;
    --golden-light: #FFE55C;
    --golden-dark: #B8860B;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --border-color: #2a2a2a;
    --sidebar-width: 300px;
    --spacing: 1rem;
    --border-radius: 8px;
    --gradient-golden: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

* {
    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.6;
    padding-bottom: 80px;
}

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

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

/* ===== HEADER STYLES ===== */
.site-header {
    background-color: var(--secondary-bg);
    border-bottom: 2px solid var(--golden-dark);
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100vw;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
}

.header-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

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

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

.main-navigation {
    display: none;
}

@media (min-width: 769px) {
    .main-navigation {
        display: block;
    }
    
    .main-navigation ul {
        display: flex;
        list-style: none;
        gap: 2rem;
    }
    
    .main-navigation a {
        font-weight: 500;
        color: var(--text-primary);
        font-size: 1rem;
        position: relative;
        padding: 0.5rem 0;
    }
    
    .main-navigation a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--gradient-golden);
        transition: width 0.2s;
    }
    
    .main-navigation a:hover::after {
        width: 100%;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-menu-toggle {
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--golden);
}

.mobile-menu-panel {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: var(--secondary-bg);
    z-index: 2000;
    padding: 2rem;
    transition: left 0.3s ease;
    box-shadow: 2px 0 20px rgba(0,0,0,0.5);
}

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

.close-menu {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--golden);
}

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

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

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

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

.search-toggle {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--golden);
}

/* ===== BOOMPLAY PREMIUM SEARCH SECTION ===== */
.boomplay-search-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.boomplay-search-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-golden);
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    width: 100%;
}

.search-wrapper {
    position: relative;
    background: var(--card-bg);
    border-radius: 60px;
    overflow: visible !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 0 0 2px rgba(255,215,0,0.1);
    transition: box-shadow 0.3s;
    max-width: 90vw !important;
}

.search-wrapper:focus-within {
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 0 3px var(--golden);
}

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

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

.search-button {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    padding: 0 1.5rem;
    background: var(--gradient-golden);
    color: #000;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255,215,0,0.3);
    white-space: nowrap;
    min-width: fit-content;
}

.search-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255,215,0,0.5);
}

.search-button .search-text {
    transition: opacity 0.2s;
}

@media (max-width: 768px) {
    .search-button .search-text {
        display: none !important;
    }
    .search-button {
        padding: 0 1.5rem 0 1rem !important;
        min-width: auto !important;
    }
}

/* AJAX Search Results */
.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 rgba(0,0,0,0.8), 0 0 0 1px var(--golden-dark);
    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);
    transition: background 0.2s;
    cursor: pointer;
}

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

.search-result-item:last-child {
    border-bottom: none;
}

.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);
}

.search-result-type {
    background: var(--golden-dark);
    color: #000;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Trending Tags */
.trending-tags {
    max-width: 800px;
    margin: 1.5rem auto 0;
    padding: 0 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.trending-tags strong {
    color: var(--golden);
    margin-right: 1rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.trending-tags a {
    color: var(--text-secondary);
    margin-right: 1rem;
    transition: all 0.2s;
    display: inline-block;
    padding: 0.2rem 0;
}

.trending-tags a:hover {
    color: var(--golden);
    transform: translateY(-1px);
}

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

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

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

/* Latest Tracks Section */
.section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 0.8rem;
    display: inline-block;
}

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

.tracks-grid, .related-tracks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    width: 100%;
}

@media (min-width: 769px) {
    .tracks-grid, .related-tracks-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 769px) {
    .tracks-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.track-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.track-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5), 0 0 0 1px var(--golden-dark);
}

.track-image {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
}

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

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

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

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

.play-overlay svg {
    width: 60px;
    height: 60px;
    fill: var(--golden);
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

.track-info {
    padding: 1rem;
}

.track-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-meta {
    font-size: 0.75rem;
}

.track-type {
    color: var(--golden);
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(255,215,0,0.1);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    border: 1px solid var(--golden-dark);
    display: inline-block;
    font-size: 0.7rem;
}

/* View All Link */
.view-all {
    text-align: right;
    margin: 1rem 0 2rem;
}

.view-all a {
    color: var(--golden);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    background: var(--card-bg);
    border-radius: 30px;
    border: 1px solid var(--golden-dark);
    transition: all 0.3s;
}

.view-all a:hover {
    background: var(--golden);
    color: #000;
    border-color: var(--golden);
}

/* ===== SIDEBAR STYLES ===== */
.sidebar {
    width: 100%;
}

.widget {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.widget-title {
    color: var(--golden);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--golden-dark);
}

/* Trending Tabs */
.trending-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

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

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

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

.trending-list {
    display: none;
}

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

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

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

.trending-item:last-child {
    border-bottom: none;
}

.trending-number {
    width: 25px;
    height: 25px;
    background: var(--golden-dark);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.trending-info {
    flex: 1;
}

.trending-song {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
}

.trending-artist {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.trending-views {
    font-size: 0.7rem;
    color: var(--golden);
}

/* Sidebar Posts */
.sidebar-post, .related-track {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s;
}

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

@media (max-width: 768px) {
    .related-tracks-widget .sidebar-post {
        display: flex !important;
        padding: 0.75rem 0 !important;
    }
}

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

.sidebar-post:hover {
    background: var(--secondary-bg);
}

.sidebar-post:last-child {
    border-bottom: none;
}

.sidebar-post-thumb {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid var(--golden-dark);
}

.sidebar-post-info {
    flex: 1;
}

.sidebar-post-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
}

.sidebar-post-artist {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== 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;
}

.single-post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.single-post-main {
    min-width: 0;
    width: 100%;
}

  .single-post-sidebar,
  .responsive-sidebar {
    width: 300px;
    min-width: 300px;
  }

  .responsive-layout {
    flex-wrap: wrap;
  }

  /* Iteration 2: Stronger fixes for overlap & horizontal cutoff */
  .boomplay-search-section {
    position: relative !important;
    z-index: 900 !important;
  }

  /* Increased desktop search clearance */
  @media (min-width: 769px) {
    .boomplay-search-section {
      margin-top: 120px !important;
      padding-top: 20px !important;
    }
  }

  /* Mobile single FIXED no right hide - simple vw pad, flex images */
  @media (max-width: 992px) {
    html, body {
      overflow-x: hidden !important;
    }
    img, figure img, .wp-post-image, .sidebar-post-thumb, .track-image img {
      max-width: 100% !important;
      height: auto !important;
    }
    .single-post-wrapper-full {
      width: 100% !important;
      margin: 0 !important;
      padding: 1rem 0 !important;
    }
    .single-post-content-area, .responsive-content-area {
      padding: 0 !important;
      margin: 0 !important;
      max-width: 100vw !important;
      width: 100vw !important;
      box-sizing: border-box !important;
    }
    .single-post-layout {
      gap: 1.5rem !important;
      padding: 0 !important;
    }
    .single-post {
      border-radius: 12px !important;
      margin: 0 !important;
    }
    /* Trending/Recent restored - original desktop multi-col, mobile flex */
    .related-tracks-widget {
      max-height: 400px !important;
      overflow-y: auto !important;
    }
    @media (min-width: 769px) {
      .related-tracks-widget {
        columns: 2 !important;
        column-gap: 1.5rem !important;
      }
      .related-tracks-widget .sidebar-post {
        break-inside: avoid !important;
        margin-bottom: 1rem !important;
        display: flex !important;
      }
    }
    @media (max-width: 768px) {
      .related-tracks-widget .sidebar-post {
        display: flex !important;
        padding: 0.75rem 0 !important;
      }
      .sidebar-post {
        flex-direction: row !important;
      }
      .sidebar-post-thumb {
        width: 50px !important;
        height: 50px !important;
      }
    }
  }

.single-post {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    margin-bottom: 2rem;
}

.post-title {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.post-meta span:not(:last-child)::after {
    content: "•";
    margin-left: 1rem;
    color: var(--text-muted);
}

.post-featured-image {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 2rem 0;
}

.post-audio-actions {
    display: flex;
    gap: 1.5rem;
    margin: 2.5rem 0;
    justify-content: center;
}

.action-button, .play-button-action, .download-button-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    min-width: 200px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.play-button-action {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    border: 2px solid #FFD700;
    box-shadow: 
        0 8px 32px rgba(255,215,0,0.4),
        0 0 0 1px rgba(255,215,0,0.2) inset;
    animation: pulse-glow 2s infinite;
}

.download-button-action {
    background: linear-gradient(135deg, rgba(255,215,0,0.15) 0%, rgba(255,165,0,0.1) 100%);
    color: var(--golden);
    border: 2px solid var(--golden);
    box-shadow: 0 8px 32px rgba(255,215,0,0.3);
}

.action-button:hover, .play-button-action:hover, .download-button-action:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 16px 48px rgba(255,215,0,0.6),
        0 0 0 1px rgba(255,215,0,0.3) inset !important;
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 
            0 8px 32px rgba(255,215,0,0.4),
            0 0 0 1px rgba(255,215,0,0.2) inset;
    }
    50% { 
        box-shadow: 
            0 12px 40px rgba(255,215,0,0.8),
            0 0 0 1px rgba(255,215,0,0.4) inset;
    }
}

@media (max-width: 768px) {
    .action-button, .play-button-action, .download-button-action {
        width: 100%;
        max-width: 280px;
        margin: 0 auto 0.5rem;
        justify-content: center;
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
    }
    
    .post-audio-actions {
        flex-direction: column !important;
        align-items: center;
        gap: 1rem !important;
    }
}

.play-button {
    background: var(--gradient-golden);
    color: #000;
    border: 2px solid var(--golden);
}

.download-button {
    background: transparent;
    color: var(--golden);
    border: 2px solid var(--golden);
}

/* Share Icons */
.post-share {
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.share-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
}

.share-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    text-decoration: none;
    color: white;
}

.share-icon.facebook { background: #1877f2; }
.share-icon.x { background: #000000; }
.share-icon.whatsapp { background: #25d366; }
.share-icon.telegram { background: #0088cc; }
.share-icon.copy-link { background: var(--secondary-bg); color: var(--text-primary); border: 1px solid var(--border-color); }

/* Related Tracks */
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.related-post {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.post-tags {
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* ===== FIXED PLAYER ===== */
.fixed-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--secondary-bg);
    border-top: 2px solid var(--golden);
    padding: 0.5rem;
    z-index: 1000;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

.player-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 200px;
    flex: 1;
}

.player-thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--golden);
}

.player-track-details {
    flex: 1;
    min-width: 0;
}

.player-track-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--golden);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-artist-name {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.player-controls svg {
    width: 20px;
    height: 20px;
    fill: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.play-pause-btn svg {
    width: 30px;
    height: 30px;
    fill: var(--golden);
}

.player-progress {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex: 2;
    min-width: 120px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-golden);
    border-radius: 10px;
    width: 0%;
}

.time-current,
.time-total {
    font-size: 0.7rem;
    color: var(--text-muted);
    min-width: 35px;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 0.8rem 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    background: var(--card-bg);
    transition: all 0.3s;
    font-weight: 500;
}

.pagination a:hover {
    background: var(--golden);
    color: #000;
    border-color: var(--golden);
    transform: translateY(-2px);
}

.pagination .current {
    background: var(--gradient-golden);
    color: #000;
    border-color: var(--golden);
    font-weight: 700;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--secondary-bg);
    border-top: 2px solid var(--golden);
    padding: 3rem 0.5rem;
    margin-top: 3rem;
    width: 100vw;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    box-sizing: border-box;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 2rem 0.2rem;
        margin-left: -0.2rem;
        margin-right: -0.2rem;
    }
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

.footer-about p {
    margin: 1rem 0;
    color: var(--text-muted);
}

.footer-links h3,
.footer-social h3 {
    margin-bottom: 1rem;
    color: var(--golden);
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: all 0.2s;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--golden);
    transform: translateX(5px);
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    color: var(--text-muted);
    font-size: 1.8rem;
    transition: all 0.3s;
}

.social-icons a:hover {
    color: var(--golden);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Overlay */
.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;
}

/* Hide any default WordPress audio players */
.wp-block-audio,
.wp-audio-shortcode,
.mejs-container,
.audio-player,
audio {
    display: none !important;
}

/* Keep default download buttons visible for Android app */
/* .entry-content a[download],
.post-content a[download] {
    display: none !important;
} */

/* ===== RESPONSIVE SEARCH & SINGLE.PHP FIXES ===== */

/* Desktop Search Fix: Clear fixed header + full width */
@media (min-width: 769px) {
  .boomplay-search-section {
    margin-top: 90px !important;
  }
  .search-container {
    width: 100%;
    max-width: none !important;
    padding: 0 4rem;
  }
  .header-container {
    padding: 1rem 4rem;
  }
}

/* Wide Desktop */
@media (min-width: 1600px) {
  .search-container {
    padding: 0 6rem;
  }
}

/* Single.php Mobile Responsive: Stack sidebar, scale content */
@media (max-width: 992px) {
  .single-post-layout {
    flex-direction: column !important;
    gap: 1rem !important;
  }
  .single-post-sidebar {
    width: 100% !important;
    flex-shrink: 1 !important;
    order: 2 !important;
    margin-top: 2rem !important;
  }
  .single-post {
    padding: 1.5rem !important;
  }
  .single-post h1 {
    font-size: clamp(1.5rem, 5vw, 2.2rem) !important;
    margin-bottom: 1rem !important;
  }
  /* Post meta div - 3rd child */
  .single-post > div:nth-of-type(3) {
    flex-direction: column !important;
    gap: 0.5rem !important;
    padding-bottom: 1rem !important;
  }
  /* Play/download buttons div */
  [style*="gap: 1rem; margin: 2rem 0; justify-content: center"] {
    flex-direction: column !important;
    gap: 1rem !important;
    width: 100% !important;
  }
  /* Share buttons div */
  [style*="display: flex; flex-wrap: wrap; gap: 0.5rem"] {
    flex-direction: column !important;
    gap: 0.8rem !important;
    justify-content: center !important;
  }
}

/* Extra small mobile */
@media (max-width: 480px) {
  .single-post-meta-equivalent {
    font-size: 0.85rem !important;
  }
}

/* ===== FINAL FORCE FULL WIDTH FIX - CLEAN VERSION ===== */

/* Force full width containers */
body, .site-content, .home-container, .single-post-wrapper-full {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Center content with max width */
.single-post-content-area {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Header full width */
.site-header {
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.header-container {
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 1rem 2rem !important;
    box-sizing: border-box !important;
}

/* Boomplay search full width - FIXED responsive margin */
.boomplay-search-section {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 160px !important;
    margin-bottom: 0 !important;
    padding: 2rem 2rem !important;
    box-sizing: border-box !important;
}

/* Single post layout */
.single-post-layout {
    display: grid !important;
    grid-template-columns: 1fr 300px !important;
    gap: 2rem !important;
    width: 100% !important;
}

.single-post-main {
    min-width: 0 !important;
    width: 100% !important;
}

.single-post-sidebar.responsive-sidebar {
    width: 300px !important;
    min-width: 300px !important;
}

/* Mobile fixes */
@media (max-width: 992px) {
    .single-post-layout {
        grid-template-columns: 1fr !important;
    }
    
    .single-post-sidebar {
        width: 100% !important;
        min-width: 100% !important;
        margin-top: 2rem !important;
    }
    
    .home-container {
        grid-template-columns: 1fr !important;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0.8rem 1rem !important;
    }
    
    .boomplay-search-section {
        padding: 1.5rem 1rem !important;
    }
    
    .home-container {
        padding: 0 1rem !important;
    }
    
    .single-post-content-area {
        padding: 0 1rem !important;
    }
    
    .single-post {
        padding: 1.2rem !important;
    }
    
    .post-title {
        font-size: 1.6rem !important;
    }
    
    .post-meta {
        gap: 0.5rem !important;
        font-size: 0.8rem !important;
    }
    
    .post-audio-actions {
        flex-direction: column !important;
    }
    
    .action-button {
        width: 100% !important;
    }
    
    .share-icons {
        justify-content: center !important;
    }
}

@media (max-width: 480px) {
    .single-post {
        padding: 1rem !important;
    }
    
    .post-title {
        font-size: 1.4rem !important;
    }
    
    .post-meta {
        flex-direction: column !important;
        gap: 0.2rem !important;
    }
    
    .post-meta span:not(:last-child)::after {
        display: none !important;
    }
    
    .share-icons {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.4rem !important;
    }
    
    .share-icon {
        width: 100% !important;
        justify-content: center !important;
    }
    
    .related-grid {
        grid-template-columns: 1fr !important;
    }

    /* MOBILE EDGE-TO-EDGE FULL WIDTH - ULTIMATE OVERRIDE + IMAGE FIX */
@media screen and (max-width: 768px) and (max-height: 1000px) {
        html, body, #page {
            margin: 0 !important;
            padding: 0 !important;
            width: 100vw !important;
            max-width: 100vw !important;
            overflow-x: hidden !important;
        }
        .site-header {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            width: 100vw !important;
            z-index: 99999 !important;
        }
        .header-container {
            padding: 0.4rem 0.2rem !important;
            margin: 0 !important;
        }
        .site-content, main#content {
            padding-top: 0 !important;
            margin-top: 0 !important;
        }
        .boomplay-search-section {
            margin-top: 70px !important;
            padding: 1rem 0.2rem !important;
        }
        .single-post-wrapper-full, .single-post-layout, .single-post-main {
            width: 100vw !important;
            max-width: 100vw !important;
            margin: 0 !important;
            padding: 0 !important;
            box-sizing: border-box !important;
        }
        .single-post-content-area {
            padding: 0 0.2rem !important;
        }
        .single-post-sidebar {
            width: 100vw !important;
            max-width: 100vw !important;
            padding: 0 0.2rem !important;
            margin: 0 !important;
        }
        /* Featured Image Center Fix */
        .single-post img.wp-post-image,
        .single-post .wp-post-image,
        .single-post figure img,
        .single-post .post-thumbnail img {
            width: 100% !important;
            max-width: 100% !important;
            height: auto !important;
            display: block !important;
            margin: 0 auto !important;
            float: none !important;
            text-align: center !important;
        }
    }
    
    @media screen and (max-width: 480px) {
        .header-container {
            padding: 0.3rem 0.1rem !important;
        }
        .single-post-content-area, .single-post-sidebar {
            padding: 0 0.1rem !important;
        }
    }
}

/* ===== FIX AJAX SEARCH DROPDOWN OVERFLOW ===== */
.search-wrapper {
    position: relative;
    overflow: visible !important;
}

.search-results-dropdown {
    position: absolute !important;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    z-index: 999999 !important;
}

/* Ensure no parent cuts it */
.boomplay-search-section,
.search-container {
    overflow: visible !important;
}
/* ===== SHARE SECTION ===== */
.share-section {
    margin: 2rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* Title */
.share-title {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--golden);
    text-align: center;
    letter-spacing: 1px;
}

/* Container */
.share-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

/* Button */
.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Icons */
.share-btn svg {
    width: 18px;
    height: 18px;
    fill: white;
}

/* Colors */
.share-btn.facebook { background: #1877f2; }
.share-btn.x { background: #000; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.telegram { background: #0088cc; }
.share-btn.copy { background: #333; }

/* Hover */
.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

/* ===== MOBILE FIX (THIS IS THE KEY PART) ===== */
@media (max-width: 768px) {

    .share-icons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .share-btn {
        width: 100%;
        justify-content: center;
        padding: 0.7rem;
        font-size: 0.85rem;
    }

    .share-btn span {
        display: inline;
    }
}

/* EXTRA SMALL MOBILE */
@media (max-width: 480px) {
    .share-icons {
        grid-template-columns: 1fr 1fr;
    }
}