/* ==========================================================================
   BGM Finder Online — Production Stylesheet (BUILD ARTIFACT)
   --------------------------------------------------------------------------
   DO NOT EDIT THIS FILE DIRECTLY.
   This file is auto-generated by build_css.py from source files in static/css/.
   To make styling changes, edit the relevant module under static/css/ and run:
       python build_css.py
   ========================================================================== */



/* ============================================================
   BGM Finder Online — Apple Liquid Glass Design System
   Aesthetic Architecture: Ambient Glass Azure Mesh, Frosted Liquid Glass & Tactile Depth
   ============================================================ */

/* Self-Hosted Fast Variable Web Font (0 Network Latency, Zero FOUT Flash) */
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('fonts/plus-jakarta-sans-latin-400.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* Color Palette — Apple Light Base */
    --bg-base: #f4f6fb;
    --bg-surface: #ffffff;
    --bg-input: rgba(235, 240, 250, 0.7);
    
    /* Liquid Glass Material Surfaces (Backdrop Blur + Specular Refraction) */
    --glass-surface: rgba(255, 255, 255, 0.82);
    --glass-surface-hover: rgba(255, 255, 255, 0.94);
    --glass-pill: rgba(255, 255, 255, 0.88);
    --glass-pill-hover: rgba(255, 255, 255, 0.98);
    --glass-subtle: rgba(240, 244, 252, 0.75);
    
    /* Borderless Architecture (Zero Harsh Lines, Pure Ambient Blend) */
    --glass-border: transparent;
    --glass-border-dark: transparent;
    --glass-border-pill: transparent;
    --border-hairline: rgba(0, 0, 0, 0.05);
    --border-medium: rgba(0, 0, 0, 0.08);

    /* Apple Signature Glass Azure Palette */
    --accent-azure: #0071e3;
    --accent-azure-hover: #0077ed;
    --accent-azure-subtle: rgba(0, 113, 227, 0.08);
    --accent-azure-border: rgba(0, 113, 227, 0.22);
    --accent-azure-glow: rgba(0, 113, 227, 0.18);
    --accent-azure-gradient: linear-gradient(135deg, #0071e3 0%, #38bdf8 100%);
    --accent-shazam: #0088ff;

    /* Typographic Scale */
    --text-primary: #1d1d1f;
    --text-secondary: #515154;
    --text-tertiary: #75757a;
    --text-muted: #8e8e93;

    /* Boosted Ambient Glass Specular Drop Shadows (Deep Soft Floating Depth) */
    --shadow-liquid-card: 
        0 28px 72px -10px rgba(0, 36, 100, 0.16),
        0 12px 30px -4px rgba(0, 0, 0, 0.05),
        0 4px 10px rgba(0, 36, 100, 0.03),
        inset 0 1.5px 2.5px 0 rgba(255, 255, 255, 0.98);

    --shadow-liquid-pill: 
        0 10px 28px -2px rgba(0, 36, 100, 0.13),
        0 3px 8px rgba(0, 0, 0, 0.04),
        inset 0 1.5px 2px 0 rgba(255, 255, 255, 0.98);

    --shadow-liquid-hover: 
        0 36px 88px -10px rgba(0, 48, 120, 0.22),
        0 16px 36px -4px rgba(0, 0, 0, 0.07),
        0 6px 14px rgba(0, 48, 120, 0.05),
        inset 0 1.5px 2.5px 0 rgba(255, 255, 255, 1);

    --shadow-cta-black: 
        inset 0 1px 1.5px rgba(255, 255, 255, 0.45),
        0 14px 36px rgba(0, 0, 0, 0.28);
    --shadow-azure-glow: 0 10px 32px rgba(0, 113, 227, 0.38);

    /* Geometric Radii */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 26px;
    --radius-pill: 9999px;
    --radius-full: 9999px;

    /* Motion Curves & Glass Blur */
    --glass-blur: blur(28px) saturate(190%);
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
    --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.18s var(--ease-apple);
    --transition-normal: all 0.28s var(--ease-apple);
}

/* ============================================================
   Global Reset & Foundations
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
    line-height: 1.5;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-overflow-scrolling: touch;
}

svg {
    display: block;
    max-width: 100%;
    max-height: 100%;
    flex-shrink: 0;
}

input, button, textarea, select {
    font: inherit;
    color: inherit;
    border: none;
    outline: none;
    background: transparent;
}

button {
    cursor: pointer;
    user-select: none;
}

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

/* ============================================================
   Atmospheric Ambient Backdrops (GPU-Optimized Liquid Glass Azure Mesh)
   ============================================================ */
.bg-scene {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #f0f4fc 0%, #f6f8fd 40%, #f4f6fb 100%);
    transform: translate3d(0, 0, 0);
    contain: strict;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    opacity: 0.75;
    transform: translateZ(0);
}

.orb-primary {
    top: -15%;
    left: 45%;
    transform: translate3d(-50%, 0, 0);
    width: 720px;
    height: 480px;
    background: radial-gradient(circle closest-side, rgba(0, 113, 227, 0.16) 0%, rgba(56, 189, 248, 0.08) 60%, transparent 100%);
    filter: blur(40px);
    animation: ambientFloat1 24s ease-in-out infinite alternate;
}

.orb-secondary {
    bottom: -15%;
    right: -10%;
    width: 620px;
    height: 480px;
    background: radial-gradient(circle closest-side, rgba(56, 189, 248, 0.14) 0%, rgba(14, 165, 233, 0.05) 60%, transparent 100%);
    filter: blur(40px);
    animation: ambientFloat2 28s ease-in-out infinite alternate;
}

.orb-tertiary {
    top: 35%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle closest-side, rgba(0, 113, 227, 0.10) 0%, rgba(59, 130, 246, 0.03) 60%, transparent 100%);
    filter: blur(40px);
    animation: ambientFloat3 32s ease-in-out infinite alternate;
}

.orb-quaternary {
    display: none;
}

@keyframes ambientFloat1 {
    0% { transform: translate3d(-50%, 0, 0) scale(1); }
    50% { transform: translate3d(-46%, 20px, 0) scale(1.04); }
    100% { transform: translate3d(-52%, -15px, 0) scale(0.97); }
}

@keyframes ambientFloat2 {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-20px, -15px, 0) scale(1.05); }
    100% { transform: translate3d(12px, 12px, 0) scale(0.96); }
}

@keyframes ambientFloat3 {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(15px, -20px, 0) scale(1.03); }
    100% { transform: translate3d(-12px, 15px, 0) scale(0.97); }
}

/* ============================================================
   App Viewport Architecture
   ============================================================ */
/* Desktop 3-Column Screen Layout with Floating Side Ad Gutters */
.desktop-screen-layout {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 32px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
    position: relative;
    z-index: 1;
}

/* Side Ad Gutters (Visible on Desktop >= 1200px) */
.desktop-ad-gutter {
    width: 300px;
    min-width: 300px;
    max-width: 300px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 24px;
}

.desktop-gutter-sticky {
    position: sticky;
    top: 24px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.ad-unit-skyscraper {
    width: 100%;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card-ambient);
    padding: 8px;
    box-sizing: border-box;
    overflow: hidden;
}

@media (min-width: 1200px) {
    .desktop-ad-gutter {
        display: flex;
    }
}

.app-viewport {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 660px;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 16px 0 36px;
    margin: 0 auto;
    flex: 1 1 660px;
}

.app-viewport.subpage-viewport {
    max-width: 720px;
}

/* Top Navigation Bar / Header Actions */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0 24px;
    width: 100%;
}

.brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    border-radius: var(--radius-pill);
    background: var(--glass-pill);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: none;
    box-shadow: var(--shadow-liquid-pill);
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.brand-pill:hover {
    background: var(--glass-pill-hover);
    transform: translateY(-1px);
    color: var(--text-primary);
}

.brand-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-azure);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.brand-logo-icon svg {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    stroke: currentColor;
    display: block;
}

.top-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.header-lang-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 10px;
    border-radius: var(--radius-pill);
    background: var(--glass-pill);
    box-shadow: var(--shadow-liquid-pill);
    transition: var(--transition-fast);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    vertical-align: middle;
}

.header-lang-pill:hover {
    background: var(--glass-pill-hover);
}

.header-lang-pill svg {
    width: 13px !important;
    height: 13px !important;
    min-width: 13px !important;
    max-width: 13px !important;
    stroke: var(--text-secondary);
    display: block;
    margin: 0;
    flex-shrink: 0 !important;
    vertical-align: middle;
}

.header-lang-select {
    display: inline-flex;
    align-items: center;
    height: 100%;
    line-height: 1;
    margin: 0;
    padding: 0 16px 0 0;
    vertical-align: middle;
    background: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238e8e93' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 2px center;
    background-size: 10px 6px;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.header-lang-select option {
    background: #1c1c1e;
    color: #ffffff;
}

.header-support-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border-radius: var(--radius-pill);
    background: var(--glass-pill);
    box-shadow: var(--shadow-liquid-pill);
    border: none;
    color: var(--accent-azure);
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    white-space: nowrap;
}

.header-support-pill svg {
    width: 13px !important;
    height: 13px !important;
    max-width: 13px !important;
    max-height: 13px !important;
    fill: currentColor;
    display: block;
    flex-shrink: 0 !important;
}

.header-support-pill:hover {
    background: var(--glass-pill-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 113, 227, 0.2);
}

.header-theme-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius-pill);
    background: var(--glass-pill);
    box-shadow: var(--shadow-liquid-pill);
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    white-space: nowrap;
}

.header-theme-pill svg {
    width: 14px !important;
    height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
    stroke: currentColor;
    display: block;
    flex-shrink: 0 !important;
}

.header-theme-pill:hover {
    background: var(--glass-pill-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 113, 227, 0.2);
    color: var(--accent-azure);
}


.brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 22px;
    background: var(--glass-pill);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: none;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-liquid-pill);
    transition: var(--transition-fast);
    cursor: pointer;
    user-select: none;
    position: relative;
    z-index: 10;
}

.brand-pill:hover {
    background: var(--glass-pill-hover);
    transform: translateY(-1.5px);
    box-shadow: 0 12px 32px -2px rgba(0, 113, 227, 0.20), inset 0 1.5px 2px #ffffff;
}

.brand-pill:active,
.btn-browse:active,
.btn-cancel:active {
    transform: scale(0.97) translateY(1px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.brand-logo-icon,
.shazam-logo-icon,
.floating-feedback-icon {
    width: 22px;
    height: 22px;
    color: var(--accent-azure);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-logo-icon svg,
.shazam-logo-icon svg,
.floating-feedback-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.brand-title {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--text-primary);
    line-height: 1;
}

/* Main Content Area */
.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.view-panel {
    width: 100%;
    transition: opacity 0.28s var(--ease-apple), transform 0.28s var(--ease-apple);
}

.view-active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.view-hidden {
    display: none !important;
}

/* ============================================================
   Server Offline / Maintenance Status Banner (Apple Liquid Glass)
   ============================================================ */
.server-status-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 20px 6px 8px;
    margin: 0 auto 24px auto;
    max-width: 580px;
    width: calc(100% - 24px);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.92);
    border: none;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 12px 32px -4px rgba(0, 36, 100, 0.10), 0 3px 8px rgba(0, 0, 0, 0.04), inset 0 1.5px 2px #ffffff;
    animation: bannerFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes bannerFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.status-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    text-align: left;
    line-height: 1.45;
    letter-spacing: -0.01em;
}

.status-icon-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.16) 0%, rgba(56, 189, 248, 0.12) 100%);
    color: var(--accent-azure);
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
}

.status-icon-badge svg {
    width: 17px;
    height: 17px;
    stroke: var(--accent-azure);
}




/* ============================================================
   App Footer & Toast
   ============================================================ */
.app-footer {
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    border-top: 1px solid rgba(0, 48, 120, 0.06);
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.8125rem;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: var(--glass-pill);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-primary);
    background: var(--glass-pill-hover);
    transform: translateY(-1px);
}

.footer-dot {
    display: none;
}

.feedback-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #1d1d1f;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-pill);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 10px 22px;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    z-index: 10000;
    animation: toast-in 0.25s var(--ease-apple);
}

@keyframes toast-in {
    from { transform: translateX(-50%) translateY(20px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* ============================================================
   Mobile Floating Liquid Glass Bottom Navigation Dock
   ============================================================ */
.mobile-bottom-dock {
    display: none;
    position: fixed;
    bottom: max(12px, env(safe-area-inset-bottom, 12px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: calc(100% - 32px);
    max-width: 370px;
    pointer-events: none;
}

.dock-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    justify-items: center;
    padding: 4px 10px;
    background: rgba(18, 18, 22, 0.92);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9999px !important;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65), 0 2px 10px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
    overflow: hidden;
}

[data-theme="light"] .dock-container {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16), 0 2px 10px rgba(0, 0, 0, 0.08);
}

.dock-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 5px 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 9999px !important;
    position: relative;
    width: 100%;
    max-width: 105px;
    box-sizing: border-box;
}

.dock-tab:hover {
    color: var(--text-primary);
}

.dock-tab.dock-active {
    color: var(--accent-azure);
}

.dock-tab.dock-active .dock-icon svg {
    stroke: var(--accent-azure);
    filter: drop-shadow(0 0 6px rgba(0, 113, 227, 0.5));
}

.dock-tab .dock-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-align: center;
}

.dock-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    stroke: currentColor;
    transition: stroke 0.2s ease, transform 0.2s ease;
}

/* Visually Primary Hero Search Center Action Pill */
.dock-hero-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 24px;
    background: linear-gradient(135deg, #0071e3 0%, #38bdf8 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 9999px !important;
    box-shadow: 0 4px 18px rgba(0, 113, 227, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.45);
    transform: translateY(-2px);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
    flex-shrink: 0;
    min-width: 80px;
    box-sizing: border-box;
}

.dock-hero-btn .dock-hero-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.1;
    white-space: nowrap;
    text-align: center;
}

.dock-hero-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.dock-hero-btn.dock-hero-active {
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.3), 0 6px 24px rgba(0, 113, 227, 0.65);
}

.dock-hero-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    stroke: #ffffff;
}

.dock-hero-label {
    color: #ffffff;
    font-weight: 700;
}

/* ============================================================
   1. Home View
   ============================================================ */
.hero-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.main-heading {
    font-size: clamp(2rem, 4.8vw, 2.65rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.14;
    margin: 0;
    color: var(--text-primary);
}

/* Action Card (Frosted Liquid Glass with Seamless Ambient Depth) */
.action-card {
    background: var(--glass-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-liquid-card);
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
}

/* URL Input & Actions */
.url-bar-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.url-search-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

/* Sunken Inset Search Well with Frosted Backdrop & Soft Ambient Shadow */
.url-input-box {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    padding: 0 18px;
    transition: var(--transition-fast);
    box-shadow: inset 0 1px 1.5px var(--border-hairline);
    min-height: 52px;
    flex: 1;
}

.url-input-box:focus-within {
    background: var(--glass-surface-hover);
    border-color: var(--accent-azure);
    box-shadow: 
        0 14px 40px -4px rgba(0, 113, 227, 0.22),
        0 0 0 3px rgba(0, 113, 227, 0.15),
        inset 0 1px 1.5px rgba(255, 255, 255, 0.1);
}

.url-lead-icon {
    width: 18px;
    height: 18px;
    color: var(--text-tertiary);
    margin-right: 12px;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.url-input-box:focus-within .url-lead-icon {
    color: var(--accent-azure);
}

#url-input {
    flex: 1;
    min-width: 0;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    background: transparent;
    border: none;
    outline: none;
    padding: 10px 0;
    letter-spacing: -0.01em;
}

#url-input::placeholder {
    color: var(--text-tertiary);
    font-weight: 400;
}

#url-input.input-attention {
    animation: shake 0.4s var(--ease-apple);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* Dedicated Time Range Bar (Frosted Glass) */
.time-range-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-input);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    padding: 8px 14px;
    gap: 10px;
    box-shadow: var(--shadow-liquid-pill);
    transition: var(--transition-fast);
}

.time-range-bar:hover,
.time-range-bar:focus-within,
.time-range-bar.active {
    background: var(--glass-pill-hover);
    border-color: var(--accent-azure-border);
    box-shadow: 0 6px 20px var(--accent-azure-glow);
}

.time-range-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
}

.time-range-icon {
    width: 15px;
    height: 15px;
    color: var(--accent-azure);
    flex-shrink: 0;
}

.time-range-inputs {
    display: flex;
    align-items: center;
    gap: 7px;
}

.time-range-inputs input {
    width: 52px;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--glass-surface);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-sm);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.15);
    padding: 5px 6px;
    transition: var(--transition-fast);
}

.time-range-inputs input:focus {
    outline: none;
    background: var(--glass-surface-hover);
    border-color: var(--accent-azure);
    box-shadow: 0 0 0 3px var(--accent-azure-subtle);
}

.time-range-inputs input::placeholder {
    color: var(--text-tertiary);
    font-weight: 400;
}

.time-sep {
    color: var(--text-tertiary);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: lowercase;
}

/* ============================================================
   Buttons & Interactive Action Triggers
   ============================================================ */

/* Primary Submit Button (Apple Tactile Black CTA — Zero White Flash) */
.btn-shazam-primary {
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    padding: 0 22px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-cta-black);
    transition: var(--transition-fast);
    cursor: pointer;
    flex-shrink: 0;
}

.btn-shazam-primary:hover {
    background: #1d1d1f;
    transform: translateY(-1.5px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32), inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

.btn-shazam-primary:active {
    transform: scale(0.98) translateY(1px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-shazam-primary svg {
    width: 16px;
    height: 16px;
    stroke: #ffffff;
    transition: transform 0.2s var(--ease-apple);
}

.btn-shazam-primary:hover svg {
    transform: translateX(3px);
}



.btn-browse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 20px;
    background: var(--glass-pill);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-pill);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-primary);
    box-shadow: var(--shadow-liquid-pill);
    outline: none;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.2s var(--ease-apple);
}

.btn-browse:hover {
    background: var(--glass-pill-hover);
    color: var(--accent-azure);
    border-color: var(--accent-azure-border);
    transform: translateY(-1.5px);
    box-shadow: 0 8px 24px var(--accent-azure-glow);
}



.btn-nav-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    padding: 0 14px;
    background: var(--glass-pill);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-liquid-pill);
    color: var(--text-primary);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    user-select: none;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.btn-nav-back:hover {
    background: var(--glass-pill-hover);
    color: var(--accent-azure);
    transform: translateY(-1px);
    box-shadow: 0 10px 28px -2px rgba(0, 113, 227, 0.18), inset 0 1.5px 2px #ffffff;
}

.btn-nav-back:active {
    transform: scale(0.97);
}

.btn-nav-back svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    transition: transform 0.2s ease;
}

.btn-nav-back:hover svg {
    transform: translateX(-2px);
}


/* ============================================================
   Result Quick Actions & Mobile Overflow Fixes
   ============================================================ */
.result-quick-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 14px;
    flex-wrap: wrap;
}

.btn-quick-action {
    flex: 1 1 calc(33.333% - 10px);
    min-width: 105px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    background: var(--glass-pill);
    border: 1px solid var(--border-hairline);
    box-shadow: var(--shadow-liquid-pill);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
    box-sizing: border-box;
}

.btn-quick-action svg {
    width: 16px;
    height: 16px;
    color: var(--accent-azure);
    flex-shrink: 0;
}

.btn-quick-action:hover {
    background: var(--glass-pill-hover);
    transform: translateY(-1.5px);
    box-shadow: var(--shadow-liquid-hover);
}

.btn-quick-action:active {
    transform: scale(0.98);
}

.btn-support-action {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 246, 255, 0.9));
    border: 1px solid rgba(0, 113, 227, 0.25);
}

.btn-support-action svg {
    color: #e11d48;
}

/* Homepage Secondary Actions (Appears smoothly when URL entered) */
.homepage-secondary-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
    animation: fadeInDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-secondary-extract {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 38px;
    padding: 0 18px;
    border-radius: var(--radius-pill);
    background: var(--glass-pill);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 113, 227, 0.18);
    color: var(--text-primary);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-liquid-pill);
    user-select: none;
}

.btn-secondary-extract svg {
    color: var(--accent-azure);
    stroke: currentColor;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.btn-secondary-extract:hover {
    background: var(--glass-pill-hover);
    color: var(--accent-azure);
    border-color: rgba(0, 113, 227, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(0, 113, 227, 0.18), inset 0 1.5px 2px #ffffff;
}

.btn-secondary-extract:hover svg {
    transform: scale(1.1);
}

.btn-secondary-extract:active {
    transform: scale(0.97);
    background: rgba(235, 243, 255, 0.95);
}

/* Mobile Strict Container Protection */
@media (max-width: 480px) {
    .homepage-secondary-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-secondary-extract {
        width: 100%;
        height: 44px;
    }

    .result-quick-actions {
        gap: 8px;
    }

    .btn-quick-action {
        flex: 1 1 calc(50% - 6px);
        padding: 9px 10px;
        font-size: 0.78rem;
    }

    .btn-quick-action:last-child {
        flex: 1 1 100%;
    }

    .track-detail-card,
    .hero-stream-card,
    .telemetry-box,
    .alt-part-recheck-banner,
    .recovery-actions-section {
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    .hero-stream-info {
        min-width: 0;
        overflow: hidden;
    }

    .hero-stream-name,
    .hero-stream-sub {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .support-modal-card {
        padding: 20px 16px;
        width: calc(100% - 24px);
        max-width: 380px;
        max-height: 90vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .support-tab-nav {
        flex-wrap: nowrap;
        gap: 3px;
        padding: 3px;
    }

    .support-tab-btn {
        font-size: 0.72rem;
        gap: 4px;
        height: 34px;
        padding: 0 6px;
    }

    .support-tab-btn svg {
        width: 12px;
        height: 12px;
    }

    .global-support-grid {
        grid-template-columns: 1fr;
    }

    .global-support-card {
        grid-column: span 1 !important;
    }

    .upi-amount-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .btn-amount-chip {
        padding: 8px 4px;
        font-size: 0.78rem;
    }
}

/* ============================================================
   File Dropzone & Upload Zone
   ============================================================ */

/* Divider */
.card-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin: 2px 0;
}

.card-divider::before,
.card-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-hairline);
}

.card-divider span {
    padding: 0 12px;
}

/* File Dropzone (Frosted Liquid Glass with Ambient Shadow) */
.file-dropzone {
    border: 1.5px dashed var(--accent-azure-border);
    background: var(--glass-subtle);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    box-shadow: var(--shadow-liquid-pill);
    transition: var(--transition-fast);
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.file-dropzone:hover,
.file-dropzone.drag-over {
    border-color: var(--accent-azure);
    background: var(--glass-surface-hover);
    box-shadow: 0 16px 44px -6px var(--accent-azure-glow);
    transform: translateY(-1.5px);
}

.dropzone-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.dropzone-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--glass-pill);
    border: 1px solid var(--border-hairline);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-azure);
    transition: var(--transition-fast);
}

.file-dropzone:hover .dropzone-icon {
    background: var(--accent-azure-gradient);
    color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 8px 24px var(--accent-azure-glow);
}

.dropzone-icon svg {
    width: 20px;
    height: 20px;
}

.dropzone-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dropzone-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
}

.dropzone-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

@media (max-width: 640px) {
    .file-dropzone {
        padding: 9px 12px;
        border-radius: var(--radius-lg);
        min-height: 48px;
    }

    .dropzone-inner {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 10px;
        width: 100%;
    }

    .dropzone-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
        flex-shrink: 0;
    }

    .dropzone-icon svg {
        width: 16px;
        height: 16px;
    }

    .dropzone-text {
        flex: 1;
        min-width: 0;
        gap: 1px;
    }

    .dropzone-title {
        font-size: 0.82rem;
        font-weight: 700;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dropzone-desc {
        font-size: 0.70rem;
        color: var(--text-tertiary);
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .btn-browse {
        height: 30px;
        padding: 0 11px;
        font-size: 0.74rem;
        font-weight: 700;
        border-radius: var(--radius-pill);
        flex-shrink: 0;
    }
}

/* ============================================================
   Status & Engine Identification Badges
   ============================================================ */

.badge-matched,
.badge-status-identified {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 30px;
    padding: 0 12px;
    background: #000000;
    border: none;
    border-radius: var(--radius-pill);
    color: #ffffff;
    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    white-space: nowrap;
    line-height: 1;
}

.badge-matched svg,
.badge-status-identified svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    fill: none;
    flex-shrink: 0;
}

.badge-engine {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    background: var(--glass-pill);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-liquid-pill);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-secondary);
    white-space: nowrap;
    line-height: 1;
}

.badge-stem-tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: var(--radius-pill);
    background: rgba(0, 113, 227, 0.1);
    color: var(--accent-azure);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.4;
    white-space: nowrap;
}


/* Status Banner */
.status-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    line-height: 1.45;
}

.banner-warning {
    background: var(--warning-bg);
    border: none;
    box-shadow: 0 4px 14px rgba(255, 149, 0, 0.12), inset 0 1px 1px #ffffff;
    color: var(--warning-text);
}

.banner-warning svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ============================================================
   Multi-Song & Alternate Part Recheck Action Banner (Apple Liquid Glass)
   ============================================================ */
.alt-part-recheck-banner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--glass-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: none;
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    box-shadow: var(--shadow-liquid-card);
    transition: var(--transition-fast);
}

.alt-part-recheck-banner:hover {
    box-shadow: var(--shadow-liquid-hover);
}

.alt-part-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.alt-part-icon-box {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: #1d1d1f;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.alt-part-icon-box svg {
    width: 18px;
    height: 18px;
}

.alt-part-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.alt-part-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.alt-part-sub {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

.alt-part-actions {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 8px;
}

@media (max-width: 540px) {
    .alt-part-actions {
        grid-template-columns: 1fr;
    }
}

.btn-alt-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    height: auto;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
    user-select: none;
    text-align: center;
}

.btn-alt-action svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.btn-alt-recheck {
    background: #000000;
    border: none;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-alt-recheck:hover {
    background: #1d1d1f;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

.btn-alt-target {
    background: var(--glass-pill);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    color: var(--text-primary);
    box-shadow: var(--shadow-liquid-pill);
}

.btn-alt-target:hover {
    background: var(--glass-pill-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 48, 120, 0.12), inset 0 1.5px 2px #ffffff;
}

.feedback-card {
    background: var(--glass-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-liquid-card);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feedback-card-header {
    display: flex;
    align-items: center;
    gap: 7px;
}

.feedback-badge-title {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    text-transform: uppercase;
}

.feedback-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.feedback-heading {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
}

.feedback-subtext {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.feedback-action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
    width: 100%;
}

.btn-feedback-vote {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    height: auto;
    padding: 10px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
    line-height: 1.25;
    text-align: center;
    min-width: 0;
}

.btn-feedback-vote span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-feedback-vote svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.btn-vote-yes {
    background-color: #000000;
    border: none;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-vote-yes:hover {
    background-color: #1d1d1f;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-vote-no {
    background: var(--glass-pill);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    color: #1d1d1f;
    box-shadow: var(--shadow-liquid-pill);
}

.btn-vote-no:hover {
    background: var(--glass-pill-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 48, 120, 0.12), inset 0 1px 1.5px #ffffff;
}

.feedback-confirmed-banner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 14px rgba(0, 48, 120, 0.08), inset 0 1px 1.5px #ffffff;
    color: #1d1d1f;
    font-size: 0.84rem;
    font-weight: 700;
}

.feedback-confirmed-banner svg {
    width: 16px;
    height: 16px;
    stroke: #1d1d1f;
}


.recovery-tray-header {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.recovery-badge {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #ff9500;
    text-transform: uppercase;
}

.recovery-tray-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.recovery-tray-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

@media (max-width: 600px) {
    .recovery-tray-options {
        grid-template-columns: 1fr;
    }
}

.btn-recovery-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--glass-pill);
    backdrop-filter: blur(12px);
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    box-shadow: var(--shadow-liquid-pill);
    transition: var(--transition-fast);
}

.btn-recovery-opt:hover {
    background: var(--glass-pill-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 48, 120, 0.14), inset 0 1px 1.5px #ffffff;
}

.recovery-opt-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 149, 0, 0.12);
    color: #ff9500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recovery-opt-icon svg {
    width: 16px;
    height: 16px;
}

.recovery-opt-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.recovery-opt-text strong {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.recovery-opt-text span {
    font-size: 0.72rem;
    color: var(--text-secondary);
    line-height: 1.3;
}



/* Empty State / No Match Card */
.empty-state-card {
    align-items: center;
    text-align: center;
}

.empty-state-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin: 8px 0;
}

.empty-waveform-avatar {
    position: relative;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 246, 255, 0.92) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none;
    box-shadow: 
        0 20px 48px -6px rgba(0, 36, 100, 0.16),
        0 8px 20px -2px rgba(0, 0, 0, 0.06),
        inset 0 2px 3px #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-azure);
    margin-bottom: 4px;
}

.empty-waveform-avatar svg {
    width: 36px;
    height: 36px;
    stroke: var(--accent-azure);
}

.empty-avatar-glow {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.16) 0%, transparent 70%);
    filter: blur(12px);
    z-index: -1;
    pointer-events: none;
}

.empty-heading-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.empty-heading {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
}

.empty-message-text {
    font-size: 0.84rem;
    color: var(--text-secondary);
    max-width: 440px;
    line-height: 1.5;
}

/* Suggested Next Steps / Recovery Cards */
.recovery-actions-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    margin-top: 6px;
}

.recovery-section-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 18px 0 8px;
    gap: 14px;
}

.recovery-section-subtitle::before,
.recovery-section-subtitle::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
}

.recovery-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    width: 100%;
}

.recovery-action-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--glass-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-liquid-card);
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: left;
    color: inherit;
    position: relative;
}

.recovery-action-card:hover {
    transform: translateY(-2px);
    background: var(--glass-surface-hover);
    box-shadow: var(--shadow-liquid-hover);
}

/* ============================================================
   Redesigned Recovery Layout (Matching Screenshot Mockup)
   ============================================================ */

.recovery-best-card {
    width: 100%;
    background: var(--glass-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    padding: 20px 22px;
    box-shadow: 0 0 32px -4px rgba(0, 113, 227, 0.18), var(--shadow-liquid-card);
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    text-align: left;
}

.recovery-best-badge {
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: rgba(0, 113, 227, 0.15);
    color: #2997ff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.recovery-best-body {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.recovery-shazam-icon-box {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: #0088ff;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 136, 255, 0.35);
}

.recovery-shazam-icon-box svg {
    width: 26px;
    height: 26px;
}

.recovery-best-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.recovery-best-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.recovery-best-desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin: 0;
}

.recovery-best-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 4px;
}

@media (max-width: 520px) {
    .recovery-best-actions {
        grid-template-columns: 1fr;
    }
}

.btn-recovery-mockup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 16px;
    border-radius: var(--radius-sm);
    background: var(--glass-pill);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-primary);
    border: 1px solid var(--border-hairline);
    box-shadow: var(--shadow-liquid-pill);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-fast);
    user-select: none;
}

.btn-recovery-mockup:hover {
    background: var(--glass-pill-hover);
    transform: translateY(-1px);
    border-color: var(--border-medium);
    box-shadow: var(--shadow-liquid-hover);
}

.btn-recovery-mockup svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* Stacked Secondary Action List */
.recovery-stacked-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.recovery-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--glass-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-liquid-card);
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: left;
    color: inherit;
    width: 100%;
}

.recovery-list-item:hover {
    background: var(--glass-surface-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-liquid-hover);
}

.recovery-list-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.recovery-list-icon svg {
    width: 20px;
    height: 20px;
}

.recovery-list-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.recovery-list-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
}

.recovery-list-hint {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

.recovery-list-arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--text-tertiary);
    transition: var(--transition-fast);
}

.recovery-list-item:hover .recovery-list-arrow {
    color: var(--text-primary);
    transform: translateX(2px);
}

.recovery-footer-notice {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    text-align: center;
    margin: 8px 0 0;
    line-height: 1.4;
}

.recovery-action-card:active {
    transform: scale(0.98);
}

.recovery-icon-box {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--glass-pill);
    border: 1px solid var(--border-hairline);
    box-shadow: var(--shadow-liquid-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.recovery-action-card:hover .recovery-icon-box {
    background: var(--accent-azure);
    color: #ffffff;
    border-color: var(--accent-azure);
}

.recovery-icon-box svg {
    width: 20px;
    height: 20px;
}

.recovery-card-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.recovery-card-label {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.recovery-card-hint {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

.recovery-arrow {
    width: 20px;
    height: 20px;
    color: var(--text-tertiary);
    transition: transform 0.2s ease, color 0.2s ease;
}

.recovery-action-card:hover .recovery-arrow {
    transform: translateX(3px);
    color: #000000;
}



/* ============================================================
   Negative Feedback Actionable Recovery Tray
   ============================================================ */
.feedback-recovery-tray {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.feedback-recovery-label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.feedback-recovery-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-recovery-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: #ffffff;
    border: 1px solid rgba(0, 48, 120, 0.12);
    color: var(--accent-azure);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 36, 100, 0.06);
    transition: all 0.15s ease;
}

.btn-recovery-action:hover {
    background: var(--accent-azure);
    color: #ffffff;
    border-color: var(--accent-azure);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.25);
}

.btn-recovery-action svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
}

/* ============================================================
   Microcopy, Limits & Privacy Disclaimers
   ============================================================ */

.limits-info {
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.45;
}

/* Language Suggestion Nudge Floating Toast */
.lang-nudge-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    max-width: 440px;
    animation: nudge-slide-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes nudge-slide-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes nudge-slide-top {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.lang-nudge-content {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--glass-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 9999px !important;
    padding: 6px 14px 6px 12px;
    box-shadow: var(--shadow-liquid-pill);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    font-size: 0.82rem;
    color: var(--text-primary);
}

.lang-nudge-icon {
    display: flex;
    align-items: center;
    color: var(--accent-azure);
    flex-shrink: 0;
}

.lang-nudge-text {
    font-weight: 500;
}

.lang-nudge-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 4px;
}

.btn-nudge-switch {
    font-weight: 600;
    color: #ffffff;
    background: var(--accent-azure);
    padding: 3px 10px;
    border-radius: var(--radius-pill, 9999px);
    text-decoration: none;
    font-size: 0.76rem;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn-nudge-switch:hover {
    transform: scale(1.04);
    opacity: 0.92;
}

.btn-nudge-dismiss {
    background: rgba(120, 120, 128, 0.18);
    border: none;
    color: var(--text-secondary);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
    flex-shrink: 0;
}

.btn-nudge-dismiss svg {
    display: block;
    width: 12px;
    height: 12px;
    stroke: currentColor;
    margin: 0 auto;
}

.btn-nudge-dismiss:hover {
    background: rgba(120, 120, 128, 0.35);
    color: var(--text-primary);
    transform: scale(1.08);
}

/* ============================================================
   2. Radar Processing View (Liquid Glass Azure Waves)
   ============================================================ */
.radar-card {
    background: var(--glass-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-liquid-card);
    padding: 36px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 22px;
}

.shazam-radar-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px 0;
}

.radar-core {
    position: relative;
    z-index: 5;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(235, 245, 255, 0.9) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-azure);
    box-shadow: 
        0 14px 36px rgba(0, 113, 227, 0.25),
        inset 0 2px 3px #ffffff;
}

.radar-core svg {
    width: 40px;
    height: 40px;
}

.radar-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.live-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 30px;
    padding: 0 14px;
    background: var(--glass-pill);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    box-shadow: var(--shadow-liquid-pill);
}

#live-stage-text {
    color: var(--text-primary);
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-azure);
    box-shadow: 0 0 8px rgba(0, 113, 227, 0.7);
    animation: live-blink 1.2s infinite ease-in-out;
}

@keyframes live-blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.7); }
}

.live-headline {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.live-subtitle {
    font-size: 0.84rem;
    color: var(--text-secondary);
    max-width: 380px;
    line-height: 1.5;
    font-weight: 400;
}

/* Audio Spectrum */
.audio-spectrum {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 5px;
    height: 32px;
    padding: 4px 0;
}

.eq-bar {
    width: 4px;
    background: linear-gradient(180deg, var(--accent-azure) 0%, #38bdf8 100%);
    border-radius: var(--radius-pill);
    animation: eq-bounce 1.2s infinite ease-in-out alternate;
    transform-origin: bottom;
}

.eq-bar:nth-child(1) { height: 35%; animation-delay: 0.1s; }
.eq-bar:nth-child(2) { height: 75%; animation-delay: 0.3s; }
.eq-bar:nth-child(3) { height: 95%; animation-delay: 0.5s; }
.eq-bar:nth-child(4) { height: 60%; animation-delay: 0.2s; }
.eq-bar:nth-child(5) { height: 100%; animation-delay: 0.6s; }
.eq-bar:nth-child(6) { height: 80%; animation-delay: 0.4s; }
.eq-bar:nth-child(7) { height: 50%; animation-delay: 0.15s; }
.eq-bar:nth-child(8) { height: 88%; animation-delay: 0.45s; }
.eq-bar:nth-child(9) { height: 40%; animation-delay: 0.25s; }

@keyframes eq-bounce {
    0% { transform: scaleY(0.2); }
    100% { transform: scaleY(1); }
}

.btn-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 18px;
    background: var(--glass-pill);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    border-radius: var(--radius-pill);
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    box-shadow: var(--shadow-liquid-pill);
    transition: var(--transition-fast);
}

.btn-cancel:hover {
    background: var(--glass-pill-hover);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 10px 28px -2px rgba(0, 36, 100, 0.14), inset 0 1.5px 2px #ffffff;
}

/* Also Detected Section — Multi-Track Detection Deck */
.also-detected-box {
    background: var(--glass-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-liquid-card);
}

.also-detected-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.also-detected-title-group {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.6875rem;
    font-weight: 800;
    color: var(--text-tertiary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.also-detected-title-group svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    color: var(--accent-azure);
}

.also-detected-count-badge {
    font-size: 0.6875rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    background: rgba(0, 113, 227, 0.1);
    color: var(--accent-azure);
    letter-spacing: 0.02em;
}

.also-detected-heading,
.recovery-section-title {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--text-tertiary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.also-detected-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.also-detected-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: var(--glass-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-liquid-pill);
    transition: var(--transition-fast);
}

.also-detected-row:hover {
    background: var(--glass-surface-hover, var(--glass-surface));
    box-shadow: var(--shadow-liquid-hover);
    transform: translateY(-1px);
    border-color: rgba(0, 113, 227, 0.3);
}

.also-detected-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.also-detected-art {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-xs);
    object-fit: cover;
    flex-shrink: 0;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.also-detected-placeholder {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-xs);
    background: var(--bg-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.also-detected-title-line {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.also-detected-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.also-detected-badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: var(--radius-pill);
    background: rgba(0, 113, 227, 0.1);
    color: var(--accent-azure);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.also-detected-artist-name {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.also-detected-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 30px;
    padding: 0 13px;
    border-radius: var(--radius-pill);
    background: var(--glass-pill);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-liquid-pill);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: var(--transition-fast);
    white-space: nowrap;
    flex-shrink: 0;
}

.also-detected-link svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    color: var(--accent-azure);
    transition: transform 0.2s ease;
}

.also-detected-link:hover {
    background: var(--glass-pill-hover);
    color: var(--accent-azure);
    box-shadow: 0 8px 20px -2px rgba(0, 113, 227, 0.2), inset 0 1.5px 2px #ffffff;
    transform: translateY(-1px);
}

.also-detected-link:hover svg {
    transform: translateX(2px);
}

/* Live Early Candidate Box in Radar (Strict Project Component Reuse) */
#processing-section .also-detected-box {
    margin-top: 20px;
    width: 100%;
    max-width: 480px;
    box-sizing: border-box;
    animation: fadeInCandidate 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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


/* ============================================================
   Real-Time Radar Candidates Tray ("Kinda Sounds Like...")
   ============================================================ */
.radar-candidates-tray {
    margin-top: 18px;
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 12px 14px;
    box-sizing: border-box;
    animation: fadeInTray 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.candidates-tray-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.candidates-tray-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #38bdf8;
    text-transform: uppercase;
}

.candidates-tray-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.candidate-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8125rem;
    color: var(--text-primary);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    animation: slideInChip 0.25s ease-out;
}

@keyframes slideInChip {
    from { opacity: 0; transform: translateX(-6px); }
    to { opacity: 1; transform: translateX(0); }
}

.cand-tag {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 4px;
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.cand-title {
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
}

.cand-artist {
    font-weight: 400;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Quick Action & Recovery Pill Styling */
.btn-stem-action {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #0071e3;
}

.btn-stem-action:hover {
    background: rgba(56, 189, 248, 0.22);
    border-color: rgba(56, 189, 248, 0.5);
}

.recovery-stem-card {
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.recovery-stem-card:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.45);
}

.recovery-stem-icon {
    background: rgba(56, 189, 248, 0.2);
    color: #0071e3;
}

/* ============================================================
   3. Result View & Song Intelligence (Liquid Glass)
   ============================================================ */
.result-card-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.track-detail-card {
    background: var(--glass-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-liquid-card);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* /* Result Top Navigation Bar & Badges Cluster */
.result-top-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 6px;
    gap: 10px;
    flex-wrap: wrap;
}

.result-top-badges {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Top Method & Engine Tag Bar */
.track-tag-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

/* Artwork & Track Hero */
.track-header-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 2px 0 6px 0;
}

.track-art-box {
    position: relative;
    width: 96px;
    height: 96px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: visible;
}

.track-art-img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    background: #f0f4f8;
}

.track-art-ambient {
    position: absolute;
    inset: 2px;
    background-size: cover;
    background-position: center;
    filter: blur(14px);
    opacity: 0.35;
    z-index: 1;
    transform: translateY(4px);
    border-radius: var(--radius-md);
}

.track-meta-box {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    justify-content: center;
}

.track-song-title {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    line-height: 1.2;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
    margin: 0;
}

.track-artist-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
    word-break: normal;
    overflow-wrap: break-word;
    margin: 0;
}

.track-album-name {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    font-weight: 400;
    word-break: normal;
    overflow-wrap: break-word;
    margin: 0;
}

.track-genre-pill {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    margin-top: 2px;
    height: 22px;
    padding: 0 9px;
    background: rgba(0, 113, 227, 0.08);
    border-radius: var(--radius-pill);
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--accent-azure);
}

/* Shazam-Style Top Header Action Cluster */
.track-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 2px;
}

.btn-hero-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    background: var(--glass-pill);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-liquid-pill);
    color: var(--text-primary);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    user-select: none;
    transition: var(--transition-fast);
}

.btn-hero-action svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    color: var(--accent-azure);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.btn-hero-action:hover {
    background: var(--glass-pill-hover);
    color: var(--accent-azure);
    transform: translateY(-1px);
    box-shadow: 0 10px 28px -2px rgba(0, 113, 227, 0.18), inset 0 1.5px 2px #ffffff;
}

.btn-hero-action:active {
    transform: scale(0.97);
}

/* ============================================================
   Featured Streaming Grid (Unified Apple Solid White Cards — 2x2 Grid)
   ============================================================ */
.featured-streaming-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.featured-streaming-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    text-transform: uppercase;
}

.featured-streaming-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
}

@media (max-width: 580px) {
    .featured-streaming-grid {
        grid-template-columns: 1fr;
    }
}

.hero-stream-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    height: auto;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    background: var(--glass-surface);
    border: 1px solid var(--border-hairline);
    box-shadow: var(--shadow-liquid-card);
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
}

.hero-stream-card:hover {
    transform: translateY(-1.5px);
    background: var(--glass-surface-hover);
    border-color: var(--border-medium);
    box-shadow: var(--shadow-liquid-hover);
}

.hero-stream-card:active {
    transform: scale(0.98);
}

.hero-stream-icon-box {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--glass-pill);
    border: 1px solid var(--border-hairline);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: var(--transition-fast);
}

.hero-stream-icon-box svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.stream-apple .hero-stream-icon-box { color: #fa233b; }
.stream-spotify .hero-stream-icon-box { color: #1db954; }
.stream-youtube .hero-stream-icon-box { color: #ff0000; }
.stream-amazon .hero-stream-icon-box { color: #00a8e1; }

.hero-stream-card:hover .hero-stream-icon-box {
    background: var(--glass-pill-hover);
    transform: scale(1.05);
}

.hero-stream-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.hero-stream-name {
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-stream-sub {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 28px;
    padding: 0 12px;
    background: var(--glass-pill);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-liquid-pill);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    user-select: none;
    transition: var(--transition-fast);
    white-space: nowrap;
    flex-shrink: 0;
}

.hero-stream-sub svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    color: var(--accent-azure);
    transition: transform 0.2s ease;
}

.hero-stream-card:hover .hero-stream-sub {
    background: var(--accent-azure);
    color: #ffffff;
    border-color: var(--accent-azure);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 113, 227, 0.32);
}

.hero-stream-card:hover .hero-stream-sub svg {
    color: #ffffff;
    stroke: #ffffff;
    transform: translateX(2px);
}

/* ============================================================
   Inline Accuracy Feedback Utility Bar (Frosted Liquid Glass)
   ============================================================ */
.inline-feedback-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 18px;
    background: var(--glass-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-liquid-card);
    box-sizing: border-box;
    gap: 12px;
    transition: var(--transition-fast);
}

.inline-feedback-label {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-secondary);
}

.inline-feedback-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-inline-thumb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 14px;
    border-radius: var(--radius-pill);
    border: none;
    background: var(--glass-pill);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-liquid-pill);
    user-select: none;
}

.btn-inline-thumb svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    flex-shrink: 0;
}

.btn-thumb-yes:hover {
    background: var(--glass-pill-hover);
    color: #107c41;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -2px rgba(16, 124, 65, 0.18), inset 0 1.5px 2px #ffffff;
}

.btn-thumb-no:hover {
    background: var(--glass-pill-hover);
    color: #d70015;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -2px rgba(215, 0, 21, 0.18), inset 0 1.5px 2px #ffffff;
}

.btn-inline-thumb:active {
    transform: scale(0.96);
}

.inline-feedback-thanks {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 12px;
    border-radius: var(--radius-pill);
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    font-size: 0.78rem;
    font-weight: 700;
}

.inline-feedback-thanks svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
}

.feedback-support-link {
    color: var(--accent-azure);
    text-decoration: underline;
    font-weight: 700;
    margin-left: 6px;
    transition: var(--transition-fast);
}

.inline-feedback-thanks a:hover,
.feedback-support-link:hover {
    color: #0077ed;
}

/* ============================================================
   Full-Width Inline Vocal Isolation Studio Card (Zero Popups)
   ============================================================ */
.stem-inline-studio-card {
    width: 100%;
    background: var(--glass-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 113, 227, 0.14);
    box-shadow: var(--shadow-liquid-card);
    padding: 16px 18px;
    transition: var(--transition-fast);
    box-sizing: border-box;
}

.stem-studio-state {
    width: 100%;
}

.stem-idle-state {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.stem-studio-header {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 200px;
}

.stem-studio-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--accent-azure-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.35);
}

.stem-studio-icon svg {
    width: 20px;
    height: 20px;
}

.stem-studio-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stem-studio-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stem-studio-title {
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.stem-studio-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.35;
    margin: 0;
}

.btn-stem-studio-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 18px;
    border-radius: var(--radius-pill);
    background: var(--glass-pill);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 113, 227, 0.25);
    box-shadow: var(--shadow-liquid-pill);
    color: var(--accent-azure);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    user-select: none;
    transition: var(--transition-fast);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-stem-studio-cta svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    color: var(--accent-azure);
}

.btn-stem-studio-cta:hover {
    background: var(--accent-azure);
    color: #ffffff;
    border-color: var(--accent-azure);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(0, 113, 227, 0.35);
}

.btn-stem-studio-cta:hover svg {
    stroke: #ffffff;
    color: #ffffff;
}

/* In-Place Processing State */
.stem-processing-state {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 4px 0;
}

.stem-processing-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.stem-processing-spinner {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 113, 227, 0.1);
    color: var(--accent-azure);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.spin-icon {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.stem-processing-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 12px;
}

.stem-processing-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.stem-processing-timer {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--accent-azure);
    font-variant-numeric: tabular-nums;
    background: rgba(0, 113, 227, 0.08);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}

.btn-cancel-stem-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 28px;
    padding: 0 12px;
    border-radius: var(--radius-pill);
    background: var(--glass-pill);
    border: none;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
    flex-shrink: 0;
    box-shadow: var(--shadow-liquid-pill);
}

.btn-cancel-stem-action svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
}

.btn-cancel-stem-action:hover {
    background: var(--glass-pill-hover);
    color: #d70015;
    transform: translateY(-1px);
}

.btn-cancel-stem-action:active {
    transform: scale(0.96);
}

.stem-inline-progress-wrap {
    width: 100%;
}

.stem-inline-progress-bar {
    width: 100%;
    height: 8px;
    border-radius: var(--radius-pill);
    background: rgba(0, 48, 120, 0.08);
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.stem-inline-progress-fill {
    width: 0%;
    height: 100%;
    background: var(--accent-azure-gradient);
    border-radius: var(--radius-pill);
    transition: width 0.3s ease;
}

/* ============================================================
   SOTA Inline Vocal Separation Player
   ============================================================ */
.stem-player-state {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.stem-player-card-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    padding: 16px 18px;
    border-radius: var(--radius-lg, 16px);
    background: var(--glass-surface);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-liquid-card);
    box-sizing: border-box;
    transition: var(--transition-fast);
}

.stem-player-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    flex-wrap: wrap;
}

.stem-player-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.stem-audio-icon-badge {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(0, 113, 227, 0.12);
    color: var(--accent-azure, #0071e3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stem-audio-icon-badge svg {
    width: 20px;
    height: 20px;
}

.stem-meta-wrap {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.stem-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.stem-track-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.015em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stem-format-sub {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-tertiary);
    letter-spacing: -0.01em;
}

.btn-stem-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 38px;
    padding: 0 16px;
    border-radius: var(--radius-pill);
    background: var(--accent-azure-gradient, linear-gradient(135deg, #0071e3, #38bdf8));
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.32), inset 0 1px 0.5px rgba(255, 255, 255, 0.4);
    transition: var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-stem-download:hover {
    background: linear-gradient(135deg, #0077ed 0%, #0284c7 100%);
    transform: translateY(-1.5px);
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.48), inset 0 1px 0.5px rgba(255, 255, 255, 0.5);
}

.btn-stem-download:active {
    transform: scale(0.97);
}

.btn-stem-download svg {
    width: 15px;
    height: 15px;
    stroke: #ffffff;
    stroke-width: 2.2;
    fill: none;
}

/* Audio Scrubber & Controls Deck */
.stem-player-deck {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.btn-stem-play {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background: var(--accent-azure-gradient, linear-gradient(135deg, #0071e3, #38bdf8));
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.38), inset 0 1px 1px rgba(255, 255, 255, 0.45);
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.btn-stem-play:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.55), inset 0 1px 1.5px rgba(255, 255, 255, 0.6);
}

.btn-stem-play:active {
    transform: scale(0.95);
}

.btn-stem-play svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    color: #ffffff;
}

.stem-time-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-tertiary);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    min-width: 30px;
    user-select: none;
    text-align: center;
}

.stem-progress-bar {
    flex: 1;
    height: 6px;
    background: var(--bg-input, rgba(0, 0, 0, 0.08));
    border-radius: var(--radius-pill);
    position: relative;
    cursor: pointer;
    transition: height 0.15s ease;
}

.stem-progress-bar:hover {
    height: 8px;
}

.stem-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-azure-gradient, linear-gradient(135deg, #0071e3, #38bdf8));
    border-radius: var(--radius-pill);
    position: relative;
    transition: width 0.06s linear;
}

.stem-progress-thumb {
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease;
    pointer-events: none;
}

.stem-progress-bar:hover .stem-progress-thumb {
    transform: translateY(-50%) scale(1);
}

/* Waveform Visualizer EQ */
.stem-waveform-visual {
    display: none;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    height: 20px;
    padding: 2px 0;
    flex-shrink: 0;
}

.stem-waveform-visual.eq-active {
    display: flex;
}

.stem-waveform-visual .eq-bar {
    width: 2.5px;
    height: 6px;
    background: var(--accent-azure-gradient, linear-gradient(135deg, #0071e3, #38bdf8));
    border-radius: var(--radius-pill);
    animation: eq-bounce 1.1s infinite ease-in-out alternate;
    transform-origin: bottom;
}

.stem-waveform-visual .eq-bar:nth-child(1) { animation-delay: 0.1s; height: 10px; }
.stem-waveform-visual .eq-bar:nth-child(2) { animation-delay: 0.3s; height: 16px; }
.stem-waveform-visual .eq-bar:nth-child(3) { animation-delay: 0.15s; height: 8px; }
.stem-waveform-visual .eq-bar:nth-child(4) { animation-delay: 0.4s; height: 18px; }
.stem-waveform-visual .eq-bar:nth-child(5) { animation-delay: 0.25s; height: 12px; }
.stem-waveform-visual .eq-bar:nth-child(6) { animation-delay: 0.45s; height: 15px; }
.stem-waveform-visual .eq-bar:nth-child(7) { animation-delay: 0.2s; height: 9px; }
.stem-waveform-visual .eq-bar:nth-child(8) { animation-delay: 0.35s; height: 14px; }

@media (max-width: 600px) {
    .stem-player-header-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .btn-stem-download {
        width: 100%;
        height: 40px;
    }
}

/* ============================================================
   Discreet Wrong-Song Recovery Utility
   ============================================================ */
.wrong-song-utility {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 18px;
    background: var(--glass-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-hairline);
    box-shadow: var(--shadow-liquid-pill);
    transition: var(--transition-fast);
}

.wrong-song-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wrong-song-label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.wrong-song-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-wrong-song-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-hairline);
    background: var(--glass-pill);
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-liquid-pill);
    transition: var(--transition-fast);
}

.btn-wrong-song-action:hover {
    background: var(--glass-pill-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-liquid-hover);
    color: var(--accent-azure);
    border-color: var(--accent-azure-border);
}

.btn-wrong-song-action svg {
    width: 13px;
    height: 13px;
}

/* ============================================================
   Empathetic Support Patronage Card (Azure Liquid Glass)
   ============================================================ */
.support-inline-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--glass-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-liquid-card);
    border: 1px solid rgba(0, 113, 227, 0.12);
    transition: var(--transition-fast);
}

.support-inline-card:hover {
    box-shadow: var(--shadow-liquid-hover);
    border-color: rgba(0, 113, 227, 0.22);
}

.support-inline-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(0, 113, 227, 0.08);
    color: var(--accent-azure);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.12), inset 0 1px 1px #ffffff;
}

.support-inline-icon svg {
    width: 20px;
    height: 20px;
}

.support-inline-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.support-inline-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.015em;
}

.support-inline-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.35;
    margin: 0;
}

.btn-support-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    background: var(--accent-azure-gradient);
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(0, 113, 227, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4);
    transition: var(--transition-fast);
}

.btn-support-cta:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 10px 24px rgba(0, 113, 227, 0.48);
}

@media (max-width: 580px) {
    .support-inline-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .btn-support-cta {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   BGM Finder — Stem Studio Result View (3rd State: Extract Instrumental Only)
   ========================================================================== */

/* Video Source Metadata Hero */
.stem-studio-video-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-hairline);
}

.stem-video-thumb {
    width: 80px;
    height: 45px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--glass-surface);
    border: 1px solid var(--border-hairline);
    flex-shrink: 0;
}

.stem-video-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.stem-video-meta .track-song-title {
    font-size: 1rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Discovery Accordion Card */
.stem-discover-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-hairline);
    background: var(--glass-surface);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.stem-discover-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stem-discover-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Telemetry diagnostics styles removed */

/* ============================================================
   Segment Picker Modal & Global Modal Overlays (Liquid Glass)
   ============================================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 20, 50, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 16px;
    box-sizing: border-box;
    animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-card {
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
    background: var(--glass-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-liquid-card);
    width: 100%;
    max-width: 520px;
    padding: 26px;
}

@keyframes slideUpModal {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.btn-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--glass-pill);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-pill);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    box-shadow: var(--shadow-liquid-pill);
    transition: var(--transition-fast);
    z-index: 10;
}

.btn-modal-close:hover {
    background: var(--glass-pill-hover);
    color: var(--text-primary);
    border-color: var(--border-medium);
    box-shadow: var(--shadow-liquid-hover);
    transform: scale(1.06);
}

.btn-modal-close svg {
    width: 16px;
    height: 16px;
}

.modal-header-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-right: 32px;
    margin-bottom: 20px;
}

.modal-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--accent-azure-subtle);
    border: 1px solid var(--accent-azure-border);
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-azure);
    flex-shrink: 0;
}

.modal-icon-badge svg {
    width: 22px;
    height: 22px;
}

.modal-icon-badge.badge-warning {
    color: #f59e0b;
}

.modal-header-text {
    flex: 1;
    min-width: 0;
}

.modal-title {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.modal-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

/* Segment Picker Controls */
.segment-controls-box {
    background: var(--bg-input);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-liquid-pill);
}

/* Chapters Box */
.segment-chapters-box {
    background: var(--glass-surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: var(--shadow-liquid-pill);
}

.chapters-header-label {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.chapters-header-label svg {
    width: 14px;
    height: 14px;
}

.chapter-chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 110px;
    overflow-y: auto;
    padding-right: 4px;
}

.btn-chapter-chip {
    background: var(--glass-pill);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: var(--radius-pill);
    padding: 5px 12px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-liquid-pill);
    transition: var(--transition-fast);
}

.btn-chapter-chip:hover {
    background: var(--accent-azure);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.35);
}

.btn-chapter-chip.active {
    background: var(--accent-azure);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.45);
}

.chapter-time-badge {
    font-size: 0.68rem;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.08);
    color: inherit;
}

.btn-chapter-chip.active .chapter-time-badge {
    background: rgba(255, 255, 255, 0.2);
}

.segment-scrubber-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.time-readout {
    font-family: monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 44px;
    text-align: center;
    background: var(--glass-pill);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-hairline);
    box-shadow: var(--shadow-liquid-pill);
    padding: 4px 6px;
    border-radius: var(--radius-sm);
}

.segment-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 4px;
    background: var(--border-medium);
    outline: none;
    cursor: pointer;
    touch-action: pan-y;
}

.segment-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-azure);
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.4);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.segment-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-azure);
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.4);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.segment-slider::-webkit-slider-thumb:hover,
.segment-slider:active::-webkit-slider-thumb {
    transform: scale(1.25);
    box-shadow: 0 3px 12px rgba(0, 113, 227, 0.6);
}

@media (pointer: coarse) {
    .segment-slider {
        height: 10px;
    }
    .segment-slider::-webkit-slider-thumb {
        width: 28px;
        height: 28px;
    }
    .segment-slider::-moz-range-thumb {
        width: 28px;
        height: 28px;
    }
}

.segment-preset-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.btn-segment-preset {
    background: var(--glass-pill);
    backdrop-filter: blur(8px);
    border: none;
    color: var(--text-primary);
    padding: 8px 10px;
    border-radius: var(--radius-md);
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: var(--shadow-liquid-pill);
    transition: var(--transition-fast);
}

.btn-segment-preset svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.btn-segment-preset:hover, .btn-segment-preset.active {
    background: var(--accent-azure);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.35);
}

.segment-exact-input-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-secondary);
    gap: 12px;
}

.exact-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.exact-input-wrapper input {
    background: var(--glass-pill);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: none;
    box-shadow: 0 2px 6px rgba(0, 48, 120, 0.08), inset 0 1px 1px #ffffff;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    width: 70px;
    text-align: center;
}

.exact-input-wrapper input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.25), inset 0 1px 1px #ffffff;
}

.exact-window-hint {
    font-size: 0.76rem;
    color: var(--text-secondary);
}

.segment-target-window-banner {
    background: rgba(0, 113, 227, 0.07);
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.06), inset 0 1px 1px #ffffff;
}

.window-banner-icon svg {
    width: 16px;
    height: 16px;
    color: var(--accent-azure);
}

.modal-footer-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.btn-secondary-action {
    background: var(--glass-pill);
    backdrop-filter: blur(12px);
    border: none;
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-liquid-pill);
    transition: var(--transition-fast);
}

.btn-secondary-action:hover {
    background: #ffffff;
    color: var(--text-primary);
    box-shadow: 0 6px 18px rgba(0, 48, 120, 0.12), inset 0 1px 1.5px #ffffff;
}

.btn-primary-action {
    background: linear-gradient(135deg, #0071e3 0%, #38bdf8 100%);
    border: none;
    color: #ffffff;
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.38), inset 0 1px 1px #ffffff;
    transition: var(--transition-fast);
}

.btn-primary-action svg {
    width: 16px;
    height: 16px;
}

.btn-primary-action:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 10px 30px rgba(0, 113, 227, 0.48), inset 0 1px 1px #ffffff;
}

/* ============================================================
   Universal Fallback Modal Cards & Options Grid
   ============================================================ */
.fallback-options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.fallback-option-card {
    background: var(--glass-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-liquid-card);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--transition-fast);
}

.fallback-option-card:hover {
    background: var(--glass-surface-hover);
    box-shadow: var(--shadow-liquid-hover);
    transform: translateY(-1.5px);
}

.fallback-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 113, 227, 0.1);
    color: var(--accent-azure);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fallback-card-icon svg {
    width: 20px;
    height: 20px;
}

.fallback-card-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fallback-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.fallback-card-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.btn-fallback-action {
    background: var(--glass-pill);
    backdrop-filter: blur(12px);
    border: none;
    border-radius: var(--radius-pill);
    padding: 8px 18px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    box-shadow: var(--shadow-liquid-pill);
    transition: var(--transition-fast);
    white-space: nowrap;
}

.btn-fallback-action:hover {
    background: var(--accent-azure);
    border-color: var(--accent-azure);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.35);
}

/* ============================================================
   Featured Promoted Stem Action Card
   ============================================================ */
.featured-stem-action-box {
    width: 100%;
    margin-top: 14px;
}

.btn-promoted-stem {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(240, 248, 255, 0.95), rgba(230, 242, 255, 0.85));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 4px 18px rgba(0, 113, 227, 0.12), inset 0 1px 1.5px #ffffff;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.btn-promoted-stem:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #ffffff, rgba(235, 245, 255, 0.95));
    border-color: var(--accent-azure);
    box-shadow: 0 8px 24px rgba(0, 113, 227, 0.22), inset 0 1px 2px #ffffff;
}

.promoted-stem-icon-box {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #0071e3, #38bdf8);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.35);
}

.promoted-stem-icon-box svg {
    width: 20px;
    height: 20px;
}

.promoted-stem-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.promoted-stem-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.promoted-stem-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
}

.promoted-stem-badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: var(--radius-pill);
    background: rgba(0, 113, 227, 0.12);
    color: var(--accent-azure);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.promoted-stem-badge.badge-ready {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.promoted-stem-sub {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.promoted-stem-arrow {
    width: 18px;
    height: 18px;
    color: var(--accent-azure);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.btn-promoted-stem:hover .promoted-stem-arrow {
    transform: translateX(3px);
}



/* ============================================================
   Liquid Glass Vocal-Removed Stem Modal & Audio Player
   ============================================================ */
.modal-stem-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 16px;
    animation: fadeInModal 0.25s ease-out;
}

@keyframes fadeInModal {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

.modal-stem-card,
.stem-modal-card {
    background: var(--glass-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-liquid-card), 0 24px 64px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 460px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    border: none;
}

.coachmark-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

/* Custom Audio Player Card */
.stem-player-card {
    background: var(--glass-pill);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--shadow-liquid-pill);
    border: none;
}

.stem-player-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-play-pause {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #0071e3;
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 113, 227, 0.4), inset 0 1px 1.5px rgba(255, 255, 255, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    flex-shrink: 0;
    touch-action: manipulation;
}

.btn-play-pause:hover {
    transform: scale(1.06);
    background: #0077ed;
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.55);
}

.btn-play-pause:active {
    transform: scale(0.94);
}

.btn-play-pause svg {
    width: 20px;
    height: 20px;
}

.stem-progress-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.stem-progress-bar {
    width: 100%;
    height: 6px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.12);
    position: relative;
    cursor: pointer;
    touch-action: none;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.stem-progress-fill {
    width: 0%;
    height: 100%;
    background: #0071e3;
    border-radius: var(--radius-pill);
    position: relative;
    pointer-events: none;
}

.stem-progress-fill::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.stem-progress-bar:hover .stem-progress-fill::after,
.stem-progress-bar:active .stem-progress-fill::after {
    opacity: 1;
}

.stem-time-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    user-select: none;
}

.stem-waveform-eq {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 20px;
}

.stem-eq-bar {
    width: 3.5px;
    height: 4px;
    background: var(--accent-azure);
    border-radius: var(--radius-pill);
    opacity: 0.35;
    transition: height 0.2s ease, opacity 0.2s ease;
}

.stem-waveform-eq.eq-active .stem-eq-bar {
    opacity: 0.9;
    animation: eq-pulse 0.8s infinite alternate ease-in-out;
}

.stem-waveform-eq.eq-active .stem-eq-bar:nth-child(2n) { animation-delay: 0.15s; }
.stem-waveform-eq.eq-active .stem-eq-bar:nth-child(3n) { animation-delay: 0.3s; }
.stem-waveform-eq.eq-active .stem-eq-bar:nth-child(4n) { animation-delay: 0.45s; }

@keyframes eq-pulse {
    from { height: 4px; }
    to { height: 18px; }
}

/* Pro-Tip Coachmark */
.coachmark-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.coachmark-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--accent-azure);
    letter-spacing: 0.05em;
}

.coachmark-badge svg {
    flex-shrink: 0;
}

.coachmark-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin: 0;
}

.coachmark-text strong {
    color: var(--accent-azure);
}

.btn-stem-download {
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 700;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.btn-stem-download:hover {
    background: #1d1d1f;
    transform: translateY(-1.5px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.btn-stem-download svg {
    width: 16px;
    height: 16px;
}

/* ============================================================
   Liquid Glass Support & Monetization Modal
   ============================================================ */
.support-modal-card {
    max-width: 440px;
    width: calc(100% - 32px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    text-align: center;
}

.support-tab-nav {
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: var(--radius-pill);
    background: rgba(235, 242, 255, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin: 4px 0 8px;
    box-shadow: inset 0 1px 2px rgba(0, 36, 100, 0.04);
}

.support-tab-btn {
    flex: 1;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: var(--radius-pill);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.support-tab-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    flex-shrink: 0;
}

.support-tab-btn:hover {
    color: var(--text-primary);
}

.support-tab-btn.active {
    background: #ffffff;
    color: var(--accent-azure);
    box-shadow: 0 4px 14px rgba(0, 48, 120, 0.08), inset 0 1px 1px #ffffff;
}

.support-tab-panel {
    width: 100%;
    animation: fadeIn 0.2s ease-out;
}

/* UPI Panel */
.upi-amount-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.btn-amount-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    border-radius: var(--radius-md);
    background: var(--glass-pill);
    border: none;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-liquid-pill);
}

.btn-amount-chip .chip-sub {
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-top: 2px;
}

.btn-amount-chip:hover {
    background: var(--glass-pill-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 48, 120, 0.12), inset 0 1px 1.5px #ffffff;
}

.btn-amount-chip.active {
    background: var(--accent-azure);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 113, 227, 0.35);
}

.btn-amount-chip.active .chip-sub {
    color: rgba(255, 255, 255, 0.85);
}

.upi-qr-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 36, 100, 0.08), inset 0 1px 1.5px #ffffff;
    margin-bottom: 12px;
}

.upi-qr-img {
    width: 170px;
    height: 170px;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

.upi-apps-row {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.upi-app-pill {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: rgba(240, 244, 252, 0.9);
    padding: 3px 8px;
    border-radius: var(--radius-pill);
}

.upi-copy-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px 6px 14px;
    background: var(--glass-surface);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-liquid-pill);
}

.upi-id-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
    min-width: 0;
}

.upi-id-label {
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.upi-id-text {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: monospace;
}

.btn-copy-upi {
    height: 32px;
    padding: 0 14px;
    border-radius: var(--radius-pill);
    background: var(--accent-azure);
    color: #ffffff;
    border: none;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.btn-copy-upi svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
}

.btn-copy-upi:hover {
    background: #0077ed;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 113, 227, 0.4);
}

/* Global Support Panel */
.global-support-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.global-support-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    background: var(--glass-surface);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-liquid-card);
    transition: var(--transition-fast);
    text-align: left;
}

.global-support-card:hover {
    transform: translateY(-2px);
    background: #ffffff;
    box-shadow: var(--shadow-liquid-hover);
}

.global-card-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.global-card-icon svg {
    width: 22px;
    height: 22px;
}

.kofi-card .global-card-icon {
    background: rgba(255, 94, 91, 0.12);
    color: #ff5e5b;
}

.paypal-card .global-card-icon {
    background: rgba(0, 113, 227, 0.12);
    color: #0071e3;
}

.global-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.global-card-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
}

.global-card-sub {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* Free Support Panel */
.free-support-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
    border-radius: var(--radius-md);
    background: var(--glass-surface);
    box-shadow: var(--shadow-liquid-card);
    gap: 8px;
}

.free-support-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    font-size: 0.72rem;
    font-weight: 700;
}

.free-support-badge svg {
    width: 14px;
    height: 14px;
}

.free-support-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 4px;
}

.free-support-desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.45;
    max-width: 320px;
}

/* ============================================================
   Share Modal — Liquid Glass Social Share Card
   Dedicated CSS for proper layout, text alignment & responsive
   ============================================================ */

/* Share modal card — tighter max-width for share context */
#modal-share .support-modal-card {
    max-width: 460px;
    padding: 24px 22px;
}

/* Track preview row inside share modal — proper alignment */
#modal-share .also-detected-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    background: var(--glass-surface);
    border: 1px solid var(--border-hairline);
    box-shadow: var(--shadow-liquid-pill);
    margin-top: 4px;
    cursor: default;
    overflow: hidden;
}

#modal-share .also-detected-art {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

#modal-share .also-detected-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

#modal-share .also-detected-name {
    font-size: 0.9375rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#modal-share .also-detected-artist-name {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#modal-share .badge-stem-tag {
    flex-shrink: 0;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    background: rgba(0, 113, 227, 0.1);
    color: var(--accent-azure);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ---- Social Share Grid Fix ---- */
/* Override the 2-col grid to show full platform names */
#modal-share .featured-streaming-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
}

/* Ensure platform names don't truncate */
#modal-share .hero-stream-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    min-height: 50px;
    height: auto;
    overflow: visible;
}

#modal-share .hero-stream-icon-box {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

#modal-share .hero-stream-icon-box svg {
    width: 17px;
    height: 17px;
}

#modal-share .hero-stream-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

/* Full platform name — never truncate */
#modal-share .hero-stream-name {
    font-size: 0.8125rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
}

#modal-share .hero-stream-sub {
    height: 26px;
    padding: 0 10px;
    font-size: 0.72rem;
    gap: 4px;
    flex-shrink: 0;
}

#modal-share .hero-stream-sub svg {
    width: 10px;
    height: 10px;
}

/* ---- Shareable URL Copy Box Fix ---- */
#modal-share .upi-copy-container {
    margin-top: 12px;
    padding: 8px 8px 8px 14px;
    gap: 8px;
}

#modal-share .upi-id-box {
    min-width: 0;
    overflow: hidden;
}

#modal-share .upi-id-text {
    font-size: 0.75rem;
    font-family: ui-monospace, 'SF Mono', 'Cascadia Code', monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    display: block;
}

/* ---- Mobile Responsive ---- */
@media (max-width: 480px) {
    #modal-share .support-modal-card {
        max-width: 100%;
        padding: 20px 16px;
        border-radius: var(--radius-lg);
    }

    #modal-share .featured-streaming-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    #modal-share .hero-stream-card {
        padding: 8px 10px;
        min-height: 46px;
        gap: 8px;
    }

    #modal-share .hero-stream-icon-box {
        width: 30px;
        height: 30px;
        min-width: 30px;
    }

    #modal-share .hero-stream-icon-box svg {
        width: 15px;
        height: 15px;
    }

    #modal-share .hero-stream-name {
        font-size: 0.75rem;
    }

    #modal-share .hero-stream-sub {
        height: 24px;
        padding: 0 8px;
        font-size: 0.68rem;
    }

    #modal-share .also-detected-art {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    #modal-share .also-detected-name {
        font-size: 0.8125rem;
    }

    #modal-share .upi-id-text {
        font-size: 0.7rem;
    }
}

/* ---- Dark Mode overrides for share modal ---- */
:root:not([data-theme="light"]) #modal-share .also-detected-row,
[data-theme="dark"] #modal-share .also-detected-row {
    background: var(--glass-surface);
    border-color: var(--border-hairline);
}

:root:not([data-theme="light"]) #modal-share .badge-stem-tag,
[data-theme="dark"] #modal-share .badge-stem-tag {
    background: rgba(0, 113, 227, 0.18);
    color: #38bdf8;
}

/* ============================================================
   Rewarded AI Vocal Pass & Download Modal (Liquid Glass)
   ============================================================ */
.reward-modal-card {
    max-width: 440px;
    width: calc(100% - 32px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--glass-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-liquid-card), 0 24px 64px rgba(0, 36, 100, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-sizing: border-box;
}

.reward-sponsor-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 4px 0;
}

.reward-sponsor-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 113, 227, 0.15);
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 36, 100, 0.05);
    transition: var(--transition-fast);
    text-align: left;
}

.reward-sponsor-card:hover {
    background: #ffffff;
    border-color: var(--accent-azure);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 113, 227, 0.15);
}

.reward-sponsor-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--accent-azure-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.reward-sponsor-icon svg {
    width: 18px;
    height: 18px;
}

.reward-sponsor-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.reward-sponsor-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
}

.reward-sponsor-sub {
    font-size: 0.72rem;
    color: var(--accent-azure);
    font-weight: 600;
}

.reward-meter-track {
    width: 100%;
    height: 8px;
    background: rgba(0, 48, 120, 0.08);
    border-radius: var(--radius-pill);
    overflow: hidden;
    margin: 4px 0 2px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.reward-meter-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-azure-gradient);
    border-radius: var(--radius-pill);
}

.reward-timer-text {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--accent-azure);
    font-variant-numeric: tabular-nums;
}

.reward-steps-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-tertiary);
    width: 100%;
    margin-top: -4px;
}

.reward-steps-row span.step-active {
    color: var(--accent-azure);
    font-weight: 700;
}

/* ============================================================
   How It Works Section (3 Frosted Liquid Glass Cards)
   ============================================================ */
.how-it-works {
    margin-top: 32px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hiw-heading {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-align: center;
}

.hiw-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
}

.hiw-step {
    background: var(--glass-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-liquid-card);
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: var(--transition-fast);
}

.hiw-step:hover {
    transform: translateY(-2px);
    background: var(--glass-surface-hover);
    box-shadow: var(--shadow-liquid-hover);
}

.hiw-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-azure);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(41, 151, 255, 0.35);
    transition: var(--transition-fast);
}

.hiw-step:hover .hiw-step-number {
    background: var(--accent-azure-hover);
    box-shadow: 0 4px 14px rgba(41, 151, 255, 0.5);
}

.hiw-step-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hiw-step-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.hiw-step-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}



/* ============================================================
   Subpage Top Bar & Nav Pills
   ============================================================ */
/* ============================================================
   Subpage Top Bar & Nav Pills
   ============================================================ */
.top-bar-subpage {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 0 28px;
    gap: 12px;
}

.subpage-nav-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-pill-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 18px;
    background: var(--glass-pill);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: none;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-liquid-pill);
    color: var(--text-primary);
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-fast);
}

.nav-pill-link:hover,
.nav-pill-link.active {
    background: var(--glass-pill-hover);
    color: var(--accent-azure);
    transform: translateY(-1.5px);
    box-shadow: 0 10px 28px -2px rgba(0, 113, 227, 0.18), inset 0 1.5px 2px #ffffff;
}

.nav-pill-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 20px;
    background: linear-gradient(135deg, #0071e3 0%, #38bdf8 100%);
    border: none;
    border-radius: var(--radius-pill);
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.38), inset 0 1px 1px #ffffff;
    transition: var(--transition-fast);
}

.nav-pill-cta:hover {
    transform: translateY(-1.5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 113, 227, 0.48), inset 0 1px 1px #ffffff;
}

.nav-pill-cta svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

/* ============================================================
   Subpage Hero Headers & Badge
   ============================================================ */
.subpage-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 28px;
    gap: 12px;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    background: var(--glass-pill);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-liquid-pill);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-azure);
    letter-spacing: 0.02em;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-azure);
    box-shadow: 0 0 8px var(--accent-azure);
}

.subpage-heading {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    color: var(--text-primary);
    line-height: 1.15;
    margin: 0;
}

.subpage-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 580px;
    line-height: 1.6;
    margin: 0;
}

/* ============================================================
   Pipeline Step Cards (How It Works Page — Frosted Glass)
   ============================================================ */
.pipeline-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.pipeline-step-card {
    background: var(--glass-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-liquid-card);
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-sizing: border-box;
    transition: var(--transition-fast);
}

.pipeline-step-card:hover {
    background: var(--glass-surface-hover);
    box-shadow: var(--shadow-liquid-hover);
    transform: translateY(-2px);
}

.step-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.step-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-num-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1d1d1f;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    flex-shrink: 0;
}

.step-card-title {
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0;
}

.step-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(0, 113, 227, 0.08);
    border: none;
    border-radius: var(--radius-pill);
    color: var(--accent-azure);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 6px rgba(0, 113, 227, 0.08);
}

.step-badge-svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    flex-shrink: 0;
}

.step-desc {
    font-size: 0.88rem;
    line-height: 1.62;
    color: var(--text-secondary);
    margin: 0;
}

.tech-tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tech-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: rgba(240, 244, 252, 0.90);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: none;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: 0 2px 6px rgba(0, 48, 120, 0.05), inset 0 1px 1px #ffffff;
}

/* Stems Visual Matrix (Frosted Glass Chips) */
.stems-visual-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 6px;
    width: 100%;
}

.stem-visual-item {
    background: rgba(245, 248, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: var(--transition-fast);
    box-shadow: 0 4px 12px rgba(0, 48, 120, 0.05), inset 0 1px 1px #ffffff;
}

.stem-visual-item:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 48, 120, 0.10), inset 0 1px 1.5px #ffffff;
}

.stem-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stem-icon {
    width: 16px;
    height: 16px;
    color: var(--accent-azure);
    flex-shrink: 0;
}

.stem-name {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stem-sub {
    font-size: 0.76rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ============================================================
   Platform Grid Cards (Platforms Page — Frosted Glass)
   ============================================================ */
.platform-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
}

.platform-card {
    background: var(--glass-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-liquid-card);
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
    transition: var(--transition-fast);
}

.platform-card:hover {
    background: var(--glass-surface-hover);
    box-shadow: var(--shadow-liquid-hover);
    transform: translateY(-2px);
}

.platform-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.platform-icon-box {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.platform-icon-box svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.icon-youtube {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
}

.icon-tiktok {
    background: linear-gradient(135deg, #000000 0%, #25f4ee 50%, #fe2c55 100%);
}

.icon-instagram {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
}

.icon-upload {
    background: linear-gradient(135deg, #0071e3 0%, #38bdf8 100%);
}

.platform-title-box {
    flex: 1;
    min-width: 0;
}

.platform-title {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin: 0 0 2px;
}

.platform-subtitle {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin: 0;
}

.platform-feature-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.platform-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.5;
    padding: 8px 12px;
    background: rgba(245, 248, 255, 0.6);
    border: none;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 6px rgba(0, 48, 120, 0.03), inset 0 1px 1px #ffffff;
}

.platform-feature-item svg {
    width: 15px;
    height: 15px;
    color: #10b981;
    flex-shrink: 0;
    margin-top: 3px;
}

.platform-feature-item strong {
    color: var(--text-primary);
}

/* ============================================================
   CTA Banner Card (Global Subpages — Frosted Glass)
   ============================================================ */
.cta-banner-card {
    background: var(--glass-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-liquid-card);
    padding: 34px 26px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    width: 100%;
    box-sizing: border-box;
}

.cta-banner-title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0;
}

.cta-banner-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    max-width: 460px;
    line-height: 1.55;
    margin: 0 0 8px;
}

.cta-banner-card .btn-shazam-primary {
    width: auto;
    min-width: 220px;
    padding: 0 28px;
    height: 48px;
    font-size: 0.92rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* ============================================================
   Legal & Static Pages (Privacy Policy, Terms of Service)
   ============================================================ */
.legal-page {
    background: var(--glass-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-liquid-card);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: var(--text-primary);
    margin-top: 8px;
    width: 100%;
    box-sizing: border-box;
}

.legal-page h1 {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin: 0;
}

.legal-page h2 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-top: 14px;
    margin-bottom: 4px;
}

.legal-page p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0;
}

.legal-page ul {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.75;
    padding-left: 24px;
    margin: 4px 0 8px 0;
}

.legal-page li {
    margin-bottom: 4px;
}

/* ============================================================
   FAQ Section (Homepage & Subpages — Frosted Glass Accordion)
   ============================================================ */
.faq-section {
    margin-top: 36px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.faq-item {
    background: var(--glass-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-liquid-card);
    overflow: hidden;
    transition: var(--transition-fast);
}

.faq-item:hover {
    transform: translateY(-1.5px);
    background: var(--glass-surface-hover);
    box-shadow: var(--shadow-liquid-hover);
}

.faq-item[open] {
    background: var(--glass-surface-hover);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: none;
    box-shadow: var(--shadow-liquid-hover);
}

.faq-item summary {
    padding: 18px 22px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.94rem;
    color: var(--text-primary);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    user-select: none;
    transition: color 0.18s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item:hover summary {
    color: var(--accent-azure);
}

.faq-item[open] summary {
    color: var(--accent-azure);
    border-bottom: 1px solid rgba(0, 113, 227, 0.10);
}

/* Centered Frosted Circular Plus/Minus Toggle Button */
.faq-item summary::after {
    content: '';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230071e3' stroke-width='2.6' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E") center / 13px 13px no-repeat;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 12px rgba(0, 48, 120, 0.08), inset 0 1px 1.5px #ffffff;
    flex-shrink: 0;
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.18s ease, box-shadow 0.18s ease;
}

.faq-item:hover summary::after {
    background-color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(0, 113, 227, 0.22), inset 0 1px 1.5px #ffffff;
}

.faq-item[open] summary::after {
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230071e3' stroke-width='2.6' stroke-linecap='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E") center / 13px 13px no-repeat;
    border: 1px solid rgba(0, 113, 227, 0.22);
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.15), inset 0 1px 1px #ffffff;
    transform: rotate(180deg);
}

.faq-item p {
    padding: 16px 22px 20px;
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.68;
    color: var(--text-secondary);
}

/* ============================================================
   Comparison Table (About Page & SEO Guides)
   ============================================================ */
.comparison-section {
    margin-bottom: 36px;
    width: 100%;
}

.comparison-table-wrap {
    background: var(--glass-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-liquid-card);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
    min-width: 580px;
}

.comparison-table th {
    padding: 16px 20px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
}

.comparison-table th.th-bgm {
    color: var(--accent-azure);
    font-weight: 800;
}

.comparison-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-secondary);
    line-height: 1.5;
    vertical-align: top;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.td-feature-title {
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    margin-bottom: 2px;
}

.td-feature-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.comparison-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    margin-bottom: 6px;
}

.badge-bgm-pro {
    background: rgba(0, 113, 227, 0.12);
    color: var(--accent-azure);
    border: 1px solid rgba(0, 113, 227, 0.25);
}

.badge-other-con {
    background: rgba(142, 142, 147, 0.12);
    color: var(--text-muted);
    border: 1px solid rgba(142, 142, 147, 0.2);
}

/* ============================================================
   Guides & Informational Articles
   ============================================================ */
.breadcrumb-trail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.breadcrumb-trail a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
}

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

.breadcrumb-separator {
    color: var(--text-muted);
    opacity: 0.6;
}

.quick-answer-box {
    background: rgba(0, 113, 227, 0.08);
    border: 1px solid rgba(0, 113, 227, 0.22);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    margin-bottom: 28px;
}

.quick-answer-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-azure);
    margin-bottom: 8px;
}

.quick-answer-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0;
    font-weight: 500;
}

/* ============================================================
   Answer-First SEO Summary Card (AI Engine & GEO Overview)
   ============================================================ */
.seo-summary {
    margin-top: 32px;
    background: var(--glass-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-liquid-card);
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}

.seo-summary-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.seo-summary-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    background: var(--accent-azure-subtle);
    border: 1px solid var(--accent-azure-border);
    color: var(--accent-azure);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.seo-summary-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.015em;
    margin: 0;
}

.seo-summary-text {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.seo-summary-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
    margin-top: 4px;
}

.seo-feature-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: var(--glass-subtle);
    border: 1px solid var(--border-hairline);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.35;
}

.seo-feature-pill svg {
    width: 14px;
    height: 14px;
    stroke: var(--accent-azure);
    flex-shrink: 0;
}

/* ============================================================
   BGM Finder — OLED Dark Mode System (Default Dark)
   ============================================================ */

/* 1. Root Tokens: OLED Dark Palette as Default */
:root,
[data-theme="dark"] {
    color-scheme: dark;

    /* OLED Base & Surface */
    --bg-base: #000000;
    --bg-surface: #0a0a0c;
    --bg-input: rgba(28, 28, 32, 0.75);

    /* Liquid Glass Material Surfaces */
    --glass-surface: rgba(18, 18, 22, 0.84);
    --glass-surface-hover: rgba(28, 28, 34, 0.92);
    --glass-pill: rgba(24, 24, 28, 0.88);
    --glass-pill-hover: rgba(36, 36, 42, 0.96);
    --glass-subtle: rgba(18, 18, 22, 0.72);

    /* Ambient Subtle Glass Borders */
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-dark: rgba(255, 255, 255, 0.06);
    --glass-border-pill: rgba(255, 255, 255, 0.1);
    --border-hairline: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(255, 255, 255, 0.14);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(18, 18, 22, 0.84);
    --card-radius: 18px;

    /* Apple OLED Azure Palette */
    --accent-azure: #2997ff;
    --accent-azure-hover: #47a6ff;
    --accent-azure-subtle: rgba(41, 151, 255, 0.12);
    --accent-azure-border: rgba(41, 151, 255, 0.32);
    --accent-azure-glow: rgba(41, 151, 255, 0.25);
    --accent-azure-gradient: linear-gradient(135deg, #2997ff 0%, #38bdf8 100%);
    --accent-shazam: #0088ff;

    /* Typographic Scale for Dark Mode */
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-tertiary: #86868b;
    --text-muted: #6e6e73;

    /* Deep Specular Shadows for Dark Interfaces */
    --shadow-liquid-card: 
        0 28px 72px -10px rgba(0, 0, 0, 0.8),
        0 12px 30px -4px rgba(0, 0, 0, 0.6),
        0 4px 10px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.12);

    --shadow-liquid-pill: 
        0 10px 28px -2px rgba(0, 0, 0, 0.65),
        0 3px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.14);

    --shadow-liquid-hover: 
        0 36px 88px -10px rgba(0, 0, 0, 0.9),
        0 16px 36px -4px rgba(0, 0, 0, 0.7),
        0 6px 14px rgba(0, 0, 0, 0.5),
        inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.2);

    --shadow-cta-black: 
        inset 0 1px 1.5px rgba(255, 255, 255, 0.2),
        0 14px 36px rgba(0, 0, 0, 0.7);
    --shadow-azure-glow: 0 10px 32px rgba(41, 151, 255, 0.45);
}

/* 2. Light Theme Scoped Tokens */
[data-theme="light"] {
    color-scheme: light;

    --bg-base: #f4f6fb;
    --bg-surface: #ffffff;
    --bg-input: rgba(235, 240, 250, 0.7);

    --glass-surface: rgba(255, 255, 255, 0.82);
    --glass-surface-hover: rgba(255, 255, 255, 0.94);
    --glass-pill: rgba(255, 255, 255, 0.88);
    --glass-pill-hover: rgba(255, 255, 255, 0.98);
    --glass-subtle: rgba(240, 244, 252, 0.75);

    --glass-border: transparent;
    --glass-border-dark: transparent;
    --glass-border-pill: transparent;
    --border-hairline: rgba(0, 0, 0, 0.05);
    --border-medium: rgba(0, 0, 0, 0.08);
    --border-subtle: rgba(0, 0, 0, 0.06);
    --glass-bg: rgba(255, 255, 255, 0.82);
    --card-radius: 18px;

    --accent-azure: #0071e3;
    --accent-azure-hover: #0077ed;
    --accent-azure-subtle: rgba(0, 113, 227, 0.08);
    --accent-azure-border: rgba(0, 113, 227, 0.22);
    --accent-azure-glow: rgba(0, 113, 227, 0.18);
    --accent-azure-gradient: linear-gradient(135deg, #0071e3 0%, #38bdf8 100%);
    --accent-shazam: #0088ff;

    --text-primary: #1d1d1f;
    --text-secondary: #515154;
    --text-tertiary: #75757a;
    --text-muted: #8e8e93;

    --shadow-liquid-card: 
        0 28px 72px -10px rgba(0, 36, 100, 0.16),
        0 12px 30px -4px rgba(0, 0, 0, 0.05),
        0 4px 10px rgba(0, 36, 100, 0.03),
        inset 0 1.5px 2.5px 0 rgba(255, 255, 255, 0.98);

    --shadow-liquid-pill: 
        0 10px 28px -2px rgba(0, 36, 100, 0.13),
        0 3px 8px rgba(0, 0, 0, 0.04),
        inset 0 1.5px 2px 0 rgba(255, 255, 255, 0.98);

    --shadow-liquid-hover: 
        0 36px 88px -10px rgba(0, 48, 120, 0.22),
        0 16px 36px -4px rgba(0, 0, 0, 0.07),
        0 6px 14px rgba(0, 48, 120, 0.05),
        inset 0 1.5px 2.5px 0 rgba(255, 255, 255, 1);

    --shadow-cta-black: 
        inset 0 1px 1.5px rgba(255, 255, 255, 0.45),
        0 14px 36px rgba(0, 0, 0, 0.28);
    --shadow-azure-glow: 0 10px 32px rgba(0, 113, 227, 0.38);
}

/* 3. Smooth Body Background Transitions */
body {
    transition: background-color 0.35s ease, color 0.25s ease;
}

/* 4. Atmospheric Backdrops & Gradients */
:root:not([data-theme="light"]) .bg-scene,
[data-theme="dark"] .bg-scene {
    background: linear-gradient(180deg, #000000 0%, #06080d 40%, #000000 100%);
}

[data-theme="light"] .bg-scene {
    background: linear-gradient(180deg, #f0f4fc 0%, #f6f8fd 40%, #f4f6fb 100%);
}

:root:not([data-theme="light"]) .orb-primary,
[data-theme="dark"] .orb-primary {
    background: radial-gradient(circle closest-side, rgba(0, 113, 227, 0.14) 0%, rgba(56, 189, 248, 0.04) 60%, transparent 100%);
}

:root:not([data-theme="light"]) .orb-secondary,
[data-theme="dark"] .orb-secondary {
    background: radial-gradient(circle closest-side, rgba(56, 189, 248, 0.10) 0%, rgba(14, 165, 233, 0.03) 60%, transparent 100%);
}

:root:not([data-theme="light"]) .orb-tertiary,
[data-theme="dark"] .orb-tertiary {
    background: radial-gradient(circle closest-side, rgba(0, 113, 227, 0.08) 0%, rgba(59, 130, 246, 0.02) 60%, transparent 100%);
}

/* 5. Typography & Headings Overrides */
:root:not([data-theme="light"]) .main-heading,
[data-theme="dark"] .main-heading {
    color: var(--text-primary);
}

:root:not([data-theme="light"]) .radar-status-title,
[data-theme="dark"] .radar-status-title,
:root:not([data-theme="light"]) .modal-title,
[data-theme="dark"] .modal-title,
:root:not([data-theme="light"]) .empty-heading,
[data-theme="dark"] .empty-heading {
    color: var(--text-primary);
}

:root:not([data-theme="light"]) .time-readout,
[data-theme="dark"] .time-readout {
    color: var(--text-primary);
    background: rgba(30, 30, 34, 0.85);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* 6. Buttons & Interactive Controls */
:root:not([data-theme="light"]) .btn-vote-no,
[data-theme="dark"] .btn-vote-no {
    color: var(--text-primary);
}

:root:not([data-theme="light"]) .btn-vote-yes,
[data-theme="dark"] .btn-vote-yes {
    background-color: var(--accent-azure);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(41, 151, 255, 0.35);
}

:root:not([data-theme="light"]) .btn-alt-target,
[data-theme="dark"] .btn-alt-target {
    color: var(--text-primary);
}

:root:not([data-theme="light"]) .feedback-confirmed-banner,
[data-theme="dark"] .feedback-confirmed-banner {
    background: var(--glass-pill);
    color: var(--text-primary);
    box-shadow: var(--shadow-liquid-pill);
}

:root:not([data-theme="light"]) .feedback-confirmed-banner svg,
[data-theme="dark"] .feedback-confirmed-banner svg {
    stroke: var(--text-primary);
}

:root:not([data-theme="light"]) .recovery-icon-box,
[data-theme="dark"] .recovery-icon-box {
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

:root:not([data-theme="light"]) .recovery-action-card:hover .recovery-icon-box,
[data-theme="dark"] .recovery-action-card:hover .recovery-icon-box {
    background: var(--accent-azure);
    color: #ffffff;
    border-color: var(--accent-azure);
}

:root:not([data-theme="light"]) .hiw-step-number,
[data-theme="dark"] .hiw-step-number,
:root:not([data-theme="light"]) .step-num-icon,
[data-theme="dark"] .step-num-icon {
    background: var(--accent-azure);
    color: #ffffff;
}

:root:not([data-theme="light"]) .btn-stem-download,
[data-theme="dark"] .btn-stem-download {
    background: var(--accent-azure);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(41, 151, 255, 0.4);
}

:root:not([data-theme="light"]) .btn-stem-download:hover,
[data-theme="dark"] .btn-stem-download:hover {
    background: var(--accent-azure-hover);
    box-shadow: 0 8px 22px rgba(41, 151, 255, 0.55);
}

/* 7. Subpages & Cards Scoped Border and Surface */
:root:not([data-theme="light"]) .glass-card,
[data-theme="dark"] .glass-card,
:root:not([data-theme="light"]) .content-card,
[data-theme="dark"] .content-card,
:root:not([data-theme="light"]) .faq-item,
[data-theme="dark"] .faq-item {
    background: var(--glass-surface);
    border: 1px solid var(--border-hairline);
    box-shadow: var(--shadow-liquid-card);
}

:root:not([data-theme="light"]) .subpage-cta,
[data-theme="dark"] .subpage-cta {
    background: var(--accent-azure);
    color: #ffffff;
}

:root:not([data-theme="light"]) .stream-card,
[data-theme="dark"] .stream-card,
:root:not([data-theme="light"]) .hero-stream-card,
[data-theme="dark"] .hero-stream-card {
    background: var(--glass-surface);
    border: 1px solid var(--border-hairline);
    box-shadow: var(--shadow-liquid-card);
}

:root:not([data-theme="light"]) .stream-card:hover,
[data-theme="dark"] .stream-card:hover,
:root:not([data-theme="light"]) .hero-stream-card:hover,
[data-theme="dark"] .hero-stream-card:hover {
    background: var(--glass-surface-hover);
    border-color: var(--border-medium);
    box-shadow: var(--shadow-liquid-hover);
}

:root:not([data-theme="light"]) .hero-stream-name,
[data-theme="dark"] .hero-stream-name {
    color: #ffffff;
}

:root:not([data-theme="light"]) .hero-stream-sub,
[data-theme="dark"] .hero-stream-sub {
    background: var(--glass-pill);
    border: 1px solid var(--border-hairline);
    color: var(--text-secondary);
    box-shadow: var(--shadow-liquid-pill);
}

:root:not([data-theme="light"]) .hero-stream-card:hover .hero-stream-sub,
[data-theme="dark"] .hero-stream-card:hover .hero-stream-sub {
    background: var(--accent-azure);
    color: #ffffff;
    border-color: var(--accent-azure);
}

[data-theme="light"] .stream-card,
[data-theme="light"] .hero-stream-card {
    background: #ffffff;
    border: 1px solid rgba(0, 36, 100, 0.06);
    box-shadow: 0 4px 14px rgba(0, 36, 100, 0.05), inset 0 1px 1px #ffffff;
}

[data-theme="light"] .hero-stream-card:hover {
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 48, 120, 0.10), inset 0 1.5px 2px #ffffff;
}

[data-theme="light"] .hero-stream-name {
    color: var(--text-primary);
}

[data-theme="light"] .hero-stream-sub {
    background: #f4f6fb;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 36, 100, 0.06), inset 0 1px 1px rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
}

:root:not([data-theme="light"]) .btn-shazam-primary,
[data-theme="dark"] .btn-shazam-primary {
    background: var(--accent-azure);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(41, 151, 255, 0.4);
}

:root:not([data-theme="light"]) .btn-shazam-primary:hover,
[data-theme="dark"] .btn-shazam-primary:hover {
    background: var(--accent-azure-hover);
    box-shadow: 0 8px 24px rgba(41, 151, 255, 0.55);
}

[data-theme="light"] .btn-shazam-primary {
    background: #000000;
    color: #ffffff;
    box-shadow: var(--shadow-cta-black);
}

:root:not([data-theme="light"]) .hero-stream-icon-box,
[data-theme="dark"] .hero-stream-icon-box {
    background: rgba(36, 36, 42, 0.85);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .hero-stream-icon-box {
    background: rgba(245, 248, 255, 0.85);
    box-shadow: 0 2px 6px rgba(0, 36, 100, 0.06), inset 0 1px 1px #ffffff;
}

:root:not([data-theme="light"]) .seo-summary,
[data-theme="dark"] .seo-summary {
    background: var(--glass-surface);
    border: 1px solid var(--border-hairline);
    box-shadow: var(--shadow-liquid-card);
}

/* ============================================================
   8. Modals, Segment Picker, Dropzone & Subpage Dark Surface Fixes
   ============================================================ */

/* Segment Picker Controls Inner Box */
:root:not([data-theme="light"]) .segment-controls-box,
[data-theme="dark"] .segment-controls-box {
    background: rgba(22, 22, 28, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .segment-controls-box {
    background: rgba(245, 248, 255, 0.75);
    border: none;
    box-shadow: 0 4px 16px rgba(0, 36, 100, 0.05), inset 0 1px 1px #ffffff;
}

/* Segment Picker Icon Badge */
:root:not([data-theme="light"]) .modal-icon-badge,
[data-theme="dark"] .modal-icon-badge {
    background: rgba(28, 28, 34, 0.9);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    color: var(--accent-azure);
}

[data-theme="light"] .modal-icon-badge {
    background: rgba(245, 248, 255, 0.9);
    box-shadow: 0 4px 14px rgba(0, 48, 120, 0.08), inset 0 1px 1.5px #ffffff;
}

/* Time Readouts & Exact Input Box */
:root:not([data-theme="light"]) .exact-input-wrapper input,
[data-theme="dark"] .exact-input-wrapper input {
    background: rgba(28, 28, 34, 0.92);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .exact-input-wrapper input {
    background: rgba(255, 255, 255, 0.90);
    color: var(--text-primary);
    border: none;
    box-shadow: 0 2px 6px rgba(0, 48, 120, 0.08), inset 0 1px 1px #ffffff;
}

/* Segment Target Window Banner */
:root:not([data-theme="light"]) .segment-target-window-banner,
[data-theme="dark"] .segment-target-window-banner {
    background: rgba(0, 113, 227, 0.14);
    border: 1px solid rgba(0, 113, 227, 0.28);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .segment-target-window-banner {
    background: rgba(0, 113, 227, 0.07);
    border: none;
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.06), inset 0 1px 1px #ffffff;
}

/* Segment Chapters Box */
:root:not([data-theme="light"]) .segment-chapters-box,
[data-theme="dark"] .segment-chapters-box {
    background: rgba(22, 22, 28, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.06);
}

/* Segment Preset Buttons */
:root:not([data-theme="light"]) .btn-segment-preset,
[data-theme="dark"] .btn-segment-preset {
    background: rgba(28, 28, 34, 0.88);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

:root:not([data-theme="light"]) .btn-segment-preset:hover,
:root:not([data-theme="light"]) .btn-segment-preset.active,
[data-theme="dark"] .btn-segment-preset:hover,
[data-theme="dark"] .btn-segment-preset.active {
    background: var(--accent-azure);
    color: #ffffff;
    border-color: var(--accent-azure);
    box-shadow: 0 4px 14px rgba(41, 151, 255, 0.45);
}

/* Radar Core Orb */
:root:not([data-theme="light"]) .radar-core,
[data-theme="dark"] .radar-core {
    background: linear-gradient(135deg, rgba(28, 28, 36, 0.96) 0%, rgba(18, 18, 24, 0.94) 100%);
    color: var(--accent-azure);
    box-shadow: 0 14px 36px rgba(0, 113, 227, 0.3), inset 0 1px 1.5px rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .radar-core {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(235, 245, 255, 0.9) 100%);
    box-shadow: 0 14px 36px rgba(0, 113, 227, 0.25), inset 0 2px 3px #ffffff;
}

/* Support Modal Tabs */
:root:not([data-theme="light"]) .support-tab-nav,
[data-theme="dark"] .support-tab-nav {
    background: rgba(22, 22, 28, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

:root:not([data-theme="light"]) .support-tab-btn.active,
[data-theme="dark"] .support-tab-btn.active {
    background: var(--accent-azure);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(41, 151, 255, 0.4);
}

/* Promoted Stem Button Card */
:root:not([data-theme="light"]) .btn-promoted-stem,
[data-theme="dark"] .btn-promoted-stem {
    background: linear-gradient(135deg, rgba(20, 24, 32, 0.92), rgba(16, 20, 28, 0.85));
    border: 1px solid rgba(56, 189, 248, 0.3);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

/* Rewarded Sponsor Card */
:root:not([data-theme="light"]) .reward-sponsor-card,
[data-theme="dark"] .reward-sponsor-card {
    background: rgba(24, 24, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Subpages Stem & Feature Cards */
:root:not([data-theme="light"]) .stem-visual-item,
[data-theme="dark"] .stem-visual-item {
    background: rgba(22, 22, 28, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.06);
}

:root:not([data-theme="light"]) .platform-feature-item,
[data-theme="dark"] .platform-feature-item {
    background: rgba(22, 22, 28, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* FAQ Item Toggle Button in Dark Mode */
:root:not([data-theme="light"]) .faq-item summary::after,
[data-theme="dark"] .faq-item summary::after {
    background: rgba(28, 28, 34, 0.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232997ff' stroke-width='2.6' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E") center / 13px 13px no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

:root:not([data-theme="light"]) .faq-item:hover summary::after,
[data-theme="dark"] .faq-item:hover summary::after {
    background-color: rgba(36, 36, 44, 0.95);
    border-color: rgba(41, 151, 255, 0.35);
    box-shadow: 0 6px 18px rgba(41, 151, 255, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

:root:not([data-theme="light"]) .faq-item[open] summary::after,
[data-theme="dark"] .faq-item[open] summary::after {
    background: rgba(28, 28, 34, 0.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232997ff' stroke-width='2.6' stroke-linecap='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E") center / 13px 13px no-repeat;
    border: 1px solid rgba(41, 151, 255, 0.35);
    box-shadow: 0 4px 14px rgba(41, 151, 255, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transform: rotate(180deg);
}

/* File Dropzone & Browse Button in Dark Mode */
:root:not([data-theme="light"]) .file-dropzone,
[data-theme="dark"] .file-dropzone {
    background: rgba(18, 18, 24, 0.75);
    border-color: rgba(41, 151, 255, 0.32);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

:root:not([data-theme="light"]) .dropzone-icon,
[data-theme="dark"] .dropzone-icon {
    background: rgba(28, 28, 34, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

:root:not([data-theme="light"]) .btn-browse,
[data-theme="dark"] .btn-browse {
    background: rgba(30, 30, 36, 0.9);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* Radar Live Status Pill & Streaming Audio Text in Dark Mode (Pure Crisp White) */
:root:not([data-theme="light"]) .live-status-pill,
[data-theme="dark"] .live-status-pill {
    background: var(--glass-pill);
    border: 1px solid var(--glass-border-pill);
    color: #ffffff;
}

:root:not([data-theme="light"]) #live-stage-text,
[data-theme="dark"] #live-stage-text {
    color: #ffffff;
}

/* ============================================================
   9. Result Views 1, 2, 3 Dark Mode Theme Consistency & Tactile Polish
   ============================================================ */

/* Alternate Part Recheck Utility Buttons in Dark Mode */
:root:not([data-theme="light"]) .btn-wrong-song-action,
[data-theme="dark"] .btn-wrong-song-action {
    background: var(--glass-pill);
    border: 1px solid var(--border-hairline);
    color: var(--text-primary);
    box-shadow: var(--shadow-liquid-pill);
}

:root:not([data-theme="light"]) .btn-wrong-song-action:hover,
[data-theme="dark"] .btn-wrong-song-action:hover {
    background: var(--glass-pill-hover);
    border-color: var(--accent-azure-border);
    color: var(--accent-azure);
    box-shadow: var(--shadow-liquid-hover);
}

[data-theme="light"] .btn-wrong-song-action {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--text-primary);
    box-shadow: 0 3px 10px rgba(0, 36, 100, 0.08), inset 0 1px 1.5px #ffffff;
}

[data-theme="light"] .btn-wrong-song-action:hover {
    background: #ffffff;
    color: var(--accent-azure);
    border-color: rgba(0, 113, 227, 0.25);
    box-shadow: 0 8px 22px rgba(0, 48, 120, 0.16), inset 0 1px 1.5px #ffffff;
}

/* Empty State / No Match Radar Waveform Avatar */
:root:not([data-theme="light"]) .empty-waveform-avatar,
[data-theme="dark"] .empty-waveform-avatar {
    background: linear-gradient(135deg, rgba(28, 28, 34, 0.95) 0%, rgba(18, 18, 22, 0.95) 100%);
    border: 1px solid var(--border-medium);
    box-shadow: 0 16px 40px -6px rgba(0, 0, 0, 0.8), 0 0 32px rgba(41, 151, 255, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .empty-waveform-avatar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 246, 255, 0.92) 100%);
    border: none;
    box-shadow: 0 20px 48px -6px rgba(0, 36, 100, 0.16), 0 8px 20px -2px rgba(0, 0, 0, 0.06), inset 0 2px 3px #ffffff;
}

/* Actionable Recovery Stacked List Items */
:root:not([data-theme="light"]) .recovery-list-item,
[data-theme="dark"] .recovery-list-item {
    background: var(--glass-surface);
    border: 1px solid var(--border-hairline);
    box-shadow: var(--shadow-liquid-card);
}

:root:not([data-theme="light"]) .recovery-list-item:hover,
[data-theme="dark"] .recovery-list-item:hover {
    background: var(--glass-surface-hover);
    border-color: var(--border-medium);
    box-shadow: var(--shadow-liquid-hover);
}

:root:not([data-theme="light"]) .recovery-best-card,
[data-theme="dark"] .recovery-best-card {
    background: var(--glass-surface);
    border: 1px solid rgba(41, 151, 255, 0.32);
    box-shadow: 0 0 32px -4px rgba(41, 151, 255, 0.2), var(--shadow-liquid-card);
}

/* Recovery Mockup Action Buttons */
:root:not([data-theme="light"]) .btn-recovery-mockup,
[data-theme="dark"] .btn-recovery-mockup {
    background: var(--glass-pill);
    border: 1px solid var(--border-hairline);
    color: var(--text-primary);
    box-shadow: var(--shadow-liquid-pill);
}

:root:not([data-theme="light"]) .btn-recovery-mockup:hover,
[data-theme="dark"] .btn-recovery-mockup:hover {
    background: var(--glass-pill-hover);
    border-color: var(--border-medium);
    box-shadow: var(--shadow-liquid-hover);
}

/* Text Search Field in No-Match View */
:root:not([data-theme="light"]) #recovery-text-search-input,
[data-theme="dark"] #recovery-text-search-input {
    border: 1px solid var(--border-hairline);
}

/* Subpage Dark Mode Tactile Overrides */
:root:not([data-theme="light"]) .platform-feature-item,
[data-theme="dark"] .platform-feature-item {
    background: var(--glass-pill);
    border: 1px solid var(--border-hairline);
    box-shadow: var(--shadow-liquid-pill);
}

:root:not([data-theme="light"]) .stem-visual-item,
[data-theme="dark"] .stem-visual-item {
    background: var(--glass-surface);
    border: 1px solid var(--border-hairline);
    box-shadow: var(--shadow-liquid-card);
}

:root:not([data-theme="light"]) .stem-visual-item:hover,
[data-theme="dark"] .stem-visual-item:hover {
    background: var(--glass-surface-hover);
    border-color: var(--border-medium);
    box-shadow: var(--shadow-liquid-hover);
}
/* ============================================================
   10. Explicit Light Mode Overrides for Liquid Glass Polish
   ============================================================ */
[data-theme="light"] .file-dropzone {
    background: var(--glass-subtle);
    border: 1.5px dashed var(--accent-azure-border);
    box-shadow: var(--shadow-liquid-pill);
}

[data-theme="light"] .dropzone-icon {
    background: var(--glass-pill);
    border: 1px solid var(--border-hairline);
    color: var(--accent-azure);
    box-shadow: 0 4px 14px rgba(0, 48, 120, 0.08), inset 0 1px 1.5px #ffffff;
}

[data-theme="light"] .btn-browse {
    background: var(--glass-pill);
    border: 1px solid var(--border-hairline);
    color: var(--text-primary);
    box-shadow: var(--shadow-liquid-pill);
}

[data-theme="light"] .faq-item summary::after {
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230071e3' stroke-width='2.6' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E") center / 13px 13px no-repeat;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 12px rgba(0, 48, 120, 0.08), inset 0 1px 1.5px #ffffff;
}

[data-theme="light"] .faq-item:hover summary::after {
    background-color: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 113, 227, 0.22), inset 0 1px 1.5px #ffffff;
}

[data-theme="light"] .faq-item[open] summary::after {
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230071e3' stroke-width='2.6' stroke-linecap='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E") center / 13px 13px no-repeat;
    border: 1px solid rgba(0, 113, 227, 0.22);
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.15), inset 0 1px 1px #ffffff;
    transform: rotate(180deg);
}

[data-theme="light"] .time-readout {
    color: var(--text-primary);
    background: rgba(245, 248, 255, 0.9);
    box-shadow: 0 2px 6px rgba(0, 48, 120, 0.08), inset 0 1px 1px #ffffff;
}

[data-theme="light"] .segment-chapters-box {
    background: rgba(245, 248, 255, 0.75);
    border: 1px solid rgba(0, 36, 100, 0.06);
    box-shadow: 0 2px 8px rgba(0, 36, 100, 0.05), inset 0 1px 1px #ffffff;
}

[data-theme="light"] .btn-segment-preset {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    border: 1px solid rgba(0, 36, 100, 0.06);
    box-shadow: 0 2px 6px rgba(0, 36, 100, 0.06), inset 0 1px 1px #ffffff;
}

[data-theme="light"] .btn-segment-preset:hover,
[data-theme="light"] .btn-segment-preset.active {
    background: var(--accent-azure);
    color: #ffffff;
    border-color: var(--accent-azure);
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.35);
}

[data-theme="light"] .support-tab-nav {
    background: rgba(235, 242, 255, 0.75);
    border: 1px solid rgba(0, 36, 100, 0.06);
}

[data-theme="light"] .reward-sponsor-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 113, 227, 0.15);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 36, 100, 0.05);
}

[data-theme="light"] .btn-promoted-stem {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 246, 255, 0.9));
    border: 1px solid rgba(0, 113, 227, 0.25);
    box-shadow: 0 4px 14px rgba(0, 48, 120, 0.08), inset 0 1px 1.5px #ffffff;
}

[data-theme="light"] .stem-visual-item {
    background: var(--glass-surface);
    border: 1px solid var(--border-hairline);
    box-shadow: var(--shadow-liquid-card);
}

[data-theme="light"] .platform-feature-item {
    background: var(--glass-pill);
    border: 1px solid var(--border-hairline);
    box-shadow: var(--shadow-liquid-pill);
}

[data-theme="light"] .live-status-pill {
    background: var(--glass-pill);
    border: 1px solid var(--border-hairline);
    color: var(--text-primary);
}

[data-theme="light"] #live-stage-text {
    color: var(--text-primary);
}

/* SOTA Inline Audio Player Dark & Light Theme Adaptations */
:root:not([data-theme="light"]) .stem-player-card-inner,
[data-theme="dark"] .stem-player-card-inner {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

:root:not([data-theme="light"]) .stem-progress-bar,
[data-theme="dark"] .stem-progress-bar {
    background: rgba(255, 255, 255, 0.12);
}

:root:not([data-theme="light"]) .global-support-card:hover,
[data-theme="dark"] .global-support-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .stem-player-card-inner {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 36, 100, 0.08);
    box-shadow: 0 4px 20px rgba(0, 36, 100, 0.04), inset 0 1px 0 #ffffff;
}

[data-theme="light"] .stem-progress-bar {
    background: rgba(0, 36, 100, 0.08);
}

[data-theme="light"] .global-support-card:hover {
    background: #ffffff;
    box-shadow: var(--shadow-liquid-hover);
}

/* Also Detected & Recovery Text Search Result Rows (Dark & Light Mode) */
:root:not([data-theme="light"]) .also-detected-row,
[data-theme="dark"] .also-detected-row {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

:root:not([data-theme="light"]) .also-detected-row:hover,
[data-theme="dark"] .also-detected-row:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 113, 227, 0.45);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

:root:not([data-theme="light"]) .also-detected-name,
[data-theme="dark"] .also-detected-name {
    color: #ffffff;
}

:root:not([data-theme="light"]) .also-detected-artist-name,
[data-theme="dark"] .also-detected-artist-name {
    color: rgba(255, 255, 255, 0.65);
}

:root:not([data-theme="light"]) .also-detected-link,
[data-theme="dark"] .also-detected-link {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

:root:not([data-theme="light"]) .also-detected-link:hover,
[data-theme="dark"] .also-detected-link:hover {
    background: rgba(0, 113, 227, 0.25);
    border-color: rgba(0, 113, 227, 0.5);
    color: #38bdf8;
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.4);
}

[data-theme="light"] .also-detected-row {
    background: #ffffff;
    border: 1px solid rgba(0, 36, 100, 0.08);
    box-shadow: 0 2px 8px rgba(0, 36, 100, 0.04);
}

[data-theme="light"] .also-detected-row:hover {
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 48, 120, 0.08);
    border-color: rgba(0, 113, 227, 0.25);
}

[data-theme="light"] .also-detected-name {
    color: #1d1d1f;
}

[data-theme="light"] .also-detected-artist-name {
    color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .also-detected-link {
    background: rgba(0, 113, 227, 0.08);
    border: 1px solid rgba(0, 113, 227, 0.18);
    color: var(--accent-azure);
}

[data-theme="light"] .also-detected-link:hover {
    background: var(--accent-azure);
    border-color: var(--accent-azure);
    color: #ffffff;
}

[data-theme="light"] .also-detected-link:hover svg {
    color: #ffffff;
}

[data-theme="light"] #recovery-text-search-input {
    background: rgba(235, 240, 250, 0.7);
    border: 1px solid rgba(0, 36, 100, 0.12);
    color: #1d1d1f;
}

[data-theme="light"] #btn-recovery-text-search {
    background: #ffffff;
    border: 1px solid rgba(0, 36, 100, 0.12);
    color: #1d1d1f;
    box-shadow: 0 2px 6px rgba(0, 36, 100, 0.05);
}

[data-theme="light"] #btn-recovery-text-search:hover {
    background: #f8fafc;
    border-color: rgba(0, 113, 227, 0.3);
}

/* ============================================================
   Mobile Smooth-Scroll & Responsive Fluid Breakpoints (120 FPS)
   ============================================================ */
@media (max-width: 768px) {
    :root {
        --glass-blur: blur(8px);
    }

    /* Zero CPU/GPU animation overhead and zero checkerboard tile lag during mobile touch-scrolling */
    .bg-scene {
        transform: none !important;
        contain: none !important;
    }

    .glow-orb {
        animation: none !important;
        filter: blur(16px) !important;
        will-change: auto !important;
        opacity: 0.5 !important;
    }

    /* Use high-performance solid-tint glass on mobile without forced layer promotions to eliminate tile checkerboarding */
    .action-card,
    .track-detail-card,
    .radar-card,
    .modal-card,
    .faq-item,
    .hiw-step,
    .pipeline-step-card,
    .platform-card,
    .cta-banner-card,
    .seo-summary,
    .file-dropzone,
    .dropzone-icon,
    .btn-browse {
        background: var(--glass-surface);
        border: 1px solid var(--border-hairline);
        box-shadow: var(--shadow-liquid-card);
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        transform: none !important;
        backface-visibility: visible;
        -webkit-backface-visibility: visible;
        outline: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    /* Mobile Bottom Dock & Floating Top Toast Layout */
    .mobile-bottom-dock {
        display: block !important;
    }

    .app-viewport,
    .app-viewport.subpage-viewport {
        padding-bottom: 96px !important;
    }

    .lang-nudge-banner {
        position: fixed !important;
        top: calc(max(10px, env(safe-area-inset-top, 10px)) + 50px) !important;
        bottom: auto !important;
        left: 16px !important;
        right: 16px !important;
        margin: 0 auto !important;
        max-width: 390px !important;
        z-index: 10000 !important;
        animation: nudge-slide-top 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .top-bar .nav-pill-cta {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .app-viewport {
        padding: 12px 14px 96px !important;
    }

    .app-viewport.subpage-viewport {
        padding: 12px 14px 96px !important;
    }

    .top-bar,
    .top-bar-subpage {
        padding: 8px 0 16px;
        gap: 6px;
    }

    .subpage-nav-group {
        gap: 6px;
    }

    .nav-pill-link {
        height: 36px;
        padding: 0 12px;
        font-size: 0.76rem;
    }

    .nav-pill-cta {
        height: 36px;
        padding: 0 14px;
        font-size: 0.76rem;
    }

    .hero-header {
        margin-bottom: 24px;
    }

    .main-heading {
        font-size: 1.85rem;
        letter-spacing: -0.03em;
    }

    .subpage-hero {
        margin-bottom: 20px;
        gap: 8px;
    }

    .subpage-heading {
        font-size: 1.65rem;
        letter-spacing: -0.025em;
    }

    .subpage-subtitle {
        font-size: 0.86rem;
        line-height: 1.5;
    }

    .action-card {
        padding: 20px 16px;
        border-radius: var(--radius-lg);
        gap: 16px;
    }

    .url-input-box {
        padding: 0 14px;
        min-height: 48px;
    }

    .btn-shazam-primary {
        min-height: 48px;
        font-size: 0.875rem;
    }

    .result-top-nav-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 8px;
        width: 100%;
    }

    .btn-nav-back {
        height: 30px;
        padding: 0 12px;
        font-size: 0.76rem;
        gap: 5px;
        flex-shrink: 0;
    }

    .result-top-badges {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .badge-status-identified,
    .badge-engine {
        height: 28px;
        padding: 0 10px;
        font-size: 0.68rem;
        line-height: 1;
    }

    .track-detail-card {
        padding: 18px 14px;
        border-radius: var(--radius-lg);
        gap: 14px;
    }

    .track-header-hero {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 14px;
        width: 100%;
        padding: 0;
    }

    .track-art-box {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
    }

    .track-meta-box {
        flex: 1 1 0%;
        min-width: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 3px;
    }

    .track-song-title {
        font-size: 1.18rem;
        font-weight: 800;
        line-height: 1.28;
        letter-spacing: -0.02em;
        word-break: normal;
        overflow-wrap: break-word;
        hyphens: none;
        text-wrap: pretty;
        margin: 0;
    }

    .track-artist-name {
        font-size: 0.90rem;
        font-weight: 600;
        line-height: 1.3;
        color: var(--text-secondary);
        word-break: normal;
        overflow-wrap: break-word;
        margin: 0;
    }

    .track-album-name {
        font-size: 0.78rem;
        line-height: 1.3;
        color: var(--text-tertiary);
        word-break: normal;
        overflow-wrap: break-word;
        margin: 0;
    }

    .track-header-actions {
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        margin-top: 4px;
        flex-shrink: 0;
    }

    .btn-hero-action {
        flex: 1;
        height: 36px;
        padding: 0 14px;
        font-size: 0.78rem;
        font-weight: 700;
        min-width: 0;
        justify-content: center;
        gap: 6px;
        border-radius: var(--radius-pill);
    }

    .inline-feedback-row {
        padding: 10px 14px;
        border-radius: var(--radius-md);
    }

    .btn-inline-thumb {
        height: 30px;
        padding: 0 12px;
        font-size: 0.74rem;
    }

    .featured-streaming-grid {
        grid-template-columns: 1fr;
    }

    .hero-stream-card {
        padding: 12px 14px;
        min-height: 56px;
        height: auto;
        overflow: hidden;
    }

    .feedback-action-row {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .btn-feedback-vote {
        padding: 8px 10px;
        font-size: 0.76rem;
        min-height: 42px;
    }

    .alt-part-actions {
        grid-template-columns: 1fr;
    }

    .pipeline-step-card,
    .platform-card,
    .cta-banner-card,
    .legal-page {
        padding: 20px 16px;
        border-radius: var(--radius-lg);
    }

    .faq-section {
        margin-top: 24px;
        gap: 12px;
    }

    .faq-item summary {
        padding: 15px 16px;
        font-size: 0.88rem;
        gap: 10px;
    }

    .faq-item p {
        padding: 0 16px 16px;
        font-size: 0.82rem;
    }

    .how-it-works {
        margin-top: 24px;
    }
}

@media (max-width: 580px) {
    .top-bar,
    .top-bar-subpage {
        gap: 8px;
        padding: 8px 0 14px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .brand-title {
        display: none;
    }

    .brand-pill {
        height: 38px;
        padding: 0 12px;
        width: auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        flex-shrink: 0;
    }

    .top-header-actions {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
        flex-wrap: nowrap;
    }

    .header-lang-pill {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 38px;
        padding: 0 8px;
        gap: 5px;
        flex-shrink: 0;
        box-sizing: border-box;
    }

    .header-lang-pill svg {
        display: block;
        margin: 0;
        vertical-align: middle;
        flex-shrink: 0;
    }

    .header-lang-select {
        display: inline-flex;
        align-items: center;
        height: 100%;
        line-height: 38px;
        font-size: 0.74rem;
        padding: 0;
        margin: 0;
        vertical-align: middle;
        text-align: center;
        text-align-last: center;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background: transparent;
        color: var(--text-secondary);
        border: none;
        cursor: pointer;
    }

    .header-theme-pill {
        width: 38px;
        height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .header-support-pill {
        height: 38px;
        padding: 0 10px;
        gap: 5px;
        font-size: 0.76rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
}

@media (max-width: 380px) {
    .feedback-action-row {
        grid-template-columns: 1fr;
    }

    .header-support-pill span {
        display: none;
    }

    .header-support-pill {
        padding: 0;
        width: 38px;
        height: 38px;
        justify-content: center;
    }

    .header-lang-pill {
        padding: 0 6px;
        gap: 4px;
    }

    .header-lang-select {
        font-size: 0.7rem;
    }
}

/* ============================================================
   Desktop Enhanced Layouts (>= 640px, >= 768px, >= 1024px)
   ============================================================ */
@media (min-width: 640px) {
    .app-viewport {
        max-width: 680px;
        padding: 24px 28px 40px;
    }

    .app-viewport.subpage-viewport {
        max-width: 780px;
    }

    .hiw-steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .hiw-step {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 18px;
    }

    .platform-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .stems-visual-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .action-card {
        padding: 28px;
    }

    .track-detail-card {
        padding: 30px;
    }

    .track-art-box {
        width: 110px;
        height: 110px;
    }

    .track-header-hero {
        flex-wrap: nowrap;
        align-items: center;
        gap: 16px;
    }

    .track-header-actions {
        width: auto;
        flex-direction: row;
        margin-top: 0;
    }

    .btn-hero-action {
        flex: 0 0 auto;
        height: 34px;
    }

    .url-search-row {
        flex-direction: row;
        align-items: stretch;
    }

    .url-input-box {
        flex: 1;
    }

    .btn-shazam-primary {
        width: auto;
        min-width: 140px;
        padding: 0 24px;
    }

    .recovery-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .app-viewport.subpage-viewport {
        max-width: 860px;
    }
}

@media (min-width: 1024px) {
    .app-viewport {
        max-width: 740px;
    }

    .app-viewport.subpage-viewport {
        max-width: 880px;
    }
}

/* Elapsed Processing Timer */
.elapsed-timer {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-tertiary);
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
}
