:root {
    --bg-main: #090b10;
    --bg-sidebar: #06070a;
    --bg-card: rgba(18, 22, 34, 0.65);
    --bg-card-hover: rgba(30, 38, 58, 0.85);
    --bg-player: rgba(10, 13, 20, 0.95);
    
    --accent-green: #1db954;
    --accent-blue: #38bdf8;
    --accent-indigo: #6366f1;
    --accent-purple: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #6366f1 50%, #1db954 100%);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(56, 189, 248, 0.4);
    
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Space Grotesk', monospace;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-full: 9999px;
    
    --player-height: 90px;
    --sidebar-width: 270px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    user-select: none;
}

/* App Container Layout */
.app-container {
    display: flex;
    height: calc(100vh - var(--player-height));
    width: 100%;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 24px 16px 16px;
    z-index: 10;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 6px 20px;
    border-bottom: 1px solid var(--border-color);
}

.brand-logo {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-logo:hover {
    transform: scale(1.15) rotate(-4deg);
}

.cyber-hp-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.5));
    transition: filter 0.25s ease;
}

.brand-logo:hover .cyber-hp-svg {
    filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.85)) drop-shadow(0 0 28px rgba(99, 102, 241, 0.6));
}

.brand-text h2 {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.badge-signature {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    color: var(--accent-blue);
    background: rgba(56, 189, 248, 0.1);
    padding: 2px 7px;
    border-radius: 4px;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.15s;
    border: 1px solid rgba(56, 189, 248, 0.25);
    margin-top: 4px;
    font-family: var(--font-mono);
}

.badge-signature:hover {
    background: rgba(56, 189, 248, 0.25);
    color: #fff;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

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

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

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
    width: 100%;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(56, 189, 248, 0.15);
    color: #fff;
    border-left: 3px solid var(--accent-blue);
}

.nav-item .icon {
    font-size: 18px;
}

.service-dot {
    margin-left: auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #475569;
}

.service-dot.online {
    background: var(--accent-green);
    box-shadow: 0 0 8px rgba(29, 185, 84, 0.6);
}

.sidebar-footer {
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.btn-account {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-account:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.account-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    overflow: hidden;
}

.account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.account-title {
    font-size: 13px;
    font-weight: 700;
}

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

.footer-signature {
    text-align: center;
    padding-top: 10px;
    font-size: 10px;
    font-family: var(--font-mono);
}

.footer-signature a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.15s;
}

.footer-signature a:hover {
    color: var(--accent-blue);
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-main);
    overflow: hidden;
}

.top-bar {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    border-bottom: 1px solid var(--border-color);
    gap: 20px;
    background: rgba(9, 11, 16, 0.8);
    backdrop-filter: blur(14px);
    z-index: 5;
}

.search-box-container {
    position: relative;
    width: 440px;
    max-width: 100%;
}

.search-box-container .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: var(--text-muted);
}

.search-box-container input {
    width: 100%;
    height: 42px;
    padding: 0 38px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.search-box-container input:focus {
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

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

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Language Switcher */
.lang-switch-container {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 3px;
    gap: 2px;
}

.btn-lang {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.15s;
    font-family: var(--font-mono);
}

.btn-lang:hover {
    color: #fff;
}

.btn-lang.active {
    background: var(--accent-blue);
    color: #000;
}

.btn-install-pwa {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15) 0%, rgba(99, 102, 241, 0.2) 100%);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #93c5fd;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-install-pwa:hover {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.3) 0%, rgba(99, 102, 241, 0.4) 100%);
    color: #fff;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.quality-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: var(--radius-full);
}

.quality-selector select {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

.quality-selector select option {
    background: #12141c;
    color: #fff;
}

/* Content Views */
.content-scrollable {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
}

.view-panel {
    display: none;
    animation: fadeIn 0.2s ease-out;
}

.view-panel.active {
    display: block;
}

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

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.45) 0%, rgba(15, 23, 42, 0.9) 100%), url('https://images.unsplash.com/photo-1514525253161-7a46d19cd819?w=1200&auto=format&fit=crop&q=80') center/cover;
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 36px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-content h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.hero-content p {
    font-size: 15px;
    color: #cbd5e1;
    max-width: 600px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 14px;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Sections & Filter Pills */
.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 18px;
}

.section-header h2 {
    font-size: 22px;
    font-weight: 800;
}

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

.filter-pills {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.pill.active {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* Track List Table */
.track-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.track-row {
    display: grid;
    grid-template-columns: 40px 52px 1fr 180px 80px 100px;
    align-items: center;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: transparent;
    transition: background 0.15s;
    cursor: pointer;
}

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

.track-row.playing {
    background: rgba(56, 189, 248, 0.15);
    border-left: 3px solid var(--accent-blue);
}

.track-num {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    text-align: center;
    font-family: var(--font-mono);
}

.track-cover {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    object-fit: cover;
    background: #1e293b;
}

.track-info {
    display: flex;
    flex-direction: column;
    padding-left: 12px;
    overflow: hidden;
}

.track-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

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

.track-source-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    text-align: center;
    width: max-content;
    font-family: var(--font-mono);
}

.badge-deezer { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.badge-spotify { background: rgba(29, 185, 84, 0.15); color: #4ade80; }
.badge-vk { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }

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

.track-duration {
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.btn-fav-track {
    background: transparent;
    border: none;
    font-size: 16px;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.2s, transform 0.15s;
}

.btn-fav-track:hover, .btn-fav-track.active {
    opacity: 1;
    transform: scale(1.15);
}

/* Empty State / Not Connected */
.empty-state, .not-connected-banner {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-color);
}

.not-connected-banner h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.not-connected-banner p {
    color: var(--text-secondary);
    font-size: 14px;
    max-width: 500px;
    margin: 0 auto 20px;
}

/* Bottom Player Bar */
.player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--player-height);
    background: var(--bg-player);
    border-top: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    display: grid;
    grid-template-columns: 320px 1fr 340px;
    align-items: center;
    padding: 0 24px;
    z-index: 100;
}

.player-track-info {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
}

.player-cover-container {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: #1e293b;
    flex-shrink: 0;
}

.cover-hover-expand {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.2s;
}

.player-track-info:hover .cover-hover-expand {
    opacity: 1;
}

#player-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-meta {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

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

.player-btn-fav {
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s;
}

.player-btn-fav:hover, .player-btn-fav.active {
    opacity: 1;
}

/* Player Controls & Progress */
.player-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 650px;
    width: 100%;
    margin: 0 auto;
}

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

.ctrl-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.ctrl-btn.active {
    color: var(--accent-blue);
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

.ctrl-btn-play {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: none;
    color: #000;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s, background 0.15s;
}

.ctrl-btn-play:hover {
    transform: scale(1.08);
    background: #f1f5f9;
}

.player-timeline {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.time-label {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    min-width: 32px;
}

.progress-bar-container {
    position: relative;
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    cursor: pointer;
}

.progress-buffered {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    width: 0%;
}

.progress-current {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--accent-blue);
    border-radius: var(--radius-full);
    width: 0%;
}

.progress-bar-container:hover .progress-current {
    background: #38bdf8;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

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

.badge-stream-quality {
    font-size: 10px;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 4px;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    letter-spacing: 0.5px;
    font-family: var(--font-mono);
}

.badge-stream-source {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 110px;
}

.volume-slider-container {
    position: relative;
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    cursor: pointer;
}

.volume-level {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #cbd5e1;
    border-radius: var(--radius-full);
    width: 80%;
}

/* =========================================================================
   FULLSCREEN / EXPANDED NOW PLAYING & SYNCED LYRICS OVERLAY
   ========================================================================= */
.now-playing-overlay {
    position: fixed;
    inset: 0;
    background: #080a0f;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    padding: 32px 48px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    overflow: hidden;
}

.now-playing-overlay.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.overlay-backdrop-blur {
    position: absolute;
    inset: -40px;
    background-size: cover;
    background-position: center;
    filter: blur(80px) brightness(0.25) saturate(1.8);
    z-index: -1;
    transition: background-image 0.5s ease;
}

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

.overlay-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.overlay-app-name {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #94a3b8;
}

.overlay-btn-icon {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay-btn-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.overlay-content-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 64px;
    align-items: center;
    overflow: hidden;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.overlay-art-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.overlay-cover-wrapper {
    position: relative;
    width: 360px;
    height: 360px;
    max-width: 80vw;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    margin-bottom: 28px;
}

#overlay-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.overlay-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 6px;
    color: #fff;
    letter-spacing: -0.5px;
}

.overlay-artist {
    font-size: 18px;
    color: #94a3b8;
    margin-bottom: 14px;
    font-weight: 500;
}

.overlay-quality-pill {
    display: inline-block;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-mono);
}

/* Synced Lyrics Karaoke Styling */
.overlay-lyrics-column {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 75vh;
    padding-left: 20px;
}

.lyrics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.lyrics-badge {
    font-size: 12px;
    font-weight: 800;
    color: var(--accent-blue);
    letter-spacing: 1px;
    font-family: var(--font-mono);
}

.lyrics-status {
    font-size: 12px;
    color: var(--text-muted);
}

.lyrics-scroll-container {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 40px 0;
    scroll-behavior: smooth;
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

.lyric-line {
    font-size: 22px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.4;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 6px 12px;
    border-radius: 8px;
    transform-origin: left center;
}

.lyric-line:hover {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.04);
}

/* ACTIVE SINGING LINE (KARAOKE HIGHLIGHT) */
.lyric-line.active {
    font-size: 30px;
    font-weight: 800;
    color: #ffffff;
    transform: scale(1.05);
    text-shadow: 0 0 24px rgba(56, 189, 248, 0.8), 0 0 40px rgba(99, 102, 241, 0.6);
}

.lyrics-empty {
    text-align: center;
    margin-top: 100px;
    color: var(--text-muted);
    font-size: 16px;
}

/* Modal Dialogs */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: #10131d;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 880px;
    max-width: 95vw;
    max-height: 92vh;
    padding: 24px 28px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

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

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
}

.modal-subtitle {
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 16px;
    line-height: 1.4;
}

.account-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 768px) {
    .account-cards-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.service-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-card-title h3 {
    font-size: 15px;
    margin: 0;
}

.icon-lg {
    font-size: 20px;
}

.status-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    background: #334155;
    color: #94a3b8;
    font-family: var(--font-mono);
}

.status-badge.connected {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.service-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 13px;
    outline: none;
}

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

.btn-connect {
    background: var(--accent-blue);
    color: #000;
    border: none;
    padding: 0 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.btn-google-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: #ffffff;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-google-login:hover {
    background: #f3f4f6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-spotify-login {
    background: #1db954;
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    width: 100%;
}

.btn-vk-oauth {
    background: #2787f5;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
}

.help-text {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
}

.service-card-connected {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.connected-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: #334155;
}

.btn-disconnect {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.btn-disconnect:hover {
    background: rgba(239, 68, 68, 0.25);
}

.hidden {
    display: none !important;
}

/* Queue Drawer */
.queue-drawer {
    position: fixed;
    right: -360px;
    top: 0;
    bottom: var(--player-height);
    width: 360px;
    background: #0f111a;
    border-left: 1px solid var(--border-color);
    padding: 24px;
    z-index: 50;
    transition: right 0.25s ease;
    overflow-y: auto;
}

.queue-drawer.open {
    right: 0;
}

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

/* ==========================================================================
   ⚡ Subscribe Badges & Subscription Modal Styling
   ========================================================================== */
.btn-sub-demo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(234, 179, 8, 0.08);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.3);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-sub-demo:hover {
    background: rgba(234, 179, 8, 0.18);
    border-color: rgba(234, 179, 8, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(234, 179, 8, 0.2);
}

.sidebar-demo-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    background: rgba(234, 179, 8, 0.08);
    border: 1px solid rgba(234, 179, 8, 0.25);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    margin-bottom: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.sidebar-demo-badge:hover {
    background: rgba(234, 179, 8, 0.16);
    border-color: rgba(234, 179, 8, 0.45);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(234, 179, 8, 0.15);
}

.sidebar-demo-title {
    font-size: 12px;
    font-weight: 700;
    color: #fde047;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1.3;
    white-space: nowrap;
}

.btn-subscribe-orange {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.btn-subscribe-orange:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.6);
    filter: brightness(1.1);
}

.btn-subscribe-sidebar {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15) 0%, rgba(234, 88, 12, 0.25) 100%);
    border: 1px solid rgba(249, 115, 22, 0.4);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    margin-bottom: 12px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.btn-subscribe-sidebar:hover {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.25) 0%, rgba(234, 88, 12, 0.4) 100%);
    border-color: #f97316;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.25);
    transform: translateY(-1px);
}

.sub-icon {
    font-size: 20px;
    filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.8));
}

.sub-text {
    display: flex;
    flex-direction: column;
}

.sub-title {
    font-size: 12px;
    font-weight: 800;
    color: #fdba74;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sub-price {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
}

.sub-badge-trial {
    display: inline-block;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 4px;
}

.sub-plan-highlight {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin: 16px 0;
}

.sub-plan-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}

.sub-price-big {
    font-size: 32px;
    font-weight: 800;
    color: #f97316;
    font-family: var(--font-heading);
}

.sub-price-period {
    font-size: 14px;
    color: var(--text-muted);
}

.sub-plan-features {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 16px 0;
}

@media (max-width: 600px) {
    .payment-methods-grid {
        grid-template-columns: 1fr;
    }
}

.pay-option-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: #ffffff;
    cursor: pointer;
    text-decoration: none;
    text-align: left;
    transition: all 0.2s ease;
}

.pay-option-btn:hover {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.08);
    transform: translateY(-2px);
}

.pay-tg:hover { border-color: #0088cc; background: rgba(0, 136, 204, 0.12); }
.pay-card:hover { border-color: #10b981; background: rgba(16, 185, 129, 0.12); }
.pay-crypto:hover { border-color: #f59e0b; background: rgba(245, 158, 11, 0.12); }

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

.pay-meta strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
}

.pay-meta span {
    font-size: 11px;
    color: var(--text-muted);
}

.legal-disclaimer-box {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin: 16px 0;
}

.legal-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.legal-text {
    font-size: 11px;
    line-height: 1.5;
    color: #94a3b8;
}

