* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg: #000000;
  --bg-soft: #121212;
  --card: #181818;
  --card-2: #202020;
  --text: #FFFFFF;
  --muted: #A0A0B0;
  --muted-2: #6A6A7A;
  --border: rgba(255,255,255,0.08);
  --accent: #FF6B35;
  --accent-2: #FFD200;
  --green: var(--accent);
  --brand-2: var(--accent-2);
  --success: #2A9D8F;
  --shadow: rgba(0,0,0,0.30);
  --header-bg: linear-gradient(135deg, #000000 0%, #121212 100%);
  color-scheme: dark;
}

body.light-skin {
  --bg: #F7F8FC;
  --bg-soft: #FFFFFF;
  --card: #FFFFFF;
  --card-2: #F1F3F8;
  --text: #15151F;
  --muted: #5D6475;
  --muted-2: #7B8292;
  --border: rgba(10,10,15,0.10);
  --shadow: rgba(25,30,45,0.12);
  --header-bg: linear-gradient(135deg, #FFFFFF 0%, #FFF4EC 100%);
  color-scheme: light;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: Inter, sans-serif;
  background: var(--bg);
  color: var(--text);
  padding-bottom: 24px;
}

a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }
button, input, .song-card, .artist-card, .playlist-card, .genre-chip, .nav-item-sidebar, .nav-item-bottom {
  touch-action: manipulation;
}
button:focus-visible,
input:focus-visible,
.nav-item-sidebar:focus-visible,
.nav-item-bottom:focus-visible,
.song-card:focus-visible,
.artist-card:focus-visible,
.playlist-card:focus-visible,
.genre-chip:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #1A1A26; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

.app-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background: color-mix(in srgb, var(--bg-soft) 96%, transparent);
  backdrop-filter: blur(10px);
  border-right: 1px solid var(--border);
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  z-index: 100;
  transition: all 0.3s ease;
  transform: translateX(0);
  box-shadow: 0 20px 40px var(--shadow);
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo,
.logo-mobile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-logo-icon,
.logo-mobile-icon {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #0A0A0F;
}

.sidebar-logo-icon img,
.logo-mobile-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  display: block;
}

.logo-mobile-icon {
  width: 36px;
  height: 36px;
  font-size: 18px;
}

.sidebar-logo-text,
.logo-mobile-text {
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
}

.sidebar-logo-text span,
.logo-mobile-text span {
  color: var(--accent);
}

.sidebar-nav {
  padding: 12px 14px;
  overflow-y: auto;
  max-height: calc(100vh - 90px);
}

.nav-item-sidebar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--muted);
  transition: all 0.2s;
  margin-bottom: 4px;
  cursor: pointer;
  font-weight: 900;
}

.nav-item-sidebar i {
  width: 22px;
  font-size: 18px;
}

.nav-item-sidebar:hover,
.nav-item-sidebar.active {
  background: rgba(255,255,255,0.10);
  color: var(--text);
}

.main-content {
  flex: 1;
  margin-left: 260px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  transition: all 0.3s ease;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: color-mix(in srgb, var(--bg-soft) 96%, transparent);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: none;
  justify-content: space-around;
  padding: 10px 20px 20px;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom, 20px);
  box-shadow: 0 -14px 34px var(--shadow);
}

.nav-item-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--muted-2);
  transition: all 0.2s;
  font-size: 11px;
  cursor: pointer;
  position: relative;
}

.nav-item-bottom i { font-size: 22px; }
.nav-item-bottom.active { color: var(--accent); }
.nav-item-bottom span { font-size: 10px; font-weight: 500; }

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 99;
}

.header {
  padding: 20px 24px;
  background: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
  gap: 14px;
}

.logo-mobile { display: none; }

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: auto;
}

.header-actions button {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  position: relative;
}

.header-actions button:hover { color: var(--text); }

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--accent);
  color: white;
  font-size: 9px;
  padding: 2px 5px;
  border-radius: 10px;
}

.theme-toggle-btn,
.search-toggle-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  color: var(--accent) !important;
}

.search-toggle-btn {
  border-radius: 14px;
  background: rgba(255,107,53,.12) !important;
}

.empty-search {
  display: none;
  color: var(--muted);
  font-size: 13px;
  padding: 12px 0 4px;
}

.empty-search.show { display: block; }

.search-popover {
  display: none;
  margin-top: 14px;
  width: 100%;
}

.search-popover.active { display: block; }

.search-popover-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(620px, 100%);
  margin-left: auto;
  background: var(--card);
  border: 1px solid rgba(255,107,53,.25);
  border-radius: 18px;
  padding: 10px 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}

.search-popover-inner i { color: var(--accent); }
.search-popover-inner input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: inherit;
  font-size: 14px;
}
.search-popover-inner button {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 0;
  background: rgba(255,107,53,.12);
  color: var(--accent);
  cursor: pointer;
}

.section {
  padding: 0 24px;
  margin-bottom: 28px;
}

.welcome-body-section {
  margin-top: 22px;
  margin-bottom: 16px;
}

.body-welcome {
  max-width: 1100px;
  margin: 0 auto;
}

.body-welcome h1 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  margin-bottom: 6px;
  font-weight: 800;
}

.body-welcome p {
  font-size: 15px;
  color: var(--muted);
}

.banner-section {
  padding: 0 24px;
  margin-bottom: 24px;
  overflow: hidden;
}

.swiper {
  width: 100%;
  height: auto;
  border-radius: 20px;
  overflow: hidden;
}

.swiper-slide {
  position: relative;
  cursor: pointer;
}

.banner-slide {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 5;
  min-height: 210px;
  max-height: 360px;
  border-radius: 20px;
  overflow: hidden;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.banner-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.46);
  z-index: 1;
  pointer-events: none;
}

.banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(14px, 3vw, 30px);
  background: linear-gradient(to top, rgba(0,0,0,0.86), rgba(0,0,0,0.18), transparent);
  color: #fff;
  z-index: 2;
}

.banner-title {
  font-size: clamp(18px, 3vw, 34px);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 4px;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.55);
}

.banner-subtitle {
  font-size: clamp(12px, 1.6vw, 16px);
  opacity: 0.9;
  max-width: 680px;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}

.banner-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  z-index: 2;
}

.swiper-pagination-bullet { background: white; opacity: 0.5; }
.swiper-pagination-bullet-active { background: var(--accent); opacity: 1; }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  gap: 12px;
}

.section-header h2 {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-header h2 i {
  color: var(--accent);
  font-size: 16px;
}

.section-header a {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.horizontal-scroll {
  display: flex;
  overflow-x: auto;
  gap: 14px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

.horizontal-scroll.snap { scroll-snap-type: x proximity; }
.horizontal-scroll.snap > * { scroll-snap-align: start; }

.song-card,
.playlist-card {
  flex: 0 0 150px;
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow: 0 12px 32px var(--shadow);
}

.song-card:hover,
.playlist-card:hover,
.artist-card:hover,
.stat-card:hover {
  transform: translateY(-4px);
}

.song-card:active,
.playlist-card:active,
.artist-card:active,
.stat-card:active {
  transform: scale(0.97);
}

.song-cover,
.playlist-cover {
  width: 100%;
  height: 150px;
  position: relative;
  overflow: hidden;
}

.song-cover img,
.playlist-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.song-cover::after,
.playlist-cover::after,
.artist-avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(0,0,0,0.10));
  pointer-events: none;
}

.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;
}

.song-card:hover .play-overlay,
.song-card.is-playing .play-overlay {
  opacity: 1;
}

.play-overlay i {
  font-size: 32px;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.song-info,
.playlist-info {
  padding: 10px;
}

.song-title,
.playlist-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-artist,
.playlist-count {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-stats {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  font-size: 10px;
  color: var(--muted-2);
}

.song-stats i {
  font-size: 9px;
  margin-right: 2px;
}

.song-card.is-playing {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.artist-card {
  flex: 0 0 100px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.artist-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 8px;
  overflow: hidden;
  position: relative;
}

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

.artist-verified {
  position: absolute;
  bottom: 2px;
  right: 5px;
  background: var(--success);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  border: 2px solid #1A1A26;
}

.artist-name {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.artist-stats {
  font-size: 9px;
  color: var(--muted);
  margin-top: 2px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--card);
  border-radius: 16px;
  padding: 12px;
  text-align: center;
  transition: transform 0.2s;
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow: 0 12px 32px var(--shadow);
}

.stat-card i {
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 6px;
}

.stat-value {
  font-size: 16px;
  font-weight: 800;
}

.stat-label {
  font-size: 9px;
  color: var(--muted);
  margin-top: 2px;
}

.genre-section { margin-bottom: 24px; }
.genre-chips {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.genre-chips::-webkit-scrollbar { display: none; }
.genre-chip {
  background: var(--card);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--border);
}
.genre-chip:hover { background: rgba(255, 107, 53, 0.2); }
.genre-chip.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0A0A0F;
}

.cta-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  padding: 14px 22px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  color: #0A0A0F;
  width: min(100%, 560px);
  max-width: 560px;
  cursor: pointer;
  margin: 8px auto 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  min-height: 52px;
  white-space: normal;
  text-align: center;
  box-shadow: 0 12px 30px rgba(255, 107, 53, 0.22);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.mini-player {
  position: fixed;
  left: 280px;
  right: 24px;
  bottom: 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(130%);
  opacity: 0;
  pointer-events: none;
  transition: transform .28s ease, opacity .28s ease, background .2s ease, border-color .2s ease;
  box-shadow: 0 24px 70px var(--shadow);
  cursor: default;
  z-index: 99;
}

.mini-player.active {
  display: flex;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

body.light-skin .mini-player { background: rgba(255,255,255,.92); }
body:not(.light-skin) .mini-player { background: rgba(18,18,26,.92); }

.player-art-button {
  border: none;
  padding: 0;
  background: transparent;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  overflow: hidden;
  flex: 0 0 58px;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

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

.mini-player-info {
  min-width: 150px;
  max-width: 260px;
}

.mini-player-kicker {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.mini-player-title,
.mini-player-artist {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-player-title { font-size: 14px; font-weight: 600; }
.mini-player-artist { font-size: 11px; color: var(--muted); }

.player-seek-wrap {
  flex: 1;
  min-width: 140px;
}

.player-seek,
.volume-bar {
  width: 100%;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent) 0%, var(--accent-2) var(--progress, 0%), rgba(128,128,128,.28) var(--progress, 0%), rgba(128,128,128,.28) 100%);
  outline: none;
  cursor: pointer;
}

.volume-bar {
  --progress: 85%;
  min-width: 86px;
  height: 5px;
}

.player-seek::-webkit-slider-thumb,
.volume-bar::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text);
  border: 3px solid var(--accent);
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}

.player-time {
  width: 44px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.mini-player-controls,
.player-volume {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.player-social-actions .player-icon-btn.active,
.player-extra-controls .player-icon-btn.active,
.mini-player-controls .player-icon-btn.active {
  background: rgba(255,107,53,.18);
  color: var(--accent);
  border-color: rgba(255,107,53,.35);
}

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

.player-extra-controls label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 92px;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px 10px;
}

.player-extra-controls input {
  width: 54px;
  accent-color: var(--accent);
}

.lyrics-panel {
  position: fixed;
  right: 24px;
  bottom: 108px;
  width: min(420px, calc(100vw - 32px));
  max-height: min(560px, calc(100vh - 150px));
  background: color-mix(in srgb, var(--card) 96%, transparent);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 24px 70px var(--shadow);
  z-index: 130;
  display: none;
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.lyrics-panel.active { display: block; }

.lyrics-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.lyrics-head span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.lyrics-head strong {
  display: block;
  margin-top: 3px;
  font-size: 14px;
}

.lyrics-head button {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card-2);
  color: var(--text);
}

.lyrics-body {
  max-height: 460px;
  overflow: auto;
  padding: 18px;
  scroll-behavior: smooth;
}

.lyrics-body p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 800;
  margin-bottom: 12px;
}

.lyrics-body p.active {
  color: var(--text);
  font-size: 18px;
}

.share-panel {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(14px);
}

.share-panel.active { display: flex; }

.share-dialog {
  position: relative;
  width: min(680px, 100%);
  display: grid;
  grid-template-columns: 220px minmax(0,1fr);
  gap: 20px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 97%, transparent);
  box-shadow: 0 28px 80px var(--shadow);
}

.share-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card-2);
  color: var(--text);
  cursor: pointer;
}

.share-art img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  box-shadow: 0 18px 42px rgba(0,0,0,.28);
}

.share-copy {
  min-width: 0;
  padding: 18px 46px 8px 0;
}

.share-copy span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.share-copy h3 {
  margin: 7px 0 4px;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.05;
}

.share-copy p {
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 700;
}

.share-artist-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  color: var(--text);
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px 12px 8px 8px;
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
}

.share-artist-link img {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 32px;
}

.share-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.share-actions button {
  border: 0;
  border-radius: 14px;
  padding: 11px 14px;
  color: #0A0A0F;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.share-actions button + button {
  color: var(--text);
  background: var(--card-2);
  border: 1px solid var(--border);
}

.share-status {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-line;
}

.player-icon-btn,
.player-main-btn {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--card);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.player-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  font-size: 14px;
}

.player-main-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 17px;
  color: #0A0A0F;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 26px rgba(255,107,53,.28);
}

.install-prompt {
  position: fixed;
  bottom: 80px;
  left: 20px;
  right: 20px;
  background: var(--card);
  border-radius: 20px;
  padding: 14px;
  display: none;
  align-items: center;
  gap: 12px;
  z-index: 102;
  border: 1px solid rgba(255, 107, 53, 0.3);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.install-prompt.show { display: flex; }
.install-prompt button {
  background: var(--accent);
  border: none;
  padding: 8px 20px;
  border-radius: 30px;
  color: #0A0A0F;
  font-weight: 600;
  cursor: pointer;
}

@media (min-width: 993px) {
  .main-content {
    margin-left: 260px;
    width: calc(100% - 260px);
  }

  .header > *,
  .banner-section,
  .section {
    width: min(100%, 1180px);
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
  }

  .header {
    padding-left: 32px;
    padding-right: 32px;
  }

  .banner-section,
  .section {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 992px) {
  .sidebar {
    transform: translateX(-100%);
    position: fixed;
    z-index: 101;
  }

  .sidebar.mobile-open { transform: translateX(0); }
  .main-content {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }

  .mobile-menu-toggle { display: block; }
  .logo-mobile { display: flex; }
  .sidebar-logo { display: none; }
  .bottom-nav { display: flex; }
  .install-prompt { bottom: 140px; }
  .sidebar-overlay.active { display: block; }

  .mini-player {
    left: 12px;
    right: 12px;
    bottom: 82px;
    max-width: none;
    border-radius: 20px;
    padding: 10px;
    gap: 10px;
  }

  .desktop-player-only { display: none !important; }
  .player-art-button { width: 50px; height: 50px; flex-basis: 50px; border-radius: 14px; }
  .mini-player-info { flex: 1; min-width: 0; max-width: none; }
  .player-social-actions,
  .player-extra-controls { display: none; }
  .lyrics-panel {
    left: 10px;
    right: 10px;
    bottom: 104px;
    width: auto;
  }
  .share-dialog {
    grid-template-columns: 96px minmax(0,1fr);
    gap: 12px;
    padding: 14px;
    border-radius: 20px;
  }
  .share-copy { padding: 12px 36px 4px 0; }
  .share-copy h3 { font-size: 22px; }
  .share-actions { gap: 8px; }
  .share-actions button { padding: 10px 12px; font-size: 12px; }
  .player-seek-wrap { position: absolute; left: 14px; right: 14px; bottom: -8px; min-width: 0; }
  .player-seek { height: 4px; }
  .close-player { width: 34px; height: 34px; border-radius: 12px; }
}

@media (max-width: 768px) {
  body { padding-bottom: 84px; }
  .header { padding: 14px 14px 12px; }
  .banner-section { padding: 0 14px; margin-bottom: 20px; }
  .section { padding: 0 14px; }
  .welcome-body-section { margin-top: 16px; margin-bottom: 12px; }
  .body-welcome h1 { font-size: 24px; }
  .body-welcome p { font-size: 13px; }
  .bannerSwiper,
  .banner-slide { border-radius: 16px; }
  .banner-slide {
    aspect-ratio: 16 / 9;
    min-height: 0;
    height: auto;
    max-height: none;
  }
  .banner-overlay { padding: 14px; }
  .banner-title { font-size: 18px; line-height: 1.15; }
  .banner-subtitle { font-size: 12px; line-height: 1.35; max-width: 92%; }
  .banner-badge {
    max-width: 48%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    top: 10px;
    right: 10px;
    font-size: 10px;
    padding: 4px 10px;
  }
  .stats-grid { gap: 8px; }
  .stat-card { padding: 8px; }
  .song-card { flex: 0 0 140px; }
  .song-cover { height: 140px; }
  .artist-card { flex: 0 0 80px; }
  .artist-avatar { width: 70px; height: 70px; }
  .playlist-card { flex: 0 0 130px; }
  .playlist-cover { height: 130px; }
  .cta-button {
    width: 100%;
    max-width: none;
    min-height: 50px;
    padding: 13px 14px;
    border-radius: 18px;
    font-size: 13px;
    line-height: 1.25;
    margin: 4px 0 16px;
  }
}

@media (max-width: 420px) {
  .banner-slide { aspect-ratio: 4 / 3; }
  .banner-title { font-size: 16px; }
  .cta-button { font-size: 12.5px; padding-left: 12px; padding-right: 12px; }
  .mini-player-title { font-size: 12.5px; }
  .mini-player-artist { font-size: 10px; }
  .player-main-btn { width: 42px; height: 42px; }
  .player-art-button { width: 46px; height: 46px; flex-basis: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
