:root {
  --bg-top: #52a8ff;
  --bg-bottom: #1d64d7;
  --panel: rgba(25, 74, 168, 0.56);
  --panel-strong: rgba(17, 58, 140, 0.82);
  --panel-soft: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.82);
  --text-muted: rgba(255, 255, 255, 0.68);
  --blue-dark: #1b53bb;
  --blue-mid: #2f7cff;
  --blue-light: #8cd0ff;
  --yellow: #ffd95a;
  --shadow: 0 24px 60px rgba(9, 34, 87, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Open Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 22%),
    radial-gradient(circle at bottom right, rgba(140, 208, 255, 0.22), transparent 24%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px 24px;
  background: rgba(22, 74, 170, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  color: var(--text);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #dff1ff);
  color: var(--blue-dark);
  font-weight: 800;
}

.brand-text {
  font-size: 1.05rem;
}

.site-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(9, 45, 117, 0.28);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.nav-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.nav-link.active,
.nav-link:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.22);
}

.page-shell {
  width: min(1200px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 54px;
}

.home-banner {
  margin-bottom: 22px;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.home-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-card,
.section-card,
.info-card,
.album-card,
.schedule-card,
.sidebar-card,
.conversation-shell {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-home {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  min-height: 190px;
  padding: 18px 24px;
  align-items: center;
}

.hero-title,
.section-title {
  margin: 0 0 14px;
  font-weight: 800;
  line-height: 1.04;
  color: var(--text);
}

.hero-title {
  font-size: clamp(1.3rem, 2.7vw, 2.35rem);
  max-width: 18ch;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.section-title.small {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.hero-description,
.section-muted,
.status-copy,
.info-card p,
.page-copy {
  color: var(--text-soft);
  line-height: 1.7;
}

.hero-home .hero-description {
  max-width: 58ch;
  margin: 0;
  font-size: 0.92rem;
}

.hero-home .hero-actions {
  margin-top: 4px;
}

.hero-inline-copy {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.15rem, 2.2vw, 1.8rem);
  font-weight: 800;
  line-height: 1.2;
}

.page-banner {
  margin-bottom: 22px;
  padding: 28px 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  box-shadow: var(--shadow);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(135deg, rgba(255, 217, 90, 0.22), rgba(49, 127, 255, 0.18)),
    rgba(18, 69, 161, 0.75);
}

.page-banner-products {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(135deg, rgba(255, 228, 128, 0.24), rgba(44, 193, 255, 0.18)),
    rgba(18, 69, 161, 0.75);
}

.page-banner-events {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(135deg, rgba(255, 170, 122, 0.22), rgba(95, 127, 255, 0.18)),
    rgba(18, 69, 161, 0.75);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
}

.hero-actions,
.chat-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, opacity 0.16s ease;
}

.primary-button {
  border: 0;
  background: #ffffff;
  color: var(--blue-dark);
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.primary-button:disabled,
.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.full-width {
  width: 100%;
}

.sidebar-card,
.conversation-shell,
.section-card {
  padding: 22px;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.status-dot.online {
  background: #6bf0a8;
}

.status-dot.offline {
  background: #ff9696;
}

.status-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.status-pill,
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.info-grid,
.album-grid,
.schedule-grid,
.auth-grid {
  display: grid;
  gap: 18px;
}

.info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.auth-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.info-card,
.album-card,
.schedule-card {
  padding: 20px;
}

.inline-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--blue-light);
  text-decoration: none;
  font-weight: 700;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 20px;
}

.admin-panel {
  margin-bottom: 18px;
  padding: 18px 22px;
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
}

.admin-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: #ffffff;
  font-weight: 800;
}

.admin-form-inline,
.admin-form-grid {
  display: grid;
  gap: 12px;
}

.admin-form-inline {
  grid-template-columns: minmax(240px, 320px) auto 1fr;
  align-items: end;
}

.admin-form-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: end;
}

.admin-form-inline label,
.admin-form-grid label {
  display: grid;
  gap: 8px;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
}

.admin-form-inline input,
.admin-form-grid input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 12px 14px;
  font: inherit;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.album-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.album-card-link {
  display: block;
  text-decoration: none;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.album-card-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.album-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
}

.album-body {
  padding-top: 12px;
}

.album-body h3,
.schedule-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 800;
}

.album-body p,
.schedule-card p {
  margin: 0;
  color: var(--text-soft);
}

.album-price {
  margin-top: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--yellow);
}

.buy-button {
  margin-top: 14px;
  width: 56px;
  height: 56px;
  padding: 0;
}

.icon-only-button svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.product-shell {
  display: grid;
  gap: 20px;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 24px;
  margin-top: 18px;
}

.product-cover {
  width: 100%;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}

.product-summary {
  display: grid;
  align-content: start;
  gap: 10px;
}

.album-admin-panel {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.album-admin-panel[hidden] {
  display: none !important;
}

.album-admin-panel label,
.track-editor-panel label {
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
}

.album-admin-panel input,
.track-title-input,
.track-editor-panel textarea,
.track-editor-panel select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.track-list {
  display: grid;
  gap: 16px;
}

.track-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.track-number {
  margin: 0 0 6px;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.track-copy h3 {
  margin: 0;
  font-size: 1rem;
}

.track-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.track-title-display {
  cursor: pointer;
}

.track-type-toggle {
  min-width: 96px;
}

.track-download-label {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.track-player-shell {
  display: grid;
  gap: 10px;
}

.track-player-shell audio {
  display: none;
}

.track-player-controls {
  display: grid;
  grid-template-columns: auto auto auto minmax(140px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.track-progress {
  width: 100%;
  height: 10px;
  margin: 0;
  appearance: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.track-progress::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.track-progress::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: -2px;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16);
}

.track-progress::-moz-range-track {
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.track-progress::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
}

.track-progress.downloading::-webkit-slider-runnable-track {
  background: rgba(255, 221, 107, 0.42);
}

.track-progress.downloading::-webkit-slider-thumb {
  background: #ffe17a;
  box-shadow: 0 0 0 4px rgba(255, 225, 122, 0.24);
}

.track-progress.downloading::-moz-range-track {
  background: rgba(255, 221, 107, 0.42);
}

.track-progress.downloading::-moz-range-thumb {
  background: #ffe17a;
}

.track-time {
  min-width: 90px;
  color: var(--text-muted);
  text-align: right;
  font-size: 0.84rem;
}

.track-actions {
  display: flex;
  justify-content: flex-end;
}

.track-editor-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(6, 21, 58, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.track-editor-panel textarea {
  min-height: 160px;
  resize: vertical;
}

.track-editor-player,
.track-editor-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.plan-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.plan-card.active {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.26);
}

.plan-card h2,
.plan-card p {
  margin: 0;
}

.plan-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.schedule-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.schedule-day {
  margin-bottom: 12px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.text-page {
  max-width: 920px;
}

.chat-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 20px;
}

.explore-auth-shell {
  max-width: 720px;
  margin: 0 auto;
}

.explore-auth-head {
  margin-bottom: 18px;
}

.auth-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.auth-tab {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 700;
  color: var(--text);
  background: transparent;
  cursor: pointer;
}

.auth-tab.active {
  background: #ffffff;
  color: var(--blue-dark);
}

.auth-panel {
  margin-top: 18px;
}

.auth-form-compact {
  max-width: 420px;
}

.chat-main {
  display: grid;
  gap: 16px;
}

.chat-hero {
  padding: 6px 4px;
}

.sidebar-actions {
  margin-top: 18px;
}

.history-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.history-item {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.history-item strong {
  font-size: 0.97rem;
}

.history-item span {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.history-item.active {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.24);
}

.history-empty {
  padding: 18px;
  border-radius: 22px;
  background: rgba(6, 21, 58, 0.28);
  color: var(--text-soft);
  line-height: 1.7;
}

.history-empty p {
  margin: 8px 0 0;
}

.chat-login-card {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.conversation-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 16px;
}

.conversation-title {
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 800;
}

.conversation-meta {
  margin: 0;
  color: var(--text-muted);
  text-align: right;
}

.chat-thread {
  display: grid;
  gap: 14px;
  min-height: 360px;
  max-height: 62vh;
  overflow: auto;
  padding-right: 6px;
}

.message-card {
  padding: 16px 18px;
  border-radius: 22px;
  max-width: 88%;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.message-card.user {
  justify-self: end;
  background: rgba(255, 255, 255, 0.14);
}

.message-card.assistant {
  justify-self: start;
  background: rgba(7, 30, 84, 0.52);
}

.message-role {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
}

.message-text {
  line-height: 1.8;
  color: var(--text);
  white-space: pre-wrap;
}

.chat-composer {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.composer-actions {
  justify-content: flex-end;
}

.composer-status {
  min-height: 20px;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.auth-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  font-size: 0.93rem;
  font-weight: 700;
}

.auth-form input,
.chat-composer textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.auth-form input::placeholder,
.chat-composer textarea::placeholder {
  color: var(--text-muted);
}

.chat-composer textarea {
  min-height: 82px;
  resize: none;
}

.icon-button {
  min-width: 52px;
  width: 52px;
  height: 52px;
  padding: 0;
}

.icon-button svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

#mic-button.recording {
  background: #ff6b6b;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.output-panel {
  margin-top: 18px;
  border-radius: 18px;
  padding: 14px;
  min-height: 120px;
  background: rgba(6, 21, 58, 0.45);
  color: var(--text);
  overflow: auto;
  white-space: pre-wrap;
}

.auth-shell {
  max-width: 1100px;
}

.auth-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 24px;
  padding: 28px;
}

.auth-title {
  max-width: 11ch;
}

.auth-return-card {
  padding: 20px;
  border-radius: 24px;
  background: rgba(6, 21, 58, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.message-chunk {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  animation-name: message-chunk-fade;
  animation-fill-mode: forwards;
  animation-timing-function: ease;
}

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

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

@media (max-width: 980px) {
  .hero-home,
  .chat-layout,
  .info-grid,
  .auth-grid,
  .auth-hero,
  .product-hero,
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .track-card {
    grid-template-columns: 1fr;
  }

  .admin-form-inline,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .site-header,
  .section-head,
  .conversation-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header {
    gap: 14px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .nav-link {
    min-width: 46px;
    padding: 10px 12px;
  }

  .nav-link span {
    display: none;
  }

  .conversation-meta {
    text-align: left;
  }

  .page-banner {
    padding: 24px 22px;
  }

  .track-player-controls {
    grid-template-columns: auto auto auto 1fr;
  }

  .track-time {
    grid-column: 1 / -1;
    text-align: left;
  }
}
