/* 2007 Horizon WMP Windows 7 & Frutiger Eco Styling */

:root {
  /* Frutiger Eco / Aero Colors */
  --bg-base: #f0fdf4;
  --bg-panel: rgba(255, 255, 255, 0.45);
  
  --accent-green: #22c55e;
  --accent-cyan: #16a34a;
  --accent-blue: #0ea5e9;
  
  --text-dark: #0f172a;
  --text-mid: #475569;
  --text-light: #94a3b8;
  
  --glass-bg: rgba(255, 255, 255, 0.45);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-highlight: rgba(255, 255, 255, 0.95);
  
  --wmp-blue: #1d4ed8;
  --wmp-blue-glow: rgba(29, 78, 216, 0.35);
  --wmp-gel-blue: linear-gradient(to bottom, #38bdf8 0%, #0ea5e9 45%, #0284c7 50%, #0369a1 100%);
  
  --font-main: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  --transition-fast: all 0.15s ease-out;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* New Theme Variables */
  --body-bg: linear-gradient(135deg, #e0f2fe 0%, #dcfce7 50%, #f0fdf4 100%);
  --aero-glass-bg: rgba(230, 243, 245, 0.35);
  --aero-glass-border: rgba(255, 255, 255, 0.7);
  --aero-glass-outline: rgba(255, 255, 255, 0.4);
  --bubble-grad: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.6) 0%, rgba(14, 165, 233, 0.25) 40%, rgba(34, 197, 94, 0.1) 80%, rgba(255, 255, 255, 0) 100%);
  --btn-bg: linear-gradient(to bottom, #ffffff, #f1f5f9);
  --input-bg: #ffffff;
  --input-border: #cbd5e1;
  --content-bg: rgba(255, 255, 255, 0.25);
  --toolbar-bg: rgba(255, 255, 255, 0.4);
  --tab-bg: rgba(255, 255, 255, 0.2);
  --tab-hover-bg: rgba(255, 255, 255, 0.5);
  --tab-active-color: #166534;
  --genre-tag-bg: #ffffff;
  --genre-tag-border: #e2e8f0;
  --control-bar-bg: linear-gradient(to bottom, #d6e8f4 0%, #a4cae8 15%, #6fa6cf 50%, #4688be 51%, #2b6da5 100%);
  --hover-bg: #ffffff;
}

body.dark-theme {
  --bg-base: #020617;
  --bg-panel: rgba(15, 23, 42, 0.6);
  
  --accent-green: #10b981;
  --accent-cyan: #06b6d4;
  --accent-blue: #38bdf8;
  
  --text-dark: #f8fafc;
  --text-mid: #cbd5e1;
  --text-light: #64748b;
  
  --glass-bg: rgba(15, 23, 42, 0.55);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-highlight: rgba(255, 255, 255, 0.08);
  
  --wmp-blue: #3b82f6;
  --wmp-blue-glow: rgba(59, 130, 246, 0.5);
  --wmp-gel-blue: linear-gradient(to bottom, #60a5fa 0%, #3b82f6 45%, #2563eb 50%, #1d4ed8 100%);

  --body-bg: linear-gradient(135deg, #090f1e 0%, #051c24 50%, #030712 100%);
  --aero-glass-bg: rgba(15, 23, 42, 0.65);
  --aero-glass-border: rgba(255, 255, 255, 0.18);
  --aero-glass-outline: rgba(255, 255, 255, 0.08);
  --bubble-grad: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4) 0%, rgba(56, 189, 248, 0.2) 40%, rgba(16, 185, 129, 0.08) 80%, rgba(255, 255, 255, 0) 100%);
  --btn-bg: linear-gradient(to bottom, #1e293b, #0f172a);
  --input-bg: #1e293b;
  --input-border: #475569;
  --content-bg: rgba(15, 23, 42, 0.35);
  --toolbar-bg: rgba(15, 23, 42, 0.5);
  --tab-bg: rgba(15, 23, 42, 0.3);
  --tab-hover-bg: rgba(15, 23, 42, 0.6);
  --tab-active-color: var(--accent-green);
  --genre-tag-bg: #1e293b;
  --genre-tag-border: #334155;
  --control-bar-bg: linear-gradient(to bottom, #1e293b 0%, #0f172a 15%, #090d16 50%, #020617 100%);
  --hover-bg: #1e293b;
}

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

body {
  background: var(--body-bg);
  background-attachment: fixed;
  color: var(--text-dark);
  font-family: var(--font-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 20px;
  position: relative;
}

/* --- Frutiger Aero Floating Bubbles --- */
.aero-bubble {
  position: absolute;
  border-radius: 50%;
  background: var(--bubble-grad);
  box-shadow: inset -5px -5px 15px rgba(0, 0, 0, 0.05), inset 5px 5px 10px rgba(255, 255, 255, 0.5), 0 10px 20px rgba(0, 0, 0, 0.04);
  pointer-events: none;
  z-index: 0;
}

.bubble-1 {
  width: 180px;
  height: 180px;
  top: 10%;
  left: 10%;
  animation: floatBubble 24s infinite alternate ease-in-out;
}

.bubble-2 {
  width: 250px;
  height: 250px;
  bottom: 10%;
  right: 5%;
  animation: floatBubble 32s infinite alternate-reverse ease-in-out;
}

.bubble-3 {
  width: 120px;
  height: 120px;
  bottom: 20%;
  left: 15%;
  animation: floatBubble 20s infinite alternate ease-in-out;
}

.bubble-4 {
  width: 140px;
  height: 140px;
  top: 15%;
  right: 20%;
  animation: floatBubble 28s infinite alternate-reverse ease-in-out;
}

@keyframes floatBubble {
  0% { transform: translateY(0) translateX(0) scale(1); }
  100% { transform: translateY(-40px) translateX(30px) scale(1.08); }
}

/* --- Windows 7 Aero Glass Window --- */
.wmp-window {
  width: 1000px;
  max-width: 100%;
  height: 650px;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.2);
  z-index: 1;
  position: relative;
}

.wmp-window.minimized {
  height: 32px !important;
  min-height: 32px !important;
}

.wmp-window.minimized .wmp-toolbar,
.wmp-window.minimized .wmp-content-grid,
.wmp-window.minimized .wmp-control-bar {
  display: none !important;
}
.aero-glass {
  background: var(--aero-glass-bg);
  backdrop-filter: blur(25px) saturate(190%);
  -webkit-backdrop-filter: blur(25px) saturate(190%);
  border: 1px solid var(--aero-glass-border);
  outline: 1px solid var(--aero-glass-outline);
}

/* Window Title Bar */
.window-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 32px;
  padding: 0 10px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  user-select: none;
}

.title-left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dark);
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.wmp-logo-icon {
  font-size: 0.9rem;
}

.window-controls {
  display: flex;
  gap: 1px;
}

.win-btn {
  width: 28px;
  height: 18px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

.win-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--text-dark);
}

.win-min::before {
  width: 8px;
  height: 2px;
}

.win-max::before {
  width: 8px;
  height: 8px;
  border: 2px solid var(--text-dark);
  background: transparent;
}

.win-close::before {
  content: '\00d7';
  font-size: 1.1rem;
  background: transparent;
  top: 40%;
}

.win-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.win-close:hover {
  background: #e81123 !important;
  color: white !important;
}

.win-close:hover::before {
  background-color: white;
}

/* WMP Navigation Toolbar */
.wmp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 16px;
  background: var(--toolbar-bg);
  border-bottom: 1px solid var(--glass-border);
  gap: 12px;
}

.nav-arrows {
  display: flex;
  gap: 6px;
}

.nav-arrow-btn {
  width: 28px;
  height: 24px;
  background: var(--btn-bg);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  color: var(--text-mid);
  cursor: not-allowed;
  font-weight: bold;
}

.wmp-tabs {
  display: flex;
  gap: 4px;
  flex-grow: 1;
}

.nav-tab {
  background: var(--tab-bg);
  border: 1px solid transparent;
  border-bottom: none;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-mid);
  border-radius: 4px 4px 0 0;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.nav-tab:hover {
  background: var(--tab-hover-bg);
  color: var(--text-dark);
}

.nav-tab.active {
  background: var(--glass-highlight);
  border: 1px solid var(--glass-border);
  border-bottom: 2px solid var(--accent-green);
  color: var(--tab-active-color);
}

.search-box-container {
  width: 200px;
}

.search-input {
  width: 100%;
  padding: 4px 10px;
  font-size: 0.8rem;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-dark);
  border-radius: 12px;
  outline: none;
}

.search-input:focus {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

/* WMP Content Grid Area */
.wmp-content-grid {
  flex-grow: 1;
  overflow: hidden;
  position: relative;
  background: var(--content-bg);
}

.wmp-panel {
  display: none;
  width: 100%;
  height: 100%;
  overflow-y: auto;
}

.wmp-panel.active {
  display: block;
}

/* --- Now Playing Panel --- */
.now-playing-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  width: 100%;
  height: 100%;
}

@media (max-width: 800px) {
  .now-playing-grid {
    grid-template-columns: 1fr;
  }
}

/* Left side: Visualizer and Album Art screen */
.art-screen-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.05) 0%, rgba(34, 197, 94, 0.02) 100%), #040907;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.visualization-background {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 12px;
  padding: 40px;
  opacity: 0.35;
  pointer-events: none;
}

.visualizer-bar {
  width: 32px;
  height: 10px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(to top, var(--accent-cyan), var(--accent-blue));
  box-shadow: 0 0 10px var(--accent-blue);
  min-height: 10px;
  transition: height 0.15s ease-out;
}

/* Simple animation for visualizer when playing */
.album-art-wrapper.playing ~ .visualization-background .visualizer-bar {
  animation: bounceBar 1.2s infinite alternate ease-in-out;
}

.bar-1 { animation-delay: 0.1s !important; }
.bar-2 { animation-delay: 0.4s !important; }
.bar-3 { animation-delay: 0.2s !important; }
.bar-4 { animation-delay: 0.6s !important; }
.bar-5 { animation-delay: 0.3s !important; }
.bar-6 { animation-delay: 0.5s !important; }
.bar-7 { animation-delay: 0.15s !important; }
.bar-8 { animation-delay: 0.45s !important; }

@keyframes bounceBar {
  0% { height: 10px; }
  100% { height: 180px; }
}

.album-art-wrapper {
  position: relative;
  width: 250px;
  height: 250px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.25);
  z-index: 2;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
}

.album-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.art-reflection {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.15) 30%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.05) 100%);
  pointer-events: none;
}

.art-overlay-wmp {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  pointer-events: none;
}

.now-playing-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent-blue);
  box-shadow: 0 0 10px var(--accent-blue);
  display: none;
}

.album-art-wrapper.playing .now-playing-indicator {
  display: block;
  animation: pulseWmp 1.5s infinite;
}

@keyframes pulseWmp {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

/* WMP Queue Panel (Right Side Panel of Now Playing) */
.wmp-queue-panel {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.5);
  padding: 16px;
  overflow: hidden;
  height: 100%;
}

.queue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding-bottom: 8px;
}

.queue-header h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
}

.queue-badge {
  font-size: 0.75rem;
  color: var(--text-mid);
}

.tracklist-container {
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.track-item {
  display: grid;
  grid-template-columns: 24px 1fr auto auto;
  align-items: center;
  padding: 8px 12px;
  font-size: 0.85rem;
  border-radius: 3px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.track-item:hover {
  background: rgba(14, 165, 233, 0.1);
  color: #0369a1;
}

.track-item.active {
  background: rgba(34, 197, 94, 0.18);
  border-left: 3px solid var(--accent-green);
  color: #14532d;
  font-weight: 600;
}

.track-index {
  color: var(--text-light);
}

.track-item.active .track-index {
  color: var(--accent-green);
}

.track-info-inner {
  display: flex;
  flex-direction: column;
}

.track-title {
  font-weight: 500;
}

.track-type {
  font-size: 0.7rem;
  color: var(--text-light);
}

.single-badge {
  font-size: 0.65rem;
  background: var(--accent-blue);
  color: #fff;
  padding: 1px 5px;
  border-radius: 3px;
  margin-right: 6px;
  font-weight: bold;
}

.track-status-icon {
  width: 16px;
  height: 16px;
  color: var(--text-light);
}

.track-status-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.track-item.active .track-status-icon {
  color: var(--accent-green);
}

.track-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.track-item.disabled .track-title {
  text-decoration: line-through;
}

/* --- Library Panel (Windows 7 Explorer-style) --- */
.library-view-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  height: 100%;
}

.library-nav-pane {
  background: rgba(241, 245, 249, 0.6);
  border-right: 1px solid var(--glass-border);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nav-section h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 6px;
}

.nav-pane-link, .nav-section ul {
  list-style: none;
}

.nav-section li {
  padding: 6px 8px;
  font-size: 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  color: var(--text-mid);
  transition: var(--transition-fast);
}

.nav-section li:hover {
  background: rgba(34, 197, 94, 0.1);
  color: #166534;
}

.nav-section li.active {
  background: rgba(34, 197, 94, 0.2);
  color: #14532d;
  font-weight: 600;
}

.library-main-content {
  padding: 20px;
  overflow-y: auto;
}

.library-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #15803d;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding-bottom: 6px;
}

/* Characters Grid WMP explorer style */
.characters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.character-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 16px;
  text-align: center;
  transition: var(--transition-smooth);
}

.character-card:hover {
  background: var(--hover-bg);
  border-color: var(--accent-green);
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.15);
  transform: translateY(-2px);
}

.character-card.main-char {
  border-color: var(--accent-blue);
  background: rgba(224, 242, 254, 0.3);
}

.char-avatar-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
}

.char-avatar-img {
  width: 48px;
  height: 48px;
  display: block;
}

.char-avatar-emoji {
  font-size: 1.8rem;
  line-height: 48px;
  height: 48px;
}

.character-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.character-card p {
  font-size: 0.75rem;
  color: var(--text-mid);
}

.char-role-badge {
  display: inline-block;
  font-size: 0.65rem;
  background: var(--accent-blue);
  color: #fff;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: bold;
  margin-top: 6px;
}

.library-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 700px) {
  .library-row-grid {
    grid-template-columns: 1fr;
  }
}

.library-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 16px;
}

.library-card h3 {
  font-size: 0.95rem;
  color: #15803d;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding-bottom: 6px;
  margin-bottom: 12px;
}

.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.genre-tag {
  background: var(--genre-tag-bg);
  border: 1px solid var(--genre-tag-border);
  color: var(--text-mid);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.genre-tag:hover {
  background: var(--accent-green);
  color: white;
  border-color: var(--accent-green);
}

.tools-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tool-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-mid);
}

.tool-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-blue);
  border-radius: 50%;
}

/* --- Desktop Icons --- */
.desktop-container {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 1;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 72px;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-fast);
}

.desktop-icon:hover {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.desktop-icon.selected {
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.icon-img {
  font-size: 32px;
  margin-bottom: 4px;
  text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.icon-label {
  color: #fff;
  font-size: 0.75rem;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  font-weight: 500;
  word-wrap: break-word;
}

/* --- Tetris Window --- */
.game-window {
  width: auto;
  height: auto;
  position: absolute;
  top: 100px;
  left: 100px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.tetris-container {
  display: flex;
  background: var(--content-bg);
  padding: 16px;
  gap: 16px;
}

.tetris-game-area {
  background: #111;
  border: 2px solid var(--glass-border);
  border-radius: 4px;
  padding: 2px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

.tetris-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 140px;
}

.tetris-score-box {
  background: rgba(0,0,0,0.2);
  padding: 10px;
  border-radius: 4px;
  text-align: center;
  border: 1px solid var(--glass-border);
}

.tetris-score-box h3 {
  font-size: 0.7rem;
  color: var(--text-mid);
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.tetris-score-box p {
  font-size: 1.2rem;
  font-weight: bold;
  font-family: monospace;
}

.tetris-controls {
  background: rgba(0,0,0,0.1);
  padding: 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--text-mid);
}

.tetris-controls p {
  margin-bottom: 4px;
}

.tetris-btn {
  background: var(--btn-bg);
  border: 1px solid var(--input-border);
  padding: 8px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-dark);
  transition: var(--transition-fast);
  margin-top: auto;
}

.tetris-btn:hover {
  background: var(--hover-bg);
  border-color: var(--accent-blue);
}

/* --- Inspirations Panel --- */
.inspirations-panel-wrapper {
  padding: 20px;
}

.section-desc {
  font-size: 0.85rem;
  color: var(--text-mid);
  margin-bottom: 20px;
}

.inspirations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.insp-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  transition: var(--transition-fast);
  text-decoration: none;
  color: inherit;
}

.insp-card:hover {
  background: var(--hover-bg);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.insp-icon {
  font-size: 1.4rem;
}

.insp-text {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-mid);
}

/* --- Windows Media Player Bottom Control Bar --- */
.wmp-control-bar {
  height: 85px;
  background: var(--control-bar-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  user-select: none;
  z-index: 10;
}

/* Media Seek bar at the top of the control bar */
.wmp-seek-container {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  height: 20px;
}

.time-display {
  font-size: 0.7rem;
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 1px rgba(0,0,0,0.5);
  min-width: 32px;
  font-family: Consolas, monospace;
}

.progress-bar {
  flex-grow: 1;
  height: 4px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.25);
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(to bottom, #10b981 0%, #059669 100%);
  box-shadow: 0 0 5px #10b981;
  border-radius: 2px;
  position: relative;
}

.progress-handle {
  position: absolute;
  right: -5px;
  top: -3px;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, #ffffff 30%, #e2e8f0 100%);
  border: 1px solid rgba(0,0,0,0.5);
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* controls row */
.wmp-controls-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 65px;
  padding-bottom: 6px;
}

/* Left: Now Playing Song Metadata */
.wmp-metadata-dock {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 240px;
}

.mini-art-wrapper {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0,0,0,0.4);
  box-shadow: inset 0 0 2px rgba(255,255,255,0.5);
  border-radius: 2px;
  overflow: hidden;
  background: #000;
}

.mini-art-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dock-text-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dock-title-scroll {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 170px;
}

.dock-track-title {
  font-size: 0.8rem;
  font-weight: bold;
  color: white;
  text-shadow: 0 1px 1px rgba(0,0,0,0.5);
}

.dock-artist-name {
  font-size: 0.75rem;
  color: #e0f2fe;
  text-shadow: 0 1px 1px rgba(0,0,0,0.4);
}

/* Center: Playback Buttons */
.wmp-playback-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wmp-btn {
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

/* Circular Play Button Halo (WMP Style) */
.play-btn-halo {
  width: 44px;
  height: 44px;
  background: radial-gradient(circle, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.btn-play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--wmp-gel-blue);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.5), inset 0 -3px 5px rgba(0,0,0,0.3);
  position: relative;
}

.btn-play::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  border-left: 10px solid white;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.btn-play.playing::before {
  content: '';
  width: 8px;
  height: 10px;
  border-left: 3px solid white;
  border-right: 3px solid white;
  border-top: none;
  border-bottom: none;
  left: 50%;
}

.btn-play:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.6), inset 0 2px 4px rgba(255,255,255,0.5);
}

/* WMP Control Button Icons (CSS Drawing / Unicode fallback) */
.btn-shuffle, .btn-repeat, .btn-prev, .btn-next, .btn-volume, .btn-fullscreen {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: linear-gradient(to bottom, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
}

.btn-shuffle::before { content: '🔀'; }
.btn-repeat::before { content: '🔁'; }
.btn-prev::before { content: '⏮'; font-size: 0.85rem;}
.btn-next::before { content: '⏭'; font-size: 0.85rem;}
.btn-volume::before { content: '🔊'; }
.btn-fullscreen::before { content: '⛶'; }

.wmp-btn:hover {
  background: linear-gradient(to bottom, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 100%);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-shuffle.active, .btn-repeat.active {
  background: var(--accent-green);
  border-color: var(--accent-green);
}

/* Right Controls Dock */
.wmp-right-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 200px;
  justify-content: flex-end;
}

.wmp-volume-widget {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wmp-volume-slider {
  width: 70px;
  accent-color: white;
  height: 3px;
  cursor: pointer;
}

/* Custom scrollbars inside the player panels */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
  background: rgba(34, 197, 94, 0.3);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(34, 197, 94, 0.6);
}

/* --- Theme Toggle Button --- */
.theme-toggle-btn {
  background: var(--btn-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: var(--transition-fast);
  outline: none;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 8px var(--accent-blue);
  border-color: var(--accent-blue);
}

.theme-toggle-icon {
  font-size: 0.85rem;
  display: block;
}

/* --- Mobile Responsive Rules --- */
@media (max-width: 768px) {
  #tetris-icon, #tetris-window {
    display: none !important;
  }
}
