:root {
  --bg: #0a0816;
  --surface: #141126;
  --surface-soft: #1c1730;
  --line: #342a56;
  --line-strong: #4c3b7a;
  --text: #f3eeff;
  --muted: #baaedc;
  --accent: #8c5bff;
  --accent-strong: #6f46d8;
  --neon: #34e7d7;
  --neon-soft: rgba(52, 231, 215, 0.18);
  --shadow: 0 20px 46px rgba(4, 2, 12, 0.5);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 6%, rgba(140, 91, 255, 0.28) 0%, transparent 28%),
    radial-gradient(circle at 92% 4%, rgba(52, 231, 215, 0.15) 0%, transparent 30%),
    linear-gradient(180deg, #090713 0%, var(--bg) 100%);
  display: flex;
  justify-content: center;
}

.page {
  width: min(760px, calc(100% - 24px));
  margin: 18px auto 24px;
  display: grid;
  gap: 12px;
}

.hero,
.block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::before,
.block::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 72%,
    rgba(68, 215, 255, 0.09) 100%
  );
}

.hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.hero-copy {
  display: grid;
  gap: 8px;
}

.hero-kicker {
  width: fit-content;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid #5f49a1;
  background: linear-gradient(180deg, #231b3c 0%, #1a1630 100%);
  color: #d8cbff;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  color: #f7f3ff;
  text-shadow: 0 0 24px rgba(140, 91, 255, 0.32);
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.hero-meta span {
  border: 1px solid var(--line);
  background: #1a1530;
  color: #c8bbec;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.74rem;
}

.hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface-soft);
  color: #efe8ff;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
}

.btn:hover {
  border-color: #7f63cc;
  box-shadow: 0 0 0 4px rgba(140, 91, 255, 0.18);
}

.btn-primary {
  background: linear-gradient(180deg, #9a6bff 0%, var(--accent) 100%);
  border-color: #7d53e9;
  color: #ffffff;
  box-shadow: 0 9px 20px rgba(111, 70, 216, 0.42);
}

.btn-primary:hover {
  background: #7b50e5;
  border-color: #7b50e5;
}

.hero-side-image {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid #bdd3ff;
  box-shadow: 0 0 0 6px var(--neon-soft);
}

.block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.block-head h2 {
  margin: 0;
  font-size: 1rem;
}

.badge {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #5f4b98;
  background: linear-gradient(180deg, #251d42 0%, #1c1732 100%);
  color: #d4c8f4;
  font-size: 0.7rem;
  text-transform: uppercase;
}

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

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, #1e1936 0%, #17132b 100%);
  padding: 9px 10px;
  font-size: 0.9rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.row small {
  color: var(--muted);
}

.row:hover {
  border-color: #755bc4;
  box-shadow: 0 8px 18px rgba(140, 91, 255, 0.2);
  transform: translateY(-1px);
}

.notice {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, #1f1a38 0%, #18142d 100%);
  padding: 10px;
  display: grid;
  gap: 5px;
  margin-bottom: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.notice:last-child {
  margin-bottom: 0;
}

.notice:hover {
  border-color: #a8c0f8;
  box-shadow: 0 7px 15px rgba(31, 68, 160, 0.1);
}

.notice strong {
  font-size: 0.9rem;
}

.notice p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.notice small {
  color: #7280a5;
  font-size: 0.74rem;
}

.home-video {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #4e3c80;
  background: #0d0a1c;
  max-height: 320px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(18, 38, 92, 0.2);
}

.music-block {
  border-color: var(--line-strong);
}

.music-help {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.music-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin: 0 0 10px;
}

.music-search input {
  border: 1px solid var(--line);
  background: #1a1430;
  color: var(--text);
  border-radius: 10px;
  padding: 9px 10px;
  outline: none;
}

.music-search input:focus {
  border-color: #5de8d8;
  box-shadow: 0 0 0 3px rgba(93, 232, 216, 0.14);
}

.music-results {
  display: grid;
  gap: 7px;
  margin: 0 0 10px;
}

.music-result-item,
.music-result-empty {
  border: 1px solid #4a3a77;
  background: linear-gradient(180deg, #21193a 0%, #18142b 100%);
  color: #f2edff;
  border-radius: 10px;
  padding: 8px 10px;
  text-align: left;
}

.music-result-item {
  cursor: pointer;
}

.music-result-item:hover {
  border-color: #5de8d8;
}

.music-help code {
  padding: 1px 6px;
  border-radius: 6px;
  background: #221a3d;
  border: 1px solid #59478f;
  color: #d9cdff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
}

.music-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.music-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, #241d40 0%, #1b1632 100%);
  text-align: left;
  padding: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: grid;
  gap: 6px;
}

.music-card strong {
  display: block;
  color: var(--text);
  font-size: 0.88rem;
}

.music-card small {
  color: var(--muted);
  font-size: 0.72rem;
}

.music-play {
  width: fit-content;
  border: 1px solid #56d8cb;
  background: linear-gradient(180deg, #153a39 0%, #102d2c 100%);
  color: #b8fff8;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.music-card:hover {
  transform: translateY(-2px);
  border-color: #6f57b8;
  box-shadow: 0 8px 16px rgba(120, 87, 206, 0.24);
}

.music-card.is-active {
  border-color: #4de1d2;
  box-shadow: 0 0 0 4px rgba(52, 231, 215, 0.22);
}

.music-main-play {
  width: 100%;
  margin: 0 0 10px;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.player-shell {
  border: 1px solid #5a4692;
  border-radius: 12px;
  padding: 10px;
  background: linear-gradient(180deg, #1c1633 0%, #151129 100%);
  display: grid;
  gap: 8px;
}

.player-meta {
  display: grid;
  gap: 2px;
}

.player-meta strong {
  font-size: 0.9rem;
}

.player-meta small {
  color: var(--muted);
  font-size: 0.76rem;
}

#home-audio-player {
  width: 100%;
  filter: drop-shadow(0 3px 8px rgba(125, 84, 222, 0.34));
}

.btn-stop {
  width: fit-content;
  background: #241d42;
  color: #efe8ff;
}

.player-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

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

.hero,
.block {
  animation: fadeInUp 0.4s ease both;
}

.block:nth-of-type(2) {
  animation-delay: 0.05s;
}

.block:nth-of-type(3) {
  animation-delay: 0.1s;
}

.block:nth-of-type(4) {
  animation-delay: 0.15s;
}

@media (max-width: 760px) {
  .page {
    width: min(760px, calc(100% - 14px));
    margin-top: 10px;
    gap: 10px;
  }

  .hero,
  .block {
    padding: 12px;
    border-radius: 12px;
  }

  .hero-head {
    align-items: flex-start;
  }

  .hero-side-image {
    width: 60px;
    height: 60px;
    border-radius: 14px;
  }

  .hero-meta span {
    font-size: 0.7rem;
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }

  .music-grid {
    grid-template-columns: 1fr;
  }

  .music-search {
    grid-template-columns: 1fr;
  }
}
