:root {
  --bg: #000000;
  --bg-elevated: #121214;
  --text: #f5f5f7;
  --text-muted: #a1a1a8;
  --accent-mint: #47d694;
  --accent-lime: #68d447;
  --accent-gradient: linear-gradient(
    160deg,
    var(--accent-mint) 0%,
    var(--accent-lime) 100%
  );
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(71, 214, 148, 0.45);
  --max-width: 68rem;
  --font-display: "Barlow Condensed", sans-serif;
  --font-body: "Barlow", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

::selection {
  background: var(--accent-mint);
  color: #000;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--bg);
  position: relative;
  overflow-x: hidden;
}

.page-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 80% 50% at 15% 20%,
      rgba(71, 214, 148, 0.06),
      transparent 55%
    ),
    linear-gradient(180deg, #000000 0%, #272727 100%);
}

.page-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}

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

a {
  color: inherit;
}

/* —— Hero —— */

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 4rem;
  text-align: center;
}

.hero-inner {
  max-width: 36rem;
  width: 100%;
}

.hero-logo {
  width: clamp(7.5rem, 22vw, 10rem);
  height: auto;
  margin: 0 auto 1.5rem;
}

.brand {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 9vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
}

.brand-one {
  background: var(--accent-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.tagline {
  margin: 0 auto 2rem;
  max-width: 26rem;
  color: var(--text-muted);
  font-size: 1.125rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* —— Buttons —— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 0.35rem;
  cursor: pointer;
  transition:
    background 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out),
    color 0.25s var(--ease-out),
    filter 0.25s var(--ease-out);
}

.btn:focus-visible {
  outline: 2px solid var(--accent-mint);
  outline-offset: 3px;
}

.btn-primary {
  color: var(--text);
  background: var(--accent-gradient);
  border: 1px solid transparent;
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-ghost:hover {
  border-color: var(--border-hover);
}

/* —— Sections —— */

.section {
  padding: 4.5rem 1.5rem;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0 0 2.25rem;
  color: var(--text-muted);
  max-width: 32rem;
}

/* —— Playlists —— */

.playlist-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.all-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.all-list .playlist {
  padding: 1rem 0 1rem 0.85rem;
}

.all-list .playlist-cover {
  width: 3.75rem;
  height: 3.75rem;
}

.all-list .playlist-title {
  font-size: 1.1rem;
}

.all-list .playlist-desc {
  font-size: 0.9rem;
}

.playlist {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.25rem 0 1.25rem 1rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-left: 2px solid transparent;
  border-radius: 0;
  transition:
    border-left-color 0.25s var(--ease-out),
    border-bottom-color 0.25s var(--ease-out);
}

.playlist:hover,
.playlist:has(.playlist-row-link:focus-visible) {
  border-left-color: var(--accent-mint);
  border-bottom-color: rgba(71, 214, 148, 0.2);
}

.playlist-main {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  flex: 1;
}

.playlist-cover {
  flex-shrink: 0;
  width: 4.5rem;
  height: 4.5rem;
  object-fit: cover;
  border-radius: 0.2rem;
}

.playlist-row-link {
  position: absolute;
  inset: 0;
  z-index: 0;
  text-decoration: none;
  color: inherit;
}

.playlist-row-link:focus-visible {
  outline: 2px solid var(--accent-mint);
  outline-offset: 2px;
}

.playlist-copy {
  flex: 1;
  min-width: 0;
}

.playlist-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.playlist-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.975rem;
}

.playlist-links {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* —— Playlist detail —— */

.playlist-detail {
  min-height: calc(100vh - 6rem);
  min-height: calc(100dvh - 6rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 4rem;
  text-align: center;
}

.playlist-detail-inner {
  max-width: 36rem;
}

.playlist-detail-cover {
  width: clamp(8rem, 28vw, 12.5rem);
  height: auto;
  margin: 0 auto 1.5rem;
  border-radius: 0.25rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.25s var(--ease-out);
}

.back-link:hover {
  color: var(--text);
}

.back-link:focus-visible {
  outline: 2px solid var(--accent-mint);
  outline-offset: 3px;
}

.playlist-detail-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.playlist-detail-desc {
  margin: 0 auto 2rem;
  max-width: 28rem;
  color: var(--text-muted);
  font-size: 1.125rem;
}

.playlist-detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.platform-link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 0.3rem;
  cursor: pointer;
  transition:
    border-color 0.25s var(--ease-out),
    background 0.25s var(--ease-out),
    color 0.25s var(--ease-out);
}

.platform-link[aria-busy="true"],
.btn[aria-busy="true"] {
  opacity: 0.65;
  pointer-events: none;
}

.cf-turnstile-host {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.platform-link:hover {
  border-color: transparent;
  background: var(--accent-gradient);
}

.platform-link:focus-visible {
  outline: 2px solid var(--accent-mint);
  outline-offset: 2px;
}

/* —— Submission FAQ —— */

.faq-page {
  padding: 3rem 1.5rem 4rem;
}

.faq-inner {
  max-width: 40rem;
  margin: 0 auto;
}

.faq-title {
  margin: 0 0 2.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 7vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-question {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.faq-answer {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.faq-subject {
  color: #f5d76e;
  font-weight: 500;
}

.faq-inline-link {
  color: var(--accent-mint);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: color 0.25s var(--ease-out);
}

.faq-inline-link:hover {
  color: var(--accent-lime);
}

.faq-inline-link:focus-visible {
  outline: 2px solid var(--accent-mint);
  outline-offset: 3px;
}

/* —— Footer —— */

.site-footer {
  padding: 2rem 1.5rem 2.75rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer p + p {
  margin-top: 0.65rem;
}

.footer-link {
  color: var(--text-muted);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.25s var(--ease-out);
}

.footer-link:hover {
  color: var(--text);
}

.footer-link:focus-visible {
  outline: 2px solid var(--accent-mint);
  outline-offset: 3px;
}

@media (min-width: 640px) {
  .playlist {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .playlist-links {
    flex-shrink: 0;
  }
}

@media (min-width: 768px) {
  .all-list {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2.5rem;
  }

  .section {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .playlist,
  .platform-link,
  .back-link,
  .footer-link,
  .faq-inline-link {
    transition: none;
  }
}
