:root {
  --bg: #08090d;
  --panel: rgba(18, 20, 28, 0.72);
  --line: rgba(255, 255, 255, 0.14);
  --text: #fbfbff;
  --muted: #b9bdca;
  --youtube: #ff0033;
  --instagram: #d946ef;
  --discord: #5865f2;
  --gold: #ffb84d;
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 184, 77, 0.18), transparent 35%),
    linear-gradient(145deg, #07080d 0%, #111018 48%, #07080d 100%);
  font-family: Rajdhani, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  overflow-y: auto;
}

body.has-custom-background {
  background: #05060a;
}

body.theme-ember {
  --youtube: #ff7a18;
  --instagram: #ff2f6d;
  --discord: #9b5cff;
  --gold: #ffd166;
}

body.theme-ocean {
  --youtube: #00d4ff;
  --instagram: #4ade80;
  --discord: #38bdf8;
  --gold: #a7f3d0;
}

.site-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  pointer-events: none;
}

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

#starfield,
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

#starfield {
  z-index: 1;
}

.ambient {
  z-index: 1;
  filter: blur(54px);
  opacity: 0.26;
}

body.has-custom-background #starfield {
  opacity: 0.34;
}

body.has-custom-background .ambient {
  opacity: 0.2;
}

.ambient-red {
  width: 34vw;
  height: 34vw;
  left: -12vw;
  top: 10vh;
  border-radius: 50%;
  background: var(--youtube);
}

.ambient-purple {
  width: 30vw;
  height: 30vw;
  right: -10vw;
  top: 18vh;
  border-radius: 50%;
  background: var(--instagram);
}

.ambient-blue {
  width: 32vw;
  height: 32vw;
  left: 42vw;
  bottom: -18vw;
  border-radius: 50%;
  background: var(--discord);
}

.page-shell {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 22px 0 54px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-family: Orbitron, Rajdhani, sans-serif;
  font-size: 1rem;
  font-weight: 800;
}

.logo-text,
.logo-title {
  font-family: Orbitron, Rajdhani, sans-serif;
  letter-spacing: 0.01em;
  color: #f8fbff;
  text-shadow: 0 0 18px rgba(88, 101, 242, 0.5), 0 0 30px rgba(255, 0, 51, 0.25);
}

.logo-text {
  font-size: 1.45rem;
  line-height: 1;
}

.brand img {
  width: 40px;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 28px rgba(255, 184, 77, 0.4);
}

.nav-links {
  gap: 6px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 380px);
  align-items: center;
  gap: 44px;
  min-height: calc(100vh - 100px);
  padding: 42px 0 58px;
}

.eyebrow,
.card-label {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Manrope, Inter, sans-serif;
  letter-spacing: 0;
}

.logo-title {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(3.2rem, 9vw, 7.4rem);
  line-height: 0.9;
  font-weight: 400;
}

h2 {
  font-family: Orbitron, Rajdhani, sans-serif;
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.05;
  font-weight: 900;
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.18;
}

.subtitle,
.profile-card p,
.video-info p {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.75;
}

.subtitle {
  max-width: 690px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.creator-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.25);
  font-weight: 900;
  line-height: 1.25;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.creator-btn:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.36);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.35);
}

.creator-btn.primary {
  border-color: rgba(255, 0, 51, 0.5);
  background: linear-gradient(135deg, rgba(255, 0, 51, 0.9), rgba(217, 70, 239, 0.65));
}

.creator-btn.small {
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.92rem;
}

.brand-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 34px;
  min-width: 34px;
  aspect-ratio: 1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.youtube-icon,
.instagram-icon,
.discord-icon {
  background: rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.08),
    0 0 22px color-mix(in srgb, currentColor 58%, transparent);
}

.youtube-icon {
  color: var(--youtube);
  border: 1px solid rgba(255, 0, 51, 0.45);
}

.youtube-icon::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid currentColor;
}

.instagram-icon {
  color: var(--instagram);
  border: 1px solid rgba(217, 70, 239, 0.5);
}

.instagram-icon::before {
  content: "";
  width: 11px;
  aspect-ratio: 1;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.instagram-icon::after {
  content: "";
  position: absolute;
  width: 4px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: currentColor;
  transform: translate(8px, -8px);
}

.discord-icon {
  color: var(--discord);
  border: 1px solid rgba(88, 101, 242, 0.52);
}

.discord-icon::before {
  content: "";
  width: 19px;
  height: 13px;
  border-radius: 9px 9px 6px 6px;
  background:
    radial-gradient(circle at 35% 55%, #5865f2 0 2px, transparent 2.5px),
    radial-gradient(circle at 65% 55%, #5865f2 0 2px, transparent 2.5px),
    currentColor;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 680px;
}

.stats div,
.top-panel,
.profile-card,
.subscriber-panel,
.social-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, var(--panel), rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(22px);
}

.top-panel {
  display: grid;
  grid-template-columns: auto minmax(180px, 0.34fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 22px 0 10px;
  padding: 16px 18px;
  border-radius: 14px;
}

.top-panel .card-label,
.top-panel h2,
.top-panel p {
  margin: 0;
}

.top-panel h2 {
  font-size: clamp(1.05rem, 2vw, 1.45rem);
}

.top-panel p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.4;
}

.stats div {
  padding: 16px;
  border-radius: 8px;
}

.stats strong,
.stats span {
  display: block;
}

.stats strong {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 1rem;
}

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

.profile-card {
  position: relative;
  padding: 26px;
  border-radius: 18px;
  text-align: center;
  overflow: hidden;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 184, 77, 0.24), transparent 42%),
    linear-gradient(120deg, rgba(255, 0, 51, 0.14), rgba(88, 101, 242, 0.12));
}

.profile-card > * {
  position: relative;
}

.avatar-frame {
  width: min(236px, 70vw);
  aspect-ratio: 1;
  margin: 0 auto 24px;
  padding: 7px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--youtube), var(--instagram), var(--discord), var(--gold), var(--youtube));
  box-shadow:
    0 0 36px rgba(255, 184, 77, 0.34),
    0 0 70px rgba(217, 70, 239, 0.18);
}

.avatar-frame img {
  width: 100%;
  height: 100%;
  border: 6px solid rgba(8, 9, 13, 0.92);
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.profile-card h2 {
  font-size: 1.75rem;
}

.profile-discord-btn {
  margin: 14px 0 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 184, 77, 0.45);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 184, 77, 0.1);
  font-weight: 800;
}

.status-pill span {
  width: 10px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #36f59b;
  box-shadow: 0 0 18px #36f59b;
}

.content-band {
  padding: 42px 0;
}

.subscriber-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  width: 100%;
  max-width: 680px;
  min-height: 86px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
}

.subscriber-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.subscriber-item + .subscriber-item {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 16px;
}

.subscriber-panel .brand-icon {
  width: 46px;
  min-width: 46px;
}

.subscriber-copy {
  display: grid;
  gap: 2px;
}

.subscriber-copy small,
.subscriber-copy span {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.2;
}

.subscriber-copy small {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 0.74rem;
  min-width: 0;
}

.subscriber-copy .channel-name {
  color: var(--text);
}

.subscriber-copy .channel-handle {
  color: var(--youtube);
}

.subscriber-copy strong {
  color: var(--text);
  font-family: Orbitron, Rajdhani, sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 0.95;
}

.section-heading {
  margin-bottom: 22px;
}

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

.social-card {
  min-height: 176px;
  padding: 22px;
  border-radius: 10px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.social-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.36);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45), 0 0 26px rgba(255, 255, 255, 0.12);
}

.social-card .brand-icon {
  width: 52px;
  min-width: 52px;
  margin-bottom: 18px;
}

.social-card strong,
.social-card small {
  display: block;
}

.social-card strong {
  margin-bottom: 8px;
  font-family: Orbitron, Rajdhani, sans-serif;
  font-size: 1.16rem;
}

.social-card small {
  max-width: 24ch;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.youtube {
  border-color: rgba(255, 0, 51, 0.3);
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 0, 51, 0.18), transparent 36%),
    linear-gradient(145deg, var(--panel), rgba(255, 255, 255, 0.04));
}

.instagram {
  border-color: rgba(217, 70, 239, 0.28);
  background:
    radial-gradient(circle at 85% 15%, rgba(217, 70, 239, 0.18), transparent 36%),
    linear-gradient(145deg, var(--panel), rgba(255, 255, 255, 0.04));
}

.discord {
  border-color: rgba(88, 101, 242, 0.35);
  background:
    radial-gradient(circle at 85% 15%, rgba(88, 101, 242, 0.2), transparent 36%),
    linear-gradient(145deg, var(--panel), rgba(255, 255, 255, 0.04));
}

@media (max-width: 900px) {
  .page-shell {
    width: min(100% - 28px, 720px);
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 30px;
  }

  .profile-card {
    max-width: 460px;
    margin: 0 auto;
  }

  .top-panel {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 22px, 440px);
    padding-top: 12px;
  }

  .brand {
    font-size: 0.95rem;
  }

  .brand img {
    width: 36px;
  }

  .topbar {
    gap: 12px;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 5px;
  }

  .nav-links a {
    display: grid;
    min-height: 40px;
    place-items: center;
    padding: 8px 6px;
    font-size: 0.78rem;
    text-align: center;
  }

  .hero {
    gap: 28px;
    padding: 26px 0 34px;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 4.6rem);
  }

  h2 {
    font-size: clamp(1.65rem, 10vw, 2.25rem);
  }

  .subtitle,
  .profile-card p,
  .video-info p {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .creator-btn {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    font-size: 0.92rem;
  }

  .stats,
  .social-grid {
    grid-template-columns: 1fr;
  }

  .stats div {
    padding: 14px;
  }

  .profile-card,
  .social-card {
    padding: 16px;
  }

  .avatar-frame {
    width: min(220px, 78vw);
  }

  .content-band {
    padding: 30px 0;
  }

  .subscriber-panel {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: 82px;
    padding: 13px 14px;
  }

  .subscriber-item + .subscriber-item {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 0;
    padding-top: 14px;
    padding-left: 0;
  }

  .subscriber-panel .brand-icon {
    width: 42px;
    min-width: 42px;
  }
}
