/* ========== TechDJ Listener Stylesheet ========== */ /* Standalone styles — no DJ panel CSS loaded. */ @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Rajdhani:wght@300;500;700&display=swap'); :root { --bg-dark: #0a0a12; --panel-bg: rgba(20, 20, 30, 0.8); --primary-cyan: #00f3ff; --secondary-magenta: #bc13fe; --text-main: #e0e0e0; --text-dim: #888; --glass-border: 1px solid rgba(255, 255, 255, 0.1); --glow-opacity: 0.3; --glow-spread: 30px; --glow-border: 5px; } * { -webkit-overflow-scrolling: touch; box-sizing: border-box; user-select: none; -webkit-user-select: none; } html { scroll-behavior: smooth; overflow: hidden; scrollbar-width: none; } html::-webkit-scrollbar { display: none; } body { margin: 0; background-color: var(--bg-dark); color: var(--text-main); font-family: 'Rajdhani', sans-serif; height: 100vh; display: flex; flex-direction: column; overflow: hidden; background-image: radial-gradient(circle at 10% 20%, rgba(0, 243, 255, 0.15) 0%, transparent 25%), radial-gradient(circle at 90% 80%, rgba(188, 19, 254, 0.15) 0%, transparent 25%), radial-gradient(circle at 50% 50%, rgba(0, 243, 255, 0.05) 0%, transparent 50%); } body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 999; opacity: var(--glow-opacity, 0.3); transition: all 1s cubic-bezier(0.4, 0, 0.2, 1); } /* Listener atmospheric glow — static, intensity driven by --glow-opacity/--glow-spread */ body.listener-glow::before { box-shadow: 0 0 var(--glow-spread) rgba(0, 80, 255, calc(var(--glow-opacity) * 1.5)), 0 0 calc(var(--glow-spread) * 1.5) rgba(188, 19, 254, calc(var(--glow-opacity) * 1.5)), inset 0 0 var(--glow-spread) rgba(0, 80, 255, calc(var(--glow-opacity) * 1)), inset 0 0 calc(var(--glow-spread) * 1.5) rgba(188, 19, 254, calc(var(--glow-opacity) * 1)); } /* Deck-driven glow — mirrors the DJ panel colours */ body.listener-glow.playing-A::before { box-shadow: inset 0 0 var(--glow-spread) var(--primary-cyan); } body.listener-glow.playing-B::before { box-shadow: inset 0 0 var(--glow-spread) var(--secondary-magenta); } body.listener-glow.playing-A.playing-B::before { box-shadow: inset 0 0 var(--glow-spread) var(--primary-cyan), inset 0 0 calc(var(--glow-spread) * 1.5) var(--secondary-magenta); } /* ========== Listener Mode Layout ========== */ .listener-mode { position: fixed; inset: 0; background: transparent; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; } .listener-header { text-align: center; margin-bottom: 40px; } .listener-header h1 { font-family: 'Orbitron', sans-serif; font-size: 3rem; color: var(--secondary-magenta); text-shadow: 0 0 30px var(--secondary-magenta); margin: 0 0 20px 0; } /* ========== Glow Text ========== */ .glow-text { color: #fff; text-shadow: 0 0 10px var(--secondary-magenta), 0 0 20px var(--secondary-magenta); animation: text-glow-pulse 2s infinite ease-in-out; } @keyframes text-glow-pulse { 0%, 100% { opacity: 0.8; text-shadow: 0 0 10px var(--secondary-magenta); } 50% { opacity: 1; text-shadow: 0 0 15px var(--secondary-magenta), 0 0 30px var(--secondary-magenta); } } /* ========== Live Indicator ========== */ .live-indicator { display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; background: rgba(188, 19, 254, 0.2); border: 2px solid var(--secondary-magenta); border-radius: 25px; font-family: 'Orbitron', sans-serif; font-size: 1.2rem; color: var(--secondary-magenta); box-shadow: 0 0 20px rgba(188, 19, 254, 0.4); } .pulse-dot { width: 12px; height: 12px; background: var(--secondary-magenta); border-radius: 50%; animation: pulse-dot 1.5s ease-in-out infinite; } @keyframes pulse-dot { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.3); opacity: 0.7; } } /* ========== Listener Content Card ========== */ .listener-content { max-width: 600px; width: 100%; background: rgba(10, 10, 20, 0.8); border: 2px solid var(--secondary-magenta); border-radius: 20px; padding: 40px; box-shadow: 0 0 40px rgba(188, 19, 254, 0.3); backdrop-filter: blur(10px); } /* ========== Visualiser ========== */ #viz-listener { width: 100%; height: 80px; display: block; margin: 20px 0; } /* ========== Now Playing ========== */ .now-playing { text-align: center; font-family: 'Orbitron', sans-serif; font-size: 1.5rem; color: var(--text-main); margin-bottom: 30px; padding: 20px; background: rgba(0, 0, 0, 0.3); border-radius: 10px; min-height: 60px; display: flex; align-items: center; justify-content: center; } /* ========== Volume ========== */ .volume-control { margin-bottom: 20px; } .volume-control label { display: block; margin-bottom: 10px; font-size: 1.1rem; color: var(--text-dim); } .volume-control input[type="range"] { width: 100%; height: 8px; -webkit-appearance: none; appearance: none; background: rgba(188, 19, 254, 0.3); border-radius: 4px; outline: none; } .volume-control input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--secondary-magenta); cursor: pointer; box-shadow: 0 0 10px var(--secondary-magenta); } .volume-control input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--secondary-magenta); cursor: pointer; border: none; box-shadow: 0 0 10px var(--secondary-magenta); } /* ========== Connection Status ========== */ .connection-status { text-align: center; font-family: 'Rajdhani', sans-serif; font-size: 0.9rem; color: var(--text-dim); padding: 10px; background: rgba(0, 0, 0, 0.3); border-radius: 5px; } .connection-status.connected { color: #00ff00; text-shadow: 0 0 10px #00ff00; } .connection-status.disconnected { color: #ff4444; } /* ========== Enable Audio Button ========== */ .enable-audio-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 30px 40px; margin: 30px 0; background: linear-gradient(145deg, #1a1a1a, #0a0a0a); border: 3px solid var(--secondary-magenta); border-radius: 15px; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 0 30px rgba(188, 19, 254, 0.3); font-family: 'Orbitron', sans-serif; } .enable-audio-btn:hover { background: linear-gradient(145deg, #2a2a2a, #1a1a1a); box-shadow: 0 0 50px rgba(188, 19, 254, 0.6); transform: translateY(-3px); border-color: #ff00ff; } .enable-audio-btn:active { transform: translateY(-1px); box-shadow: 0 0 40px rgba(188, 19, 254, 0.5); } .enable-audio-btn .audio-icon { font-size: 3rem; animation: pulse-icon 2s ease-in-out infinite; } @keyframes pulse-icon { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.1); opacity: 0.8; } } .enable-audio-btn .audio-text { font-size: 1.5rem; font-weight: bold; color: var(--secondary-magenta); text-shadow: 0 0 10px var(--secondary-magenta); } .enable-audio-btn .audio-subtitle { font-size: 0.9rem; color: var(--text-dim); font-family: 'Rajdhani', sans-serif; } /* ========== Mobile Responsiveness ========== */ @media (max-width: 768px) { .listener-mode { padding: 20px; justify-content: flex-start; padding-top: 60px; } .listener-header h1 { font-size: 2.2rem; margin-bottom: 10px; } .live-indicator { font-size: 0.9rem; padding: 6px 15px; } .listener-content { padding: 25px; margin-top: 10px; border-radius: 15px; } .now-playing { font-size: 1.1rem; min-height: 80px; line-height: 1.4; margin-bottom: 20px; } .volume-control label { font-size: 0.9rem; } #viz-listener { height: 60px !important; margin: 15px 0; } } /* ========== Listener Count Badge ========== */ .listener-count-badge { font-family: 'Rajdhani', sans-serif; font-size: 0.8rem; color: rgba(255, 255, 255, 0.7); margin-left: 8px; padding-left: 10px; border-left: 1px solid rgba(188, 19, 254, 0.4); } .listener-count-badge #listener-count { color: var(--secondary-magenta, #bc13fe); font-weight: 700; }