:root {
  --bg: #0b0b0d;
  --panel: rgba(28,28,30,0.75);
  --border: rgba(255,255,255,0.08);
  --text: #fff;
  --muted: #a1a1a6;
  --accent: #fa2d48;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont,
    "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {

  height: 100vh;
  background: radial-gradient(circle at top, #1a1a1c, #000);
  color: var(--text);
  padding: 0;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 240px;

  padding: 22px 16px;

  background: rgba(18, 18, 20, 0.55);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);

  border-right: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 100;
}

.glass {
  backdrop-filter: blur(20px);
  background: var(--panel);
}

.logo {
  font-size: 22px;
  margin-bottom: 40px;
}

.logo span { color: var(--accent); }

.menu a {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
  text-decoration: none;
}

.menu a.active,
.menu a:hover { color: var(--text); }

.main {
  margin-left: 240px;   /* EXACT sidebar width */
  padding: 36px 42px 120px; /* bottom padding for player */
  overflow-y: auto;
}


.header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}

.search {
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  color: white;
}

.section-title {
  font-size: 22px;
  margin: 30px 0 14px;
}

/* Horizontal Rows */
.row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}

.row::-webkit-scrollbar {
  height: 6px;
}

.row::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
}

/* Cards */
.card {
  min-width: 180px;
  background: rgba(255,255,255,0.05);
  border-radius: 18px;
  padding: 14px;
  scroll-snap-align: start;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.45);
}

.card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
}


.card h3 {
  font-size: 14px;
}

.card p {
  font-size: 12px;
  color: var(--muted);
}

/* Player */
.player {
  position: fixed;
  bottom: 0;
  left: 260px;
  right: 0;
  padding: 14px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
}

.song-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.song-info img {
  width: 46px;
  height: 46px;
  border-radius: 8px;
}

.controls button {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  margin: 0 10px;
}

.controls .play {
  color: var(--accent);
  font-size: 22px;
}
.progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  margin: 0 20px;
  position: relative;
}

h2 {
  margin-bottom: 16px;
}

/* Horizontal Rows */
.row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
}

/* Big Cards */
.big-row .card {
  min-width: 320px;
  position: relative;
}

.card img {
  width: 100%;
  border-radius: 18px;
}

.tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 12px;
  color: #ff375f;
}

.subtitle {
  font-size: 12px;
  color: #aaa;
  margin-top: 6px;
}

/* Normal Cards */
.card {
  min-width: 160px;
}

.card img {
  width: 100%;
  border-radius: 14px;
}

.card p {
  font-size: 13px;
  margin-top: 6px;
}

/* Songs */
.song-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  margin-bottom: 20px;
}

.song {
  min-width: 220px;
  background: #1c1c1e;
  padding: 12px;
  border-radius: 10px;
}

.song-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.song-card {
  background: #1c1c1e;
  padding: 14px;
  border-radius: 10px;
  text-align: center;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 6px;

  margin-bottom: 28px;
  padding-left: 8px;
}

.sidebar-apple-logo {
  width: 16px;
  height: 16px;
  filter: invert(1);
  opacity: 0.9;

  flex-shrink: 0;
}

.sidebar-title {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}



.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 240px;

  padding: 22px 16px;

  background: rgba(18, 18, 20, 0.55);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);

  border-right: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 100;
}
.main {
  margin-left: 240px;   /* EXACT sidebar width */
  padding: 36px 42px 120px; /* bottom padding for player */
  overflow-y: auto;
}


  .player {
  position: fixed;
  bottom: 0;
  left: 240px;
  right: 0;
}

/* credit text */
.player-credit {
  position: absolute;
  right: 16px;
  bottom: 10px;

  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.2px;
  pointer-events: none;
}

.player-credit span {
  color: #ff375f; 
}
.footer-link {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #fff;
  text-decoration: underline;
}


.main {
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.35),
    rgba(0,0,0,0)
  );
}

.main::before {
  content: "";
  position: fixed;
  top: 0;
  left: 240px;
  width: 40px;
  height: 100vh;

  pointer-events: none;

  background: linear-gradient(
    to right,
    rgba(18,18,20,0.95),
    rgba(18,18,20,0)
  );

  z-index: 2;
}
.main::before {
  content: "";
  position: fixed;
  top: 0;
  left: 240px;
  width: 40px;
  height: 100vh;

  pointer-events: none;

  background: linear-gradient(
    to right,
    rgba(18,18,20,0.95),
    rgba(18,18,20,0)
  );

  z-index: 2;
}
