/* ============================================
   WAVYR — style.css
   Extreme Minimalism · Dark Theme · Braun/iPod
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── CSS Custom Properties ── */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #121212;
    --bg-tertiary: #1a1a1a;
    --bg-elevated: #222222;
    --bg-hover: #2a2a2a;

    --text-primary: #e0e0e0;
    --text-secondary: #888888;
    --text-muted: #555555;

    --accent: #b4ff39;
    --accent-dim: #8fcc2e;
    --accent-glow: rgba(180, 255, 57, 0.15);
    --accent-glow-strong: rgba(180, 255, 57, 0.3);

    --danger: #ff4444;

    --border: #2a2a2a;
    --border-subtle: #1e1e1e;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --transition-fast: 120ms ease;
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px 80px;
    overflow-x: hidden;
}

/* Subtle grain overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

::selection {
    background: var(--accent);
    color: var(--bg-primary);
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ── Main Container ── */
.app-container {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Header ── */
.header {
    text-align: center;
    padding: 0 0 32px;
}

.header__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 6px;
    opacity: 0;
    animation: fadeSlideUp 600ms var(--transition-normal) forwards;
    animation-delay: 100ms;
}

.header__wave-icon {
    width: 28px;
    height: 18px;
}

.wave-path {
    stroke-dasharray: 60;
    stroke-dashoffset: 0;
    animation: waveFlow 2.5s ease-in-out infinite;
}

@keyframes waveFlow {

    0%,
    100% {
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dashoffset: 30;
    }
}

.header__logo {
    font-family: var(--font-mono);
    font-size: 1rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent-glow);
}

.header__tagline {
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 4px;
    text-transform: lowercase;
    font-style: italic;
    opacity: 0;
    animation: fadeSlideUp 600ms var(--transition-normal) forwards;
    animation-delay: 250ms;
}

/* ── Search ── */
.search-section {
    padding: 0 0 24px;
    opacity: 0;
    animation: fadeSlideUp 600ms var(--transition-normal) forwards;
    animation-delay: 350ms;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 14px;
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color var(--transition-normal);
}

.search-input {
    width: 100%;
    padding: 13px 90px 13px 42px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    outline: none;
    transition: all var(--transition-normal);
}

.search-input::placeholder {
    color: var(--text-muted);
    font-weight: 300;
}

.search-input:focus {
    background: var(--bg-tertiary);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-input:focus~.search-icon {
    color: var(--accent);
}

.search-btn {
    position: absolute;
    right: 6px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.search-btn svg {
    width: 14px;
    height: 14px;
    color: var(--bg-primary);
}

.search-btn:hover {
    background: #c8ff5e;
    transform: scale(1.05);
}

.search-btn:active {
    transform: scale(0.95);
}

/* Search spinner */
.search-spinner {
    position: absolute;
    right: 48px;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    display: none;
    animation: spin 0.6s linear infinite;
}

.search-spinner--visible {
    display: block;
}

/* ── Player Card ── */
.player-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 28px 28px 24px;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeSlideUp 600ms var(--transition-normal) forwards;
    animation-delay: 450ms;
}

/* ── Now Playing ── */
.now-playing {
    text-align: center;
    margin-bottom: 20px;
}

.now-playing__thumb-wrap {
    width: 180px;
    height: 180px;
    margin: 0 auto 16px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    background: var(--bg-tertiary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.now-playing__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    transition: opacity var(--transition-slow);
}

.now-playing__thumb--visible {
    display: block;
}

.now-playing__thumb-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    opacity: 0.3;
}

.now-playing__thumb-placeholder svg {
    width: 48px;
    height: 48px;
}

.now-playing__thumb--visible~.now-playing__thumb-placeholder {
    display: none;
}

.now-playing__label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.now-playing__pulse {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 1.8s ease-in-out infinite;
}

.now-playing__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 4px;
    min-height: 1.6em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.now-playing__artist {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 300;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Visualizer ── */
.visualizer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    height: 28px;
    margin-bottom: 20px;
}

.visualizer__bar {
    width: 3px;
    background: var(--accent);
    border-radius: 2px;
    opacity: 0.25;
    transition: height 0.15s ease, opacity 0.15s ease;
}

.visualizer--active .visualizer__bar {
    opacity: 1;
    animation: barBounce 0.8s ease-in-out infinite;
}

.visualizer__bar:nth-child(1) {
    height: 8px;
    animation-delay: 0s;
}

.visualizer__bar:nth-child(2) {
    height: 16px;
    animation-delay: 0.1s;
}

.visualizer__bar:nth-child(3) {
    height: 12px;
    animation-delay: 0.15s;
}

.visualizer__bar:nth-child(4) {
    height: 24px;
    animation-delay: 0.05s;
}

.visualizer__bar:nth-child(5) {
    height: 18px;
    animation-delay: 0.2s;
}

.visualizer__bar:nth-child(6) {
    height: 28px;
    animation-delay: 0.08s;
}

.visualizer__bar:nth-child(7) {
    height: 14px;
    animation-delay: 0.18s;
}

.visualizer__bar:nth-child(8) {
    height: 22px;
    animation-delay: 0.12s;
}

.visualizer__bar:nth-child(9) {
    height: 10px;
    animation-delay: 0.22s;
}

.visualizer__bar:nth-child(10) {
    height: 20px;
    animation-delay: 0.03s;
}

.visualizer__bar:nth-child(11) {
    height: 15px;
    animation-delay: 0.17s;
}

.visualizer__bar:nth-child(12) {
    height: 26px;
    animation-delay: 0.07s;
}

.visualizer__bar:nth-child(13) {
    height: 11px;
    animation-delay: 0.25s;
}

.visualizer__bar:nth-child(14) {
    height: 19px;
    animation-delay: 0.13s;
}

.visualizer__bar:nth-child(15) {
    height: 9px;
    animation-delay: 0.21s;
}

/* ── Progress ── */
.progress-section {
    margin-bottom: 20px;
}

.progress-bar-wrapper {
    position: relative;
    height: 4px;
    background: var(--bg-elevated);
    border-radius: 2px;
    cursor: pointer;
    transition: height var(--transition-fast);
}

.progress-bar-wrapper:hover {
    height: 6px;
}

.progress-bar-wrapper:hover .progress-thumb {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.progress-filled {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    width: 0%;
    position: relative;
    transition: none;
}

.progress-thumb {
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) scale(0.5);
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-glow-strong);
    opacity: 0;
    transition: all var(--transition-fast);
}

.progress-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
}

.time-display {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* ── A-B Loop Markers ── */
.loop-marker {
    position: absolute;
    top: -4px;
    bottom: -4px;
    width: 2px;
    border-radius: 1px;
    display: none;
    z-index: 2;
    pointer-events: none;
}

.loop-marker--visible {
    display: block;
}

.loop-marker--a {
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent-glow);
}

.loop-marker--b {
    background: #ff6b6b;
    box-shadow: 0 0 6px rgba(255, 107, 107, 0.6);
}

.loop-marker::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.loop-marker--a::before {
    background: var(--accent);
}

.loop-marker--b::before {
    background: #ff6b6b;
}

.ab-region {
    position: absolute;
    top: 0;
    bottom: 0;
    background: var(--accent);
    opacity: 0.12;
    display: none;
    z-index: 1;
    pointer-events: none;
    border-radius: 2px;
}

.ab-region--visible {
    display: block;
}

/* ── Loop Panel ── */
.loop-wrap {
    position: relative;
}

.loop-panel {
    position: absolute;
    bottom: calc(100% + 10px);
    right: -20px;
    display: flex;
    gap: 6px;
    padding: 6px 8px;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px) scale(0.95);
    transition: all 0.2s ease;
    z-index: 10;
    pointer-events: none;
}

.loop-panel--open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.loop-chip {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.loop-chip:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.loop-chip__label {
    font-weight: 700;
    font-size: 0.6rem;
}

.loop-chip--a.loop-chip--set {
    background: rgba(185, 252, 58, 0.12);
    border-color: var(--accent);
    color: var(--accent);
}

.loop-chip--b.loop-chip--set {
    background: rgba(255, 107, 107, 0.12);
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.loop-time {
    color: var(--accent);
    font-size: 0.6rem;
    display: none;
}

.loop-time--visible {
    display: inline;
}

/* ── Transport Controls ── */
.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.ctrl-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    border-radius: 50%;
    position: relative;
}

.ctrl-btn:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

.ctrl-btn:active {
    transform: scale(0.9);
}

.ctrl-btn--extra {
    width: 36px;
    height: 36px;
}

.ctrl-btn--extra svg {
    width: 16px;
    height: 16px;
}

.ctrl-btn--extra.active {
    color: var(--accent);
}

.ctrl-btn--extra.active:hover {
    color: #c8ff5e;
}

.repeat-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 0.5rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--accent);
    display: none;
}

.repeat-badge--visible {
    display: block;
}

.ctrl-btn--skip {
    width: 44px;
    height: 44px;
}

.ctrl-btn--skip svg {
    width: 20px;
    height: 20px;
}

.ctrl-btn--play {
    width: 56px;
    height: 56px;
    background: var(--accent);
    color: var(--bg-primary);
    box-shadow: 0 4px 20px var(--accent-glow-strong);
    transition: all var(--transition-normal);
}

.ctrl-btn--play:hover {
    color: var(--bg-primary);
    background: #c8ff5e;
    box-shadow: 0 4px 30px var(--accent-glow-strong);
    transform: scale(1.08);
}

.ctrl-btn--play:active {
    transform: scale(0.95);
}

.ctrl-btn--play svg {
    width: 22px;
    height: 22px;
}

/* Loading state on play button */
.ctrl-btn--play.loading {
    pointer-events: none;
    position: relative;
}

.ctrl-btn--play.loading svg {
    opacity: 0.3;
}

.ctrl-btn--play.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(0, 0, 0, 0.2);
    border-top-color: var(--bg-primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ── Volume ── */
.volume-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px;
}

.volume-icon {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.volume-icon:hover {
    color: var(--text-primary);
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 3px;
    background: var(--bg-elevated);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    transition: height var(--transition-fast);
}

.volume-slider:hover {
    height: 5px;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--accent);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 6px var(--accent-glow);
    transition: all var(--transition-fast);
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 12px var(--accent-glow-strong);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--accent);
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

.volume-value {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-muted);
    width: 30px;
    text-align: right;
    flex-shrink: 0;
}

/* ── Toast Notification ── */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 20px;
    font-size: 0.78rem;
    font-weight: 400;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    max-width: 360px;
    text-align: center;
}

.toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.toast--error {
    border-color: var(--danger);
    color: #ff8888;
}

/* ── Playlist ── */
.playlist-section {
    opacity: 0;
    animation: fadeSlideUp 600ms var(--transition-normal) forwards;
    animation-delay: 550ms;
}

.playlist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 0 4px;
}

.playlist-header__title {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.playlist-header__count {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-muted);
}

.playlist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.playlist__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.playlist__item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--accent-glow) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.playlist__item:hover {
    background: var(--bg-tertiary);
    border-color: var(--border);
}

.playlist__item:hover::before {
    opacity: 1;
}

.playlist__item--active {
    background: var(--bg-tertiary);
    border-color: var(--accent);
}

.playlist__item--active::before {
    opacity: 1;
}

/* Playlist thumbnail */
.playlist__thumb {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    background: var(--bg-elevated);
}

.playlist__index {
    position: absolute;
    left: 14px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}

.playlist__index-num {
    display: none;
}

.playlist__eq-icon {
    display: none;
}

.playlist__item--active .playlist__eq-icon {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 3px;
    padding: 3px 4px;
}

.playlist__eq-bar {
    width: 2.5px;
    background: var(--accent);
    border-radius: 1px;
    animation: barBounce 0.6s ease-in-out infinite;
}

.playlist__eq-bar:nth-child(1) {
    height: 4px;
    animation-delay: 0s;
}

.playlist__eq-bar:nth-child(2) {
    height: 8px;
    animation-delay: 0.15s;
}

.playlist__eq-bar:nth-child(3) {
    height: 5px;
    animation-delay: 0.3s;
}

.playlist__info {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.playlist__title {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color var(--transition-fast);
}

.playlist__item--active .playlist__title {
    color: var(--accent);
}

.playlist__artist {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist__duration {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

/* ── Empty State ── */
.playlist-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.playlist-empty__icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 12px;
    opacity: 0.3;
}

.playlist-empty__text {
    font-size: 0.8rem;
    font-weight: 300;
}

.playlist-empty__hint {
    font-size: 0.7rem;
    margin-top: 4px;
    color: var(--text-muted);
    opacity: 0.6;
}

/* ── Footer ── */
.footer {
    text-align: center;
    padding: 32px 0 0;
    opacity: 0;
    animation: fadeSlideUp 600ms var(--transition-normal) forwards;
    animation-delay: 650ms;
}

.footer__text {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.4;
}

/* ── Keyframes ── */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.8);
    }
}

@keyframes barBounce {

    0%,
    100% {
        transform: scaleY(0.4);
    }

    50% {
        transform: scaleY(1);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Responsive ── */
@media (max-width: 520px) {
    body {
        padding: 20px 12px 60px;
    }

    .player-card {
        padding: 20px 16px 18px;
        border-radius: var(--radius-lg);
    }

    .now-playing__thumb-wrap {
        width: 140px;
        height: 140px;
    }

    .now-playing__title {
        font-size: 0.95rem;
    }

    .controls {
        gap: 16px;
    }

    .ctrl-btn--play {
        width: 50px;
        height: 50px;
    }

    .playlist__thumb {
        width: 38px;
        height: 38px;
    }
}

/* ── Hidden YouTube Player (audio only) ── */
#yt-player-wrap {
    position: fixed;
    width: 1px;
    height: 1px;
    bottom: 0;
    right: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

/* На мобильных громкость управляется кнопками телефона */
@media (max-width: 768px) {
    .volume-section {
        display: none;
    }
}