:root {
  color-scheme: dark;
  --bg: #101010;
  --panel: #1a1a1a;
  --panel-soft: rgba(26, 26, 26, 0.74);
  --text: #f2ece0;
  --muted: #c7bda9;
  --line: rgba(242, 236, 224, 0.18);
  --accent: #c9a14a;
  --accent-strong: #f1ce73;
  --danger: #7d181b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.hero {
  position: relative;
  min-height: min(72vh, 780px);
  display: grid;
  overflow: hidden;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero::after {
  background: linear-gradient(180deg, rgba(16, 16, 16, 0) 0%, rgba(16, 16, 16, 0.06) 68%, var(--bg) 100%);
}

.hero__image {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
  display: block;
}

.topbar {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar--minimal {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  justify-content: flex-end;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 2vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
}

.language-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(16px);
}

.language-switch__button {
  width: 44px;
  height: 36px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.language-switch__button.is-active,
.language-switch__button:hover {
  color: #17120a;
  background: var(--accent-strong);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 7.4rem);
  line-height: 0.9;
}

.hero__copy {
  max-width: 600px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.55;
}

.hero__action {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(241, 206, 115, 0.58);
  background: rgba(201, 161, 74, 0.16);
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.library {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 74px;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 58px;
}

.section-heading h2 {
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.fan-copy {
  color: var(--muted);
  line-height: 1.65;
}

.fan-copy p {
  margin-bottom: 14px;
}

.fan-copy__closing {
  color: var(--accent-strong);
  font-weight: 900;
}

.song-heading {
  max-width: 720px;
  margin-bottom: 26px;
  padding-top: 12px;
}

.song-heading h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.5vw, 2.35rem);
  line-height: 1.1;
}

.song-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.song-card {
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
}

.song-card:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 4px;
}

.song-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.song-card__body {
  min-height: 118px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.96), rgba(12, 12, 12, 0.98));
}

.song-card__title {
  margin: 0;
  color: var(--text);
  font-size: 1.06rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.song-card__status {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.song-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.song-card__like {
  min-width: 58px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(242, 236, 224, 0.2);
  background: rgba(0, 0, 0, 0.28);
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.song-card__like svg {
  width: 19px;
  height: 19px;
}

.song-card__like.is-liked {
  border-color: rgba(241, 206, 115, 0.58);
  background: rgba(201, 161, 74, 0.18);
  color: var(--accent-strong);
}

.song-card__download {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(241, 206, 115, 0.52);
  background: rgba(0, 0, 0, 0.64);
  color: var(--accent-strong);
  text-decoration: none;
}

.song-card__download:hover,
.song-card__download:focus-visible {
  background: var(--accent-strong);
  color: #17120a;
  outline: none;
}

.song-card__download svg {
  width: 21px;
  height: 21px;
}

.song-card.is-playing {
  border-color: rgba(241, 206, 115, 0.82);
}

.song-card.is-playing .song-card__body {
  background: linear-gradient(180deg, rgba(43, 35, 18, 0.98), rgba(16, 12, 8, 0.98));
}

.player-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 5;
  width: min(720px, calc(100% - 32px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.player-bar[hidden] {
  display: none;
}

.player-bar__title {
  margin: 0 0 6px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.player-bar audio {
  width: 100%;
  min-width: 0;
}

.player-bar__close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.24);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 108px;
  color: var(--muted);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
}

.footer__links a,
.legal-nav a,
.legal-content a {
  color: var(--accent-strong);
  text-decoration: none;
}

.footer__links a:hover,
.legal-nav a:hover,
.legal-content a:hover {
  text-decoration: underline;
}

.legal-page {
  min-height: 100vh;
}

.legal-header {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 24px;
}

.legal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.legal-content {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 96px;
  color: var(--muted);
  line-height: 1.65;
}

.legal-content h1,
.legal-content h2 {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
}

.legal-content h1 {
  margin-bottom: 28px;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1;
}

.legal-content h2 {
  margin: 34px 0 12px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.legal-box {
  padding: 18px;
  border: 1px solid rgba(241, 206, 115, 0.32);
  background: rgba(201, 161, 74, 0.1);
  color: var(--text);
}

.legal-address {
  white-space: pre-line;
}

.legal-list {
  padding-left: 20px;
}

.admin-form {
  margin: 28px 0 14px;
}

.admin-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 900;
}

.admin-form__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.admin-form input {
  min-height: 44px;
  border: 1px solid rgba(242, 236, 224, 0.18);
  background: rgba(0, 0, 0, 0.34);
  color: var(--text);
  font: inherit;
  padding: 0 12px;
}

.admin-form button {
  min-height: 44px;
  border: 1px solid rgba(241, 206, 115, 0.52);
  background: rgba(201, 161, 74, 0.16);
  color: var(--accent-strong);
  cursor: pointer;
  font-weight: 900;
  padding: 0 18px;
}

.admin-status,
.admin-summary {
  color: var(--muted);
  font-weight: 800;
}

.admin-table-wrap {
  overflow-x: auto;
  margin-top: 22px;
  border: 1px solid var(--line);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.admin-table th,
.admin-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.admin-table th {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.admin-table td:not(:first-child),
.admin-table th:not(:first-child) {
  text-align: right;
}

@media (max-width: 720px) {
  .hero {
    min-height: 0;
    aspect-ratio: 1672 / 941;
  }

  .topbar {
    width: calc(100% - 24px);
  }

  .hero__image img {
    object-fit: contain;
    object-position: center top;
    background: #050505;
  }

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

  .song-card {
    min-height: 0;
  }

  .player-bar {
    grid-template-columns: 1fr;
  }

  .player-bar__close {
    position: absolute;
    top: 10px;
    right: 10px;
  }

  .player-bar__title {
    padding-right: 44px;
  }

  .admin-form__row {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 721px) and (max-width: 1020px) {
  .song-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
