/* ==========================================================================
   PNS SOUNDWAVE - MODERN SAAS AUDIO STOREFRONT STYLESHEET
   Supports: Light Mode (Default) & Dark Mode via Scoped Tokens
   ========================================================================== */

/* Design Tokens - Scoped to Studio Container */
#pns-audio-studio-wrap,
#pns-audio-studio-wrap[data-theme="light"] {
    --bg-canvas: #F8FAFC;
    --bg-surface: #FFFFFF;
    --bg-card: #F1F5F9;
    --bg-card-hover: #E2E8F0;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --bg-dock: rgba(255, 255, 255, 0.94);
    
    --border-subtle: rgba(15, 23, 42, 0.08);
    --border-hover: rgba(15, 23, 42, 0.16);
    --border-glow: rgba(99, 102, 241, 0.3);

    --text-heading: #0F172A;
    --text-body: #334155;
    --text-muted: #64748B;
    --text-faint: #94A3B8;

    --primary: #6366F1;
    --primary-hover: #4F46E5;
    --primary-light: rgba(99, 102, 241, 0.12);
    --primary-glow: rgba(99, 102, 241, 0.28);

    --accent-cyan: #0891B2;
    --accent-emerald: #059669;
    --accent-amber: #D97706;
    --accent-rose: #E11D48;
    --accent-purple: #7C3AED;
    --accent-pink: #DB2777;

    --radius-pill: 9999px;
    --radius-card: 16px;
    --radius-btn: 12px;
    --radius-sm: 8px;

    --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
    --shadow-glow: 0 0 30px -5px rgba(99, 102, 241, 0.2);

    --spotlight-gradient: linear-gradient(135deg, #FFFFFF 0%, #EEF2F6 100%);
    --header-bg: rgba(255, 255, 255, 0.88);
    --input-bg: rgba(15, 23, 42, 0.04);
    --input-border: rgba(15, 23, 42, 0.1);
    --btn-glass-bg: rgba(15, 23, 42, 0.05);
    --btn-glass-hover: rgba(15, 23, 42, 0.09);
    --pill-count-bg: rgba(15, 23, 42, 0.08);
    --modal-bg: #FFFFFF;
    --modal-overlay: rgba(15, 23, 42, 0.45);
    --play-btn-main-bg: #0F172A;
    --play-btn-main-color: #FFFFFF;

    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* DARK MODE OVERRIDES */
#pns-audio-studio-wrap[data-theme="dark"] {
    --bg-canvas: #0B0F19;
    --bg-surface: #111827;
    --bg-card: #182234;
    --bg-card-hover: #1E2B42;
    --bg-glass: rgba(24, 34, 52, 0.75);
    --bg-dock: rgba(17, 24, 39, 0.94);
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);
    --border-glow: rgba(99, 102, 241, 0.4);

    --text-heading: #F9FAFB;
    --text-body: #D1D5DB;
    --text-muted: #9CA3AF;
    --text-faint: #6B7280;

    --primary: #6366F1;
    --primary-hover: #4F46E5;
    --primary-light: rgba(99, 102, 241, 0.15);
    --primary-glow: rgba(99, 102, 241, 0.35);

    --accent-cyan: #06B6D4;
    --accent-emerald: #10B981;
    --accent-amber: #F59E0B;
    --accent-rose: #F43F5E;
    --accent-purple: #8B5CF6;
    --accent-pink: #EC4899;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 35px -5px rgba(99, 102, 241, 0.3);

    --spotlight-gradient: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(17, 24, 39, 0.95) 100%);
    --header-bg: rgba(11, 15, 25, 0.85);
    --input-bg: rgba(255, 255, 255, 0.05);
    --input-border: rgba(255, 255, 255, 0.08);
    --btn-glass-bg: rgba(255, 255, 255, 0.06);
    --btn-glass-hover: rgba(255, 255, 255, 0.12);
    --pill-count-bg: rgba(0, 0, 0, 0.25);
    --modal-bg: #182234;
    --modal-overlay: rgba(11, 15, 25, 0.8);
    --play-btn-main-bg: #FFFFFF;
    --play-btn-main-color: #0F172A;
}

/* Base Wrapper Container */
#pns-audio-studio-wrap {
    background-color: var(--bg-canvas);
    color: var(--text-body);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    padding-bottom: 90px;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    box-sizing: border-box;
}

#pns-audio-studio-wrap * {
    box-sizing: border-box;
}

#pns-audio-studio-wrap h1,
#pns-audio-studio-wrap h2,
#pns-audio-studio-wrap h3,
#pns-audio-studio-wrap h4,
#pns-audio-studio-wrap h5,
#pns-audio-studio-wrap h6 {
    color: var(--text-heading);
    font-weight: 700;
}

/* Ambient Glow Mesh */
.ambient-glow-mesh {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: 480px;
    background: radial-gradient(circle at 50% 20%, var(--primary-glow) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

/* Studio Sub-Header / Action Bar */
.studio-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0 24px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.studio-brand-group {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.studio-brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, #06B6D4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.studio-brand-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.5px;
    margin: 0;
}

.studio-brand-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--border-glow);
    margin-left: 8px;
}

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

/* Theme Toggle Button */
.theme-toggle-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--btn-glass-bg);
    border: 1px solid var(--border-subtle);
    color: var(--text-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 15px;
}

.theme-toggle-btn:hover {
    background: var(--btn-glass-hover);
    border-color: var(--primary);
    color: var(--primary);
    transform: rotate(15deg);
}

.btn-studio-nav {
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    background: var(--btn-glass-bg);
    border: 1px solid var(--border-subtle);
    color: var(--text-body);
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: var(--transition);
}

.btn-studio-nav:hover {
    background: var(--btn-glass-hover);
    color: var(--text-heading);
    border-color: var(--border-hover);
}

.btn-studio-primary {
    background: var(--primary-light);
    border-color: var(--border-glow);
    color: var(--primary);
}

.btn-studio-primary:hover {
    background: var(--primary);
    color: #ffffff;
}

/* ==========================================================================
   SPOTLIGHT HERO BANNER
   ========================================================================== */
.spotlight-hero {
    position: relative;
    background: var(--spotlight-gradient);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 36px 44px;
    margin-bottom: 36px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-md);
    z-index: 1;
}

.spotlight-ambient-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    right: -80px;
    top: -80px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--spotlight-color, var(--primary)) 0%, transparent 70%);
    opacity: 0.18;
    filter: blur(40px);
    pointer-events: none;
}

.spotlight-content {
    max-width: 640px;
    position: relative;
    z-index: 2;
}

.spotlight-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 14px;
    border: 1px solid var(--border-glow);
}

.spotlight-title {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.8px;
    line-height: 1.15;
    margin-bottom: 12px;
}

.spotlight-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 22px;
}

.spotlight-meta-stats {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.stat-badge-unit {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.stat-badge-unit i {
    font-size: 14px;
    color: var(--primary);
}

.spotlight-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-spotlight-play {
    padding: 11px 24px;
    border-radius: var(--radius-pill);
    background: var(--primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 13.5px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 18px var(--primary-glow);
    text-decoration: none;
}

.btn-spotlight-play:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 24px var(--primary-glow);
    color: #ffffff;
}

.btn-spotlight-outline {
    padding: 11px 22px;
    border-radius: var(--radius-pill);
    background: var(--btn-glass-bg);
    border: 1px solid var(--border-hover);
    color: var(--text-heading);
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    text-decoration: none;
}

.btn-spotlight-outline:hover {
    background: var(--btn-glass-hover);
    border-color: var(--primary);
    color: var(--primary);
}

.spotlight-art-box {
    position: relative;
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spotlight-art-orb {
    width: 150px;
    height: 150px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--spotlight-color, #6366F1) 0%, #06B6D4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    color: #ffffff;
    box-shadow: 0 16px 40px -10px var(--spotlight-color, rgba(99, 102, 241, 0.5));
    animation: floatArt 4s ease-in-out infinite;
}

@keyframes floatArt {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(2deg); }
}

/* ==========================================================================
   CATEGORY CHIPS / PILLS CAROUSEL
   ========================================================================== */
.category-section-wrap {
    margin-bottom: 36px;
    position: relative;
    z-index: 1;
}

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

.section-title {
    font-size: 20px;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.category-scroll-rail {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
}

.category-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-body);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    text-decoration: none;
    user-select: none;
}

.category-pill-btn i {
    font-size: 14px;
    color: var(--cat-color, var(--primary));
    transition: var(--transition);
}

.category-pill-btn:hover {
    background: var(--bg-card);
    border-color: var(--border-hover);
    color: var(--text-heading);
    transform: translateY(-2px);
}

.category-pill-btn.active {
    background: var(--cat-color, var(--primary));
    border-color: var(--cat-color, var(--primary));
    color: #ffffff !important;
    box-shadow: 0 4px 16px var(--cat-glow, rgba(99, 102, 241, 0.4));
}

.category-pill-btn.active i {
    color: #ffffff !important;
}

.pill-track-count {
    background: var(--pill-count-bg);
    padding: 2px 7px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
}

/* ==========================================================================
   DISCOVERY TOOLBAR (FILTER, SEARCH, VIEW MODE)
   ========================================================================== */
.discovery-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: 12px 18px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 1;
}

.toolbar-left-stats {
    font-size: 13.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.toolbar-left-stats strong {
    color: var(--text-heading);
}

.toolbar-right-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-input-box {
    padding: 8px 14px 8px 34px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-btn);
    color: var(--text-heading);
    font-size: 13px;
    outline: none;
    transition: var(--transition);
    width: 220px;
}

.search-input-box:focus {
    border-color: var(--primary);
    background: var(--bg-surface);
    box-shadow: 0 0 0 3px var(--primary-light);
    width: 260px;
}

.search-box-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box-wrapper .search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-faint);
    font-size: 13px;
    pointer-events: none;
}

.select-filter-dark {
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-btn);
    color: var(--text-body);
    font-size: 13px;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

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

.view-mode-toggle {
    display: flex;
    background: var(--bg-card);
    padding: 3px;
    border-radius: var(--radius-btn);
    border: 1px solid var(--border-subtle);
}

.view-toggle-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: var(--transition);
}

.view-toggle-btn.active {
    background: var(--bg-surface);
    color: var(--text-heading);
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   VIEW 1: BENTO TRACKS GRID
   ========================================================================== */
.tracks-bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.bento-track-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: 16px;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.bento-track-card:hover {
    background: var(--bg-surface);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.bento-track-card.active-playing {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.bento-cover-frame {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 1:1 Aspect Ratio */
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
    margin-bottom: 14px;
}

.bento-cover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.bento-track-card:hover .bento-cover-img {
    transform: scale(1.06);
}

.bento-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    cursor: pointer;
}

.bento-track-card:hover .bento-play-overlay,
.bento-track-card.active-playing .bento-play-overlay {
    opacity: 1;
}

.circle-play-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    cursor: pointer;
}

.circle-play-btn:hover {
    transform: scale(1.1);
    background: var(--primary-hover);
}

.bento-badges-top {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    z-index: 2;
}

.badge-pill-blur {
    padding: 4px 8px;
    border-radius: var(--radius-pill);
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
}

.badge-pill-lock {
    background: rgba(217, 119, 6, 0.85);
    color: #ffffff;
}

.badge-pill-unlocked {
    background: rgba(5, 150, 105, 0.85);
    color: #ffffff;
}

.bento-track-info {
    margin-bottom: 12px;
}

.bento-track-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    display: block;
}

.bento-track-title:hover {
    color: var(--primary);
}

.bento-track-artist {
    font-size: 12.5px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bento-track-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--border-subtle);
    font-size: 12px;
    color: var(--text-faint);
}

.bento-action-btns {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-card-action {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    transition: var(--transition);
}

.btn-card-action:hover {
    color: var(--text-heading);
    transform: scale(1.15);
}

.btn-card-action.liked {
    color: var(--accent-rose) !important;
}

/* ==========================================================================
   VIEW 2: SMART DATA TRACKLIST (TABLE)
   ========================================================================== */
.tracks-list-view {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 1;
}

.store-track-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.store-track-table thead {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-subtle);
}

.store-track-table th {
    padding: 14px 16px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.store-track-row {
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition);
    cursor: pointer;
}

.store-track-row:hover {
    background: var(--bg-card);
}

.store-track-row.active-playing {
    background: var(--primary-light);
}

.store-track-row td {
    padding: 12px 16px;
    vertical-align: middle;
}

.table-cell-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-track-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--bg-card);
    flex-shrink: 0;
}

.table-title-wrap {
    min-width: 0;
    flex-grow: 1;
}

.table-title-main {
    font-weight: 700;
    color: var(--text-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    display: inline-block;
    max-width: 240px;
}

.table-title-main:hover {
    color: var(--primary);
}

.table-artist-sub {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Micro Waveform Visualizer */
.waveform-bars-visualizer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: 20px;
    width: 60px;
    margin: 0 auto;
}

.wave-bar {
    width: 2.5px;
    background: var(--text-faint);
    border-radius: 2px;
    height: 30%;
    transition: height 0.2s ease;
}

.active-playing .wave-bar {
    background: var(--primary);
    animation: waveBounce 1.2s ease-in-out infinite alternate;
}

.active-playing .wave-bar:nth-child(1) { animation-delay: 0.1s; }
.active-playing .wave-bar:nth-child(2) { animation-delay: 0.3s; }
.active-playing .wave-bar:nth-child(3) { animation-delay: 0.5s; }
.active-playing .wave-bar:nth-child(4) { animation-delay: 0.2s; }
.active-playing .wave-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes waveBounce {
    0% { height: 20%; }
    100% { height: 95%; }
}

/* ==========================================================================
   PASSWORD MODAL (GLASS BACKDROP)
   ========================================================================== */
.modal-backdrop-blur {
    position: fixed;
    inset: 0;
    background: var(--modal-overlay);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100050;
    padding: 20px;
}

.modal-backdrop-blur.active {
    display: flex;
}

.modal-glass-card {
    background: var(--modal-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    max-width: 440px;
    width: 100%;
    padding: 28px;
    box-shadow: var(--shadow-md);
    animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-glass-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.modal-glass-header h3 {
    margin: 0;
    font-size: 17px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-password-group {
    position: relative;
    margin-top: 14px;
}

.input-dark-field {
    width: 100%;
    padding: 12px 42px 12px 16px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-btn);
    color: var(--text-heading);
    font-size: 14px;
    outline: none;
    font-family: monospace;
    letter-spacing: 1px;
}

.input-dark-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.toggle-pwd-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-faint);
    cursor: pointer;
    font-size: 14px;
}

/* Toast Bubble Notification */
.store-toast-bubble {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-heading);
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-md);
    font-size: 13.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 100060;
}

.store-toast-bubble.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .spotlight-hero {
        flex-direction: column-reverse;
        align-items: flex-start;
        padding: 28px;
    }
    .spotlight-art-box {
        display: none;
    }
}

@media (max-width: 640px) {
    .studio-top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .studio-nav-actions {
        width: 100%;
        justify-content: space-between;
    }
    .discovery-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .toolbar-right-controls {
        width: 100%;
        justify-content: space-between;
    }
    .search-input-box {
        width: 100%;
    }
    .search-input-box:focus {
        width: 100%;
    }
    .tracks-bento-grid {
        grid-template-columns: 1fr;
    }
    .spotlight-title {
        font-size: 26px;
    }
}

/* ==========================================================================
   TRACK DETAIL STUDIO (SINGLE TRACK PAGE)
   ========================================================================== */
.track-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0 18px;
    position: relative;
    z-index: 2;
    min-width: 0;
}

.audio-breadcrumb-wrapper {
    flex-grow: 1;
    min-width: 0;
    position: relative;
    overflow: hidden;
}

.audio-breadcrumb-wrapper .breadcrumb {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    font-size: 13px !important;
    margin-bottom: 0 !important;
    padding: 4px 28px 4px 0 !important;
    list-style: none;
    background: transparent !important;
}

.audio-breadcrumb-wrapper .breadcrumb::-webkit-scrollbar {
    display: none;
}

.audio-breadcrumb-wrapper .breadcrumb-item {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    font-size: 13px !important;
    color: var(--text-muted, #64748b);
}

.audio-breadcrumb-wrapper .breadcrumb-item a {
    color: var(--text-muted, #64748b);
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap !important;
}

.audio-breadcrumb-wrapper .breadcrumb-item a:hover {
    color: var(--accent-primary, #6366f1);
}

.audio-breadcrumb-wrapper .breadcrumb-item + .breadcrumb-item::before {
    content: "/" !important;
    color: var(--text-faint, #94a3b8);
    opacity: 0.6;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 300;
}

.audio-breadcrumb-wrapper .breadcrumb-item.active {
    color: var(--text-heading, #1e293b);
    font-weight: 600;
    white-space: nowrap !important;
}

/* Lớp phủ mờ Gradient Edge giúp chữ dài mờ dần sang bên phải siêu mượt */
.audio-breadcrumb-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 28px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, var(--bg-surface, #ffffff) 100%);
    pointer-events: none;
    transition: background 0.3s ease;
}

#pns-audio-studio-wrap[data-theme="dark"] .audio-breadcrumb-wrapper::after {
    background: linear-gradient(to right, rgba(15, 23, 42, 0) 0%, var(--bg-surface, #0f172a) 100%);
}

#pns-audio-studio-wrap[data-theme="dark"] .audio-breadcrumb-wrapper .breadcrumb-item {
    color: var(--text-muted, #94a3b8);
}

#pns-audio-studio-wrap[data-theme="dark"] .audio-breadcrumb-wrapper .breadcrumb-item a {
    color: var(--text-muted, #94a3b8);
}

#pns-audio-studio-wrap[data-theme="dark"] .audio-breadcrumb-wrapper .breadcrumb-item a:hover {
    color: var(--accent-primary, #818cf8);
}

#pns-audio-studio-wrap[data-theme="dark"] .audio-breadcrumb-wrapper .breadcrumb-item.active {
    color: var(--text-heading, #f8fafc);
}

/* Nút quay lại thư viện tối ưu hóa responsive */
.btn-back-library {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    font-size: 13px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

@media (max-width: 640px) {
    .track-nav-bar {
        padding: 10px 0 14px;
        gap: 8px;
    }
    .audio-breadcrumb-wrapper .breadcrumb {
        font-size: 12px !important;
        padding-right: 24px !important;
    }
    .audio-breadcrumb-wrapper .breadcrumb-item,
    .audio-breadcrumb-wrapper .breadcrumb-item a {
        font-size: 12px !important;
    }
    .audio-breadcrumb-wrapper .breadcrumb-item + .breadcrumb-item::before {
        padding: 0 6px;
        font-size: 11px;
    }
    .btn-back-library {
        width: 34px;
        height: 34px;
        padding: 0 !important;
        border-radius: 50% !important;
        justify-content: center;
    }
    .btn-back-library .back-text {
        display: none;
    }
}

.track-hero-studio {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 26px 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    z-index: 1;
}

.track-hero-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    align-items: center;
}

/* 3D Vinyl Album Art Stage - Sleek Compact Studio Edition */
.vinyl-art-stage {
    position: relative;
    width: 220px;
    height: 200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.vinyl-disc {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: radial-gradient(circle, #1c1c20 30%, #0c0c0e 65%, #232328 85%, #0c0c0e 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    animation: vinylSpin 12s linear infinite paused;
    z-index: 1;
    transform: translateX(0px);
    opacity: 0;
}

.vinyl-art-stage:hover .vinyl-disc {
    transform: translateX(16px);
    opacity: 0.9;
}

.vinyl-art-stage.is-playing .vinyl-disc {
    transform: translateX(42px);
    opacity: 1;
    animation-play-state: running;
}

@keyframes vinylSpin {
    from { transform: translateX(42px) rotate(0deg); }
    to { transform: translateX(42px) rotate(360deg); }
}

.vinyl-grooves {
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: repeating-radial-gradient(circle, transparent 0, transparent 2px, rgba(255, 255, 255, 0.03) 3px, rgba(0, 0, 0, 0.25) 4px);
    box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.05),
                inset 0 0 20px rgba(0, 0, 0, 0.85);
}

.vinyl-center-label {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #06B6D4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    border: 4px solid #141416;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}

.vinyl-album-cover {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.06);
    z-index: 2;
    background: var(--bg-card);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

[data-theme="dark"] .vinyl-album-cover {
    box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Gáy bao bì đĩa than và lớp kính phản chiếu studio cao cấp */
.vinyl-album-cover::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.22), transparent);
    z-index: 3;
    pointer-events: none;
}

.vinyl-album-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.03) 40%, transparent 60%);
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    z-index: 3;
}

.vinyl-album-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.vinyl-art-stage:hover .vinyl-album-cover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -6px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.vinyl-art-stage:hover .vinyl-album-img {
    transform: scale(1.03);
}

/* Hero Information & Player Controls */
.track-hero-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    min-width: 0;
}

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

.track-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    background: var(--cat-bg, var(--primary-light));
    color: var(--cat-color, var(--primary));
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    border: 1px solid var(--cat-border, var(--border-glow));
    width: fit-content;
    text-decoration: none;
    transition: var(--transition);
}

.track-category-pill:hover {
    filter: brightness(0.95);
    transform: translateY(-1px);
}

.track-hero-title {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.5px;
    color: var(--text-heading);
    margin: 0;
    word-break: break-word;
}

/* Nghệ sĩ & Tác giả: Thanh lịch, không gãy chữ */
.track-hero-artist-bar {
    font-size: 15px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
}

.artist-entity {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.role-label {
    color: var(--text-muted);
    font-weight: 400;
}

.entity-name {
    color: var(--text-heading);
    font-weight: 700;
    white-space: nowrap;
}

.composer-link {
    color: var(--accent-primary, #6366f1);
    text-decoration: none;
    transition: all 0.2s ease;
}

.composer-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.composer-link i {
    font-size: 10px;
    opacity: 0.75;
}

/* Dải Metadata thanh gọn chuẩn Spotify/Apple Music */
.track-hero-meta-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.meta-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.meta-bar-item i {
    color: var(--accent-primary, #6366f1);
    font-size: 12px;
    opacity: 0.85;
}

.meta-dot {
    color: var(--text-faint, #94a3b8);
    opacity: 0.5;
    font-size: 11px;
    user-select: none;
}

.meta-download-tag {
    color: #059669;
    font-weight: 600;
}

.meta-download-tag i {
    color: #059669;
}

#pns-audio-studio-wrap[data-theme="dark"] .meta-download-tag {
    color: #10b981;
}

#pns-audio-studio-wrap[data-theme="dark"] .meta-download-tag i {
    color: #10b981;
}

/* Interactive Wavesurfer Waveform Box - Full Width 100% */
.waveform-master-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 14px 18px;
    position: relative;
    margin-top: 6px;
    width: 100% !important;
    max-width: 100% !important;
    align-self: stretch !important;
    box-sizing: border-box !important;
}

.waveform-time-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-faint);
    margin-bottom: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.waveform-target-canvas {
    height: 64px;
    width: 100% !important;
    min-width: 100% !important;
    cursor: pointer;
    box-sizing: border-box;
}

/* Player Control Action Row */
.track-control-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.main-play-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-master-play {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 8px 24px var(--primary-glow);
    cursor: pointer;
    transition: var(--transition);
}

.btn-master-play:hover {
    transform: scale(1.08);
    background: var(--primary-hover);
}

.btn-master-play.is-playing {
    background: var(--accent-rose);
    box-shadow: 0 8px 24px rgba(225, 29, 72, 0.35);
}

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

.btn-round-action {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-body);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-round-action:hover {
    background: var(--bg-card-hover);
    color: var(--text-heading);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-round-action.liked {
    color: var(--accent-rose) !important;
    background: rgba(225, 29, 72, 0.12);
    border-color: rgba(225, 29, 72, 0.25);
}

/* Speed Toolbar */
.audio-playback-settings {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    padding: 4px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-subtle);
}

.btn-speed-pill {
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-speed-pill.active {
    background: var(--bg-surface);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* Dual Column Layout */
.track-content-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
    margin-bottom: 40px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.track-content-layout > * {
    min-width: 0;
    max-width: 100%;
}

/* Lyrics Studio Card */
.lyrics-studio-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    min-width: 0;
    max-width: 100%;
}

.lyrics-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.lyrics-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lyrics-icon-bubble {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.lyrics-body-content {
    font-size: 16px;
    line-height: 2.1;
    color: var(--text-body);
    max-height: 480px;
    overflow-y: auto;
    padding-right: 14px;
}

.lyrics-body-content p {
    margin-bottom: 12px;
}

.lyrics-body-content ul {
    list-style: none;
    padding-left: 0;
}

.lyrics-body-content li {
    padding: 6px 12px;
    border-radius: 8px;
    transition: var(--transition);
}

.lyrics-body-content li:hover {
    background: var(--bg-card);
    color: var(--primary);
}

/* Sidebar Specs Card */
.sidebar-specs-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.sidebar-title {
    font-size: 16px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.spec-list-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.spec-list-table tr {
    border-bottom: 1px solid var(--border-subtle);
}

.spec-list-table tr:last-child {
    border-bottom: none;
}

.spec-list-table td {
    padding: 10px 0;
}

.spec-label {
    color: var(--text-muted);
    width: 40%;
}

.spec-value {
    color: var(--text-heading);
    font-weight: 600;
    text-align: right;
}

/* Related Tracks List */
.related-tracks-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.related-track-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
    text-decoration: none;
    cursor: pointer;
}

.related-track-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.related-track-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 12px;
    flex-shrink: 0;
}

.related-track-meta {
    min-width: 0;
    flex-grow: 1;
}

.related-track-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-track-sub {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 992px) {
    .track-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        width: 100%;
    }
    .vinyl-art-stage {
        justify-content: center;
        margin-bottom: 20px;
    }
    .track-hero-content {
        align-items: center;
        width: 100% !important;
    }
    .track-badge-group {
        justify-content: center;
    }
    .track-hero-artist-bar {
        justify-content: center;
    }
    .track-hero-meta-bar {
        justify-content: center;
    }
    .track-content-layout {
        grid-template-columns: 1fr;
    }
    .track-control-actions {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .track-hero-studio {
        padding: 20px 12px;
        border-radius: 20px;
        margin-bottom: 20px;
    }
    .track-hero-title {
        font-size: 21px;
        line-height: 1.3;
    }
    .track-hero-artist-bar {
        font-size: 13.5px;
        gap: 4px 8px;
    }
    .track-hero-meta-bar {
        font-size: 12px;
        gap: 4px 6px;
    }
    .vinyl-art-stage {
        width: 200px;
        height: 200px;
        margin-bottom: 14px;
    }
    .vinyl-disc, .vinyl-album-cover {
        width: 175px;
        height: 175px;
    }
    .waveform-master-card {
        padding: 10px 12px !important;
        border-radius: 14px !important;
        margin-top: 10px;
    }
    .waveform-time-row {
        font-size: 11px;
        margin-bottom: 6px;
    }
    .waveform-target-canvas {
        height: 60px !important;
    }
    .track-control-actions {
        gap: 10px;
        margin-top: 6px;
    }
    .main-play-group {
        gap: 8px;
    }
    .btn-master-play {
        width: 52px;
        height: 52px;
        font-size: 18px;
    }
    .btn-speed-pill {
        padding: 4px 7px;
        font-size: 11px;
    }
    .lyrics-header-bar {
        gap: 10px;
    }
    #btnCopyLyrics {
        padding: 6px 10px !important;
        gap: 0 !important;
        flex-shrink: 0;
        min-width: 32px;
        justify-content: center;
    }
    #btnCopyLyrics .btn-copy-lyrics-text {
        display: none !important;
    }

    /* Tối ưu chống tràn cho phần Nội dung & Thẻ sản phẩm */
    .track-content-layout {
        gap: 20px;
        margin-bottom: 24px;
    }
    .lyrics-studio-card {
        padding: 16px 12px !important;
        border-radius: 16px !important;
        margin-bottom: 16px !important;
    }
    .sidebar-specs-card {
        padding: 16px 12px !important;
        border-radius: 16px !important;
        margin-bottom: 16px !important;
    }
    .lyrics-body-content {
        font-size: 14.5px;
        line-height: 1.9;
        max-height: 420px;
        padding-right: 6px;
    }
    .audio-product-embed-card {
        padding: 12px 10px !important;
        border-radius: 14px !important;
    }
    .audio-product-embed-thumb {
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
    }
    .sidebar-product-thumb {
        width: 52px !important;
        height: 52px !important;
        min-width: 52px !important;
    }
    .audio-product-title a {
        font-size: 13.5px !important;
    }
    .badge-embed-tag, .badge-embed-stock {
        font-size: 9.5px !important;
        padding: 1.5px 6px !important;
    }
    .btn-audio-buy-now {
        font-size: 12.5px !important;
        padding: 7px 12px !important;
        white-space: normal !important;
    }
    .btn-sidebar-order-cta {
        font-size: 11.5px !important;
        padding: 8px 8px !important;
        white-space: normal !important;
        line-height: 1.3 !important;
    }
    .sidebar-guarantee-note {
        font-size: 10px !important;
        line-height: 1.35 !important;
    }

    /* Ẩn sticky footer audio player trên trang chi tiết để không đè nút Chatbot và không gây xung đột với Wavesurfer */
    #sticky-audio-player {
        display: none !important;
    }
}

/* ==========================================================================
   COMMERCIAL AUDIO PRODUCT SHOWCASE (IN-CONTENT & SIDEBAR BUY BOX)
   ========================================================================== */
.audio-product-embed-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    min-width: 0;
    max-width: 100%;
}
.audio-product-embed-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.audio-product-embed-thumb {
    width: 76px;
    height: 76px;
    min-width: 76px;
    background: #ffffff;
}
.sidebar-product-thumb {
    width: 58px;
    height: 58px;
    min-width: 58px;
    background: #ffffff;
}
.badge-embed-tag {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    border: 1px solid var(--border-glow);
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
}
.badge-embed-stock {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--accent-emerald);
    background: rgba(5, 150, 105, 0.1);
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
}
.audio-product-title a {
    color: var(--text-heading);
    font-weight: 700;
    font-size: 14.5px;
    transition: color 0.2s;
}
.audio-product-title a:hover {
    color: var(--primary);
}
.btn-audio-buy-now {
    background: var(--primary);
    color: #ffffff !important;
    font-size: 12px;
    padding: 6px 14px;
    border: none;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
    transition: var(--transition);
    white-space: nowrap;
}
.btn-audio-buy-now:hover {
    background: var(--primary-hover);
    transform: scale(1.03);
}
.btn-audio-view-detail {
    background: var(--btn-glass-bg);
    color: var(--text-body) !important;
    border: 1px solid var(--border-subtle);
    font-size: 11.5px;
    padding: 5px 12px;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-audio-view-detail:hover {
    background: var(--btn-glass-hover);
    color: var(--text-heading) !important;
}

/* Sidebar Product Buybox */
.sidebar-product-buybox {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    min-width: 0;
    max-width: 100%;
}
.sidebar-product-buybox:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-md);
}
.sidebar-product-name a {
    color: var(--text-heading);
    transition: color 0.2s;
}
.sidebar-product-name a:hover {
    color: var(--primary);
}
.btn-sidebar-order-cta {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff !important;
    font-size: 12.5px;
    letter-spacing: 0.3px;
    border: none;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
    transition: var(--transition);
}
.btn-sidebar-order-cta:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4);
}

/* Tránh xung đột kép: Trang đơn bài hát đã có Wavesurfer Player riêng, ẩn sticky player footer */
body:has(#pns-audio-studio-wrap) #sticky-audio-player,
#pns-audio-studio-wrap ~ #sticky-audio-player,
#sticky-audio-player.track-single-hidden {
    display: none !important;
}

