@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600&family=Playfair+Display:ital,wght@1,700&display=swap');

:root {
    --bg-color-1: #0a0b16; /* Deep Midnight Blue */
    --bg-color-2: #1c0e35; /* Dark Purple */
    --accent-neon: #00ffd5; /* Cyan Neon */
    --accent-gold: #cfaa6b; /* Classic Gold */
    --glass-bg: rgba(20, 20, 35, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f8f9fa;
    --text-secondary: #a0a5ba;
}

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

body, html {
    width: 100%;
    height: 100%;
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-color-1), var(--bg-color-2));
    background-size: 200% 200%;
    animation: gradientShift 20s ease infinite;
}

/* Dynamic Animated Background Blob */
.ambient-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(162, 59, 218, 0.2) 0%, rgba(0,0,0,0) 70%);
    top: -10%;
    left: -10%;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    animation: floatBlob 15s ease-in-out infinite alternate;
}

.ambient-blob-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 255, 213, 0.15) 0%, rgba(0,0,0,0) 70%);
    bottom: -10%;
    right: -5%;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 1;
    animation: floatBlob 20s ease-in-out infinite alternate-reverse;
}

.app-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 2rem;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    font-style: italic;
    color: var(--accent-gold);
    text-shadow: 0 4px 15px rgba(207, 170, 107, 0.3);
    letter-spacing: 2px;
}

.subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Glassmorphism Player Center */
.player-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.player-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Vinyl Record Container */
.vinyl-container {
    position: relative;
    width: 240px;
    height: 240px;
    margin-bottom: 2.5rem;
}

.vinyl-record {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #111;
    background-image: 
        radial-gradient(circle at center, #111 20%, #1a1a1a 23%, #111 26%, #1a1a1a 30%, #111 35%, #1a1a1a 45%, #111 50%, #2a2a2a 53%, #111 60%),
        conic-gradient(from 0deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.1) 15%, rgba(255,255,255,0.02) 30%, rgba(255,255,255,0.1) 65%, rgba(255,255,255,0.02) 80%);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6), inset 0 0 10px rgba(0,0,0,1);
    border: 2px solid #222;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Always spinning — JS changes animationDuration on play/pause */
    animation: rotateVinyl 14s linear infinite;
    transition: box-shadow 0.3s ease;
}

/* Extra glow when playing (class added by JS optionally) */
.vinyl-record.spin {
    box-shadow: 0 15px 45px rgba(0,0,0,0.7), 0 0 30px rgba(207,170,107,0.2);
}

.vinyl-label {
    width: 35%;
    height: 35%;
    border-radius: 50%;
    background-color: var(--accent-gold);
    background-image: url('C:/Users/disne/.gemini/antigravity/brain/98ceca62-4e08-46df-adbb-8aea9eec8743/vinyl_label_1775164298025.png'); /* User generated image path if deployed */
    background-size: cover;
    background-position: center;
    position: relative;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.vinyl-label::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #000;
    border-radius: 50%;
    border: 1px solid #333;
}

/* Asymmetric gleam — makes rotation VISIBLE */
.vinyl-label::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255,255,255,0.6);
}


/* Live Indicator */
.live-indicator {
    position: absolute;
    top: -10px;
    right: -10px;
    background: rgba(255, 30, 80, 0.15);
    border: 1px solid rgba(255, 30, 80, 0.4);
    color: #ff1e50;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 1px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: #ff1e50;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff1e50;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Metadata Text */
.metadata-container {
    width: 100%;
    text-align: center;
    margin-bottom: 2rem;
    height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

/* Marquee wrapper clips overflow */
.marquee-wrap {
    width: 100%;
    overflow: hidden;
    position: relative;
    /* subtle fade edges */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.track-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    display: inline-block;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: titleMarquee 7s ease-in-out infinite;
    opacity: 1;
}

.track-artist {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--accent-neon);
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    display: block;
    opacity: 1;
    margin-top: 0.4rem;
}

/* Controls */
.controls-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.play-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--accent-gold), #b38b4c);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px rgba(207, 170, 107, 0.4), inset 0 2px 4px rgba(255,255,255,0.4);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #111;
}

.play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 15px 30px rgba(207, 170, 107, 0.5), inset 0 2px 4px rgba(255,255,255,0.4);
}

.play-btn:active {
    transform: scale(0.95);
    box-shadow: 0 5px 15px rgba(207, 170, 107, 0.3);
}

.play-btn svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
    margin-left: 4px; /* visually center play icon */
    transition: all 0.2s ease;
}

.play-btn.is-playing svg {
    margin-left: 0; /* pause icon is symmetrical */
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-neon);
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-neon);
    transition: transform 0.1s;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

/* Animations */
@keyframes rotateVinyl {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes titleMarquee {
    0%   { transform: translateX(110%); }  /* enters from right */
    25%  { transform: translateX(0%); }    /* arrives at center */
    65%  { transform: translateX(0%); }    /* pauses at center */
    100% { transform: translateX(-110%); } /* exits to left */
}

@keyframes marqueeScroll {
    0%   { transform: translateX(0%); }
    10%  { transform: translateX(0%); }
    100% { transform: translateX(-130%); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 30, 80, 0.6); }
    70% { box-shadow: 0 0 0 6px rgba(255, 30, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 30, 80, 0); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 500px) {
    .player-card {
        padding: 2rem;
        max-width: 90%;
    }
    .vinyl-container {
        width: 180px;
        height: 180px;
    }
    .logo-text { font-size: 2.2rem; }
    .play-btn { width: 60px; height: 60px; }
}
