:root {
  color-scheme: dark;
  --void: #050507;
  --panel: rgba(8, 14, 20, 0.78);
  --panel-solid: #0a1118;
  --line: rgba(107, 247, 255, 0.24);
  --cyan: #52f5ff;
  --cyan-deep: #1098b8;
  --amber: #ffb02e;
  --hot: #ff3f7f;
  --acid: #a7ff4c;
  --text: #f4fbff;
  --muted: #a9bbc6;
  --shadow-cyan: 0 0 28px rgba(82, 245, 255, 0.38);
  --shadow-amber: 0 0 24px rgba(255, 176, 46, 0.34);
  --metal-button-bg:
    linear-gradient(120deg, rgba(92, 113, 126, 0.72) 0%, rgba(24, 32, 40, 0.96) 15%, rgba(5, 8, 12, 0.98) 30%, rgba(74, 94, 107, 0.62) 46%, rgba(10, 15, 21, 0.98) 62%, rgba(104, 129, 142, 0.54) 78%, rgba(4, 7, 11, 0.98) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, rgba(0, 0, 0, 0.28) 1px 3px),
    linear-gradient(90deg, rgba(12, 24, 32, 0.95), rgba(4, 8, 13, 0.98));
  --metal-button-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -1px 0 rgba(0, 0, 0, 0.72),
    inset 0 0 22px rgba(82, 245, 255, 0.14),
    0 0 18px rgba(82, 245, 255, 0.24),
    0 10px 24px rgba(0, 0, 0, 0.36);
  --glow-text:
    0 0 5px rgba(82, 245, 255, 1),
    0 0 13px rgba(82, 245, 255, 0.86),
    0 0 26px rgba(16, 152, 184, 0.72);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  width: 100%;
  max-width: 100%;
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: #050507 url("assets/page-background.png") center center / cover fixed no-repeat;
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.18) 46%, rgba(0, 0, 0, 0.62)),
    rgba(0, 0, 0, 0.22);
}

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

button,
input,
textarea {
  font: inherit;
}

img,
audio,
canvas,
svg {
  max-width: 100%;
}

body.modal-open {
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  min-height: 72px;
  padding: 0.75rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid rgba(82, 245, 255, 0.18);
  background: rgba(3, 5, 8, 0.82);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  font-weight: 800;
  text-transform: uppercase;
}

.brand-mark img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(82, 245, 255, 0.65));
}

.brand-mark span,
.site-footer span:first-child {
  background: linear-gradient(90deg, var(--cyan), #ffffff 48%, var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  min-width: 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  padding: 0.35rem 0;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  display: grid;
  width: 100%;
  max-width: 100%;
  min-height: calc(92svh - 72px);
  padding: clamp(3rem, 10vw, 7rem) clamp(1rem, 6vw, 6rem) clamp(2rem, 7vw, 4rem);
  overflow: hidden;
  isolation: isolate;
}

.hero-image {
  display: none;
  position: absolute;
  inset: 0;
  z-index: -4;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.08) brightness(0.74);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  content: "";
  background: transparent;
}

.scanline {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.045) 0,
    rgba(255, 255, 255, 0.045) 1px,
    transparent 1px,
    transparent 6px
  );
  mix-blend-mode: overlay;
}

.hero-grid {
  position: absolute;
  right: -12vw;
  bottom: -22vh;
  z-index: -1;
  width: 72vw;
  height: 46vh;
  border-top: 1px solid rgba(82, 245, 255, 0.36);
  background-image:
    linear-gradient(rgba(82, 245, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 176, 46, 0.18) 1px, transparent 1px);
  background-size: 44px 34px;
  transform: perspective(520px) rotateX(62deg) skewX(-14deg);
  transform-origin: bottom;
}

.hero-content {
  align-self: center;
  justify-self: center;
  width: min(100%, 1080px);
  min-width: 0;
  max-width: 1080px;
  padding-top: 2rem;
  text-align: center;
}

.signal-label,
.status-kicker {
  display: block;
  margin: 0 0 0.75rem;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 100%;
  margin: 0;
  font-size: clamp(3.25rem, 8vw, 7rem);
  line-height: 0.9;
  color: rgba(255, 255, 255, 0.86);
  filter: drop-shadow(0 0 5px rgba(82, 245, 255, 0.45));
  overflow-wrap: anywhere;
  text-transform: uppercase;
  text-shadow:
    0 0 8px rgba(82, 245, 255, 0.7),
    0 0 18px rgba(82, 245, 255, 0.38),
    3px 0 0 rgba(255, 63, 127, 0.2),
    -3px 0 0 rgba(255, 176, 46, 0.16);
}

.hero-copy {
  min-width: 0;
  max-width: 560px;
  margin: 1.25rem 0 0;
  color: #d9e8ee;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-width: 0;
  margin-top: 2rem;
  opacity: 0.86;
}

.visitor-counter {
  display: inline-grid;
  grid-template-columns: 0.8rem auto auto;
  align-items: center;
  gap: 0.7rem;
  width: fit-content;
  margin-top: 1.1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(82, 245, 255, 0.28);
  border-radius: 7px;
  background:
    linear-gradient(90deg, rgba(255, 63, 127, 0.16), rgba(82, 245, 255, 0.12), rgba(167, 255, 76, 0.14)),
    rgba(3, 9, 13, 0.7);
  box-shadow: inset 0 0 18px rgba(82, 245, 255, 0.1), 0 0 26px rgba(82, 245, 255, 0.14);
  color: var(--muted);
  text-transform: uppercase;
}

.counter-led {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 14px rgba(167, 255, 76, 0.85);
  animation: counterPulse 1.6s ease-in-out infinite;
}

.counter-label {
  font-size: 0.78rem;
  font-weight: 800;
}

.visitor-counter strong {
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1;
  text-shadow: 0 0 12px rgba(82, 245, 255, 0.72);
}

.button,
.play-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 48px;
  padding: 0.85rem 1.05rem;
  border: 1px solid rgba(222, 241, 247, 0.58);
  border-radius: 7px;
  background: var(--metal-button-bg);
  box-shadow: var(--metal-button-shadow);
  color: #bff9ff;
  font-weight: 800;
  overflow-wrap: anywhere;
  text-align: center;
  text-shadow: none;
  text-transform: uppercase;
  cursor: pointer;
}

.button.primary {
  border-color: rgba(222, 241, 247, 0.72);
  background: var(--metal-button-bg);
  box-shadow: var(--metal-button-shadow);
  color: #bff9ff;
}

.button.ghost {
  border-color: rgba(222, 241, 247, 0.58);
  background: var(--metal-button-bg);
  box-shadow: var(--metal-button-shadow);
  color: #bff9ff;
}

.hero-actions .button,
.hero-actions .visitor-counter {
  width: 10.75rem;
  min-height: 52px;
  margin-top: 0;
  padding: 0.75rem 0.85rem;
  border-color: rgba(222, 241, 247, 0.72);
  background: var(--metal-button-bg);
  box-shadow: var(--metal-button-shadow);
  color: #bff9ff;
  font-size: 0.76rem;
  line-height: 1.15;
  text-shadow: none;
  white-space: nowrap;
}

.hero-actions .button {
  flex: 0 1 10.75rem;
}

.hero-actions .visitor-counter {
  grid-template-columns: 0.65rem auto auto;
  justify-content: center;
  flex: 0 1 10.75rem;
  font-weight: 800;
}

.hero-actions .counter-led {
  background: var(--acid);
  box-shadow: 0 0 14px rgba(167, 255, 76, 0.9), 0 0 26px rgba(82, 245, 255, 0.5);
}

.hero-actions .counter-label,
.hero-actions .visitor-counter strong {
  color: #bff9ff;
  text-shadow: none;
}

.button:hover,
.button:focus-visible,
.play-button:hover,
.play-button:focus-visible,
.track-card:hover,
.track-select:focus-visible,
.track-seek:hover,
.track-seek:focus-visible {
  transform: translateY(-2px);
}

.status-panel {
  position: absolute;
  right: clamp(1rem, 6vw, 6rem);
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 220px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.status-panel .visitor-counter {
  margin-top: 0;
}

.status-panel img {
  width: 132px;
  height: 132px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(82, 245, 255, 0.52)) drop-shadow(0 0 22px rgba(255, 176, 46, 0.26));
}

.playlist-section,
.comments-section,
.contact-section {
  width: min(1180px, calc(100% - 2rem));
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  margin-bottom: 1.4rem;
}

.section-heading h2,
.contact-section h2 {
  max-width: 100%;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 0.98;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.player-shell {
  display: grid;
  gap: 1rem;
  min-width: 0;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(82, 245, 255, 0.12), transparent 34%),
    linear-gradient(315deg, rgba(255, 176, 46, 0.12), transparent 30%),
    rgba(8, 14, 20, 0.82);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

.now-playing {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  min-height: 116px;
}

.disc {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border: 1px solid rgba(82, 245, 255, 0.34);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 176, 46, 0.28), transparent 34%),
    rgba(2, 8, 11, 0.76);
  box-shadow: inset 0 0 28px rgba(82, 245, 255, 0.2);
}

.disc img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  animation: pulseLogo 4s ease-in-out infinite;
}

.track-meta h3 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.track-meta p {
  margin: 0.6rem 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.play-button {
  gap: 0.6rem;
  min-width: 126px;
  border-color: rgba(255, 176, 46, 0.5);
  background: rgba(255, 176, 46, 0.12);
}

.play-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.play-icon {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid var(--amber);
}

.play-button.is-playing .play-icon {
  width: 14px;
  height: 16px;
  border: 0;
  background:
    linear-gradient(90deg, var(--amber) 0 35%, transparent 35% 65%, var(--amber) 65% 100%);
}

.visualizer {
  display: grid;
  grid-template-columns: repeat(20, minmax(4px, 1fr));
  align-items: end;
  gap: 0.35rem;
  min-height: 96px;
  padding: 0.8rem 0;
}

.visualizer span {
  display: block;
  height: 26px;
  border-radius: 3px 3px 0 0;
  background:
    linear-gradient(to top, rgba(255, 255, 255, 0.12), transparent 58%),
    hsl(var(--bar-hue, 0deg) 100% 54%);
  box-shadow:
    0 0 14px hsl(var(--bar-hue, 0deg) 100% 54% / 0.38),
    inset 0 0 12px rgba(255, 255, 255, 0.16);
  transform-origin: bottom;
  transition: opacity 80ms linear, box-shadow 80ms linear;
}

.track-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  min-width: 0;
}

.track-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  min-height: 82px;
  padding: 0.9rem;
  border: 1px solid rgba(82, 245, 255, 0.16);
  border-radius: 8px;
  background: rgba(5, 10, 14, 0.72);
  color: var(--text);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.track-select {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.track-card.is-active {
  border-color: rgba(82, 245, 255, 0.66);
  background: rgba(16, 152, 184, 0.2);
  box-shadow: inset 0 0 26px rgba(82, 245, 255, 0.1);
}

.track-number {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 176, 46, 0.36);
  border-radius: 6px;
  color: var(--amber);
  font-weight: 900;
}

.track-card strong,
.track-card small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.track-card small {
  margin-top: 0.25rem;
  color: var(--muted);
}

.track-text {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.track-mini-visualizer {
  display: grid;
  grid-template-columns: repeat(10, minmax(2px, 1fr));
  align-items: end;
  gap: 0.18rem;
  justify-self: center;
  width: min(10rem, 76%);
  height: 1rem;
  margin-top: 0.3rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.track-card.is-active .track-mini-visualizer {
  opacity: 1;
}

.track-mini-visualizer span {
  display: block;
  height: 0.68rem;
  border-radius: 2px 2px 0 0;
  background:
    linear-gradient(to top, rgba(255, 255, 255, 0.14), transparent 56%),
    hsl(var(--bar-hue, 0deg) 100% 54%);
  box-shadow: 0 0 8px hsl(var(--bar-hue, 0deg) 100% 54% / 0.32);
  transform: scaleY(0.2);
  transform-origin: bottom;
}

.track-controls {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
}

.track-seek {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(222, 241, 247, 0.46);
  border-radius: 7px;
  background: var(--metal-button-bg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.62),
    0 0 14px rgba(82, 245, 255, 0.16);
  color: #bff9ff;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.track-seek:hover,
.track-seek:focus-visible {
  border-color: rgba(82, 245, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -1px 0 rgba(0, 0, 0, 0.72),
    0 0 18px rgba(82, 245, 255, 0.32);
}

.playlist-note {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(82, 245, 255, 0.22);
  border-radius: 8px;
  background: rgba(5, 10, 14, 0.72);
  color: var(--muted);
  line-height: 1.55;
}

.comments-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 1rem;
  min-width: 0;
}

.comment-form,
.comment-stream {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.comment-form {
  display: grid;
  gap: 0.8rem;
  align-self: start;
  padding: 1rem;
}

.comment-form label {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid rgba(82, 245, 255, 0.24);
  border-radius: 7px;
  background: rgba(1, 5, 8, 0.78);
  color: var(--text);
  outline: none;
}

.comment-form input {
  min-height: 48px;
  padding: 0 0.85rem;
}

.comment-form textarea {
  min-height: 150px;
  resize: vertical;
  padding: 0.85rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(82, 245, 255, 0.12);
}

.comment-stream {
  display: grid;
  gap: 0.8rem;
  min-height: 330px;
  padding: 1rem;
}

.comment-card {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
  padding: 0.95rem;
  border: 1px solid rgba(255, 176, 46, 0.18);
  border-radius: 8px;
  background: rgba(5, 10, 14, 0.72);
}

.comment-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
  color: var(--cyan);
  font-weight: 800;
}

.comment-card time {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.comment-card p {
  margin: 0;
  color: #dceaf0;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.comment-empty {
  color: var(--muted);
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border-top: 1px solid rgba(82, 245, 255, 0.18);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(1, 4, 7, 0.78);
  backdrop-filter: blur(18px);
}

.modal-backdrop[hidden] {
  display: none;
}

.contact-dialog {
  position: relative;
  width: min(620px, 100%);
  min-width: 0;
  max-height: calc(100svh - 2rem);
  overflow: auto;
  padding: clamp(1.1rem, 4vw, 1.6rem);
  border: 1px solid rgba(82, 245, 255, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(82, 245, 255, 0.12), transparent 38%),
    linear-gradient(315deg, rgba(255, 63, 127, 0.12), transparent 34%),
    rgba(5, 10, 14, 0.96);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.62), var(--shadow-cyan);
}

.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(82, 245, 255, 0.28);
  border-radius: 7px;
  background: rgba(3, 9, 13, 0.8);
  color: var(--text);
  cursor: pointer;
}

.contact-dialog h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.mail-form {
  display: grid;
  gap: 0.75rem;
}

.mail-form label {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mail-form input,
.mail-form textarea {
  width: 100%;
  border: 1px solid rgba(82, 245, 255, 0.24);
  border-radius: 7px;
  background: rgba(1, 5, 8, 0.78);
  color: var(--text);
  outline: none;
}

.mail-form input {
  min-height: 48px;
  padding: 0 0.85rem;
}

.mail-form textarea {
  min-height: 170px;
  resize: vertical;
  padding: 0.85rem;
}

.mail-form input:focus,
.mail-form textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(82, 245, 255, 0.12);
}

.mail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.8rem;
  min-width: 0;
  margin-top: 0.35rem;
}

.mail-status {
  min-height: 1.4rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.mail-status.is-success {
  color: var(--acid);
}

.mail-status.is-error {
  color: var(--hot);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  padding: 1.25rem clamp(1rem, 4vw, 4rem);
  border-top: 1px solid rgba(82, 245, 255, 0.18);
  color: var(--muted);
  text-transform: uppercase;
}

@keyframes pulseLogo {
  0%,
  100% {
    filter: drop-shadow(0 0 8px rgba(82, 245, 255, 0.46));
    transform: scale(1);
  }

  50% {
    filter: drop-shadow(0 0 18px rgba(255, 176, 46, 0.65));
    transform: scale(1.05);
  }
}

@keyframes counterPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.82);
  }

  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

@media (max-width: 820px) {
  .site-header,
  .contact-section,
  .site-footer,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
    padding-right: 1rem;
    padding-top: 4rem;
    padding-bottom: 13.5rem;
    padding-left: 1rem;
  }

  .hero::before {
    background: transparent;
  }

  .status-panel {
    right: 50%;
    bottom: 1rem;
    left: auto;
    width: 210px;
    height: auto;
    transform: translateX(50%);
  }

  .hero-actions .button,
  .hero-actions .visitor-counter {
    width: clamp(9.45rem, calc((100vw - 4.5rem) / 3), 10.75rem);
    flex-basis: clamp(9.45rem, calc((100vw - 4.5rem) / 3), 10.75rem);
    padding-right: 0.55rem;
    padding-left: 0.55rem;
    font-size: clamp(0.68rem, 1.7vw, 0.76rem);
  }

  .now-playing,
  .track-list,
  .comments-layout {
    grid-template-columns: 1fr;
  }

  .play-button {
    width: 100%;
  }

  .track-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .contact-section {
    align-items: center;
  }

  .mail-actions {
    justify-content: stretch;
  }

  .mail-actions .button {
    flex: 1 1 180px;
  }

}

@media (max-width: 520px) {
  body {
    min-width: 0;
  }

  .site-header {
    padding-right: 0.85rem;
    padding-left: 0.85rem;
  }

  .brand-mark span {
    font-size: 0.92rem;
    overflow-wrap: anywhere;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 0.45rem 0.75rem;
    font-size: 0.76rem;
  }

  .hero {
    padding-right: 0.85rem;
    padding-bottom: 11rem;
    padding-left: 0.85rem;
  }

  .hero-grid {
    right: 0;
    width: 72vw;
    transform: perspective(420px) rotateX(62deg) skewX(-8deg);
  }

  .hero h1 {
    font-size: 2.05rem;
    overflow-wrap: normal;
    white-space: nowrap;
  }

  .playlist-section,
  .comments-section,
  .contact-section {
    width: min(1180px, calc(100% - 1rem));
  }

  .player-shell,
  .comment-form,
  .comment-stream {
    padding: 0.85rem;
  }

  .visualizer {
    grid-template-columns: repeat(20, minmax(2px, 1fr));
    gap: 0.22rem;
  }

  .hero-actions .button,
  .hero-actions .visitor-counter,
  .contact-section .button {
    width: 100%;
    flex-basis: 100%;
  }

  .visitor-counter {
    width: 100%;
    grid-template-columns: 0.8rem 1fr auto;
  }

  .status-panel .visitor-counter {
    width: max-content;
    max-width: 100%;
  }

  .status-panel {
    width: 190px;
  }

  .status-panel img {
    width: 96px;
    height: 96px;
  }

  .track-card {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding: 0.75rem;
  }

  .track-select {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: 0.65rem;
  }

  .track-controls {
    justify-content: flex-end;
  }

  .track-number {
    width: 2.5rem;
    height: 2.5rem;
  }

  .modal-backdrop {
    padding: 0.65rem;
  }

  .contact-dialog {
    max-height: calc(100svh - 1.3rem);
  }
}
