:root {
  --text-primary: #f3f3f3;
  --text-secondary: #b9b0b5;
  --text-muted: #8f848b;
  --accent-main: #b0071e;
  --accent-deep: #51000f;
  --accent-crimson: #8a0019;
  --glass-bg: rgba(20, 12, 16, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-overlay: rgba(137, 8, 32, 0.26);
  --card-blur: blur(14px);
  --lift: translateY(-7px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--text-primary);
  font-family: "Cormorant Garamond", serif;
  background:
    radial-gradient(circle at 92% 12%, rgba(162, 7, 35, 0.56), transparent 34%),
    radial-gradient(circle at 80% 78%, rgba(124, 8, 30, 0.22), transparent 48%),
    linear-gradient(90deg, #000000 0%, #040203 40%, #1d030a 70%, #780818 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  position: relative;
  letter-spacing: 0.01em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 70% 22%, rgba(214, 28, 63, 0.08), transparent 35%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0) 48%);
  pointer-events: none;
  z-index: -1;
}

.page {
  width: min(1200px, 100%);
  min-height: 100vh;
  padding: 120px 32px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 85px;
  padding: 0 clamp(20px, 4vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.95) 0%, rgba(20, 5, 10, 0.92) 48%, rgba(112, 11, 34, 0.9) 100%);
  border-bottom: 1px solid rgba(215, 222, 232, 0.48);
  box-shadow: 0 2px 12px rgba(201, 213, 226, 0.2);
  backdrop-filter: blur(8px);
  z-index: 50;
}

.logo {
  font-family: "Imperial Script", cursive;
  font-size: clamp(3rem, 5vw, 4.2rem);
  color: #ffffff;
  line-height: 1;
  text-shadow:
    0 0 18px rgba(255, 255, 255, 0.22),
    0 0 32px rgba(255, 255, 255, 0.08);
  letter-spacing: 0.01em;
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 16px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: white;
}

.social-link {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(122, 8, 28, 0.22));
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
  position: relative;
}

.social-link i {
  font-size: 18px;
  line-height: 1;
}

.social-link:hover {
  color: #f9e3e8;
  border-color: rgba(255, 255, 255, 0.5);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(176, 7, 30, 0.4));
  box-shadow: 0 0 18px rgba(211, 35, 73, 0.35);
  transform: translateY(-2px);
}

.social-link::after {
  content: none;
}

.main-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 90px;
  width: 100%;
  animation: fadeIn 900ms ease forwards;
}

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

.card {
  position: relative;
  border-radius: 28px;
  background:
    linear-gradient(115deg, rgba(5, 5, 8, 0.94) 0%, rgba(26, 10, 15, 0.86) 50%, rgba(128, 12, 38, 0.62) 100%);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--card-blur);
  box-shadow: 0 0 38px rgba(118, 10, 33, 0.24);
  overflow: hidden;
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.card:hover {
  transform: var(--lift);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.65),
    0 0 46px rgba(150, 13, 44, 0.35);
}

.player-card {
  width: 340px;
  height: 520px;
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background:
    linear-gradient(120deg, rgba(4, 5, 8, 0.95) 0%, rgba(23, 10, 16, 0.88) 48%, rgba(128, 12, 38, 0.62) 100%),
    var(--glass-bg);
}

.player-card::after {
  content: "♪";
  position: absolute;
  right: 18px;
  top: 12px;
  font-family: "Playfair Display", serif;
  font-size: 6rem;
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.artist-image {
  width: 205px;
  height: 205px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    0 0 0 14px rgba(255, 255, 255, 0.02),
    0 16px 34px rgba(0, 0, 0, 0.7),
    0 0 30px rgba(160, 0, 35, 0.26);
  margin-top: 8px;
}

.track-meta {
  text-align: center;
  margin-top: 18px;
}

.track-title {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.artist-name {
  color: var(--text-secondary);
  font-size: 1.15rem;
  font-weight: 500;
}

.progress-wrap {
  width: 100%;
  margin-top: 10px;
}

.progress-track {
  width: 100%;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.85);
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  width: 57%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #97001d, #cf1740);
  box-shadow: 0 0 10px rgba(194, 20, 54, 0.45);
}

.time-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-family: "Playfair Display", serif;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum", "tnum";
}

.controls {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 6px;
  margin-bottom: 8px;
}

.control-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(187, 187, 187, 0.25);
  color: var(--text-primary);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.control-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 16px rgba(222, 228, 235, 0.4);
  background: rgba(226, 232, 238, 0.38);
}

.play-btn {
  width: 74px;
  height: 74px;
  border: none;
  background: radial-gradient(circle at 30% 30%, #d41439, var(--accent-main));
  color: #ffffff;
  font-size: 1.45rem;
  box-shadow:
    0 0 26px rgba(230, 1, 47, 0.65),
    0 12px 24px rgba(0, 0, 0, 0.55);
}

.play-btn:hover {
  transform: scale(1.11);
  background: radial-gradient(circle at 30% 30%, #e1052d, #cf1740);
  box-shadow:
    0 0 30px rgba(255, 92, 126, 0.55),
    0 12px 24px rgba(0, 0, 0, 0.6);
}

.playlist-card {
  width: 340px;
  height: 520px;
  padding: 24px 20px 16px;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(118deg, rgba(7, 7, 9, 0.92) 0%, rgba(30, 10, 16, 0.86) 52%, rgba(135, 14, 39, 0.63) 100%),
    var(--glass-bg);
}

.playlist-title {
  font-family: "Playfair Display", serif;
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  text-align: center;
}

.playlist-pages {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding-right: 0;
}

.playlist-page {
  list-style: none;
  display: none;
  grid-template-rows: repeat(8, minmax(0, 1fr));
  gap: 6px;
  margin-top: 0;
  height: 100%;
}

.playlist-page.is-active {
  display: grid;
}

.playlist-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 9px 6px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 10, 14, 0.52);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.playlist-item:hover {
  transform: translateX(8px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 20px rgba(147, 16, 43, 0.28);
}

.playlist-item.is-playing {
  border-color: rgba(232, 118, 145, 0.75);
  background: linear-gradient(120deg, rgba(36, 10, 18, 0.78), rgba(123, 10, 33, 0.6));
  box-shadow: 0 0 16px rgba(176, 7, 30, 0.28);
}

.song-name {
  font-family: "Playfair Display", serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0;
  line-height: 1.05;
}

.song-artist {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.05;
}

.mini-play {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  background: rgba(194, 194, 194, 0.26);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.58rem;
  flex-shrink: 0;
  transition: transform 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.mini-play:hover {
  background: rgba(176, 7, 30, 0.92);
  border-color: rgba(224, 104, 127, 0.75);
  box-shadow: 0 0 12px rgba(176, 7, 30, 0.6);
}

.playlist-pagination {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.playlist-pagination .page-btn {
  text-decoration: none;
  color: var(--text-secondary);
  border: 1px solid rgba(198, 205, 214, 0.25);
  background: rgba(184, 193, 204, 0.1);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.82rem;
  font-family: "Playfair Display", serif;
  cursor: pointer;
  transition: all 0.3s ease;
}

.playlist-pagination .page-btn.is-active {
  color: #ffffff;
  border-color: rgba(232, 118, 145, 0.82);
  background: linear-gradient(135deg, rgba(176, 7, 30, 0.9), rgba(130, 8, 31, 0.86));
  box-shadow: 0 0 12px rgba(176, 7, 30, 0.4);
}

.playlist-pagination .page-btn:hover {
  color: #f0d8de;
  border-color: rgba(222, 198, 206, 0.54);
  box-shadow: 0 0 12px rgba(157, 20, 47, 0.3);
}

.playlist-item:hover .mini-play {
  transform: scale(1.08);
  background: rgba(176, 7, 30, 0.9);
  border-color: rgba(224, 104, 127, 0.7);
  box-shadow: 0 0 12px rgba(176, 7, 30, 0.55);
}

.footer-note {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: "Playfair Display", serif;
  text-align: center;
}

@media (max-width: 1024px) {
  .main-content {
    gap: 42px;
  }

  .player-card {
    width: 320px;
    height: 500px;
    padding: 30px 26px;
  }

  .playlist-card {
    width: 320px;
    height: 500px;
    padding: 20px 14px 14px;
  }

  .artist-image {
    width: 188px;
    height: 188px;
  }
}

@media (max-width: 768px) {
  .page {
    padding: 110px 16px 32px;
  }

  .navbar {
    padding: 0 16px;
  }

  .main-content {
    flex-direction: column;
    gap: 40px;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 0.95rem;
  }

  .player-card,
  .playlist-card {
    width: 90%;
    max-width: 420px;
    height: auto;
  }

  .player-card {
    padding-bottom: 28px;
  }

  .playlist-card {
    padding-bottom: 18px;
  }
}

@media (max-width: 520px) {
  .navbar {
    height: 78px;
  }

  .logo {
    font-size: 2.2rem;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-links a {
    font-size: 0.88rem;
  }

  .track-title {
    font-size: 1.1rem;
  }

  .playlist-title {
    font-size: 1.7rem;
  }

  .song-name {
    font-size: 1.05rem;
  }
}
