:root {
  --bg: #05070b;
  --text: #f5f7fb;
  --muted: rgba(245, 247, 251, 0.72);
  --line: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.28);
  --glass: rgba(14, 17, 24, 0.16);
  --glass-strong: rgba(14, 17, 24, 0.3);
  --accent: #f1f5ff;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.15), transparent 34%),
    radial-gradient(circle at bottom, rgba(186, 202, 255, 0.12), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: "Manrope", sans-serif;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

.background-video,
.background-haze,
.background-glow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.background-video {
  object-fit: cover;
  filter: blur(6px) brightness(0.54) saturate(1.05);
  transform: scale(1.06);
}

.background-haze {
  background:
    linear-gradient(180deg, rgba(5, 7, 11, 0.22), rgba(5, 7, 11, 0.5)),
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.08), transparent 40%);
}

.background-glow {
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.12), transparent 24%),
    radial-gradient(circle at 80% 85%, rgba(210, 222, 255, 0.1), transparent 24%);
  pointer-events: none;
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  justify-items: center;
  padding: 26px;
}

.content-stack {
  width: min(440px, 100%);
  margin-bottom: 128px;
}

.view-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  margin: 0 auto 12px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(14, 17, 24, 0.18));
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.view-badge svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.floating-title {
  position: fixed;
  top: 28px;
  left: 50%;
  z-index: 2;
  width: min(92vw, 720px);
  margin: 0;
  transform: translateX(-50%);
  text-align: center;
  font-family: "Syne", sans-serif;
  font-size: clamp(2.6rem, 9vw, 5.8rem);
  line-height: 0.9;
  letter-spacing: 0.14em;
  text-wrap: balance;
  color: transparent;
  background: linear-gradient(180deg, #ffffff 0%, #edf2ff 48%, #cdd9ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter:
    drop-shadow(0 10px 22px rgba(0, 0, 0, 0.2))
    drop-shadow(0 0 14px rgba(214, 226, 255, 0.26));
  isolation: isolate;
  pointer-events: auto;
  white-space: nowrap;
  transform-style: preserve-3d;
  will-change: transform;
}

.floating-title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  color: rgba(220, 231, 255, 0.55);
  filter: blur(16px);
  opacity: 0.7;
}

.profile-panel,
.audio-dock,
.entry-inner {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), var(--glass));
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  transition:
    border-color 260ms ease,
    box-shadow 260ms ease,
    background 260ms ease;
}

.profile-panel,
.audio-dock {
  transform-style: preserve-3d;
  will-change: transform;
}

.profile-panel::before,
.audio-dock::before,
.entry-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 10%, rgba(255, 255, 255, 0.16) 50%, transparent 90%);
  opacity: 0;
  transform: translateX(-120%);
  transition:
    transform 420ms ease,
    opacity 220ms ease;
  pointer-events: none;
}

.profile-panel:hover,
.profile-panel:focus-within {
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow:
    0 28px 68px rgba(0, 0, 0, 0.34),
    0 0 26px rgba(214, 226, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(14, 17, 24, 0.2));
}

.audio-dock:hover,
.audio-dock:focus-within {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 28px 68px rgba(0, 0, 0, 0.34),
    0 0 24px rgba(214, 226, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(14, 17, 24, 0.2));
}

.profile-panel:hover::before,
.profile-panel:focus-within::before,
.audio-dock:hover::before,
.audio-dock:focus-within::before {
  opacity: 1;
  transform: translateX(120%);
}

.profile-panel {
  padding: 20px 22px 22px;
  border-radius: 28px;
  text-align: center;
  animation: panel-fade-in 420ms ease-out both;
}

.avatar-shell {
  width: 108px;
  aspect-ratio: 1;
  margin: 0 auto 16px;
  padding: 4px;
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08));
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.22),
    0 0 24px rgba(220, 231, 255, 0.12);
}

.avatar-image {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.panel-label,
.audio-label,
.entry-label,
.entry-status {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 247, 251, 0.62);
}

.panel-title {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(2.5rem, 8vw, 4.2rem);
  line-height: 0.9;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-title--hero {
  display: block;
  max-width: 100%;
  font-size: clamp(2.8rem, 10vw, 5rem);
  line-height: 0.88;
  letter-spacing: 0.1em;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.panel-handle {
  margin: 10px 0 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.panel-copy {
  margin: 14px 0 0;
  max-width: 32ch;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(132px, 160px));
  gap: 10px;
  margin-top: 16px;
  justify-content: center;
}

.network-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.network-link:hover,
.network-link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.network-link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.network-link span {
  display: block;
  line-height: 1;
}

.network-link.is-primary {
  background: rgba(255, 255, 255, 0.14);
}

.audio-dock {
  margin-top: 12px;
  padding: 16px;
  border-radius: 22px;
  animation: panel-fade-in 520ms ease-out both;
}

.bottom-title {
  position: relative;
  display: block;
  margin: 14px 0 0;
  text-align: center;
  font-family: "Syne", sans-serif;
  font-size: clamp(1rem, 3vw, 1.22rem);
  letter-spacing: 0.2em;
  color: transparent;
  background: linear-gradient(180deg, #ffffff 0%, #edf2ff 48%, #cdd9ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter:
    drop-shadow(0 8px 18px rgba(0, 0, 0, 0.2))
    drop-shadow(0 0 10px rgba(214, 226, 255, 0.16));
  text-transform: none;
  white-space: nowrap;
}

.bottom-title::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: -1;
  color: rgba(220, 231, 255, 0.46);
  filter: blur(12px);
  opacity: 0.7;
}

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

.audio-value {
  margin: 7px 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
}

.audio-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.audio-controls button,
.entry-button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
  cursor: pointer;
}

.audio-controls button {
  min-height: 46px;
  border-radius: 14px;
}

.audio-controls button:hover,
.audio-controls button:focus-visible,
.entry-button:hover,
.entry-button:focus-visible {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.11);
}

.audio-controls button.is-active {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
}

.volume-slider {
  width: 100%;
  margin-top: 14px;
  accent-color: #ffffff;
}

.entry-screen {
  position: fixed;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 7, 11, 0.18);
  backdrop-filter: blur(8px);
  transition:
    opacity 280ms ease,
    visibility 280ms ease;
}

.entry-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.entry-inner {
  width: min(360px, 100%);
  padding: 24px;
  border-radius: 24px;
  text-align: center;
}

.entry-button {
  width: 100%;
  min-height: 58px;
  margin-top: 16px;
  border-radius: 18px;
}

.entry-status {
  margin-top: 14px;
}

@keyframes panel-fade-in {
  from {
    opacity: 0;
    filter: blur(8px);
  }

  to {
    opacity: 1;
    filter: blur(0);
  }
}

@media (max-width: 640px) {
  body {
    overflow: auto;
  }

  .page-shell {
    padding: 14px;
  }

  .content-stack {
    margin-bottom: 52px;
  }

  .profile-panel,
  .audio-dock {
    border-radius: 22px;
  }

  .links-grid,
  .audio-controls,
  .audio-meta {
    grid-template-columns: 1fr;
  }

  .network-link {
    min-height: 48px;
  }

  .floating-title {
    top: 18px;
    width: min(94vw, 560px);
    font-size: clamp(2.2rem, 12vw, 4rem);
    letter-spacing: 0.08em;
  }
}
