/* ==========================================================================
   SonicVault - Modern Dark Audio Platform Theme
   ========================================================================== */

:root {
    --bg-main: #0a0d14;
    --bg-sidebar: #0e131d;
    --bg-card: #141b29;
    --bg-card-hover: #1c2638;
    --bg-surface: #121824;
    
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --primary-glow: rgba(59, 130, 246, 0.35);
    
    --accent-green: #10b981;
    --accent-green-glow: rgba(16, 185, 129, 0.3);
    --accent-gold: #f59e0b;
    --accent-purple: #8b5cf6;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --border-subtle: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    --player-height: 84px;
    --sidebar-width: 270px;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

*:focus, *:active {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

::selection {
    background: transparent !important;
    color: inherit;
}

::-moz-selection {
    background: transparent !important;
    color: inherit;
}

body {
    font-family: 'Plus Jakarta Sans', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #0a0d14 !important;
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent !important;
}

input, textarea {
    -webkit-user-select: text !important;
    user-select: text !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: #242f44;
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* ==========================================================================
   Layout Architecture
   ========================================================================== */

.app-container {
    display: flex;
    min-height: 100vh;
    padding-bottom: var(--player-height);
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    position: fixed;
    top: 0;
    bottom: var(--player-height);
    left: 0;
    z-index: 20;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 20px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo-img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    border: 1.5px solid rgba(234, 179, 8, 0.4);
    box-shadow: 0 0 14px rgba(234, 179, 8, 0.25);
}

.brand-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-title-main {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: #fff;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #eab308;
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.3);
    padding: 1px 6px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    overflow-y: auto;
}

.nav-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
    padding: 10px 12px 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.nav-item:hover {
    color: #fff;
    background: var(--bg-card-hover);
}

.nav-item.active {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 4px 14px var(--primary-glow);
}

.sidebar-ad-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-top: 16px;
    position: relative;
    overflow: hidden;
}

.ad-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 9px;
    font-weight: 800;
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent-gold);
    padding: 2px 6px;
    border-radius: 4px;
}

.sidebar-ad-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.sidebar-ad-card p {
    font-size: 11.5px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.btn-upgrade {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-upgrade:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.library-stats-box {
    margin-top: 16px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    border: 1px solid var(--border-subtle);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 4px;
}
.stat-row:last-child { margin-bottom: 0; }
.stat-label { color: var(--text-muted); }
.stat-val { font-weight: 700; color: #fff; }
.text-green { color: var(--accent-green); }

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 24px 32px 140px;
    max-width: calc(100vw - var(--sidebar-width));
}

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

.search-wrapper {
    flex: 1;
    max-width: 680px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 16px;
    font-size: 16px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-wrapper input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: #fff;
    padding: 12px 42px 12px 46px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.search-wrapper input:focus {
    border-color: var(--primary);
    background: var(--bg-card-hover);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.btn-clear {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
}
.btn-clear.hidden { display: none; }

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

.lang-dropdown-wrapper {
    position: relative;
}

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #1e293b;
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 1000;
    min-width: 160px;
    backdrop-filter: blur(12px);
}

.lang-menu.hidden {
    display: none;
}

.lang-opt {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-opt:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #fff;
}

.lang-opt.active {
    background: var(--primary);
    color: #fff;
}

.btn-license-info {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.btn-license-info:hover {
    color: #fff;
    border-color: var(--border-hover);
}

.btn-pro {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    border: none;
    padding: 9px 18px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
    transition: var(--transition);
}
.btn-pro:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45);
}

/* Billboard Ad Banner */
.ad-billboard-container {
    background: linear-gradient(90deg, #131d2e 0%, #1e293b 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-lg);
    padding: 18px 24px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.ad-slot-header {
    margin-bottom: 6px;
}

.ad-tag {
    font-size: 9.5px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
}

.ad-billboard-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ad-pill {
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent-gold);
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    display: inline-block;
    margin-bottom: 4px;
}

.ad-content-left h3 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.ad-content-left p {
    font-size: 12.5px;
    color: var(--text-secondary);
}

.btn-ad-cta {
    background: #fff;
    color: #0f172a;
    border: none;
    padding: 8px 18px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-ad-cta:hover {
    background: #e2e8f0;
    transform: scale(1.02);
}

/* Genre Pills */
.genre-pill-section {
    margin-bottom: 24px;
}

.genre-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
}
.genre-pills::-webkit-scrollbar { height: 4px; }

.pill {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.pill:hover {
    color: #fff;
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.pill-fav {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.08);
    color: #fca5a5;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pill-fav:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #fff;
}

.pill-fav.active {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    border-color: #ef4444 !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.pill.active {
    background: #fff;
    color: #0a0d14;
    font-weight: 700;
    border-color: #fff;
}

/* Toolbar */
.track-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.result-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}
.checkbox-container input {
    cursor: pointer;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-label {
    font-size: 13px;
    color: var(--text-muted);
}

.sort-select {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: #fff;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    cursor: pointer;
}

/* ==========================================================================
   Music Library Table Styles
   ========================================================================== */

.tracks-container {
    width: 100%;
    margin-top: 10px;
}

.tracks-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    table-layout: auto;
}

#tracksTableBody {
    transition: opacity 0.15s ease;
}

.tracks-table th {
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
    letter-spacing: 0.5px;
    user-select: none;
}

.th-play { width: 50px; text-align: center; }
.th-cover { width: 60px; }
.th-title { min-width: 250px; }
.th-genre { width: 200px; }
.th-license { width: 120px; }
.th-actions { width: 230px; text-align: right; }

.track-row {
    background: var(--bg-card);
    transition: all 0.2s ease;
}

.track-row td {
    padding: 10px 14px;
    vertical-align: middle;
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
}

.track-row td:first-child {
    border-top-left-radius: var(--radius-md);
    border-bottom-left-radius: var(--radius-md);
    border-left: 1px solid transparent;
}

.track-row td:last-child {
    border-top-right-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
    border-right: 1px solid transparent;
}

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

.track-row.playing {
    background: rgba(59, 130, 246, 0.12);
}
.track-row.playing td {
    border-color: rgba(59, 130, 246, 0.3);
}

.btn-table-play {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-table-play:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.08);
}

.track-row.playing .btn-table-play {
    background: var(--primary);
    color: #fff;
}

.table-cover-img {
    width: 48px;
    height: 48px;
    min-width: 48px;
    max-width: 48px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.td-title {
    max-width: 400px;
}

.track-title-text {
    font-size: 14.5px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.track-row.playing .track-title-text {
    color: #60a5fa;
}

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

.genre-tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.genre-tag {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.inst-tag {
    background: rgba(139, 92, 246, 0.15);
    color: #c084fc;
    border: 1px solid rgba(139, 92, 246, 0.3);
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
}

.vocal-tag {
    background: rgba(236, 72, 153, 0.15);
    color: #f472b6;
    border: 1px solid rgba(236, 72, 153, 0.35);
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
}

.license-pill {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    display: inline-block;
}

.td-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.btn-row-dl {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.btn-row-dl:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-row-cert {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition);
}

.btn-row-cert:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--border-hover);
    transform: scale(1.08);
}

/* In-Feed Sponsored Card */
.in-feed-ad-row {
    background: linear-gradient(90deg, #1e1b4b, #172554);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 6px 0;
}

.in-feed-ad-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ad-icon-box {
    font-size: 28px;
}

.in-feed-ad-left h4 {
    font-size: 14.5px;
    color: #fff;
    font-weight: 700;
}

.in-feed-ad-left p {
    font-size: 12px;
    color: #cbd5e1;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 60px 0;
    color: var(--text-secondary);
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

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

/* Load More Wrapper */
.load-more-wrapper {
    text-align: center;
    margin: 40px 0 20px;
}

.btn-load-more {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 14px 44px;
    border-radius: var(--radius-full);
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.btn-load-more:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 6px 24px var(--primary-glow);
    transform: translateY(-2px);
}

/* ==========================================================================
   Bottom Audio Player Bar
   ========================================================================== */

/* ==========================================================================
   Bottom Audio Player Bar (Fixed at bottom)
   ========================================================================== */

.bottom-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(10, 13, 20, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 999;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);
}

.player-left {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 320px;
    min-width: 0;
}

.player-cover {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.player-cover.hidden {
    display: none;
}

.player-meta {
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.player-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-prompt {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.btn-fav-player {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-fav-player:hover {
    transform: scale(1.2);
}

/* Center Controls */
.player-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    max-width: 600px;
}

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

.btn-control {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    padding: 6px;
    transition: var(--transition);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-control:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.btn-control.play-btn {
    width: 38px;
    height: 38px;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    box-shadow: 0 4px 12px var(--primary-glow);
}

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

.player-progress-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.player-progress-bar span {
    font-size: 11px;
    color: var(--text-muted);
    font-family: monospace;
    width: 36px;
}

#durationTime {
    text-align: right;
}

.player-progress-bar input[type="range"] {
    flex: 1;
    height: 4px;
    accent-color: var(--primary);
    cursor: pointer;
    border-radius: var(--radius-full);
}

/* Player Right */
.player-right {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 300px;
    justify-content: flex-end;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vol-icon {
    font-size: 14px;
}

.volume-control input[type="range"] {
    width: 75px;
    height: 4px;
    accent-color: var(--primary);
    cursor: pointer;
}

.btn-player-action {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.btn-player-action:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-player-license {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: var(--transition);
}

.btn-player-license:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--border-hover);
    transform: scale(1.08);
}

/* ==========================================================================
   Modals
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3500;
    opacity: 1;
    transition: opacity 0.2s ease;
}
.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    max-width: 680px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.btn-modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
}
.btn-modal-close:hover { color: #fff; }

.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-badge {
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.modal-header h2 {
    font-size: 22px;
    color: #fff;
    margin: 8px 0 4px;
}

.modal-header p {
    font-size: 13px;
    color: var(--text-secondary);
}

.modal-ad-banner {
    background: #1e293b;
    border: 1px dashed rgba(245, 158, 11, 0.4);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 20px;
    text-align: center;
}

.ad-box-mock strong {
    font-size: 13px;
    color: var(--accent-gold);
    display: block;
    margin-top: 2px;
}
.ad-box-mock p {
    font-size: 11.5px;
    color: #94a3b8;
}

.download-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.dl-option-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.dl-option-card.pro-card {
    border-color: rgba(59, 130, 246, 0.5);
    background: linear-gradient(180deg, rgba(30, 58, 138, 0.25) 0%, rgba(20, 27, 41, 1) 100%);
}

.opt-tag {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.opt-tag.tag-pro {
    color: var(--primary);
}

.dl-option-card h3 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 6px;
}

.opt-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.opt-features {
    list-style: none;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.btn-dl-free {
    background: var(--bg-surface);
    color: #fff;
    border: 1px solid var(--border-hover);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.btn-dl-free:hover {
    background: #334155;
}

.cert-input-wrapper {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cert-input-label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--accent-gold);
    text-align: left;
}

.cert-input-text {
    background: #0f172a;
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: #fff;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    width: 100%;
    outline: none;
    transition: var(--transition);
}

.cert-input-text:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.pro-btn-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-dl-pro {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px var(--primary-glow);
    text-align: center;
}
.btn-dl-pro:hover {
    background: var(--primary-hover);
}

.btn-dl-cert {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.4);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}
.btn-dl-cert:hover {
    background: rgba(16, 185, 129, 0.25);
    border-color: var(--accent-green);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.modal-share-bar {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.btn-modal-share {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-hover);
    color: #fff;
    padding: 9px 18px;
    border-radius: var(--radius-full);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-modal-share:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px var(--primary-glow);
}

/* Pricing Grid */
.pricing-card {
    max-width: 680px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.plan-card.highlighted {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.15) 0%, rgba(20, 27, 41, 1) 100%);
}

.popular-tag {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: var(--radius-full);
}

.plan-card h3 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 8px;
}

.plan-card .price {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}
.plan-card .price span {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: normal;
}

.plan-card ul {
    list-style: none;
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
    flex: 1;
}

.btn-plan {
    width: 100%;
    padding: 10px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-plan.current {
    background: var(--bg-surface);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
}

.btn-plan.subscribe {
    background: var(--primary);
    color: #fff;
}
.btn-plan.subscribe:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 14px var(--primary-glow);
}

/* ==========================================================================
   Extended New Features: Tags, Favorites, Terms, and Toast
   ========================================================================== */

/* Favorites Badge in Sidebar */
.fav-badge {
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: auto;
}

/* Sidebar Footer Link */
.sidebar-footer-links {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}
.btn-text-link {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 11.5px;
    cursor: pointer;
    text-decoration: underline;
    transition: var(--transition);
}
.btn-text-link:hover {
    color: var(--primary);
}

/* Terms Button in Header */
.btn-terms-info {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}
.btn-terms-info:hover {
    color: #fff;
    border-color: var(--border-hover);
}

/* Quick Creator Mood & Purpose Tags Bar */
.creator-tags-section {
    margin-bottom: 16px;
}
.creator-tags-scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}
.tags-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
}
.tag-chip {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}
.tag-chip:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-1px);
}
.tag-chip.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Row Action Buttons: Heart & Share */
.btn-fav-row, .btn-share-row {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}
.btn-fav-row:hover, .btn-share-row:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: var(--primary);
    transform: scale(1.08);
}
.btn-fav-row.active {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #ef4444;
}

/* Player Heart Button */
.btn-fav-player {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    transition: var(--transition);
}
.btn-fav-player:hover {
    transform: scale(1.2);
}

/* Terms Modal */
.terms-card {
    max-width: 820px;
    width: 94%;
}
.terms-content-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 24px;
    max-height: 520px;
    overflow-y: auto;
    font-size: 13.5px;
    line-height: 1.8;
    color: var(--text-secondary);
}
.terms-content-box h3 {
    color: #58a6ff;
    margin: 16px 0 8px;
    font-size: 14px;
}
.terms-content-box h3:first-child {
    margin-top: 0;
}
.terms-content-box p {
    margin: 4px 0 8px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 90px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast {
    background: #1e293b;
    border: 1px solid #3b82f6;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    font-size: 13.5px;
    font-weight: 600;
    pointer-events: auto;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes toastSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Mobile Brand Header Bar */
.mobile-brand-header {
    display: none;
    margin-bottom: 12px;
}

.brand-logo-img-sm {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    border: 1.5px solid rgba(234, 179, 8, 0.4);
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.25);
}

.brand-title-main-sm {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: #fff;
}

.brand-subtitle-sm {
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: #eab308;
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.3);
    padding: 1px 5px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

.mobile-brand-actions {
    margin-left: auto;
}

.btn-mobile-terms-top {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #cbd5e1;
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

.btn-mobile-terms-top:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    color: #fff;
}

/* Desktop Only helper */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}

/* Mobile Footer Legal & Info Links */
.mobile-footer-links {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 24px 0 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

@media (max-width: 768px) {
    .mobile-footer-links {
        display: flex !important;
    }
}

.btn-footer-link {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-footer-link:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-divider {
    color: var(--text-muted);
    font-size: 11px;
}

/* Universal Responsive Breakpoints (All Smartphones, Tablets, PCs) */

.btn-terms-info, .btn-license-info, .btn-pro, .lang-btn {
    white-space: nowrap;
    flex-shrink: 0;
}

/* Tablet & iPad (<= 1024px) */
@media (max-width: 1024px) {
    .sidebar { display: none !important; }
    .mobile-brand-header { display: flex !important; align-items: center; }
    .main-content { 
        margin-left: 0 !important; 
        width: 100vw !important; 
        max-width: 100vw !important; 
        padding: 16px 16px 140px !important; 
        overflow-x: hidden !important;
    }
    .tracks-table th:nth-child(4), .tracks-table td:nth-child(4) { display: none !important; }
    .pricing-grid { grid-template-columns: 1fr; }
    .dl-options-grid { grid-template-columns: 1fr; }
}

/* Smartphone & Mobile (<= 768px) */
@media (max-width: 768px) {
    .main-content {
        padding: 12px 10px 130px !important;
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    .mobile-brand-header {
        display: flex !important;
        align-items: center;
        margin-bottom: 10px;
    }

    /* Top Header */
    .top-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        margin-bottom: 12px !important;
    }
    
    .search-wrapper {
        width: 100% !important;
        max-width: 100% !important;
    }
    .search-wrapper input {
        font-size: 12.5px !important;
        padding: 9px 36px 9px 40px !important;
    }
    
    /* Header Button Row on Mobile: [🌐 Language] [⚖️ 약관] [👑 Pro] */
    .header-actions {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 6px !important;
        width: 100% !important;
        padding: 0 !important;
    }
    
    .lang-dropdown-wrapper {
        flex: 0 0 auto !important;
        position: relative !important;
        z-index: 50 !important;
    }
    
    .btn-icon {
        padding: 7px 10px !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        color: #ffffff !important;
        justify-content: center !important;
        height: 36px !important;
        border-radius: var(--radius-full) !important;
        background: linear-gradient(135deg, #1e293b, #0f172a) !important;
        border: 1px solid rgba(59, 130, 246, 0.4) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    }

    .lang-menu {
        top: calc(100% + 4px) !important;
        left: 0 !important;
        right: 0 !important;
        min-width: 140px !important;
        z-index: 9999 !important;
    }

    .btn-terms-info {
        flex: 0 0 auto !important;
        padding: 7px 10px !important;
        font-size: 11.5px !important;
        font-weight: 600 !important;
        height: 36px !important;
        border-radius: var(--radius-full) !important;
        background: rgba(255, 255, 255, 0.06) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        color: #cbd5e1 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
    }

    .btn-pwa-header {
        display: none !important;
    }

    .btn-pro {
        flex: 1 !important;
        padding: 7px 12px !important;
        font-size: 12px !important;
        border-radius: var(--radius-full) !important;
        white-space: nowrap !important;
        height: 36px !important;
        justify-content: center !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
    }

    /* Ad Billboard Banner */
    .ad-billboard-container {
        padding: 12px 14px !important;
        margin-bottom: 14px !important;
    }
    .ad-billboard-content {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    .ad-content-left h3 {
        font-size: 13.5px !important;
        line-height: 1.35 !important;
    }
    .ad-content-left p {
        font-size: 11px !important;
    }
    .btn-ad-cta {
        width: 100% !important;
        text-align: center !important;
        padding: 8px 14px !important;
        font-size: 12px !important;
    }

    /* Genre & Tag Scrolls */
    .creator-tags-scroll, .genre-pills {
        overflow-x: auto !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 4px !important;
    }
    .creator-tags-scroll::-webkit-scrollbar, .genre-pills::-webkit-scrollbar { display: none !important; }
    
    .tag-chip, .pill {
        padding: 5px 10px !important;
        font-size: 11.5px !important;
        flex-shrink: 0 !important;
    }

    /* Toolbar & Filters */
    .track-toolbar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        margin-bottom: 10px !important;
    }
    .toolbar-left {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }
    .result-count {
        font-size: 12px !important;
    }
    .checkbox-container {
        font-size: 11.5px !important;
    }
    .toolbar-right {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }
    .sort-select {
        font-size: 12px !important;
        padding: 5px 8px !important;
        width: 100% !important;
    }

    /* Tracks Table Mobile Fit */
    .tracks-table {
        table-layout: fixed !important;
        width: 100% !important;
        border-spacing: 0 6px !important;
    }
    .tracks-table thead {
        display: none !important;
    }
    
    .tracks-table th:nth-child(4), .tracks-table td:nth-child(4),
    .tracks-table th:nth-child(5), .tracks-table td:nth-child(5) {
        display: none !important;
    }
    
    .th-play, .td-play { 
        width: 32px !important; 
        padding: 6px 0px 6px 2px !important; 
        text-align: center !important;
    }
    .btn-table-play {
        width: 28px !important;
        height: 28px !important;
        font-size: 10px !important;
    }
    
    .th-cover, .td-cover { 
        width: 40px !important; 
        padding: 6px 2px !important; 
    }
    .table-cover-img { 
        width: 36px !important; 
        height: 36px !important; 
        min-width: 36px !important;
        max-width: 36px !important;
        border-radius: 6px !important;
    }
    
    .td-title { 
        width: auto !important;
        padding: 6px 6px !important; 
        overflow: hidden !important;
    }
    .track-title-text { 
        font-size: 12.5px !important; 
        margin-bottom: 1px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 160px !important;
    }
    .track-prompt-text { 
        font-size: 10px !important; 
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 160px !important;
        display: block !important;
    }
    
    .td-actions { 
        width: 108px !important; 
        padding: 6px 4px 6px 0px !important; 
        text-align: right !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 4px !important;
    }
    .btn-fav-row {
        display: inline-flex !important;
        width: 28px !important;
        height: 28px !important;
        font-size: 13px !important;
        padding: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 6px !important;
        background: rgba(255, 255, 255, 0.06) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        flex-shrink: 0 !important;
    }
    .btn-fav-row.active {
        background: rgba(239, 68, 68, 0.2) !important;
        border-color: #ef4444 !important;
        color: #ef4444 !important;
    }
    .btn-row-dl { 
        padding: 6px 10px !important; 
        font-size: 11px !important; 
        font-weight: 700 !important;
        white-space: nowrap !important;
        border-radius: 6px !important;
        display: inline-flex !important;
        align-items: center !important;
        flex-shrink: 0 !important;
    }
    .btn-share-row, .btn-row-cert { 
        display: none !important; 
    }

    /* Bottom Player Mobile Optimization with Volume toggle */
    .bottom-player {
        height: 64px !important;
        padding: 0 10px !important;
    }
    .player-left {
        width: auto !important;
        max-width: 40% !important;
        gap: 6px !important;
    }
    .player-cover {
        width: 34px !important;
        height: 34px !important;
    }
    .player-title { 
        font-size: 11px !important; 
    }
    .player-prompt { 
        display: none !important; 
    }
    .btn-fav-player { 
        display: none !important; 
    }
    
    .player-center {
        max-width: 38% !important;
        gap: 2px !important;
    }
    .player-controls { 
        gap: 4px !important; 
    }
    .btn-control { 
        font-size: 11px !important; 
        padding: 2px !important; 
    }
    .btn-control.play-btn { 
        width: 26px !important; 
        height: 26px !important; 
        font-size: 10px !important; 
    }
    .player-progress-bar span { 
        display: none !important; 
    }
    
    .player-right {
        display: flex !important;
        width: auto !important;
        align-items: center !important;
        gap: 6px !important;
    }
    .volume-control {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
    }
    .volume-control input {
        display: block !important;
        width: 46px !important;
        height: 4px !important;
    }
    .vol-icon {
        font-size: 14px !important;
        cursor: pointer;
        padding: 2px;
    }
    .btn-player-action {
        padding: 5px 8px !important;
        font-size: 10.5px !important;
    }
    .btn-player-license {
        display: none !important;
    }
}
/* ==========================================================================
   Creator Monetization Toolkit & Restore VIP Styles
   ========================================================================== */

.creator-toolkit-section {
    margin: 18px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(20, 25, 40, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    backdrop-filter: blur(10px);
}

.toolkit-header {
    margin-bottom: 16px;
}

.toolkit-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 3px 8px;
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: #fff;
    border-radius: 20px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.toolkit-title {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toolkit-subtitle {
    font-size: 12.5px;
    color: var(--text-secondary, #94a3b8);
    margin: 0;
}

.toolkit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.toolkit-card {
    position: relative;
    padding: 16px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
    overflow: hidden;
}

.toolkit-card:hover {
    transform: translateY(-3px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 16px rgba(59, 130, 246, 0.2);
}

.toolkit-card .card-tag {
    font-size: 10px;
    font-weight: 700;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.toolkit-card .card-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.toolkit-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 6px 0;
}

.toolkit-card p {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.45;
    margin: 0 0 12px 0;
    flex-grow: 1;
}

.toolkit-card .btn-toolkit {
    font-size: 11.5px;
    font-weight: 700;
    color: #60a5fa;
    transition: color 0.2s;
}

.toolkit-card:hover .btn-toolkit {
    color: #93c5fd;
    text-decoration: underline;
}

/* Card Specific Accents */
.capcut-card:hover { border-color: rgba(236, 72, 153, 0.5); }
.adobe-card:hover { border-color: rgba(239, 68, 68, 0.5); }
.canva-card:hover { border-color: rgba(6, 182, 212, 0.5); }
.mic-card:hover { border-color: rgba(234, 179, 8, 0.5); }

/* Restore VIP Subscription Section */
.restore-vip-container {
    margin-top: 24px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    text-align: center;
}

.restore-header .restore-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #e2e8f0;
    display: block;
    margin-bottom: 10px;
}

.restore-form {
    display: flex;
    gap: 8px;
    max-width: 480px;
    margin: 0 auto 8px auto;
}

.restore-input {
    flex: 1;
    padding: 9px 14px;
    font-size: 13px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    outline: none;
    transition: border-color 0.2s;
}

.restore-input:focus {
    border-color: #3b82f6;
}

.btn-restore-vip {
    padding: 9px 16px;
    font-size: 12.5px;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-restore-vip:hover {
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.restore-hint {
    font-size: 11px;
    color: #64748b;
    margin: 0;
}

/* Slim Sponsor Bar */
.slim-sponsor-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    margin: 10px 0 6px 0;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.slim-sponsor-bar:hover {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(59, 130, 246, 0.4);
}

.sponsor-pill {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: #fff;
    border-radius: 4px;
    white-space: nowrap;
}

.sponsor-text {
    font-size: 12px;
    color: #cbd5e1;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sponsor-link {
    font-size: 11.5px;
    font-weight: 700;
    color: #60a5fa;
    white-space: nowrap;
}

/* Header & Sidebar Toolkit Buttons */
.btn-toolkit-header {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-toolkit-header:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    color: #fff;
    transform: translateY(-1px);
}

.nav-item-toolkit {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(59, 130, 246, 0.1));
    border: 1px solid rgba(236, 72, 153, 0.25);
    border-radius: 10px;
    color: #f1f5f9;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s;
    text-align: left;
}

.nav-item-toolkit:hover {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.25), rgba(59, 130, 246, 0.25));
    border-color: rgba(236, 72, 153, 0.5);
    transform: translateX(3px);
}

.badge-hot {
    font-size: 9px;
    font-weight: 900;
    padding: 1px 5px;
    background: #ef4444;
    color: #fff;
    border-radius: 4px;
    margin-left: auto;
}

/* Toolkit Modal Card */
.toolkit-modal-card {
    max-width: 860px !important;
    width: 92% !important;
    max-height: 88vh;
    overflow-y: auto;
}

/* ==========================================================================
   AstroMerge Sponsor Promo Box (Download Modal)
   ========================================================================== */
.sponsor-promo-box {
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1.5px solid rgba(139, 92, 246, 0.4);
    border-radius: 12px;
    padding: 12px 14px;
    margin: 12px 0 14px 0;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.25);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sponsor-promo-box:hover {
    border-color: rgba(168, 85, 247, 0.7);
    box-shadow: 0 6px 24px rgba(168, 85, 247, 0.4);
    transform: translateY(-2px);
}

.sponsor-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    color: #a855f7;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.sponsor-content {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.sponsor-icon {
    font-size: 28px;
    line-height: 1;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.6));
    animation: floatCat 2.5s ease-in-out infinite;
}

@keyframes floatCat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-4px) rotate(4deg); }
}

.sponsor-text {
    flex: 1;
    overflow: hidden;
}

.sponsor-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.2px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sponsor-sub {
    font-size: 11px;
    font-weight: 600;
    color: #cbd5e1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-sponsor-play {
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px 12px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 800;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
    transition: all 0.2s ease;
}

.btn-sponsor-play:hover {
    background: linear-gradient(135deg, #a855f7 0%, #4f46e5 100%);
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.6);
    transform: scale(1.02);
}

/* ==========================================================================
   3D Mood Sanctuary Hero Showcase (Store App Integration)
   ========================================================================== */
.sanctuary-hero-section {
    margin: 16px 0 24px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(11, 15, 25, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.sanctuary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.sanctuary-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 12px;
    margin-bottom: 6px;
}

.sanctuary-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.3px;
    margin: 0;
}

.sanctuary-desc {
    font-size: 12.5px;
    color: #94a3b8;
    margin: 4px 0 0 0;
}

.btn-sleep-timer-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(167, 139, 250, 0.4);
    border-radius: 24px;
    color: #ddd6fe;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-sleep-timer-trigger:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: #a78bfa;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
}

.btn-sleep-timer-trigger .timer-icon {
    font-size: 15px;
}

.sanctuary-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.sanctuary-card {
    background: rgba(24, 33, 50, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

.sanctuary-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 158, 11, 0.2);
}

.sanctuary-card-art {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #0f172a;
}

.sanctuary-card-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.sanctuary-card:hover .sanctuary-card-art img {
    transform: scale(1.06);
}

.card-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.sanctuary-card:hover .card-play-overlay {
    opacity: 1;
}

.btn-card-play {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f59e0b;
    color: #0b0f19;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.6);
    padding-left: 3px;
    transform: scale(0.9);
    transition: transform 0.2s ease;
}

.sanctuary-card:hover .btn-card-play {
    transform: scale(1);
}

.sanctuary-card-info {
    padding: 12px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-chip {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    margin-bottom: 6px;
    align-self: flex-start;
}

.chip-amber {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.chip-purple {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.35);
}

.chip-blue {
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(14, 165, 233, 0.35);
}

.chip-gold {
    background: rgba(234, 179, 8, 0.18);
    color: #fde047;
    border: 1px solid rgba(234, 179, 8, 0.4);
}

.card-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-desc {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.4;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sleep Timer Modal */
.timer-modal-card {
    max-width: 440px;
    width: 92%;
}

.timer-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 20px 0 16px 0;
}

.btn-timer-opt {
    padding: 13px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-timer-opt:hover {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.15);
    transform: translateY(-1px);
}

.btn-timer-opt.active-timer {
    border-color: #8b5cf6;
    background: #8b5cf6;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

.btn-timer-opt.btn-timer-off {
    grid-column: span 2;
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
    background: rgba(239, 68, 68, 0.08);
}

.btn-timer-opt.btn-timer-off:hover {
    background: rgba(239, 68, 68, 0.18);
    border-color: #ef4444;
}

.timer-status-box {
    text-align: center;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    font-size: 13px;
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Soundscape Ambient Mixer Modal & Controls */
.btn-soundscape-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 20px;
    color: #6ee7b7;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-soundscape-trigger:hover {
    background: rgba(16, 185, 129, 0.22);
    border-color: #10b981;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.soundscape-active {
    color: #10b981 !important;
    border-color: rgba(16, 185, 129, 0.6) !important;
    background: rgba(16, 185, 129, 0.16) !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.35) !important;
}

.soundscape-modal-card {
    max-width: 520px;
    width: 94%;
}

.soundscape-presets-row {
    display: flex;
    gap: 8px;
    margin: 16px 0 20px 0;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.preset-chip {
    flex-shrink: 0;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-chip:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
    color: #6ee7b7;
}

.preset-chip.active-preset {
    background: #10b981;
    border-color: #10b981;
    color: #0b0f19;
    box-shadow: 0 3px 12px rgba(16, 185, 129, 0.4);
}

.preset-chip.preset-off {
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.preset-chip.preset-off:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}

.soundscape-channels-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.sound-channel-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px;
    transition: all 0.25s ease;
}

.sound-channel-card.channel-active {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.12);
}

.channel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.channel-switch-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.channel-checkbox {
    display: none;
}

.channel-switch {
    width: 34px;
    height: 18px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    position: relative;
    transition: background 0.25s ease;
}

.channel-switch::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.25s ease;
}

.channel-checkbox:checked + .channel-switch {
    background: #10b981;
}

.channel-checkbox:checked + .channel-switch::after {
    transform: translateX(16px);
}

.channel-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
}

.channel-vol-badge {
    font-size: 11px;
    font-weight: 800;
    color: #94a3b8;
    background: rgba(0, 0, 0, 0.35);
    padding: 2px 7px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.sound-channel-card.channel-active .channel-vol-badge {
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.3);
}

.channel-desc {
    font-size: 11px;
    color: #94a3b8;
    margin: 0 0 10px 0;
    line-height: 1.35;
}

.channel-slider-wrap {
    width: 100%;
}

.channel-slider {
    width: 100%;
    height: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.12);
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
}

.channel-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #10b981;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.6);
    transition: transform 0.15s ease;
}

.channel-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.soundscape-footer-sync {
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sync-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #94a3b8;
    cursor: pointer;
}

.sync-checkbox-label input {
    cursor: pointer;
    accent-color: #10b981;
}

@media (max-width: 520px) {
    .soundscape-channels-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive Breakpoints */
@media (max-width: 1100px) {
    .sanctuary-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .sanctuary-hero-section {
        padding: 14px;
        margin: 10px 0 16px 0;
    }
    .sanctuary-title {
        font-size: 17px;
    }
    .sanctuary-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .card-title {
        font-size: 12.5px;
    }
    .card-desc {
        display: none; /* Hide on very small screens to keep card compact */
    }
    .sanctuary-card-info {
        padding: 8px 10px;
    }
}

/* ==========================================================================
   3D Sanctuary Immersive Fullscreen Player Modal (Google Play Slide 1 & 2 Style)
   ========================================================================== */

.clickable-player-left {
    cursor: pointer;
    border-radius: 8px;
    padding: 4px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.clickable-player-left:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-player-expand {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: var(--transition);
}

.btn-player-expand:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: #f59e0b;
    color: #fbbf24;
    transform: scale(1.08);
}

/* Modal Shell */
.immersive-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #080b11;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.immersive-modal.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(40px);
}

/* Dynamic Ambient Glow Backdrop (Hardware Accelerated & Smooth) */
.immersive-backdrop {
    position: absolute;
    inset: -15px;
    background-size: cover;
    background-position: center;
    filter: blur(25px) brightness(0.28) saturate(1.6);
    opacity: 0.85;
    transform: translateZ(0);
    will-change: background-image;
    transition: background-image 0.4s ease;
    z-index: 1;
}

/* Center Glass Panel */
.immersive-glass-panel {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    height: 100dvh;
    max-height: 100vh;
    max-width: 620px;
    margin: 0 auto;
    background: rgba(11, 15, 25, 0.94);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.9);
    transform: translateZ(0);
    overflow: hidden;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Fixed Hero Section (Pinned at Top: Artwork, Controls, Volume) */
.immersive-fixed-hero {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: rgba(11, 15, 25, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 20;
    padding: 0 20px 12px;
}

/* Top Bar */
.immersive-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.btn-imm-nav {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f1f5f9;
    border-radius: 20px;
    padding: 6px 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-imm-nav:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.btn-imm-nav .icon-down {
    font-size: 16px;
    line-height: 1;
}

.immersive-top-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.imm-badge {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    padding: 2px 9px;
    border-radius: 12px;
    margin-bottom: 3px;
}

.imm-vault-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #94a3b8;
}

.immersive-top-actions {
    display: flex;
    gap: 8px;
}

.btn-imm-icon {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f1f5f9;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-imm-icon:hover {
    background: rgba(245, 158, 11, 0.18);
    border-color: #fbbf24;
    transform: scale(1.08);
}

/* Scroll Body (Bottom Section: Recommendations Queue Only) */
.immersive-scroll-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 14px 20px calc(36px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    gap: 14px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* Centerpiece 3D Album Artwork */
.immersive-hero-art {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px 0 2px;
}

.imm-art-glow-frame {
    position: relative;
    width: 170px;
    height: 170px;
    max-width: 48vw;
    max-height: 24vh;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 158, 11, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.imm-art-glow-frame:hover {
    transform: scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 35px rgba(245, 158, 11, 0.35);
}

.imm-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Track Meta Details */
.immersive-track-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.imm-meta-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

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

.imm-title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 2px;
    line-height: 1.25;
    letter-spacing: -0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.imm-prompt {
    font-size: 11.5px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.imm-fav-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 17px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.imm-fav-btn:hover {
    transform: scale(1.15);
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
}

/* Glowing Golden Audio Waveform Visualizer */
.imm-waveform {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 28px;
    gap: 2.5px;
    padding: 3px 2px;
    margin: 2px 0;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.wave-pillar {
    flex: 1;
    background: linear-gradient(180deg, #fef08a 0%, #f59e0b 60%, #b45309 100%);
    border-radius: 3px;
    min-height: 4px;
    height: 6px;
    transition: height 0.15s ease;
}

/* Wave animation when playing */
.imm-waveform.is-playing .wave-pillar {
    animation: waveBarPulse 1.2s infinite ease-in-out alternate;
}

.imm-waveform.is-playing .p1  { animation-delay: 0.1s; }
.imm-waveform.is-playing .p2  { animation-delay: 0.3s; }
.imm-waveform.is-playing .p3  { animation-delay: 0.6s; }
.imm-waveform.is-playing .p4  { animation-delay: 0.2s; }
.imm-waveform.is-playing .p5  { animation-delay: 0.7s; }
.imm-waveform.is-playing .p6  { animation-delay: 0.4s; }
.imm-waveform.is-playing .p7  { animation-delay: 0.8s; }
.imm-waveform.is-playing .p8  { animation-delay: 0.15s; }
.imm-waveform.is-playing .p9  { animation-delay: 0.5s; }
.imm-waveform.is-playing .p10 { animation-delay: 0.9s; }
.imm-waveform.is-playing .p11 { animation-delay: 0.35s; }
.imm-waveform.is-playing .p12 { animation-delay: 0.65s; }
.imm-waveform.is-playing .p13 { animation-delay: 0.25s; }
.imm-waveform.is-playing .p14 { animation-delay: 0.75s; }
.imm-waveform.is-playing .p15 { animation-delay: 0.45s; }
.imm-waveform.is-playing .p16 { animation-delay: 0.85s; }
.imm-waveform.is-playing .p17 { animation-delay: 0.2s; }
.imm-waveform.is-playing .p18 { animation-delay: 0.55s; }
.imm-waveform.is-playing .p19 { animation-delay: 0.95s; }
.imm-waveform.is-playing .p20 { animation-delay: 0.3s; }
.imm-waveform.is-playing .p21 { animation-delay: 0.7s; }
.imm-waveform.is-playing .p22 { animation-delay: 0.4s; }
.imm-waveform.is-playing .p23 { animation-delay: 0.8s; }
.imm-waveform.is-playing .p24 { animation-delay: 0.1s; }

@keyframes waveBarPulse {
    0% { height: 4px; opacity: 0.4; }
    50% { height: 24px; opacity: 1; }
    100% { height: 10px; opacity: 0.7; }
}

/* Audio Progress Area */
.imm-progress-area {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.imm-progress-area input[type="range"] {
    width: 100%;
    height: 4px;
    accent-color: #f59e0b;
    cursor: pointer;
    border-radius: 4px;
}

.imm-time-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    font-family: 'JetBrains Mono', monospace;
}

/* Master Playback Controls Row */
.imm-controls-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 2px 0;
}

.imm-ctrl-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #cbd5e1;
    transition: all 0.2s ease;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.imm-ctrl-btn:hover {
    color: #fff;
    transform: scale(1.15);
}

.imm-ctrl-play {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    border: none;
    color: #0a0d14;
    font-size: 21px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
    transition: all 0.2s ease;
}

.imm-ctrl-play:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.65);
}

/* Dedicated Sleek Volume Control Bar */
.imm-volume-bar-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 360px;
    width: 100%;
    margin: 2px auto 0;
    padding: 4px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

.imm-vol-btn {
    background: none;
    border: none;
    font-size: 15px;
    cursor: pointer;
    color: #fbbf24;
    padding: 0 4px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.imm-vol-btn:hover {
    transform: scale(1.15);
}

.imm-vol-slider-wrap {
    flex: 1;
    display: flex;
    align-items: center;
}

#immVolumeBar {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    accent-color: #f59e0b;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.15);
}

.imm-vol-value {
    font-size: 11px;
    font-weight: 700;
    color: #fbbf24;
    font-family: 'JetBrains Mono', monospace;
    min-width: 32px;
    text-align: right;
}

/* Commercial Action Cards */
.imm-action-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 4px 0 2px;
}

.imm-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    min-width: 0;
}

.imm-free-btn {
    background: rgba(30, 41, 59, 0.65);
    color: #f1f5f9;
}

.imm-free-btn:hover {
    background: rgba(51, 65, 85, 0.85);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.imm-pro-btn {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(217, 119, 6, 0.28) 100%);
    border-color: rgba(245, 158, 11, 0.45);
    color: #fef08a;
}

.imm-pro-btn:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.28) 0%, rgba(217, 119, 6, 0.38) 100%);
    border-color: #fbbf24;
    transform: translateY(-1px);
}

.imm-btn-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.imm-btn-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.imm-btn-title {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.imm-btn-sub {
    font-size: 9.5px;
    opacity: 0.8;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Curated Mood Queue Box */
.imm-queue-box {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 14px 16px;
}

.imm-queue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.queue-title-wrap {
    display: flex;
    flex-direction: column;
}

.queue-heading {
    font-size: 13.5px;
    font-weight: 700;
    color: #f1f5f9;
}

.queue-sub-text {
    font-size: 10.5px;
    color: #94a3b8;
    margin-top: 1px;
}

.queue-tag-chip {
    font-size: 11px;
    font-weight: 600;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 3px 8px;
    border-radius: 6px;
}

.imm-queue-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.queue-item-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: all 0.2s ease;
}

.queue-item-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateX(3px);
}

.queue-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.queue-item-art {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
    background: #1e293b;
    flex-shrink: 0;
}

.queue-item-text {
    min-width: 0;
    flex: 1;
}

.queue-item-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.queue-item-prompt {
    font-size: 10.5px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.queue-item-btn-play {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.queue-item-card:hover .queue-item-btn-play {
    background: #f59e0b;
    color: #0a0d14;
    transform: scale(1.1);
}

.queue-item-card.active-queue-track {
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(245, 158, 11, 0.5);
}

.queue-item-card.active-queue-track .queue-item-title {
    color: #fbbf24;
}

.queue-item-card.active-queue-track .queue-item-btn-play {
    background: #f59e0b;
    color: #0a0d14;
}

/* Mobile Responsiveness for Immersive Player */
@media (max-width: 640px) {
    .immersive-fixed-hero {
        padding: 0 14px 8px;
    }
    .immersive-topbar {
        padding: 8px 0 6px;
    }
    .imm-art-glow-frame {
        width: 115px;
        height: 115px;
        max-height: 18vh;
        border-radius: 14px;
    }
    .imm-title {
        font-size: 16px;
    }
    .imm-prompt {
        font-size: 11px;
    }
    .imm-waveform {
        height: 22px;
    }
    .imm-controls-row {
        gap: 14px;
        margin: 1px 0;
    }
    .imm-ctrl-play {
        width: 46px;
        height: 46px;
        font-size: 19px;
    }
    .imm-ctrl-btn {
        font-size: 17px;
        padding: 4px;
    }
    .imm-volume-bar-row {
        max-width: 320px;
        padding: 3px 10px;
    }
    .imm-action-cards {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        margin: 3px 0 0;
    }
    .imm-action-btn {
        padding: 6px 8px;
        gap: 6px;
    }
    .imm-btn-icon {
        font-size: 15px;
    }
    .imm-btn-title {
        font-size: 11px;
    }
    .imm-btn-sub {
        font-size: 9px;
    }
    .immersive-scroll-body {
        padding: 10px 14px 28px;
        gap: 10px;
    }
}

@media (max-height: 700px) {
    .imm-art-glow-frame {
        width: 90px;
        height: 90px;
        border-radius: 12px;
    }
    .imm-waveform {
        height: 18px;
    }
    .imm-title {
        font-size: 15px;
    }
    .immersive-topbar {
        padding: 6px 0 4px;
    }
}

/* ==========================================================================
   PWA (Progressive Web App) Mobile & Desktop Install UI
   ========================================================================== */
.btn-pwa-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(16, 185, 129, 0.2));
    border: 1px solid rgba(59, 130, 246, 0.45);
    border-radius: 20px;
    color: #93c5fd;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-pwa-header:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(16, 185, 129, 0.35));
    border-color: #60a5fa;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

/* iOS Safari Guide Modal Card */
.pwa-ios-modal-card {
    max-width: 480px;
    width: 92%;
}
.pwa-ios-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0 10px;
}
.ios-step-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
}
.ios-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #3b82f6;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    flex-shrink: 0;
}
.ios-step-content p {
    margin: 0;
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.5;
}
.ios-step-content strong {
    color: #60a5fa;
}

/* ==========================================================================
   Step 3: Viral Social Share Card Modal & Canvas UI
   ========================================================================== */
.share-card-modal {
    max-width: 480px;
    width: 94%;
    text-align: center;
}

.share-ratio-tabs {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.06);
    padding: 4px;
    border-radius: 24px;
    margin: 12px auto 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ratio-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: transparent;
    border: none;
    border-radius: 20px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ratio-tab.active {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.4);
}

.share-card-canvas-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
}

.share-canvas {
    max-width: 100%;
    max-height: 380px;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    display: block;
}

.share-card-actions {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 8px;
}

.btn-share-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-share-save {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}
.btn-share-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.5);
}

.btn-share-copy {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #93c5fd;
}
.btn-share-copy:hover {
    background: rgba(59, 130, 246, 0.25);
    color: #ffffff;
}

.btn-share-link {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
}
.btn-share-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

@media (max-width: 480px) {
    .share-card-actions {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Step 4: Custom Named Playlist Folders
   ========================================================================== */
.pill-playlist {
    background: rgba(168, 85, 247, 0.12) !important;
    border-color: rgba(168, 85, 247, 0.35) !important;
    color: #c084fc !important;
}
.pill-playlist:hover, .pill-playlist.active {
    background: #a855f7 !important;
    border-color: #a855f7 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.4) !important;
}

.playlist-folder-bar {
    margin: 4px 0 16px 0;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 14px;
    animation: fadeIn 0.2s ease-out;
}
.playlist-folders-scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: 2px;
}
.playlist-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.playlist-chip:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: #a855f7;
    color: #e9d5ff;
}
.playlist-chip.active {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    border-color: #a855f7;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(168, 85, 247, 0.4);
}
.playlist-chip .btn-del-folder {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    cursor: pointer;
    padding: 0 2px;
    margin-left: 4px;
    line-height: 1;
}
.playlist-chip .btn-del-folder:hover {
    color: #ef4444;
}

/* Playlist Add Modal Card */
.playlist-modal-card {
    max-width: 440px;
    width: 92%;
}
.playlist-track-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin: 12px 0 16px;
}
.pl-track-thumb {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    object-fit: cover;
}
.pl-track-meta h4 {
    margin: 0 0 2px 0;
    font-size: 14px;
    font-weight: 700;
    color: #f8fafc;
}
.pl-track-meta p {
    margin: 0;
    font-size: 12px;
    color: #94a3b8;
}

.playlist-folder-checklist {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
    margin-bottom: 16px;
    padding-right: 4px;
}
.pl-folder-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.pl-folder-item:hover {
    background: rgba(168, 85, 247, 0.12);
    border-color: rgba(168, 85, 247, 0.35);
}
.pl-folder-item.checked {
    background: rgba(168, 85, 247, 0.18);
    border-color: #a855f7;
}
.pl-folder-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
}
.pl-folder-count {
    font-size: 11px;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 8px;
    border-radius: 10px;
}

.playlist-create-form {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.playlist-input {
    flex: 1;
    padding: 9px 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
}
.playlist-input:focus {
    border-color: #a855f7;
    outline: none;
}

/* Row Playlist Button */
.btn-playlist-row {
    background: transparent;
    border: none;
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
    opacity: 0.8;
    transition: all 0.15s ease;
}
.btn-playlist-row:hover {
    opacity: 1;
    transform: scale(1.15);
}

/* ==========================================================================
   Monetization & Conversion Acceleration System (Healing Pass & Soft Wall)
   ========================================================================== */

/* 3-Tier Pricing Layout */
.pricing-card {
    max-width: 880px !important;
    width: 95% !important;
}

.pricing-grid-3 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
    margin-top: 24px !important;
}

@media (max-width: 860px) {
    .pricing-grid-3 {
        grid-template-columns: 1fr !important;
    }
}

.plan-card-pass {
    border: 2px solid #f59e0b !important;
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.15) 0%, rgba(20, 27, 41, 1) 100%) !important;
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.25);
    z-index: 2;
}

.plan-card-pass .popular-tag {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.plan-card-pro .pro-tag-badge {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.promo-sub {
    display: block;
    font-size: 12px !important;
    font-weight: 800 !important;
    color: #f59e0b !important;
    margin-top: 4px;
}

.btn-plan-primary {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-weight: 800;
    border: none;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}
.btn-plan-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

.btn-plan-pro {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.5);
}
.btn-plan-pro:hover {
    background: rgba(59, 130, 246, 0.35);
    border-color: #60a5fa;
}

/* Payment Tabs */
.payment-tabs-container {
    margin-top: 24px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 20px;
}
.pay-method-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.pay-tab {
    padding: 10px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.pay-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.pay-tab.active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.15));
    border-color: #f59e0b;
    color: #f59e0b;
}

.pay-tab-content {
    display: block;
    width: 100%;
}
.pay-tab-content.hidden,
.hidden {
    display: none !important;
}

.kr-pay-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
}
.kr-pay-box h4 {
    font-size: 16px;
    color: #fff;
    margin: 0 0 6px 0;
}
.kr-pay-box p {
    font-size: 13px;
    color: #94a3b8;
    margin: 0 0 16px 0;
}
.kr-pay-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.btn-kr-pay {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-kakao-pay {
    background: #fee500;
    color: #191600;
}
.btn-kakao-pay:hover {
    background: #ffd900;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(254, 229, 0, 0.4);
}
.btn-toss-pay {
    background: #0064ff;
    color: #fff;
}
.btn-toss-pay:hover {
    background: #0050d4;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 100, 255, 0.4);
}

/* Spotify-Style Soft Paywall Modal */
.soft-paywall-card {
    max-width: 460px;
    width: 92%;
    background: linear-gradient(160deg, #161c2d 0%, #0d121f 100%);
    border: 2px solid rgba(245, 158, 11, 0.5);
    border-radius: 20px;
    padding: 32px 24px 24px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(245, 158, 11, 0.2);
    position: relative;
}
.soft-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.soft-paywall-header h2 {
    font-size: 22px;
    color: #fff;
    margin: 0 0 10px;
    font-weight: 800;
}
.soft-paywall-header p {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0 0 20px;
}
.soft-features-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    text-align: left;
}
.soft-feat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: #e2e8f0;
}
.soft-feat-icon {
    font-size: 18px;
}
.soft-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.btn-soft-trial {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-weight: 800;
    font-size: 15px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.45);
    transition: all 0.2s ease;
}
.btn-soft-trial:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.65);
}
.btn-soft-continue {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 13px;
    cursor: pointer;
    padding: 6px;
    transition: color 0.2s;
}
.btn-soft-continue:hover {
    color: #cbd5e1;
    text-decoration: underline;
}

/* Google AdSense Billboard Slot */
.adsense-banner-container {
    margin: 24px 0 10px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    text-align: center;
}
.adsense-sponsor-tag {
    font-size: 10.5px;
    color: #64748b;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

/* Official Legal & Business Compliance Footer */
.site-official-footer {
    margin-top: 36px;
    padding: 24px 20px 40px;
    background: rgba(15, 23, 42, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.7;
}

.footer-legal-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer-legal-nav .btn-footer-link {
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
}

.footer-legal-nav .btn-footer-link:hover {
    color: #f59e0b;
    text-decoration: underline;
}

.footer-business-details {
    max-width: 860px;
    margin: 0 auto;
}

.biz-row {
    margin: 4px 0;
    color: #94a3b8;
    font-size: 12px;
}

.biz-row strong {
    color: #e2e8f0;
}

.biz-refund-clause {
    margin: 14px 0 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    text-align: left;
    font-size: 11.5px;
    color: #94a3b8;
    line-height: 1.6;
}

.biz-refund-clause strong {
    color: #f59e0b;
    display: inline-block;
    margin-bottom: 4px;
}

.biz-copyright {
    margin-top: 14px;
    font-size: 11px;
    color: #64748b;
}

/* ==========================================================================
   Real-Time Anonymous Analytics Dashboard Styles
   ========================================================================== */
.analytics-modal-card {
    max-width: 650px;
    background: #0f172a;
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(59, 130, 246, 0.2);
}

.analytics-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 18px 0 24px;
}

@media (max-width: 600px) {
    .analytics-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.analytics-kpi-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.kpi-icon {
    font-size: 24px;
}

.kpi-info {
    display: flex;
    flex-direction: column;
}

.kpi-label {
    font-size: 10.5px;
    color: #94a3b8;
    white-space: nowrap;
}

.kpi-val {
    font-size: 16px;
    font-weight: 800;
    color: #f8fafc;
}

.analytics-section {
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px;
}

.analytics-sec-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.analytics-sec-header h3 {
    font-size: 14px;
    color: #f1f5f9;
    margin: 0;
}

.analytics-badge-live {
    font-size: 9.5px;
    font-weight: 800;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
    padding: 2px 6px;
    border-radius: 12px;
    animation: pulseLive 2s infinite;
}

@keyframes pulseLive {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.top-tracks-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
}

.top-track-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12px;
}

.top-track-row:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.top-track-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.top-rank {
    font-size: 12px;
    font-weight: 800;
    width: 20px;
    color: #f59e0b;
}

.top-title {
    color: #e2e8f0;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-genre {
    font-size: 10.5px;
    color: #64748b;
    margin-left: 6px;
}

.top-plays {
    font-weight: 700;
    color: #38bdf8;
    white-space: nowrap;
}

.analytics-insight-box {
    margin-top: 16px;
    padding: 12px 14px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 8px;
    font-size: 11.5px;
    color: #cbd5e1;
    line-height: 1.6;
}

.analytics-insight-box strong {
    color: #f59e0b;
    display: block;
    margin-bottom: 4px;
}

.analytics-empty {
    text-align: center;
    padding: 24px;
    color: #64748b;
    font-size: 12px;
}


