/* ========== CSS Variables - 青绿色调 ========== */
:root {
    --primary-white: #FAFAFA;
    --secondary-white: #FFFFFF;
    --accent-cyan: #2DD4BF;        /* 青绿色 主色调 */
    --accent-teal: #14B8A6;        /* 深青色 */
    --accent-light-cyan: #5EEAD4; /* 浅青色 */
    --accent-dark-teal: #0D9488;  /* 深青强调 */
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-tertiary: #9CA3AF;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --shadow-strong: rgba(0, 0, 0, 0.12);
    --gradient-cyan: linear-gradient(135deg, #2DD4BF 0%, #14B8A6 50%, #0D9488 100%);
    --gradient-metal: linear-gradient(145deg, #f0f0f0 0%, #d0d0d0 50%, #b0b0b0 100%);
    --gradient-vinyl: radial-gradient(circle, #1a1a1a 0%, #0a0a0a 100%);
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== Reset & Base ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(180deg, #f8fafc 0%, #f0fdf9 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========== App Container - 台式机适配 ========== */
.app-container {
    max-width: 900px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--primary-white);
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 60px rgba(45, 212, 191, 0.1);
}

@media (min-width: 768px) {
    .app-container {
        max-width: 900px;
        border-radius: 24px;
        margin: 40px auto;
        min-height: calc(100vh - 80px);
        overflow: hidden;
    }
    
    body {
        background: linear-gradient(135deg, #e0fdf9 0%, #ccfbf1 50%, #f0fdfa 100%);
    }
}

/* ========== Navigation System ========== */
.nav-system {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(45, 212, 191, 0.1);
    transition: all 0.3s var(--transition-smooth);
}

.nav-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
}

/* Phone nav adjustments */
@media (max-width: 767px) {
    .nav-inner {
        padding: 10px 12px;
    }

    .nav-logo-text {
        font-size: 18px;
    }

    .nav-logo-icon {
        font-size: 20px;
    }
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.2s var(--transition-smooth);
}

.nav-logo:hover {
    transform: scale(1.02);
}

.nav-logo-icon {
    font-size: 24px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-3px) rotate(5deg); }
    75% { transform: translateY(3px) rotate(-5deg); }
}

.nav-logo-text {
    font-size: 20px;
    font-weight: 700;
    background: var(--gradient-cyan);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: none;
    gap: 8px;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
        gap: 4px;
    }
}

.nav-item {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s var(--transition-smooth);
    position: relative;
}

.nav-item:hover {
    color: var(--accent-teal);
    background: rgba(45, 212, 191, 0.1);
}

.nav-item.active {
    color: var(--accent-teal);
    background: rgba(45, 212, 191, 0.15);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 2px;
    background: var(--accent-cyan);
    border-radius: 1px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-action-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s var(--transition-smooth);
}

.nav-action-btn:hover {
    background: rgba(45, 212, 191, 0.15);
    color: var(--accent-teal);
    transform: scale(1.05);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: flex;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* Main content padding for fixed nav */
.main-content {
    padding-top: 60px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .main-content {
        padding-top: 0;
    }
}

/* ========== Header ========== */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: transparent;
    position: relative;
}

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

.logo-icon {
    font-size: 28px;
    color: var(--accent-teal);
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    background: var(--gradient-cyan);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.menu-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(45, 212, 191, 0.1);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s var(--transition-smooth);
    color: var(--accent-teal);
}

.menu-btn:hover {
    background: rgba(45, 212, 191, 0.2);
    transform: scale(1.05);
}

/* ========== Main Player Area ========== */
.player-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 20px;
}

@media (min-width: 768px) {
    .player-main {
        padding: 40px;
        gap: 32px;
    }
}

/* ========== Turntable - 唱片机主体 ========== */
.turntable-frame {
    width: 260px;
    height: 260px;
    background: var(--secondary-white);
    border-radius: 50%;
    padding: 14px;
    box-shadow: 
        0 20px 60px rgba(45, 212, 191, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.08),
        inset 0 2px 4px rgba(255, 255, 255, 0.9),
        inset 0 -2px 4px rgba(0, 0, 0, 0.03);
    position: relative;
    transition: all 0.3s var(--transition-smooth);
}

@media (min-width: 768px) {
    .turntable-frame {
        width: 320px;
        height: 320px;
        padding: 16px;
    }
}

.turntable-frame::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: var(--gradient-metal);
    z-index: -1;
    box-shadow: 
        0 8px 32px var(--shadow-strong),
        0 2px 8px var(--shadow-color);
}

.turntable-frame:hover {
    box-shadow: 
        0 24px 70px rgba(45, 212, 191, 0.2),
        0 12px 32px rgba(0, 0, 0, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.9),
        inset 0 -2px 4px rgba(0, 0, 0, 0.03);
}

/* Vinyl Record */
.vinyl-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vinyl {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--gradient-vinyl);
    position: relative;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.4),
        inset 0 0 80px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s var(--transition-smooth);
    cursor: pointer;
}

@media (min-width: 768px) {
    .vinyl {
        width: 250px;
        height: 250px;
    }
}

.vinyl.playing {
    animation: rotate 3s linear infinite;
    box-shadow: 
        0 6px 20px rgba(45, 212, 191, 0.3),
        inset 0 0 80px rgba(0, 0, 0, 0.3);
}

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

.vinyl:hover {
    box-shadow: 
        0 8px 30px rgba(45, 212, 191, 0.25),
        inset 0 0 80px rgba(0, 0, 0, 0.3);
}

.vinyl-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--gradient-cyan);
    box-shadow: 
        inset 0 2px 6px rgba(255, 255, 255, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s var(--transition-smooth);
}

@media (min-width: 768px) {
    .vinyl-center {
        width: 80px;
        height: 80px;
    }
}

.vinyl-center::before {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    opacity: 0.9;
}

.vinyl-grooves {
    position: absolute;
    inset: 75px;
    border-radius: 50%;
    border: 1px solid rgba(60, 60, 60, 0.25);
    background: repeating-radial-gradient(
        circle at center,
        transparent 0px,
        transparent 2px,
        rgba(60, 60, 60, 0.12) 2px,
        rgba(60, 60, 60, 0.12) 3px
    );
}

@media (min-width: 768px) {
    .vinyl-grooves {
        inset: 92px;
    }
}

.vinyl-shine {
    position: absolute;
    top: 8%;
    left: 12%;
    width: 35%;
    height: 25%;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.18) 0%,
        transparent 60%
    );
    pointer-events: none;
    animation: shine-pulse 4s ease-in-out infinite;
}

@keyframes shine-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* Tonearm (唱臂) */
.tonearm {
    position: absolute;
    top: 8%;
    right: 5%;
    transform: rotate(-30deg);
    transform-origin: top center;
    transition: transform 0.6s var(--transition-smooth);
    cursor: pointer;
}

.tonearm.playing {
    transform: rotate(8deg);
}

.tonearm-base {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gradient-metal);
    box-shadow: 0 3px 8px var(--shadow-color);
}

.tonearm-arm {
    position: absolute;
    top: 9px;
    left: 9px;
    width: 5px;
    height: 110px;
    background: linear-gradient(90deg, #d8d8d8, #f0f0f0, #d8d8d8);
    border-radius: 3px;
    transform: rotate(-30deg);
    transform-origin: top center;
}

.tonearm-head {
    position: absolute;
    bottom: -14px;
    left: -7px;
    width: 18px;
    height: 24px;
    background: var(--gradient-metal);
    border-radius: 3px;
    box-shadow: -1px 1px 4px var(--shadow-color);
}

/* ========== Song Info ========== */
.song-info {
    text-align: center;
    padding: 0 16px;
    max-width: 400px;
}

.song-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s var(--transition-smooth);
}

@media (min-width: 768px) {
    .song-title {
        font-size: 24px;
    }
}

.song-artist {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ========== Progress Section ========== */
.progress-section {
    width: 100%;
    max-width: 420px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 16px;
}

.time-current,
.time-total {
    font-size: 12px;
    color: var(--text-secondary);
    min-width: 40px;
    font-variant-numeric: tabular-nums;
}

.time-current {
    text-align: right;
}

.progress-bar {
    flex: 1;
    height: 36px;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
}

.progress-track {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    position: relative;
    overflow: visible;
    transition: all 0.2s var(--transition-smooth);
}

.progress-bar:hover .progress-track {
    height: 8px;
    background: #dbeafe;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-cyan);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
    position: relative;
}

.progress-handle {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: var(--secondary-white);
    border: 3px solid var(--accent-teal);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.3);
    opacity: 0;
    transition: all 0.2s var(--transition-smooth);
}

.progress-bar:hover .progress-handle,
.progress-bar:active .progress-handle {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

/* ========== Controls ========== */
.controls {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow: 0 2px 16px rgba(45, 212, 191, 0.1);
}

@media (min-width: 768px) {
    .controls {
        gap: 24px;
        padding: 12px 24px;
    }
}

.control-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.2s var(--transition-smooth);
    position: relative;
}

.control-btn:hover {
    background: rgba(45, 212, 191, 0.15);
    color: var(--accent-teal);
    transform: scale(1.08);
}

.control-btn:active {
    transform: scale(0.95);
}

.mode-btn {
    width: 36px;
    height: 36px;
    color: var(--text-secondary);
}

.mode-btn.active {
    color: var(--accent-teal);
    background: rgba(45, 212, 191, 0.15);
}

.play-btn {
    width: 60px;
    height: 60px;
    background: var(--gradient-cyan);
    color: white;
    box-shadow: 0 6px 20px rgba(45, 212, 191, 0.4);
}

@media (min-width: 768px) {
    .play-btn {
        width: 72px;
        height: 72px;
    }
}

.play-btn:hover {
    box-shadow: 0 8px 28px rgba(45, 212, 191, 0.5);
    transform: scale(1.08);
}

.play-btn:active {
    transform: scale(0.98);
}

.play-icon,
.pause-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pause-icon {
    display: none;
}

.play-btn.playing .play-icon {
    display: none;
}

.play-btn.playing .pause-icon {
    display: flex;
}

.repeat-mode-label {
    position: absolute;
    bottom: -2px;
    right: -2px;
    font-size: 9px;
    background: var(--accent-teal);
    color: white;
    padding: 1px 5px;
    border-radius: 6px;
}

/* ========== Volume Section ========== */
.volume-section {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 180px;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .volume-section {
        max-width: 200px;
    }
}

.volume-btn {
    width: 36px;
    height: 36px;
}

.volume-slider-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.volume-knob {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gradient-cyan);
    box-shadow: 0 3px 10px rgba(45, 212, 191, 0.3);
    position: relative;
    cursor: grab;
    transition: all 0.2s var(--transition-smooth);
}

.volume-knob:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(45, 212, 191, 0.4);
}

.volume-knob:active {
    cursor: grabbing;
    transform: scale(0.95);
}

.knob-line {
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 10px;
    background: white;
    border-radius: 2px;
}

.volume-track {
    flex: 1;
    height: 5px;
    background: #e5e7eb;
    border-radius: 3px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s var(--transition-smooth);
}

.volume-track:hover {
    height: 7px;
    background: #d1fae5;
}

.volume-fill {
    height: 100%;
    background: var(--gradient-cyan);
    border-radius: 3px;
    width: 70%;
    transition: width 0.1s var(--transition-smooth);
}

/* ========== Playlist Drawer ========== */
.playlist-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 340px;
    max-width: 90vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.4s var(--transition-smooth);
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.playlist-drawer.open {
    transform: translateX(0);
}

.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(45, 212, 191, 0.15);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.close-playlist-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(45, 212, 191, 0.1);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-teal);
    transition: all 0.2s var(--transition-smooth);
}

.close-playlist-btn:hover {
    background: rgba(45, 212, 191, 0.2);
    transform: scale(1.05);
}

.playlist-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s var(--transition-smooth);
}

.playlist-item:hover {
    background: rgba(45, 212, 191, 0.08);
    transform: translateX(4px);
}

.playlist-item.active {
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.15) 0%, rgba(20, 184, 166, 0.1) 100%);
}

.playlist-item.active .item-title {
    color: var(--accent-teal);
}

.item-cover {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: var(--gradient-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(45, 212, 191, 0.3);
}

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

.item-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s var(--transition-smooth);
}

.item-artist {
    font-size: 12px;
    color: var(--text-secondary);
}

.item-duration {
    font-size: 12px;
    color: var(--text-tertiary);
}

.playing-indicator {
    display: flex;
    gap: 2px;
    align-items: flex-end;
    height: 16px;
}

.playing-indicator span {
    width: 3px;
    background: var(--accent-teal);
    border-radius: 2px;
    animation: sound-wave 0.5s ease-in-out infinite alternate;
}

.playing-indicator span:nth-child(1) {
    height: 40%;
    animation-delay: 0s;
}

.playing-indicator span:nth-child(2) {
    height: 70%;
    animation-delay: 0.15s;
}

.playing-indicator span:nth-child(3) {
    height: 50%;
    animation-delay: 0.3s;
}

@keyframes sound-wave {
    from { height: 20%; }
    to { height: 100%; }
}

/* Overlay */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 148, 136, 0.15);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--transition-smooth);
    z-index: 999;
}

.overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* ========== Desktop Layout ========== */
@media (min-width: 768px) {
    .player-desktop-layout {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 60px;
        padding: 40px;
    }

    .player-left {
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .player-right {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .song-info {
        text-align: center;
    }

    .progress-section {
        flex-direction: column;
        gap: 8px;
    }

    .time-current,
    .time-total {
        display: none;
    }

    .controls {
        background: transparent;
        box-shadow: none;
    }
}

/* ========== Responsive ========== */
/* Mobile First - Phone (< 768px) */
@media (max-width: 767px) {
    /* Nav - Hide desktop menu on mobile */
    .nav-menu {
        display: none;
    }

    .nav-left {
        gap: 0;
    }

    .nav-right .nav-action-btn:not(.mobile-menu-btn) {
        display: none;
    }

    /* Smaller container for phone */
    .app-container {
        border-radius: 0;
        margin: 0;
        min-height: 100vh;
        box-shadow: none;
    }

    body {
        background: linear-gradient(180deg, #f0fdf9 0%, #ecfeff 100%);
    }

    /* Player - vertical layout */
    .player-main {
        padding: 24px 16px;
        gap: 16px;
    }

    .player-desktop-layout {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .player-left,
    .player-right {
        width: 100%;
    }

    .player-right {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Smaller turntable for phone */
    .turntable-frame {
        width: 240px;
        height: 240px;
        padding: 10px;
    }

    .vinyl {
        width: 185px;
        height: 185px;
    }

    .vinyl-center {
        width: 58px;
        height: 58px;
    }

    .vinyl-center::before {
        width: 10px;
        height: 10px;
    }

    .vinyl-grooves {
        inset: 68px;
    }

    .tonearm {
        right: 2%;
    }

    .tonearm-arm {
        height: 90px;
    }

    /* Smaller controls */
    .controls {
        padding: 10px 16px;
        gap: 12px;
    }

    .control-btn {
        width: 40px;
        height: 40px;
    }

    .control-btn svg {
        width: 20px;
        height: 20px;
    }

    .play-btn {
        width: 52px;
        height: 52px;
    }

    .play-btn svg {
        width: 26px;
        height: 26px;
    }

    /* Full width progress on mobile */
    .progress-section {
        max-width: 100%;
        padding: 0 8px;
    }

    .song-title {
        font-size: 16px;
        max-width: 280px;
    }

    .song-artist {
        font-size: 13px;
    }

    /* Compact volume */
    .volume-section {
        max-width: 160px;
        padding: 0;
    }

    .volume-knob {
        width: 26px;
        height: 26px;
    }

    /* Hide time on very small screens */
    .time-current,
    .time-total {
        font-size: 11px;
        min-width: 32px;
    }
}

/* Small phones (< 380px) */
@media (max-width: 380px) {
    .turntable-frame {
        width: 200px;
        height: 200px;
    }

    .vinyl {
        width: 155px;
        height: 155px;
    }

    .vinyl-center {
        width: 48px;
        height: 48px;
    }

    .vinyl-grooves {
        inset: 55px;
    }

    .tonearm-arm {
        height: 75px;
        width: 4px;
    }

    .controls {
        gap: 8px;
        padding: 8px 12px;
    }

    .control-btn {
        width: 36px;
        height: 36px;
    }

    .play-btn {
        width: 48px;
        height: 48px;
    }

    .mode-btn {
        width: 32px;
        height: 32px;
    }

    .song-title {
        font-size: 15px;
        max-width: 240px;
    }

    .volume-section {
        max-width: 140px;
    }
}

/* Larger phones (≥ 400px) */
@media (min-width: 400px) and (max-width: 767px) {
    .turntable-frame {
        width: 260px;
        height: 260px;
    }

    .vinyl {
        width: 200px;
        height: 200px;
    }

    .vinyl-center {
        width: 62px;
        height: 62px;
    }

    .vinyl-grooves {
        inset: 72px;
    }

    .song-title {
        max-width: 300px;
    }
}

/* ========== Effects ========== */
.glass-effect {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .vinyl.playing {
        animation: none;
    }

    .nav-logo-icon {
        animation: none;
    }

    .playing-indicator span {
        animation: none;
    }

    .vinyl-shine {
        animation: none;
    }
}