:root {
  --ink: #111827;
  --muted: #5b6472;
  --line: #d8e0e7;
  --ice: #edf7fb;
  --snow: #f8fbfd;
  --teal: #007f8f;
  --teal-dark: #075c68;
  --coral: #e9574f;
  --gold: #e0a526;
  --violet: #6d5bd0;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(20, 38, 56, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--snow);
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
  background:
    linear-gradient(rgba(6, 21, 33, 0.48), rgba(6, 21, 33, 0.18)),
    var(--hero-image, url("https://images.unsplash.com/photo-1493225457124-a3eb161ffa5f?auto=format&fit=crop&w=2400&q=85")) center / cover fixed;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: rgba(6, 21, 33, 0.76);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-size: 1.3rem;
  font-weight: 850;
  text-decoration: none;
}

.mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 8px;
  background: #edf7fb;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  font-weight: 700;
}

.links a {
  text-decoration: none;
}

.links a[aria-current="page"] {
  color: #9ee5ec;
}

.nav-actions,
.hero-buttons,
.inline-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: var(--white);
  background: var(--coral);
  box-shadow: 0 12px 30px rgba(233, 87, 79, 0.28);
}

.btn-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.26);
}

.btn-light {
  color: var(--teal-dark);
  background: var(--white);
  border-color: rgba(0, 127, 143, 0.18);
  box-shadow: 0 10px 22px rgba(33, 57, 77, 0.1);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 470px);
  align-items: end;
  gap: clamp(28px, 5vw, 64px);
  min-height: calc(100vh - 78px);
  padding: clamp(42px, 6vw, 86px) clamp(18px, 4vw, 56px) 72px;
  color: var(--white);
}

.page-hero {
  min-height: 440px;
}

.hero-copy {
  max-width: 800px;
  padding-bottom: 18px;
}

.kicker,
.small-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.kicker {
  margin-bottom: 18px;
  color: #d6fbff;
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8ff4ff;
  box-shadow: 0 0 0 6px rgba(143, 244, 255, 0.16);
}

h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(3rem, 8vw, 7.4rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.page-hero h1 {
  font-size: clamp(3rem, 7vw, 6rem);
}

.hero p {
  max-width: 670px;
  margin: 24px 0 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.04rem, 1.7vw, 1.28rem);
  line-height: 1.65;
}

.panel,
.post,
.artist-card,
.album-card,
.event-card,
.venue-card,
.comment-panel {
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(28, 49, 68, 0.08);
}

.now-playing {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow);
}

.panel img,
.post img,
.album-card > img,
.venue-card > img,
.now-playing img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
}

.panel-body,
.post-body,
.album-body,
.event-body,
.venue-body,
.player-body {
  padding: 18px;
}

.player-body {
  color: var(--ink);
}

.player-body h2,
.panel h2,
.post h3,
.artist-info h3,
.album-body h3,
.event-body h3,
.venue-body h3 {
  margin: 7px 0 6px;
  line-height: 1.15;
}

.player-body p,
.panel p,
.post p,
.artist-info p,
.album-body p,
.event-body p,
.venue-body p,
.comment-list p {
  margin: 0 0 15px;
  color: var(--muted);
  line-height: 1.48;
}

.wave {
  display: grid;
  grid-template-columns: repeat(28, 1fr);
  align-items: end;
  height: 52px;
  gap: 4px;
  margin: 18px 0;
}

.wave span {
  display: block;
  min-height: 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, #00a5b8, #6d5bd0);
  animation: bounce 1.8s ease-in-out infinite;
}

.wave span:nth-child(3n) {
  animation-delay: 140ms;
}

.wave span:nth-child(4n) {
  animation-delay: 260ms;
}

.wave span:nth-child(5n) {
  animation-delay: 390ms;
}

@keyframes bounce {
  0%, 100% { transform: scaleY(0.52); opacity: 0.72; }
  50% { transform: scaleY(1); opacity: 1; }
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  border-radius: 8px;
  color: var(--ink);
  background: #eef6f8;
  border: 1px solid #d7e8ec;
  font-size: 0.9rem;
  font-weight: 800;
}

.icon-btn.liked {
  color: var(--coral);
  background: #fff0ef;
  border-color: #ffd0cc;
}

main {
  background: var(--snow);
}

section {
  padding: clamp(48px, 6vw, 84px) clamp(18px, 4vw, 56px);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto 24px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-head p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto 24px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab {
  min-height: 38px;
  padding: 0 14px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
}

.tab.active {
  color: var(--white);
  background: var(--teal);
  border-color: var(--teal);
}

.search {
  min-height: 42px;
  width: min(100%, 330px);
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
}

.grid,
.feed,
.artist-grid,
.album-grid,
.event-grid,
.venue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

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

.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.profile strong,
.profile span,
.pick strong,
.pick span,
.stat strong,
.stat span {
  display: block;
}

.profile span,
.pick span,
.stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

.actions-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.dark-band {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(5, 36, 45, 0.92), rgba(21, 48, 80, 0.72)),
    url("https://images.unsplash.com/photo-1501386761578-eac5c94b800a?auto=format&fit=crop&w=2200&q=85") center / cover;
}

.dark-band .section-head p,
.dark-band .meta,
.dark-band .event-card p {
  color: rgba(255, 255, 255, 0.76);
}

.dark-band .event-card {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.date {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font-weight: 900;
  line-height: 1.05;
  flex: 0 0 auto;
}

.date span {
  display: block;
  color: var(--coral);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.event-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  margin-top: 8px;
  border-top: 1px solid rgba(17, 24, 39, 0.1);
}

.dark-band .event-row {
  border-top-color: rgba(255, 255, 255, 0.22);
}

.artist-card {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  color: var(--white);
}

.artist-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 34%, rgba(0, 0, 0, 0.82));
}

.artist-info {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 16px;
}

.artist-info p {
  color: rgba(255, 255, 255, 0.84);
}

.track-list {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.daily-rankings {
  background:
    linear-gradient(180deg, rgba(237, 247, 251, 0.94), rgba(248, 251, 253, 1)),
    url("https://images.unsplash.com/photo-1516280440614-37939bbacd81?auto=format&fit=crop&w=2200&q=80") center / cover;
}

.rankings-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.ranking-card {
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(28, 49, 68, 0.08);
}

.ranking-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.ranking-card-head h3 {
  margin: 4px 0 0;
  font-size: 1.18rem;
}

.ranking-card-head a {
  color: var(--teal-dark);
  font-size: 0.84rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.rank-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rank;
}

.rank-list li {
  counter-increment: rank;
}

.rank-list a {
  display: grid;
  grid-template-columns: 30px 1fr;
  grid-template-areas:
    "number title"
    "number meta";
  column-gap: 10px;
  min-height: 52px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--ink);
  background: #f4fafc;
  border: 1px solid transparent;
  text-decoration: none;
}

.rank-list a:hover {
  border-color: #bfe6ed;
  background: var(--ice);
}

.rank-list a::before {
  content: counter(rank);
  grid-area: number;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: var(--white);
  background: var(--teal);
  font-size: 0.86rem;
  font-weight: 900;
}

.rank-list span {
  grid-area: title;
  align-self: end;
  overflow: hidden;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-list small {
  grid-area: meta;
  align-self: start;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  background: var(--ice);
  border: 1px solid #cfedf2;
}

.track button {
  width: 34px;
  height: 34px;
  padding: 0;
}

.track-title {
  font-weight: 850;
}

.track-meta {
  color: var(--muted);
  font-size: 0.86rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.stat {
  padding: 12px;
  border-radius: 8px;
  background: var(--ice);
  border: 1px solid #cfedf2;
}

.pick-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.pick {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 10px;
  border-radius: 8px;
  background: var(--ice);
  border: 1px solid #cfedf2;
}

.pick img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
}

.comment-panel {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px;
}

.comment-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 14px;
}

.comment-form textarea {
  min-height: 48px;
  resize: vertical;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.comment-list {
  display: grid;
  gap: 10px;
}

.comment {
  padding: 12px;
  border-radius: 8px;
  background: var(--ice);
  border: 1px solid #cfedf2;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.profile-card {
  padding: 22px;
}

.profile-card h2,
.history-card h3,
.signup-card h2 {
  margin: 8px 0 10px;
}

.profile-email {
  margin: 18px 0 4px;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1;
  font-weight: 900;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.profile-tabs-panel {
  padding: 18px;
}

.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.profile-tab-panel {
  display: block;
}

.profile-tab-panel[hidden] {
  display: none;
}

.compact-head {
  align-items: start;
  margin: 0 0 16px;
  padding: 0;
}

.compact-head h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.history-card {
  padding: 18px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.history-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.history-item,
.empty-state {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-radius: 8px;
  background: var(--ice);
  border: 1px solid #cfedf2;
  text-decoration: none;
}

.history-item span,
.empty-state {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.subscription-grid,
.friend-grid {
  display: grid;
  gap: 12px;
}

.store-grid,
.exclusive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.store-plan {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(28, 49, 68, 0.08);
}

.featured-plan {
  border-color: rgba(233, 87, 79, 0.45);
  box-shadow: 0 22px 42px rgba(233, 87, 79, 0.16);
}

.store-plan h3 {
  margin: 8px 0 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.store-plan p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
}

.price {
  margin: 4px 0 12px;
  color: var(--teal-dark);
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 950;
  line-height: 1;
}

.price span {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 24px;
  color: var(--ink);
  line-height: 1.4;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 127, 143, 0.12);
}

.store-plan .btn {
  margin-top: auto;
}

.store-feature img {
  aspect-ratio: 4 / 3;
}

.subscription-card,
.friend-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 8px;
  background: var(--ice);
  border: 1px solid #cfedf2;
}

.subscription-card strong,
.subscription-card span,
.friend-card strong,
.friend-card span {
  display: block;
}

.subscription-card span,
.friend-card span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.subscription-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: #dff5f8;
  font-size: 0.8rem;
  font-weight: 850;
}

.subscription-status.inactive {
  color: var(--muted);
  background: #edf1f4;
}

.friend-card {
  grid-template-columns: 44px 1fr auto;
}

.signup-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(7, 25, 35, 0.62);
}

.signup-modal.show {
  display: grid;
}

.signup-card {
  position: relative;
  width: min(100%, 460px);
  padding: 24px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.signup-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.55;
}

.signup-form {
  display: grid;
  gap: 10px;
}

.signup-form input {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--snow);
  font-size: 1.3rem;
  line-height: 1;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 30;
  transform: translate(-50%, 14px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 16px;
  color: var(--white);
  background: #071923;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 56px);
  color: #dcebf0;
  background: #071923;
}

.footer a {
  text-decoration: none;
  font-weight: 750;
}

@media (max-width: 980px) {
  .links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .grid,
  .feed,
  .artist-grid,
  .album-grid,
  .event-grid,
  .venue-grid,
  .rankings-grid,
  .store-grid,
  .exclusive-grid,
  .profile-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nav {
    align-items: flex-start;
  }

  .nav-actions {
    justify-content: flex-end;
  }

  h1 {
    font-size: 3.25rem;
  }

  .section-head,
  .footer,
  .toolbar {
    display: grid;
  }

  .grid,
  .feed,
  .artist-grid,
  .album-grid,
  .event-grid,
  .venue-grid,
  .rankings-grid,
  .store-grid,
  .exclusive-grid,
  .actions-3,
  .stats,
  .comment-form,
  .profile-layout,
  .history-grid,
  .subscription-card,
  .friend-card {
    grid-template-columns: 1fr;
  }

  .pick {
    grid-template-columns: 54px 1fr;
  }

  .pick .btn {
    grid-column: 1 / -1;
  }
}
