:root {
  --bg-main: #0b0c10;
  --bg-sidebar: #0f1117;
  --bg-card: #161922;
  --bg-card-hover: #1e222e;
  --bg-player: #13161f;
  --bg-input: #1a1e28;
  --border-color: #242836;
  --accent-red: #e61e1e;
  --accent-red-hover: #ff3333;
  --accent-red-glow: rgba(230, 30, 30, 0.4);
  --text-main: #f0f2f5;
  --text-muted: #8b92a5;
  --text-sub: #a4abbd;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.6);
}

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

body {
  font-family: var(--font-stack);
  background-color: var(--bg-main);
  color: var(--text-main);
  height: 100vh;
  overflow: hidden;
  font-size: 14px;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: relative;
}

/* Custom Titlebar */
#titlebar {
  height: 52px;
  background-color: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 1000;
}

.brand-region {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 220px;
}

.btn-sidebar-mobile {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.app-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
}

.app-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
}

.app-badge {
  background: var(--accent-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.titlebar-center {
  flex: 1;
  max-width: 540px;
  margin: 0 20px;
  position: relative;
}

.search-box-container {
  display: flex;
  align-items: center;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0 14px;
  height: 36px;
  position: relative;
  transition: all 0.2s ease;
}

.search-box-container:focus-within {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 2px var(--accent-red-glow);
}

.search-icon {
  color: var(--text-muted);
  font-size: 13px;
  margin-right: 10px;
}

#global-search-input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  width: 100%;
  font-size: 13px;
}

#search-clear-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.suggestions-dropdown {
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  background: #181b24;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 280px;
  overflow-y: auto;
  z-index: 2000;
}

.suggestion-item {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: var(--text-sub);
  transition: background 0.15s;
}

.suggestion-item:hover {
  background: var(--bg-card-hover);
  color: #fff;
}

.titlebar-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.control-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 14px;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Main Container */
#main-container {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* Sidebar */
#sidebar {
  width: 230px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  overflow-y: auto;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.nav-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}

.nav-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.8px;
  padding: 4px 12px 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-sub);
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.nav-item i {
  font-size: 15px;
  width: 20px;
  text-align: center;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.nav-item.active {
  background: rgba(230, 30, 30, 0.15);
  color: #fff;
  font-weight: 600;
}

.nav-item.active i {
  color: var(--accent-red);
}

.badge {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.badge.success {
  background: rgba(46, 213, 115, 0.15);
  color: #2ed573;
}

.sidebar-spacer {
  flex: 1;
}

.app-credit {
  padding: 12px;
  border-top: 1px solid var(--border-color);
  font-size: 11px;
  color: var(--text-muted);
}

.app-credit .sub {
  color: var(--accent-red);
  font-size: 10px;
  margin-top: 2px;
}

/* Content Area */
#content-area {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px;
  background-color: var(--bg-main);
  position: relative;
}

.content-view {
  display: none;
}

.content-view.active {
  display: block;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: #252a38;
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--accent-red);
  font-size: 13px;
  z-index: 5000;
  transition: opacity 0.3s ease;
}

/* Hero Banner */
.hero-banner {
  background: linear-gradient(135deg, #2a0808 0%, #151821 70%);
  border: 1px solid rgba(230, 30, 30, 0.25);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.hero-tag {
  color: var(--accent-red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.hero-content h2 {
  font-size: 26px;
  margin: 8px 0;
}

.hero-content p {
  color: var(--text-sub);
  margin-bottom: 20px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 12px;
}

.btn-primary {
  background: var(--accent-red);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: var(--accent-red-hover);
  box-shadow: 0 4px 16px var(--accent-red-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Shelves & Sections */
.shelf-section {
  margin-bottom: 36px;
}

.shelf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.shelf-title {
  font-size: 18px;
  font-weight: 700;
}

.cards-scroll-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.cards-scroll-row::-webkit-scrollbar {
  height: 6px;
}

.cards-scroll-row::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.music-card {
  flex: 0 0 170px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.music-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  border-color: rgba(230, 30, 30, 0.3);
}

.card-thumb-box {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  background: #0f1117;
  margin-bottom: 10px;
}

.card-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.card-play-overlay button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-red);
  color: #fff;
  border: none;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px var(--accent-red-glow);
  transform: scale(0.9);
  transition: transform 0.2s;
}

.music-card:hover .card-play-overlay {
  opacity: 1;
}

.music-card:hover .card-play-overlay button {
  transform: scale(1);
}

.card-title {
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.card-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Explore & Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
}

.genre-card {
  height: 110px;
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.genre-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.genre-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.genre-icon {
  font-size: 28px;
  align-self: flex-end;
  opacity: 0.8;
}

/* Track List Table */
.tracks-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.track-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  background: transparent;
  cursor: pointer;
  transition: all 0.15s;
}

.track-row:hover {
  background: var(--bg-card);
}

.track-row.playing {
  background: rgba(230, 30, 30, 0.1);
  border-left: 3px solid var(--accent-red);
}

.track-row.playing .track-col-title {
  color: var(--accent-red);
}

.track-col-index {
  width: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.track-col-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #0f1117;
  flex-shrink: 0;
}

.track-col-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.track-col-details {
  flex: 1;
  min-width: 0;
}

.track-col-title {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-col-artist {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.15s;
}

.track-row:hover .track-actions {
  opacity: 1;
}

/* Search Results UI */
.search-header {
  margin-bottom: 20px;
}

.filter-pills {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  overflow-x: auto;
}

.filter-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-sub);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.filter-pill:hover {
  background: var(--bg-card-hover);
  color: #fff;
}

.filter-pill.active {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #fff;
  font-weight: 600;
}

.top-result-card {
  background: linear-gradient(135deg, #220808 0%, #161922 100%);
  border: 1px solid rgba(230, 30, 30, 0.3);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  cursor: pointer;
  transition: all 0.2s;
}

.top-result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.top-result-thumb {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.top-result-info h3 {
  font-size: 20px;
  margin-bottom: 4px;
}

/* View Headers */
.view-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.header-icon-box {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
  flex-shrink: 0;
}

.heart-gradient {
  background: linear-gradient(135deg, #e61e1e, #880b0b);
}

.list-gradient {
  background: linear-gradient(135deg, #3742fa, #1e258a);
}

.clock-gradient {
  background: linear-gradient(135deg, #ffa502, #8c5700);
}

.download-gradient {
  background: linear-gradient(135deg, #2ed573, #156637);
}

.gear-gradient {
  background: linear-gradient(135deg, #747d8c, #2f3542);
}

.compass-gradient {
  background: linear-gradient(135deg, #9b59b6, #34495e);
}

.chart-gradient {
  background: linear-gradient(135deg, #e67e22, #d35400);
}

.sub-header {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.8px;
}

.view-header h2 {
  font-size: 28px;
  margin: 4px 0;
}

.view-header p {
  color: var(--text-muted);
  font-size: 13px;
}

.header-action-right {
  margin-left: auto;
  display: flex;
  gap: 10px;
}

/* Settings View */
.settings-group {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.settings-group h3 {
  font-size: 16px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.setting-item:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.setting-info strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.setting-info span {
  font-size: 12px;
  color: var(--text-muted);
}

.styled-select {
  background: var(--bg-input);
  color: #fff;
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  outline: none;
  font-size: 13px;
  cursor: pointer;
}

.styled-toggle {
  width: 44px;
  height: 24px;
  accent-color: var(--accent-red);
  cursor: pointer;
}

/* Side Drawers: Lyrics & Queue */
#lyrics-panel, #queue-panel {
  width: 360px;
  background: var(--bg-sidebar);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 500;
  flex-shrink: 0;
}

.lyrics-header, .queue-header {
  height: 52px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  font-weight: 600;
}

.queue-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lyrics-scroll, .queue-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 24px 18px;
}

.lyric-line {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  line-height: 1.6;
  transition: all 0.25s ease;
}

.lyric-line:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.04);
}

.lyric-line.active {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  background: rgba(230, 30, 30, 0.15);
  border-left: 4px solid var(--accent-red);
  transform: scale(1.02);
  text-shadow: 0 0 12px rgba(230, 30, 30, 0.4);
}

.lyrics-placeholder {
  text-align: center;
  color: var(--text-muted);
  margin-top: 60px;
  font-size: 14px;
  line-height: 1.6;
}

/* Bottom Player Bar */
#player-bar {
  height: 84px;
  background: var(--bg-player);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1000;
}

.player-left {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 280px;
  flex-shrink: 0;
}

.player-thumb-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  background: #0f1117;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.player-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-eq-bars {
  position: absolute;
  bottom: 4px;
  right: 4px;
  display: none;
  gap: 2px;
  align-items: flex-end;
  height: 14px;
  background: rgba(0, 0, 0, 0.6);
  padding: 2px 3px;
  border-radius: 3px;
}

.mini-eq-bars span {
  width: 3px;
  background: var(--accent-red);
  border-radius: 1px;
  animation: eq-bounce 1s infinite alternate ease-in-out;
}

.mini-eq-bars span:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.mini-eq-bars span:nth-child(2) { height: 90%; animation-delay: 0.3s; }
.mini-eq-bars span:nth-child(3) { height: 60%; animation-delay: 0.2s; }

@keyframes eq-bounce {
  0% { height: 20%; }
  100% { height: 100%; }
}

.player-track-info {
  flex: 1;
  min-width: 0;
}

.player-track-info .track-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}

.player-track-info .track-artist {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 480px;
  max-width: 100%;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.15s;
}

.icon-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.icon-btn.active {
  color: var(--accent-red);
}

.play-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: #0b0c10;
  border: none;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.play-btn:hover {
  transform: scale(1.08);
  background: var(--accent-red);
  color: #fff;
  box-shadow: 0 0 16px var(--accent-red-glow);
}

.player-timeline {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.time-label {
  font-size: 11px;
  color: var(--text-muted);
  width: 36px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.slider-container {
  flex: 1;
  padding: 6px 0;
  cursor: pointer;
}

.slider-track {
  height: 4px;
  background: #282d3c;
  border-radius: 2px;
  position: relative;
  transition: height 0.15s;
}

.slider-container:hover .slider-track {
  height: 6px;
}

.slider-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-red);
  border-radius: 2px;
  position: relative;
}

.slider-handle {
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  transition: transform 0.15s;
}

.slider-container:hover .slider-handle {
  transform: translateY(-50%) scale(1);
}

.player-right {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 280px;
  justify-content: flex-end;
  flex-shrink: 0;
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 120px;
}

.volume-slider {
  width: 80px;
}

/* Utilities */
.hidden {
  display: none !important;
}

.loading-spinner {
  text-align: center;
  color: var(--text-muted);
  padding: 40px;
  font-size: 15px;
}

.loading-spinner i {
  color: var(--accent-red);
  margin-right: 8px;
}

/* Floating Video Dock */
.video-dock {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 290px;
  background: #141721;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  z-index: 1500;
  overflow: hidden;
  transition: all 0.25s ease;
}

.video-dock.minimized {
  width: 1px;
  height: 1px;
  opacity: 0.01;
  pointer-events: none;
  transform: scale(0.01);
}

.video-dock-header {
  height: 32px;
  background: #0f1117;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.video-dock-header i {
  color: var(--accent-red);
  margin-right: 4px;
}

.icon-btn-small {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 12px;
}

.icon-btn-small:hover {
  color: #fff;
}

.video-dock-body {
  width: 100%;
  height: 162px;
  background: #000;
}

.video-dock-body iframe {
  width: 100% !important;
  height: 100% !important;
  border: none;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6000;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 90%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
}

.modal-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.modal-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #fff;
  outline: none;
  font-size: 14px;
  margin: 14px 0 20px;
}

.modal-input:focus {
  border-color: var(--accent-red);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  #sidebar {
    position: absolute;
    top: 52px;
    bottom: 84px;
    left: 0;
    z-index: 2500;
    transform: translateX(-100%);
    box-shadow: 10px 0 30px rgba(0,0,0,0.5);
  }

  #sidebar.mobile-open {
    transform: translateX(0);
  }

  .btn-sidebar-mobile {
    display: block;
  }

  #lyrics-panel, #queue-panel {
    position: absolute;
    top: 52px;
    bottom: 84px;
    right: 0;
    z-index: 2500;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  }

  #content-area {
    padding: 20px 16px;
  }
}

@media (max-width: 768px) {
  #titlebar {
    padding: 0 10px;
  }

  .brand-region {
    flex: 0 0 auto;
  }

  .app-title, .app-badge {
    display: none;
  }

  .titlebar-center {
    margin: 0 10px;
  }

  #player-bar {
    padding: 0 12px;
  }

  .player-left {
    width: 180px;
  }

  .player-right .volume-container {
    display: none;
  }

  .player-right {
    width: auto;
  }

  .hero-banner {
    flex-direction: column;
    padding: 24px;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }
}
