:root {
  --bg: #050506;
  --bg-soft: #0b0c10;
  --text: rgba(255, 255, 255, 0.97);
  --muted: rgba(255, 255, 255, 0.78);
  --muted-soft: rgba(255, 255, 255, 0.6);
  --card-bg: rgba(16, 16, 20, 0.46);
  --card-bg-strong: rgba(18, 18, 23, 0.68);
  --card-border: rgba(255, 255, 255, 0.11);
  --accent: #d83d38;
  --accent-glow: rgba(216, 61, 56, 0.34);
  --shadow-xl: 0 24px 80px rgba(0, 0, 0, 0.52);
  --shadow-lg: 0 16px 50px rgba(0, 0, 0, 0.44);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --content-max: 740px;
  --transition: 180ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button {
  appearance: none;
  -webkit-appearance: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.5) 52%, rgba(0, 0, 0, 0.78) 100%),
    url("assets/img/background.jpeg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 4% center;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.05), transparent 36%),
    radial-gradient(circle at 50% 70%, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.42) 75%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.28) 28%, rgba(0, 0, 0, 0.62) 74%, rgba(0, 0, 0, 0.86) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding:
    max(1rem, env(safe-area-inset-top))
    0.9rem
    max(1.2rem, env(safe-area-inset-bottom));
}

.masthead {
  width: min(100%, 42rem);
  text-align: center;
  padding-top: 0.35rem;
}

.hero-title,
.eyebrow {
  margin: 0;
  font-family: "Oswald", Impact, sans-serif;
  font-weight: 500;
  font-size: clamp(2.1rem, 11vw, 4.9rem);
  line-height: 0.92;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
}

.divider {
  width: min(58vw, 16rem);
  max-width: 100%;
  height: 2px;
  margin: 0.6rem auto 0.8rem;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 14px var(--accent-glow);
  opacity: 0.94;
}

.subtitle,
.masthead h1 {
  margin: 0;
  font-size: clamp(0.74rem, 3vw, 1.24rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.9);
}

.player-wrapper {
  width: min(100%, var(--content-max));
  margin-top: auto;
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding-bottom: clamp(0.4rem, 1.8vh, 1.1rem);
}

.player-card {
  width: 100%;
  padding: 0.82rem 0.8rem 0.92rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)), var(--card-bg);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  backdrop-filter: blur(18px) saturate(135%);
  box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.player-card__top {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
}

.artwork-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.artwork {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-main {
  min-width: 0;
}

.project-label {
  margin: 0 0 0.16rem;
  font-size: 0.58rem;
  line-height: 1.1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.player-header h2 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.02;
  text-wrap: balance;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.72rem;
}

.transport-button,
.play-button {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.085);
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), opacity var(--transition);
}

.transport-button:hover,
.play-button:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

.transport-button:focus-visible,
.play-button:focus-visible,
.social-link:focus-visible {
  outline: 2px solid rgba(255,255,255,0.9);
  outline-offset: 2px;
}

.transport-button {
  width: 34px;
  height: 34px;
}

.transport-icon {
  width: 15px;
  height: 15px;
}

.play-button {
  width: 42px;
  height: 42px;
  font-size: 1rem;
}

.play-icon {
  font-size: 1rem;
  line-height: 1;
  transform: translateX(1px);
}

.play-button.is-playing .play-icon {
  transform: none;
}

.player-card__bottom {
  margin-top: 0.7rem;
}

.progress-wrap {
  display: grid;
  gap: 0.35rem;
}

.seekbar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  cursor: pointer;
  overflow: visible;
}

.seekbar__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff4242, #ff7244);
  box-shadow: 0 0 18px rgba(255, 93, 74, 0.22);
}

.seekbar__thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.34);
}

.time-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--muted-soft);
  font-variant-numeric: tabular-nums;
}

.icon-row,
.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 0.15rem;
}

.social-link {
  display: grid;
  place-items: center;
  width: 2.85rem;
  height: 2.85rem;
  color: rgba(255,255,255,0.97);
  text-decoration: none;
  opacity: 0.94;
  transition: transform var(--transition), opacity var(--transition), color var(--transition), background var(--transition), border-color var(--transition);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
}

.social-link:hover {
  opacity: 1;
  transform: translateY(-1px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.14);
}

.social-icon {
  width: 24px;
  height: 24px;
}

.social-icon--apple {
  transform: translateX(-0.3px);
}

/* Small phones: 390px–539px */
@media (min-width: 390px) {
  .hero {
    background-position: 6% center;
  }

  .hero__content {
    padding-inline: 1rem;
  }

  .hero-title,
  .eyebrow {
    font-size: clamp(2.2rem, 10vw, 3.15rem);
  }

  .player-card {
    padding: 0.88rem 0.86rem 0.96rem;
  }

  .player-card__top {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 0.75rem;
  }

  .project-label {
    font-size: 0.6rem;
  }

  .player-header h2 {
    font-size: 1rem;
  }

  .player-controls {
    gap: 0.62rem;
  }

  .socials {
    gap: 1rem;
  }

  .social-link {
    width: 2.95rem;
    height: 2.95rem;
  }

  .social-icon {
    width: 25px;
    height: 25px;
  }
}

@media (min-width: 460px) {
  .hero {
    background-position: 8% center;
  }
}

/* Large phones / small landscape phones: 540px–767px */
@media (min-width: 540px) {
  .hero {
    background-position: 10% center;
  }

  .hero__content {
    padding-inline: clamp(1.25rem, 4vw, 2rem);
  }

  .player-card {
    padding: 1rem 1rem 1.05rem;
  }

  .player-card__top {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 0.9rem;
  }

  .project-label {
    font-size: 0.68rem;
  }

  .player-header h2 {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
  }

  .transport-button {
    width: 39px;
    height: 39px;
  }

  .transport-icon {
    width: 16px;
    height: 16px;
  }

  .play-button {
    width: 47px;
    height: 47px;
  }

  .time-row {
    font-size: 0.86rem;
  }

  .socials {
    gap: 1.35rem;
  }

  .social-link {
    width: 3.15rem;
    height: 3.15rem;
  }

  .social-icon {
    width: 27px;
    height: 27px;
  }
}

@media (min-width: 640px) {
  .hero {
    background-position: 18% center;
  }
}

/* Tablets: 768px–1023px */
@media (min-width: 768px) {
  .hero {
    background-position: 28% center;
  }

  .hero::before {
    background:
      radial-gradient(circle at 54% 24%, rgba(255,255,255,0.04), transparent 30%),
      linear-gradient(90deg, rgba(0,0,0,0.26), rgba(0,0,0,0.12) 30%, rgba(0,0,0,0.5) 100%),
      linear-gradient(to bottom, rgba(0,0,0,0.08), rgba(0,0,0,0.26) 30%, rgba(0,0,0,0.64) 100%);
  }

  .hero__content {
    gap: 1.25rem;
    padding:
      max(1.25rem, env(safe-area-inset-top))
      clamp(1.4rem, 4vw, 3rem)
      max(1.5rem, env(safe-area-inset-bottom));
  }

  .masthead {
    max-width: 46rem;
    padding-top: 0.2rem;
  }

  .hero-title,
  .eyebrow {
    font-size: clamp(3.4rem, 7vw, 5.2rem);
    letter-spacing: 0.04em;
  }

  .divider {
    width: min(42vw, 20rem);
    margin: 0.75rem auto 0.95rem;
  }

  .subtitle,
  .masthead h1 {
    font-size: clamp(0.88rem, 1.5vw, 1.15rem);
    letter-spacing: 0.2em;
  }

  .player-wrapper {
    width: min(100%, 760px);
    gap: 1.15rem;
    padding-bottom: clamp(1rem, 3.5vh, 2rem);
  }

  .player-card {
    border-radius: 24px;
    padding: 1.05rem 1.1rem 1.12rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)), var(--card-bg-strong);
  }

  .player-card__top {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 1rem;
  }

  .artwork-wrap {
    border-radius: 16px;
  }

  .project-label {
    font-size: 0.72rem;
  }

  .player-header h2 {
    font-size: clamp(1.2rem, 2vw, 1.65rem);
  }

  .player-controls {
    gap: 0.75rem;
    margin-top: 0.82rem;
  }

  .transport-button {
    width: 42px;
    height: 42px;
  }

  .transport-icon {
    width: 17px;
    height: 17px;
  }

  .play-button {
    width: 50px;
    height: 50px;
  }

  .player-card__bottom {
    margin-top: 0.78rem;
  }

  .time-row {
    font-size: 0.88rem;
  }

  .socials {
    gap: 1.45rem;
  }

  .social-link {
    width: 3.35rem;
    height: 3.35rem;
  }

  .social-icon {
    width: 28px;
    height: 28px;
  }
}

/* Desktop: 1024px–1279px */
@media (min-width: 1024px) {
  .hero {
    background-position: center center;
  }

  .hero__content {
    padding-inline: clamp(2rem, 4vw, 4rem);
    padding-bottom: clamp(1.8rem, 4vh, 2.6rem);
  }

  .masthead {
    max-width: 54rem;
  }

  .hero-title,
  .eyebrow {
    font-size: clamp(4rem, 6vw, 5.7rem);
  }

  .divider {
    width: min(36vw, 22rem);
  }

  .subtitle,
  .masthead h1 {
    font-size: clamp(0.95rem, 1.25vw, 1.18rem);
  }

  .player-wrapper {
    width: min(100%, 800px);
    padding-bottom: clamp(1.2rem, 4vh, 2.6rem);
  }

  .player-card {
    padding: 1.08rem 1.15rem 1.16rem;
  }

  .player-card__top {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .socials {
    gap: 1.6rem;
  }

  .social-link {
    width: 3.45rem;
    height: 3.45rem;
  }
}

/* Large desktop: 1280px+ */
@media (min-width: 1280px) {
  .hero__content {
    padding-top: 1.4rem;
  }

  .hero-title,
  .eyebrow {
    font-size: clamp(4.4rem, 5vw, 6rem);
  }

  .player-wrapper {
    width: min(100%, 840px);
  }

  .player-card {
    padding: 1.15rem 1.25rem 1.22rem;
  }

  .player-card__top {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 1.05rem;
  }

  .social-link {
    width: 3.65rem;
    height: 3.65rem;
  }

  .social-icon {
    width: 30px;
    height: 30px;
  }
}

/* Extra-wide desktop */
@media (min-width: 1440px) {
  .hero__content {
    padding-top: 1.6rem;
    padding-bottom: 2.4rem;
  }

  .player-wrapper {
    padding-bottom: 2.3rem;
  }

  .socials {
    gap: 1.7rem;
  }
}

/* Short-height tablet/desktop screens */
@media (max-height: 760px) and (min-width: 768px) {
  .hero__content {
    padding-top: 1rem;
    gap: 1rem;
  }

  .masthead {
    padding-top: 0;
  }

  .player-wrapper {
    padding-bottom: 1rem;
  }
}
