/* Import JetBrains Mono */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap');

/* Apply JetBrains Mono to all elements */
*,
*::before,
*::after {
    font-family: 'JetBrains Mono', monospace !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: black;
    color: white;
}

/* Click-to-enter overlay */
#enter-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 48px;
    cursor: pointer;
    z-index: 10;
    transition: opacity 1s ease;
}

#enter-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Background video */
video#bg-video {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Transparent overlay */
.overlay {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}

/* Center content */
.center-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

.center-container h1 {
    font-size: 48px;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.center-container h2 {
    font-size: 24px;
    color: #aaa;
    margin-bottom: 20px;
}

/* Music player */
.player {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0,0,0,0.5);
    padding: 10px 20px;
    border-radius: 10px;
    width: 400px;
    z-index: 2;
}

.album-cover {
    width: 60px;
    height: 60px;
    background: #222;
    border-radius: 8px;
    flex-shrink: 0;
}

.song-info { 
    flex-grow: 1; 
}

.song-info h3 {
    font-size: 16px;
    margin-bottom: 3px;
}

.song-info p {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 5px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress {
    width: 0%;
    height: 100%;
    background: #1DB954;
    transition: width 0.2s;
}

/* Controls */
.controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 80px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #1DB954;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Play/Pause button styling */
.control-buttons button.play-pause {
    position: relative;
    width: 28px;
    height: 28px;
    background: #1DB954;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.control-buttons button.play-pause:hover {
    background: #1ed760;
}

.play-icon {
    width: 0;
    height: 0;
    border-left: 10px solid white;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.pause-icon {
    display: none;
    width: 8px;
    height: 12px;
    background: white;
    position: relative;
}

.pause-icon::before {
    content: '';
    position: absolute;
    left: 6px;
    width: 2px;
    height: 12px;
    background: white;
}

/* Toggle states */
button.playing .play-icon {
    display: none;
}

button.playing .pause-icon {
    display: block;
}

#eq-canvas {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 300px;
  height: 150px;
  background: rgba(0,0,0,0);
  border-radius: 15px;
  z-index: 5;
  cursor: crosshair;
}

/* Click-to-enter text styling */
#enter-screen h1 {
    font-style: italic;
    color: #888; /* light grey */
}
