:root {
  --primary: #b8860b;
  --primary-light: rgba(184, 134, 11, 0.15);
  --primary-glow: rgba(184, 134, 11, 0.35);
  --bg: #f6f8fa;
  --card-bg: #ffffff;
  --text: #1e2229;
  --text-muted: #656e7b;
  --glass: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(0, 0, 0, 0.06);
  --sidebar-active-bg: #f0f2f5;
  --input-bg: #edf0f3;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.06);
  --blur: blur(16px);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

[data-theme="dark"] {
  --bg: #0b0c0e;
  --card-bg: #13161b;
  --text: #f3f4f6;
  --text-muted: #9ca3af;
  --glass: rgba(19, 22, 27, 0.8);
  --glass-border: rgba(255, 255, 255, 0.05);
  --sidebar-active-bg: #1c2027;
  --input-bg: #1c2027;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.4);
}

/* Base Optimization Boilerplate Reset Layout */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; -webkit-tap-highlight-color: transparent; }
body { background: var(--bg); color: var(--text); transition: background 0.35s ease, color 0.35s ease; padding-bottom: 140px; min-height: 100vh; overflow-x: hidden; }
.hidden { display: none !important; }

/* Splash Loading Screen Elements Rendering */
#splash-screen {
  position: fixed;
  inset: 0;
  background: #0b0c0e;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
}
.splash-content { text-align: center; color: #ffffff; }
.splash-logo-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  background: rgba(184, 134, 11, 0.1);
  border-radius: 50%;
  color: var(--primary);
  margin-bottom: 24px;
}
.sonar-wave {
  position: absolute;
  inset: 0;
  border: 2px solid var(--primary);
  border-radius: 50%;
  animation: sonar 2s infinite linear;
}
#splash-screen h1 { font-size: 1.6rem; font-weight: 700; letter-spacing: 3px; margin-bottom: 16px; }
#splash-screen h1 span { color: var(--primary); }
.modern-loader { display: flex; justify-content: center; gap: 6px; margin: 15px 0; }
.modern-loader span { width: 6px; height: 18px; background: var(--primary); border-radius: 3px; animation: jump 1s ease-in-out infinite; }
.modern-loader span:nth-child(2) { animation-delay: 0.15s; }
.modern-loader span:nth-child(3) { animation-delay: 0.3s; }
.splash-hidden { opacity: 0; visibility: hidden; }

/* Main Shell Header Navigation Styles */
.main-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 24px; background: var(--glass); backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur); position: sticky; top: 0; z-index: 900; 
  height: 70px; border-bottom: 1px solid var(--glass-border); box-shadow: var(--shadow-sm);
}
.menu-btn, .theme-toggle-btn { background: none; border: none; font-size: 1.3rem; color: var(--text); cursor: pointer; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background 0.2s; }
.menu-btn:hover, .theme-toggle-btn:hover { background: var(--primary-light); color: var(--primary); }
.logo { font-weight: 700; font-size: 1.3rem; letter-spacing: 0.5px; color: var(--text); display: flex; align-items: center; gap: 6px; }
.logo span { color: var(--primary); }
.logo .badge { font-size: 0.65rem; background: var(--primary); color: white; padding: 2px 6px; border-radius: 6px; font-weight: 600; margin-left: 2px; }

/* Off-Canvas Navigation Sidebar App Drawer Components */
.sidebar {
  position: fixed; left: -310px; top: 0; width: 300px; height: 100%;
  background: var(--card-bg); z-index: 1100; transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 40px 24px; box-shadow: var(--shadow-md); display: flex; flex-direction: column;
}
.sidebar.active { transform: translateX(310px); }
.sidebar-header { text-align: center; padding-bottom: 30px; border-bottom: 1px solid var(--glass-border); margin-bottom: 25px; }
.profile-avatar { width: 70px; height: 70px; background: var(--primary-light); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 1.8rem; border: 2px solid var(--primary-glow); }
.sidebar-header h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: 4px; }
.premium-status { font-size: 0.75rem; color: var(--primary); font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }
.sidebar-nav { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.sidebar-link { display: flex; align-items: center; gap: 14px; padding: 14px 18px; color: var(--text-muted); text-decoration: none; border-radius: var(--radius-sm); font-weight: 500; transition: all 0.2s; }
.sidebar-link i { font-size: 1.15rem; width: 24px; }
.sidebar-link:hover, .sidebar-link.active { color: var(--primary); background: var(--sidebar-active-bg); }
.sidebar-footer { padding-top: 20px; border-top: 1px solid var(--glass-border); text-align: center; }
.sidebar-footer p { font-size: 0.8rem; font-weight: 600; color: var(--text); }
.sidebar-footer span { font-size: 0.75rem; color: var(--text-muted); }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1050; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; backdrop-filter: blur(4px); }
.overlay.active { opacity: 1; pointer-events: all; }

/* Interactive Content Hero Wrapper Component */
.app-view-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.hero { padding: 50px 10px 40px; text-align: center; max-width: 700px; margin: 0 auto; }
.hero h1 { font-size: 2.2rem; font-weight: 700; tracking: -0.5px; background: linear-gradient(135deg, var(--text) 30%, var(--primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 8px; }
.sub-hero-tag { font-size: 0.75rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--primary); font-weight: 600; margin-bottom: 30px; }
.search-box-wrapper { position: relative; display: flex; align-items: center; background: var(--card-bg); border-radius: 30px; padding: 4px 6px; box-shadow: var(--shadow-md); border: 1px solid var(--glass-border); transition: border-color 0.2s; }
.search-box-wrapper:focus-within { border-color: var(--primary); }
.search-icon { position: absolute; left: 22px; color: var(--text-muted); font-size: 1rem; }
.search-box-wrapper input { border: none; background: none; width: 100%; padding: 12px 20px 12px 52px; outline: none; color: var(--text); font-size: 0.95rem; font-weight: 400; }

/* Section List and Operational Grid Grid Cards UI */
.stations-section { padding-top: 10px; }
.section-title { font-size: 1.1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; color: var(--text-muted); }
.section-title i { color: var(--primary); font-size: 1.2rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.station-card { display: flex; align-items: center; gap: 16px; background: var(--card-bg); padding: 16px; border-radius: var(--radius-md); cursor: pointer; border: 1px solid var(--glass-border); box-shadow: var(--shadow-sm); transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s; }
.station-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: 0 12px 24px var(--primary-light); }
.icon-circle { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; background: var(--input-bg); flex-shrink: 0; border: 1px solid var(--glass-border); }
.station-logo { width: 100%; height: 100%; object-fit: cover; }
.station-info { flex: 1; min-width: 0; }
.station-info h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.station-info p { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Contact Container Module */
.contact-container { max-width: 550px; margin: 40px auto; padding: 30px; background: var(--card-bg); border-radius: var(--radius-lg); border: 1px solid var(--glass-border); box-shadow: var(--shadow-md); }
.contact-card-header { text-align: center; margin-bottom: 30px; }
.contact-card-header h2 { font-size: 1.5rem; margin-bottom: 6px; }
.contact-card-header p { font-size: 0.85rem; color: var(--text-muted); }
.modern-form { display: flex; flex-direction: column; gap: 20px; }
.input-group { display: flex; flex-direction: column; gap: 6px; }
.input-group label { font-size: 0.85rem; font-weight: 500; color: var(--text-muted); }
.input-group input, .input-group textarea { background: var(--input-bg); border: 1px solid transparent; border-radius: var(--radius-sm); padding: 14px 16px; color: var(--text); outline: none; font-size: 0.95rem; font-weight: 400; transition: border 0.2s; width: 100%; }
.input-group input:focus, .input-group textarea:focus { border-color: var(--primary); }
.submit-btn { background: var(--primary); color: white; border: none; padding: 14px; border-radius: var(--radius-sm); font-size: 1rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: opacity 0.2s; margin-top: 10px; box-shadow: 0 4px 12px var(--primary-glow); }
.submit-btn:hover { opacity: 0.9; }
.back-btn { background: none; border: none; color: var(--text-muted); font-size: 0.9rem; font-weight: 500; cursor: pointer; margin-top: 20px; width: 100%; text-align: center; display: flex; align-items: center; justify-content: center; gap: 8px; }
.back-btn:hover { color: var(--primary); }

/* Sticky Persistent Global Media Dock Module Player */
.player-dock {
  position: fixed; bottom: 0; left: 0; width: 100%; padding: 16px 24px;
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border-top: 1px solid var(--glass-border); z-index: 1000; box-shadow: 0 -10px 30px rgba(0,0,0,0.04);
}
.player-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr 1fr; align-items: center; gap: 20px; }
.track-meta { display: flex; align-items: center; gap: 14px; cursor: pointer; min-width: 0; }
.visual-indicator-container { width: 44px; height: 44px; background: var(--input-bg); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.play-indicator { display: flex; align-items: flex-end; gap: 3px; height: 16px; }
.play-indicator span { width: 3px; height: 2px; background: var(--primary); border-radius: 1.5px; }
.play-indicator.active span { animation: bounce 0.8s ease-in-out infinite alternate; }
.play-indicator.active span:nth-child(2) { animation-delay: 0.2s; }
.play-indicator.active span:nth-child(3) { animation-delay: 0.4s; }
.play-indicator.active span:nth-child(4) { animation-delay: 0.1s; }
.meta-text { min-width: 0; flex: 1; }
#track-display { font-weight: 600; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
#track-sub-display { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.expand-arrow { opacity: 0.5; font-size: 0.8rem; transition: transform 0.2s; margin-left: 6px; }
.track-meta:hover .expand-arrow { opacity: 1; transform: translateY(-2px); }

.player-controls { display: flex; justify-content: center; align-items: center; gap: 16px; }
.control-btn { background: none; border: none; color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.secondary-control { font-size: 1.05rem; color: var(--text-muted); width: 36px; height: 36px; border-radius: 50%; }
.secondary-control:hover { background: var(--sidebar-active-bg); color: var(--text); }
.primary-control { font-size: 1.25rem; width: 40px; height: 40px; border-radius: 50%; }
.primary-control:hover { background: var(--sidebar-active-bg); color: var(--primary); }
.main-play { background: var(--primary); color: #ffffff !important; width: 50px; height: 50px; border-radius: 50%; font-size: 1.15rem; box-shadow: 0 4px 14px var(--primary-glow); }
.main-play:hover { transform: scale(1.04); }

.volume-container { display: flex; align-items: center; gap: 10px; justify-content: flex-end; color: var(--text-muted); font-size: 0.85rem; }
.volume-container input[type="range"] { -webkit-appearance: none; appearance: none; width: 100px; height: 4px; background: var(--input-bg); border-radius: 2px; outline: none; accent-color: var(--primary); }
.volume-container input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); cursor: pointer; transition: transform 0.1s; }
.volume-container input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.3); }

/* Immersive Immersive Now Playing Full Screen Panel Layout Overlay */
#now-playing-overlay {
  position: fixed; inset: 0; background: var(--card-bg); z-index: 2000;
  display: flex; flex-direction: column; padding: 30px 24px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
#now-playing-overlay.hidden { transform: translateY(100%); display: flex !important; }
.overlay-header { display: flex; justify-content: space-between; align-items: center; height: 50px; }
.close-overlay-btn, .overlay-share-btn { background: none; border: none; color: var(--text); font-size: 1.3rem; cursor: pointer; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.close-overlay-btn:hover, .overlay-share-btn:hover { background: var(--input-bg); }
.overlay-badge { font-size: 0.75rem; font-weight: 600; letter-spacing: 1.5px; color: var(--text-muted); text-transform: uppercase; }
.now-playing-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; max-width: 450px; margin: 0 auto; width: 100%; }
.vinyl-container { position: relative; width: min(280px, 70vw); height: min(280px, 70vw); margin-bottom: 35px; }
.vinyl-record { width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle, #2a2d34 0%, #090a0c 100%); border: 8px solid #1c2027; box-shadow: 0 15px 40px rgba(0,0,0,0.35), 0 0 0 1px var(--glass-border); display: flex; align-items: center; justify-content: center; animation: rotateVinyl 12s linear infinite; animation-play-state: paused; }
.vinyl-record img { width: 40%; height: 40%; border-radius: 50%; object-fit: cover; border: 2px solid #000; }
.vinyl-record.playing { animation-play-state: running; }
.center-spindle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 12px; height: 12px; background: var(--card-bg); border-radius: 50%; border: 3px solid #000; }
.playing-info { text-align: center; margin-bottom: 40px; width: 100%; }
.playing-info h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; }
.playing-info p { font-size: 0.95rem; color: var(--text-muted); }
.visualizer-container { width: 100%; height: 60px; display: flex; align-items: flex-end; }
#full-visualizer { width: 100%; height: 100%; }

/* Core Application Micro-Interactions Animations Declaration Keyframes */
@keyframes rotateVinyl { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes sonar { 0% { transform: scale(0.9); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes jump { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes bounce { from { height: 4px; } to { height: 20px; } }

/* Media Breakpoints Responsive Viewport Layout System Engine */
@media(max-width: 768px) {
  .player-inner { grid-template-columns: 1fr auto; gap: 10px; }
  .volume-container { display: none; }
  .hero h1 { font-size: 1.8rem; }
  .grid { grid-template-columns: 1fr; gap: 12px; }
  body { padding-bottom: 120px; }
  .player-dock { padding: 12px 16px; }
}