/* Desktop shell */
.layout-desktop {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr var(--player-bar-height);
  height: 100vh;
}

/* Main content */
.main-content {
  grid-row: 1;
  grid-column: 1;
  overflow-y: auto;
  padding: 24px 32px;
  position: relative;
}

/* Hero */
.desktop-hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 28px;
  display: flex;
  align-items: flex-end;
  min-height: 320px;
}
.desktop-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(70px) saturate(180%);
  transform: scale(1.25);
  opacity: 0.55;
  transition: background-image 0.6s ease;
}
.desktop-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 15, 0.1) 0%,
    rgba(10, 10, 15, 0.7) 60%,
    rgba(10, 10, 15, 0.95) 100%
  );
}
.desktop-hero-content {
  position: relative;
  z-index: 2;
  padding: 32px;
  display: flex;
  gap: 28px;
  align-items: flex-end;
  width: 100%;
}
.desktop-hero-art {
  width: 220px;
  height: 220px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow-card);
}
.desktop-hero-meta {
  flex: 1;
  min-width: 0;
  padding-bottom: 8px;
}
.desktop-hero-title {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 10px;
  letter-spacing: -1px;
}
.desktop-hero-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 600px;
}
.desktop-hero-actions {
  display: flex;
  gap: 14px;
}

/* URL input section */
.url-section {
  margin-bottom: 28px;
}
.url-section .input-wrapper {
  display: flex;
  gap: 10px;
  position: relative;
}
.url-section .input-wrapper i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #ef4444;
  font-size: 16px;
}
.url-section .input-wrapper input {
  padding-left: 44px;
  flex: 1;
}

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

/* Player bar */
.player-bar {
  grid-row: 2;
  grid-column: 1;
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  align-items: center;
  gap: 28px;
  padding: 14px 28px;
  border-top: 1px solid var(--border);
  background: rgba(10, 10, 15, 0.88);
  backdrop-filter: blur(28px);
  z-index: 50;
}
.player-track {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.player-track img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
}
.player-track .text {
  min-width: 0;
}
.player-track h4 {
  font-size: 14px;
  font-weight: 600;
}
.player-track p {
  font-size: 12px;
  color: var(--text-muted);
}

.player-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.player-buttons {
  display: flex;
  align-items: center;
  gap: 18px;
}
.player-buttons .btn-icon {
  color: var(--text-secondary);
  font-size: 16px;
}
.player-buttons .btn-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: transform 0.15s ease;
}
.player-buttons .btn-play:hover {
  transform: scale(1.06);
}
.player-timeline {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.player-timeline input {
  flex: 1;
}

.player-extras {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

/* Slider groups */
.slider-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 120px;
}
.slider-label {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}
.slider-label i {
  font-size: 12px;
}
.slider-group input[type="range"] {
  height: 6px;
}

/* Responsive desktop adjustments */
@media (max-width: 1200px) {
  .player-bar {
    grid-template-columns: 220px 1fr 240px;
    gap: 18px;
  }
  .slider-group {
    width: 100px;
  }
  .desktop-hero-title {
    font-size: 42px;
  }
  .desktop-hero-art {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 900px) {
  .player-bar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 16px;
    height: auto;
  }
  .player-extras {
    justify-content: center;
    width: 100%;
  }
  .slider-group {
    flex: 1;
    max-width: 200px;
  }
}
