
/*
Theme Name: UMEWS
Theme URI: https://umews.com
Author: Lucas
*/

:root {
  --bg: rgb(24, 24, 45);
  --bg-soft: rgba(24, 24, 45, 0.5);
  --text: #f4f4f5;
  --text-secondary: #b2b2bd;
  --text-muted: #868691;
  --border: #303040;
  --on-accent: #ffffff;
  --outline-btn-border: #ffffff;
  --outline-btn-color: #ffffff;
  --pink: #dd1f4c;
  --pink-hover: #b9193d;
  --blue: #7dd3fc;
  --blue-btn: #3b82f6;
  --blue-deco: rgba(125, 211, 252, 0.35);
  --font: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Light theme — more white, fluid gradient with brand colors */
[data-theme="light"] {
  --bg: #ffffff;
  --bg-soft: rgba(250, 250, 250, 0.7);
  --text: #0a0a0a;
  --text-secondary: #404040;
  --text-muted: #52525b;
  --border: #e4e4e7;
  --outline-btn-border: #1a1a1a;
  --outline-btn-color: #0a0a0a;
  --blue-deco: rgba(125, 211, 252, 0.25);
}

[data-theme="light"] .mesh-bg.gradient-bg {
  --gradient-bg-base1: #fff;
  --gradient-bg-base2: #fff;
}

[data-theme="light"] .gradient-bg__blob {
  opacity: 0.85;
}



[data-theme="light"] .intro-overlay__text,
[data-theme="light"] .intro-overlay__legal-link {
  color: var(--text);
}

[data-theme="light"] .intro-overlay__legal-link:hover {
  color: var(--text-secondary);
}

[data-theme="light"] .header.header--scrolled {
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 2px 20px 4px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .logo-icon {
  color: var(--bg);
}

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

html {
  scroll-behavior: auto;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.4;
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
}

#root {
  min-height: 100vh;
}

/* First-visit intro overlay — mesh visible behind, user clicks "Discover music" */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  pointer-events: auto;
}

/* Album covers — scattered random positions, staggered fade in/out */
.intro-overlay__theme-wrap {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  padding: 1rem 1.25rem;
}

.intro-overlay__theme-wrap .header-theme-toggle {
  color: var(--text-secondary);
}

.intro-overlay__theme-wrap .header-theme-toggle:hover {
  color: var(--text);
  background: var(--bg-soft);
}

.intro-overlay__covers-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.intro-overlay__cover-placeholder {
  position: absolute;
  transform: translate(-50%, -50%);
}

.intro-overlay__cover {
  border-radius: 10px;
  overflow: visible;
  opacity: 0.78;
}

/* Varied sizes (xs → xl) */
.intro-overlay__cover--xs {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}

.intro-overlay__cover--s {
  width: 58px;
  height: 58px;
}

.intro-overlay__cover--m {
  width: 78px;
  height: 78px;
}

.intro-overlay__cover--l {
  width: 102px;
  height: 102px;
  border-radius: 12px;
}

.intro-overlay__cover--xl {
  width: 128px;
  height: 128px;
  border-radius: 14px;
}

.intro-overlay__cover-inner {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  transition: transform 0.2s ease-out;
  will-change: transform;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
}

.intro-overlay__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Mobile: smaller cover sizes, content has backdrop so text doesn’t overlap */
@media (max-width: 768px) {
  .intro-overlay__content {
    padding: 1.25rem;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  [data-theme="light"] .intro-overlay__content { 

  background: rgba(255, 255, 255, 0.5);

  }


  .intro-overlay__cover--xs {
    width: 36px;
    height: 36px;
    border-radius: 6px;
  }
  .intro-overlay__cover--s {
    width: 46px;
    height: 46px;
    border-radius: 8px;
  }
  .intro-overlay__cover--m {
    width: 58px;
    height: 58px;
    border-radius: 8px;
  }
  .intro-overlay__cover--l {
    width: 72px;
    height: 72px;
    border-radius: 10px;
  }
  .intro-overlay__cover--xl {
    width: 88px;
    height: 88px;
    border-radius: 12px;
  }
}

@media (min-width: 769px) {
  .intro-overlay__cover--xs {
    width: 52px;
    height: 52px;
    border-radius: 10px;
  }
  .intro-overlay__cover--s {
    width: 68px;
    height: 68px;
  }
  .intro-overlay__cover--m {
    width: 90px;
    height: 90px;
  }
  .intro-overlay__cover--l {
    width: 118px;
    height: 118px;
    border-radius: 14px;
  }
  .intro-overlay__cover--xl {
    width: 148px;
    height: 148px;
    border-radius: 16px;
  }
}

.intro-overlay__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  max-width: 90vw;
}

.intro-overlay__logo {
  display: block;
  max-width: 300px;
  width: 100%;
  object-fit: contain;
}

@media (max-width: 480px) {
  .intro-overlay__logo {
    max-width: 200px;
  }

}



.intro-overlay__text {
  font-family: var(--font);
  font-size: clamp(1.5rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  text-align: center;
  max-width: 18ch;
}

.intro-overlay__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.intro-overlay__cta {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
  padding: 12px 24px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.intro-overlay__cta--primary {
  color: var(--on-accent);
  background: var(--pink);
  border: 2px solid var(--pink);
}

.intro-overlay__cta--primary:hover:not(:disabled) {
  background: var(--pink-hover);
  border-color: var(--pink-hover);
}

.intro-overlay__cta--secondary {
  color: var(--outline-btn-color);
  background: transparent;
  border: 2px solid var(--outline-btn-border);
}

.intro-overlay__cta--secondary:hover:not(:disabled) {
  border-color: var(--outline-btn-border);
  color: var(--outline-btn-color);
  background: rgba(255, 255, 255, 0.1);
}

.intro-overlay__cta:disabled {
  cursor: not-allowed;
  opacity: 0.8;
}

.intro-overlay__legal {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
  padding: 1rem 2rem 1.25rem;
}

.intro-overlay__legal-link {
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
}

.intro-overlay__legal-link:hover {
  color: var(--text-secondary);
}

/* Hide the header while the intro overlay is active */

body.umews-intro-active #site-header {
  opacity: 0;
  pointer-events: none;
}

.app-content {
  position: relative;
  z-index: 0;
}

/* Intro overlay / app-content — visibility and transitions (script drives timing like motion.div) */
#intro-overlay {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#intro-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

#app-content {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#app-content.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Intro on top: keep main shell hidden even if script adds .visible (higher specificity than #app-content.visible) */
#intro-overlay:not(.hidden) ~ #app-content {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

/* Page content enter (replicates motion.div pageTransition: initial y:8 → animate y:0; script runs animation) */
.page-content-motion {
  opacity: 0;
  transform: translateY(8px);
}

/* Bubbles gradient background (CodePen jENZGOV style) */
.mesh-bg.gradient-bg {
  --gradient-bg-base1: rgb(0, 17, 82);
  --gradient-bg-base2: rgb(0, 17, 82);
  --gradient-color1: 18, 113, 255;
  --gradient-color2: 221, 74, 255;
  --gradient-color3: 100, 220, 255;
  --gradient-color4: 200, 50, 50;
  --gradient-color5: 180, 180, 50;
  --gradient-circle-size: 80%;
  --gradient-blending: hard-light;
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(40deg, var(--gradient-bg-base1), var(--gradient-bg-base2));
  pointer-events: none;
  opacity: .25;
}

.mesh-bg.gradient-bg .gradients-container {
  filter: url(#goo) blur(40px);
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.gradient-bg__blob {
  position: absolute;
  background-repeat: no-repeat;
  mix-blend-mode: var(--gradient-blending);
  opacity: 1;
  pointer-events: none;
}

.mesh-bg.gradient-bg .g1 {
  background: radial-gradient(circle at center, rgba(var(--gradient-color1), 0.8) 0, rgba(var(--gradient-color1), 0) 50%);
  width: var(--gradient-circle-size);
  height: var(--gradient-circle-size);
  top: calc(50% - var(--gradient-circle-size) / 2);
  left: calc(50% - var(--gradient-circle-size) / 2);
  transform-origin: center center;
  animation: gradientMoveVertical 30s ease infinite;
}

.mesh-bg.gradient-bg .g2 {
  background: radial-gradient(circle at center, rgba(var(--gradient-color2), 0.8) 0, rgba(var(--gradient-color2), 0) 50%);
  width: var(--gradient-circle-size);
  height: var(--gradient-circle-size);
  top: calc(50% - var(--gradient-circle-size) / 2);
  left: calc(50% - var(--gradient-circle-size) / 2);
  transform-origin: calc(50% - 400px);
  animation: gradientMoveInCircle 20s reverse infinite;
}

.mesh-bg.gradient-bg .g3 {
  background: radial-gradient(circle at center, rgba(var(--gradient-color3), 0.8) 0, rgba(var(--gradient-color3), 0) 50%);
  width: var(--gradient-circle-size);
  height: var(--gradient-circle-size);
  top: calc(50% - var(--gradient-circle-size) / 2 + 200px);
  left: calc(50% - var(--gradient-circle-size) / 2 - 500px);
  transform-origin: calc(50% + 400px);
  animation: gradientMoveInCircle 40s linear infinite;
}

.mesh-bg.gradient-bg .g4 {
  background: radial-gradient(circle at center, rgba(var(--gradient-color4), 0.8) 0, rgba(var(--gradient-color4), 0) 50%);
  width: var(--gradient-circle-size);
  height: var(--gradient-circle-size);
  top: calc(50% - var(--gradient-circle-size) / 2);
  left: calc(50% - var(--gradient-circle-size) / 2);
  transform-origin: calc(50% - 200px);
  animation: gradientMoveHorizontal 40s ease infinite;

}

.mesh-bg.gradient-bg .g5 {
  background: radial-gradient(circle at center, rgba(var(--gradient-color5), 0.8) 0, rgba(var(--gradient-color5), 0) 50%);
  width: calc(var(--gradient-circle-size) * 2);
  height: calc(var(--gradient-circle-size) * 2);
  top: calc(50% - var(--gradient-circle-size));
  left: calc(50% - var(--gradient-circle-size));
  transform-origin: calc(50% - 800px) calc(50% + 200px);
  animation: gradientMoveInCircle 20s ease infinite;
}

@keyframes gradientMoveInCircle {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
  100% { transform: rotate(360deg); }
}

@keyframes gradientMoveVertical {
  0% { transform: translateY(-50%); }
  50% { transform: translateY(50%); }
  100% { transform: translateY(-50%); }
}

@keyframes gradientMoveHorizontal {
  0% { transform: translateX(-50%) translateY(-10%); }
  50% { transform: translateX(50%) translateY(10%); }
  100% { transform: translateX(-50%) translateY(-10%); }
}


.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 4vw;
}

.container--full {
  max-width: 1100px;
}

/* Header — bold, black */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), background 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.header--hidden {
  transform: translateY(-100%) !important;
  pointer-events: none;
}

.header .container {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

@media (max-width: 768px) {

  .header .container {
    padding-top: .5rem;
    padding-bottom: .5rem;
  }

  }

.header.header--scrolled {
  background: rgb(12 14 35 / 80%);
  box-shadow: 0 2px 20px 4px rgba(0, 0, 0, 0.35);
  transform: translateY(0);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(8.3px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
  flex: 1;
}

.header-inner .nav-links {
  flex: 1;
  justify-content: center;
  display: flex;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  gap: 12px;
  flex: 1;
}

.header-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.header-theme-toggle:hover {
  color: var(--text);
  background: var(--bg-soft);
}

.header-theme-toggle--mobile {
  margin-bottom: 8px;
}

.header-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: var(--pink);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.header-submit-btn:hover {
  background: var(--pink-hover);
}

.header-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
}

.header-hamburger:hover {
  background: var(--bg-soft);
}

.header-mobile-menu {
  display: none;
}

@keyframes headerMobileMenuIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.header-mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.header-submit-btn--mobile {
  margin-top: 12px;
}

.header-login-btn--mobile {
  margin-top: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.25rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-link--search {
  background: none;
  border: none;
  cursor: pointer;
}

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

.nav-link.active {
  color: var(--pink);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  width: 150px;
  flex-shrink: 0;
  margin-bottom: .8rem;
  flex: 1;
}

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

.logo img {
  max-width: 170px;
}

@media (max-width: 768px) {

  .logo img {
    max-width: 130px;
  }

  }

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--text);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 1rem;
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 52px;
  padding: 0 16px 0 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.search-input::placeholder {
  color: var(--text-secondary);
  font-weight: 600;
}

.search-input:focus {
  outline: none;
  border-color: var(--pink);
}

.main {
  min-height: calc(100vh - 64px);
  padding-top: 180px;
}

@media (max-width: 768px) {

  .main {
    padding-top: 140px;
  }

  }

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text);
  text-transform: uppercase;
}

/* Browse toolbar */
.browse-toolbar {
  padding-top: 0;
  padding-bottom: 16px;
}

.browse-toolbar .search-wrap {
  max-width: 100%;
  position: relative;
}

/* Browse page: page title, then toolbar, then chart */
.browse-page__page-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 24px 0;
}

.browse-page__chart-header {
  margin-bottom: 20px;
}

.browse-page__subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
  max-width: 520px;
}

/* Browse: filters toolbar on top, chart 100% width below */
.browse-page__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 24px;
  margin-bottom: 20px;
  width: 100%;
}

.browse-page__toolbar-search {
  position: relative;
  min-width: 200px;
  max-width: 320px;
}

.browse-page__toolbar .browse-filters {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: flex-end;
  min-width: 0;
}

.browse-page__toolbar-search {
  margin-left: auto;
}

.browse-page__toolbar .browse-filters__row {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: flex-end;
}

.browse-page__chart {
  width: 100%;
  min-width: 0;
  padding-top: 0;
}

/* Browse filters — time, rating, sort (visually distinct groups) */
.browse-filters {
  padding: 0;
  border-bottom: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.browse-filter-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.browse-filter-group__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

.browse-filter-group__label .filter-icon {
  flex-shrink: 0;
  color: var(--text-muted);
}

.browse-filter-group__label .filter-icon--time,
.browse-filter-group__label .filter-icon--star {
  color: var(--pink);
}

.browse-filter-group__label .filter-icon--genre {
  color: var(--blue-btn);
}

.browse-filter-group__options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Simplified filter layout: 2 rows */
.browse-filters--simple {
  gap: 16px;
}

.browse-filters__row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.browse-filters__row .browse-filter-group {
  gap: 6px;
}

.browse-filter-group--sort {
  max-width: 260px;
}

.filter-select {
  width: 100%;
  padding: 8px 12px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s;
}

.filter-select:hover,
.filter-select:focus {
  border-color: var(--pink);
  outline: none;
}

.filter-chip--small {
  padding: 5px 10px;
  font-size: 0.72rem;
}

.browse-filter-group__options--wrap {
  overflow-y: auto;
}

.browse-chart-section {
  padding-top: 20px;
}

.browse-page__chart {
  padding-top: 0;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-chip .filter-icon {
  flex-shrink: 0;
}

.filter-chip__stars {
  color: var(--pink);
  letter-spacing: 0.02em;
}

.filter-chip__label {
  font-size: 0.75rem;
}

.filter-chip:hover {
  background: var(--bg-soft);
}

.filter-chip.active {
  background: var(--pink);
  border-color: var(--pink);
  color: var(--on-accent);
}

.filter-chip.active .filter-chip__stars {
  color: var(--on-accent);
}

.filter-chip .star-icon {
  font-size: 0.85em;
}

/* ---------- Chart: image-led rows + image-led card grid ---------- */
.song-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.song-chart--home {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 48px;
}

.song-chart--home.song-chart--list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chart-section-filters__search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* Home list view: make tile cards look like rows */
.song-chart--home.song-chart--list .song-card--tile {
  flex-direction: row;
  align-items: center;
  border-radius: 8px;
  border-width: 2px;
  background: var(--bg-soft);
}

.song-chart--home.song-chart--list .song-card-tile-image {
  width: 120px;
  max-width: 30%;
  aspect-ratio: 1;
  flex-shrink: 0;
}

.song-chart--home.song-chart--list .song-card-tile-info {
  padding: 16px 18px;
  text-align: center;
}

.song-chart--home.song-chart--list .song-card--tile .song-title {
  font-size: 1.5rem;
}

.song-chart--home.song-chart--list .song-card--tile .song-artist {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.song-chart--home.song-chart--list .song-card--tile .song-card-ratings {
  gap: 12px;
  padding: 1rem;
}

.chart-view-toggle {
  padding: 8px 10px;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgb(255 255 255 / 75%);
  color: var(--text-secondary);
  font-size: 1.25rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  display: none !important;
}

.chart-view-toggle:hover {
  border-color: var(--pink);
  color: var(--pink);
}

.chart-view-toggle[aria-pressed="true"] {
  border-color: var(--pink);
  background: rgba(221, 31, 76, 0.12);
  color: var(--pink);
}

.chart-view-toggle__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.chart-view-toggle__icon svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/* Grid view: show list icon (switch to list); list view: show grid icon (switch to grid) */
.chart-view-toggle__icon-grid {
  display: none;
}

.chart-view-toggle--list .chart-view-toggle__icon-list {
  display: none;
}

.chart-view-toggle--list .chart-view-toggle__icon-grid {
  display: inline-block;
}

/* CTA card in 7th slot on home chart */
.song-chart-cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(221, 31, 76, 0.12);
  color: #fff;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.song-chart-cta:hover {
  background: rgba(221, 31, 76, 0.28);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(221, 31, 76, 0.25);
}
.song-chart-cta__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 28px 20px;
  min-height: 280px;
  text-align: center;
}
.song-chart-cta__inner .footer-cta__title,
.song-chart-cta__inner .footer-cta__desc {
  margin-left: 0;
  margin-right: 0;
}
.song-chart-cta__inner .footer-cta__title {
  margin-bottom: 0;
}
.song-chart-cta__inner .footer-cta__desc {
  margin-bottom: 0;
}

/* UMEWS tier-colour ★ row (footer + in-chart submit CTA) */
.footer-cta__tier-stars {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.18em;
  margin: 0 0 0.65rem;
  line-height: 1;
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  user-select: none;
}
.footer-cta__inner .footer-cta__tier-stars {
  justify-content: flex-start;
}
.footer-cta__tier-star {
  font-weight: 700;
  display: inline-block;
  will-change: color;
}

/* Tier colours (1 = violet … 5 = pink); static fallbacks + synced “shift right” loop */
.footer-cta__tier-star--1 {
  color: #8b5cf6;
  animation: footerTierCycle1 1s linear infinite;
}
.footer-cta__tier-star--2 {
  color: #3b82f6;
  animation: footerTierCycle2 1s linear infinite;
}
.footer-cta__tier-star--3 {
  color: #70af11;
  animation: footerTierCycle3 1s linear infinite;
}
.footer-cta__tier-star--4 {
  color: #f97316;
  animation: footerTierCycle4 1s linear infinite;
}
.footer-cta__tier-star--5 {
  color: var(--pink);
  animation: footerTierCycle5 1s linear infinite;
}

/*
 * Each step, every star shows the colour that was on the star to its left (1 ← 5).
 * Star j at shift s shows C[(j-1-s) mod 5] (0-indexed colours C0…C4).
 */
@keyframes footerTierCycle1 {
  0%,
  19.5% {
    color: #8b5cf6;
  }
  20%,
  39.5% {
    color: #dd1f4c;
  }
  40%,
  59.5% {
    color: #f97316;
  }
  60%,
  79.5% {
    color: #70af11;
  }
  80%,
  99.5% {
    color: #3b82f6;
  }
  100% {
    color: #8b5cf6;
  }
}

@keyframes footerTierCycle2 {
  0%,
  19.5% {
    color: #3b82f6;
  }
  20%,
  39.5% {
    color: #8b5cf6;
  }
  40%,
  59.5% {
    color: #dd1f4c;
  }
  60%,
  79.5% {
    color: #f97316;
  }
  80%,
  99.5% {
    color: #70af11;
  }
  100% {
    color: #3b82f6;
  }
}

@keyframes footerTierCycle3 {
  0%,
  19.5% {
    color: #70af11;
  }
  20%,
  39.5% {
    color: #3b82f6;
  }
  40%,
  59.5% {
    color: #8b5cf6;
  }
  60%,
  79.5% {
    color: #dd1f4c;
  }
  80%,
  99.5% {
    color: #f97316;
  }
  100% {
    color: #70af11;
  }
}

@keyframes footerTierCycle4 {
  0%,
  19.5% {
    color: #f97316;
  }
  20%,
  39.5% {
    color: #70af11;
  }
  40%,
  59.5% {
    color: #3b82f6;
  }
  60%,
  79.5% {
    color: #8b5cf6;
  }
  80%,
  99.5% {
    color: #dd1f4c;
  }
  100% {
    color: #f97316;
  }
}

@keyframes footerTierCycle5 {
  0%,
  19.5% {
    color: #dd1f4c;
  }
  20%,
  39.5% {
    color: #f97316;
  }
  40%,
  59.5% {
    color: #70af11;
  }
  60%,
  79.5% {
    color: #3b82f6;
  }
  80%,
  99.5% {
    color: #8b5cf6;
  }
  100% {
    color: #dd1f4c;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-cta__tier-star--1,
  .footer-cta__tier-star--2,
  .footer-cta__tier-star--3,
  .footer-cta__tier-star--4,
  .footer-cta__tier-star--5 {
    animation: none;
  }
}

.song-chart-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 8px;
  pointer-events: none;
  color: #fff;
  background: var(--pink);
  border: 2px solid var(--pink);
}
.song-chart-cta:hover .song-chart-cta__btn {
  background: var(--pink-hover);
  border-color: var(--pink-hover);
  color: #fff;
}

.song-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  cursor: pointer;
  border: none;
  padding: 0;
  background: none;
  text-align: left;
  width: 100%;
  transition: opacity 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
}

.song-card:hover {
  opacity: 0.92;
}

/* Row: leading image */
.song-card--row {
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--border);
}

/* Row: play overlay over artwork (same as tile) */
.song-card-row-image {
  position: relative;
  flex-shrink: 0;
  width: 131px;
  height: 131px;
  overflow: hidden;
}

.song-card-row-image .song-card-artwork {
  width: 100%;
  height: 100%;
}

.song-card-row-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.song-card-row-play__circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}

.song-card--row:hover .song-card-row-play__circle {
  background: rgba(221, 31, 76, 0.9);
  transform: scale(1.05);
}

.song-card-row-play__icon {
  width: 20px;
  height: 20px;
  margin-left: 3px;
}

.song-card-artwork {
  flex-shrink: 0;
  width: 131px;
  height: 131px;
  background: var(--bg-soft);
  overflow: hidden;
}

.song-card-artwork img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.song-card-artwork-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--text-secondary);
  background: var(--blue-deco);
}

.song-card--row .song-card-rank-box {
  border-radius: 0;
  min-height: 96px;
}

.song-card--row .song-card-capsule {
  border-radius: 0;
}

/* Tile: image-led card for home grid */
.song-card--tile {
  flex-direction: column;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8.3px);
  -webkit-backdrop-filter: blur(8.3px);
  box-shadow: 0 0 16px 1px rgba(0, 0, 0, 0.08);
}

.song-card--tile:hover {
  transform: translateY(-4px);
}

.song-card-tile-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-soft);
  overflow: hidden;
}

.song-card-tile-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.song-card-tile-play__circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}

.song-card--tile:hover .song-card-tile-play__circle {
  background: rgba(221, 31, 76, 0.9);
  transform: scale(1.05);
}

.song-card-tile-play__icon {
  width: 24px;
  height: 24px;
  margin-left: 4px;
}

.song-card-artwork--large {
  width: 100%;
  height: 100%;
}

.song-card-artwork--large img {
  width: 100% !important;
  height: 100%;
  object-fit: cover;
}

.song-card-rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg);
  border: 2px solid var(--border);
  color: var(--text);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.song-card-tile-info {
  text-align: center;
  padding: 16px;
  min-width: 0;
}

.song-card--tile .song-title {
  color: var(--text);
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.song-card--tile .song-artist {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 8px;
}

.song-card-rank-box {
  flex-shrink: 0;
  width: 48px;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: 0;
  border-left: none;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
}

.song-card-capsule {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px 24px;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8.3px);
  -webkit-backdrop-filter: blur(8.3px);
  color: var(--text);
  border-left: 2px solid var(--border);
  border-radius: 0 8px 8px 0;
}

.song-card-capsule-left {
  min-width: 0;
}

.song-card-capsule-ratings {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-self: center;
}

.song-card-capsule-ratings .rating-block {
  flex-shrink: 0;
}

.song-card-capsule-cta {
  justify-self: end;
}

.song-card-capsule-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  background: var(--pink);
  color: var(--on-accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.2s, transform 0.2s;
}

.song-card--row:hover .song-card-capsule-cta__btn {
  background: var(--pink-hover);
  transform: scale(1.02);
}

[data-theme="light"] .song-card--tile,
[data-theme="light"] .song-card-capsule {
  background: var(--bg-soft);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.song-card--row .song-title,
.song-card--row .song-artist {
  color: var(--text);
}

.song-card--row .song-artist {
  color: var(--text-secondary);
}

.song-title {
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 2px;
}

.song-artist {
  font-weight: 700;
  font-size: 1rem;
}

.song-card-ratings {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
  justify-content: space-evenly;
}

.song-card-ratings-container {
  background: #fff;
  padding: 2rem 0;
}

/* 5-star rating block: title (top), stars (middle), meaning (bottom). Same size for UMEWS and Audience. */
.rating-block {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0;
  border-radius: 999px;
  border: 2px solid transparent;
}
.rating-block__title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}
.rating-block__stars {
  font-size: 1.1rem;
  line-height: 1;
  letter-spacing: 0.08em;
}
.rating-block__meaning {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.rating-block--umews .rating-block__stars {
  color: var(--pink);
  letter-spacing: 0;
}
.rating-block--audience .rating-block__stars {
  color: var(--blue-btn);
}
.rating-block__stars-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}
.rating-block__stars-wrap .rating-block__stars {
  margin: 0;
}
.rating-block__value {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text);
  padding: .5rem;
  border: 2px solid var(--text);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  text-align: center;
}

/* Tile: slightly smaller */
.rating-block--tile .rating-block__title {
  font-size: 0.7rem;
}
.rating-block--tile .rating-block__stars {
  font-size: 1.5rem;
  font-weight: 800;
}
.rating-block--tile .rating-block__meaning {
  font-size: 1rem;
  display: block;
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rating-block--tile .rating-block__value {
  font-size: 1rem;
}

/* Badge-style UMEWS rating: pill with numeric value + stars */

.rating-block-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.rating-block--umews {
  --umews-rating-color: var(--pink);
  --umews-rating-bg: rgba(221, 31, 76, 0.08);
  --umews-rating-border: rgba(221, 31, 76, 0.7);
  background: var(--umews-rating-bg);
  display: flex;
    align-items: center;
    flex-direction: column;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 1rem;
    border: 2px solid var(--umews-rating-border);
    width: 120px;
    text-align: center;
}

.rating-block--umews-4 {
  --umews-rating-color: #f97316;
  --umews-rating-bg: rgba(249, 115, 22, 0.1);
  --umews-rating-border: rgba(249, 115, 22, 0.7);
}

.rating-block--umews-3 {
  --umews-rating-color: #70af11;
  --umews-rating-bg: rgba(132, 204, 22, 0.1);
  --umews-rating-border: rgba(111, 176, 18, 0.7);
}

.rating-block--umews-2 {
  --umews-rating-color: #3b82f6;
  --umews-rating-bg: rgba(59, 130, 246, 0.1);
  --umews-rating-border: rgba(59, 130, 246, 0.7);
}

.rating-block--umews-1 {
  --umews-rating-color: #8b5cf6;
  --umews-rating-bg: rgba(139, 92, 246, 0.1);
  --umews-rating-border: rgba(139, 92, 246, 0.7);
}

.rating-block--umews .rating-block__title,
.rating-block--umews .rating-block__meaning,
.rating-block--umews .rating-block__value,
.rating-block--umews .rating-block__stars {
  color: var(--umews-rating-color);
}

/* Modal: slightly larger */
.rating-block--modal .rating-block__title {
  font-size: 0.75rem;
}
.rating-block--modal .rating-block__stars {
  font-size: 1.65rem;
}
.rating-block--modal .rating-block__meaning {
  font-size: 1rem;
}
.rating-block--modal .rating-block__value {
  font-size: 1.05rem;
}

/* Legacy star-shaped rating badges (kept for reference; new UI uses .rating-umews + .rating-audience) */
.rating-star {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rating-star__shape {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rating-star__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: currentColor;
  opacity: 0.22;
}

.rating-star__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 2px;
}

.rating-star__value {
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.rating-star__sub {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.95;
}

.rating-star__label {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-secondary);
}

/* UMEWS = larger and bolder (primary rating) */
.rating-star--umews .rating-star__shape {
  width: 84px;
  height: 84px;
}

.rating-star--umews .rating-star__svg {
  width: 84px;
  height: 84px;
  opacity: 0.28;
}

.rating-star--umews .rating-star__value {
  font-size: 1.75rem;
  font-weight: 900;
}

.rating-star--umews .rating-star__sub {
  font-size: 0.7rem;
  font-weight: 800;
}

.rating-star--umews .rating-star__svg,
.rating-star--umews .rating-star__value,
.rating-star--umews .rating-star__sub {
  color: var(--pink);
}

/* Audience = smaller (secondary rating) */
.rating-star--audience .rating-star__shape {
  width: 64px;
  height: 64px;
}

.rating-star--audience .rating-star__svg {
  width: 64px;
  height: 64px;
  opacity: 0.2;
}

.rating-star--audience .rating-star__value {
  font-size: 1.25rem;
  font-weight: 800;
}

.rating-star--audience .rating-star__sub {
  font-size: 0.58rem;
  font-weight: 700;
}

.rating-star--audience .rating-star__svg,
.rating-star--audience .rating-star__value,
.rating-star--audience .rating-star__sub {
  color: var(--blue-btn);
}

.song-card--row .rating-star__label {
  color: var(--text-secondary);
}

.song-card--tile .song-card-ratings {
  gap: 10px;
  padding: 0 16px 16px;
}

/* Tile: UMEWS still larger than audience */
.rating-star--tile.rating-star--umews .rating-star__shape {
  width: 76px;
  height: 76px;
}

.rating-star--tile.rating-star--umews .rating-star__svg {
  width: 76px;
  height: 76px;
}

.rating-star--tile.rating-star--umews .rating-star__value {
  font-size: 1.6rem;
}

.rating-star--tile.rating-star--umews .rating-star__sub {
  font-size: 0.65rem;
}

.rating-star--tile .rating-star__shape {
  width: 58px;
  height: 58px;
}

.rating-star--tile.rating-star--audience .rating-star__shape {
  width: 52px;
  height: 52px;
}

.rating-star--tile .rating-star__svg {
  width: 58px;
  height: 58px;
}

.rating-star--tile.rating-star--audience .rating-star__svg {
  width: 52px;
  height: 52px;
}

.rating-star--tile .rating-star__value {
  font-size: 1.35rem;
}

.rating-star--tile.rating-star--audience .rating-star__value {
  font-size: 1.1rem;
}

.rating-star--tile .rating-star__sub {
  font-size: 0.58rem;
}

.rating-star--tile .rating-star__label {
  font-size: 0.65rem;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.song-card--row .rating-badge {
  color: var(--on-accent);
}

.rating-badge.umews .stars {
  letter-spacing: 0.5px;
}

.rating-badge.audience {
  color: inherit;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 32px 28px;
  color: var(--text-secondary);
}

.song-chart--home .empty-state {
  grid-column: 1 / -1;
}

.empty-state .icon {
  font-size: 2rem;
  margin-bottom: 12px;
  opacity: 0.6;
}

.empty-state p {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
}


/* ---------- Song page — single column (same layout as about page) ---------- */
.song-page {
  padding: 0 0 64px;
}

/* Hero: no background, same font size as about hero */
.song-page__hero {
  margin-bottom: 0;
  text-align: center;
}

.song-page__hero-inner {
  max-width: 920px;
  margin: 0 auto 2rem;
}

.song-page__back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 20px;
  padding: 8px 0;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: color 0.2s;
}

.song-page__back:hover {
  color: var(--pink);
}

.song-page__title {
  font-size: clamp(2rem, 5vw, 10rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--text);
}

.song-page__artist {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Content area: has background; single column of cards */


.song-page__container {
  max-width: 920px;
  margin: 0 auto;
}

.song-page__main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.song-page__card .about-card__title {
  margin-bottom: 16px;
}

.song-page__card--art .song-page__art {
  margin: 0 auto;
  max-width: 160px;
  margin-bottom: 1rem;
}

.song-page__art {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.song-page__art img,
.song-page__art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.song-page__ratings {
  margin: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.song-page__card--ratings .song-page__ratings {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 24px;
}

.song-page__card--player .song-page__player {
  margin: 0;
}

.song-page__card--vote.your-rating-block {
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

.song-page__card--vote .your-rating-block__title,
.song-page__card--vote .your-rating-block__desc,
.song-page__card--vote .your-rating-block__stars,
.song-page__card--vote .your-rating-block__clear,
.song-page__card--vote .your-rating-block__current {
  margin-bottom: 12px;
}

.song-page__card--vote .your-rating-block__current:last-child {
  margin-bottom: 0;
}

.song-page__player {
  margin-bottom: 0;
}

.song-page__player iframe {
  width: 100%;
  height: 400px;
  background: #f4f4f4;
  border-radius: 1rem;
}

.song-page__embed-wrap {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--bg-soft);
  margin-bottom: 16px;
}

.song-page__embed {
  display: block;
  width: 100%;
  border: none;
}

.song-page__embed--youtube {
  aspect-ratio: 16 / 9;
  max-height: 360px;
}

.song-page__embed--spotify {
  height: 152px;
}

/* ---------- Song share ---------- */
.song-share {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.song-share__btn {
  white-space: nowrap;
}

.song-share__status {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.song-page__embed--soundcloud {
  height: 166px;
}

.song-page__embed-wrap--tiktok {
  max-width: 605px;
  margin-left: auto;
  margin-right: auto;
}

.song-page__player iframe.song-page__embed--tiktok,
.song-modal-body iframe.song-page__embed--tiktok {
  height: min(740px, 85vh);
  min-height: 420px;
}

.song-page__player-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.song-page__sources {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.song-page__card--vote {
  text-align: center;
}

/* Your rating — contributes to audience score */
.your-rating-block {
  padding: 24px;
  background: var(--bg-soft);
  border: 2px solid var(--border);
  border-radius: 12px;
}

.your-rating-block__title {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  margin: 0 0 8px;
}

.your-rating-block__desc {
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 16px;
}

.your-rating-block__stars {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  /* Match .rating-block--umews tier palette (1 = lowest … 5 = top / pink). */
  --umews-tier-1: #8b5cf6;
  --umews-tier-1-bg: rgba(139, 92, 246, 0.12);
  --umews-tier-2: #3b82f6;
  --umews-tier-2-bg: rgba(59, 130, 246, 0.12);
  --umews-tier-3: #70af11;
  --umews-tier-3-bg: rgba(112, 175, 17, 0.12);
  --umews-tier-4: #f97316;
  --umews-tier-4-bg: rgba(249, 115, 22, 0.12);
  --umews-tier-5: var(--pink);
  --umews-tier-5-bg: rgba(221, 31, 76, 0.12);
}

.your-rating-block__star {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

/* Committed vote: every lit star uses the colour for the chosen tier. */
.your-rating-block__stars[data-selected="1"] .your-rating-block__star--on {
  color: var(--umews-tier-1);
  border-color: var(--umews-tier-1);
  background: var(--umews-tier-1-bg);
}
.your-rating-block__stars[data-selected="2"] .your-rating-block__star--on {
  color: var(--umews-tier-2);
  border-color: var(--umews-tier-2);
  background: var(--umews-tier-2-bg);
}
.your-rating-block__stars[data-selected="3"] .your-rating-block__star--on {
  color: var(--umews-tier-3);
  border-color: var(--umews-tier-3);
  background: var(--umews-tier-3-bg);
}
.your-rating-block__stars[data-selected="4"] .your-rating-block__star--on {
  color: var(--umews-tier-4);
  border-color: var(--umews-tier-4);
  background: var(--umews-tier-4-bg);
}
.your-rating-block__stars[data-selected="5"] .your-rating-block__star--on {
  color: var(--umews-tier-5);
  border-color: var(--umews-tier-5);
  background: var(--umews-tier-5-bg);
}

/* Hover preview (before submit): star 1..N each use its own UMEWS tier colour. */
.your-rating-block__stars:has(.your-rating-block__star:nth-child(1):hover) .your-rating-block__star:nth-child(1):enabled {
  color: var(--umews-tier-1);
  border-color: var(--umews-tier-1);
  background: var(--umews-tier-1-bg);
}
.your-rating-block__stars:has(.your-rating-block__star:nth-child(2):hover) .your-rating-block__star:nth-child(1):enabled {
  color: var(--umews-tier-1);
  border-color: var(--umews-tier-1);
  background: var(--umews-tier-1-bg);
}
.your-rating-block__stars:has(.your-rating-block__star:nth-child(2):hover) .your-rating-block__star:nth-child(2):enabled {
  color: var(--umews-tier-2);
  border-color: var(--umews-tier-2);
  background: var(--umews-tier-2-bg);
}
.your-rating-block__stars:has(.your-rating-block__star:nth-child(3):hover) .your-rating-block__star:nth-child(1):enabled {
  color: var(--umews-tier-1);
  border-color: var(--umews-tier-1);
  background: var(--umews-tier-1-bg);
}
.your-rating-block__stars:has(.your-rating-block__star:nth-child(3):hover) .your-rating-block__star:nth-child(2):enabled {
  color: var(--umews-tier-2);
  border-color: var(--umews-tier-2);
  background: var(--umews-tier-2-bg);
}
.your-rating-block__stars:has(.your-rating-block__star:nth-child(3):hover) .your-rating-block__star:nth-child(3):enabled {
  color: var(--umews-tier-3);
  border-color: var(--umews-tier-3);
  background: var(--umews-tier-3-bg);
}
.your-rating-block__stars:has(.your-rating-block__star:nth-child(4):hover) .your-rating-block__star:nth-child(1):enabled {
  color: var(--umews-tier-1);
  border-color: var(--umews-tier-1);
  background: var(--umews-tier-1-bg);
}
.your-rating-block__stars:has(.your-rating-block__star:nth-child(4):hover) .your-rating-block__star:nth-child(2):enabled {
  color: var(--umews-tier-2);
  border-color: var(--umews-tier-2);
  background: var(--umews-tier-2-bg);
}
.your-rating-block__stars:has(.your-rating-block__star:nth-child(4):hover) .your-rating-block__star:nth-child(3):enabled {
  color: var(--umews-tier-3);
  border-color: var(--umews-tier-3);
  background: var(--umews-tier-3-bg);
}
.your-rating-block__stars:has(.your-rating-block__star:nth-child(4):hover) .your-rating-block__star:nth-child(4):enabled {
  color: var(--umews-tier-4);
  border-color: var(--umews-tier-4);
  background: var(--umews-tier-4-bg);
}
.your-rating-block__stars:has(.your-rating-block__star:nth-child(5):hover) .your-rating-block__star:nth-child(1):enabled {
  color: var(--umews-tier-1);
  border-color: var(--umews-tier-1);
  background: var(--umews-tier-1-bg);
}
.your-rating-block__stars:has(.your-rating-block__star:nth-child(5):hover) .your-rating-block__star:nth-child(2):enabled {
  color: var(--umews-tier-2);
  border-color: var(--umews-tier-2);
  background: var(--umews-tier-2-bg);
}
.your-rating-block__stars:has(.your-rating-block__star:nth-child(5):hover) .your-rating-block__star:nth-child(3):enabled {
  color: var(--umews-tier-3);
  border-color: var(--umews-tier-3);
  background: var(--umews-tier-3-bg);
}
.your-rating-block__stars:has(.your-rating-block__star:nth-child(5):hover) .your-rating-block__star:nth-child(4):enabled {
  color: var(--umews-tier-4);
  border-color: var(--umews-tier-4);
  background: var(--umews-tier-4-bg);
}
.your-rating-block__stars:has(.your-rating-block__star:nth-child(5):hover) .your-rating-block__star:nth-child(5):enabled {
  color: var(--umews-tier-5);
  border-color: var(--umews-tier-5);
  background: var(--umews-tier-5-bg);
}

.your-rating-block__star:disabled {
  cursor: default;
  opacity: 0.8;
}

.your-rating-block__clear {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 0 auto 12px;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.2s;
}

.your-rating-block__clear:hover:not(:disabled) {
  color: var(--text);
}

.your-rating-block__clear:disabled {
  opacity: 0.5;
  cursor: wait;
}

.your-rating-block__clear[hidden] {
  display: none !important;
}

.your-rating-block__current {
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

.song-page__source-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  background: var(--pink);
  color: var(--on-accent);
  border: 2px solid var(--pink);
  transition: background 0.2s, border-color 0.2s;
}

.song-page__source-link:hover {
  background: var(--pink-hover);
  border-color: var(--pink-hover);
}

.song-page__not-found {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* Song modal — full width, slides up from bottom, height calc(100% - 30px) */
.song-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.song-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.song-modal-panel {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: calc(100% - 30px);
  background: var(--bg);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.song-modal-overlay.is-open .song-modal-panel {
  transform: translateY(0);
}

.song-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--text-secondary);
  background: var(--bg-soft);
  border: 2px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.song-modal-close:hover {
  color: var(--text);
  background: var(--border);
  border-color: var(--text-muted);
}

.song-modal-body {
  flex: 1;
  width: 100%;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
  padding: 4vw;
}

.song-modal-body .main,
.song-modal-body .song-page {
  padding-bottom: 2rem;
}

/* Injected content uses .page-content-motion which is opacity:0 by default; force visible in modal */
.song-modal-body .page-content-motion,
.song-modal-body .song-page {
  opacity: 1 !important;
  transform: none !important;
}

.song-modal-loading {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.song-modal-spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--pink);
  animation: songModalSpin 0.8s linear infinite;
}

@keyframes songModalSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Global search overlay ---------- */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 11000;
  background: rgba(6, 6, 10, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.search-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.search-overlay__inner {
  width: 100%;
  max-width: 720px;
  padding: 32px 24px;
  position: relative;
}

.search-overlay__close {
  position: fixed;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 2.5rem;
    left: 50%;
    top: 3rem;
    transform: translate(-50%, -50%);
}

.search-overlay__close:hover {
  color: var(--text-secondary);
  border-color: var(--text-secondary);
}

.search-overlay__form {
  width: 100%;
}

.search-overlay__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.search-overlay__field {
  position: relative;
  display: flex;
  align-items: center;
}

.search-overlay__input {
  flex: 1;
  padding: 16px 44px 14px 0;
  border: none;
  border-bottom: 2px solid var(--border);
  background: transparent;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
}

.search-overlay__input:focus {
  outline: none;
  border-bottom-color: var(--pink);
}

.search-overlay__submit {
  position: absolute;
  right: 0;
  border: none;
  background: none;
  color: #fff;
  cursor: pointer;
  font-size: 1.1rem;
}

.search-overlay__submit:hover {
  color: var(--pink);
}

body.search-open #app-content {
  opacity: 0.15;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

/* ---------- Home ---------- */
.hero {
  text-align: left;
}

.hero--home .hero__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.hero__content {
  flex: 1;
  min-width: 0;
  text-align: center
}

.hero__headline {
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 16px;
}

.hero__line {
  display: block;
  overflow: hidden;
}

.hero__line--1 {
  animation: heroLineIn 0.5s ease-out forwards;
}

.hero__line--2 {
  opacity: 0;
  min-height: 1.2em;
}

.hero__line--2.hero__line--visible {
  animation: heroLineIn 0.5s ease-out forwards;
}

/* Staggered hero lines (home): each phrase animates in, with a pause after each */
.hero__line-one {
  display: block;
}
.hero__stagger {
  opacity: 0;
  animation: heroLineIn 0.35s ease-out forwards;
  overflow: hidden;
}
.hero__line-one .hero__stagger {
  display: inline-block;
}
.hero__stagger--1 { animation-delay: 0s; }
.hero__stagger--2 { animation-delay: 0.8s; }
.hero__stagger--3 { animation-delay: 1.6s; }
.hero__stagger--4 { animation-delay: 2.4s; }

.hero__stagger--2 { margin-left: 1rem;}

.hero__accent {
  color: #dd1e4d;
  font-weight: 800;
}

.hero__accent--star {
  display: inline-block;
  will-change: color, text-shadow, transform;
  /* Stepped colours; scale + glow only at each colour change */
  animation: heroAccentStarStep 10s linear infinite;
}

.hero__genre {
  font-weight: 800;
}

@keyframes heroAccentStarStep {
  /* Pink — pulse on land */
  0% {
    color: #dd1e4d;
    text-shadow: 0 0 14px rgba(221, 30, 77, 0.55), 0 0 28px rgba(221, 30, 77, 0.25);
    transform: scale(1.16);
  }
  1.2%,
  18.8% {
    color: #dd1e4d;
    text-shadow: none;
    transform: scale(1);
  }
  /* Green */
  19% {
    color: #8b5cf6;
    text-shadow: 0 0 14px rgba(142, 207, 51, 0.55), 0 0 28px rgba(142, 207, 51, 0.25);
    transform: scale(1.16);
  }
  20.2%,
  38.8% {
    color: #8b5cf6;
    text-shadow: none;
    transform: scale(1);
  }
  /* Blue */
  39% {
    color: #4d8cf5;
    text-shadow: 0 0 14px rgba(77, 140, 245, 0.55), 0 0 28px rgba(77, 140, 245, 0.25);
    transform: scale(1.16);
  }
  40.2%,
  58.8% {
    color: #4d8cf5;
    text-shadow: none;
    transform: scale(1);
  }
  /* Orange */
  59% {
    color: #8ecf33;
    text-shadow: 0 0 14px rgba(250, 126, 49, 0.55), 0 0 28px rgba(250, 126, 49, 0.25);
    transform: scale(1.16);
  }
  60.2%,
  78.8% {
    color: #8ecf33;
    text-shadow: none;
    transform: scale(1);
  }
  /* Violet */
  79% {
    color: #fa7e31;
    text-shadow: 0 0 14px rgba(139, 92, 246, 0.55), 0 0 28px rgba(139, 92, 246, 0.25);
    transform: scale(1.16);
  }
  /* Violet through end of loop; pink pulse only at 0% (avoids double pulse on red/pink) */
  80.2%,
  100% {
    color: #fa7e31;
    text-shadow: none;
    transform: scale(1);
  }
}

/* Hero headline: line 1 = #dd1f4c, line 2 = #7dd3fc */
.hero__line--1 .hero__genre {
  color: #dd1f4c;
}
.hero__line--2 .hero__genre {
  color: #7dd3fc;
}

@keyframes heroLineIn {
  from {
    opacity: 0;
    transform: translateY(0.4em);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__subline {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-secondary);
  line-height: 1.4;
}

.hero__submit {
  flex-shrink: 0;
}

/* Circular starburst (zigzag) button — blue */
.starburst-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  background: var(--blue-btn);
  color: var(--on-accent);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  transition: transform 0.2s, filter 0.2s;
  border: 2px solid var(--border);
}

.starburst-btn:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.starburst-btn__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 8px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 6px;
  color: var(--text);
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  max-width: 420px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  border: 2px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

.btn:hover {
  background: var(--bg-soft);
}

.btn--primary {
  background: var(--pink);
  border-color: var(--pink);
  color: var(--on-accent);
}

.btn--primary:hover {
  background: var(--pink-hover);
  border-color: var(--pink-hover);
  color: var(--on-accent);
}

.chart-section {
  padding: 40px 0 56px;
}

.chart-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.chart-section-header__left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.chart-section-header__link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--pink);
  text-decoration: none;
  transition: color 0.2s;
}
.chart-section-header__link:hover {
  color: var(--pink-hover);
}

.chart-section-header .search-wrap {
  position: relative;
  width: 100%;
  max-width: 280px;
}
@media (min-width: 540px) {
  .chart-section-header .search-wrap {
    width: auto;
    min-width: 200px;
  }
}

.chart-section-filters {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px 16px;
  width: 100%;
  margin-bottom: 20px;
}
.chart-section-filters__label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}
.chart-section-filters__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex-direction: column;
}
.chart-section-filters__search {
  position: relative;
  margin-left: auto;
  min-width: 200px;
  max-width: 280px;
  width: 100%;
}

@media (max-width: 660px) {

  .chart-section-filters__search-row {
    flex-basis: 100%;
  }
  .chart-section-filters__search {
    position: relative;
    margin-left: auto;
    min-width: 200px;
    max-width: 100%;
    width: 100%;
  }

  }

.rating-filter-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.rating-filter-select {
  padding: 12px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.chart-section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}

.chart-section-load {
  margin-top: 28px;
  text-align: center;
}

.btn--outline {
  border: 2px solid var(--outline-btn-border);
  color: var(--outline-btn-color);
  background: transparent;
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .btn--outline:hover {
  background: rgba(0, 0, 0, 0.06);
}

/* How It Works — colourful pink section */
.how-it-works {
  padding: 56px 0 80px;
  border-top: 2px solid var(--border);
  background: linear-gradient(180deg, rgba(233, 30, 140, 0.08) 0%, rgba(233, 30, 140, 0.04) 50%, transparent 100%);
}

.how-it-works .section-title {
  text-align: center;
  margin-bottom: 36px;
  font-size: 1.35rem;
  text-transform: uppercase;
  color: var(--text);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.step-card {
  background: var(--bg);
  border: 2px solid var(--pink);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 2px 0 rgba(233, 30, 140, 0.15);
}

.step-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 30, 140, 0.2);
  background: rgba(255, 255, 255, 0.98);
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--pink);
  color: var(--on-accent);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step-title {
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  color: var(--pink);
}

.step-desc {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Submit page — same layout as about: hero (no bg) + content (bg) + card */
.submit-page {
  padding: 0 0 64px;
}

.submit-hero {
  margin-bottom: 56px;
  text-align: center;
}

.submit-hero__tagline {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  margin: 0 0 16px;
}

.submit-hero__title {
  font-size: clamp(2rem, 5vw, 10rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 24px;
}



.submit-page__container {
  max-width: 920px;
  margin: 0 auto;
}

.checkout-page__container {
  max-width: 720px;
  margin: 0 auto;
}

/* Form card: reuses .about-card look */
.submit-form-card .submit-form__song-title {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
}

.submit-form-card .song-entry {
  margin-bottom: 28px;
}

.submit-form-card .song-entry:last-of-type {
  margin-bottom: 24px;
}

.submit-form-card .submit-form__song-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  border-bottom: 2px solid #e4e4e7;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.submit-form-card .submit-form__field {
  margin: 0 0 16px;
}

.submit-form-card .submit-form__field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 6px;
}

.submit-form-card .submit-form__field input,
.submit-form-card .submit-form__field textarea, .woocommerce form .form-row .input-text, .woocommerce form .form-row select, .nf-field-element input, .nf-field-element select, .nf-field-element textarea {
  width: 100%;
  max-width: 100%;
  padding: 10px 14px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s;
}

.submit-form-card .submit-form__field input:focus,
.submit-form-card .submit-form__field textarea:focus {
  outline: none;
  border-color: var(--pink);
}

.submit-form-card .submit-form__field textarea {
  resize: vertical;
  min-height: 80px;
}

.submit-form-card .submit-form__hint {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: none;
}

.submit-form-card .submit-form__error {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #d33;
}

.submit-form-card .submit-form__remove-btn {
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.submit-form-card .submit-form__remove-btn:hover:not([aria-disabled="true"]) {
  border-color: var(--pink);
  color: var(--pink);
  background: rgba(221, 31, 76, 0.05);
}

.submit-form-card .submit-form__remove-btn[aria-disabled="true"] {
  opacity: 0.4;
  cursor: default;
}

.submit-form-card .submit-form__actions {
  margin: 0;
  padding-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
}

.submit-form-card .submit-form__add-btn {
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  background: transparent;
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.submit-form-card .submit-form__add-btn:hover {
  border-color: var(--pink);
  color: var(--pink);
}

.submit-form__submit-btn {
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--on-accent);
  background: var(--pink);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.submit-form-card .submit-form__submit-btn:hover {
  background: var(--pink-hover);
}

/* Legacy submit layout (if used elsewhere) */
.submit-page__container--two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px 56px;
  align-items: start;
}

.submit-page__main-col {
  min-width: 0;
}

.submit-page__side-col {
  min-width: 0;
}

.submit-page__form-wrap {
  margin-top: 32px;
}

.submit-page__header {
  margin-bottom: 40px;
}

.submit-page__title {
  font-size: clamp(2rem, 5vw, 10rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.15;
}

.submit-page__intro {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 100%;
}

.submit-page__heading {
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.submit-page__how {
  margin-bottom: 0;
}

.submit-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.submit-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.submit-step__num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--pink);
  color: var(--on-accent);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.submit-step__title {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 4px;
}

.submit-step__desc {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}


.submit-form .form-group {
  max-width: 100%;
}

.submit-page__success {
  padding: 80px 0;
  text-align: center;
}

.submit-page__success-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--pink);
  margin-bottom: 12px;
}

.submit-page__success-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 420px;
  margin: 0 auto;
}

.submit-page .section-title {
  margin-bottom: 24px;
  text-transform: uppercase;
}

.form-group {
  margin-bottom: 20px;
  max-width: 420px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--pink);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-actions {
  margin-top: 28px;
}

.form-actions .btn {
  margin-right: 12px;
}

/* About page — single column, hero (no bg) + content (bg) with cards */
.about-page {
  padding: 0 0 64px;
}

/* Hero: no background, same font size as homepage hero */
.about-hero {
  margin-bottom: 56px;
  text-align: center;
}

.hero__inner {
  max-width: 920px;
  margin: 0 auto;
}

.about-hero__tagline {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  margin: 0 0 16px;
}

.about-hero__title {
  font-size: clamp(2rem, 5vw, 10rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 24px;
}

.hero__lead {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-secondary);
  margin: 0;
}

/* Content area: has background; single column of cards */


.about-page__container {
  max-width: 920px;
  margin: 0 auto;
}

.about-page__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* cookies */

/* Base table */
.cookies-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  font-size: 14px;
  border-radius: 10px;
  overflow: hidden;
}

/* Header */
.cookies-table thead {
  background-color: #f5f7fa;
}

.cookies-table thead th {
  text-align: left;
  padding: 14px;
  font-weight: 600;
  border-bottom: 2px solid #e0e0e0;
}

/* Body cells */
.cookies-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #eaeaea;
  vertical-align: top;
  line-height: 1.5;
}

/* Zebra striping */
.cookies-table tbody tr:nth-child(even) {
  background-color: #fafafa;
}

/* Hover effect */
.cookies-table tbody tr:hover {
  background-color: #f1f5f9;
  transition: background 0.2s ease;
}

/* Description column width */
.cookies-table td:nth-child(3) {
  max-width: 400px;
}

/* Rounded corners fix */
.cookies-table thead tr:first-child th:first-child {
  border-top-left-radius: 10px;
}
.cookies-table thead tr:first-child th:last-child {
  border-top-right-radius: 10px;
}

/* Optional: Type badges */
.cookies-table td:last-child {
  font-weight: 500;
}

.cookies-table td:last-child:contains("Analytics") {
  color: #2563eb;
}

.cookies-table td:last-child:contains("Necessary") {
  color: #16a34a;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .cookies-table thead {
    display: none;
  }

  .cookies-table,
  .cookies-table tbody,
  .cookies-table tr,
  .cookies-table td {
    display: block;
    width: 100%;
  }

  .cookies-table tr {
    margin-bottom: 15px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 10px;
    background: #fff;
  }

  .cookies-table td {
    border: none;
    padding: 8px 10px;
    position: relative;
  }

  .cookies-table td::before {
    content: attr(data-label);
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    color: #555;
  }
}

/* Cards: rounded, bordered, clear hierarchy */
.about-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 32px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.about-card__title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.about-card ul {
  padding-inline-start: 1rem;
}

.about-card h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0 0 12px;
}


.about-card p, .about-card li {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0 0 12px;
}

.about-card p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {

  .about-card p, .about-card li {
    font-size: 1rem;
  }
}

.about-card-ratings {
  margin-top: 1rem;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.about-card-ratings .rating-block--umews {
  border-radius: 8px;
  flex: 1;
}

.about-crossover-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.about-crossover-item {
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.45;
  padding: 16px 18px;
  background: rgba(221, 31, 76, 0.06);
  border: 1px solid rgba(221, 31, 76, 0.2);
  border-radius: 12px;
  border-left: 4px solid var(--pink);
}

/* Submit page: basket alert + simple process steps */
.submit-order-alert {
  border-color: rgba(31, 133, 102, 0.35);
  background: rgba(31, 133, 102, 0.08);
}

.submit-order-alert__text {
  margin: 0;
  font-size: 0.96rem;
  color: var(--text);
  margin-bottom: 0 !important;
}

.submit-order-alert__link {
  margin-left: 6px;
  font-weight: 700;
}

.about-card--how .about-card__title {
  margin-bottom: 18px;
}

.about-card--how .about-how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 16px;
}

.about-card--how .about-how-step {
  position: relative;
  margin: 0;
  padding-top: 4px;
}

.about-card--how .about-how-step::after {
  content: "";
  position: absolute;
  top: 12px;
  left: calc(18px + 8px);
  right: -8px;
  height: 2px;
  background: var(--border);
}

.about-card--how .about-how-step:last-child::after {
  display: none;
}

.about-card--how .about-how-step__dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(84, 160, 255, 0.3);
  border: 2px solid rgba(84, 160, 255, 0.75);
  display: block;
  margin-bottom: 10px;
}

.about-card--how .about-how-step:first-child .about-how-step__dot {
  background: rgba(31, 133, 102, 0.18);
  border-color: rgba(31, 133, 102, 0.95);
}

.about-card--how .about-how-step__meta {
  display: block;
  margin-bottom: 4px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.about-card--how .about-how-step__title {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

.about-card--how .about-how-step__status {
  display: block;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

/* About page: "How it works" (alt classes for a different look) */
.about-card--how-about .about-card__title {
  margin-bottom: 20px;
}

.about-card--how-about .about-how-steps-about {
  list-style: none;
  margin: 0;
  padding: 0;
}

.about-card--how-about .about-how-step-about {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.about-card--how-about .about-how-step-about:last-child {
  margin-bottom: 0;
}

.about-card--how-about .about-how-step__num-about {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .about-card--how .about-how-steps {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(145px, 1fr);
    grid-template-columns: none;
    column-gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .about-card--how .about-how-step::after {
    right: -6px;
  }

  .about-card--how .about-how-step__title {
    font-size: 0.93rem;
  }

  .about-card--how .about-how-step__status {
    font-size: 0.8rem;
  }
}

@media (max-width: 640px) {
  .about-card--how .about-card__title {
    margin-bottom: 12px;
  }

  .about-card--how .about-how-steps {
    column-gap: 10px;
  }

  .about-card--how .about-how-step__meta {
    font-size: 0.64rem;
    margin-bottom: 3px;
  }

  .about-card--how .about-how-step__title {
    margin-bottom: 0;
    font-size: 0.9rem;
  }


}

/* Footer CTA — contained glass card */
.footer-cta {
  padding: 24px;
  margin-top: 48px;
  text-align: center;
}

.footer-cta__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  margin: 0 auto;
  max-width: 920px;
  padding: 32px 28px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(221, 31, 76, 0.18) 0%, rgba(185, 25, 61, 0.12) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .footer-cta__inner {
  background: linear-gradient(135deg, rgba(221, 31, 76, 0.12) 0%, rgba(185, 25, 61, 0.08) 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.footer-cta__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.footer-cta__desc {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.45;
}

.footer-cta__btn {
  display: inline-block;
  padding: 12px 35px;
  border: 2px solid var(--pink);
  border-radius: 10px;
  background: var(--pink);
  color: var(--on-accent);
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.footer-cta__btn:hover {
  background: var(--pink-hover);
  border-color: var(--pink-hover);
  color: var(--on-accent);
}

/* Footer — single column, centered, clean */
.footer {
  padding: 56px 24px 40px;
  text-align: center;
}

.footer__inner {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.footer__logo {
  display: block;
  line-height: 0;
  margin-bottom: 28px;
}

.footer__logo img {
  height: 120px;
  width: auto;
  display: block;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: center;
  margin-bottom: 28px;
}

.footer__link {
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__link:hover {
  color: var(--pink);
}

.footer__signup {
  width: 100%;
  margin-bottom: 28px;
}

.footer__social {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: var(--text-secondary);
  transition: color 0.2s, background 0.2s;
}

.footer__social-link:hover {
  color: var(--pink);
  background: var(--bg-soft);
}


.footer__copy {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
  .header-inner .nav-links,
  .header-actions {
    display: none;
  }

  .header-hamburger {
    display: flex;
  }

  .header--mobile-open {
    z-index: 61;
  }

  .header--mobile-open .header-hamburger {
    color: #fff;
  }

  .header--mobile-open .header-hamburger:hover {
    background: rgba(255, 255, 255, 0.15);
  }

  .header-mobile-menu {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--pink);
    padding: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }

  .header-mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    animation: headerMobileMenuIn 0.35s ease forwards;
  }

  .header-mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    z-index: 1;
    opacity: 0;
  }

  .header-mobile-menu.is-open .header-mobile-menu-close {
    animation: headerMobileLinkIn 0.4s ease 0.05s forwards;
  }

  .header-mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: #fff;
  }

  .header-mobile-menu.is-open .header-mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 80px 24px 40px;
    gap: 8px;
  }

  .header-mobile-menu .header-mobile-nav > * {
    opacity: 0;
    transform: translateY(12px);
  }

  .header-mobile-menu.is-open .header-mobile-nav > * {
    animation: headerMobileLinkIn 0.4s ease forwards;
  }

  .header-mobile-menu.is-open .header-mobile-nav > *:nth-child(1) { animation-delay: 0.1s; }
  .header-mobile-menu.is-open .header-mobile-nav > *:nth-child(2) { animation-delay: 0.16s; }
  .header-mobile-menu.is-open .header-mobile-nav > *:nth-child(3) { animation-delay: 0.22s; }
  .header-mobile-menu.is-open .header-mobile-nav > *:nth-child(4) { animation-delay: 0.28s; }
  .header-mobile-menu.is-open .header-mobile-nav > *:nth-child(5) { animation-delay: 0.34s; }
  .header-mobile-menu.is-open .header-mobile-nav > *:nth-child(6) { animation-delay: 0.4s; }

  .header-mobile-menu .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12vw;
    padding: 0 20px;
  }

  .header-mobile-menu .nav-link:hover {
    color: #fff;
  }

  .header-mobile-menu .nav-link.active {
    color: #fff;
    font-weight: 800;
  }

  .header-mobile-menu .header-submit-btn--mobile {
    margin-top: 24px;
    background: #fff;
    color: var(--pink);
    border: 2px solid #fff;
  }

  .header-mobile-menu .header-submit-btn--mobile:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--pink-hover);
    border-color: rgba(255, 255, 255, 0.9);
  }

  .header-mobile-menu .header-theme-toggle--mobile {
    margin-top: 16px;
    color: #fff;
  }

  .header-mobile-menu .header-theme-toggle--mobile:hover {
    background: rgba(255, 255, 255, 0.2);
  }

  .header .container {
    position: relative;
  }



  .hero__headline {
    font-size: clamp(2.5rem, 6vw, 2.5rem);
  }

  .starburst-btn {
    width: 120px;
    height: 120px;
    font-size: 0.8rem;
  }

  .song-chart--home {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 0 2px;
  }

  .song-card--tile {
    border-radius: 10px;
  }

  .song-card-tile-info {
    padding: 12px 10px;
  }

  .song-card--tile .song-title {
    font-size: 1.1rem;
    line-height: 1.3;
  }

  .song-card--tile .song-artist {
    font-size: 0.9rem;
    margin-bottom: 6px;
  }

  .song-card-tile-play__circle {
    width: 52px;
    height: 52px;
  }

  .song-card-tile-play__icon {
    width: 20px;
    height: 20px;
  }

  .song-card-rank-badge {
    width: 28px;
    height: 28px;
    top: 8px;
    left: 8px;
    font-size: 0.8rem;
  }

  .song-card--tile .song-card-ratings {
    gap: 8px;
    padding: 0 10px 12px;
  }

  .song-card-capsule {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .song-card-capsule-ratings {
    justify-self: center;
  }

  .song-card-capsule-cta {
    justify-self: start;
  }

  .hero-title {
    font-size: 2rem;
  }

  .nav-link {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .browse-filters {
    padding: 16px 0 20px;
    gap: 16px;
  }

  .browse-filter-group__options {
    gap: 6px;
  }

  .filter-chip {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .filter-chip__label {
    font-size: 0.7rem;
  }
}

@media (max-width: 640px) {
  .song-chart--home {
    gap: 12px;
    padding: 0 4px;
    grid-template-columns: repeat(1, 1fr);
  }

  .song-card--tile {
    border-radius: 12px;
    border-width: 1px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding: 1rem;
    gap: 1rem;
  }

  .song-card-tile-content {
    flex: 1;
  }

  .song-card-tile-info {
    padding: 0;
    order: 3;
    flex-basis: 100%;
  }

  .song-card--tile .song-title {
    font-size: 1.25rem;
    line-height: 1.3;
  }

  .song-card--tile .song-artist {
    font-size: 1rem;
    margin-bottom: 0;
  }

  .song-card-tile-play__circle {
    width: 48px;
    height: 48px;
  }

  .song-card-tile-play__icon {
    width: 18px;
    height: 18px;
  }

  .song-card-rank-badge {
    width: 26px;
    height: 26px;
    top: 6px;
    left: 6px;
    font-size: 0.75rem;
  }

  .song-card--tile .song-card-ratings {
    gap: 8px;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  .song-card--tile .rating-block--umews, .song-card--tile .rating-block {
    flex-direction: column;

  }

  .song-card-tile-info {
    text-align: left;
  }



  

  /* Home list view on small screens */
  .song-chart--home.song-chart--list .song-card--tile {
    border-radius: 8px;
  }

  .song-chart--home.song-chart--list .song-card-tile-image {
    width: 72px;
    max-width: 28%;
  }

  .song-chart--home.song-chart--list .song-card-tile-info {
    padding: 12px 10px 0;
  }

  .song-chart--home.song-chart--list .song-card--tile .song-title {
    font-size: 1.25rem;
  }

  .song-chart--home.song-chart--list .song-card--tile .song-artist {
    font-size: 1rem;
    margin-bottom: 0;
  }

  .song-chart--home.song-chart--list .song-card--tile .song-card-ratings {
    gap: 6px;
    padding: 0.75rem 10px;
  }



  .song-card-tile-image {
    max-width: 280px;
    border-radius: 12px;
    flex: 1;
  }

  .song-card-row-image .song-card-artwork {
    width: 72px;
    height: 72px;
  }

  .song-card-row-play__circle {
    width: 40px;
    height: 40px;
  }

  .song-card-row-play__icon {
    width: 16px;
    height: 16px;
    margin-left: 2px;
  }

  .song-card--row .song-card-rank-box {
    width: 40px;
    min-height: 72px;
    font-size: 1rem;
  }

  .song-card-capsule {
    padding: 12px 16px;
  }

  .song-card-rank-box {
    width: 40px;
    min-height: 72px;
  }

  .browse-filter-group__label {
    font-size: 0.65rem;
  }

  .filter-chip {
    padding: 6px 10px;
    font-size: 0.7rem;
  }

  .filter-chip__stars {
    font-size: 0.7rem;
  }

  .filter-chip__label {
    font-size: 0.65rem;
  }

  .how-it-works {
    padding: 40px 0 56px;
  }

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

  .footer-cta {
    padding: 24px 16px;
  }

  .footer-cta__inner {
    padding: 28px 20px;
  }

  .footer__inner {
    max-width: 100%;
    padding: 0 16px;
  }

  .submit-hero {
    margin-bottom: 0;
  }

  .submit-page__content {
    padding: 32px 0 48px;
  }

  .song-page__hero {
    padding: 48px 0 40px;
  }

  .song-page__content-area {
    padding: 32px 0 48px;
  }

  .about-crossover-grid {
    grid-template-columns: 1fr;
  }

  .about-card {
    padding: 22px 20px;
  }

  .submit-page__container--two-col {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Very narrow: single-column home chart for easier tap and read */
@media (max-width: 640px) {
  .song-chart--home {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 8px;
  }

  .song-card--tile .song-title {
    font-size: 1.25rem;
  }

  .song-card-tile-play__circle {
    width: 52px;
    height: 52px;
  }

  .song-card-tile-play__icon {
    width: 20px;
    height: 20px;
  }
}


.cart-subtotal {
  display: none;
}

.order_review_heading {
  margin-bottom: 1rem;
}

.woocommerce table.shop_table {
  margin-bottom: 0;
}

.woocommerce table.shop_table th {
  padding: 9px 0;
}

.woocommerce table.shop_table {
  border: none;
}

.woocommerce {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

.woocommerce-shipping-fields, .woocommerce-additional-fields {
  display: none;
}

.woocommerce-checkout-payment {
  margin-top: 1rem;
}

.checkout-song-thumb {
  width: 48px;
  height: 48px;
  display: block;
}

.checkout-song-thumb img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.woocommerce-checkout .product-remove {
  text-align: right;
}

.woocommerce-checkout a.remove-from-checkout {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s, transform 0.15s;
}

.woocommerce-checkout a.remove-from-checkout i {
  font-size: 0.95rem;
  line-height: 1;
}

.woocommerce-checkout a.remove-from-checkout:hover {
  color: #fff;
  border-color: #d33;
  background: #d33;
  transform: translateY(-1px);
}

.woocommerce table.shop_table td {
  padding: 8px;
}

.woocommerce table.shop_table td.product-name {
  padding-left: 0;
}

.woocommerce-privacy-policy-text {
  margin-bottom: 1rem;
}

.variation-SongTitle p, .variation-Artist p, .variation-SongLink p {
  font-weight: bold;
}

.woocommerce-checkout-review-order {
  margin-top: 1rem;
}

.woocommerce td.product-name dl.variation dt {
  margin-top: 4px;
}


.woocommerce table.shop_table td.product-name {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.woocommerce td.product-name .wc-item-meta, .woocommerce td.product-name dl.variation {
  flex-basis: 100%;
}

.woocommerce table.shop_table td.product-name p, .woocommerce table.shop_table td.product-name a {
  font-size: 16px;
  font-weight: 800;
}

.woocommerce-thankyou-order-received {
  margin-bottom: 2rem;
}

.woocommerce ul.order_details {
  margin: 0 0 1em;
}

.woocommerce ul.order_details li {
  line-height: 1.5;
}

.nf-form-fields-required {
  margin-bottom: 1rem;
}

.field-wrap input[type=submit] {
  background: var(--pink);
  color: var(--on-accent);
  font-weight: 800;
  font-size: 1.25rem;
}

.field-wrap input[type=submit]:hover {
  background: var(--pink-hover);
}

.woocommerce-error, .woocommerce-info, .woocommerce-message {
  margin: 0;
  background: var(--bg-soft);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 16px;
}

.nf-form-hp {
  display: none;
}

.nf-field {
  margin-top: 1rem;
}

.nf-field-label {
  margin-bottom: 8px;
}