/* Albertine Music - Premium Commercial Styles */
:root {
  --bg-main: #171717;
  --bg-secondary: #202020;
  --bg-card: #262626;
  --bg-hover: #303030;
  --border: #383838;
  --text-main: #FFFFFF;
  --text-secondary: #B8B8B8;
  --accent: #E7A93C;
  --accent-hover: #f0b94d;
  --accent-dim: rgba(231, 169, 60, 0.15);
  --danger: #e74c3c;
  --success: #2ecc71;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,0.35);
  --transition: 0.2s ease;
  --player-height: 90px;
  --nav-height: 64px;
  --sidebar-width: 240px;
  --bottom-nav-height: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
input, select, textarea { font-family: inherit; }

/* Layout */
.app-layout {
  display: flex;
  min-height: 100vh;
  padding-bottom: var(--player-height);
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  bottom: var(--player-height);
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  transition: transform var(--transition);
}

.sidebar-logo {
  padding: 0 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo .logo-mark {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), #c4892a);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: #171717;
  flex-shrink: 0;
}

.sidebar-logo .logo-text {
  display: flex;
  flex-direction: column;
}

.sidebar-logo .brand {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
}

.sidebar-logo .tagline {
  font-size: 10px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0 12px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  transition: all var(--transition);
  margin-bottom: 2px;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: var(--bg-hover);
  color: var(--text-main);
}

.sidebar-nav a.active {
  color: var(--accent);
  background: var(--accent-dim);
}

.sidebar-nav a svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.85;
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  padding-bottom: 40px;
}

/* Top header mobile */
.mobile-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(23,23,23,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  align-items: center;
  justify-content: space-between;
}

.mobile-header .logo-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), #c4892a);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #171717;
}

.mobile-header .brand-name {
  font-weight: 700;
  font-size: 16px;
}

/* Bottom mobile nav */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: var(--player-height);
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  z-index: 95;
  justify-content: space-around;
  align-items: center;
  padding: 0 4px;
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
  transition: color var(--transition);
  min-width: 56px;
}

.bottom-nav a.active,
.bottom-nav a:hover {
  color: var(--accent);
}

.bottom-nav a svg {
  width: 22px;
  height: 22px;
}

/* More menu sheet */
.more-sheet {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.6);
}

.more-sheet.open { display: block; }

.more-sheet-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-radius: 20px 20px 0 0;
  padding: 20px 16px 32px;
  animation: slideUp 0.25s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.more-sheet-content h3 {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  padding: 0 8px;
}

.more-sheet-content a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 12px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: background var(--transition);
}

.more-sheet-content a:hover {
  background: var(--bg-hover);
}

/* Page container */
.page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 28px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.page-header h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.page-header .subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 4px;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #2a2115 0%, #1a1a1a 50%, #171717 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px 40px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(231,169,60,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.hero p {
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 520px;
  margin-bottom: 28px;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #171717;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: #4a4a4a;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 12px;
}

.btn-ghost:hover {
  color: var(--text-main);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

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

.btn-icon.play-btn {
  background: var(--accent);
  color: #171717;
  border: none;
}

.btn-icon.play-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

/* Sections */
.section {
  margin-bottom: 40px;
}

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

.section-header h2 {
  font-size: 20px;
  font-weight: 700;
}

.view-all {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  transition: opacity var(--transition);
}

.view-all:hover { opacity: 0.8; }

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.cards-grid.large {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.song-card, .artist-card, .playlist-card, .mix-card, .news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}

.song-card:hover, .artist-card:hover, .playlist-card:hover, .mix-card:hover, .news-card:hover {
  background: var(--bg-hover);
  border-color: #4a4a4a;
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.song-card .cover, .playlist-card .cover, .mix-card .cover {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-secondary);
}

.song-card .cover img, .playlist-card .cover img, .mix-card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.song-card:hover .cover img, .playlist-card:hover .cover img, .mix-card:hover .cover img {
  transform: scale(1.05);
}

.song-card .cover .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  gap: 10px;
}

.song-card:hover .cover .overlay {
  opacity: 1;
}

.song-card .info, .playlist-card .info, .mix-card .info {
  padding: 12px;
}

.song-card .title, .playlist-card .title, .mix-card .title {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.song-card .artist, .playlist-card .meta, .mix-card .meta {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-card .meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-secondary);
}

/* Artist card */
.artist-card {
  text-align: center;
  padding: 16px 12px;
}

.artist-card .avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin: 0 auto 12px;
  overflow: hidden;
  border: 2px solid var(--border);
  transition: border-color var(--transition);
}

.artist-card:hover .avatar {
  border-color: var(--accent);
}

.artist-card .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-card .name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.artist-card .popular {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Horizontal list (songs table style) */
.song-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.song-row {
  display: grid;
  grid-template-columns: 48px 1fr auto auto auto;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  cursor: pointer;
}

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

.song-row .thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-secondary);
  flex-shrink: 0;
}

.song-row .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.song-row .details .title {
  font-weight: 600;
  font-size: 14px;
}

.song-row .details .artist {
  font-size: 12px;
  color: var(--text-secondary);
}

.song-row .duration {
  font-size: 13px;
  color: var(--text-secondary);
  min-width: 40px;
  text-align: right;
}

.song-row .actions {
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity var(--transition);
}

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

/* Detail pages */
.detail-hero {
  display: flex;
  gap: 32px;
  margin-bottom: 36px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.detail-hero .artwork {
  width: 240px;
  height: 240px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  flex-shrink: 0;
  background: var(--bg-secondary);
}

.detail-hero .artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero .meta {
  flex: 1;
  min-width: 240px;
}

.detail-hero .type-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}

.detail-hero h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.detail-hero .byline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.detail-hero .byline img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.detail-hero .stats {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 20px;
}

.detail-hero .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
  transition: color var(--transition);
}

.back-link:hover {
  color: var(--accent);
}

/* Lyrics / description */
.content-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.content-block h3 {
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--accent);
}

.content-block p, .content-block .lyrics {
  color: var(--text-secondary);
  white-space: pre-line;
  line-height: 1.7;
}

/* News */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.news-card .image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-secondary);
}

.news-card .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .image img {
  transform: scale(1.04);
}

.news-card .body {
  padding: 16px;
}

.news-card .category {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}

.news-card .headline {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
  line-height: 1.35;
}

.news-card .meta {
  font-size: 12px;
  color: var(--text-secondary);
}

.article-content {
  max-width: 720px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.article-content p {
  margin-bottom: 16px;
}

.article-content strong {
  color: var(--text-main);
}

/* Search */
.search-box {
  position: relative;
  max-width: 560px;
  margin-bottom: 28px;
}

.search-box input {
  width: 100%;
  padding: 14px 18px 14px 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-main);
  font-size: 15px;
  outline: none;
  transition: border-color var(--transition);
}

.search-box input:focus {
  border-color: var(--accent);
}

.search-box svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
}

.search-results-section {
  margin-bottom: 32px;
}

.search-results-section h3 {
  font-size: 16px;
  margin-bottom: 14px;
  color: var(--text-secondary);
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.no-results h2 {
  color: var(--text-main);
  margin-bottom: 8px;
}

/* Settings */
.settings-list {
  max-width: 520px;
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.setting-item .label {
  font-weight: 500;
}

.setting-item .desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Toggle */
.toggle {
  width: 48px;
  height: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: background var(--transition);
}

.toggle.on {
  background: var(--accent);
  border-color: var(--accent);
}

.toggle::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform var(--transition);
}

.toggle.on::after {
  transform: translateX(20px);
}

/* Player */
.player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--player-height);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  z-index: 150;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 20px;
}

.player-track {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
  max-width: 280px;
  flex: 1;
}

.player-track .art {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-card);
  flex-shrink: 0;
}

.player-track .art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-track .info {
  overflow: hidden;
}

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

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

.player-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 2;
  max-width: 520px;
}

.player-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-buttons button {
  color: var(--text-secondary);
  transition: color var(--transition), transform var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-buttons button:hover {
  color: var(--text-main);
}

.player-buttons button.active {
  color: var(--accent);
}

.player-buttons .play-main {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--text-main);
  color: #171717;
}

.player-buttons .play-main:hover {
  transform: scale(1.06);
  color: #171717;
}

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

.player-progress .time {
  font-size: 11px;
  color: var(--text-secondary);
  min-width: 36px;
}

.progress-bar {
  flex: 1;
  height: 4px;
  background: var(--bg-card);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

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

.progress-bar .fill::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: var(--text-main);
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--transition);
}

.progress-bar:hover .fill::after {
  opacity: 1;
}

.player-extra {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 160px;
  justify-content: flex-end;
  flex: 1;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-control input[type="range"] {
  width: 90px;
  accent-color: var(--accent);
  height: 4px;
}

/* Queue panel */
.queue-panel {
  position: fixed;
  right: 0;
  bottom: var(--player-height);
  width: 340px;
  max-height: 50vh;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px 0 0 0;
  z-index: 140;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.queue-panel.open {
  display: flex;
}

.queue-panel .header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.queue-list {
  overflow-y: auto;
  flex: 1;
  padding: 8px;
}

.queue-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
}

.queue-item:hover, .queue-item.current {
  background: var(--bg-hover);
}

.queue-item img {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
}

.queue-item .qi-title {
  font-size: 13px;
  font-weight: 500;
}

.queue-item .qi-artist {
  font-size: 11px;
  color: var(--text-secondary);
}

/* Not found */
.not-found {
  text-align: center;
  padding: 80px 20px;
}

.not-found h1 {
  font-size: 48px;
  margin-bottom: 12px;
  color: var(--accent);
}

.not-found p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Loading */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  color: var(--text-secondary);
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Modal for create playlist */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  width: 100%;
  max-width: 420px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal h2 {
  margin-bottom: 16px;
  font-size: 20px;
}

.modal input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 15px;
  margin-bottom: 16px;
  outline: none;
}

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

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

/* Responsive */
@media (max-width: 1024px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0; }
  .mobile-header { display: flex; }
  .bottom-nav { display: flex; }
  .app-layout { padding-bottom: calc(var(--player-height) + var(--bottom-nav-height)); }
  .player-bar { bottom: 0; }
  .page { padding: 16px; }
  .hero { padding: 32px 24px; }
  .hero h1 { font-size: 28px; }
  .detail-hero .artwork { width: 180px; height: 180px; }
  .detail-hero h1 { font-size: 28px; }
  .player-extra .volume-control { display: none; }
  .player-track { max-width: 140px; min-width: 100px; }
  .song-row .actions { opacity: 1; }
}

@media (max-width: 600px) {
  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }
  .detail-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .detail-hero .byline { justify-content: center; }
  .detail-hero .actions { justify-content: center; }
  .detail-hero .artwork { width: 200px; height: 200px; }
  .player-track .info .artist { display: none; }
  .player-buttons { gap: 8px; }
  .queue-panel { width: 100%; border-radius: 12px 12px 0 0; }
  .song-row {
    grid-template-columns: 44px 1fr auto;
  }
  .song-row .duration { display: none; }
}

/* Focus states */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #444; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #555; }
