@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");

:root {
  --bg: #120c18;
  --surface: #1b1324;
  --surface-2: #241733;
  --surface-3: #312043;
  --text: #f8f4ff;
  --muted: #c6bad8;
  --accent: #ff7a59;
  --accent-soft: #ffb08f;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 22px 48px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 122, 89, 0.24), transparent 28%),
    radial-gradient(circle at top left, rgba(140, 93, 255, 0.16), transparent 24%),
    linear-gradient(180deg, #0f0916 0%, var(--bg) 100%);
  color: var(--text);
  font-family: "Montserrat", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 25%);
  pointer-events: none;
}

nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(15, 9, 22, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

#bimg {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(255, 122, 89, 0.25);
}

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
}

#navsearch {
  width: 100%;
  min-width: 0;
  padding: 0.95rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

#navsearch::placeholder {
  color: var(--muted);
}

#navsearch:focus {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 122, 89, 0.45);
}

.navbaritem {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.navbaritem li {
  list-style: none;
}

.navbaritem button {
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.navbaritem button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.content {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.25rem;
  padding-bottom: 10.5rem;
}

.div1,
.container {
  border: 1px solid var(--border);
  border-radius: 26px;
  background: rgba(27, 19, 36, 0.88);
  box-shadow: var(--shadow);
}

.div1 {
  position: sticky;
  top: 5.8rem;
  height: fit-content;
  padding: 1.5rem;
}

.div1 h3 {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-soft);
}

.div1 ul {
  margin: 0 0 1.5rem;
  padding: 0;
}

.div1 li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.div1 li:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  transform: translateX(2px);
}

.container {
  min-width: 0;
  padding: 1.5rem;
  background:
    linear-gradient(180deg, rgba(255, 122, 89, 0.12), transparent 28%),
    rgba(27, 19, 36, 0.94);
}

.hero {
  padding: 1.2rem 0 2rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--accent-soft);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.98;
}

.hero-copy {
  max-width: 52rem;
  margin: 0.9rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.section-head span {
  color: var(--muted);
  font-size: 0.92rem;
}

.eachsong {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.songItem {
  position: relative;
  min-width: 0;
  padding: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  cursor: pointer;
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.songItem:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 122, 89, 0.35);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
}

.songItem.is-active {
  border-color: rgba(255, 122, 89, 0.6);
  background: linear-gradient(180deg, rgba(255, 122, 89, 0.18), rgba(255, 255, 255, 0.04));
  box-shadow: 0 14px 30px rgba(255, 122, 89, 0.16);
}

.songCover {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

.songItem img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  transition: transform 0.24s ease, filter 0.24s ease;
}

.songItem:hover .songCover img {
  transform: scale(1.03);
  filter: brightness(0.7);
}

.coverPlayButton {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 12, 24, 0.78);
  color: var(--text);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -42%) scale(0.8);
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.24s ease, background 0.24s ease;
}

.songItem:hover .coverPlayButton,
.songItem.is-active .coverPlayButton,
.songItem:focus-within .coverPlayButton {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.coverPlayButton:hover {
  background: rgba(255, 122, 89, 0.92);
}

.coverPlayButton .songItemPlay {
  color: inherit;
  font-size: 2.2rem;
}

.songName {
  display: block;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
}

.songText {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.artistName {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.songlistplay {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.timestamp {
  width: 100%;
  color: var(--muted);
  font-size: 0.92rem;
}

.songlistplay i {
  color: var(--accent);
  font-size: 1.9rem;
  cursor: pointer;
}

.bottom {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 25;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(25, 18, 34, 0.92);
  backdrop-filter: blur(18px);
  padding: 1rem 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow);
}

#myProgressBar {
  width: 100%;
  height: 6px;
  accent-color: var(--accent);
}

.progressWrap {
  width: 100%;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
}

.progressWrap span {
  color: var(--muted);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.icons i {
  color: var(--text);
  cursor: pointer;
}

#masterPlay {
  color: var(--accent);
}

.songInfo {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  min-width: 0;
  font-size: 0.95rem;
}

.songInfo span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.songMeta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#masterSongName {
  font-weight: 600;
}

#masterSongArtist {
  color: var(--muted);
  font-size: 0.85rem;
}

#gif {
  border-radius: 999px;
}

@media screen and (max-width: 1080px) {
  nav {
    grid-template-columns: 1fr;
  }

  .navbaritem {
    flex-wrap: wrap;
  }

  .content {
    grid-template-columns: 1fr;
  }

  .div1 {
    position: static;
  }
}

@media screen and (max-width: 768px) {
  nav {
    padding: 1rem;
  }

  .hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .navbaritem {
    display: none;
  }

  .content {
    padding: 1rem;
    padding-bottom: 12.5rem;
  }

  .div1 {
    position: fixed;
    top: 5rem;
    left: 1rem;
    right: 1rem;
    z-index: 30;
    transform: translateY(-140%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
  }

  .div1.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .container {
    padding: 1.2rem;
  }

  .hero {
    padding-top: 0.3rem;
  }

  .eachsong {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bottom {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .songInfo {
    width: 100%;
    justify-content: center;
  }

  .progressWrap {
    gap: 0.5rem;
  }
}

@media screen and (max-width: 540px) {
  .brand-mark span {
    font-size: 0.95rem;
  }

  #navsearch {
    padding: 0.85rem 0.95rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-copy {
    font-size: 0.95rem;
  }

  .eachsong {
    grid-template-columns: 1fr;
  }

  .songItem {
    border-radius: 18px;
  }

  .coverPlayButton {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    width: 58px;
    height: 58px;
  }

  .icons i {
    font-size: 2rem;
  }
}
