:root {
  --bg: #070b16;
  --bg-2: #0b1020;
  --panel: #12182b;
  --panel-2: #161d33;
  --text: #eef2ff;
  --muted: #8b93b0;
  --accent: #8b6cff;
  --accent-2: #4f8cff;
  --pink: #c084fc;
  --line: rgba(255, 255, 255, 0.07);
  --radius: 14px;
  --player-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Manrope, system-ui, sans-serif;
  padding-bottom: calc(var(--player-h) + 16px);
}

a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }
img { display: block; }

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  height: 240px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(124, 58, 237, 0.45), transparent 50%),
    radial-gradient(ellipse at 30% 80%, rgba(37, 99, 235, 0.25), transparent 45%),
    linear-gradient(180deg, #140a2e 0%, #0b1020 100%);
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(168, 85, 247, 0.15) 50%, transparent 100%);
  pointer-events: none;
}

.hero-city {
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background:
    linear-gradient(180deg, transparent, rgba(7, 11, 22, 0.85)),
    repeating-linear-gradient(90deg, #1a1338 0 18px, #22184a 18px 26px, #15102e 26px 48px);
  clip-path: polygon(
    0 100%, 0 58%, 6% 58%, 6% 40%, 9% 40%, 9% 22%, 12% 22%, 12% 48%,
    18% 48%, 18% 30%, 22% 18%, 26% 30%, 26% 55%, 34% 55%, 34% 28%,
    38% 10%, 42% 28%, 42% 60%, 52% 60%, 52% 35%, 57% 20%, 62% 35%,
    62% 52%, 70% 52%, 70% 16%, 74% 16%, 74% 8%, 78% 8%, 78% 42%,
    86% 42%, 86% 24%, 92% 24%, 92% 50%, 100% 50%, 100% 100%
  );
  opacity: 0.9;
}

.hero-city::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.35), transparent 60%);
}

.hero-figure {
  position: absolute;
  right: 18%;
  bottom: 8px;
  width: 170px;
  height: 210px;
  background:
    radial-gradient(circle at 50% 22%, #1b1233 0 18px, transparent 19px),
    linear-gradient(180deg, #120c22 18%, #090814 55%, #07060f 100%);
  clip-path: polygon(32% 8%, 68% 8%, 78% 22%, 86% 100%, 14% 100%, 22% 22%);
  filter: drop-shadow(0 0 18px rgba(139, 92, 246, 0.45));
  opacity: 0.92;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: 22px;
}

.logo {
  font-family: Orbitron, sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 26px;
  color: #d8c8ff;
  text-shadow:
    0 0 10px rgba(168, 85, 247, 0.9),
    0 0 28px rgba(99, 102, 241, 0.7);
}

.main-nav {
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 22, 0.92);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}

.nav-inner {
  display: flex;
  gap: 28px;
  padding: 14px 0 0;
  overflow-x: auto;
}

.nav-inner a {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  padding-bottom: 14px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav-inner a.active,
.nav-inner a:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.chart { padding: 42px 0 12px; }

.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 18px;
}

.chart-head h1,
.chart-head h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
}
.chart-head span { color: var(--accent); }
.chart-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.see-all {
  color: #c4b5fd;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.see-all:hover { color: #fff; }

.track-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.track {
  display: grid;
  grid-template-columns: 42px 48px minmax(140px, 1.1fr) minmax(140px, 1.6fr) 52px 128px;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: var(--panel);
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: 0.18s ease;
}
.track:hover { background: var(--panel-2); }
.track.active {
  border-color: rgba(139, 108, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(139, 108, 255, 0.15);
}

.rank {
  color: #6b7394;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 13px;
}

.cover {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--c1, #4c1d95), var(--c2, #1e3a8a));
}

.meta strong {
  display: block;
  font-size: 14px;
}
.meta span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.waveform {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 2px;
}
.waveform i {
  display: block;
  width: 3px;
  height: calc(var(--h) * 1%);
  border-radius: 2px;
  background: linear-gradient(180deg, var(--pink), var(--accent-2));
  opacity: 0.9;
}

.duration {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.buy {
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: transparent;
  color: #d8c8ff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.buy:hover {
  background: rgba(139, 108, 255, 0.15);
  color: #fff;
}

.site-footer {
  margin-top: 48px;
  padding: 42px 0 28px;
  border-top: 1px solid var(--line);
  background: #080c18;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-logo { display: inline-block; margin-bottom: 12px; }
.footer-about, .copy, .site-footer a {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.site-footer h3 {
  margin: 0 0 12px;
  font-size: 14px;
}
.footer-grid > div a { display: block; margin: 6px 0; }
.site-footer a:hover { color: #fff; }
.metrika-informer {
  display: inline-flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}
.metrika-informer span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}
.footer-grid > div .metrika-informer a {
  display: inline-flex;
  width: fit-content;
  margin: 0;
  line-height: 0;
}
.metrika-informer img {
  display: block;
  width: 88px;
  height: 31px;
  border: 0;
}
.socials { display: flex; gap: 10px; margin-bottom: 18px; }
.socials a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #c9d2f0;
}
.copy { margin-top: 8px; }

.copy a {
  white-space: nowrap;
  display: inline;
}

.legal-document {
  max-width: 900px;
  margin: 40px auto;
  padding: 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  line-height: 1.7;
}
.legal-document h1 { margin-top: 0; font-size: 28px; }
.legal-document h2 { margin: 28px 0 10px; font-size: 19px; }
.legal-document p,
.legal-document li { color: var(--muted); font-size: 14px; }
.legal-document a { color: #c9b8ff; text-decoration: underline; }

.player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  min-height: var(--player-h);
  display: grid;
  grid-template-columns: 48px minmax(120px, 200px) 44px minmax(160px, 1fr) 140px;
  align-items: center;
  gap: 14px;
  padding: 12px 22px;
  background: rgba(10, 14, 28, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.player[hidden] { display: none; }

.player-cover {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background-size: cover;
}

.player-meta strong { display: block; font-size: 13px; }
.player-meta span { color: var(--muted); font-size: 12px; }

.play-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.play-btn .icon-pause { display: none; }
.play-btn.playing .icon-play { display: none; }
.play-btn.playing .icon-pause { display: block; }

.player-seek input,
.vol-wrap input {
  width: 100%;
  accent-color: var(--accent);
}
.player-time {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}
.vol-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.player-hint {
  grid-column: 1 / -1;
  margin: 0;
  color: #fca5a5;
  font-size: 12px;
}
.player-hint:empty { display: none; }

@media (max-width: 760px) {
  .track {
    grid-template-columns: 32px 44px 1fr 110px;
  }
  .waveform, .duration { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .player {
    grid-template-columns: 40px 1fr 40px;
    grid-template-areas:
      "cover meta play"
      "seek seek seek";
  }
  .player-cover { grid-area: cover; }
  .player-meta { grid-area: meta; }
  .play-btn { grid-area: play; }
  .player-seek { grid-area: seek; }
  .vol-wrap { display: none; }
}

@media (max-width: 640px) {
  .logo { font-size: 20px; }
  .hero { height: 180px; }
  .chart-head { flex-direction: column; align-items: flex-start; }
  .track { grid-template-columns: 28px 40px 1fr; }
  .buy { grid-column: 1 / -1; }
}



.alert {
  padding: 15px;
  margin-bottom: 18px;
  border: 1px solid transparent;
  border-radius: 2px;
}
.alert h4 {
  margin-top: 0;
  color: inherit;
}
.alert .alert-link {
  font-weight: bold;
}
.alert > p,
.alert > ul {
  margin-bottom: 0;
}
.alert > p + p {
  margin-top: 5px;
}
.alert-dismissable,
.alert-dismissible {
  padding-right: 35px;
}
.alert-dismissable .close,
.alert-dismissible .close {
  position: relative;
  top: -2px;
  right: -21px;
  color: inherit;
}
.alert-success {
  background-color: #4caf50;
  border-color: #4caf50;
  color: rgba(255, 255, 255, 0.8);
}
.alert-success hr {
  border-top-color: #449d48;
}
.alert-success .alert-link {
  color: rgba(230, 230, 230, 0.8);
}
.alert-success hr {
  border-top-color: #449d48;
}
.alert-success .alert-link {
  color: rgba(255, 255, 255, 0.8);
}
.alert-info {
  background-color: #1e88e5;
  border-color: #1e88e5;
  color: rgba(255, 255, 255, 0.8);
}
.alert-info hr {
  border-top-color: #187bd1;
}
.alert-info .alert-link {
  color: rgba(230, 230, 230, 0.8);
}
.alert-info hr {
  border-top-color: #187bd1;
}
.alert-info .alert-link {
  color: rgba(255, 255, 255, 0.8);
}
.alert-warning {
  background-color: #ffa000;
  border-color: #ffa000;
  color: #ffffff;
}
.alert-warning hr {
  border-top-color: #e69000;
}
.alert-warning .alert-link {
  color: #e6e6e6;
}
.alert-warning hr {
  border-top-color: #e69000;
}
.alert-warning .alert-link {
  color: #ffffff;
}
.alert-danger {
  background-color: #ef5350;
  border-color: #ef5350;
  color: rgba(255, 255, 255, 0.8);
}
.alert-danger hr {
  border-top-color: #ed3c39;
}
.alert-danger .alert-link {
  color: rgba(230, 230, 230, 0.8);
}
.alert-danger hr {
  border-top-color: #ed3c39;
}
.alert-danger .alert-link {
  color: rgba(255, 255, 255, 0.8);
}

.notice {
    padding: 15px;
    background-color: #fafafa;
    border-left: 6px solid #7f7f84;
    margin-bottom: 10px;
    -webkit-box-shadow: 0 5px 8px -6px rgba(0,0,0,.2);
       -moz-box-shadow: 0 5px 8px -6px rgba(0,0,0,.2);
            box-shadow: 0 5px 8px -6px rgba(0,0,0,.2);
}
.notice-sm {
    padding: 10px;
    font-size: 80%;
}
.notice-lg {
    padding: 35px;
    font-size: large;
}
.notice-success {
    border-color: #80D651;
}
.notice-success>strong {
    color: #80D651;
}
.notice-info {
    border-color: #45ABCD;
}
.notice-info>strong {
    color: #45ABCD;
}
.notice-warning {
    border-color: #FEAF20;
}
.notice-warning>strong {
    color: #FEAF20;
}
.notice-danger {
    border-color: #d73814;
}
.notice-danger>strong {
    color: #d73814;
}



.admin-login-form {
    width: 100%;
    max-width: 440px;
    margin: 0 auto; /* Центрує саму форму */
}

.form-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrap svg {
    position: absolute;
    right: 16px;
    color: var(--muted);
    pointer-events: none;
}

.adm-input {
    width: 100%;
    height: 48px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0 45px 0 16px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    transition: 0.2s ease;
}

.adm-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(139, 108, 255, 0.15);
}

.adm-submit-btn {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s ease;
    margin-top: 6px;
    box-shadow: 0 4px 16px rgba(139, 108, 255, 0.3);
}

.adm-submit-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(139, 108, 255, 0.4);
}




/* Видаляємо стару .hero-figure і ставимо новий музичний елемент */
.hero-music-banner {
    position: absolute;
    right: 10%;
    bottom: 15px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 2;
    pointer-events: none;
    opacity: 0.95;
}

/* Стилізована вінілова платівка з ефектом світіння */
.vinyl-disc {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: 
        radial-gradient(circle at 50% 50%, #0b1020 0, #0b1020 14px, transparent 15px),
        radial-gradient(circle at 50% 50%, rgba(139, 108, 255, 0.3) 0, rgba(139, 108, 255, 0.3) 32px, transparent 33px),
        conic-gradient(from 0deg, #181135, #261b4d, #120c24, #261b4d, #181135);
    border: 3px solid rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 25px rgba(139, 108, 255, 0.4), inset 0 0 15px rgba(0, 0, 0, 0.8);
    position: relative;
    animation: rotateVinyl 12s linear infinite;
}

.vinyl-disc::after {
    content: "";
    position: absolute;
    inset: 48px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

@keyframes rotateVinyl {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Анімовані еквалайзерні лінії біля платівки */
.sound-waves-art {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 50px;
}

.sound-waves-art i {
    display: block;
    width: 5px;
    background: linear-gradient(180deg, var(--pink), var(--accent));
    border-radius: 4px;
    animation: soundWaveAnim 1.2s ease-in-out infinite alternate;
}

.sound-waves-art i:nth-child(1) { height: 30px; animation-delay: 0.1s; }
.sound-waves-art i:nth-child(2) { height: 50px; animation-delay: 0.3s; }
.sound-waves-art i:nth-child(3) { height: 20px; animation-delay: 0.2s; }
.sound-waves-art i:nth-child(4) { height: 45px; animation-delay: 0.4s; }
.sound-waves-art i:nth-child(5) { height: 35px; animation-delay: 0.15s; }

@keyframes soundWaveAnim {
    0% { transform: scaleY(0.4); opacity: 0.5; }
    100% { transform: scaleY(1.2); opacity: 1; }
}

/* Ховаємо на дуже маленьких екранах, щоб не заважало логтитипу */
@media (max-width: 640px) {
    .hero-music-banner { display: none; }
}