/* Reset and Base Styles */
:root {
    --text-color: #fff;
    --neon-pink: #ff00ff;
    --light-pink: #ff66ff; /* Lighter pink for pause state */
    --neon-cyan: #00ffff;
    --neon-blue: #0055ff; /* Blue for music on visualizer */
    --font-main: 'Space Mono', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent; /* Removes highlight square on mobile tap */
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

body {
    /* Background moved to .bg-image to fix mobile white line issue */
    color: var(--text-color);
    font-family: var(--font-main);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Fallback */
    height: 100dvh; /* Dynamic viewport height for mobile */
    background: url('background.jpg') no-repeat center center;
    background-size: cover;
    z-index: -1;
}

/* Remove overlay as requested */
body::before {
    display: none;
}

/* Top Right Icons */
.top-right-icons {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center; /* Align items vertically */
    justify-content: flex-end; /* Ensure they align to the right, though fixed positioning handles position */
    gap: 20px; /* Increased gap for better spacing */
    z-index: 100;
}

/* Volume in Top Right */
.volume-container {
    display: flex;
    align-items: center;
    margin-right: 10px; /* Added to match spacing between share and tip buttons */
}

.container {
    text-align: center;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Player hidden logic removed as element is gone */

.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Play Button Styling */
.btn {
    background: rgba(0, 0, 0, 0.2); /* Slight dark background to pop the neon */
    cursor: pointer;
    border-radius: 50%;
    width: 180px; 
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    
    /* Default Glow Color */
    --glow-color: var(--neon-cyan);
    
    /* Core is white (#fff), surrounded by glow color */
    border: 6px solid #fff; 
    color: #fff;
    
    /* Realistic Neon Glow */
    box-shadow: 
        0 0 5px #fff,               /* White hot core */
        inset 0 0 5px #fff,         /* White hot core (inner) */
        0 0 10px var(--glow-color),  /* Inner tight glow */
        inset 0 0 10px var(--glow-color),
        0 0 20px var(--glow-color),  /* Outer strong glow */
        inset 0 0 20px var(--glow-color),
        0 0 40px var(--glow-color),  /* Outer diffuse glow */
        0 0 80px rgba(0, 0, 0, 0.8); /* Dark contrast shadow */
        
    text-shadow: 
        0 0 5px #fff,
        0 0 10px var(--glow-color),
        0 0 20px var(--glow-color);
}

.btn.mode-cool {
    --glow-color: var(--neon-cyan);
}

.btn.mode-move {
    --glow-color: var(--light-pink);
}

.btn:hover {
    transform: scale(1.02);
    background: rgba(0, 0, 0, 0.3); /* Slightly darker on hover */
}

.btn svg {
    width: 80px; 
    height: 80px;
    /* Apply the same realistic neon filter to the icon using the glow color variable */
    filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 5px var(--glow-color)) drop-shadow(0 0 10px var(--glow-color));
}

/* Pause Icon Specifics to match request */
#pause-icon line {
    stroke-linecap: round; /* Rounded edges */
    stroke-width: 4px; /* Thinner bars (was 6px via HTML attr, overriding here if needed, but easier to update HTML) */
}

/* Volume Slider Styling */
input[type=range] {
    -webkit-appearance: none;
    width: 100px; 
    height: 4px; /* Thinner track */
    background: transparent;
    cursor: pointer;
    border-radius: 2px;
    /* Remove box-shadow, rely on drop-shadow filter for the neon shape */
    box-shadow: none;
    /* Realistic Neon Glow for the whole input (thumb + fill) 
       - Changed to pink-ish glow (var(--light-pink)) for the track/fill
       - Kept thumb white via the core
    */
    filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 5px var(--light-pink));
}

input[type=range]:focus {
    outline: none;
}

/* Chrome/Safari Thumb */
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px; /* Increased from 12px */
    width: 16px;  /* Increased from 12px */
    background: #fff;
    cursor: pointer;
    margin-top: -6px; /* (4 - 16) / 2 = -6 */
    border-radius: 50%;
    /* Reduced glow/shadow for handle as requested */
    box-shadow: 0 0 1px #fff; 
    transition: transform 0.2s ease; /* Add transition for hover effect */
}

/* Hover effect for Chrome/Safari Thumb */
input[type=range]:hover::-webkit-slider-thumb {
    transform: scale(1.2); /* Slightly bigger on hover */
}

/* Chrome/Safari Track */
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px; /* Thinner track */
    cursor: pointer;
    background: transparent; 
    border-radius: 2px;
}

/* Firefox Thumb */
input[type=range]::-moz-range-thumb {
    height: 16px; /* Increased from 12px */
    width: 16px;  /* Increased from 12px */
    background: #fff;
    cursor: pointer;
    border: none;
    border-radius: 50%;
    /* Reduced glow/shadow for handle */
    box-shadow: 0 0 1px #fff;
    transition: transform 0.2s ease; /* Add transition for hover effect */
}

/* Hover effect for Firefox Thumb */
input[type=range]:hover::-moz-range-thumb {
    transform: scale(1.2); /* Slightly bigger on hover */
}

/* Firefox Track */
input[type=range]::-moz-range-track {
    width: 100%;
    height: 4px; /* Thinner track */
    cursor: pointer;
    background: transparent;
    border-radius: 2px;
}

/* Icons Styling */
.icon-btn {
    background: transparent;
    border: none;
    color: #fff; /* White core */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    transition: transform 0.2s ease;
    /* Realistic Neon Glow - Default Pink (Shared for both now) */
    filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 5px var(--light-pink)) drop-shadow(0 0 10px var(--light-pink));
}

.icon-btn:hover {
    transform: scale(1.1);
    /* Intensified Glow - Pink */
    filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 8px var(--light-pink)) drop-shadow(0 0 15px var(--light-pink));
}

#kofi-btn {
    /* Styles are now shared via .icon-btn since both are pink, 
       but keeping this block if specific overrides needed later. 
       Currently it's redundant but harmless. */
}

.status {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
    text-shadow: 0 0 5px currentColor;
    letter-spacing: 2px;
}

.hidden {
    display: none !important;
}

/* Background Grain Effect */
.background-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Scanline effect */
body::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

/* Mode Switch Styles */
.mode-switch-container {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    /* transition removed to avoid animation on position change */
}

/* Fallback position for small vertical screens */
.mode-switch-container.top-left {
    bottom: auto;
    left: 20px;
    top: 20px;
    transform: none;
}

.mode-btn {
    /* Base styles matching .btn but for text */
    background: transparent;
    border: 3px solid #fff; /* Slightly thinner border */
    color: #fff;
    font-family: 'Varela Round', sans-serif; /* Rounded font for lights effect */
    padding: 8px 20px; /* Smaller padding */
    font-size: 1.3rem; /* Smaller font */
    font-weight: bold;
    cursor: pointer;
    text-transform: lowercase;
    border-radius: 50px; /* Pill shape */
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Default Mode Glow (Cool It - Cyan) - Matching .btn styles */
    box-shadow: 
        0 0 5px #fff,
        inset 0 0 5px #fff,
        0 0 10px var(--neon-cyan),
        inset 0 0 5px var(--neon-cyan),
        0 0 15px var(--neon-cyan);
        
    text-shadow: 
        0 0 5px #fff,
        0 0 10px var(--neon-cyan),
        0 0 20px var(--neon-cyan);
}

.mode-btn:hover {
    transform: scale(1.02);
    background: rgba(0, 0, 0, 0.3);
}

/* Mode Move It Style */
body.mode-move .mode-btn {
    box-shadow: 
        0 0 5px #fff,
        inset 0 0 5px #fff,
        0 0 10px var(--light-pink),
        inset 0 0 5px var(--light-pink),
        0 0 15px var(--light-pink);
        
    text-shadow: 
        0 0 5px #fff,
        0 0 10px var(--light-pink),
        0 0 20px var(--light-pink);
}
