/*
Theme Name: Afro Mziki
Theme URI: https://afromziki.example.com/
Author: Afro Mziki
Author URI: https://afromziki.example.com/
Description: Afro Mziki is a premium, always-dark WordPress theme for African music streaming and download sites. It ships with a cinematic homepage hero, a sticky multi-track player with queue, AJAX search, trending charts, a featured carousel, country and genre quick links, a redesigned track page, video support, SEO structured data and a full options panel.
Version: 3.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: afromziki-music
Tags: music, dark, one-column, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks, full-width-template
*/

/* =============================================================
   1. DESIGN TOKENS
   ============================================================= */
:root {
    --primary-bg: #0a0a0a;
    --secondary-bg: #111111;
    --card-bg: #1a1a1a;
    --card-bg-hover: #202020;
    --elevated-bg: #171717;

    --golden: #FFD700;
    --golden-light: #FFE55C;
    --golden-dark: #B8860B;
    --gold: var(--golden);
    --teal: #14c8b1;

    --text-primary: #ffffff;
    --text-secondary: #cfcaca;
    --text-muted: #9a9490;

    --border-color: #2a2a2a;
    --shadow-soft: 0 6px 24px rgba(0, 0, 0, .45);
    --shadow-gold: 0 8px 28px rgba(255, 215, 0, .18);

    --gradient-golden: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.85) 100%);

    --sidebar-width: 320px;
    --content-max: 1400px;
    --spacing: 1rem;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --player-height: 84px;
    --header-height: 68px;
    --transition: .25s cubic-bezier(.4, 0, .2, 1);
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* =============================================================
   2. BASE / RESET
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

html { color-scheme: dark; }
body {
    margin: 0;
    font-family: var(--font-stack);
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.55;
    padding-bottom: 0;
    overflow-x: hidden;
    transition: background-color var(--transition), color var(--transition);
}

body.player-active { padding-bottom: calc(var(--player-height) + 12px); }
body.menu-open { overflow: hidden; }

img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }

a { color: var(--text-primary); text-decoration: none; transition: color var(--transition); }
a:hover, a:focus-visible { color: var(--golden); }

h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; line-height: 1.25; font-weight: 700; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 2px solid var(--golden); outline-offset: 2px; }

.screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
    height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
    position: absolute !important; word-wrap: normal !important;
}

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 100000;
    background: var(--golden); color: #000; padding: 12px 20px; font-weight: 700; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #000; }

.container, .wrap-inner {
    width: 100%; max-width: var(--content-max); margin: 0 auto; padding: 0 20px;
}

/* =============================================================
   3. BUTTONS & SHARED BITS
   ============================================================= */
.btn, .button,
.afromziki-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .75rem 1.4rem; border: 0; border-radius: 50px;
    font-weight: 600; text-decoration: none; line-height: 1;
    background: var(--card-bg); color: var(--text-primary);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:hover, .button:hover, .afromziki-btn:hover { transform: translateY(-2px); color: var(--text-primary); }
.btn-gold { background: var(--gradient-golden); color: #111; }
.btn-gold:hover { color: #111; box-shadow: var(--shadow-gold); }
.btn-outline { background: transparent; border: 2px solid var(--border-color); }
.btn-outline:hover { border-color: var(--golden); }
.btn[disabled], .btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.section-title {
    display: flex; align-items: center; gap: .75rem;
    font-size: 1.4rem; margin: 1.75rem 0 1rem; color: var(--text-primary);
}
.section-title::before {
    content: ""; width: 5px; height: 24px; border-radius: 3px; background: var(--gradient-golden); flex: none;
}
.section-title .count { font-size: .85rem; color: var(--text-muted); font-weight: 500; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.section-head .view-all { font-size: .85rem; color: var(--golden); font-weight: 600; }

.badge {
    display: inline-block; padding: .2rem .6rem; border-radius: 50px;
    background: rgba(255, 215, 0, .14); color: var(--golden);
    font-size: .68rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
}
.ad-space { margin: 1.5rem 0; text-align: center; overflow: hidden; }
.ad-space:empty { display: none; }

.spinner {
    display: inline-block; width: 20px; height: 20px; border-radius: 50%;
    border: 3px solid rgba(255, 215, 0, .3); border-top-color: var(--golden);
    animation: afromziki-spin .9s linear infinite; vertical-align: middle;
}
@keyframes afromziki-spin { to { transform: rotate(360deg); } }
@keyframes afromziki-fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* =============================================================
   4. HEADER
   ============================================================= */
.site-header {
    position: sticky; top: 0; z-index: 900;
    background: color-mix(in srgb, var(--secondary-bg) 92%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}
body.header-not-sticky .site-header { position: relative; }
.site-header .header-inner {
    max-width: var(--content-max); margin: 0 auto;
    min-height: var(--header-height);
    display: flex; align-items: center; gap: 1rem; padding: 0 20px;
}
.site-branding { display: flex; align-items: center; gap: .6rem; flex: none; }
.site-branding a { display: flex; align-items: center; gap: .6rem; font-size: 1.35rem; font-weight: 800; letter-spacing: .3px; }
.site-branding .site-title-text {
    background: var(--gradient-golden); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.site-branding img { max-height: 42px; width: auto; }
.custom-logo-link img { max-height: 42px; width: auto; }

.main-nav { flex: 1 1 auto; display: flex; justify-content: center; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.main-nav li { position: relative; }
.main-nav a {
    display: block; padding: .6rem .85rem; border-radius: var(--border-radius-sm);
    font-size: .95rem; font-weight: 500; white-space: nowrap;
}
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a {
    background: rgba(255, 215, 0, .12); color: var(--golden);
}
.main-nav .sub-menu {
    position: absolute; top: 100%; left: 0; min-width: 210px; flex-direction: column; align-items: stretch;
    background: var(--elevated-bg); border: 1px solid var(--border-color); border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft); padding: .4rem; opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: all var(--transition); z-index: 50;
}
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { font-size: .9rem; }

.header-actions { display: flex; align-items: center; gap: .4rem; margin-left: auto; flex: none; }
.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 50%;
    background: transparent; border: 1px solid transparent; color: var(--text-primary);
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.icon-btn:hover { background: rgba(255, 215, 0, .12); color: var(--golden); border-color: rgba(255, 215, 0, .3); }
.icon-btn svg { width: 22px; height: 22px; fill: currentColor; }
.menu-toggle { display: none; }

/* Mobile slide-in menu */
.overlay {
    position: fixed; inset: 0; background: rgba(0, 0, 0, .65);
    opacity: 0; visibility: hidden; transition: opacity var(--transition); z-index: 998;
}
.overlay.active { opacity: 1; visibility: visible; }
.mobile-menu-panel {
    position: fixed; top: 0; left: 0; bottom: 0; width: min(84vw, 330px);
    background: var(--secondary-bg); border-right: 1px solid var(--border-color);
    transform: translateX(-102%); transition: transform var(--transition); z-index: 999;
    padding: 1.2rem 1rem; overflow-y: auto;
}
.mobile-menu-panel.open { transform: none; }
.mobile-menu-panel .close-menu {
    display: flex; align-items: center; justify-content: center; margin-left: auto;
    width: 42px; height: 42px; border-radius: 50%; background: var(--card-bg);
    border: 1px solid var(--border-color); font-size: 1.4rem; line-height: 1;
}
.mobile-menu-panel .mobile-panel-head { display: flex; align-items: center; margin-bottom: 1rem; }
.mobile-menu { list-style: none; margin: 0; padding: 0; }
.mobile-menu li { border-bottom: 1px solid var(--border-color); }
.mobile-menu a { display: block; padding: .9rem .4rem; font-size: 1rem; font-weight: 500; }
.mobile-menu .sub-menu { list-style: none; padding-left: 1rem; }
.mobile-menu .sub-menu a { font-weight: 400; font-size: .95rem; color: var(--text-secondary); }

/* =============================================================
   5. COUNTRY / GENRE QUICK LINKS
   ============================================================= */
.afromziki-quicklinks {
    background: var(--secondary-bg); border-bottom: 1px solid var(--border-color);
    padding: .55rem 0;
}
.qualinks-inner { position: relative; display: flex; align-items: center; gap: .5rem; max-width: var(--content-max); margin: 0 auto; padding: 0 20px; }
.qualinks-track { display: flex; gap: .5rem; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding: .1rem; }
.qualinks-track::-webkit-scrollbar { display: none; }
.quicklink {
    display: inline-flex; align-items: center; gap: .45rem; flex: none;
    padding: .45rem .9rem; border-radius: 50px; background: var(--card-bg);
    border: 1px solid var(--border-color); font-size: .85rem; font-weight: 500; white-space: nowrap;
}
.quicklink:hover, .quicklink.current { background: rgba(255, 215, 0, .14); border-color: rgba(255, 215, 0, .4); color: var(--golden); }
.quicklink .flag { font-size: 1.05rem; line-height: 1; }
.qualinks-nav {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 34px; height: 34px; border-radius: 50%; background: var(--card-bg);
    border: 1px solid var(--border-color);
}
.qualinks-nav svg { width: 18px; height: 18px; fill: currentColor; }

/* =============================================================
   6. SEARCH BAR + AJAX DROPDOWN
   ============================================================= */
.search-section { background: var(--primary-bg); padding: 1.1rem 0 .6rem; }
.search-section .search-inner { max-width: var(--content-max); margin: 0 auto; padding: 0 20px; }
.search-form { position: relative; max-width: 760px; margin: 0 auto; }
.search-field-wrap { display: flex; align-items: center; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 50px; padding: .35rem .4rem .35rem 1.1rem; transition: border-color var(--transition), box-shadow var(--transition); }
.search-field-wrap:focus-within { border-color: var(--golden); box-shadow: 0 0 0 4px rgba(255, 215, 0, .1); }
.search-form .search-field {
    flex: 1; background: transparent; border: 0; outline: none; padding: .7rem .4rem;
    font-size: 1rem; color: var(--text-primary); min-width: 0;
}
.search-form .search-field::placeholder { color: var(--text-muted); }
.search-form .search-submit {
    display: inline-flex; align-items: center; gap: .45rem; flex: none;
    background: var(--gradient-golden); color: #111; border: 0;
    padding: .7rem 1.3rem; border-radius: 50px; font-weight: 700;
}
.search-form .search-submit svg { width: 18px; height: 18px; fill: currentColor; }
.search-results-panel {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60;
    background: var(--elevated-bg); border: 1px solid var(--border-color); border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft); max-height: min(70vh, 520px); overflow-y: auto;
    display: none; text-align: left;
}
.search-results-panel.active { display: block; animation: afromziki-fade-up .2s ease; }
.search-result-item {
    display: flex; align-items: center; gap: .85rem; padding: .7rem .9rem;
    border-bottom: 1px solid var(--border-color);
}
.search-result-item:last-child { border-bottom: 0; }
.search-result-item:hover, .search-result-item.is-active { background: rgba(255, 215, 0, .08); color: var(--text-primary); }
.search-result-item img { width: 48px; height: 48px; border-radius: var(--border-radius-sm); object-fit: cover; flex: none; background: var(--card-bg); }
.search-result-item .r-title { font-weight: 600; font-size: .94rem; margin-bottom: .1rem; }
.search-result-item .r-meta { font-size: .79rem; color: var(--text-muted); }
.search-result-item .r-play { margin-left: auto; flex: none; }
.search-empty, .search-hint { padding: 1rem; text-align: center; color: var(--text-muted); font-size: .9rem; }
.search-hint mark, .search-result-item mark { background: rgba(255, 215, 0, .25); color: inherit; border-radius: 3px; }

.trending-tags { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .45rem; margin: .85rem auto 0; max-width: 900px; }
.trending-tags .label { font-size: .72rem; font-weight: 800; letter-spacing: 1px; color: var(--text-muted); }
.trending-tags a {
    font-size: .78rem; padding: .28rem .7rem; border-radius: 50px;
    background: var(--card-bg); border: 1px solid var(--border-color); color: var(--text-secondary);
}
.trending-tags a:hover { color: var(--golden); border-color: rgba(255, 215, 0, .4); }

/* =============================================================
   7. LAYOUT
   ============================================================= */
.site-content { display: block; min-height: 50vh; padding-bottom: 2.5rem; }
.home-layout, .content-with-sidebar {
    display: grid; grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
    gap: 2rem; max-width: var(--content-max); margin: 0 auto; padding: 1.25rem 20px 0; align-items: start;
}
.home-layout.no-sidebar { grid-template-columns: minmax(0, 1fr); }
.content-narrow { max-width: 900px; margin: 0 auto; padding: 1.25rem 20px 0; }

.breadcrumbs { font-size: .8rem; color: var(--text-muted); margin: .75rem 0 .25rem; display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--golden); }
.breadcrumbs .sep { opacity: .6; }

/* =============================================================
   8. FEATURED CAROUSEL
   ============================================================= */
.featured-section { margin-bottom: 1.5rem; }
.carousel-viewport { overflow: hidden; position: relative; }
.carousel-track { display: flex; gap: 1rem; transition: transform .45s cubic-bezier(.4, 0, .2, 1); will-change: transform; }
.featured-card {
    position: relative; flex: 0 0 calc((100% - 2rem) / 3);
    border-radius: var(--border-radius); overflow: hidden; background: var(--card-bg);
    border: 1px solid var(--border-color); cursor: pointer; transition: transform var(--transition), box-shadow var(--transition);
}
.featured-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.featured-card:focus-within { outline: 2px solid var(--golden); outline-offset: 2px; }
.featured-card .card-media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--secondary-bg); }
.featured-card .card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.featured-card:hover .card-media img { transform: scale(1.06); }
.featured-card .card-media::after { content: ""; position: absolute; inset: 0; background: var(--gradient-overlay); }
.featured-card .card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: .9rem 1rem; z-index: 2; }
.featured-card .card-kicker { font-size: .7rem; letter-spacing: .8px; text-transform: uppercase; color: var(--golden); font-weight: 700; }
.featured-card .card-title { font-size: 1.05rem; font-weight: 700; margin: .2rem 0 .1rem; color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.featured-card .card-artist { font-size: .85rem; color: #ded8d8; }
.play-fab {
    position: absolute; right: .9rem; top: .9rem; z-index: 3;
    width: 48px; height: 48px; border-radius: 50%; border: 0;
    background: var(--gradient-golden); color: #111;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .45); opacity: 0; transform: scale(.85);
    transition: opacity var(--transition), transform var(--transition);
}
.featured-card:hover .play-fab, .featured-card:focus-within .play-fab { opacity: 1; transform: none; }
.play-fab svg { width: 22px; height: 22px; fill: currentColor; }
.card-link-overlay { position: absolute; inset: 0; z-index: 1; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: .9rem; }
.carousel-arrow {
    width: 40px; height: 40px; border-radius: 50%; background: var(--card-bg);
    border: 1px solid var(--border-color); display: inline-flex; align-items: center; justify-content: center;
}
.carousel-arrow:hover:not([disabled]) { background: var(--gradient-golden); color: #111; border-color: transparent; }
.carousel-arrow[disabled] { opacity: .35; cursor: not-allowed; }
.carousel-arrow svg { width: 20px; height: 20px; fill: currentColor; }
.carousel-dots { display: flex; gap: .4rem; align-items: center; }
.carousel-dot { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: var(--border-color); transition: all var(--transition); }
.carousel-dot.active { width: 24px; border-radius: 50px; background: var(--golden); }

/* =============================================================
   9. TRACK GRID / LISTS
   ============================================================= */
.tracks-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.tracks-grid.list { grid-template-columns: minmax(0, 1fr); gap: .7rem; }
.track-card {
    position: relative; background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: var(--border-radius); overflow: hidden;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    animation: afromziki-fade-up .35s ease both;
}
.track-card:hover { transform: translateY(-4px); border-color: rgba(255, 215, 0, .35); box-shadow: var(--shadow-soft); }
.track-card.is-playing { border-color: var(--golden); box-shadow: var(--shadow-gold); }
.track-card .track-image { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--secondary-bg); }
.track-card .track-image img { width: 100%; height: 100%; object-fit: cover; }
.track-card .track-info { padding: .8rem .85rem 1rem; }
.track-card .track-title { font-size: .96rem; font-weight: 600; margin: 0 0 .15rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.track-card .track-artist { font-size: .82rem; color: var(--text-muted); margin-bottom: .55rem; }
.track-card .track-meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .7rem; }
.track-card .track-type { color: var(--golden); font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.track-card .track-date { color: var(--text-muted); }
/*
 * The overlay is invisible until the card is hovered, so it must never swallow
 * clicks: clicking the artwork or the title has to open the post. Only the play
 * button row takes the pointer, and only while the overlay is on screen.
 */
.track-actions { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .45); opacity: 0; pointer-events: none; transition: opacity var(--transition); }
.track-card:hover .track-actions, .track-card:focus-within .track-actions, .track-card.is-playing .track-actions { opacity: 1; }
.track-card:hover .track-actions .row, .track-card:focus-within .track-actions .row, .track-card.is-playing .track-actions .row { pointer-events: auto; }
.track-actions .round-play {
    width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--gradient-golden); color: #111;
    display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .5);
}
.track-actions .round-play svg { width: 24px; height: 24px; fill: currentColor; }
.track-actions .row { display: flex; gap: .6rem; }
.track-card .card-link { position: absolute; inset: 0; z-index: 1; }
.track-card .track-image, .track-card .track-info { position: relative; z-index: 2; }
.track-card .card-link { z-index: 3; }
.track-card .track-actions { z-index: 4; }
.track-card .equalizer { display: none; gap: 2px; align-items: flex-end; height: 14px; }
.track-card.is-playing .equalizer { display: inline-flex; }
.equalizer span { width: 3px; background: var(--golden); animation: afromziki-eq .9s ease-in-out infinite; }
.equalizer span:nth-child(1) { animation-delay: .0s; }
.equalizer span:nth-child(2) { animation-delay: .25s; }
.equalizer span:nth-child(3) { animation-delay: .5s; }
.equalizer span:nth-child(4) { animation-delay: .15s; }
@keyframes afromziki-eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }

.list .track-card { display: flex; align-items: center; gap: 1rem; padding: .55rem; }
.list .track-card .track-image { width: 76px; height: 76px; aspect-ratio: auto; border-radius: var(--border-radius-sm); flex: none; }
.list .track-card .track-info { padding: 0; flex: 1; min-width: 0; }
.list .track-card .track-title { -webkit-line-clamp: 1; }
.list .track-card .track-actions { position: static; opacity: 1; background: none; margin-left: auto; pointer-events: auto; }
.list .track-card .track-actions .round-play { width: 42px; height: 42px; }

.load-more-wrap { text-align: center; margin: 2rem 0 1rem; }
.load-more-btn {
    background: var(--card-bg); color: var(--text-primary); border: 2px solid var(--golden-dark);
    padding: .85rem 2.5rem; border-radius: 50px; font-weight: 700; letter-spacing: .3px;
    transition: all var(--transition);
}
.load-more-btn:hover:not([disabled]) { background: var(--gradient-golden); color: #111; transform: translateY(-2px); }
.load-more-btn[disabled] { opacity: .6; cursor: progress; }
.list-status { margin-top: .75rem; color: var(--text-muted); font-size: .85rem; min-height: 1.2em; }

/* =============================================================
   10. SIDEBAR / WIDGETS
   ============================================================= */
.sidebar { display: flex; flex-direction: column; gap: 1.25rem; position: sticky; top: calc(var(--header-height) + 16px); }
.widget { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--border-radius); padding: 1rem; }
.widget-title, .widget .wp-block-heading {
    font-size: .95rem; text-transform: uppercase; letter-spacing: .8px; margin: 0 0 .9rem;
    padding-bottom: .6rem; border-bottom: 1px solid var(--border-color); color: var(--text-primary);
    display: flex; align-items: center; gap: .5rem;
}
.widget-title::before { content: ""; width: 4px; height: 15px; border-radius: 2px; background: var(--gradient-golden); }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { border-bottom: 1px solid var(--border-color); }
.widget ul li:last-child { border-bottom: 0; }
.widget ul li a { display: block; padding: .55rem .1rem; font-size: .9rem; }
.widget_tag_cloud a, .tagcloud a {
    display: inline-block; font-size: .8rem !important; padding: .3rem .7rem; margin: .2rem .2rem 0 0;
    border-radius: 50px; background: var(--secondary-bg); border: 1px solid var(--border-color);
}

.trending-tabs { display: flex; gap: .3rem; margin-bottom: .8rem; background: var(--secondary-bg); padding: .25rem; border-radius: 50px; }
.trending-tab {
    flex: 1; border: 0; background: transparent; color: var(--text-secondary);
    padding: .45rem .3rem; border-radius: 50px; font-size: .8rem; font-weight: 600; transition: all var(--transition);
}
.trending-tab.active { background: var(--gradient-golden); color: #111; }
.trending-list { display: none; }
.trending-list.active { display: block; }
.rank-row {
    display: flex; align-items: center; gap: .7rem; padding: .5rem .1rem;
    border-bottom: 1px solid var(--border-color); position: relative;
}
.rank-row:last-child { border-bottom: 0; }
.rank-row .rank-num {
    flex: none; width: 24px; text-align: center; font-weight: 800; font-size: .85rem;
    color: var(--text-muted); font-variant-numeric: tabular-nums;
}
.rank-row:nth-child(1) .rank-num, .rank-row:nth-child(2) .rank-num, .rank-row:nth-child(3) .rank-num { color: var(--golden); }
.rank-row img { width: 46px; height: 46px; border-radius: var(--border-radius-sm); object-fit: cover; flex: none; background: var(--secondary-bg); }
.rank-row .rank-info { min-width: 0; flex: 1; }
.rank-row .rank-title { font-size: .87rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-row .rank-artist { font-size: .76rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-row .rank-play { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border-color); background: var(--secondary-bg); display: inline-flex; align-items: center; justify-content: center; }
.rank-row .rank-play:hover { background: var(--gradient-golden); color: #111; }
.rank-row .rank-play svg { width: 14px; height: 14px; fill: currentColor; }
.rank-row .card-link { position: absolute; inset: 0; z-index: 1; }
.rank-row .rank-info, .rank-row .rank-play, .rank-row .rank-num, .rank-row img { position: relative; z-index: 2; }
.widget .loading-row { color: var(--text-muted); font-size: .85rem; padding: .6rem 0; }

/* =============================================================
   11. SINGLE POST / PAGE
   ============================================================= */
.single-layout {
    display: grid; grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
    gap: 2rem; max-width: var(--content-max); margin: 0 auto; padding: 1rem 20px 0; align-items: start;
}
.single-layout.no-sidebar { grid-template-columns: minmax(0, 1fr); max-width: 1000px; }
.music-card {
    background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--border-radius);
    padding: 1.4rem; margin-bottom: 1.5rem;
}
.music-hero { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.music-artwork { position: relative; border-radius: var(--border-radius); overflow: hidden; aspect-ratio: 1 / 1; background: var(--secondary-bg); box-shadow: var(--shadow-soft); }
.music-artwork img { width: 100%; height: 100%; object-fit: cover; }
.music-artwork .artwork-badge { position: absolute; top: .7rem; left: .7rem; }
.music-title { font-size: clamp(1.4rem, 2.6vw, 2.1rem); margin: 0 0 .35rem; }
.music-artist { color: var(--text-secondary); font-size: 1rem; margin-bottom: 1rem; }
.music-artist a { color: var(--golden); }
.music-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.1rem; }
.music-actions .btn svg, .music-actions .action-btn svg { width: 19px; height: 19px; fill: currentColor; }
.action-btn {
    display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.35rem;
    border: 0; border-radius: 50px; font-weight: 700; font-size: .9rem; letter-spacing: .3px;
    background: var(--secondary-bg); color: var(--text-primary); transition: all var(--transition);
}
.action-btn:hover { transform: translateY(-2px); color: var(--text-primary); }
.action-btn.play-btn-main, .action-btn.is-primary { background: var(--gradient-golden); color: #111; }
.action-btn.play-btn-main:hover, .action-btn.is-primary:hover { color: #111; box-shadow: var(--shadow-gold); }
.action-btn.is-playing { background: #1f1f1f; color: var(--golden); border: 1px solid var(--golden); }
.music-meta { display: flex; flex-wrap: wrap; gap: .9rem; font-size: .82rem; color: var(--text-muted); }
.music-meta span, .music-meta a { display: inline-flex; align-items: center; gap: .35rem; }
.music-meta svg { width: 15px; height: 15px; fill: currentColor; }
.music-meta a { color: var(--text-secondary); }
.music-meta a:hover { color: var(--golden); }
.waveform {
    display: flex; align-items: flex-end; gap: 3px; height: 34px; margin-top: 1.1rem; opacity: .85;
}
.waveform span { width: 3px; background: var(--border-color); border-radius: 2px; }
.music-card.is-playing .waveform span { background: var(--golden); animation: afromziki-eq 1.1s ease-in-out infinite; }
.waveform span:nth-child(3n) { animation-delay: .2s; }
.waveform span:nth-child(4n) { animation-delay: .4s; }
.waveform span:nth-child(5n) { animation-delay: .6s; }

.video-embed { margin: 1.2rem 0 0; }
.video-embed .ratio { position: relative; aspect-ratio: 16 / 9; border-radius: var(--border-radius); overflow: hidden; background: #000; }
.video-embed .ratio iframe, .video-embed .ratio video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-facade { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; background-size: cover; background-position: center; }
.video-facade .facade-play { width: 68px; height: 68px; border-radius: 50%; background: rgba(255, 215, 0, .95); color: #111; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 30px rgba(0, 0, 0, .5); }
.video-facade .facade-play svg { width: 30px; height: 30px; fill: currentColor; }

.entry-content { font-size: 1.02rem; color: var(--text-secondary); }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--text-primary); margin-top: 1.6em; }
.entry-content img, .entry-content iframe, .entry-content video { border-radius: var(--border-radius); }
.entry-content a { color: var(--golden); text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote {
    margin: 1.5rem 0; padding: .9rem 1.2rem; border-left: 4px solid var(--golden);
    background: var(--secondary-bg); border-radius: 0 var(--border-radius) var(--border-radius) 0; color: var(--text-secondary);
}
.entry-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.entry-content th, .entry-content td { border: 1px solid var(--border-color); padding: .6rem .8rem; text-align: left; }
.entry-content pre { background: var(--secondary-bg); padding: 1rem; border-radius: var(--border-radius); overflow-x: auto; }
.entry-content ul { list-style: disc; } .entry-content ol { list-style: decimal; }
.entry-content .wp-block-button__link { border-radius: 50px; }
.alignleft { float: left; margin: 0 1.2rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.2rem; }
.aligncenter { margin: 1rem auto; display: block; }
.wp-caption-text, .wp-element-caption { font-size: .82rem; color: var(--text-muted); text-align: center; margin-top: .4rem; }

.share-block { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--border-color); }
.share-block .share-label { font-size: .8rem; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: .7rem; }
.share-icons { display: flex; flex-wrap: wrap; gap: .5rem; }
.share-btn {
    display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1rem;
    border-radius: 50px; background: var(--secondary-bg); border: 1px solid var(--border-color);
    font-size: .82rem; font-weight: 600; cursor: pointer;
}
.share-btn svg { width: 16px; height: 16px; fill: currentColor; }
.share-btn:hover { border-color: var(--golden); color: var(--golden); }
.share-btn.facebook:hover { color: #1877f2; border-color: #1877f2; }
.share-btn.whatsapp:hover { color: #25d366; border-color: #25d366; }
.share-btn.telegram:hover { color: #2aabee; border-color: #2aabee; }

.post-tags { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: 1.2rem; font-size: .82rem; }
.post-tags a { padding: .3rem .75rem; border-radius: 50px; background: var(--card-bg); border: 1px solid var(--border-color); color: var(--text-secondary); }
.post-tags a:hover { color: var(--golden); border-color: rgba(255, 215, 0, .4); }

.author-box { display: flex; gap: 1rem; align-items: center; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--border-radius); padding: 1rem; margin-top: 1.5rem; }
.author-box img { width: 62px; height: 62px; border-radius: 50%; flex: none; }
.author-box .author-name { font-weight: 700; margin-bottom: .2rem; }
.author-box p { font-size: .87rem; color: var(--text-muted); margin: 0; }

.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.post-navigation .nav-item {
    background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--border-radius);
    padding: .9rem 1rem; min-width: 0;
}
.post-navigation .nav-item:hover { border-color: rgba(255, 215, 0, .4); }
.post-navigation .nav-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .8px; color: var(--text-muted); margin-bottom: .25rem; }
.post-navigation .nav-title { font-size: .92rem; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-navigation .next { text-align: right; }

.related-section { margin-top: 2rem; }
/* Related tracks: 3 cards across on desktop, 2 on mobile. */
.related-section .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 700px) {
    .related-section .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.comments-area { margin-top: 2rem; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--border-radius); padding: 1.2rem; }
.comments-area .comment-list { list-style: none; padding: 0; }
.comments-area .comment-list ol.children { list-style: none; padding-left: 1.2rem; }
.comment-body { border-bottom: 1px solid var(--border-color); padding: 1rem 0; }
.comment-meta { display: flex; align-items: center; gap: .6rem; font-size: .82rem; color: var(--text-muted); margin-bottom: .4rem; }
.comment-meta img { border-radius: 50%; }
.comment-author { font-weight: 700; color: var(--text-primary); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea, .search-input, input[type="search"], input[type="text"], input[type="email"], input[type="url"], input[type="password"], textarea, select {
    width: 100%; background: var(--secondary-bg); border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm); padding: .7rem .9rem; color: var(--text-primary);
}
.comment-form input:focus, .comment-form textarea:focus, textarea:focus, select:focus, input:focus { outline: none; border-color: var(--golden); }
.comment-form .form-submit input[type="submit"], .comment-form input[type="submit"] {
    background: var(--gradient-golden); color: #111; border: 0; border-radius: 50px;
    padding: .8rem 1.8rem; font-weight: 700; width: auto; cursor: pointer;
}

/* =============================================================
   12. ARCHIVE / SEARCH / 404
   ============================================================= */
.archive-header { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--border-radius); padding: 1.4rem; margin-bottom: 1.4rem; }
.archive-header .archive-title { margin: 0 0 .3rem; font-size: 1.6rem; }
.archive-header .archive-desc { color: var(--text-muted); font-size: .9rem; margin: 0; }
.archive-header .archive-count { color: var(--golden); font-size: .8rem; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }

.pagination { display: flex; justify-content: center; margin: 2rem 0 1rem; }
.pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px;
    padding: 0 .7rem; margin: 0 .2rem; border-radius: var(--border-radius-sm);
    background: var(--card-bg); border: 1px solid var(--border-color); font-size: .9rem;
}
.pagination .page-numbers.current { background: var(--gradient-golden); color: #111; border-color: transparent; font-weight: 700; }
.pagination .page-numbers:hover { border-color: var(--golden); }
.pagination .dots { border: 0; background: transparent; }

.error-404 { text-align: center; padding: 4rem 1rem; max-width: 680px; margin: 0 auto; }
.error-404 .code { font-size: clamp(3.5rem, 12vw, 7rem); font-weight: 900; line-height: 1; background: var(--gradient-golden); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-404 .search-form { margin: 1.5rem auto 1rem; }
.error-404 .suggestions { text-align: left; }

.no-results { padding: 2rem; text-align: center; color: var(--text-muted); background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--border-radius); }

/* =============================================================
   13. FIXED PLAYER
   ============================================================= */
.afromziki-player {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
    background: color-mix(in srgb, var(--secondary-bg) 96%, transparent);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--border-color);
    transform: translateY(105%); transition: transform var(--transition);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .35);
}
.afromziki-player.visible { transform: none; }
.player-inner {
    max-width: var(--content-max); margin: 0 auto; padding: .6rem 20px;
    display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.4fr) auto;
    gap: 1.1rem; align-items: center; min-height: var(--player-height);
}
.player-track { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.player-thumb { width: 54px; height: 54px; border-radius: var(--border-radius-sm); object-fit: cover; flex: none; background: var(--card-bg); }
.player-details { min-width: 0; }
.player-title { font-size: .92rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-link { color: inherit; }
.player-artist { font-size: .78rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-controls { display: flex; align-items: center; gap: .35rem; }
.player-btn {
    width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent;
    color: var(--text-primary); display: inline-flex; align-items: center; justify-content: center;
}
.player-btn:hover { background: rgba(255, 215, 0, .12); color: var(--golden); }
.player-btn svg { width: 22px; height: 22px; fill: currentColor; }
.player-btn.play-pause { width: 50px; height: 50px; background: var(--gradient-golden); color: #111; }
.player-btn.play-pause:hover { color: #111; transform: scale(1.05); }
.player-btn[disabled] { opacity: .35; }
.player-btn.is-on { color: var(--golden); }
.player-progress { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.player-time { font-size: .74rem; color: var(--text-muted); font-variant-numeric: tabular-nums; flex: none; min-width: 38px; text-align: center; }
.seek-bar, .volume-bar {
    position: relative; height: 6px; border-radius: 50px; background: var(--border-color);
    flex: 1; cursor: pointer; touch-action: none;
}
.seek-bar:focus-visible, .volume-bar:focus-visible { outline: 2px solid var(--golden); outline-offset: 3px; }
.seek-buffer, .volume-fill, .seek-fill { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 50px; }
.seek-buffer { background: rgba(255, 255, 255, .12); }
.seek-fill, .volume-fill { background: var(--gradient-golden); width: 0; }
.seek-bar .knob, .volume-bar .knob {
    position: absolute; top: 50%; width: 13px; height: 13px; border-radius: 50%;
    background: var(--golden); transform: translate(-50%, -50%); left: 0; opacity: 0; transition: opacity var(--transition);
}
.seek-bar:hover .knob, .volume-bar:hover .knob, .seek-bar:focus-visible .knob, .volume-bar:focus-visible .knob { opacity: 1; }
.player-extra { display: flex; align-items: center; gap: .5rem; }
.volume-wrap { display: flex; align-items: center; gap: .5rem; width: 130px; }
.player-close { display: none; }

/* Compact radio-style loading state */
.player-buffering .player-title::after { content: " • loading"; color: var(--golden); font-size: .75rem; }

/* =============================================================
   14. FOOTER
   ============================================================= */
.site-footer { background: var(--secondary-bg); border-top: 1px solid var(--border-color); margin-top: 2rem; }
.footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; padding: 2.2rem 20px 1rem; max-width: var(--content-max); margin: 0 auto; }
.footer-widgets .widget { background: transparent; border: 0; padding: 0; }
.footer-inner { max-width: var(--content-max); margin: 0 auto; padding: 1.2rem 20px; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; border-top: 1px solid var(--border-color); }
.footer-menu { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem; margin: 0; padding: 0; }
.footer-menu a { font-size: .85rem; color: var(--text-secondary); }
.footer-brand { font-weight: 800; }
.footer-copy { font-size: .82rem; color: var(--text-muted); }
.footer-social { display: flex; gap: .5rem; flex-wrap: wrap; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 50%; background: var(--card-bg); border: 1px solid var(--border-color);
    display: inline-flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--gradient-golden); color: #111; border-color: transparent; }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.back-to-top {
    position: fixed; right: 18px; bottom: calc(var(--player-height) + 20px); z-index: 900;
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-color);
    background: var(--card-bg); color: var(--text-primary); display: inline-flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all var(--transition);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top svg { width: 20px; height: 20px; fill: currentColor; }

/* =============================================================
   16. WORDPRESS CORE BLOCK FIXES
   ============================================================= */
.wp-block-image img { border-radius: var(--border-radius); }
.wp-block-quote { border-left: 4px solid var(--golden); padding-left: 1rem; }
.wp-block-audio audio { width: 100%; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; }
.gallery-item { margin: 0; }
.sticky .track-title::after { content: " ★"; color: var(--golden); }
.bypostauthor > .comment-body .comment-author::after { content: " (author)"; color: var(--golden); font-size: .75rem; }

/* =============================================================
   17. RESPONSIVE
   ============================================================= */
@media (max-width: 1180px) {
    :root { --sidebar-width: 300px; }
    .home-layout, .single-layout { gap: 1.5rem; }
}
@media (max-width: 1024px) {
    .main-nav { display: none; }
    .menu-toggle { display: inline-flex; }
    .featured-card { flex: 0 0 calc((100% - 1rem) / 2); }
}
@media (max-width: 992px) {
    .home-layout, .single-layout { grid-template-columns: minmax(0, 1fr); }
    .sidebar { position: static; }
}
@media (max-width: 860px) {
    .music-hero { grid-template-columns: minmax(0, 1fr); }
    .music-artwork { max-width: 320px; margin: 0 auto; }
    .player-inner { grid-template-columns: minmax(0, 1fr) auto; row-gap: .5rem; padding: .55rem 14px; }
    .player-progress { grid-column: 1 / -1; order: 5; }
    .player-extra .volume-wrap, .player-extra .player-speed { display: none; }
}
@media (max-width: 700px) {
    .featured-card { flex: 0 0 100%; }
    .tracks-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .search-form .search-submit .btn-label { display: none; }
    .search-form .search-submit { padding: .7rem .95rem; }
    .post-navigation { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; align-items: flex-start; }

    /*
     * Mobile player: one compact row - cover image, song title, artist
     * name, play-pause and repeat - with the seek bar and its time stamps
     * on a full-width line underneath. Shuffle, previous, next, queue,
     * speed, mute, volume and close are hidden so the title and artist
     * get the full width. (Desktop is untouched - the full feature bar
     * stays there.)
     */
    body.player-active { padding-bottom: calc(var(--player-height) + 24px); }
    .player-inner { grid-template-columns: minmax(0, 1fr) auto; gap: .8rem; row-gap: .5rem; padding: .55rem 12px; }
    .player-thumb { width: 44px; height: 44px; }
    .player-progress { grid-column: 1 / -1; order: 5; }
    .player-extra { display: none; }
    .player-controls .js-shuffle { display: none; }
    #player-prev, #player-next { display: none; }
    #player-open { display: none; }
}
@media (max-width: 480px) {
    .tracks-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: .8rem; }
    .track-card .track-info { padding: .6rem .6rem .8rem; }
    .player-thumb { width: 44px; height: 44px; }
    .music-actions .action-btn { flex: 1 1 auto; justify-content: center; }
    .music-card { padding: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* Print */
@media print {
    .site-header, .afromziki-player, .sidebar, .site-footer, .ad-space, .share-block { display: none !important; }
    body { background: #fff; color: #000; }
}

/* =============================================================
   18. UTILITIES, PLAYER EXTRAS & LAYOUT FIXES
   ============================================================= */
[hidden] { display: none !important; }

.main-content, .single-main { min-width: 0; }
.music-details { min-width: 0; }

/* Reading progress bar on track pages */
.reading-progress {
    position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1000;
    background: transparent; pointer-events: none;
}
.reading-progress span {
    display: block; height: 100%; width: 0;
    background: var(--gradient-golden);
}

/* Player queue drawer */
.player-queue {
    border-top: 1px solid var(--border-color);
    background: var(--secondary-bg);
    max-height: min(46vh, 320px);
    display: flex; flex-direction: column;
}
.queue-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: .6rem 20px; max-width: var(--content-max); margin: 0 auto; width: 100%;
    border-bottom: 1px solid var(--border-color);
}
.queue-head strong { font-size: .82rem; text-transform: uppercase; letter-spacing: .8px; color: var(--text-muted); }
.queue-close { background: none; border: 0; font-size: 1.2rem; line-height: 1; color: var(--text-muted); }
.queue-close:hover { color: var(--golden); }
.queue-list { list-style: none; margin: 0; padding: .3rem 20px .8rem; overflow-y: auto; max-width: var(--content-max); margin: 0 auto; width: 100%; }
.queue-list li { border-bottom: 1px solid var(--border-color); }
.queue-list li:last-child { border-bottom: 0; }
.queue-item {
    display: flex; align-items: baseline; gap: .6rem; width: 100%; text-align: left;
    background: none; border: 0; padding: .55rem 0; color: var(--text-secondary);
}
.queue-item:hover { color: var(--golden); }
.queue-title { font-size: .88rem; font-weight: 600; }
.queue-artist { font-size: .76rem; color: var(--text-muted); }
.queue-list li.is-current .queue-item { color: var(--golden); }
.queue-list li.is-current .queue-item::before { content: "▶"; font-size: .7rem; }

.player-error {
    padding: .5rem 20px; font-size: .82rem; color: #ffb4b4;
    background: rgba(255, 60, 60, .08); border-top: 1px solid rgba(255, 60, 60, .25);
    max-width: 100%;
}

.player-btn.is-on { color: var(--golden); background: rgba(255, 215, 0, .12); }
.player-btn.js-repeat { position: relative; }
.repeat-badge {
    position: absolute; top: 2px; right: 2px; font-size: .58rem; font-weight: 700;
    background: var(--golden); color: #111; border-radius: 50px; padding: 0 4px; line-height: 1.4;
}
.player-btn .speed-label { font-size: .8rem; font-weight: 700; }
.player-btn .icon-sun, .player-btn .icon-moon { width: 22px; height: 22px; fill: currentColor; }

@media (max-width: 860px) {
    .player-btn.js-speed { display: none; }
    .queue-list { padding-left: 14px; padding-right: 14px; }
}

/* Footer extras */
.footer-about { max-width: var(--content-max); margin: 0 auto; padding: 1.6rem 20px 0; }
.footer-about .footer-brand { font-size: 1.2rem; margin-bottom: .35rem; }
.footer-about p { color: var(--text-muted); font-size: .88rem; max-width: 620px; margin: 0; }
.footer-bottom {
    max-width: var(--content-max); margin: 0 auto; padding: .9rem 20px 1.2rem;
    display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between;
}
.footer-copy, .footer-credit { font-size: .78rem; color: var(--text-muted); margin: 0; }
.footer-widgets.columns-1 { grid-template-columns: 1fr; }
.footer-widgets.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-widgets.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.footer-widgets.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) {
    .footer-widgets.columns-3, .footer-widgets.columns-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .footer-widgets.columns-2, .footer-widgets.columns-3, .footer-widgets.columns-4 { grid-template-columns: 1fr; }
}
.mobile-social { margin-top: 1.2rem; }
.mobile-social .footer-social a { background: var(--card-bg); }

/* Rank list (404 suggestions, widgets) */
.rank-list { display: block; }

/* Search inside archive headers */
.archive-search { margin-top: 1rem; }
.archive-search .search-form { max-width: 520px; margin: 0; }

/* Post navigation markup produced by core */
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.post-navigation .nav-previous a, .post-navigation .nav-next a {
    display: block; background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: var(--border-radius); padding: .9rem 1rem; min-width: 0;
}
.post-navigation .nav-next { text-align: right; }
.post-navigation .nav-label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .8px; color: var(--text-muted); }
.post-navigation .nav-title { display: block; font-size: .92rem; font-weight: 600; }
@media (max-width: 700px) {
    .post-navigation .nav-links { grid-template-columns: 1fr; }
}

/* Comments tweaks */
.comment-respond { margin-top: 1rem; }
.comment-reply-link { font-size: .78rem; color: var(--golden); }
.comments-title, .comment-reply-title { font-size: 1.05rem; }

/* Placeholder artwork keeps a consistent aspect ratio */
img[src$=".svg"] { background: var(--secondary-bg); }

/* Buttons inside the player inherit focus styling */
.afromziki-player :focus-visible { outline: 2px solid var(--golden); outline-offset: 2px; }

/* -----------------------------------------------------------------
   19. CARD MEDIA LINKS + TOUCH DEVICES
   ----------------------------------------------------------------- */
/*
 * The artwork is a link to the single post. Clicking it must NEVER start
 * playback — only the explicit play buttons (.js-afromziki-play) do. The
 * pointer + gentle zoom make the "this opens the track" behaviour obvious.
 */
.track-image-link, .card-media-link { display: block; height: 100%; color: inherit; cursor: pointer; }
.track-image-link img, .card-media-link img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.track-card .track-image-link { position: relative; z-index: 2; }
.track-card:hover .track-image-link img, .featured-card:hover .card-media-link img { transform: scale(1.045); }

/*
 * Touch screens have no hover state, so the hover-revealed play button would be
 * invisible. Show a compact floating button on the artwork instead.
 */
@media (hover: none), (pointer: coarse) {
    .track-card .track-actions {
        opacity: 1;
        background: none;
        align-items: flex-end;
        justify-content: flex-end;
        padding: .55rem;
    }
    .track-card .track-actions .row { pointer-events: auto; }
    .track-card .track-actions .round-play {
        width: 46px;
        height: 46px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
    }
    .list .track-card .track-actions { padding: 0; }
}

/* -----------------------------------------------------------------
   20. SINGLE POST — CUSTOM PLAY / DOWNLOAD ROW
   -----------------------------------------------------------------
   Regular track posts render a custom Play button and a custom
   Download button (download sits directly after play), and the
   theme's default Play (.play-btn-main) and default Download (the
   link) stay in the markup but are hidden here, so the JS hooks and
   layout survive untouched.

   Video, Album, EP and Album/EP posts (and related categories such
   as videos / eps / albums / playlists) get NONE of this: the custom
   buttons are not rendered and no hide rule is applied to them — the
   post shows exactly as it always did, content as-is. (The
   afromziki-custom-actions body class is only added to regular track
   posts, see inc/setup.php.) */
/* Row inactive (option off, or a Video/Album/EP/Album-EP post): custom
   buttons hidden, defaults exactly as before. */
body:not(.afromziki-custom-actions) .music-actions .afromziki-custom-action { display: none; }

/* Row active (regular track posts only): custom buttons visible,
   default Play + Download link hidden. */
body.afromziki-custom-actions .music-actions .play-btn-main { display: none; }
body.afromziki-custom-actions .music-actions .js-afromziki-download:not(.afromziki-custom-action) { display: none; }

/* Custom Play: dark with a gold outline - clearly distinct from the old
   default gold-filled play button. */
.music-actions .afromziki-custom-play { background: var(--secondary-bg); color: var(--golden); box-shadow: inset 0 0 0 1.5px var(--golden); }
.music-actions .afromziki-custom-play:hover { background: rgba(255, 215, 0, .12); box-shadow: inset 0 0 0 1.5px var(--golden); transform: translateY(-2px); }
.music-actions .afromziki-custom-play.is-playing { background: var(--gradient-golden); color: #111; box-shadow: var(--shadow-gold); }
/* Custom Download: the gold hero CTA, sitting directly after Play. */
.music-actions .afromziki-custom-download { background: var(--gradient-golden); color: #111; padding: .8rem 1.6rem; }
.music-actions .afromziki-custom-download:hover { color: #111; box-shadow: var(--shadow-gold); transform: translateY(-2px); }

/* -----------------------------------------------------------------
   21. SVG FLAGS, ICONS + ARTWORK LINKS
   -----------------------------------------------------------------
   Every on-screen icon is inline SVG - no emoji. The .flag chips hold
   the category country flags / genre icons used by the quick links
   bar, the track meta row and the archive titles. */
.flag { display: inline-flex; align-items: center; justify-content: center; line-height: 1; flex: none; }
.flag svg { display: block; width: 1.1em; height: auto; }
.flag--flag svg { border-radius: .22em; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16); }
.flag--icon svg { color: var(--golden); width: 1em; height: 1em; }
.afromziki-svg-icon { display: inline-block; vertical-align: middle; }

/* Trending / recent lists: the cover art links to the post (clicking it
   never starts playback). */
.rank-row .rank-artwork-link { position: relative; z-index: 2; display: block; cursor: pointer; }
.rank-row .rank-artwork-link img { transition: transform .3s ease; }
.rank-row:hover .rank-artwork-link img { transform: scale(1.06); }

.review-card .stars { display: inline-flex; gap: 2px; }
.review-card .stars svg { width: 1em; height: 1em; }
.review-card .stars .is-empty { color: var(--border-color); }

/* -----------------------------------------------------------------
   22. CARD TEXT LINKS + HOME CATEGORY SECTIONS
   -----------------------------------------------------------------
   On the slider, the latest grid and the trending chart, the song
   title and the artist name are links to the single post - not just
   the artwork. The front page also gets up to three configurable
   category-based sections below the latest tracks. */
.track-card .title-link, .track-card .artist-link,
.featured-card .title-link, .featured-card .artist-link,
.rank-row .rank-title a, .rank-row .rank-artist a {
    color: inherit; text-decoration: none;
}
.track-card .title-link:hover, .track-card .artist-link:hover,
.featured-card .title-link:hover, .featured-card .artist-link:hover,
.rank-row .rank-title a:hover, .rank-row .rank-artist a:hover { color: var(--golden); }

.home-section { margin-top: 2.6rem; }
.section-head .view-all a { color: var(--golden); text-decoration: none; }
.section-head .view-all a:hover { text-decoration: underline; }
.view-all a:hover { text-decoration: underline; }

/* =============================================================
   23. AFRO MZIKI 3.0 — PREMIUM DARK LAYER
   Always dark (no light switch). Loaded last so it refines the
   classic layout above without touching the templates' logic.
   ============================================================= */
:root {
    --primary-bg: #07070b;
    --secondary-bg: #0c0c13;
    --card-bg: #12121b;
    --card-bg-hover: #191926;
    --elevated-bg: #161622;
    --golden: #F9C23C;
    --golden-light: #FFE08A;
    --golden-dark: #B7791F;
    --emerald: #19D39A;
    --text-secondary: #C9C7D3;
    --text-muted: #8E8B9C;
    --border-color: rgba(255, 255, 255, .08);
    --shadow-soft: 0 18px 40px -16px rgba(0, 0, 0, .75);
    --shadow-gold: 0 18px 50px -14px rgba(249, 194, 60, .35);
    --gradient-golden: linear-gradient(135deg, #FFD97A 0%, #F9C23C 45%, #E8912D 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(7,7,11,0) 30%, rgba(7,7,11,.92) 100%);
}

html { color-scheme: dark; background: var(--primary-bg); }
body {
    background-color: var(--primary-bg);
    background-image:
        radial-gradient(1100px 620px at 85% -12%, rgba(249, 194, 60, .10), transparent 62%),
        radial-gradient(900px 560px at -8% 24%, rgba(25, 211, 154, .06), transparent 60%),
        radial-gradient(800px 500px at 50% 110%, rgba(232, 145, 45, .06), transparent 60%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}
::selection { background: var(--golden); color: #000; }
* { scrollbar-width: thin; scrollbar-color: #2a2a38 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2a2a38; border-radius: 10px; border: 2px solid var(--primary-bg); }

/* ---------- Header ---------- */
.site-header {
    background: rgba(7, 7, 11, .72) !important;
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--golden), transparent);
    opacity: .55;
    pointer-events: none;
}
.site-title-text, .site-branding a.site-title-text {
    background: linear-gradient(90deg, #ffffff 0%, var(--golden) 120%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    letter-spacing: -.02em;
    font-size: 1.35rem;
}
.site-branding img { max-height: 44px; width: auto; }
.primary-menu a, .mobile-menu a { font-weight: 600; letter-spacing: .01em; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { color: var(--golden); }

/* ---------- Buttons & shared ---------- */
.icon-btn, .action-btn, .round-play, .play-fab, .carousel-arrow {
    transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, background .25s, color .25s, border-color .25s;
}
.icon-btn:hover { transform: translateY(-1px); }
.round-play, .play-fab {
    background: var(--gradient-golden) !important;
    color: #000 !important;
    box-shadow: 0 10px 28px -6px rgba(249, 194, 60, .55);
    border: 0;
}
.round-play:hover, .play-fab:hover { transform: scale(1.08); box-shadow: 0 14px 36px -6px rgba(249, 194, 60, .75); }
.round-play svg, .play-fab svg { fill: currentColor; }

/* Section headings with a gold accent bar */
.section-title {
    position: relative;
    padding-left: 14px;
    letter-spacing: -.02em;
    font-size: clamp(1.25rem, 2.4vw, 1.6rem);
    font-weight: 800;
}
.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12%;
    bottom: 12%;
    width: 4px;
    border-radius: 4px;
    background: var(--gradient-golden);
}
.view-all { color: var(--text-muted); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Spotlight hero (homepage) ---------- */
.az-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1.5rem, 4vw, 3rem);
    min-height: clamp(360px, 46vw, 470px);
    margin: 0 0 2.2rem;
    padding: clamp(1.6rem, 4vw, 3.4rem);
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    background: #0c0c13;
    box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9);
}
.az-hero-backdrop {
    position: absolute;
    inset: -40px;
    z-index: -2;
    background-size: cover;
    background-position: center;
    filter: blur(44px) saturate(1.35) brightness(.5);
    transform: scale(1.12);
}
.az-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(7, 7, 11, .96) 12%, rgba(7, 7, 11, .6) 58%, rgba(7, 7, 11, .15) 100%),
        linear-gradient(0deg, rgba(7, 7, 11, .7), transparent 40%);
}
.az-hero-content { position: relative; max-width: 620px; }
.az-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .42rem .85rem;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--golden-light);
    background: rgba(249, 194, 60, .10);
    border: 1px solid rgba(249, 194, 60, .28);
}
.az-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 0 0 rgba(25, 211, 154, .7);
    animation: az-pulse 1.8s infinite;
}
@keyframes az-pulse {
    0% { box-shadow: 0 0 0 0 rgba(25, 211, 154, .6); }
    70% { box-shadow: 0 0 0 10px rgba(25, 211, 154, 0); }
    100% { box-shadow: 0 0 0 0 rgba(25, 211, 154, 0); }
}
.az-hero-title {
    margin: 1rem 0 .45rem;
    font-size: clamp(2.2rem, 6.2vw, 4.5rem);
    line-height: 1;
    letter-spacing: -.035em;
    font-weight: 900;
}
.az-hero-title a { color: #fff; }
.az-hero-title a:hover { color: var(--golden); }
.az-hero-artist {
    margin: 0 0 1.5rem;
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    font-weight: 500;
}
.az-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.az-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    height: 50px;
    padding: 0 1.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform .25s, box-shadow .25s, background .25s;
}
.az-btn svg { width: 20px; height: 20px; fill: currentColor; }
.az-btn-primary {
    background: var(--gradient-golden);
    color: #000;
    box-shadow: 0 12px 32px -8px rgba(249, 194, 60, .6);
}
.az-btn-primary:hover { transform: translateY(-2px); color: #000; box-shadow: 0 18px 40px -8px rgba(249, 194, 60, .8); }
.az-btn-ghost {
    background: rgba(255, 255, 255, .06);
    color: #fff;
    border-color: rgba(255, 255, 255, .18);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.az-btn-ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.az-eq {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 38px;
    margin-top: 1.8rem;
}
.az-eq span {
    width: 4px;
    height: 30%;
    border-radius: 3px;
    background: linear-gradient(to top, var(--golden), var(--emerald));
    animation: az-bar 1.1s ease-in-out infinite;
}
.az-eq span:nth-child(2n) { animation-duration: .8s; }
.az-eq span:nth-child(3n) { animation-duration: 1.4s; }
.az-eq span:nth-child(4n) { animation-delay: -.4s; }
.az-eq span:nth-child(5n) { animation-delay: -.7s; }
@keyframes az-bar {
    0%, 100% { height: 18%; }
    50% { height: 100%; }
}
.az-hero-art {
    position: relative;
    flex: 0 0 auto;
    width: clamp(190px, 25vw, 330px);
    aspect-ratio: 1 / 1;
    border-radius: 22px;
    overflow: hidden;
    transform: rotate(2.5deg);
    box-shadow: 0 50px 90px -24px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .12), 0 0 80px -20px rgba(249, 194, 60, .35);
    transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.az-hero:hover .az-hero-art { transform: rotate(0) scale(1.03); }
.az-hero-art img { width: 100%; height: 100%; object-fit: cover; }

@media (prefers-reduced-motion: no-preference) {
    .az-hero-content { animation: az-rise .8s cubic-bezier(.2, .8, .2, 1) both; }
    .az-hero-art { animation: az-float 7s ease-in-out infinite; }
}
@keyframes az-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}
@keyframes az-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -10px; }
}

/* ---------- Featured carousel ---------- */
.featured-card {
    border-radius: 20px !important;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .06);
    box-shadow: var(--shadow-soft);
}
.featured-card .card-media img { transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.featured-card:hover .card-media img { transform: scale(1.06); }
.card-kicker {
    color: var(--golden);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.carousel-arrow {
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.carousel-arrow:hover { background: var(--golden); color: #000; border-color: var(--golden); }

/* ---------- Track cards ---------- */
.track-card {
    position: relative;
    background: linear-gradient(180deg, var(--card-bg) 0%, #0e0e16 100%);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 18px;
    overflow: hidden;
    transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s, border-color .4s;
}
.track-card:hover {
    transform: translateY(-5px);
    border-color: rgba(249, 194, 60, .28);
    box-shadow: 0 26px 50px -18px rgba(0, 0, 0, .85), 0 0 0 1px rgba(249, 194, 60, .12), 0 16px 40px -18px rgba(249, 194, 60, .25);
}
.track-card .track-image { overflow: hidden; border-radius: 14px; }
.track-card .track-artwork { transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.track-card:hover .track-artwork { transform: scale(1.08); }
.track-title { font-weight: 700; letter-spacing: -.01em; }
.track-artist { color: var(--text-muted); }
.track-type {
    color: var(--golden);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.track-actions .round-play { opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s, box-shadow .25s; }
.track-card:hover .track-actions .round-play,
.track-card:focus-within .track-actions .round-play { opacity: 1; transform: none; }
.track-card .equalizer span { background: var(--golden); }
@media (hover: none) {
    .track-card .track-actions .round-play { opacity: 1; transform: none; }
}

/* Load more button */
.load-more-btn {
    background: transparent;
    border: 1px solid rgba(249, 194, 60, .45);
    color: var(--golden);
    border-radius: 999px;
    padding: .85rem 2rem;
    font-weight: 700;
    letter-spacing: .03em;
    transition: background .25s, color .25s, box-shadow .25s;
}
.load-more-btn:hover { background: var(--gradient-golden); color: #000; box-shadow: 0 12px 30px -10px rgba(249, 194, 60, .6); border-color: transparent; }

/* ---------- Sidebar ---------- */
.widget, .sidebar .card, .chart-card {
    background: rgba(18, 18, 27, .7);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 18px;
}

/* ---------- Single track: cinematic page ---------- */
.single-track-article { position: relative; isolation: isolate; }
.az-track-backdrop {
    position: absolute;
    top: -70px;
    left: -20px;
    right: -20px;
    height: 620px;
    z-index: -1;
    background-size: cover;
    background-position: center 30%;
    filter: blur(70px) saturate(1.5) brightness(.5);
    opacity: .55;
    -webkit-mask-image: linear-gradient(#000 0%, transparent 95%);
    mask-image: linear-gradient(#000 0%, transparent 95%);
    pointer-events: none;
}
.music-card {
    position: relative;
    padding: clamp(1.2rem, 3vw, 2.4rem);
    background: rgba(14, 14, 22, .55);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 28px;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9);
}
.music-hero { gap: clamp(1.4rem, 3.5vw, 2.8rem); }
.music-artwork {
    border-radius: 22px;
    box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .1), 0 0 90px -28px rgba(249, 194, 60, .45);
}
.music-title {
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -.03em;
    background: linear-gradient(180deg, #fff 30%, #d9d4e6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.music-artist { font-size: 1.1rem; color: var(--text-secondary); }
.music-artist strong { color: var(--golden); }
.music-meta span {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px;
    padding: .35rem .8rem;
    font-size: .82rem;
}
.music-actions { gap: .7rem; }
.music-actions .action-btn, .music-actions .play-btn-main {
    border-radius: 999px;
    min-height: 48px;
    padding: 0 1.3rem;
    font-weight: 700;
}
.play-btn-main.is-primary {
    background: var(--gradient-golden) !important;
    color: #000 !important;
    border: 0 !important;
    box-shadow: 0 14px 34px -10px rgba(249, 194, 60, .65);
}
.action-btn:not(.is-primary):not(.round-play) {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #fff;
}
.action-btn:not(.is-primary):not(.round-play):hover { border-color: var(--golden); color: var(--golden); }
.single-track-article .entry-content { color: var(--text-secondary); font-size: 1.02rem; line-height: 1.75; }
.single-track-article .entry-content h2,
.single-track-article .entry-content h3 { color: #fff; letter-spacing: -.02em; }
.single-track-article .entry-content a { color: var(--golden); text-decoration: underline; text-underline-offset: 3px; }
.single-track-article .entry-content blockquote {
    border-left: 3px solid var(--golden);
    background: rgba(249, 194, 60, .05);
    padding: 1rem 1.2rem;
    border-radius: 0 14px 14px 0;
}
.related-section .track-card, .related-tracks .track-card { min-width: 0; }

/* ---------- Fixed player ---------- */
.afromziki-player {
    background: rgba(9, 9, 15, .86) !important;
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    border-top: 1px solid rgba(255, 255, 255, .08) !important;
    box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .8);
}
.afromziki-player .player-thumb { border-radius: 12px; box-shadow: 0 8px 22px -8px rgba(249, 194, 60, .45); }
.afromziki-player input[type="range"] { accent-color: var(--golden); }

/* ---------- Footer ---------- */
.site-footer {
    position: relative;
    background: linear-gradient(180deg, #0b0b12 0%, #050508 100%) !important;
    border-top: 0 !important;
    margin-top: 3rem;
}
.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--golden), var(--emerald), transparent);
    opacity: .6;
}
.footer-brand { background: var(--gradient-golden); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Mobile polish ---------- */
@media (max-width: 720px) {
    .az-hero { flex-direction: column; align-items: flex-start; text-align: left; border-radius: 22px; }
    .az-hero-art { width: min(64vw, 260px); transform: none; align-self: center; }
    .az-hero::after { background: linear-gradient(180deg, rgba(7,7,11,.35), rgba(7,7,11,.96) 70%); }
    .az-eq { margin-top: 1rem; }
    .az-track-backdrop { height: 420px; }
    .music-title { font-size: clamp(1.8rem, 8vw, 2.4rem); }
}
@media (max-width: 480px) {
    .az-hero-actions .az-btn { flex: 1 1 auto; justify-content: center; }
}

/* =============================================================
   24. HOMEPAGE PREMIUM (stats, genres, latest grid, mobile)
   ============================================================= */

.az-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 1.25rem;
}
.az-section-head .section-title { margin: 0; }
.az-kicker {
    display: block;
    margin-bottom: .35rem;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--emerald);
}
.az-latest, .az-genres { margin-bottom: 3rem; }

.az-genre-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.az-genre {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 118px;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    overflow: hidden;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .08);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .35s;
}
.az-genre::before, .az-genre::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
}
.az-genre::after { background: linear-gradient(180deg, transparent 25%, rgba(7, 7, 11, .8)); }
.az-genre-0::before { background: linear-gradient(135deg, #9a6200 0%, #2a1a04 100%); }
.az-genre-1::before { background: linear-gradient(135deg, #0f7a5f 0%, #06241d 100%); }
.az-genre-2::before { background: linear-gradient(135deg, #9b3320 0%, #250b06 100%); }
.az-genre-3::before { background: linear-gradient(135deg, #4a3592 0%, #110c26 100%); }
.az-genre:hover, .az-genre:focus-visible {
    color: #fff;
    transform: translateY(-4px);
    border-color: rgba(249, 194, 60, .4);
    box-shadow: 0 22px 44px -18px rgba(0, 0, 0, .85);
}
.az-genre-name {
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    font-weight: 800;
    letter-spacing: -.01em;
}
.az-genre-count { font-size: .78rem; color: rgba(255, 255, 255, .72); }
.az-genre-arrow {
    position: absolute;
    top: .9rem;
    right: .9rem;
    width: 22px;
    height: 22px;
    fill: #fff;
    opacity: .5;
    transition: transform .3s, opacity .3s;
}
.az-genre:hover .az-genre-arrow { transform: translate(3px, -3px); opacity: 1; }

.az-latest .tracks-grid.grid {
    gap: 1.3rem;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

@media (max-width: 720px) {
    .az-genre-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .az-genre { min-height: 96px; padding: .85rem; border-radius: 14px; }
    .az-latest, .az-genres { margin-bottom: 2.2rem; }
    .az-section-head { margin-bottom: 1rem; }
    .az-section-head .view-all { white-space: nowrap; font-size: .75rem; }
    .az-latest .tracks-grid.grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px; }
    .az-latest .track-card .track-actions .round-play { opacity: 1; transform: none; }
}
@media (max-width: 380px) {
    .az-genre-count { font-size: .72rem; }
}


/* =============================================================
   25. SPOTLIGHT SLIDER + DOWNLOADS HIDDEN
   ============================================================= */
.az-slide { display: none; }
.az-slide.is-active { display: flex; }
@media (prefers-reduced-motion: no-preference) {
    .az-slide.is-active { animation: az-slide-in .9s cubic-bezier(.2, .8, .2, 1) both; }
}
@keyframes az-slide-in {
    from { opacity: 0; transform: translateX(42px); }
    to { opacity: 1; transform: none; }
}

/* Download links in post content are never shown. */
a[download], [download] {
    display: none !important;
}

/* Download buttons stay visible but reveal no link on hover or long press. */
.js-afromziki-download {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
}
audio::-internal-media-controls-download-button { display: none; }
audio::-webkit-media-controls-enclosure { overflow: hidden; }

/* =============================================================
   26. CENTRED FOOTER (menu, social icons, copyright)
   ============================================================= */
.footer-inner,
.footer-bottom {
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
}
.footer-inner nav,
.footer-inner .footer-social,
.footer-bottom .footer-copy,
.footer-bottom .footer-credit {
    width: 100%;
}
.footer-menu,
.footer-inner .footer-social {
    justify-content: center;
}
.footer-inner .footer-social { display: flex; }

/* =============================================================
   27. ARTISTS, ARTIST PAGE + TRACK-PAGE SPOTLIGHT BARS
   ============================================================= */
.az-artist-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.az-artist-tile {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 130px;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    overflow: hidden;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .08);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .35s;
}
.az-artist-tile::before,
.az-artist-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
}
.az-artist-tile::after { background: linear-gradient(180deg, transparent 25%, rgba(7, 7, 11, .8)); }
.az-artist-tile.az-genre-0::before { background: linear-gradient(135deg, #9a6200 0%, #2a1a04 100%); }
.az-artist-tile.az-genre-1::before { background: linear-gradient(135deg, #0f7a5f 0%, #06241d 100%); }
.az-artist-tile.az-genre-2::before { background: linear-gradient(135deg, #9b3320 0%, #250b06 100%); }
.az-artist-tile.az-genre-3::before { background: linear-gradient(135deg, #4a3592 0%, #110c26 100%); }
.az-artist-tile:hover,
.az-artist-tile:focus-visible {
    color: #fff;
    transform: translateY(-4px);
    border-color: rgba(249, 194, 60, .4);
    box-shadow: 0 22px 44px -18px rgba(0, 0, 0, .85);
}
.az-artist-initial {
    position: absolute;
    top: .4rem;
    right: .8rem;
    font-size: 3.6rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.04em;
    opacity: .22;
}
.az-artist-tile-name {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 800;
    letter-spacing: -.01em;
    overflow-wrap: anywhere;
}
.music-artist a { color: var(--golden); }

/* Artist page */
.az-artist-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-bottom: 2.4rem;
    padding: clamp(1.6rem, 4vw, 3rem);
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: #0c0c13;
}
.az-artist-hero-backdrop {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(700px 320px at 12% 0%, rgba(249, 194, 60, .22), transparent 60%),
        radial-gradient(600px 300px at 92% 100%, rgba(25, 211, 154, .14), transparent 60%);
}
.az-monogram {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    margin-bottom: 1rem;
    border-radius: 24px;
    background: var(--gradient-golden);
    color: #000;
    font-size: 2.4rem;
    font-weight: 900;
    box-shadow: 0 18px 40px -12px rgba(249, 194, 60, .55);
}
.az-artist-name {
    margin: .7rem 0 .4rem;
    font-size: clamp(2.2rem, 7vw, 4.4rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.035em;
}
.az-artist-meta { margin: 0 0 1.4rem; color: var(--text-secondary); }
.az-artist-section { margin-bottom: 2.6rem; }
.az-top-list { display: flex; flex-direction: column; gap: .6rem; }
.az-artist-pager { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.az-artist-pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 .8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .12);
    color: #fff;
    font-weight: 700;
}
.az-artist-pager .page-numbers.current { background: var(--gradient-golden); color: #000; border-color: transparent; }

/* Track page: spotlight bars (animate only while the track plays) */
.az-eq-track { margin: 0 0 1.2rem; }
.music-card:not(.is-playing) .az-eq-track span { animation-play-state: paused; }

@media (max-width: 720px) {
    .az-artist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .az-artist-tile { min-height: 104px; padding: .85rem; border-radius: 14px; }
    .az-artist-hero { border-radius: 22px; }
    .az-monogram { width: 66px; height: 66px; font-size: 1.9rem; border-radius: 18px; }
}

/* =============================================================
   28. FACEBOOK PAGE WIDGET (sidebar)
   ============================================================= */
.widget-facebook { margin-bottom: 1.5rem; }
.fb-card {
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: #0c0c13;
}
.fb-frame {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 214px;
    border: 0;
    color-scheme: normal;
}

/* =============================================================
   29. TEXT-ONLY ARTIST STRIP, GENRE LIST, ALL-ARTISTS / ALL-GENRES
   ============================================================= */
.az-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.az-view-all {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .55rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(249, 194, 60, .35);
    color: var(--golden, #f9c23c);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
    text-decoration: none;
    transition: background .25s, color .25s;
}
.az-view-all:hover,
.az-view-all:focus-visible { background: var(--gradient-golden); color: #000; border-color: transparent; }

/* Scrolling strip: one line, names move right to left */
.az-marquee {
    position: relative;
    overflow: hidden;
    margin: .4rem 0 0;
    padding: 1.1rem 0;
    border-top: 1px solid rgba(255, 255, 255, .07);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.az-marquee-track {
    display: flex;
    width: max-content;
    animation: az-marquee var(--az-speed, 40s) linear infinite;
    will-change: transform;
}
.az-marquee:hover .az-marquee-track,
.az-marquee:focus-within .az-marquee-track { animation-play-state: paused; }
.az-marquee-list {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin: 0;
    padding: 0 1.75rem 0 0;
    list-style: none;
}
.az-marquee-list li { display: flex; align-items: center; flex-shrink: 0; }
.az-marquee-item {
    padding: 0 1.75rem;
    color: #fff;
    font-size: clamp(1.2rem, 2.6vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    transition: color .2s;
}
.az-marquee-item:hover,
.az-marquee-item:focus-visible { color: var(--golden, #f9c23c); }
.az-sep {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    background: var(--golden, #f9c23c);
    transform: rotate(45deg);
    opacity: .75;
}
@keyframes az-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Text-only name lists (genres, all artists, all genres) */
.az-names {
    display: flex;
    flex-wrap: wrap;
    gap: 0 2.5rem;
    margin: 1.2rem 0 0;
    padding: 0;
    list-style: none;
}
.az-names li {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    padding: .7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.az-name {
    color: #fff;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    font-weight: 700;
    letter-spacing: -.01em;
    text-decoration: none;
    transition: color .2s;
}
.az-name:hover,
.az-name:focus-visible { color: var(--golden, #f9c23c); }
.az-name-count { color: var(--text-secondary, #9a9aa6); font-size: .8rem; white-space: nowrap; }
.az-names-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 2rem; }
.az-genre-names { gap: 0 2.5rem; }

.az-browse-head { margin-bottom: 1.5rem; }
.az-browse-head .section-title { margin: .5rem 0 0; }

@media (prefers-reduced-motion: reduce) {
    .az-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
    .az-marquee-track { animation: none; }
}
@media (max-width: 720px) {
    .az-marquee-item { padding: 0 1.1rem; }
    .az-marquee-list { padding-right: 1.1rem; }
    .az-names { gap: 0 1.5rem; }
    .az-names-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

/* =============================================================
   30. COLLABORATORS ("feat.") + ARTIST PAGE TWEAKS
   ============================================================= */
.artist-feat-label { color: var(--text-secondary, #9a9aa6); font-size: .9em; }
.artist-feat { font-weight: 600; }

/* =============================================================
   31. MOBILE SEARCH (toggle), MOBILE TAGS, FULL-WIDTH SPOTLIGHT BARS
   ============================================================= */
.az-eq { width: 100%; gap: 4px; }
.az-eq span { flex: 1 1 0; width: auto; min-width: 2px; }

@media (max-width: 720px) {
    .search-section.has-toggle { display: none; }
    .search-section.has-toggle.is-open { display: block; }
    .trending-tags:not(.is-mobile-on) { display: none; }
}

/* =============================================================
   32. LINKS IN CONTENT: emerald, underlined, so they stand out from text
   ============================================================= */
.entry-content a:not([class]),
.single-track-article .entry-content a:not([class]),
.music-card.entry-content a:not([class]),
.comment-content a,
.archive-description a,
.term-description a,
.widget_text a,
.music-description a,
.music-artist a,
.artist-link,
.artist-feat,
.rank-artist a,
.track-artist a {
    color: var(--emerald);
    text-decoration: none;
    transition: color .2s;
}
.entry-content a:not([class]):hover,
.single-track-article .entry-content a:not([class]):hover,
.music-card.entry-content a:not([class]):hover,
.comment-content a:hover,
.archive-description a:hover,
.term-description a:hover,
.widget_text a:hover,
.music-description a:hover,
.music-artist a:hover,
.artist-link:hover,
.artist-feat:hover,
.rank-artist a:hover,
.track-artist a:hover {
    color: #7af2c9;
}

/* =============================================================
   33. FOOTER PLAYER: long titles scroll right to left
   ============================================================= */
.player-title.is-scrolling,
.player-artist.is-scrolling { text-overflow: clip; }
.az-scroll-inner {
    display: inline-flex;
    white-space: nowrap;
    animation: az-scroll-x linear infinite;
    will-change: transform;
}
@keyframes az-scroll-x {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(-1 * var(--az-scroll-dist, 0px))); }
}
@media (prefers-reduced-motion: reduce) {
    .az-scroll-inner { animation: none; }
}

/* =============================================================
   34. EMERALD ACCENT: titles, names, tags and categories
   Section headings stay white for contrast.
   ============================================================= */
.track-title, .track-title a, .title-link,
.rank-title, .rank-title a,
.music-title, .az-hero-title a,
.widget-title,
.az-artist-name,
.az-name, .az-marquee-item,
.az-artist-tile-name, .az-genre-name {
    color: var(--emerald);
}
.track-title a:hover, .title-link:hover, .rank-title a:hover, .az-hero-title a:hover,
.az-name:hover, .az-marquee-item:hover {
    color: #7af2c9;
}

.post-tags a, .trending-tags a,
a[rel~="tag"], a[rel~="category"],
.entry-meta a, .track-type {
    color: var(--emerald);
}
.post-tags a, .trending-tags a, a[rel~="tag"] {
    border-color: rgba(25, 211, 154, .35);
}
.post-tags a:hover, .trending-tags a:hover, a[rel~="tag"]:hover, a[rel~="category"]:hover, .entry-meta a:hover {
    color: #7af2c9;
}
