:root {
  --bg-top: #f5fdff;
  --bg-mid: #c2efff;
  --bg-bottom: #88cff2;

  --shell-border: rgba(255, 255, 255, 0.66);
  --shell-fill: rgba(236, 248, 255, 0.2);

  --panel-fill: rgba(255, 255, 255, 0.22);
  --panel-fill-strong: rgba(255, 255, 255, 0.34);
  --panel-border: rgba(255, 255, 255, 0.74);

  --inset-fill: rgba(255, 255, 255, 0.24);
  --inset-border: rgba(255, 255, 255, 0.58);

  --text-dark: #102033;
  --text-mid: #38536a;
  --text-soft: #6e859a;
  --text-bright: #eff9ff;

  --white-glow: 0 0 52px rgba(255, 255, 255, 0.52);
  --blue-glow: 0 26px 80px rgba(91, 189, 247, 0.22);
  --panel-shadow:
    0 20px 48px rgba(53, 126, 173, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(255, 255, 255, 0.34);

  --shell-shadow:
    0 32px 100px rgba(41, 113, 157, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(255, 255, 255, 0.25);

  --silver-grad:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(212, 224, 233, 0.72) 48%, rgba(241, 250, 255, 0.9) 100%);
  --chrome-grad:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(193, 206, 216, 0.78) 36%, rgba(233, 244, 251, 0.95) 64%, rgba(179, 215, 236, 0.78) 100%);

  --radius-shell: 34px;
  --radius-panel: 26px;
  --radius-inset: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Exo 2", Arial, sans-serif;
  color: var(--text-dark);
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.96), transparent 18%),
    radial-gradient(circle at 82% 12%, rgba(255, 255, 255, 0.7), transparent 14%),
    radial-gradient(circle at 55% 82%, rgba(149, 223, 255, 0.45), transparent 28%),
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.18), transparent 38%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 44%, var(--bg-bottom) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(24px);
  opacity: 0.8;
}

.atmosphere-1 {
  top: 60px;
  left: -50px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
}

.atmosphere-2 {
  right: 4%;
  top: 16%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(186, 237, 255, 0.95), rgba(186, 237, 255, 0));
}

.atmosphere-3 {
  bottom: 8%;
  left: 10%;
  width: 360px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0));
}

.atmosphere-4 {
  top: 44%;
  right: 12%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(220, 248, 255, 0.74), rgba(220, 248, 255, 0));
}

.portal-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto;
  padding: 18px;
  position: relative;
  border-radius: var(--radius-shell);
  border: 1px solid var(--shell-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(219, 242, 255, 0.14)),
    var(--shell-fill);
  box-shadow: var(--shell-shadow), var(--white-glow);
  backdrop-filter: blur(26px) saturate(1.12);
  -webkit-backdrop-filter: blur(26px) saturate(1.12);
  overflow: hidden;
}

.portal-shell::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: calc(var(--radius-shell) - 10px);
  border: 1px solid rgba(255, 255, 255, 0.34);
  pointer-events: none;
}

.portal-shell::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 10px;
  height: 90px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0));
  filter: blur(8px);
  opacity: 0.7;
  pointer-events: none;
}

.panel {
  position: relative;
  border-radius: var(--radius-panel);
  border: 1px solid var(--panel-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(207, 233, 248, 0.16)),
    var(--panel-fill);
  box-shadow: var(--panel-shadow), var(--blue-glow);
  backdrop-filter: blur(22px) saturate(1.16);
  -webkit-backdrop-filter: blur(22px) saturate(1.16);
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.12) 24%, transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 22%);
  pointer-events: none;
}

.panel::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 10px;
  height: 1px;
  background: rgba(255, 255, 255, 0.78);
  opacity: 0.7;
  pointer-events: none;
}

.inset-panel {
  position: relative;
  border-radius: var(--radius-inset);
  border: 1px solid var(--inset-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(212, 236, 249, 0.14)),
    var(--inset-fill);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -10px 26px rgba(112, 183, 230, 0.08),
    0 16px 34px rgba(92, 168, 214, 0.08);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  margin-bottom: 18px;
}

.topbar__brand,
.topbar__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.topbar__label {
  font-family: "Exo 2", Arial, sans-serif;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-mid);
  font-weight: 600;
}

.ui-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #ffffff, #93e4ff 58%, #4fa8d8 100%);
  box-shadow:
    0 0 18px rgba(116, 208, 255, 0.82),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.pill,
.signal-pill,
.module__badge,
.track-card__tag,
.capsule-button,
.info-chip,
.stat-chip,
.track-card__meta-pill {
  border-radius: 999px;
}

.pill,
.signal-pill,
.module__badge,
.track-card__tag,
.track-card__meta-pill {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: var(--silver-grad);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(163, 181, 194, 0.28),
    0 6px 16px rgba(128, 181, 214, 0.12);
  color: var(--text-mid);
  font-family: "Exo 2", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.portal-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.profile-panel,
.hero-panel,
.module {
  padding: 22px;
}

.profile-panel__topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.profile-panel__code {
  color: var(--text-soft);
  font-family: "Exo 2", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.profile-panel {
  position: relative;
}

.profile-panel__orb {
  width: 140px;
  height: 140px;
  margin-bottom: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.3) 38%, rgba(119, 200, 255, 0.7) 70%, rgba(95, 150, 191, 0.18) 100%);
  box-shadow:
    inset 0 10px 28px rgba(255, 255, 255, 0.58),
    inset 0 -16px 22px rgba(115, 189, 230, 0.14),
    0 14px 40px rgba(81, 162, 214, 0.24),
    0 0 28px rgba(255, 255, 255, 0.46);
}

.profile-panel__orb::after {
  content: "";
  position: absolute;
  width: 70px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  transform: translate(18px, 18px) rotate(-16deg);
  filter: blur(4px);
}

.profile-panel h1 {
  margin: 6px 0 10px;
  font-family: "Exo 2", Arial, sans-serif;
  font-size: clamp(2.3rem, 4vw, 3.5rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: #8aa0b8;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72),
    0 0 26px rgba(255, 255, 255, 0.38);
}

.profile-panel__subtitle {
  margin: 0 0 18px;
  color: var(--text-mid);
  font-size: 1rem;
}

.micro-label,
.track-card__index,
.stat-chip__label,
.info-chip__label,
.player-frame__label {
  margin: 0;
  font-family: "Exo 2", Arial, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-soft);
  font-weight: 700;
}

.profile-panel__stats {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.stat-chip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: var(--chrome-grad);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(180, 199, 212, 0.26);
}

.stat-chip__value {
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 700;
}

.profile-panel__micro-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.micro-module {
  padding: 14px;
}

.micro-module strong {
  display: block;
  margin-top: 6px;
  color: var(--text-dark);
  font-family: "Exo 2", Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-panel__blurb {
  padding: 16px;
}

.profile-panel__blurb p:last-child {
  margin: 8px 0 0;
  color: var(--text-mid);
  line-height: 1.68;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}

.hero-panel__header,
.module__header,
.track-card__top,
.hero-panel__footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.hero-panel__header,
.module__header,
.track-card__top {
  align-items: start;
}

.hero-panel h2,
.module h3 {
  margin: 6px 0 0;
}

.hero-panel h2 {
  font-family: "Exo 2", Arial, sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--text-dark);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.38);
}

.module h3 {
  font-family: "Exo 2", Arial, sans-serif;
  font-size: 2rem;
  letter-spacing: 0.02em;
  color: var(--text-dark);
}

.hero-panel__text {
  max-width: 700px;
  margin: 16px 0 22px;
  font-size: 1.08rem;
  line-height: 1.72;
  color: var(--text-mid);
}

.capsule-button {
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: var(--chrome-grad);
  color: var(--text-mid);
  padding: 12px 16px;
  font-family: "Exo 2", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1px 0 rgba(158, 177, 189, 0.32),
    0 10px 24px rgba(111, 180, 224, 0.14);
}

.hero-panel__player {
  padding: 18px;
}

.hero-panel__player-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.hero-panel__time,
.track-card__meta-text {
  color: var(--text-soft);
  font-size: 13px;
}

.player-frame {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(219, 240, 252, 0.18)),
    rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -8px 18px rgba(112, 182, 226, 0.06);
}

.player-frame__strip,
.track-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.player-frame__quality {
  color: var(--text-soft);
  font-family: "Exo 2", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-panel__footer {
  margin-top: 18px;
  flex-wrap: wrap;
}

.info-chip {
  min-width: 220px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(211, 235, 247, 0.16)),
    rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 8px 18px rgba(114, 182, 223, 0.08);
}

.info-chip__value {
  display: block;
  margin-top: 6px;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 700;
}

.module-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
}

.module {
  min-width: 0;
}

.module__content {
  padding: 18px;
  color: var(--text-mid);
  line-height: 1.78;
}

.track-stack {
  display: grid;
  gap: 14px;
}

.track-card {
  padding: 18px;
}

.track-card h4 {
  margin: 6px 0 0;
  font-family: "Exo 2", Arial, sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.03em;
  color: var(--text-dark);
}

.track-card__text {
  margin: 14px 0 14px;
  color: var(--text-mid);
  line-height: 1.65;
}

.track-card__player {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(216, 239, 251, 0.12)),
    rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -8px 18px rgba(111, 182, 226, 0.06);
}

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

.mood-tile {
  position: relative;
  min-height: 140px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  display: flex;
  align-items: end;
  overflow: hidden;
  font-family: "Exo 2", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f7fcff;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 14px 28px rgba(88, 162, 214, 0.14);
}

.mood-tile video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mood-tile span {
  position: relative;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mood-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 35%),
    linear-gradient(180deg, rgba(8, 20, 32, 0) 35%, rgba(8, 20, 32, 0.34) 100%);
}

.footer-panel__content {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px;
}

.footer-link {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: var(--chrome-grad);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 8px 18px rgba(117, 182, 216, 0.1);
  color: var(--text-mid);
  text-decoration: none;
  font-family: "Exo 2", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

audio {
  width: 100%;
  display: block;
  filter: saturate(1.04) contrast(1.02);
}

@media (max-width: 980px) {
  .portal-grid,
  .module-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel h2 {
    font-size: 3rem;
  }
}

@media (max-width: 640px) {
  .portal-shell {
    width: min(100% - 18px, 100%);
    margin: 10px auto 18px;
    padding: 12px;
    border-radius: 24px;
  }

  .topbar,
  .profile-panel,
  .hero-panel,
  .module {
    padding: 16px;
  }

  .topbar,
  .hero-panel__header,
  .module__header,
  .hero-panel__footer,
  .player-frame__strip,
  .track-card__meta,
  .profile-panel__topline {
    flex-direction: column;
    align-items: stretch;
  }

  .mood-grid,
  .profile-panel__micro-grid {
    grid-template-columns: 1fr;
  }

  .profile-panel h1 {
    font-size: 2.3rem;
  }

  .hero-panel h2 {
    font-size: 2.5rem;
  }
}
