/* ============================================
   SahinOS — Music App Styles (v4 — Mobile+Desktop)
   ============================================ */

.app-music {
    display: flex;
    flex-direction: column;
    margin: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    background: rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* ============================
   DESKTOP LAYOUT
   ============================ */

.music-layout {
    display: flex;
    height: 100%;
    overflow: hidden;
}

/* ── Sidebar ── */
.music-sidebar {
    width: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.35);
    border-right: 1px solid var(--border-subtle);
    transition: width 0.25s ease;
    flex-shrink: 0;
}
.music-sidebar.open { width: 200px; }
.music-sidebar-header {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-subtle);
}
.music-sidebar-header h4 {
    font-size: 13px; font-weight: 600;
    color: var(--text-primary); white-space: nowrap;
}
.music-sidebar-list { overflow-y: auto; padding: 6px 0; }
.music-sidebar-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; cursor: pointer;
    transition: background 0.15s; white-space: nowrap;
}
.music-sidebar-item:hover { background: rgba(255, 255, 255, 0.05); }
.music-sidebar-item.active {
    background: rgba(59, 130, 246, 0.12);
    border-right: 2px solid var(--accent-blue);
}
.music-sidebar-icon { font-size: 18px; flex-shrink: 0; }
.music-sidebar-info { display: flex; flex-direction: column; min-width: 0; }
.music-sidebar-name {
    font-size: 13px; font-weight: 500;
    color: var(--text-primary); overflow: hidden; text-overflow: ellipsis;
}
.music-sidebar-item.active .music-sidebar-name { color: var(--accent-blue); }
.music-sidebar-count { font-size: 11px; color: var(--text-tertiary); }

/* ── Main content ── */
.music-main {
    flex: 1; display: flex; flex-direction: column;
    min-width: 0; overflow: hidden;
}

/* ── Header ── */
.music-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 14px; border-bottom: 1px solid var(--border-subtle); flex-shrink: 0;
}
.music-header-left { display: flex; align-items: center; gap: 8px; }
.music-menu-btn {
    width: 30px; height: 30px; border: none; background: transparent;
    color: var(--text-secondary); cursor: pointer; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center; transition: all 0.15s;
}
.music-menu-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.music-menu-btn svg { width: 18px; height: 18px; }
.music-header-title h3 {
    font-size: 14px; font-weight: 600;
    color: var(--text-primary); white-space: nowrap;
}

/* ── Now Playing — compact with visualizer bg ── */
.music-now-playing {
    position: relative; display: flex; flex-direction: column;
    flex-shrink: 0; background: rgba(10, 10, 25, 0.95); overflow: hidden;
}
.music-visualizer-canvas {
    position: absolute; inset: 0; width: 100%; height: 100%;
    z-index: 0; opacity: 0.5;
}
.now-playing-row {
    position: relative; z-index: 2;
    display: flex; align-items: center; gap: 12px; padding: 12px 14px 6px;
}
.now-playing-art {
    width: 52px; height: 52px; border-radius: 50%; overflow: hidden;
    flex-shrink: 0; border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    animation: albumSpin 8s linear infinite paused;
}
.app-music.playing .now-playing-art { animation-play-state: running; }
.now-playing-art img { width: 100%; height: 100%; object-fit: cover; }

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

.now-playing-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.now-playing-title {
    font-size: 13px; font-weight: 600; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.now-playing-channel {
    font-size: 11px; color: rgba(255, 255, 255, 0.5);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.now-playing-controls { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }

.music-ctrl-btn {
    width: 30px; height: 30px; border-radius: 50%; border: none;
    background: transparent; color: rgba(255, 255, 255, 0.7);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.15s;
}
.music-ctrl-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.music-ctrl-btn.play-btn {
    width: 38px; height: 38px; background: var(--accent-blue); color: white;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}
.music-ctrl-btn.play-btn:hover { background: var(--accent-blue-hover); transform: scale(1.06); }
.music-ctrl-btn svg { width: 15px; height: 15px; }
.music-ctrl-btn.play-btn svg { width: 17px; height: 17px; }

/* Volume */
.music-volume-compact { display: flex; align-items: center; gap: 2px; flex-shrink: 0; margin-left: 2px; }
.music-vol-btn {
    width: 26px; height: 26px; border: none; background: transparent;
    color: rgba(255, 255, 255, 0.55); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm); transition: all 0.15s;
}
.music-vol-btn:hover { color: #fff; }
.music-vol-btn svg { width: 14px; height: 14px; }
.music-volume-slider {
    -webkit-appearance: none; appearance: none;
    width: 56px; height: 3px; background: rgba(255, 255, 255, 0.15);
    border-radius: 2px; outline: none; cursor: pointer;
}
.music-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none; width: 10px; height: 10px;
    border-radius: 50%; background: white; cursor: pointer; border: none;
}
.music-volume-slider::-moz-range-thumb {
    width: 10px; height: 10px; border-radius: 50%;
    background: white; cursor: pointer; border: none;
}

/* ── Seek Bar ── */
.music-seek-bar {
    position: relative; z-index: 2;
    display: flex; align-items: center; gap: 8px; padding: 2px 14px 10px;
}
.seek-time {
    font-size: 10px; color: rgba(255, 255, 255, 0.4);
    min-width: 34px; text-align: center; font-variant-numeric: tabular-nums;
}
.seek-slider {
    -webkit-appearance: none; appearance: none; flex: 1;
    height: 3px; background: rgba(255, 255, 255, 0.15);
    border-radius: 2px; outline: none; cursor: pointer;
}
.seek-slider::-webkit-slider-thumb {
    -webkit-appearance: none; width: 10px; height: 10px;
    border-radius: 50%; background: var(--accent-blue); cursor: pointer; border: none;
    box-shadow: 0 0 4px rgba(59,130,246,0.4);
}
.seek-slider::-moz-range-thumb {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--accent-blue); cursor: pointer; border: none;
}

.music-yt-container {
    position: absolute; width: 1px; height: 1px;
    opacity: 0; pointer-events: none; overflow: hidden;
}

/* ── Playlist ── */
.music-playlist {
    flex: 1; overflow: hidden; display: flex; flex-direction: column;
    border-top: 1px solid var(--border-subtle);
}
.playlist-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 14px 4px; flex-shrink: 0;
}
.playlist-header h4 { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.playlist-count { font-size: 11px; color: var(--text-tertiary); }
.playlist-scroll { flex: 1; overflow-y: auto; padding-bottom: 4px; }

/* ── Shared: Playlist Row ── */
.playlist-row {
    display: flex; align-items: center; gap: 10px;
    padding: 5px 14px; cursor: pointer; transition: background 0.12s;
}
.playlist-row:hover { background: rgba(255, 255, 255, 0.04); }
.playlist-row.active { background: rgba(59, 130, 246, 0.08); }

.pl-thumb {
    width: 36px; height: 36px; border-radius: 50%;
    overflow: hidden; flex-shrink: 0; background: rgba(255, 255, 255, 0.05);
}
.pl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.playlist-row.active .pl-thumb { box-shadow: 0 0 0 2px var(--accent-blue); }

.pl-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pl-title {
    font-size: 12px; font-weight: 500; color: var(--text-primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.playlist-row.active .pl-title { color: var(--accent-blue); font-weight: 600; }
.pl-channel {
    font-size: 10px; color: var(--text-tertiary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pl-dur { font-size: 11px; color: var(--text-tertiary); flex-shrink: 0; }

.pl-playing-icon { display: flex; align-items: flex-end; gap: 1.5px; width: 14px; height: 14px; flex-shrink: 0; }
.pl-playing-icon span {
    display: block; width: 2.5px; background: var(--accent-blue);
    border-radius: 1px; animation: plBar 0.8s ease-in-out infinite alternate;
}
.pl-playing-icon span:nth-child(1) { height: 5px; animation-delay: 0s; }
.pl-playing-icon span:nth-child(2) { height: 10px; animation-delay: 0.15s; }
.pl-playing-icon span:nth-child(3) { height: 4px; animation-delay: 0.3s; }
@keyframes plBar { 0% { height: 3px; } 100% { height: 13px; } }


/* ============================
   MOBILE LAYOUT
   ============================ */

.music-mobile {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* ── Mobile Views (slide transition) ── */
.mob-now-playing,
.mob-playlist-view {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

.mob-now-playing {
    background: rgba(8, 8, 22, 0.98);
    transform: translateX(-100%);
    opacity: 0;
    z-index: 2;
}
.mob-now-playing.active {
    transform: translateX(0);
    opacity: 1;
}

.mob-playlist-view {
    background: rgba(10, 10, 28, 0.98);
    transform: translateX(100%);
    opacity: 0;
    z-index: 1;
}
.mob-playlist-view.active {
    transform: translateX(0);
    opacity: 1;
}

/* (visualizer canvas removed from mobile — album art is background now) */

/* ── Mobile: Top bar ── */
.mob-top-bar {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    flex-shrink: 0;
}
.mob-top-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}
.mob-nav-btn {
    width: 38px; height: 38px; border: none; background: transparent;
    color: rgba(255, 255, 255, 0.7); cursor: pointer; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s;
}
.mob-nav-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.mob-nav-btn svg { width: 22px; height: 22px; }
#mob-show-playlist {
    background: rgba(139, 92, 246, 0.25);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.3);
}
#mob-show-playlist:hover { background: rgba(139, 92, 246, 0.4); color: #fff; }

/* ── Mobile: Volume popup (matches system taskbar design) ── */
.mob-vol-wrap {
    position: relative;
}
.mob-vol-popup {
    position: absolute;
    top: 44px;
    right: -8px;
    z-index: 20;
    width: 280px;
    background: rgba(32, 32, 48, 0.92);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: all 0.2s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.mob-vol-popup.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* ── Mobile: Background album art ── */
.mob-bg-art {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.mob-bg-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(8px) brightness(0.5);
    transform: scale(1.15);
}
.mob-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.15) 35%,
        rgba(0, 0, 0, 0.4) 65%,
        rgba(0, 0, 0, 0.75) 100%
    );
}

/* Spacer pushes content to lower portion */
.mob-spacer {
    flex: 0.6;
    position: relative;
    z-index: 2;
}

/* ── Mobile: Song info ── */
.mob-song-info {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px 4px;
    flex-shrink: 0;
}
.mob-song-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.mob-song-channel {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

/* ── Mobile: Controls row (prev | play | next) ── */
.mob-controls {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 8px 20px;
    flex-shrink: 0;
}
.mob-ctrl-btn {
    width: 48px; height: 48px; border-radius: 50%; border: none;
    background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.8);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.15s;
}
.mob-ctrl-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.mob-ctrl-btn svg { width: 22px; height: 22px; }
.mob-play-btn {
    width: 68px; height: 68px;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}
.mob-play-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}
.mob-play-btn svg { width: 30px; height: 30px; }

/* ── Mobile: Seek bar ── */
.mob-seek-bar {
    position: relative;
    z-index: 2;
    padding: 4px 24px 0;
    flex-shrink: 0;
}
.mob-seek-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}
.mob-seek-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer; border: none;
    box-shadow: 0 0 6px rgba(0,0,0,0.4);
}
.mob-seek-slider::-moz-range-thumb {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer; border: none;
}
.mob-seek-times {
    display: flex;
    justify-content: space-between;
    padding: 4px 0 0;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-variant-numeric: tabular-nums;
}

/* ── Mobile: Visualizer effect ── */
.mob-visualizer {
    position: relative;
    z-index: 2;
    flex: 1;
    min-height: 40px;
    overflow: hidden;
}
.mob-visualizer canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* ── Mobile: Playlist Header Card ── */
.mob-pl-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mob-pl-header-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.mob-pl-art {
    width: 44px; height: 44px; border-radius: 10px;
    overflow: hidden; flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
}
.mob-pl-art img { width: 100%; height: 100%; object-fit: cover; }
.mob-pl-meta { flex: 1; min-width: 0; }
.mob-pl-name {
    font-size: 15px; font-weight: 700; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mob-pl-detail { font-size: 11px; color: rgba(255, 255, 255, 0.45); margin-top: 2px; }
.mob-play-all-btn {
    width: 40px; height: 40px; border-radius: 50%; border: none;
    background: var(--accent-blue); color: white; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
    transition: all 0.15s; flex-shrink: 0;
}
.mob-play-all-btn:hover { transform: scale(1.06); }
.mob-play-all-btn svg { width: 18px; height: 18px; }

/* ── Mobile: Playlist Tabs ── */
.mob-pl-tabs-wrap {
    position: relative;
    flex-shrink: 0;
}
.mob-pl-tabs-wrap::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0; right: 0;
    width: 32px;
    background: linear-gradient(to right, transparent, rgba(10, 10, 28, 0.95));
    pointer-events: none;
    z-index: 2;
    border-radius: 0 0 0 0;
    transition: opacity 0.2s;
}
.mob-pl-tabs-wrap.scrolled-end::after { opacity: 0; }
.mob-pl-tabs {
    display: flex;
    gap: 6px;
    padding: 8px 14px 8px 14px;
    overflow-x: auto;
    flex-shrink: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
}
.mob-pl-tabs::-webkit-scrollbar { display: none; }
.mob-pl-tab {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.15s;
    flex-shrink: 0;
}
.mob-pl-tab:hover { background: rgba(255, 255, 255, 0.06); }
.mob-pl-tab.active {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

/* ── Mobile: Playlist Scroll ── */
.mob-pl-scroll {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 70px; /* space for mini bar */
}

/* ── Mobile: Mini Now Playing Bar ── */
.mob-mini-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
}
.mob-mini-thumb {
    width: 38px; height: 38px; border-radius: 8px;
    overflow: hidden; flex-shrink: 0;
}
.mob-mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mob-mini-info { flex: 1; min-width: 0; }
.mob-mini-title {
    font-size: 12px; font-weight: 600; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mob-mini-channel {
    font-size: 10px; color: rgba(255, 255, 255, 0.45);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mob-mini-play {
    width: 34px; height: 34px; border-radius: 50%; border: none;
    background: rgba(255, 255, 255, 0.1); color: white;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.15s; flex-shrink: 0;
}
.mob-mini-play:hover { background: rgba(255, 255, 255, 0.18); }
.mob-mini-play svg { width: 16px; height: 16px; }

/* ============================
   DANCE VIDEO
   ============================ */

/* ── Desktop: bottom-right corner ── */
.dance-video-desktop {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 50;
    width: 160px;
    height: 160px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 10, 25, 0.95);
    animation: dancePopIn 0.3s ease;
}
.dance-video-desktop video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dance-close-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 2;
}
.dance-video-desktop:hover .dance-close-btn { opacity: 1; }

@keyframes dancePopIn {
    from { transform: scale(0.5) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

/* ── Mobile: full background behind now-playing ── */
.mob-dance-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: transparent;
}
.mob-dance-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.25) 0%,
        rgba(0, 0, 0, 0.1) 40%,
        rgba(0, 0, 0, 0.15) 60%,
        rgba(0, 0, 0, 0.35) 100%
    );
}
.mob-dance-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    filter: saturate(1.2) contrast(1.05);
}
/* When dance bg is active, hide the album art bg */
.mob-dance-bg:not([style*="display: none"]) ~ .mob-bg-art,
.mob-dance-bg:not([style*="display:none"]) ~ .mob-bg-art {
    display: none;
}

/* ── Dance button in playlist rows ── */
.pl-dance-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    padding: 0;
    line-height: 1;
}
.pl-dance-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}
.pl-dance-btn.active {
    background: rgba(236, 72, 153, 0.2);
    box-shadow: 0 0 8px rgba(236, 72, 153, 0.3);
    animation: dancePulse 1s ease-in-out infinite alternate;
}

@keyframes dancePulse {
    from { transform: scale(1); }
    to { transform: scale(1.15); }
}

/* ── Desktop responsive ── */
@media (max-width: 768px) {
    .app-music { margin: -12px; width: calc(100% + 24px); height: calc(100% + 24px); }
}

/* ── Light Theme ── */
[data-theme="light"] .app-music {
    background: linear-gradient(145deg, #f0f2f5 0%, #e8eaee 50%, #f5f3f8 100%) !important;
}
[data-theme="light"] .music-now-title {
    color: #1a1a2e !important;
}
[data-theme="light"] .music-now-artist {
    color: #555 !important;
}
[data-theme="light"] .music-ctrl-btn {
    color: #555 !important;
}
[data-theme="light"] .music-ctrl-btn:hover {
    color: #1a1a2e !important;
    background: rgba(0, 0, 0, 0.06) !important;
}
[data-theme="light"] .music-play-btn {
    background: var(--accent-blue) !important;
    color: #fff !important;
}
[data-theme="light"] .music-vol-btn {
    color: #555 !important;
}
[data-theme="light"] .music-vol-btn:hover {
    color: #1a1a2e !important;
}
[data-theme="light"] .music-time {
    color: #888 !important;
}
[data-theme="light"] .music-progress-bar {
    background: rgba(0, 0, 0, 0.1) !important;
}
[data-theme="light"] .music-vol-bar {
    background: rgba(0, 0, 0, 0.1) !important;
}
[data-theme="light"] .music-playlist-item {
    color: #1a1a2e !important;
}
[data-theme="light"] .music-playlist-item:hover {
    background: rgba(0, 0, 0, 0.04) !important;
}
[data-theme="light"] .music-playlist-item.active {
    background: rgba(59, 130, 246, 0.1) !important;
}
[data-theme="light"] .music-playlist-detail {
    color: #888 !important;
}
/* Mobile music player */
[data-theme="light"] .mob-nav-btn {
    color: #555 !important;
}
[data-theme="light"] .mob-nav-btn:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #1a1a2e !important;
}
[data-theme="light"] .mob-now-title {
    color: #1a1a2e !important;
}
[data-theme="light"] .mob-now-artist {
    color: #555 !important;
}
[data-theme="light"] .mob-ctrl-btn {
    background: rgba(0, 0, 0, 0.04) !important;
    color: #555 !important;
}
[data-theme="light"] .mob-ctrl-btn:hover {
    color: #1a1a2e !important;
    background: rgba(0, 0, 0, 0.08) !important;
}
[data-theme="light"] .mob-time {
    color: #888 !important;
}
[data-theme="light"] .mob-pl-title {
    color: #1a1a2e !important;
}
[data-theme="light"] .mob-pl-detail {
    color: #888 !important;
}
[data-theme="light"] .mob-pl-item {
    color: #1a1a2e !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
}
[data-theme="light"] .mob-pl-name {
    color: #1a1a2e !important;
}
[data-theme="light"] .mob-pl-artist {
    color: #888 !important;
}
