* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
}

/* Improve touch interactions */
button, .sticker, .btn {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.vinyl-container {
    -webkit-user-select: none;
    user-select: none;
}

.container {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.title {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeIn 1s ease-in;
}

.player-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

/* Vinyl Record Styles */
.vinyl-container {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #1a1a1a 0%, #000 100%);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.vinyl-container.spinning {
    animation: spin 3s linear infinite;
}

.vinyl-container:hover {
    transform: scale(1.02);
}

/* Vinyl Grooves */
.grooves {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    border-radius: 50%;
    background: repeating-radial-gradient(
        circle at center,
        transparent 0px,
        transparent 3px,
        rgba(255,255,255,0.03) 3px,
        rgba(255,255,255,0.03) 4px
    );
    pointer-events: none;
}

/* Center Label */
.vinyl-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(255,107,107,0.5);
    z-index: 1;
}

/* Counter-rotate lyrics when vinyl spins */
.vinyl-container.spinning .vinyl-center {
    animation: counterSpin 3s linear infinite;
}

@keyframes counterSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(-360deg); }
}

/* Lyrics Display */
.lyrics-display {
    width: 100%;
    height: 100%;
    color: white;
    font-size: 0.7rem;
    line-height: 1.5;
    overflow: hidden;
    text-align: center;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.lyrics-display p {
    margin: 3px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    animation: fadeInLyric 0.5s ease-in;
}

@keyframes fadeInLyric {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Stickers */
.sticker {
    position: absolute;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 2;
    transform: translate(-50%, -50%);
    border: 3px solid white;
}

/* Counter-rotate stickers to keep them upright when vinyl spins */
.vinyl-container.spinning .sticker {
    animation: counterSpin 3s linear infinite;
}

.sticker:hover {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 6px 25px rgba(255,255,255,0.4);
}

.sticker.active {
    animation: pulse 0.5s ease-in-out;
    box-shadow: 0 0 30px rgba(255,255,255,0.8);
}

.sticker-emoji {
    font-size: 1.8rem;
    margin-bottom: 2px;
}

.sticker-label {
    font-size: 0.65rem;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Different colors for stickers */
.sticker-1 { background: linear-gradient(135deg, #FA8BFF 0%, #2BD2FF 90%); }
.sticker-2 { background: linear-gradient(135deg, #FDEB71 0%, #F8D800 100%); }
.sticker-3 { background: linear-gradient(135deg, #A8EDEA 0%, #FED6E3 100%); }
.sticker-4 { background: linear-gradient(135deg, #FFA8A8 0%, #FCFF00 100%); }
.sticker-5 { background: linear-gradient(135deg, #C471F5 0%, #FA71CD 100%); }

/* Now Playing Section */
.now-playing {
    background: rgba(255,255,255,0.95);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.track-info {
    font-size: 1.2rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 15px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.1s linear;
}

.time-info {
    color: #666;
    font-size: 0.9rem;
}

/* Controls */
.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn {
    padding: 12px 30px;
    font-size: 1rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-stop {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
}

.btn-custom {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn:active {
    transform: translateY(0);
}

/* Animations */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
/* ========== RESPONSIVE DESIGN ========== */

/* Tablet Devices */
@media (max-width: 768px) {
    body {
        padding: 15px 10px;
    }
    
    .title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .vinyl-container {
        width: 340px;
        height: 340px;
    }
    
    .vinyl-center {
        width: 105px;
        height: 105px;
    }
    
    .lyrics-display {
        font-size: 0.65rem;
        padding: 12px;
    }
    
    .lyrics-display p {
        margin: 2px 0;
    }
    
    .sticker {
        width: 58px;
        height: 58px;
    }
    
    .sticker-emoji {
        font-size: 1.5rem;
    }
    
    .sticker-label {
        font-size: 0.6rem;
    }
    
    .now-playing {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .track-info {
        font-size: 1rem;
    }
    
    .controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        padding: 14px 20px;
    }
}

/* Mobile Devices */
@media (max-width: 480px) {
    body {
        padding: 10px 5px;
    }
    
    .title {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .vinyl-container {
        width: 280px;
        height: 280px;
    }
    
    .vinyl-center {
        width: 85px;
        height: 85px;
    }
    
    .lyrics-display {
        font-size: 0.55rem;
        padding: 10px;
        line-height: 1.4;
    }
    
    .lyrics-display p {
        margin: 2px 0;
    }
    
    .sticker {
        width: 50px;
        height: 50px;
        border-width: 2px;
    }
    
    .sticker-emoji {
        font-size: 1.3rem;
    }
    
    .sticker-label {
        font-size: 0.55rem;
    }
    
    .now-playing {
        padding: 12px;
    }
    
    .track-info {
        font-size: 0.95rem;
    }
    
    .btn {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
    
    .progress-bar {
        height: 6px;
    }
}

/* Very Small Screens */
@media (max-width: 360px) {
    .title {
        font-size: 1.2rem;
    }
    
    .vinyl-container {
        width: 240px;
        height: 240px;
    }
    
    .vinyl-center {
        width: 70px;
        height: 70px;
    }
    
    .sticker {
        width: 45px;
        height: 45px;
    }
    
    .sticker-emoji {
        font-size: 1.1rem;
    }
    
    .sticker-label {
        font-size: 0.5rem;
    }
    
    .lyrics-display {
        font-size: 0.5rem;
        padding: 8px;
    }
}
