:root {
  --bg: #121212;
  --bg-elevated: #1a1a1a;
  --ink: #f6dcc0;
  --accent: #f1b775;
  --accent-soft: rgba(241, 183, 117, 0.55);
  --muted: rgba(246, 220, 192, 0.64);
  --line: rgba(241, 183, 117, 0.38);
  --danger: #c97b7b;
  --ok: #9bb89a;
  --font-ui: "Manrope", system-ui, sans-serif;
  --font-display: "Great Vibes", cursive;
  --radius: 4px;
  --max: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(241, 183, 117, 0.06), transparent 55%),
    url("../../images/bg.jpg");
  background-repeat: no-repeat, repeat;
  background-size: auto, auto;
  background-attachment: fixed, fixed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

.sparkles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.page,
.band,
.footer-note {
  position: relative;
  z-index: 1;
}

.spark {
  --size: calc(14px * var(--s, 1));
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
  opacity: 0;
  transform: translate3d(0, 6px, 0) scale(0.55);
  animation: sparkle var(--dur, 10s) ease-in-out infinite;
  animation-delay: var(--d, 0s);
  will-change: transform, opacity;
}

.spark::before,
.spark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 236, 200, 0.15) 20%,
    rgba(255, 245, 220, 0.95) 50%,
    rgba(255, 236, 200, 0.15) 80%,
    transparent 100%
  );
}

/* горизонтальный луч */
.spark::before {
  width: 100%;
  height: 1.5px;
  box-shadow: 0 0 6px 1px rgba(241, 183, 117, 0.35);
}

/* вертикальный луч */
.spark::after {
  width: 1.5px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 236, 200, 0.15) 20%,
    rgba(255, 245, 220, 0.95) 50%,
    rgba(255, 236, 200, 0.15) 80%,
    transparent 100%
  );
  box-shadow: 0 0 6px 1px rgba(241, 183, 117, 0.35);
}

/* мягкое ядро */
.spark {
  background:
    radial-gradient(circle, rgba(255, 250, 235, 0.95) 0%, rgba(241, 183, 117, 0.55) 28%, transparent 68%);
  border-radius: 50%;
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0;
    transform: translate3d(0, 8px, 0) scale(0.45) rotate(0deg);
  }
  18% {
    opacity: 0.25;
    transform: translate3d(0, 4px, 0) scale(0.7) rotate(8deg);
  }
  42% {
    opacity: 0.85;
    transform: translate3d(0, -2px, 0) scale(1) rotate(18deg);
  }
  58% {
    opacity: 0.55;
    transform: translate3d(1px, -5px, 0) scale(0.9) rotate(26deg);
  }
  78% {
    opacity: 0.15;
    transform: translate3d(0, -8px, 0) scale(0.6) rotate(34deg);
  }
}

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

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

button,
input,
select {
  font: inherit;
  color: inherit;
}

.page {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 1.75rem 0 0;
}

.logo {
  display: flex;
  justify-content: center;
  margin-bottom: 3.75rem;
  opacity: 0;
  animation: rise 0.9s ease forwards;
}

.logo img {
  width: min(440px, 82vw);
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}

.event {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  margin-bottom: 2.5rem;
}

.poster {
  opacity: 0;
  animation: rise 0.9s ease 0.12s forwards;
}

.poster-frame {
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: transparent;
  overflow: hidden;
  line-height: 0;
}

.poster-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}

.poster-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 280px;
  color: var(--muted);
  padding: 2rem;
  text-align: center;
  font-size: 0.95rem;
}

.side {
  opacity: 0;
  animation: rise 0.9s ease 0.22s forwards;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding-top: 0.25rem;
}

.section-title {
  margin: 0 0 1.15rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field label,
.field-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.field input {
  width: 100%;
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  color: var(--ink);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.field input::placeholder {
  color: rgba(246, 220, 192, 0.35);
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(241, 183, 117, 0.12);
}

.guest-picks {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
}

.guest-pick {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--accent);
  padding: 0.75rem 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.guest-pick:hover {
  border-color: var(--accent);
  background: rgba(241, 183, 117, 0.08);
}

.guest-pick.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1410;
}

.guest-pick:active {
  transform: translateY(1px);
}

.reg-note {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin: 0.15rem 0;
  padding: 0.95rem 1.05rem;
  border: 1px solid var(--accent);
  border-radius: 10px;
  color: var(--accent);
  font-size: 0.92rem;
  line-height: 1.45;
  background: rgba(0, 0, 0, 0.35);
}

.reg-note-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 0.1rem;
  color: var(--accent);
}

.reg-note-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.reg-note-body {
  min-width: 0;
  flex: 1;
}

.reg-note a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 3px;
  font-weight: 600;
}

.reg-note a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.reg-note p {
  margin: 0 0 0.45rem;
}

.reg-note p:last-child {
  margin-bottom: 0;
}

.br-mobile {
  display: none;
}

@media (max-width: 860px) {
  .br-mobile {
    display: block;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  border-radius: var(--radius);
  padding: 0.95rem 1.25rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--accent);
  color: #1a1410;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.form-message {
  min-height: 1.25rem;
  margin: 0;
  font-size: 0.9rem;
}

.form-message.is-error {
  color: var(--danger);
}

.form-message.is-ok {
  color: var(--ok);
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem 1.5rem;
  margin: 0 0 1.15rem;
  padding: 0 0 0.95rem;
  border-bottom: 1px solid var(--line);
  border-top: none;
}

.event-meta-item {
  min-width: 0;
}

.event-meta-place {
  flex: 1 1 12rem;
  min-width: min(100%, 12rem);
}

.event-meta dt {
  margin: 0 0 0.15rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.event-meta dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--accent);
  line-height: 1.35;
  word-break: break-word;
}

.event-meta a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.event-meta a:hover {
  color: var(--ink);
}

.closed-message {
  border: 1px solid var(--line);
  padding: 1.5rem 1.25rem;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.65;
  background: linear-gradient(160deg, rgba(241, 183, 117, 0.06), transparent 70%);
}

.listen-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.listen-title svg {
  width: 14px;
  height: 14px;
  fill: var(--accent);
  color: var(--accent);
  flex-shrink: 0;
}

.stream-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.contacts {
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.35rem;
}

.subscribe-title {
  margin: 0 0 -0.35rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-size: 0.82rem;
  color: var(--accent);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease;
}

.pill:hover {
  border-color: var(--accent);
  background: rgba(241, 183, 117, 0.08);
  transform: translateY(-1px);
}

.pill svg {
  width: 16px;
  height: 16px;
}

.social-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  width: 100%;
}

.social-icon {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.social-icon:hover {
  border-color: var(--accent);
  background: rgba(241, 183, 117, 0.1);
  transform: translateY(-2px);
}

.social-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.phone {
  margin: 0 0 0 auto;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--accent);
  line-height: 1.2;
  white-space: nowrap;
}

.phone a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.band {
  width: min(100% - 2rem, var(--max));
  margin: 1rem auto 0;
  opacity: 0;
  animation: rise 1s ease 0.35s forwards;
}

.band-frame {
  width: 100%;
  overflow: hidden;
  max-height: min(72vh, 720px);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: transparent;
  line-height: 0;
}

.band-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.footer-note {
  text-align: center;
  padding: 1.25rem 0 1.75rem;
  color: var(--muted);
  font-size: 0.8rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .page {
    width: min(100% - 1.5rem, var(--max));
    padding-top: 1.25rem;
  }

  .logo {
    margin-bottom: 2.75rem;
  }

  .event {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .poster-frame {
    max-width: 420px;
    margin: 0 auto;
  }

  .side {
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }

  .band {
    width: min(100% - 1.5rem, var(--max));
  }

  .band-frame {
    max-height: 52vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sparkles {
    display: none;
  }

  .logo,
  .poster,
  .side,
  .band {
    animation: none;
    opacity: 1;
  }

  .btn,
  .pill,
  .social-icon,
  .guest-pick {
    transition: none;
  }
}

/* Admin */
.admin-body {
  background-color: #101010;
  background-image: url("../../images/bg.jpg");
  background-repeat: repeat;
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-ui);
  min-height: 100vh;
}

.admin-wrap {
  width: min(100% - 2rem, 920px);
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.admin-header h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-card {
  border: 1px solid var(--line);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
}

.admin-card h2 {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.flash {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  margin-bottom: 1.25rem;
}

.flash-ok {
  border-color: rgba(155, 184, 154, 0.5);
  color: var(--ok);
}

.flash-error {
  border-color: rgba(201, 123, 123, 0.5);
  color: var(--danger);
}

.preview {
  margin-top: 0.75rem;
  max-width: 220px;
  border: 1px solid var(--line);
}

.preview img {
  width: 100%;
  height: auto;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.table-wrap {
  overflow-x: auto;
}

table.regs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

table.regs th,
table.regs td {
  text-align: left;
  padding: 0.7rem 0.55rem;
  border-bottom: 1px solid rgba(241, 183, 117, 0.18);
}

table.regs th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.link-muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.link-muted:hover {
  color: var(--accent);
}

.login-box {
  width: min(100% - 2rem, 380px);
  margin: 12vh auto 0;
  border: 1px solid var(--line);
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.02);
}

.login-box h1 {
  margin: 0 0 1.25rem;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--accent);
}

.hint {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 700px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
}
