/*
Theme Name: Guavva Music
Theme URI: https://guavva.example.com/
Author: King David
Author URI: https://guavva.example.com/
Description: Guavva Music is a premium dark-and-gold WordPress theme built for music streaming and download sites. It ships with a sticky playlist player, AJAX search, trending charts, a featured carousel, country/genre quick links, video support, SEO structured data and a full options panel.
Version: 2.3.1
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: guavva-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;
}

/* Light theme (toggled from the header switch) */
body.guavva-light {
    --primary-bg: #f6f6f4;
    --secondary-bg: #ffffff;
    --card-bg: #ffffff;
    --card-bg-hover: #fdf7e2;
    --elevated-bg: #ffffff;
    --text-primary: #14130f;
    --text-secondary: #4a4741;
    --text-muted: #7a756c;
    --border-color: #e4e0d6;
    --shadow-soft: 0 6px 24px rgba(0, 0, 0, .10);
    --gradient-overlay: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.6) 100%);
}

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

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

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,
.guavva-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, .guavva-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: guavva-spin .9s linear infinite; vertical-align: middle;
}
@keyframes guavva-spin { to { transform: rotate(360deg); } }
@keyframes guavva-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
   ============================================================= */
.guavva-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: guavva-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: guavva-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: guavva-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 guavva-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: guavva-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
   ============================================================= */
.guavva-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);
}
.guavva-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; }

/* =============================================================
   15. APP DOWNLOAD PAGE
   ============================================================= */
.app-hero { text-align: center; padding: 2.5rem 1rem 1rem; }
.app-hero img.app-icon { width: 104px; height: 104px; border-radius: 24px; margin: 0 auto 1rem; box-shadow: var(--shadow-soft); }
.app-hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: .4rem; }
.app-hero p.tagline { color: var(--text-muted); max-width: 620px; margin: 0 auto 1.4rem; }
.app-buttons { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.app-stats { display: flex; flex-wrap: wrap; gap: 1.8rem; justify-content: center; margin: 1.6rem 0; }
.app-stats .stat { text-align: center; }
.app-stats .stat b { display: block; font-size: 1.3rem; color: var(--golden); }
.app-stats .stat span { font-size: .78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .6px; }
.app-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin: 2rem 0; }
.app-feature { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--border-radius); padding: 1.2rem; text-align: center; }
.app-feature .icon { font-size: 1.8rem; display: block; margin-bottom: .5rem; }
.app-feature h3 { font-size: 1rem; margin-bottom: .3rem; }
.app-feature p { font-size: .85rem; color: var(--text-muted); margin: 0; }
.screenshots-strip { display: flex; gap: 1rem; overflow-x: auto; padding: .5rem .2rem 1.2rem; scroll-snap-type: x mandatory; }
.screenshots-strip img { width: 200px; border-radius: var(--border-radius); border: 1px solid var(--border-color); scroll-snap-align: center; flex: none; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.review-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--border-radius); padding: 1.1rem; }
.review-card .stars { color: var(--golden); font-size: .9rem; }
.review-card .who { font-weight: 700; margin: .35rem 0 .1rem; font-size: .92rem; }
.review-card .when { font-size: .75rem; color: var(--text-muted); }
.review-card p { font-size: .88rem; color: var(--text-secondary); margin: .5rem 0 0; }
.changelog-list { list-style: none; padding: 0; }
.changelog-list li { padding: .45rem 0 .45rem 1.4rem; position: relative; color: var(--text-secondary); font-size: .92rem; border-bottom: 1px solid var(--border-color); }
.changelog-list li::before { content: "✓"; position: absolute; left: 0; color: var(--golden); font-weight: 700; }
.app-cta { text-align: center; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--border-radius); padding: 2rem 1rem; margin: 2rem 0; }

/* =============================================================
   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; }
    .app-stats { gap: 1.1rem; }
}
@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, .guavva-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 */
.guavva-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-guavva-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
   guavva-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(.guavva-custom-actions) .music-actions .guavva-custom-action { display: none; }

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

/* Custom Play: dark with a gold outline - clearly distinct from the old
   default gold-filled play button. */
.music-actions .guavva-custom-play { background: var(--secondary-bg); color: var(--golden); box-shadow: inset 0 0 0 1.5px var(--golden); }
.music-actions .guavva-custom-play:hover { background: rgba(255, 215, 0, .12); box-shadow: inset 0 0 0 1.5px var(--golden); transform: translateY(-2px); }
.music-actions .guavva-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 .guavva-custom-download { background: var(--gradient-golden); color: #111; padding: .8rem 1.6rem; }
.music-actions .guavva-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; }
.guavva-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); }

/* App download page: SVG rating stars + feature icons. */
.app-stats b .guavva-svg-icon { width: 1em; height: 1em; color: var(--golden); vertical-align: -.08em; }
.app-feature .icon { color: var(--golden); }
.app-feature .icon svg { width: 34px; height: 34px; }
.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; }
