* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background:
        radial-gradient(1000px 700px at 20% 10%, rgba(255, 255, 255, 0.07), transparent 60%),
        radial-gradient(900px 700px at 90% 30%, rgba(255, 255, 255, 0.05), transparent 55%),
        linear-gradient(180deg, #2a2420 0%, #15100c 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 1100px;
}

.player-card {
    background: transparent;
    border-radius: 28px;
    padding: 10px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
    position: relative;
}

.device {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 34px;
    padding: 28px 26px 34px;
    position: relative;
    max-width: 520px;
    margin: 0 auto;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -30px 70px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
}

.device::before {
    content: '';
    position: absolute;
    inset: 14px;
    border-radius: 28px;
    background: linear-gradient(180deg, #2b241f 0%, #231c17 55%, #1d1612 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    z-index: -1;
}

.device-handle {
    width: 88px;
    height: 10px;
    border-radius: 999px;
    margin: 0 auto 18px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 2px 6px rgba(0, 0, 0, 0.55),
        0 1px 0 rgba(255, 255, 255, 0.06);
}

.photo-frame {
    background: rgba(0, 0, 0, 0.30);
    border-radius: 28px;
    padding: 20px;
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 18px;
}

.photo-viewport {
    width: 100%;
    height: 100%;
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.photo-track {
    width: 200%;
    height: 100%;
    display: flex;
    transform: translate3d(0, 0, 0);
    transition: transform 460ms cubic-bezier(0.19, 1, 0.22, 1);
    will-change: transform;
    backface-visibility: hidden;
}

.photo-track.is-sliding {
    pointer-events: none;
}

.photo-track img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
    user-select: none;
    transform: translateZ(0);
    backface-visibility: hidden;
    transition: opacity 260ms ease;
    opacity: 1;
}

.screw {
    width: 20px;
    height: 20px;
    background: linear-gradient(180deg, #56514c, #3d3832);
    border-radius: 50%;
    position: absolute;
    box-shadow:
        inset 0 2px 5px rgba(0, 0, 0, 0.55),
        0 6px 16px rgba(0, 0, 0, 0.35);
}

.screw::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 2px;
    background: #2a2420;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.top-left { top: 15px; left: 15px; }
.top-right { top: 15px; right: 15px; }
.bottom-left { bottom: 15px; left: 15px; }
.bottom-right { bottom: 15px; right: 15px; }

.waveform {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    padding: 14px 26px;
    margin: 14px 0 14px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wave-bars {
    display: flex;
    gap: 3px;
    height: 100%;
    align-items: center;
}

.time-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin-bottom: 22px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    padding: 10px 12px;
}

.auto-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.75);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

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

.knob-container {
    display: flex;
    justify-content: center;
    margin: 18px 0 0;
}

.lever {
    width: 170px;
    height: 170px;
    position: relative;
    cursor: grab;
    touch-action: none;
}

.lever:active { cursor: grabbing; }

.lever-base {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #0f0d0b, #000);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 18px 40px rgba(0, 0, 0, 0.55);
}

.lever-base::after {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.lever-arm {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 120px;
    height: 10px;
    transform-origin: 0% 50%;
    transform: translate(0px, -50%) rotate(0deg);
    will-change: transform;
}

.lever-arm::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 104px;
    height: 6px;
    transform: translateY(-50%);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.08));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.20),
        0 10px 26px rgba(0, 0, 0, 0.35);
}

.lever-head {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(0, -50%);
    width: 36px;
    height: 22px;
    border-radius: 999px;
    background: linear-gradient(180deg, #fff, #d7d7d7);
    box-shadow:
        0 16px 38px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.lever-head::after {
    content: '';
    position: absolute;
    inset: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
}

@media (max-width: 860px) {
    .container { max-width: 720px; }
}

@media (max-width: 420px) {
    .device { padding: 22px 18px 28px; }
    .lever { width: 150px; height: 150px; }
}
