:root {
  --color-ink: #070504;
  --color-page: #0d0907;
  --color-panel: #16110e;
  --color-panel-light: #211811;
  --color-border: #6f431f;
  --color-border-soft: rgba(232, 154, 63, 0.34);
  --color-text: #f4e4c2;
  --color-muted: #cfb990;
  --color-red: #c7351f;
  --color-red-dark: #76190f;
  --color-orange: #d97822;
  --color-gold: #efbe5b;
  --color-green: #83a641;
  --shadow-heavy: 0 22px 60px rgba(0, 0, 0, 0.68);
  --font-display: "Russo One", "Arial Narrow", sans-serif;
  --font-body: "Oswald", "Trebuchet MS", sans-serif;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--color-text);
  font-family: var(--font-body);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.16), transparent 20%, transparent 80%, rgba(0, 0, 0, 0.18)),
    linear-gradient(rgba(9, 6, 4, 0.16), rgba(9, 6, 4, 0.22)),
    url("../../i/bg-texture.webp") center top / 300px repeat;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 28px, 1200px);
  max-width: 1200px;
  margin: 0 auto;
}

.design-frame {
  width: min(100% - 28px, 1024px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background:
    linear-gradient(180deg, rgba(8, 5, 4, 0.2), rgba(8, 5, 4, 0.32)),
    url("../img/ui-nav-bg.webp") center / cover no-repeat;
  border-bottom: 0;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.52);
}

.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  width: 118px;
  pointer-events: none;
  opacity: 0;
}

.site-header::before {
  left: max(10px, calc((100vw - 1024px) / 2 + 8px));
  border-top: 1px solid rgba(239, 190, 91, 0.42);
  border-left: 1px solid rgba(239, 190, 91, 0.38);
  background:
    radial-gradient(circle at 0 0, transparent 0 19px, rgba(239, 190, 91, 0.48) 20px 21px, transparent 22px),
    linear-gradient(135deg, rgba(239, 190, 91, 0.2), transparent 42%);
}

.site-header::after {
  right: max(10px, calc((100vw - 1024px) / 2 + 8px));
  border-top: 1px solid rgba(239, 190, 91, 0.42);
  border-right: 1px solid rgba(239, 190, 91, 0.38);
  background:
    radial-gradient(circle at 100% 0, transparent 0 19px, rgba(239, 190, 91, 0.48) 20px 21px, transparent 22px),
    linear-gradient(225deg, rgba(239, 190, 91, 0.2), transparent 42%);
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  min-height: 84px;
  padding: 6px 0;
  position: relative;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(22px, 5vw, 58px);
}

.nav-links:first-child {
  justify-content: flex-start;
  padding-left: clamp(8px, 5vw, 58px);
}

.nav-links:last-child {
  justify-content: flex-end;
  padding-right: clamp(8px, 5vw, 58px);
}

.nav-link {
  position: relative;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: clamp(13px, 1.6vw, 17px);
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #000;
  transition: color 160ms ease, transform 160ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 3px;
  background: var(--color-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  color: var(--color-gold);
  transform: translateY(-1px);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-brand {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(170px, 23vw, 246px);
  height: 72px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.nav-brand::before,
.nav-brand::after {
  display: none;
}

.nav-brand::before {
  border-top: 1px solid rgba(239, 190, 91, 0.28);
  border-bottom: 1px solid rgba(239, 190, 91, 0.22);
}

.nav-brand::after {
  background: none;
}

.logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 5px 0 #000) drop-shadow(0 0 14px rgba(189, 43, 24, 0.7));
}

.home-hero {
  height: clamp(300px, 34vw, 430px);
  padding: 0;
  overflow: hidden;
}

.hero-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 0;
  box-shadow: none;
}

.section {
  padding: clamp(24px, 4vw, 42px) 0;
}

.section-title {
  margin: 0 0 22px;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 400;
  line-height: 1;
  text-align: center;
  text-shadow: 4px 4px 0 #000, 0 0 22px rgba(184, 45, 25, 0.48);
}

.track-section {
  background:
    radial-gradient(circle at 50% 0, rgba(194, 48, 27, 0.16), transparent 38%),
    rgba(8, 6, 5, 0.54);
}

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

.song-card {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 230px;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.18)),
    url("../img/ui-panel-bg.webp") center / 100% 100% no-repeat;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.46);
  transition: transform 170ms ease, border-color 170ms ease, filter 170ms ease;
}

.song-card::before,
.song-card::after,
.cover-frame::before,
.cover-frame::after,
.panel::before,
.player-panel::before,
.song-intro-card::before,
.contact-form::before {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  border-radius: calc(var(--radius) - 2px);
  background: none;
  box-shadow: none;
  z-index: 2;
}

.song-card::after {
  inset: 0;
  border: 1px solid rgba(0, 0, 0, 0.74);
  background: none;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.66);
  z-index: 1;
}

.song-card > * {
  position: relative;
  z-index: 3;
}

.song-card:hover,
.song-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(239, 190, 91, 0.86);
  filter: none;
}

.song-card img {
  width: 100%;
  aspect-ratio: 1.52;
  object-fit: cover;
  display: block;
  transform: translateZ(0);
}

.song-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
}

.song-card-title {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.05;
}

.play-badge {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border: 2px solid var(--color-gold);
  border-radius: 50%;
  color: var(--color-gold);
  background: rgba(0, 0, 0, 0.3);
}

.play-badge::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid currentColor;
}

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

.panel {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(4, 3, 2, 0.06), rgba(4, 3, 2, 0.18)),
    url("../img/ui-panel-bg.webp") center / 100% 100% no-repeat;
  box-shadow: inset 0 0 0 1px #000, 0 18px 34px rgba(0, 0, 0, 0.42);
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(239, 190, 91, 0.16) 1px, transparent 1px);
  background-size: 8px 8px;
  opacity: 0.06;
  pointer-events: none;
}

.panel::before {
  z-index: 1;
}

.panel > * {
  position: relative;
  z-index: 3;
}

.panel-title {
  margin: 0 0 12px;
  color: var(--color-red);
  font-family: var(--font-display);
  font-size: clamp(24px, 3.8vw, 38px);
  font-weight: 400;
  line-height: 1.05;
  text-shadow: 2px 2px 0 #000;
}

.panel-text,
.lyrics p {
  margin: 0;
  color: var(--color-text);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.45;
}

.contact-form {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.18)),
    url("../img/ui-panel-bg.webp") center / 100% 100% no-repeat;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42);
}

.contact-form > * {
  position: relative;
  z-index: 3;
}

.contact-form textarea,
.contact-form .form-wide {
  grid-column: 1 / -1;
}

.field {
  width: 100%;
  min-height: 45px;
  padding: 12px 14px;
  border: 1px solid rgba(239, 190, 91, 0.32);
  border-radius: 5px;
  color: var(--color-text);
  background: rgba(0, 0, 0, 0.34);
  outline: none;
}

.field:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(239, 190, 91, 0.14);
}

textarea.field {
  min-height: 108px;
  resize: vertical;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid rgba(239, 190, 91, 0.48);
  border-radius: 7px;
  color: var(--color-text);
  background:
    linear-gradient(180deg, rgba(255, 130, 60, 0.18), rgba(80, 8, 4, 0.28)),
    url("../img/ui-button-bg.webp") center / cover no-repeat;
  box-shadow: 0 5px 0 #2d0805, 0 16px 26px rgba(0, 0, 0, 0.42);
  font-family: var(--font-display);
  text-transform: uppercase;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  filter: saturate(1.12) brightness(1.08);
  transform: translateY(-1px);
}

.form-note {
  margin: 0;
  align-self: center;
  color: var(--color-orange);
  font-style: italic;
}

.song-top {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 28px;
  align-items: stretch;
  margin-top: 28px;
}

.cover-frame {
  position: relative;
  padding: 9px;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.2)),
    url("../img/ui-panel-bg.webp") center / 100% 100% no-repeat;
  box-shadow: var(--shadow-heavy);
}

.cover-frame img {
  position: relative;
  z-index: 3;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
}

.song-intro-card {
  position: relative;
  min-height: 100%;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(10, 7, 5, 0.96), rgba(20, 13, 8, 0.82)),
    var(--intro-bg) center / cover no-repeat,
    url("../img/ui-panel-bg.webp") center / 100% 100% no-repeat;
  box-shadow: var(--shadow-heavy);
}

.song-intro-card::before {
  z-index: 1;
}

.song-intro-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 35% 42%, rgba(194, 48, 27, 0.18), transparent 38%),
    linear-gradient(135deg, transparent, rgba(239, 190, 91, 0.12));
  pointer-events: none;
}

.song-intro-card > * {
  position: relative;
  z-index: 3;
}

.song-title-text {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: clamp(34px, 5.8vw, 66px);
  font-weight: 400;
  line-height: 1;
  text-shadow: 4px 4px 0 #000;
}

.song-artist-text {
  margin: 16px 0 24px;
  color: var(--color-red);
  font-family: var(--font-display);
  font-size: clamp(22px, 3.5vw, 38px);
  line-height: 1;
}

.song-file-text {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  color: var(--color-muted);
  font-size: clamp(15px, 2vw, 19px);
}

.player-panel {
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  padding: 34px 34px 26px;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(8, 6, 4, 0.72), rgba(8, 6, 4, 0.86)),
    url("../img/ui-panel-bg.webp") center / 100% 100% no-repeat;
  box-shadow: inset 0 0 0 1px #000, 0 20px 42px rgba(0, 0, 0, 0.5);
}

.player-panel > * {
  position: relative;
  z-index: 3;
}

.equalizer {
  display: flex;
  align-items: end;
  gap: clamp(5px, 0.8vw, 9px);
  height: 112px;
  padding: 14px 18px;
  border: 1px solid rgba(239, 190, 91, 0.22);
  border-radius: 6px;
  background:
    linear-gradient(rgba(239, 190, 91, 0.08) 1px, transparent 1px),
    rgba(0, 0, 0, 0.38);
  background-size: 100% 22px;
}

.equalizer span {
  flex: 1;
  min-width: 5px;
  height: calc(20% + var(--bar) * 1%);
  border-radius: 999px 999px 2px 2px;
  background: linear-gradient(180deg, var(--color-green), var(--color-gold) 46%, var(--color-orange) 70%, var(--color-red));
  transform-origin: bottom;
  opacity: 0.94;
}

.song-player.is-playing .equalizer span {
  animation: equalizer-jump 680ms ease-in-out infinite;
  animation-delay: calc(var(--i) * -58ms);
}

@keyframes equalizer-jump {
  0%,
  100% {
    transform: scaleY(0.46);
  }
  46% {
    transform: scaleY(1.04);
  }
  72% {
    transform: scaleY(0.68);
  }
}

.player-controls {
  display: grid;
  grid-template-columns: auto auto minmax(160px, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.round-button {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(239, 190, 91, 0.55);
  border-radius: 50%;
  color: var(--color-text);
  background:
    radial-gradient(circle, rgba(255, 154, 76, 0.22) 0 36%, rgba(88, 9, 5, 0.36) 48% 100%),
    url("../img/ui-button-bg.webp") center / cover no-repeat;
  box-shadow: inset 0 0 0 5px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.time {
  min-width: 118px;
  color: var(--color-muted);
  font-size: clamp(17px, 2vw, 20px);
}

.progress {
  position: relative;
  height: 12px;
  border: 1px solid rgba(239, 190, 91, 0.25);
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.52);
  cursor: pointer;
}

.progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color-red), var(--color-orange), var(--color-gold));
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-gold);
}

.volume-control input {
  width: 92px;
  accent-color: var(--color-gold);
}

.song-content {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(270px, 0.82fr);
  align-items: stretch;
  gap: 20px;
}

.lyrics h2,
.side-card h2 {
  margin: 0 0 16px;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 400;
  line-height: 1;
  text-shadow: 3px 3px 0 #000;
}

.lyrics h3 {
  margin: 22px 0 7px;
  color: var(--color-red);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 400;
}

.lyrics {
  height: 100%;
  max-height: clamp(660px, 78vh, 860px);
  padding: clamp(30px, 4vw, 46px) clamp(30px, 4vw, 46px) clamp(68px, 7vw, 92px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(239, 190, 91, 0.48) rgba(0, 0, 0, 0.14);
}

.lyrics::-webkit-scrollbar {
  width: 8px;
}

.lyrics::-webkit-scrollbar-track {
  margin: 18px 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.14);
}

.lyrics::-webkit-scrollbar-thumb {
  border: 2px solid rgba(0, 0, 0, 0.28);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(239, 190, 91, 0.75), rgba(177, 43, 25, 0.62));
}

.side-stack {
  display: grid;
  gap: 18px;
}

.side-card img {
  width: 100%;
  border: 1px solid var(--color-border-soft);
  border-radius: 5px;
}

.release-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.release-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(239, 190, 91, 0.14);
  color: var(--color-muted);
  font-size: 18px;
}

.release-row dd,
.release-row dt {
  margin: 0;
}

.release-row strong {
  color: var(--color-text);
}

.site-footer {
  margin-top: 28px;
  padding: 24px 0;
  border-top: 1px solid var(--color-border-soft);
  background:
    linear-gradient(180deg, rgba(7, 5, 4, 0.12), rgba(7, 5, 4, 0.28)),
    url("../img/ui-footer-bg.webp") center / cover no-repeat;
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
}

.footer-logo {
  width: 148px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 5px 0 #000) drop-shadow(0 0 14px rgba(195, 48, 29, 0.42));
}

.footer-links,
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
}

.footer-links a,
.social-links a,
.copyright {
  color: var(--color-muted);
}

.copyright {
  margin: 8px 0 0;
}

.social-link {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--color-border-soft);
  border-radius: 50%;
  color: var(--color-gold);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 820px) {
  .nav {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 0;
  }

  .nav-brand {
    order: -1;
    width: min(300px, 86vw);
  }

  .nav-links,
  .nav-links:first-child,
  .nav-links:last-child {
    justify-content: center;
    padding: 0;
  }

  .song-grid,
  .info-grid,
  .song-top,
  .song-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .lyrics {
    height: auto;
    max-height: clamp(520px, 72vh, 760px);
  }

  .footer-grid {
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 620px) {
  .container,
  .design-frame {
    width: min(100% - 18px, 1200px);
  }

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

  .song-top {
    gap: 16px;
    margin-top: 14px;
  }

  .player-panel {
    padding: 18px 14px;
  }

  .equalizer {
    height: 90px;
    gap: 3px;
    padding: 10px;
  }

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

  .progress,
  .volume-control {
    grid-column: 1 / -1;
  }
}
