:root {
  --bg: #050a18;
  --bg-2: #0a1530;
  --deep-blue: #0d1f4a;
  --cyan: #9fe7ff;
  --cyan-bright: #5fd8ff;
  --violet: #7a5cff;
  --violet-bright: #b794ff;
  --beige: #e8d8b5;
  --gold: #d9b376;
  --text: #e6ecf5;
  --text-dim: #9aa6bd;
  --line: rgba(159,231,255,0.15);
  --radius: 14px;
  --container: 1180px;
  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s, opacity .25s; }
a:hover { color: var(--cyan); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 18px 0;
  transition: background .3s, padding .3s, backdrop-filter .3s;
}
.nav--scrolled {
  background: rgba(5,10,24,0.78);
  backdrop-filter: blur(14px);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 4px;
  font-size: 20px;
  color: var(--cyan);
  text-shadow: 0 0 16px rgba(159,231,255,0.45);
}
.nav__menu { display: flex; gap: 28px; flex-wrap: wrap; }
.nav__menu a { font-size: 14px; letter-spacing: 1px; color: var(--text-dim); }
.nav__menu a:hover { color: var(--cyan); }

@media (max-width: 720px) {
  .nav__menu { display: none; }
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 80px;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(122,92,255,0.25), transparent 60%),
    radial-gradient(ellipse at 50% 80%, rgba(13,31,74,0.9), var(--bg) 70%),
    linear-gradient(180deg, #04081a 0%, #0a1530 60%, #050a18 100%);
}
.hero__waves {
  position: absolute; inset: 0; z-index: -1;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.55;
}
.hero__waves svg { width: 130%; height: 60%; }
.wave { fill: none; stroke-width: 1.4; stroke-linecap: round; }
.wave-1 { stroke: var(--cyan); filter: drop-shadow(0 0 8px var(--cyan)); animation: waveMove 6s ease-in-out infinite alternate; }
.wave-2 { stroke: var(--violet); filter: drop-shadow(0 0 10px var(--violet)); animation: waveMove 7s ease-in-out infinite alternate-reverse; opacity: .7; }
@keyframes waveMove {
  0%   { transform: translateY(-10px) scaleY(1); }
  100% { transform: translateY(10px)  scaleY(1.2); }
}

.hero__inner {
  position: relative;
  text-align: center;
  opacity: 0; transform: translateY(20px);
  transition: opacity .9s ease, transform .9s ease;
}
.hero__inner.is-visible { opacity: 1; transform: none; }

.hero__subtitle {
  font-family: var(--font-display);
  letter-spacing: 6px;
  font-size: 12px;
  color: var(--cyan);
  margin: 0 0 18px;
  text-transform: uppercase;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(64px, 14vw, 200px);
  letter-spacing: 8px;
  margin: 0;
  line-height: .95;
  color: #fff;
  text-shadow:
    0 0 22px rgba(159,231,255,0.55),
    0 0 60px rgba(95,216,255,0.35),
    0 0 120px rgba(122,92,255,0.25);
}
.hero__slogan {
  margin: 26px auto 0;
  max-width: 620px;
  color: var(--text-dim);
  font-size: 16px;
  letter-spacing: .5px;
}
.hero__cta { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__signature {
  position: absolute; right: 4%; bottom: -10px;
  font-family: 'Brush Script MT', cursive;
  color: var(--gold);
  font-size: 22px; line-height: 1.2;
  opacity: .85; transform: rotate(-4deg);
}
@media (max-width: 720px) { .hero__signature { display: none; } }
.hero__scroll {
  position: absolute; bottom: 20px; left: 0; right: 0;
  text-align: center; font-size: 11px; letter-spacing: 4px;
  color: var(--text-dim); text-transform: uppercase;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% {opacity:.4;} 50% {opacity:1;} }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-display); font-weight: 600;
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  cursor: pointer; transition: all .3s; text-decoration: none;
}
.btn--primary {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--violet) 100%);
  color: #0a0f25;
  box-shadow: 0 0 24px rgba(95,216,255,0.45);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 38px rgba(122,92,255,0.6); color: #0a0f25; }
.btn--ghost { border-color: var(--cyan); color: var(--cyan); background: transparent; }
.btn--ghost:hover { background: rgba(159,231,255,0.1); }
.btn--small { padding: 10px 18px; font-size: 11px; }

/* SECTIONS */
.section:not(.is-visible-default) {
  padding: 120px 0;
  position: relative;
  opacity: 0; transform: translateY(30px);
  transition: opacity .8s ease, transform .8s ease;
}
.section.is-visible,
.section.is-visible-default { opacity: 1; transform: none; }
.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 3px;
  text-align: center;
  margin: 0 0 60px;
  text-transform: uppercase;
}
.section__title::after {
  content: ''; display: block; width: 60px; height: 2px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  border-radius: 2px;
}

/* ABOUT */
.about__text {
  max-width: 760px; margin: 0 auto;
  text-align: center; font-size: 18px; line-height: 1.75;
  color: var(--text-dim);
}

/* LISTEN */
.socials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}
.social {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 30px 18px;
  background: linear-gradient(180deg, rgba(13,31,74,0.6), rgba(10,21,48,0.4));
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: all .35s;
  position: relative; overflow: hidden;
}
.social::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(122,92,255,0.25), transparent 70%);
  opacity: 0; transition: opacity .35s;
}
.social:hover { transform: translateY(-4px); border-color: var(--violet-bright); color: #fff; }
.social:hover::before { opacity: 1; }
.social img { width: 44px; height: 44px; object-fit: contain; position: relative; z-index: 1; }
.social span { font-family: var(--font-display); font-size: 13px; letter-spacing: 2px; position: relative; z-index: 1; }

/* EVENTS */
.events__list { display: flex; flex-direction: column; gap: 16px; max-width: 820px; margin: 0 auto; }
.event {
  display: grid; grid-template-columns: 90px 1fr auto;
  align-items: center; gap: 24px;
  padding: 22px 26px;
  background: linear-gradient(90deg, rgba(13,31,74,0.55), rgba(10,21,48,0.3));
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .3s, transform .3s;
}
.event:hover { border-color: var(--cyan); transform: translateX(4px); }
.event__date { text-align: center; border-right: 1px solid var(--line); padding-right: 20px; }
.event__day { display: block; font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--cyan); }
.event__month { display: block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim); }
.event__body h3 { margin: 0 0 6px; font-family: var(--font-display); font-size: 17px; letter-spacing: 1px; }
.event__body p { margin: 0; color: var(--text-dim); font-size: 14px; }
.event__desc { margin-top: 8px !important; }
@media (max-width: 640px) {
  .event { grid-template-columns: 70px 1fr; }
  .event .btn { grid-column: 1 / -1; justify-self: start; }
}

/* EMPTY */
.empty { text-align: center; color: var(--text-dim); font-size: 16px; padding: 30px 0; }
.empty--equalizer { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.equalizer { display: flex; align-items: flex-end; gap: 6px; height: 60px; }
.equalizer span {
  display: block; width: 6px; background: linear-gradient(180deg, var(--cyan), var(--violet));
  border-radius: 3px; animation: eq 1.2s ease-in-out infinite;
}
.equalizer span:nth-child(1) { animation-delay: 0s;   height: 30%; }
.equalizer span:nth-child(2) { animation-delay: .15s; height: 70%; }
.equalizer span:nth-child(3) { animation-delay: .3s;  height: 100%; }
.equalizer span:nth-child(4) { animation-delay: .45s; height: 60%; }
.equalizer span:nth-child(5) { animation-delay: .6s;  height: 40%; }
@keyframes eq {
  0%, 100% { transform: scaleY(.4); }
  50%      { transform: scaleY(1); }
}

/* GALLERY */
.gallery__grid {
  columns: 3 280px;
  column-gap: 14px;
}
.gallery__item {
  display: block; margin: 0 0 14px; break-inside: avoid;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .35s, border-color .35s, box-shadow .35s;
}
.gallery__item:hover { transform: scale(1.02); border-color: var(--cyan); box-shadow: 0 0 24px rgba(95,216,255,0.3); }
.gallery__item img { width: 100%; height: auto; transition: transform .5s; }

/* LIGHTBOX */
.lightbox {
  position: fixed; inset: 0; background: rgba(2,5,15,0.92);
  display: none; align-items: center; justify-content: center; z-index: 100;
  padding: 30px;
}
.lightbox.is-open { display: flex; animation: fadeIn .25s ease; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 0 60px rgba(95,216,255,0.3); }
.lightbox__close {
  position: absolute; top: 20px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid var(--line);
  color: #fff; font-size: 22px; cursor: pointer;
}
.lightbox__close:hover { background: var(--violet); }
@keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} }

/* CONTACT */
.contact__inner { max-width: 680px; margin: 0 auto; }
.contact__lead { text-align: center; color: var(--text-dim); margin: -30px 0 36px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.form label {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim);
}
.form input, .form textarea {
  padding: 14px 16px; border-radius: 10px;
  background: rgba(10,21,48,0.55); border: 1px solid var(--line);
  color: var(--text); font-family: var(--font-body); font-size: 15px;
  transition: border-color .25s, box-shadow .25s;
}
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(159,231,255,0.15);
}
.form__hint { font-size: 12px; color: var(--text-dim); text-align: center; margin: 0; }
.form__hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-size: 14px; }
.alert--success { background: rgba(95,216,255,0.12); border: 1px solid var(--cyan); color: var(--cyan); }
.alert--error   { background: rgba(255,90,90,0.12); border: 1px solid #ff7a7a; color: #ff9a9a; }

/* FOOTER */
.footer { padding: 50px 0 40px; border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.footer__sign { font-family: 'Brush Script MT', cursive; color: var(--gold); font-size: 22px; }
.footer__copy { color: var(--text-dim); font-size: 13px; letter-spacing: 1px; }
.footer__copy a { color: var(--text-dim); opacity: .5; }
.footer__copy a:hover { color: var(--cyan); opacity: 1; }

/* LOGO */
.nav__logo-img {
  height: 50px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 12px rgba(159,231,255,0.35));
  transition: filter .3s, transform .3s;
}
.nav__logo:hover .nav__logo-img {
  filter: drop-shadow(0 0 18px rgba(159,231,255,0.6));
  transform: scale(1.04);
}
.nav--scrolled .nav__logo-img {
  height: 44px;
}

/* Логотип в hero-секции (опционально) */
.hero__logo {
  width: clamp(120px, 18vw, 220px);
  height: auto;
  margin: 0 auto 30px;
  filter: drop-shadow(0 0 30px rgba(122,92,255,0.5));
  animation: logoPulse 3s ease-in-out infinite;
}
@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 30px rgba(122,92,255,0.5)); }
  50%      { filter: drop-shadow(0 0 50px rgba(95,216,255,0.7)); }
}

/* ===== MUSIC PLAYER ===== */
.music { padding: 100px 0; }

.player {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  grid-template-rows: auto auto;
  gap: 30px;
  background: linear-gradient(180deg, rgba(13,31,74,0.6), rgba(10,21,48,0.4));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
  user-select: none;
  -webkit-user-select: none;
  backdrop-filter: blur(10px);
}

@media (max-width: 720px) {
  .player {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 20px;
  }
}

/* ===== MUSIC SECTION (карточки треков) ===== */
.music { padding: 100px 0; }

.music-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.music-card {
  background: rgba(13,31,74,0.4);
  border: 1px solid var(--line, rgba(255,255,255,0.1));
  border-radius: 14px;
  overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  cursor: pointer;
  user-select: none;
}
.music-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan, #5fd8ff);
  box-shadow: 0 10px 30px rgba(95,216,255,0.15);
}
.music-card.is-playing {
  border-color: var(--cyan, #5fd8ff);
  box-shadow: 0 0 0 1px var(--cyan, #5fd8ff), 0 10px 30px rgba(95,216,255,0.2);
}

.music-card__cover {
  position: relative;
  aspect-ratio: 1;
  background: #0a1530;
  overflow: hidden;
}
.music-card__cover img {
  width: 100%; height: 100%; object-fit: cover;
  -webkit-user-drag: none; pointer-events: none;
}
.music-card__no-cover {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; opacity: 0.3;
}
.music-card__play {
  position: absolute; right: 14px; bottom: 14px;
  width: 48px; height: 48px; border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--cyan, #5fd8ff), var(--violet, #7a5cff));
  color: #0a0f25;
  font-size: 16px; cursor: pointer;
  opacity: 0; transform: translateY(8px);
  transition: opacity .25s, transform .25s;
  box-shadow: 0 6px 20px rgba(95,216,255,0.4);
}
.music-card:hover .music-card__play,
.music-card.is-playing .music-card__play {
  opacity: 1; transform: translateY(0);
}
.music-card.is-playing .music-card__play::before { content: '⏸'; }
.music-card.is-playing .music-card__play { font-size: 0; }
.music-card.is-playing .music-card__play::before { font-size: 16px; }

.music-card__meta { padding: 14px 16px; }
.music-card__title {
  font-weight: 700; font-size: 15px;
  color: var(--text, #fff);
  margin-bottom: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.music-card__artist {
  font-size: 11px;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-dim, #8da0c5);
}

/* ===== FLOATING PLAYER ===== */
.floating-player {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  background: rgba(8, 16, 38, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--line, rgba(255,255,255,0.1));
  box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
  user-select: none;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  padding-bottom: env(safe-area-inset-bottom);
}
.floating-player[hidden] { display: none !important; }

.floating-player.is-collapsed {
  transform: translateY(calc(100% - 6px));
}
.floating-player.is-collapsed .floating-player__toggle {
  transform: rotate(180deg);
}

.floating-player__toggle {
  position: absolute;
  top: -22px; left: 50%;
  transform: translateX(-50%);
  width: 44px; height: 24px;
  border: 1px solid var(--line, rgba(255,255,255,0.1));
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  background: rgba(8, 16, 38, 0.92);
  color: var(--text, #fff);
  cursor: pointer;
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .35s;
}

.floating-player__inner {
  display: grid;
  grid-template-columns: 56px 1fr auto auto auto auto;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.floating-player__cover {
  width: 56px; height: 56px;
  border-radius: 8px; overflow: hidden;
  background: #0a1530;
  flex-shrink: 0;
}
.floating-player__cover img {
  width: 100%; height: 100%; object-fit: cover;
  -webkit-user-drag: none; pointer-events: none;
}

.floating-player__info {
  min-width: 0; /* для ellipsis */
}
.floating-player__title {
  font-weight: 700; font-size: 14px;
  color: var(--text, #fff);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.floating-player__artist {
  font-size: 11px; letter-spacing: 1px;
  color: var(--text-dim, #8da0c5);
  text-transform: uppercase;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  margin-top: 2px;
}

.floating-player__controls {
  display: flex; gap: 8px; align-items: center;
}
.fp-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line, rgba(255,255,255,0.1));
  background: rgba(255,255,255,0.04);
  color: var(--text, #fff);
  font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.fp-btn:hover {
  border-color: var(--cyan, #5fd8ff);
  color: var(--cyan, #5fd8ff);
}
.fp-btn--play {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--cyan, #5fd8ff), var(--violet, #7a5cff));
  color: #0a0f25; border: none;
  font-size: 14px;
}
.fp-btn--play:hover { color: #0a0f25; }

.floating-player__progress {
  display: grid;
  grid-template-columns: 38px 240px 38px;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  color: var(--text-dim, #8da0c5);
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.fp-bar {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  cursor: pointer;
  overflow: hidden;
}
.fp-bar__fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--cyan, #5fd8ff), var(--violet, #7a5cff));
  transition: width .1s linear;
}

.floating-player__volume {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px;
}
.floating-player__volume input {
  width: 80px;
  accent-color: var(--cyan, #5fd8ff);
}

.floating-player__close {
  width: 32px; height: 32px;
  border: none; background: transparent;
  color: var(--text-dim, #8da0c5);
  cursor: pointer; font-size: 16px;
  border-radius: 50%;
  transition: all .2s;
}
.floating-player__close:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text, #fff);
}

/* Чтобы контент сайта не залезал под плеер */
body.has-floating-player { padding-bottom: 90px; }

/* === АДАПТИВ === */
@media (max-width: 900px) {
  .floating-player__inner {
    grid-template-columns: 48px 1fr auto auto;
    gap: 10px;
    padding: 10px 14px;
  }
  .floating-player__cover { width: 48px; height: 48px; }
  .floating-player__progress {
    grid-column: 1 / -1;
    grid-template-columns: 38px 1fr 38px;
  }
  .floating-player__volume { display: none; }
  .floating-player__close { display: none; }
  body.has-floating-player { padding-bottom: 130px; }
}

@media (max-width: 480px) {
  .floating-player__controls .fp-btn:not(.fp-btn--play) {
    display: none;
  }
  .floating-player__inner {
    grid-template-columns: 44px 1fr auto;
  }
}

/* Скрываем стандартный <audio> */
#audio {
  display: none !important;
}

section[id] { scroll-margin-bottom: 100px; }