/* DEBUG: CSS_LOAD_VERIFY_42 */
/*
Theme Name: beautifulMention
Theme URI: https://example.com/beautifulmention
Author: Antigravity
Author URI: https://antigravity.google
Description: A premium WordPress Classic Theme for guitar chords, movies, and artists, featuring a stunning dark/light mode design, autoscroll, and transpose functionality.
Version: 1.0.0
Text Domain: beautifulmention
*/

/* Reset & Base Styles from Design (Simplified for style.css, full content to be enqueued or included) */
:root {
    --bg: #0c0d10;
    --bg2: #13141a;
    --bg3: #1a1c24;
    --card: #1e2029;
    --border: rgba(255, 255, 255, 0.07);
    --text: #f0eeea;
    --text2: #a09c96;
    --text3: #6b6760;
    --accent: #e8a040;
    --accent2: #d4863a;
    --accent-glow: rgba(232, 160, 64, 0.2);
    --green: #4cbb7a;
    --orange: #e8873a;
    --red: #e85050;
    --blue: #5090e8;
    --purple: #9070e0;
    --nav-h: 68px;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg: #faf8f5;
    --bg2: #f2efe9;
    --bg3: #e8e4dc;
    --card: #ffffff;
    --border: rgba(0, 0, 0, 0.08);
    --text: #1a1714;
    --text2: #5a5650;
    --text3: #8a8680;
    --accent: #c97820;
    --accent2: #a86018;
    --accent-glow: rgba(201, 120, 32, 0.15);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background var(--transition), color var(--transition);
}

img {
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg2);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

/* ---- NAV ---- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: rgba(12, 13, 16, 0.72);
    backdrop-filter: blur(32px) saturate(200%);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
    transform: translateZ(0);
    will-change: transform, backdrop-filter, background;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition), border-color var(--transition);
}

body.hero-video-active nav:not(.scrolled),
body.hero-header-active nav:not(.scrolled) {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom-color: transparent !important;
}

[data-theme="light"] nav {
    background: rgba(250, 248, 245, 0.72);
}

[data-theme="light"] body.hero-video-active nav:not(.scrolled),
[data-theme="light"] body.hero-header-active nav:not(.scrolled) {
    background: transparent !important;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    cursor: pointer;
    flex-shrink: 0;
}

.nav-logo span {
    color: var(--accent);
}

.logo-icon {
    width: 34px;
    height: 34px;
    background: var(--accent);
    border-radius: 50% 50% 50% 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    box-shadow: 0 0 20px var(--accent-glow);
}

/* ---- MEGA MENU ---- */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    height: 100%;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-trigger {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 13px;
    border-radius: 40px;
    font-size: 0.865rem;
    font-weight: 500;
    color: var(--text2);
    cursor: pointer;
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
    user-select: none;
}

.nav-trigger:hover,
.nav-item.open .nav-trigger,
.nav-trigger.active {
    color: var(--text);
    background-color: var(--bg3);
}

.nav-trigger .arrow {
    font-size: 0.6rem;
    opacity: 0.5;
    transition: transform var(--transition), opacity var(--transition);
    margin-top: 1px;
}

.nav-item.open .nav-trigger .arrow {
    transform: rotate(180deg);
    opacity: 1;
}

.nav-trigger.page-link {
    cursor: pointer;
}

/* ---- DROPDOWN PANEL ---- */
.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 2000;
    min-width: 220px;
}

.nav-item.open .dropdown {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.dropdown-inner {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
    overflow: hidden;
    padding: 10px;
}

[data-theme="light"] .dropdown-inner {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

/* STANDARD DROPDOWN */
.drop-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.drop-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
    text-decoration: none;
    color: var(--text2);
}

.drop-item:hover {
    background-color: var(--bg3);
    color: var(--text);
}

.drop-item:hover .drop-icon {
    transform: scale(1.15);
}

.drop-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: transform var(--transition);
}

.drop-label {
    font-size: 0.86rem;
    font-weight: 600;
}

.drop-sub {
    font-size: 0.73rem;
    color: var(--text3);
    margin-top: 1px;
}

.drop-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

.drop-view-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    cursor: pointer;
    transition: background var(--transition);
}

.drop-view-all:hover {
    background: var(--accent-glow);
}

/* MEGA DROPDOWN */
.dropdown.mega {
    min-width: 620px;
    left: 50%;
}

.mega-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.mega-col {
    padding: 6px;
}

.mega-col+.mega-col {
    border-left: 1px solid var(--border);
}

.mega-col-title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text3);
    padding: 6px 12px 10px;
    margin-bottom: 2px;
}

.mega-feature {
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 8px;
    cursor: pointer;
    transition: transform var(--transition);
}

.mega-feature:hover {
    transform: translateY(-2px);
}

.mega-feature-bg {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    position: relative;
}

.mega-feature-label {
    padding: 8px 10px;
    background: var(--bg2);
    font-size: 0.8rem;
    font-weight: 700;
}

.mega-feature-sub {
    font-size: 0.7rem;
    color: var(--text3);
}

/* MOODS DROPDOWN */
.dropdown.moods-drop {
    min-width: 420px;
}

.moods-grid-drop {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 4px;
}

.mood-drop-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 6px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: center;
    transition: background var(--transition), transform var(--transition);
    background: var(--bg2);
}

.mood-drop-chip:hover {
    background-color: var(--bg3);
    transform: translateY(-2px);
}

.mood-chip-emoji {
    font-size: 1.3rem;
}

.mood-chip-name {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text2);
}

.mood-chip-count {
    font-size: 0.65rem;
    color: var(--text3);
}

/* DECADES DROPDOWN */
.decades-drop-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 4px;
}

.decade-chip {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition);
}

.decade-chip:hover {
    transform: scale(1.05);
}

.decade-chip-bg {
    position: absolute;
    inset: 0;
}

.decade-chip-label {
    position: relative;
    z-index: 1;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--bg3);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: transform var(--transition), background var(--transition);
}

.theme-btn:hover {
    transform: rotate(20deg);
    background: var(--accent);
    color: #fff;
}

.nav-search-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--bg3);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text2);
    transition: all var(--transition);
}

.nav-search-btn:hover {
    background: var(--bg2);
    color: var(--text);
    border-color: var(--accent);
}

.nav-cta {
    padding: 9px 20px;
    background: var(--accent);
    color: #fff !important;
    border-radius: 40px;
    font-size: 0.86rem;
    font-weight: 600;
    transition: transform var(--transition), box-shadow var(--transition);
    white-space: nowrap;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

/* ---- MOBILE HAMBURGER ---- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--text2);
    border-radius: 2px;
    transition: all var(--transition);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    z-index: 900;
    overflow-y: auto;
    padding: 20px;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu.open {
    display: flex;
}

.mobile-section {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text3);
    padding: 16px 12px 6px;
}

.mobile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text2);
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.mobile-link:hover {
    background-color: var(--bg3);
    color: var(--text);
}

.mobile-link .ml-icon {
    font-size: 1.1rem;
}

@media (max-width: 900px) {
    nav {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-cta {
        display: none;
    }
}

/* ---- PAGES ---- */
.page {
    display: block !important;
    min-height: 100vh;
    padding-top: var(--nav-h);
}

.hero-video-active .page,
.hero-header-active .page {
    padding-top: 0;
}

/* ---- PAGINATION ---- */
.pagination-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
    padding: 40px 0;
    width: 100%;
}

.pagination-container .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 15px;
    border-radius: var(--radius-sm);
    background: var(--bg2);
    color: var(--text2);
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition);
    border: 1px solid var(--border);
}

.pagination-container .page-numbers:hover {
    background: var(--bg3);
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.pagination-container .page-numbers.current {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 5px 15px var(--accent-glow);
}

.pagination-container .page-numbers.dots {
    background: transparent;
    border: none;
    cursor: default;
    color: var(--text3);
}

.pagination-container .prev,
.pagination-container .next {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 20px;
}

/* ---- HOME HERO ---- */
.hero {
    height: auto;
    padding: 30px 0 60px;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--bg);
}

/* Adjust padding for video hero to clear the header */
.hero-has-video {
    padding-top: calc(var(--nav-h) + 10px);
    background: #000;
}

.hero-video-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(232, 160, 64, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 20% 80%, rgba(144, 112, 224, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 80% 20%, rgba(80, 144, 232, 0.06) 0%, transparent 60%);
    animation: pulse-bg 8s ease-in-out infinite alternate;
}

@keyframes pulse-bg {
    from {
        opacity: 0.7;
    }

    to {
        opacity: 1;
    }
}

.guitar-strings {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.string {
    position: absolute;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), var(--accent-glow), var(--border), transparent);
    transform-origin: left center;
    animation: string-vibrate 3s ease-in-out infinite;
}

.string:nth-child(1) {
    top: 30%;
    animation-delay: 0s;
    opacity: 0.4;
}

.string:nth-child(2) {
    top: 42%;
    animation-delay: 0.3s;
    opacity: 0.3;
}

.string:nth-child(3) {
    top: 54%;
    animation-delay: 0.6s;
    opacity: 0.5;
}

.string:nth-child(4) {
    top: 66%;
    animation-delay: 0.9s;
    opacity: 0.3;
}

.string:nth-child(5) {
    top: 78%;
    animation-delay: 1.2s;
    opacity: 0.4;
}

.string:nth-child(6) {
    top: 90%;
    animation-delay: 1.5s;
    opacity: 0.2;
}

@keyframes string-vibrate {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(2);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 960px;
    padding: 0 24px;
}

.hero-has-video .hero-content h1,
.hero-has-video .hero-content p {
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-has-video .hero-content p {
    opacity: 0.9;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 24px;
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: #fff;
    margin-bottom: 20px;
    animation: fade-up 0.8s ease both;
}

.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.8rem, 7vw, 5.2rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    animation: fade-up 0.8s ease 0.1s both;
}

.hero h1 em {
    font-style: italic;
    color: var(--accent);
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text2);
    line-height: 1.7;
    margin-bottom: 28px;
    animation: fade-up 0.8s ease 0.2s both;
}

.hero-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fade-up 0.8s ease 0.3s both;
}

.btn-primary {
    padding: 14px 32px;
    background: var(--accent);
    color: #fff;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-secondary {
    padding: 14px 32px;
    background-color: var(--bg3);
    color: var(--text);
    border-radius: 50px;
    border: 1px solid var(--border);
    font-size: 0.95rem;
    font-weight: 600;
    transition: transform var(--transition), border-color var(--transition);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.hero-has-video .hero-btns .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.hero-has-video .hero-btns .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hero-stats {
    position: relative;
    margin-top: 25px; /* Adjusted to account for padding-top */
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 24px;
    padding: 15px 24px 0; /* Added top padding for hover space */
    max-width: 1000px;
    width: 100%;
    overflow-x: auto;
    overflow-y: visible; /* Prevent vertical clipping */
    -ms-overflow-style: none;
    scrollbar-width: none;
    animation: fade-up 0.8s ease 0.4s both;
}

.hero-stats::-webkit-scrollbar {
    display: none;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    text-decoration: none !important;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero-stat:hover {
    transform: translateY(-5px);
    opacity: 0.8;
}

.hero-stat strong {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Cormorant Garamond', serif;
    color: #fff;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.hero-stat:hover strong {
    color: var(--accent);
}

.hero-has-video .hero-stat strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin: 0 auto 12px;
    background: transparent;
    backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1), 0 0 10px rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: #fff;
    font-size: 1.6rem;
    font-family: inherit;
    font-weight: 500;
    line-height: 1;
}

.hero-stat span {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text3);
}

.hero-has-video .hero-stat span {
    color: #fff;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .hero-stats {
        gap: 24px 32px;
        margin-top: 48px;
    }
    .hero-stat {
        min-width: 80px;
    }
    .hero-stat strong {
        font-size: 1.5rem;
    }
}

.hero-stat span {
    font-size: 0.75rem;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-up-centered {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ---- SECTIONS ---- */
.section {
    padding: 24px 40px;
    max-width: 1280px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .section {
        padding: 20px 20px;
    }
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 20px;
}

/* In-page Search */
.in-page-search-container {
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .in-page-search-container {
        padding: 0 20px;
    }
}

.search-form-inline {
    display: flex;
    gap: 10px;
    background: var(--bg2);
    padding: 8px;
    border-radius: 50px;
    border: 1px solid var(--border);
    max-width: 500px;
}

.search-input-inline {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 20px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
}

.search-input-inline:focus {
    outline: none;
}

.search-btn-inline {
    background: var(--accent);
    color: #fff;
    border: none;
    height: 48px;
    padding: 0 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.search-btn-inline:hover {
    transform: scale(1.05);
}

.search-results-info {
    margin-bottom: 20px;
    color: var(--text3);
    font-style: italic;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .in-page-search-container {
        padding: 0 20px;
    }
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.section-title span {
    color: var(--accent);
    font-style: italic;
    font-family: inherit;
}

.view-all {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    text-decoration: none;
    transition: opacity var(--transition);
}

.view-all:hover {
    opacity: 0.8;
}

/* ---- MOOD CARDS ---- */
.mood-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

@media (max-width: 600px) {
    .mood-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 12px;
        padding-bottom: 10px;
        margin-right: -20px;
        padding-right: 20px;
        scrollbar-width: none; /* Firefox */
    }
    .mood-grid::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    .mood-card {
        flex: 0 0 calc(50% - 16px);
        min-width: 140px;
        scroll-snap-align: start;
    }
}

.mood-card {
    aspect-ratio: 3/4;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}

.mood-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow);
}

.mood-bg {
    position: absolute;
    inset: 0;
}

.mood-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 60%);
    transition: opacity var(--transition);
}

.mood-card:hover .mood-overlay {
    opacity: 0.9;
}

.mood-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 16px;
}

.mood-name {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.mood-count {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.mood-emoji {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.mood-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: height var(--transition);
}

.mood-card:hover .mood-accent {
    height: 6px;
}

/* ---- ARTIST CARDS ---- */
.artist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

@media (max-width: 600px) {
    .artist-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding-bottom: 10px;
        margin-right: -20px;
        padding-right: 20px;
        scrollbar-width: none;
    }
    .artist-grid::-webkit-scrollbar {
        display: none;
    }
    .artist-card {
        flex: 0 0 calc(40% - 10px);
        min-width: 120px;
        scroll-snap-align: start;
    }
}

.artist-card {
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.artist-photo {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 12px;
    border: 3px solid var(--bg3);
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
    position: relative;
}

.artist-photo img,
.artist-big-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.artist-card:hover .artist-photo {
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: 0 0 0 6px var(--accent-glow);
}

.artist-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background-color: var(--bg3);
}

.artist-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.artist-genre {
    font-size: 0.75rem;
    color: var(--text3);
}

/* ---- MOVIE CARDS ---- */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

@media (max-width: 600px) {
    .movie-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 12px;
        padding-bottom: 10px;
        margin-right: -20px;
        padding-right: 20px;
        scrollbar-width: none;
    }
    .movie-grid::-webkit-scrollbar {
        display: none;
    }
    .movie-card {
        flex: 0 0 calc(50% - 16px);
        min-width: 140px;
        scroll-snap-align: start;
    }
}

.movie-card {
    aspect-ratio: 3/4;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    display: block;
    text-decoration: none;
}

.movie-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow);
}

.movie-bg {
    position: absolute;
    inset: 0;
}

.movie-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.movie-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 60%);
    transition: opacity var(--transition);
    z-index: 2;
}

.movie-card:hover .movie-overlay {
    opacity: 0.9;
}

.movie-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 16px;
    z-index: 3;
}

.movie-name {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.2;
}

.movie-meta {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.movie-date {
    color: rgba(255, 255, 255, 0.8);
}

.movie-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: height var(--transition);
    z-index: 4;
}

.movie-card:hover .movie-accent {
    height: 6px;
}

/* ---- DECADE CARDS ---- */
.decade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

@media (max-width: 600px) {
    .decade-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.decade-card {
    aspect-ratio: 16/9;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}

.decade-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: var(--shadow);
}

.decade-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.decade-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    transition: background var(--transition);
}

.decade-card:hover .decade-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.1));
}

.decade-info {
    position: absolute;
    inset: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.decade-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.decade-sub {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}

/* ---- BLOG CARDS ---- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

@media (max-width: 600px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.blog-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.blog-thumb {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.blog-thumb-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.blog-body {
    padding: 20px;
}

.blog-cat {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    background: var(--accent-glow);
    color: var(--accent);
    margin-bottom: 10px;
}

.blog-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
}

.blog-excerpt {
    font-size: 0.85rem;
    color: var(--text2);
    line-height: 1.6;
    margin-bottom: 14px;
}

.blog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-author {
    font-size: 0.78rem;
    color: var(--text3);
}

.blog-meta .blog-readtime {
    font-size: 0.75rem;
    color: var(--text3);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ---- BLOG DETAIL PAGE ---- */
.blog-detail-layout {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 40px;
}

.blog-detail-header {
    margin-bottom: 40px;
}

.blog-detail-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.15;
    margin: 12px 0 20px;
    color: var(--text);
}

.blog-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    color: var(--text3);
    font-size: 0.9rem;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.blog-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.blog-meta-label {
    opacity: 0.7;
    font-weight: 400;
}

.blog-meta-value {
    color: var(--text2);
    font-weight: 400;
}

.blog-meta-value a:hover {
    color: var(--accent);
}

.blog-category-badge {
    background: var(--bg3);
    color: var(--text2);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: inline-block;
}

.blog-detail-featured-image {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid var(--border);
    background: var(--bg2);
}

.blog-detail-featured-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

.blog-detail-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text2);
    max-width: 100%;
}

.blog-detail-content p {
    margin-bottom: 28px;
}

.blog-detail-content h2, .blog-detail-content h3 {
    color: var(--text);
    margin: 40px 0 20px;
    font-family: 'Cormorant Garamond', serif;
}

.blog-detail-content h2 { font-size: 2rem; }
.blog-detail-content h3 { font-size: 1.5rem; }

/* ---- SONGS LIST PAGE ---- */
.songs-page-layout {
    width: 100%;
    padding: 32px 40px;
    text-align: left !important;
}

@media (max-width: 768px) {
    .songs-page-layout {
        padding: 24px 20px;
    }
}

.songs-page-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.songs-count {
    font-size: 0.9rem;
    color: var(--text3);
    margin-bottom: 28px;
}

.filter-bar {
    margin-bottom: 28px;
}

.filter-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-input {
    flex: 1;
    min-width: 200px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color var(--transition);
    outline: none;
}

.filter-input:focus {
    border-color: var(--accent);
}

.filter-select {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text);
    font-size: 0.875rem;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    transition: border-color var(--transition);
}

.filter-select:focus {
    border-color: var(--accent);
}

.clear-filters {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text2);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition);
}

.clear-filters:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.letter-bar {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.letter-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--bg2);
    border: 1px solid var(--border);
    color: var(--text2);
    font-size: 0.8rem;
    font-weight: 600;
    transition: all var(--transition);
}

.letter-btn:hover,
.letter-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.tag-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag-btn {
    padding: 6px 14px;
    border-radius: 40px;
    background: var(--bg2);
    border: 1px solid var(--border);
    color: var(--text2);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all var(--transition);
}

.tag-btn:hover,
.tag-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 15px;
    transition: all 0.3s ease;
}

/* LIST VIEW MODE (MATCHES TOP SONGS UI) */
.songs-grid.songs-list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px 20px !important;
    counter-reset: song-rank var(--current-page-start, 0);
}

.songs-grid.songs-list .song-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 10px;
    border-radius: 12px;
    background: transparent;
    border-color: transparent;
    height: auto;
    box-shadow: none;
    counter-increment: song-rank;
    position: relative;
}

.songs-grid.songs-list .song-card:hover {
    background: var(--bg3);
    transform: scale(1.02);
    box-shadow: none;
    border-color: transparent;
}

/* Rank Number styling via CSS */
.songs-grid.songs-list .song-card::before {
    content: counter(song-rank);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text3);
    min-width: 24px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition);
}

.songs-grid.songs-list .song-card:hover::before {
    color: var(--accent);
}

/* Thumbnail styling */
.songs-grid.songs-list .song-thumb {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    flex-shrink: 0;
    margin-bottom: 0;
}

.songs-grid.songs-list .song-thumb-gradient,
.songs-grid.songs-list .song-thumb-emoji {
    border-radius: 6px;
}

/* Body (Title & Artist) */
.songs-grid.songs-list .song-body {
    padding: 0;
    display: block;
    flex: 1;
    overflow: hidden;
}

.songs-grid.songs-list .song-title {
    font-size: 1.05rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    margin-bottom: 2px;
    display: block;
}

/* Merge artist/movie visually */
.songs-grid.songs-list .song-artist {
    display: inline;
    font-size: 0.85rem;
    color: var(--text2);
    margin: 0;
}
.songs-grid.songs-list .song-artist a {
    color: var(--text2);
}
.songs-grid.songs-list .song-artist + .song-artist::before {
    content: ", ";
}

/* Hide tags in list view */
.songs-grid.songs-list .song-tags {
    display: none !important;
}

/* Action Dots */
.songs-grid.songs-list .song-card::after {
    content: url('data:image/svg+xml;utf8,<svg width="18" height="18" viewBox="0 0 24 24" fill="none" class="list-action-dots" stroke="rgba(255,255,255,0.4)" stroke-width="2"><circle cx="12" cy="5" r="1"/><circle cx="12" cy="12" r="1"/><circle cx="12" cy="19" r="1"/></svg>');
    opacity: 0;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    padding-left: 10px;
}
[data-theme="light"] .songs-grid.songs-list .song-card::after {
    content: url('data:image/svg+xml;utf8,<svg width="18" height="18" viewBox="0 0 24 24" fill="none" class="list-action-dots" stroke="rgba(0,0,0,0.4)" stroke-width="2"><circle cx="12" cy="5" r="1"/><circle cx="12" cy="12" r="1"/><circle cx="12" cy="19" r="1"/></svg>');
}
.songs-grid.songs-list .song-card:hover::after {
    opacity: 1;
}

/* VIEW TOGGLE UI */
.view-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    padding: 4px;
    background: var(--bg2);
    border-radius: 40px;
    border: 1px solid var(--border);
    margin-bottom: 14px;
}

.view-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text2);
    transition: all 0.2s;
    cursor: pointer;
}

.view-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    fill: none;
    stroke: currentColor;
}

.view-btn:hover {
    color: var(--text);
    background: var(--bg3);
}

.view-btn.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 10px var(--accent-glow);
}

@media (max-width: 900px) {
    .songs-grid.songs-list {
        grid-template-columns: 1fr !important;
    }
}
@media (max-width: 768px) {
    .songs-grid.songs-list .song-card {
        padding: 8px;
    }
}


.song-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.song-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.song-thumb {
    height: 100px;
    background-color: var(--bg3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    position: relative;
    overflow: hidden;
}




.song-thumb-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--bg3), var(--bg2));
}

.song-thumb-emoji {
    position: relative;
    z-index: 1;
}

/* removed play icon hover as per user request */

.song-body {
    padding: 10px 12px;
}

.song-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
    line-height: 1.3;
}

.song-artist {
    font-size: 0.75rem;
    color: var(--text2);
    margin-bottom: 6px;
}

.song-artist a {
    color: inherit;
    text-decoration: none;
}

.song-artist a:hover {
    color: var(--text1);
}

.song-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.song-tag {
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 0.55rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tag-diff-beg {
    background: rgba(76, 187, 122, 0.15);
    color: var(--green);
}

.tag-diff-int {
    background: rgba(232, 135, 58, 0.15);
    color: var(--orange);
}

.tag-diff-exp {
    background: rgba(232, 80, 80, 0.15);
    color: var(--red);
}

.tag-key {
    background: rgba(80, 144, 232, 0.15);
    color: var(--blue);
}

.tag-movie {
    background: rgba(144, 112, 224, 0.15);
    color: var(--purple);
}



/* List view styles removed - grid view only */





/* ---- YOUTUBE EMBED ---- */
.yt-embed-section {
    margin: 0 0 24px;
}

.yt-embed-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text3);
    margin-bottom: 10px;
}

.yt-embed-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 ratio */
    height: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #000;
    border: 1px solid var(--border);
}

.yt-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---- STRUMMING PATTERN ---- */

.strumming-section {
    display: none; /* Hide old section */
}

.strumming-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text3);
    margin-bottom: 12px;
}

.strumming-beats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.strumming-pill {
    display: flex;
    align-items: center;
    background: transparent !important;
}

.strumming-header-beats {
    display: flex;
    gap: 6px;
    align-items: center;
}

.strumming-beat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: monospace;
    letter-spacing: 0.05em;
}

.beat-down {
    background: rgba(255, 165, 0, 0.15);
    color: #f97316;
    border: 1px solid rgba(255, 165, 0, 0.3);
}

.beat-up {
    background: rgba(99, 179, 237, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(99, 179, 237, 0.3);
}

.beat-combo {
    background: rgba(167, 139, 250, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(167, 139, 250, 0.3);
}

.beat-neutral {
    background: var(--bg3);
    color: var(--text2);
    border: 1px solid var(--border);
}

/* ---- SONG DETAIL PAGE ---- */

.song-detail-layout {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px 32px; /* Top padding 0 to respect breadcrumb margin */
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text3);
    margin-top: 28px !important;
    margin-bottom: 24px;
}

.breadcrumb a {
    color: var(--accent);
}

.breadcrumb span {
    color: var(--text3);
}

.song-detail-header {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between;
    align-items: flex-start !important;
    gap: 40px;
    margin-bottom: 32px;
}

.song-detail-header-left {
    flex: 1;
}

.song-detail-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 8px;
}

.song-artist-movie-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    font-weight: 600;
}

.sb-bullet {
    width: 6px;
    height: 6px;
    background-color: #e8a040;
    border-radius: 50%;
    display: inline-block;
}

.sb-item a {
    color: #e8a040;
    text-decoration: none;
    transition: opacity 0.2s;
}

.sb-item a:hover {
    opacity: 0.8;
}

.sb-item.movie {
    color: #e8a040;
}

.song-meta-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.meta-pill {
    padding: 6px 16px;
    border-radius: 40px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    font-size: 0.85rem;
    font-weight: 500;
    color: #999;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.meta-pill.clickable,
.meta-pill.difficulty-pill,
.meta-pill.strum-pill {
    background: transparent;
    border-color: #e8a040 !important;
    color: #e8a040 !important;
    cursor: pointer;
}

.meta-pill.clickable:hover {
    background: rgba(232, 160, 64, 0.1);
    color: #fff !important;
}

.song-actions {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.header-yt-wrapper {
    width: 200px !important;
    min-width: 200px !important;
    max-width: 200px !important;
    aspect-ratio: 16/9;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
    background: var(--bg3);
    flex-shrink: 0;
}

.header-yt-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.yt-facade-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.yt-facade-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 35px;
    background: rgba(33, 33, 33, 0.85);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    pointer-events: none;
}

.yt-facade-play svg {
    fill: #fff;
    width: 22px;
    height: 22px;
}

.header-yt-wrapper:hover .yt-facade-play {
    background: #FF0000;
}

.action-btn {
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    background-color: var(--bg3);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.83rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition);
}

.action-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.action-btn.primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.action-btn.primary:hover {
    background: var(--accent2);
}

.capo-tabs {
    display: flex;
    gap: 12px;
    background: rgba(255,255,255,0.05);
    padding: 4px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.1);
    height: 44px; /* Standardize with right side */
    align-items: center;
}

.capo-tab {
    padding: 0 24px;
    height: 38px; /* Slightly smaller than outer for padding feel */
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text2);
    border: none;
    border-radius: 40px;
    transition: all var(--transition);
    cursor: pointer;
    display: flex;
    align-items: center;
    background: transparent;
    margin: 0;
}

.capo-tab.active {
    background: #e8a040;
    color: #000;
    box-shadow: 0 4px 15px rgba(232, 160, 64, 0.3);
}

.capo-tab:not(.active):hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.capo-tab .capo-fret-pill {
    background: rgb(255 255 255 / 0%);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-left: 0;
    color: #e8873a;
    border: 1px solid #e8a040;
    line-height: normal;
}
.capo-tab.active .capo-fret-pill {
    background: rgba(0,0,0,0.15);
    color: inherit;
    border-color: transparent;
}

/* NEW MERGED ROW STYLES (STICKY) */
.sd-tabs-actions-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    background: var(--bg);
    padding: 12px 0;
    position: sticky;
    top: var(--nav-h);
    z-index: 1000;
}

.sd-action-group-1, 
.sd-action-group-2 {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    height: 48px !important;
    padding: 0 !important;
    margin: 0 !important;
    vertical-align: middle !important;
    gap: 20px;
}

.capo-tabs {
    display: flex;
    gap: 8px;
    background: rgba(255,255,255,0.05);
    padding: 4px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.1);
    height: 48px; 
    align-items: center;
    box-sizing: border-box;
    align-self: center !important;
}

.sd-autoscroll-inline {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* PDF PILL STYLE */
.action-btn-pill {
    background: var(--bg3);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 0 22px;
    height: 40px; 
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0 !important;
    align-self: center !important;
}

.action-btn-pill:hover {
    background: var(--bg2);
    border-color: var(--accent);
    color: var(--accent);
}

.sd-pdf-icon {
    background: #2d89ef;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.sd-autoscroll-toggle {
    background: var(--bg3);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 0 24px;
    height: 40px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 140px;
    margin: 0 !important;
    align-self: center !important;
}

.sd-autoscroll-toggle .sd-icon {
    font-size: 1.1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.sd-autoscroll-toggle:hover {
    background: var(--bg2);
    border-color: var(--accent);
    color: var(--accent);
}

.sd-autoscroll-toggle.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.sd-speed-controls {
    display: flex;
    align-items: center;
    background: var(--bg3);
    padding: 0 6px 0 16px;
    height: 40px;
    border-radius: 40px;
    gap: 12px;
    border: 1px solid var(--border);
    color: var(--text);
    margin: 0;
}

.sd-speed-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text2);
}

.speed-pills {
    display: flex;
    gap: 4px;
    align-items: center;
}

.speed-pill {
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    border-radius: 40px;
    border: none;
    background: transparent;
    color: var(--text2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
    transition: all 0.2s;
    font-family: inherit;
}

.speed-pill:hover {
    background: var(--bg2);
    color: var(--text);
}

.speed-pill.active {
    background: var(--accent);
    color: #fff;
}

.capo-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.capo-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    background: var(--accent-glow);
    border: 1px solid rgba(232, 160, 64, 0.3);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.chord-diagrams {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 28px;
}

.chord-diagram {
    flex-shrink: 0;
    text-align: center;
    cursor: pointer;
    transition: transform var(--transition);
}

.chord-diagram:hover {
    transform: translateY(-3px);
}

.chord-box {
    width: 250px;
    height: 125px;
    border-radius: var(--radius-sm);
    background: var(--card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
}

.chord-box img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
}

.chord-grid-placeholder {
    font-size: 1.5rem;
    opacity: 0.3;
}


.chord-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text2);
    margin-top: 8px;
}

.autoscroll-bar {
    position: sticky;
    top: calc(var(--nav-h) + 8px);
    z-index: 100;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.autoscroll-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text2);
}

.speed-btns {
    display: flex;
    gap: 6px;
}

.speed-btn {
    padding: 5px 12px;
    border-radius: 40px;
    font-size: 0.78rem;
    font-weight: 600;
    background-color: var(--bg3);
    border: 1px solid var(--border);
    color: var(--text2);
    transition: all var(--transition);
}

.speed-btn.active,
.speed-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.autoscroll-toggle {
    margin-left: auto;
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 0.82rem;
    font-weight: 600;
    background-color: var(--bg3);
    border: 1px solid var(--border);
    color: var(--text);
    transition: all var(--transition);
}

.autoscroll-toggle.on {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}

.lyrics-area {
    font-family: 'Outfit', sans-serif;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Paragraphs generated by wpautop inside lyrics — keep compact stanza spacing */
.lyrics-area p,
.lyrics-area pre,
.lyrics-area div,
.lyrics-version {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem; /* Increased for better readability */
    line-height: 1.8;
    margin: 0 0 0.25rem 0;
    white-space: normal;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    color: var(--text);
}

@media (max-width: 768px) {
    .lyrics-version {
        font-size: 1.05rem;
    }
    .sd-tabs-actions-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding-bottom: 10px;
    }
    .sd-tabs-actions-right {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }
}

.lyrics-area p:last-child {
    margin-bottom: 0;
}

.lyrics-area strong,
.lyrics-area b {
    font-weight: 700;
}

.lyrics-area em,
.lyrics-area i {
    font-style: italic;
}

.song-section {
    margin-bottom: 32px;
}

.section-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text3);
    margin-bottom: 14px;
    padding: 4px 10px;
    background-color: var(--bg3);
    border-radius: 4px;
    display: inline-block;
}

.lyric-line {
    margin-bottom: 14px;
}

.chord-row {
    display: flex;
    flex-wrap: wrap;
    min-height: 22px;
    margin-bottom: 2px;
}

.chord-marker {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent);
    margin-right: 18px;
    letter-spacing: 0.02em;
}

.inline-chord {
    font-weight: 700;
    color: #e8873a;
}

.lyric-text {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.5;
}

.transpose-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.transpose-label {
    font-size: 0.82rem;
    color: var(--text3);
}

.transpose-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--bg3);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.transpose-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.transpose-key {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
    min-width: 36px;
    text-align: center;
}

/* ---- ARTISTS PAGE ---- */
.page-layout {
    width: 100%;
    padding: 32px 40px;
    text-align: left !important;
}

.page-hero {
    text-align: center;
    padding: 12px 24px 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}

.page-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-hero p {
    color: var(--text2);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ---- STANDARD PAGE CONTENT ---- */
.entry-content {
    font-family: inherit;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

.entry-content p {
    margin-bottom: 24px;
}

.entry-content h2, 
.entry-content h3, 
.entry-content h4 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--accent);
    margin: 48px 0 16px;
    line-height: 1.2;
    font-weight: 700;
}

.entry-content h2 { font-size: 2.2rem; }
.entry-content h3 { font-size: 1.8rem; }
.entry-content h4 { font-size: 1.4rem; }

.entry-content ul, 
.entry-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.entry-content li {
    margin-bottom: 12px;
}

.entry-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 600;
    transition: color var(--transition);
}

.entry-content a:hover {
    color: var(--accent2);
}

.entry-content blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 20px;
    margin-left: 0;
    font-style: italic;
    color: var(--text2);
}

.artists-big-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

.artist-big-card {
    cursor: pointer;
    text-align: center;
    transition: transform var(--transition);
}

.artist-big-card:hover {
    transform: translateY(-6px);
}

.artist-big-photo {
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--bg3);
    margin: 0 auto 14px;
    max-width: 140px;
    transition: border-color var(--transition), box-shadow var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: var(--card);
}

.artist-big-card:hover .artist-big-photo {
    border-color: var(--accent);
    box-shadow: 0 0 0 8px var(--accent-glow);
}

.artist-big-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.artist-big-genre {
    font-size: 0.78rem;
    color: var(--text3);
}

.artist-songs-count {
    font-size: 0.78rem;
    color: var(--accent);
    margin-top: 4px;
    font-weight: 600;
}

/* ---- MOVIES PAGE ---- */
.movies-big-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
}

.movie-big-card {
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}

.movie-big-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.movie-big-poster {
    aspect-ratio: 2/3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
}

.movie-poster-color {
    position: absolute;
    inset: 0;
}

.movie-big-info {
    padding: 12px 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
}

.movie-type-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.type-tab {
    padding: 8px 20px;
    border-radius: 40px;
    background-color: var(--bg3);
    border: 1px solid var(--border);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text2);
    transition: all var(--transition);
    cursor: pointer;
}

.type-tab.active,
.type-tab:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ---- BLOG PAGE ---- */
.blog-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.blog-featured:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.blog-featured-thumb {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    background-color: var(--bg3);
    position: relative;
}

.blog-featured-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-featured-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
}

.blog-featured-excerpt {
    font-size: 0.92rem;
    color: var(--text2);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* ---- FOOTER ---- */
footer {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 60px 40px 30px;
    margin-top: 60px;
}

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

.footer-brand p {
    color: var(--text3);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-top: 14px;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text2);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col li a {
    font-size: 0.88rem;
    color: var(--text3);
    transition: color var(--transition);
}

.footer-col li a:hover {
    color: var(--accent);
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.footer-copy {
    font-size: 0.82rem;
    color: var(--text3);
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg3);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text3);
    transition: all var(--transition);
}

.social-link:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* ---- MODALS ---- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 1.5);
    padding: 32px;
    max-width: 440px;
    width: 90%;
    transform: scale(0.9);
    transition: transform var(--transition);
    text-align: center;
}

.modal-overlay.open .modal {
    transform: scale(1);
}

.modal h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.modal p {
    color: var(--text2);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal-chord-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 3px;
    width: 180px;
    height: 150px;
    margin: 0 auto 20px;
}

.mcell {
    background: var(--bg2);
    border-radius: 2px;
}

.mcell.dot {
    background: var(--accent);
    border-radius: 50%;
}

.modal-close {
    padding: 10px 28px;
    border-radius: 40px;
    background-color: var(--bg3);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition);
}

.modal-close:hover {
    background: var(--accent);
    color: #fff;
}

/* ---- ANNOUNCEMENT ---- */
.announcement-bar {
    background: var(--accent);
    color: #fff;
    text-align: center;
    padding: 10px 20px;
    font-size: 0.82rem;
    font-weight: 600;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    transform: translateY(0);
    transition: transform var(--transition);
}

.announcement-bar.hidden {
    transform: translateY(-100%);
}

/* ---- BACK BUTTON ---- */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text3);
    padding: 8px 0;
    margin-bottom: 16px;
    transition: color var(--transition);
    cursor: pointer;
}

.back-btn:hover {
    color: var(--accent);
}

/* ---- GLOBAL SEARCH OVERLAY ---- */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 17, 26, 0.98);
    z-index: 9999;
    padding: 60px 40px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-close {
    position: absolute;
    top: 40px;
    right: 40px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.search-overlay-close:hover {
    transform: rotate(90deg);
    color: var(--accent);
}

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

.search-overlay-header {
    position: relative;
    margin-bottom: 50px;
}

.search-overlay-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border);
    font-size: 2.5rem;
    font-family: 'Cormorant Garamond', serif;
    color: #fff;
    padding: 20px 0;
    transition: border-color 0.3s ease;
}

.search-overlay-input:focus {
    outline: none;
    border-color: var(--accent);
}

.search-overlay-loader {
    position: absolute;
    right: 0;
    bottom: 30px;
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: searchSpin 0.8s linear infinite;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.search-overlay-loader.active {
    opacity: 1;
}

@keyframes searchSpin {
    to {
        transform: rotate(360deg);
    }
}

.search-overlay-results {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 20px;
}

.search-result-section {
    margin-bottom: 40px;
}

.search-section-title {
    font-size: 0.8rem;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 5px;
}

.search-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 10px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.search-result-item:hover {
    background: rgba(255, 107, 0, 0.1);
    transform: translateX(5px);
}

.search-item-title {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 500;
}

.search-item-pill {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.color-song {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.color-movie {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.color-decade {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
}

.color-mood {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.color-post {
    background: rgba(155, 89, 182, 0.2);
    color: #9b59b6;
}

.search-no-results {
    color: var(--text3);
    font-style: italic;
    text-align: center;
    padding: 40px 0;
}


@media (max-width: 768px) {
    .search-overlay {
        padding: 40px 20px;
    }

    .search-overlay-input {
        font-size: 1.5rem;
    }
}

/* ---- A-Z LETTER FILTER ---- */
.az-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 16px 0 24px;
}

.az-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text2);
    background: var(--bg3);
    border: 1px solid var(--border);
    transition: all 0.15s ease;
    cursor: pointer;
}

.az-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.az-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ---- MOVIE GRID ---- */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.movie-card {
    background: var(--card);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    border-color: var(--accent);
}

.movie-poster {
    position: relative;
    width: 100%;
    padding-bottom: 140%;
    background: var(--bg3);
    overflow: hidden;
}

.movie-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-poster>span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
}

.movie-poster-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.movie-song-count {
    position: absolute;
    bottom: 8px;
    right: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 8px;
    border-radius: 20px;
}

.movie-info {
    padding: 10px 12px 14px;
}

.movie-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text1);
    margin: 0 0 4px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-year {
    font-size: 0.78rem;
    color: var(--text3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    .az-filter-bar {
        gap: 4px;
        padding: 0;
    }

    .az-btn {
        min-width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
}

/* ---- RELATED SONGS SIDEBAR ---- */
.song-content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 30px;
}

.lyrics-area {
    flex: 1;
    min-width: 0;
}

.song-related-sidebar {
    width: 320px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    position: sticky;
    top: calc(var(--nav-h) + 80px);
}

.song-related-sidebar h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.related-songs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-song-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background var(--transition);
}

.related-song-item:hover {
    background: var(--bg3);
}

.related-song-info {
    flex: 1;
}

.related-song-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}

.related-song-artist {
    font-size: 0.78rem;
    color: var(--text3);
}

.related-song-movie {
    font-size: 0.75rem;
    color: var(--accent);
    font-style: italic;
}

@media (max-width: 991px) {
    .song-content-wrapper {
        flex-direction: column;
    }
    .song-related-sidebar {
        width: 100%;
        position: static;
        margin-top: 40px;
    }
}

/* ---- FILTERS & SELECTS ---- */
.filter-bar {
    margin-bottom: 32px;
}

.filter-row {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.filter-main-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.filter-main-row .filter-input {
    flex: 1;
    max-width: 400px;
}

.filter-sheet {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-sheet-header, 
.mobile-filter-btn,
.filter-sheet .search-btn,
.filter-sheet .clear-filters {
    display: none;
}

.filter-input, .filter-select {
    height: 48px;
    padding: 0 16px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.filter-select {
    min-width: 140px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255, 255, 255, 0.5)' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    padding-right: 40px;
}

[data-theme="light"] .filter-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(0, 0, 0, 0.4)' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.filter-input:focus, .filter-select:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg2);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.view-toggle {
    display: flex;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 4px;
    gap: 4px;
}

.view-btn {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text3);
    transition: all 0.2s;
}

.view-btn.active {
    background: var(--accent);
    color: #fff;
}

.view-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 2;
}

/* ============================================================
   COMPREHENSIVE MOBILE RESPONSIVENESS
   Breakpoint: Mobile → max-width: 768px
   ============================================================ */

@media (max-width: 768px) {

    .sd-tabs-actions-row {
        flex-direction: column !important;
        height: auto !important;
        gap: 12px !important;
        padding: 12px 5px !important;
        align-items: center !important;
    }

    .sd-action-group-1 {
        width: 100% !important;
        height: auto !important;
        justify-content: center !important;
        gap: 8px !important;
        flex-wrap: nowrap !important; /* Force one line as requested */
    }

    .sd-action-group-2 {
        width: 100% !important;
        height: auto !important;
        justify-content: center !important;
        margin-top: 4px !important;
    }

    .capo-tabs {
        height: 40px !important;
        padding: 2px !important;
    }

    .capo-tab {
        padding: 0 10px !important;
        height: 34px !important;
        font-size: 0.8rem !important;
    }

    .capo-fret-pill {
        padding: 1px 6px !important;
        font-size: 0.65rem !important;
        margin-left: 5px !important;
    }

    .action-btn-pill {
        height: 38px !important;
        padding: 0 12px !important;
        font-size: 0.8rem !important;
        gap: 8px !important;
    }

    .sd-pdf-text {
        display: none !important;
    }
    
    /* Reveal text on slightly larger mobile if space permits */
    @media (min-width: 400px) {
        .capo-tab { padding: 0 15px !important; font-size: 0.85rem !important; }
    }

    .sd-autoscroll-inline {
        justify-content: center !important;
        width: 100% !important;
        gap: 10px !important;
    }

    .sd-autoscroll-toggle {
        height: 38px !important;
        padding: 0 15px !important;
        font-size: 0.85rem !important;
        min-width: 120px !important;
    }

    .sd-speed-controls {
        height: 38px !important;
        gap: 5px !important;
    }

    .filter-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
    }

    .filter-main-row {
        flex: 1 !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        min-width: 0 !important;
    }

    .filter-input {
        flex: 1 !important;
        min-width: 0 !important;
        height: 44px !important;
        font-size: 0.9rem !important;
    }

    .mobile-filter-btn {
        width: 44px !important;
        height: 44px !important;
        flex-shrink: 0 !important;
    }

    .view-toggle {
        display: flex !important;
        gap: 4px !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }

    .view-btn {
        width: 38px !important;
        height: 38px !important;
    }

    .filter-select:not(.per-page-select) { 
        display: none !important; 
    }

    .hero-stats {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 15px !important;
        margin-top: 30px !important;
        padding: 0 20px !important;
    }

    .hero-stat {
        flex: 0 0 25% !important; /* 3 per row approx */
        min-width: 80px !important;
        padding: 10px !important;
    }

    .hero-stat strong {
        font-size: 1.4rem !important;
    }

    .hero-stat span {
        font-size: 0.65rem !important;
    }

    .filter-sheet {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        background: var(--bg);
        border-top: 1px solid var(--border);
        border-radius: 24px 24px 0 0;
        padding: 24px 20px 40px;
        z-index: 2000;
        transform: translateY(105%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        flex-direction: column;
        gap: 20px;
        max-height: 80vh;
        overflow-y: auto;
    }

    .filter-sheet.open {
        transform: translateY(0);
    }

    .filter-sheet-header, 
    .mobile-filter-btn,
    .filter-sheet .search-btn,
    .filter-sheet .clear-filters {
        display: flex;
    }

    .filter-sheet .filter-select {
        display: block !important;
        width: 100%;
    }

    .mobile-filter-btn {
        width: 48px;
        height: 48px;
        background: var(--accent);
        color: #fff;
        border-radius: 10px;
        border: none;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        flex-shrink: 0;
    }

    .filter-sheet-title {
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--text);
    }
    .filter-sheet-close {
        font-size: 1.5rem;
        background: none;
        border: none;
        color: var(--text3);
        cursor: pointer;
    }
    .filter-sheet-body {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    .filter-sheet .filter-select {
        display: block !important;
        width: 100% !important;
        height: 54px;
        font-size: 1rem;
    }
    .filter-sheet .search-btn {
        width: 100%;
        height: 54px;
        margin: 0;
        margin-top: 8px;
    }
    .filter-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.7);
        backdrop-filter: blur(4px);
        z-index: 1999;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    .filter-overlay.open {
        opacity: 1;
        pointer-events: all;
    }
    .letter-bar { gap: 3px; }
    .letter-btn { width: 28px; height: 28px; font-size: 0.7rem; }

    /* ---- ARTISTS / MOVIES PAGE ---- */
    .page-layout { padding: 20px 16px; }
    .page-hero { padding: 28px 16px; }
    .page-hero h1 { font-size: 2rem; }
    .artists-big-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 16px; }
    .movies-big-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }

    /* ---- MOOD GRID ---- */
    .mood-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }

    /* ---- SONG DETAIL ---- */
    .song-detail-layout { padding: 0 16px 32px; }
    .song-detail-header { display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
    .song-detail-title { font-size: 1.6rem; }
    .song-meta-pills { flex-wrap: wrap; gap: 6px; }
    .capo-tabs { flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; }
    .capo-tab { font-size: 0.8rem; padding: 8px 14px; }
    .chord-diagrams { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; }
    .autoscroll-bar { flex-wrap: wrap; gap: 8px; padding: 10px 12px; }
    .song-actions { flex-direction: column; width: 100%; align-items: stretch; }
    .header-yt-wrapper { height: auto; width: 100%; aspect-ratio: 16/9; }
    .action-btn { width: 100%; justify-content: center; }
    .lyrics-area { font-size: 0.85rem; }

    /* ---- BLOG ---- */
    .blog-grid { grid-template-columns: 1fr; gap: 16px; }
    .blog-featured { grid-template-columns: 1fr; }
    .blog-featured-body { padding: 20px; }
    .single-blog-layout, .blog-listing-layout { padding: 20px 16px; max-width: 100%; }

    /* ---- FOOTER ---- */
    footer { padding: 18px 16px 12px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 16px; row-gap: 20px; }
    .footer-brand { grid-column: 1 / -1; margin-bottom: 0; }
    .footer-brand p { display: none; }
    .footer-col h4 { margin-bottom: 8px; font-size: 0.9rem; }
    .footer-col ul li { margin-bottom: 4px; font-size: 0.82rem; }
    .footer-bottom { margin-top: 20px; padding-top: 12px; flex-direction: column; gap: 8px; text-align: center; }

    /* ---- HOME PAGE MOBILE CAROUSELS ---- */
    #page-home .songs-grid, 
    #page-home .artist-grid, 
    #page-home .movie-grid, 
    #page-home .decade-grid, 
    #page-home .mood-grid, 
    #page-home .blog-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        padding-bottom: 12px;
        margin-right: -16px;
        padding-right: 16px;
        scrollbar-width: none;
    }
    
    #page-home .songs-grid::-webkit-scrollbar,
    #page-home .artist-grid::-webkit-scrollbar,
    #page-home .movie-grid::-webkit-scrollbar,
    #page-home .decade-grid::-webkit-scrollbar,
    #page-home .mood-grid::-webkit-scrollbar,
    #page-home .blog-grid::-webkit-scrollbar {
        display: none;
    }

    #page-home .artist-card, 
    #page-home .decade-card {
        flex: 0 0 22vw;
        min-width: 75px;
        scroll-snap-align: start;
    }
    
    #page-home .song-card, 
    #page-home .movie-card, 
    #page-home .mood-card {
        flex: 0 0 28vw;
        min-width: 90px;
        scroll-snap-align: start;
        aspect-ratio: 1;
        display: flex;
        flex-direction: column;
    }
    
    #page-home .blog-card {
        flex: 0 0 45vw;
        scroll-snap-align: start;
    }
    
    #page-home .song-title, 
    #page-home .movie-title {
        font-size: 0.75rem;
    }
    #page-home .blog-title {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    #page-home .song-artist, 
    #page-home .movie-year {
        font-size: 0.65rem;
    }
    #page-home .song-tag {
        font-size: 0.55rem;
        padding: 2px 4px;
    }
    #page-home .blog-cat {
        font-size: 0.55rem;
        padding: 2px 6px;
        margin-bottom: 6px;
    }
    #page-home .blog-cat a {
        font-size: inherit;
        text-decoration: none;
        color: inherit;
    }
    #page-home .blog-excerpt {
        font-size: 0.75rem;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 4px;
    }
    #page-home .artist-name, 
    #page-home .decade-label, 
    #page-home .mood-name {
        font-size: 0.75rem;
    }
    #page-home .mood-count,
    #page-home .decade-sub {
        font-size: 0.65rem;
    }
    #page-home .movie-poster-bg { font-size: 2rem; }
    #page-home .song-thumb-emoji { font-size: 1.5rem; }
    #page-home .artist-avatar { font-size: 1.5rem; }

    #page-home .blog-thumb {
        height: auto;
        aspect-ratio: 16/9;
    }
    #page-home .song-thumb,
    #page-home .movie-poster {
        height: auto;
        aspect-ratio: auto;
        flex: 1;
        min-height: 0;
    }
    #page-home .artist-photo {
        margin: 0 auto 6px;
    }
    #page-home .song-body,
    #page-home .movie-info,
    #page-home .decade-info,
    #page-home .mood-info,
    #page-home .blog-body {
        padding: 6px 8px;
    }
    #page-home .movie-song-count {
        font-size: 0.65rem;
        bottom: 4px;
    }

    /* ---- HOME PAGE HEADERS STANDARDIZATION ---- */
    #page-home .section-header {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        margin-bottom: 20px !important;
    }

    #page-home .section-title {
        font-size: 1.4rem !important;
        letter-spacing: -0.01em;
    }

    #page-home .section-title span {
        font-size: 1.35rem !important;
    }

    #page-home .view-all {
        font-size: 0.72rem !important;
        font-weight: 800 !important;
        padding: 5px 0;
    }

    /* ---- SEARCH OVERLAY MOBILE ---- */
    .search-overlay {
        padding: 80px 20px 40px;
    }
    .search-overlay-close {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    .search-overlay-input {
        font-size: 1.5rem;
        padding: 10px 0;
    }
    .search-overlay-header {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {

    /* ---- NAV ---- */
    .logo-text { font-size: 1rem; }

    /* ---- HERO ---- */
    .hero h1 { font-size: 1.65rem; }
    .guitar-strings { display: none; }

    /* ---- GRIDS ---- */
    .songs-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .artists-big-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .movies-big-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .song-card-title { font-size: 0.78rem; }
    .song-card-artist { font-size: 0.7rem; }

    /* ---- SONG DETAIL ---- */
    .breadcrumb { font-size: 0.75rem; }
    .song-detail-title { font-size: 1.3rem; }
    .chord-diagrams { grid-template-columns: repeat(3, 1fr); }
    .yt-embed-wrapper iframe { height: 180px; }
    .song-content-wrapper { flex-direction: column; }
    .song-related-sidebar { width: 100%; position: static; margin-top: 32px; }

    /* ---- FOOTER ---- */
    footer { padding: 12px 16px 8px; }
    .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 12px; row-gap: 16px; }
    .footer-brand { margin-bottom: -4px; }
    .footer-col h4 { margin-bottom: 4px; font-size: 0.85rem; }
    .footer-col ul li { margin-bottom: 2px; font-size: 0.78rem; }
    .footer-bottom { margin-top: 12px; padding-top: 8px; gap: 6px; }
    .social-links { gap: 12px; }
    .social-link { font-size: 1.1rem; }

    /* ---- SEARCH OVERLAY SMALL MOBILE ---- */
    .search-overlay-input {
        font-size: 1.2rem;
    }
    .search-overlay-close {
        top: 15px;
        right: 15px;
    }
}

/* ---- CAPO FRET PILL ---- */
.capo-fret-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    margin-left: 6px;
    background: var(--accent-glow);
    color: var(--accent);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.05em;
    border: 1px solid var(--accent);
}

/* ---- TOP SONGS (5x5 GRID) ---- */
.top-songs-columns {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.top-songs-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.top-song-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: background var(--transition), transform 0.2s;
    user-select: none;
    position: relative;
    background: transparent;
}

.top-song-item:hover {
    background: var(--bg3);
    transform: scale(1.02);
}

.ts-rank {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text3);
    min-width: 24px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-song-item:hover .ts-rank {
    color: var(--accent);
}

.ts-thumb {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg3);
}

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

.ts-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

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

.ts-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.ts-meta {
    font-size: 0.78rem;
    color: var(--text3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ts-action {
    color: var(--text3);
    opacity: 0.2;
    transition: opacity 0.2s;
    margin-left: auto;
}

.top-song-item:hover .ts-action {
    opacity: 1;
}

@media (max-width: 1100px) {
    .top-songs-columns {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .top-songs-section .section-header {
        align-items: center;
    }
    .top-songs-columns {
        display: flex;
        overflow-x: auto;
        padding-bottom: 20px;
        scroll-snap-type: x mandatory;
        gap: 20px;
        margin-right: -40px;
        padding-right: 40px;
    }
    .top-songs-columns::-webkit-scrollbar {
        display: none;
    }
    .top-songs-column {
        min-width: 300px;
        max-width: 100%;
        scroll-snap-align: start;
        flex-shrink: 0;
    }
}

/* ---- PREMIUM NAVIGATION & DROPDOWNS ---- */
.pagination-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 60px auto 40px;
    padding: 30px 0;
    border-top: 1px solid var(--border);
    width: 100%;
}

.pagination-main-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    width: 100%;
    flex-wrap: wrap;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-controls .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--bg2);
    color: var(--text2);
    text-decoration: none !important;
    transition: all var(--transition);
    border: 1px solid var(--border);
    font-weight: 500;
}

.pagination-controls .page-numbers:hover:not(.disabled):not(.dots) {
    background: var(--bg3);
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.pagination-controls .page-numbers.current {
    background: #e1f0ff;
    color: #1a73e8;
    font-weight: 700;
    border-color: #cce4ff;
}

.pagination-controls .disabled {
    opacity: 0.3;
    pointer-events: none;
}

.pagination-per-page {
    display: flex;
    align-items: center;
}

.pagination-per-page .filter-select {
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    background: var(--bg2);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
}

.pagination-info {
    color: var(--text3);
    font-size: 0.88rem;
    font-weight: 500;
}

@media (max-width: 600px) {
    .pagination-main-row {
        gap: 12px;
        flex-wrap: nowrap;
    }
    .pagination-controls .page-numbers {
        min-width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }
    .pagination-per-page .filter-select {
        height: 34px;
        font-size: 0.8rem;
    }
}

/* ============================================================
   LYRICS SMART TEXT COLOR — DARK / LIGHT MODE ADAPTATION
   If text is set to black in the editor, show it as:
   - Black in Light Mode  [data-theme="light"]
   - White in Dark Mode   (default :root — no attribute)
   ============================================================ */

/* Dark mode (default): invert black inline-styled text to white */
#lyrics-no-capo span[style*="color:#000000"],
#lyrics-no-capo span[style*="color: #000000"],
#lyrics-no-capo span[style*="color:#000"],
#lyrics-no-capo span[style*="color: #000"],
#lyrics-no-capo span[style*="color:black"],
#lyrics-no-capo span[style*="color: black"],
#lyrics-no-capo span[style*="color:rgb(0, 0, 0)"],
#lyrics-no-capo span[style*="color: rgb(0, 0, 0)"],
#lyrics-with-capo span[style*="color:#000000"],
#lyrics-with-capo span[style*="color: #000000"],
#lyrics-with-capo span[style*="color:#000"],
#lyrics-with-capo span[style*="color: #000"],
#lyrics-with-capo span[style*="color:black"],
#lyrics-with-capo span[style*="color: black"],
#lyrics-with-capo span[style*="color:rgb(0, 0, 0)"],
#lyrics-with-capo span[style*="color: rgb(0, 0, 0)"] {
    color: #ffffff !important;
}

/* Light mode: restore black text as black */
[data-theme="light"] #lyrics-no-capo span[style*="color:#000000"],
[data-theme="light"] #lyrics-no-capo span[style*="color: #000000"],
[data-theme="light"] #lyrics-no-capo span[style*="color:#000"],
[data-theme="light"] #lyrics-no-capo span[style*="color: #000"],
[data-theme="light"] #lyrics-no-capo span[style*="color:black"],
[data-theme="light"] #lyrics-no-capo span[style*="color: black"],
[data-theme="light"] #lyrics-no-capo span[style*="color:rgb(0, 0, 0)"],
[data-theme="light"] #lyrics-no-capo span[style*="color: rgb(0, 0, 0)"],
[data-theme="light"] #lyrics-with-capo span[style*="color:#000000"],
[data-theme="light"] #lyrics-with-capo span[style*="color: #000000"],
[data-theme="light"] #lyrics-with-capo span[style*="color:#000"],
[data-theme="light"] #lyrics-with-capo span[style*="color: #000"],
[data-theme="light"] #lyrics-with-capo span[style*="color:black"],
[data-theme="light"] #lyrics-with-capo span[style*="color: black"],
[data-theme="light"] #lyrics-with-capo span[style*="color:rgb(0, 0, 0)"],
[data-theme="light"] #lyrics-with-capo span[style*="color: rgb(0, 0, 0)"] {
    color: #000000 !important;
}

/* Ensure lyrics text defaults to theme's text color */
#lyrics-no-capo, #lyrics-with-capo {
    color: var(--text);
}

/* ---- SONG DETAIL REFINEMENTS ---- */
.meta-pill.strumming-pill {
    border: none;
    padding-left: 0;
    gap: 12px;
    background: transparent;
    display: flex;
    align-items: center;
}

.strumming-label {
    font-size: 0.72rem;
    color: var(--text3);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.strumming-header-beats {
    display: flex;
    gap: 6px;
}

.strumming-beat {
    min-width: 32px;
    padding: 3px 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    border-radius: 4px;
    background: var(--bg3);
    color: var(--text2);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.strumming-beat.beat-down {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(232, 160, 64, 0.05);
}

.strumming-beat.beat-up {
    border-color: var(--blue);
    color: var(--blue);
    background: rgba(80, 144, 232, 0.05);
}

.strumming-beat.beat-combo {
    border-color: var(--purple);
    color: var(--purple);
    background: rgba(144, 112, 224, 0.05);
}

/* CAPO TABS SWITCHER */
.capo-tabs {
    display: inline-flex;
    background: var(--bg2);
    padding: 5px;
    border-radius: 50px;
    margin-bottom: 0px;
    border: 1px solid var(--border);
    gap: 5px;
}

.capo-tab {
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.capo-tab:hover {
    color: var(--text);
    background: var(--bg3);
}

.capo-tab.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.capo-tab .capo-fret-pill {
    background: rgb(255 255 255 / 0%);
    color: #e8873a;
    border-color: #e8a040;
    margin-left: 0;
}

.capo-tab.active .capo-fret-pill {
    background: rgba(0, 0, 0, 0.15);
    border-color: transparent;
    color: inherit;
}

/* LYRICS VERSIONS */
.lyrics-version {
    animation: fadeInLyrics 0.4s ease forwards;
}

@keyframes fadeInLyrics {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   LYRICS STRUCTURE — Verse Blocks, Chord Lines, Lyric Lines
   Chord sits tight above its lyric line.
   Verse blocks have clear separation between them.
   ============================================================ */

/* Container for a verse/chorus section */
.verse-block {
    margin-bottom: 1.8em;  /* Generous gap between verse blocks */
}
.verse-block:last-child {
    margin-bottom: 0;
}

/* A chord + lyric grouped tightly together */
.chord-lyric-pair {
    margin-bottom: 0.15em; /* Very tight gap before next chord-lyric pair */
}
.chord-lyric-pair:last-child {
    margin-bottom: 0;
}

/* The chord row */
.chord-line {
    font-size: 0.9em;
    line-height: 1.3;
    margin-bottom: 1px;    /* Almost no space — chord sits directly above lyric */
    white-space: pre;      /* Preserve spacing so chords align over lyrics */
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 0.02em;
}

/* The lyric row */
.lyric-line {
    line-height: 1.5;
    white-space: pre-wrap; /* Preserve spacing in lyrics too */
    margin-bottom: 0;
}

/* Standalone chord line (no lyric below it in this pair) */
.chord-line.standalone {
    margin-bottom: 0.1em;
}

/* Inline chord spans — accent color, bold */
.inline-chord {
    color: var(--accent);
    font-weight: 700;
    display: inline;
}

[data-theme="light"] .inline-chord {
    color: var(--accent);
}

/* ============================================================
   ABOUT THIS SONG — Section below lyrics
   ============================================================ */

.song-about-section {
    margin-top: 32px !important;
    margin-bottom: 0 !important;
    padding: 28px 32px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}

.song-about-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
    border-radius: var(--radius) 0 0 var(--radius);
}

.song-about-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    cursor: pointer;
    user-select: none;
}

.song-about-arrow {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text3);
    transition: transform 0.3s ease;
    display: inline-block;
    flex-shrink: 0;
}

.song-about-body {
    transition: max-height 0.4s ease;
    overflow: hidden;
    font-family: 'Outfit', sans-serif;
    font-size: 1em !important;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text2);
}

.song-about-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.song-about-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text);
    margin: 0;
    letter-spacing: -0.01em;
}

.song-about-body p {
    margin: 0 0 1em 0;
    font-size: 1em !important;
}

.song-about-body p:last-child {
    margin-bottom: 0;
}

.song-about-body ul,
.song-about-body ol {
    margin: 0 0 1em 1.4em;
    padding: 0;
}

.song-about-body li {
    margin-bottom: 0.4em;
}

.song-about-body strong,
.song-about-body b {
    color: var(--text);
    font-weight: 600;
}

.song-about-body a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.song-about-body a:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .song-about-section {
        padding: 20px 18px;
        margin-top: 24px !important;
    }
    .song-about-title {
        font-size: 1.25rem;
    }
    .song-about-body {
        font-size: 0.92rem;
    }
}
