/* Mobile shell */
.layout-mobile {
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
}

/* Mobile header */
.mobile-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  z-index: 30;
}
.mobile-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mobile-header .brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: white;
}
.mobile-header .brand-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
}

/* Mobile main scrollable area */
.mobile-main {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  padding-bottom: calc(var(--mobile-mini-player) + 24px);
}

/* Mobile hero */
.mobile-hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 24px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.mobile-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(50px) saturate(180%);
  transform: scale(1.2);
  opacity: 0.5;
  transition: background-image 0.6s ease;
}
.mobile-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 15, 0.1) 0%,
    rgba(10, 10, 15, 0.6) 50%,
    rgba(10, 10, 15, 0.95) 100%
  );
}
.mobile-hero-content {
  position: relative;
  z-index: 2;
  padding: 24px;
  text-align: center;
}
.mobile-hero-art {
  width: 220px;
  height: 220px;
  border-radius: var(--radius-md);
  object-fit: cover;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-card);
}
.mobile-hero-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 8px;
}
.mobile-hero-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.mobile-hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.mobile-hero-actions .btn {
  flex: 1;
  max-width: 160px;
}

/* Mobile URL section */
.mobile-url-section {
  margin-bottom: 24px;
}
.mobile-url-section .input-wrapper {
  position: relative;
  display: flex;
  gap: 10px;
}
.mobile-url-section .input-wrapper i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #ef4444;
  font-size: 16px;
}
.mobile-url-section .input-wrapper input {
  padding-left: 44px;
  flex: 1;
}
.mobile-url-section .input-wrapper .btn-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

/* Mobile section */
.mobile-section {
  margin-bottom: 28px;
}
.mobile-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 14px;
}
.mobile-section-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}
.mobile-section-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

/* Mobile library grid */
.mobile-library-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

/* Mobile mini player */
.mobile-mini-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--mobile-mini-player);
  background: rgba(18, 18, 26, 0.95);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(24px);
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0));
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 40;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.mobile-mini-player.hidden {
  transform: translateY(100%);
}
.mobile-mini-player img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}
.mobile-mini-player .text {
  flex: 1;
  min-width: 0;
}
.mobile-mini-player .text h4 {
  font-size: 13px;
  font-weight: 600;
}
.mobile-mini-player .text p {
  font-size: 11px;
  color: var(--text-muted);
}
.mobile-mini-player .btn-play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

/* Mobile full-screen player sheet */
.mobile-player-sheet {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-player-sheet.open {
  transform: translateY(0);
}
.mobile-player-sheet-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(80px) saturate(180%);
  transform: scale(1.3);
  opacity: 0.5;
  transition: background-image 0.6s ease;
}
.mobile-player-sheet-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.75);
}
.mobile-player-handle {
  position: relative;
  z-index: 2;
  padding: 16px;
  display: flex;
  justify-content: center;
  cursor: pointer;
}
.mobile-player-handle-bar {
  width: 40px;
  height: 5px;
  border-radius: var(--radius-full);
  background: var(--border-strong);
}
.mobile-player-content {
  position: relative;
  z-index: 2;
  flex: 1;
  overflow-y: auto;
  padding: 0 28px 28px;
  display: flex;
  flex-direction: column;
}
.mobile-player-art {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  object-fit: cover;
  margin: 0 auto 28px;
  box-shadow: var(--shadow-card);
}
.mobile-player-info {
  text-align: center;
  margin-bottom: 28px;
}
.mobile-player-info h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.2;
}
.mobile-player-info p {
  font-size: 15px;
  color: var(--text-secondary);
}
.mobile-player-timeline {
  margin-bottom: 28px;
}
.mobile-player-timeline .time-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 8px;
}
.mobile-player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 28px;
}
.mobile-player-controls .btn-icon {
  font-size: 22px;
  color: var(--text-secondary);
}
.mobile-player-controls .btn-play {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: white;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

/* Mobile sliders */
.mobile-player-sliders {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}
.mobile-player-sliders .slider-group {
  width: 100%;
}
.mobile-player-sliders .slider-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}
.mobile-player-sliders .slider-label i {
  margin-right: 6px;
}
.mobile-player-sliders input[type="range"] {
  height: 8px;
}
.mobile-player-visualizer {
  height: 120px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.2);
  overflow: hidden;
}
.mobile-player-visualizer canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Mobile empty/padding adjustments */
@media (max-width: 380px) {
  .mobile-hero-art {
    width: 180px;
    height: 180px;
  }
  .mobile-hero-title {
    font-size: 24px;
  }
  .mobile-library-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
