/* ============================================
   OnePlaylist — Guy in a Cube Light Theme
   ============================================ */

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f6f7f9;
  --bg-elevated: #eceef2;
  --bg-highlight: #e4e7ec;
  --bg-card: #f6f7f9;
  --bg-card-hover: #eceef2;
  --accent: #017aeb;
  --accent-hover: #2a93f5;
  --text-primary: #1a1d21;
  --text-secondary: #5b6470;
  --text-subdued: #8b94a0;
  --border: #e3e6ea;
  --player-height: 90px;
  --topbar-height: 64px;
  --sidebar-width: 240px;
  --mobile-header-height: 56px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: 0.2s ease;
}

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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* App layout */
#app {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: var(--topbar-height) 1fr var(--player-height);
  height: 100vh;
  overflow: hidden;
}

/* ============================================
   Top Bar
   ============================================ */
#topbar {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  height: var(--topbar-height);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  z-index: 60;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.btn-icon.menu-toggle {
  display: none;
  color: var(--text-secondary);
}

.topbar-logo {
  display: flex;
  align-items: center;
}

.topbar-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.topbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.topbar-wordmark {
  height: 24px;
  width: auto;
  display: block;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar-link {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

.topbar-link:hover {
  background: var(--bg-highlight);
  color: var(--text-primary);
}

.topbar-link.active {
  background: var(--accent);
  color: #fff;
}

.topbar-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  font-size: 1.3rem;
  color: var(--accent);
}

.topbar-icon-link:hover {
  background: var(--bg-highlight);
  color: var(--accent-hover);
}

.topbar-icon-link.active {
  background: var(--bg-highlight);
  color: var(--accent);
}

/* ============================================
   Sidebar
   ============================================ */
#sidebar {
  grid-row: 2 / 3;
  background: var(--bg-secondary);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  border-right: 1px solid var(--border);
  position: relative;
  width: var(--sidebar-width);
  min-width: 72px;
  max-width: 400px;
  transition: width 0.2s ease;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px;
}

.sidebar-logo h1 {
  font-size: 1.25rem;
  font-weight: 700;
  padding: 0 8px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  object-fit: contain;
}

.sidebar-logo i {
  color: var(--accent);
}

#sidebar-collapse-btn {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--text-subdued);
}

#sidebar-collapse-btn:hover {
  color: var(--text-primary);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
  overflow: hidden;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-highlight);
}

.nav-link.active {
  color: #fff;
  background: var(--accent);
  font-weight: 600;
  position: relative;
}

.nav-link.active:hover {
  color: #fff;
  background: var(--accent-hover);
}

.nav-link.active i {
  color: #fff;
}

.nav-link i {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-actions {
  padding: 0 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-shuffle-all {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: none;
  border-radius: 24px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
  overflow: hidden;
}

.btn-shuffle-all:hover {
  background: var(--bg-highlight);
  transform: scale(1.02);
}

.btn-shuffle-all.active {
  background: var(--accent);
  color: #fff;
}

.btn-shuffle-all.active:hover {
  background: var(--accent-hover);
}

.btn-shuffle-all:active {
  transform: scale(0.98);
}

.btn-download-all-sidebar {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: none;
  border-radius: 24px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
  overflow: hidden;
}

.btn-download-all-sidebar:hover {
  background: var(--bg-highlight);
  transform: scale(1.02);
}

.btn-download-all-sidebar:active {
  transform: scale(0.98);
}

/* Sidebar library (album list) */
/* Sidebar resize handle */
.sidebar-resize-handle {
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  cursor: col-resize;
  background: transparent;
  transition: background 0.2s;
  z-index: 10;
}

.sidebar-resize-handle:hover,
.sidebar-resize-handle:active {
  background: var(--accent);
}

/* Sidebar collapsed state */
#sidebar.collapsed .sidebar-label {
  display: none;
}

#sidebar.collapsed .nav-link {
  justify-content: center;
  padding: 12px;
}

#sidebar.collapsed .btn-shuffle-all {
  justify-content: center;
  padding: 12px;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  margin: 0 auto;
}

#sidebar.collapsed .btn-download-all-sidebar {
  justify-content: center;
  padding: 12px;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  margin: 0 auto;
}

#sidebar.collapsed .sidebar-header {
  justify-content: center;
}

#sidebar.collapsed .sidebar-logo {
  display: none;
}

/* ============================================
   Mobile Header
   ============================================ */
#mobile-header {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  height: var(--mobile-header-height);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.mobile-title {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-title i {
  color: var(--accent);
}

/* ============================================
   Main Content
   ============================================ */
#main-content {
  overflow-y: auto;
  padding: 32px;
  background: var(--bg-primary);
  scroll-behavior: smooth;
}

#view-container {
  max-width: 1400px;
  margin: 0 auto;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Home / Library views */
.view-header {
  margin-bottom: 32px;
}

.view-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.view-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Album grid */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 24px;
}

.album-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 16px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}

.album-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.album-card-art {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  object-fit: cover;
  margin-bottom: 12px;
  background: var(--bg-elevated);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

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

.album-card-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Play button overlay on album cards */
.album-card-wrapper {
  position: relative;
}

.album-card-play {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.album-card:hover .album-card-play {
  opacity: 1;
  transform: translateY(0);
}

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

/* ============================================
   Album Detail View
   ============================================ */
.album-detail {
  animation: fadeIn 0.25s ease;
}

.album-detail-header {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
  align-items: flex-end;
}

.album-detail-art {
  width: 232px;
  height: 232px;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.album-detail-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.album-detail-type {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.album-detail-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
}

.album-detail-meta {
  color: var(--text-secondary);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.album-detail-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-secondary);
}

.album-detail-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.btn-play-album {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}

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

.btn-share-album,
.btn-download-album {
  background: none;
  border: 1px solid var(--text-subdued);
  color: var(--text-primary);
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
}

.btn-share-album:hover,
.btn-download-album:hover {
  border-color: var(--text-primary);
  transform: scale(1.02);
}

/* Tracklist */
.tracklist {
  width: 100%;
  border-collapse: collapse;
}

.tracklist-header {
  display: grid;
  grid-template-columns: 40px 1fr 100px 80px;
  padding: 0 16px 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
  color: var(--text-subdued);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.track-row {
  display: grid;
  grid-template-columns: 40px 1fr 100px 80px;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition);
}

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

.track-row.active {
  background: var(--bg-highlight);
}

.track-row.active .track-title {
  color: var(--accent);
}

.track-row.active .track-number {
  color: var(--accent);
}

.track-number {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
}

.track-row:hover .track-number-text,
.track-row.active .track-number-text {
  display: none;
}

.track-row:hover .track-play-icon,
.track-row.active .track-play-icon {
  display: inline;
}

.track-play-icon {
  display: none;
  color: var(--text-primary);
}

.track-row.active .track-play-icon {
  color: var(--accent);
}

.track-title {
  font-size: 0.95rem;
  font-weight: 500;
}

.track-duration {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: right;
}

.track-actions {
  display: flex;
  justify-content: center;
}

.track-download-btn {
  background: none;
  border: none;
  color: var(--text-subdued);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  opacity: 0;
  transition: opacity var(--transition), color var(--transition);
}

.track-row:hover .track-download-btn {
  opacity: 1;
}

.track-download-btn:hover {
  color: var(--text-primary);
}

.track-share-btn {
  background: none;
  border: none;
  color: var(--text-subdued);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  opacity: 0;
  transition: opacity var(--transition), color var(--transition);
}

.track-row:hover .track-share-btn {
  opacity: 1;
}

.track-share-btn:hover {
  color: var(--text-primary);
}

/* ============================================
   Player Bar
   ============================================ */
.player-bar {
  grid-column: 1 / -1;
  grid-row: 3;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  padding: 0 16px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  height: var(--player-height);
  z-index: 100;
}

.player-bar.hidden {
  display: none;
}

/* Track info */
.player-track-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.player-art {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-elevated);
  cursor: pointer;
  transition: opacity var(--transition);
}

.player-art:hover {
  opacity: 0.8;
}

.player-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.player-title {
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

/* Controls */
.player-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

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

.btn-icon {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: color var(--transition), transform var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  color: var(--text-primary);
  transform: scale(1.1);
}

.btn-play {
  background: var(--text-primary);
  color: var(--bg-primary);
  width: 36px;
  height: 36px;
  font-size: 0.85rem;
  padding: 0;
}

.btn-play:hover {
  transform: scale(1.08);
  color: var(--bg-primary);
}

/* Play/pause button state */
#btn-play-pause .fa-play {
  /* Optically center the play triangle within the circular button */
  transform: translateX(1px);
}

#btn-play-pause .fa-pause {
  display: none;
}

#btn-play-pause.playing .fa-play {
  display: none;
}

#btn-play-pause.playing .fa-pause {
  display: inline;
}

/* Shuffle/Repeat active states */
.btn-shuffle.active,
.btn-repeat.active {
  color: var(--accent);
}

.btn-repeat.repeat-one::after {
  content: "1";
  font-size: 0.5rem;
  position: absolute;
  font-weight: 700;
}

/* Progress bar */
.player-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 600px;
  font-size: 0.7rem;
  color: var(--text-subdued);
}

.progress-bar {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--bg-highlight);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  transition: height var(--transition);
}

.progress-bar:hover {
  height: 6px;
}

.progress-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-primary);
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--transition);
}

.progress-bar:hover::-webkit-slider-thumb {
  opacity: 1;
}

.progress-bar::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-primary);
  border: none;
  cursor: pointer;
}

/* Player extras (right side) */
.player-extras {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

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

.volume-slider {
  width: 80px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--bg-highlight);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-primary);
  cursor: pointer;
}

.volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-primary);
  border: none;
  cursor: pointer;
}

/* ============================================
   Toast Notifications
   ============================================ */
.toast {
  position: fixed;
  bottom: calc(var(--player-height) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-elevated);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 200;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================
   Download Progress
   ============================================ */
.download-progress {
  position: fixed;
  bottom: calc(var(--player-height) + 16px);
  right: 16px;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 200;
  min-width: 240px;
}

.download-progress-title {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.download-progress-bar {
  width: 100%;
  height: 4px;
  background: var(--bg-highlight);
  border-radius: 2px;
  overflow: hidden;
}

.download-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s;
}

/* ============================================
   Sidebar overlay (mobile)
   ============================================ */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 49;
}

.sidebar-overlay.active {
  display: block;
}

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--bg-highlight);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-subdued);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  #app {
    grid-template-columns: 1fr;
    grid-template-rows: var(--topbar-height) 1fr var(--player-height);
  }

  .btn-icon.menu-toggle {
    display: flex;
  }

  /* Collapse-to-rail is desktop-only; on mobile the hamburger is the single menu control */
  #sidebar-collapse-btn {
    display: none;
  }

  #sidebar {
    position: fixed;
    left: -100%;
    top: var(--topbar-height);
    bottom: 0;
    width: var(--sidebar-width);
    z-index: 50;
    transition: left 0.3s ease;
  }

  #sidebar.open {
    left: 0;
  }

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

  .player-bar {
    grid-template-columns: 1fr auto;
    padding: 0 12px;
  }

  .player-controls {
    flex-direction: row;
  }

  .player-progress {
    display: none;
  }

  .player-extras {
    display: none;
  }

  .player-buttons {
    gap: 8px;
  }

  .btn-shuffle,
  .btn-repeat {
    display: none;
  }

  .album-detail-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .album-detail-art {
    width: 200px;
    height: 200px;
  }

  .album-detail-title {
    font-size: 1.75rem;
  }

  .album-detail-actions {
    justify-content: center;
  }

  .album-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
  }

  .tracklist-header {
    grid-template-columns: 32px 1fr 50px 70px;
  }

  .track-row {
    grid-template-columns: 32px 1fr 50px 70px;
    padding: 8px 8px;
  }

  .track-share-btn {
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .album-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }

  .album-card {
    padding: 12px;
  }

  .album-detail-art {
    width: 160px;
    height: 160px;
  }
}

/* Download All button */
.btn-download-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.btn-download-all:hover {
  background: var(--accent-hover);
  transform: scale(1.04);
}

/* About section */
.about-section {
  max-width: 100%;
}

.about-bio h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.about-alias {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.about-alias a {
  color: var(--accent);
  text-decoration: none;
}

.about-alias a:hover {
  text-decoration: underline;
}

.about-bio p {
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.about-links {
  display: flex;
  gap: 0;
  margin-top: 20px;
}

.about-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text-secondary);
  font-size: 1.4rem;
  text-decoration: none;
  transition: color var(--transition);
}

.about-links a:hover {
  color: var(--accent);
}

.giac-cube-icon {
  display: block;
  height: 1.55rem;
  width: calc(1.55rem * 129.19 / 89); /* preserve cropped cube aspect ratio */
  background-color: currentColor;
  -webkit-mask: url('../img/giac-cube.svg') no-repeat center / contain;
  mask: url('../img/giac-cube.svg') no-repeat center / contain;
}

/* ============================================
   Shuffle All View
   ============================================ */
.shuffle-view {
  animation: fadeIn 0.25s ease;
}

.shuffle-view-header {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
  align-items: flex-end;
}

.shuffle-view-art {
  width: 232px;
  height: 232px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  background: linear-gradient(135deg, #017aeb, #2a93f5, #6cb8f7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.shuffle-view-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shuffle-view-type {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.shuffle-view-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
}

.shuffle-view-meta {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.shuffle-view-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.btn-play-shuffle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}

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

.btn-reshuffle {
  background: none;
  border: 1px solid var(--text-subdued);
  color: var(--text-primary);
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
}

.btn-reshuffle:hover {
  border-color: var(--text-primary);
  transform: scale(1.02);
}

.shuffle-tracklist-header {
  grid-template-columns: 40px 1fr 100px 48px;
}

.shuffle-track-row {
  grid-template-columns: 40px 1fr 100px 48px;
}

.shuffle-track-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.shuffle-track-art {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.shuffle-track-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.shuffle-track-text .track-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shuffle-track-artist {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Responsive adjustments for shuffle view */
@media (max-width: 768px) {
  .shuffle-view-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .shuffle-view-art {
    width: 180px;
    height: 180px;
    font-size: 3.5rem;
  }

  .shuffle-view-title {
    font-size: 1.75rem;
  }

  .shuffle-view-actions {
    justify-content: center;
  }
}

/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-icon:focus-visible {
  outline-offset: 0;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
