@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@500;700;800;900&display=swap");

:root {
  color-scheme: dark;
  --panel: #32104f;
  --panel-deep: #190827;
  --pink: #ff64d7;
  --violet: #9d55ff;
  --lilac: #d9b8ff;
  --ink: #13051f;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--ink);
}

body {
  min-height: 100svh;
  margin: 0;
  color: white;
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

.scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #35105c;
}

.scene__image {
  position: absolute;
  inset: -3%;
  background: url("assets/alke-sky-background.png") center / cover no-repeat;
  filter: saturate(1.12) contrast(1.02);
  transform: scale(1.03);
}

.scene__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 88%, rgba(255, 143, 229, 0.25), transparent 38%),
    radial-gradient(circle at 18% 42%, rgba(255, 88, 205, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(23, 6, 45, 0.2), rgba(14, 2, 25, 0.56));
  backdrop-filter: blur(1px);
}

.stars span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff2b6;
  box-shadow: 0 0 10px #fff, 0 0 22px #ff9cf2;
  animation: twinkle 2.8s var(--delay) ease-in-out infinite;
}

.profile {
  width: 100%;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 36px 18px;
}

.card {
  width: min(100%, 460px);
  padding: 28px 30px 32px;
  text-align: center;
  border: 2px solid rgba(235, 192, 255, 0.55);
  border-radius: 32px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 91, 218, 0.24), transparent 34%),
    radial-gradient(circle at 80% 20%, rgba(160, 82, 255, 0.2), transparent 38%),
    linear-gradient(145deg, rgba(57, 17, 86, 0.9), rgba(30, 8, 49, 0.94));
  box-shadow:
    0 28px 85px rgba(12, 3, 22, 0.55),
    0 0 38px rgba(198, 86, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(18px);
}

.avatar-wrap {
  width: 112px;
  margin: -2px auto 12px;
}

.avatar {
  width: 112px;
  height: 112px;
  object-fit: cover;
  aspect-ratio: 1;
  display: block;
  border: 5px solid rgba(255, 245, 255, 0.96);
  border-radius: 28px;
  box-shadow:
    0 14px 28px rgba(7, 0, 13, 0.42),
    0 0 0 5px rgba(230, 124, 255, 0.28),
    0 0 22px rgba(255, 132, 234, 0.42);
}

.brand-logo {
  margin: 0 auto;
  width: min(100%, 285px);
  line-height: 0;
  filter:
    drop-shadow(0 7px 0 rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 16px rgba(221, 162, 255, 0.28));
}

.brand-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.bio {
  max-width: 350px;
  margin: 12px auto 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
  line-height: 1.55;
}

.links {
  display: grid;
  gap: 12px;
}

.social {
  position: relative;
  min-height: 70px;
  display: grid;
  grid-template-columns: 48px 1fr 30px;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: #fff;
  text-align: left;
  text-decoration: none;
  border: 1px solid rgba(237, 199, 255, 0.24);
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.095);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 12px 26px rgba(10, 1, 18, 0.18);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.social::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--glow), rgba(255, 255, 255, 0.04), transparent 70%);
  opacity: 0.18;
  transition: opacity 180ms ease;
}

.social:hover,
.social:focus-visible {
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(255, 222, 255, 0.6);
  background: rgba(255, 255, 255, 0.15);
  outline: none;
}

.social:hover::before,
.social:focus-visible::before {
  opacity: 0.28;
}

.social--youtube {
  --glow: #ff3040;
}

.social--tiktok {
  --glow: #25f4ee;
}

.social--instagram {
  --glow: #e44d9c;
}

.social__icon,
.social__text,
.social__arrow {
  position: relative;
  z-index: 1;
}

.social__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.07));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.social__icon svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.social__text {
  display: flex;
  flex-direction: column;
}

.social__text small {
  color: rgba(233, 211, 255, 0.72);
  font-size: 0.7rem;
  line-height: 1;
}

.social__text strong {
  margin-top: 3px;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.15;
}

.social__arrow {
  color: rgba(246, 222, 255, 0.7);
  font-size: 1.35rem;
}

.latest {
  margin-top: 24px;
  padding-top: 21px;
  border-top: 1px solid rgba(238, 204, 255, 0.22);
  text-align: left;
}

.latest__heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}

.latest__heading h2 {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.latest__live {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #ff67d8;
  box-shadow: 0 0 0 4px rgba(255, 103, 216, 0.15), 0 0 13px rgba(255, 103, 216, 0.78);
  animation: pulse 2s ease-in-out infinite;
}

.latest__video {
  position: relative;
  aspect-ratio: 16 / 9;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(238, 204, 255, 0.26);
  border-radius: 19px;
  background: #160622;
  box-shadow: 0 12px 30px rgba(8, 1, 13, 0.34);
}

.latest__video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(8, 2, 14, 0.78));
}

.latest__video img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 250ms ease, filter 250ms ease;
}

.latest__video:hover img,
.latest__video:focus-visible img {
  filter: brightness(0.85);
  transform: scale(1.035);
}

.latest__video:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.78);
  outline-offset: 3px;
}

.latest__play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 40px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff2b74, #b03dff);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.42);
  transform: translate(-50%, -50%);
}

.latest__play svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.latest__watch {
  position: absolute;
  z-index: 2;
  left: 14px;
  bottom: 11px;
  color: #fff;
  font-size: 0.73rem;
  font-weight: 900;
}

.latest__title {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
}

.latest__channel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  color: rgba(235, 210, 255, 0.78);
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
  transition: color 180ms ease;
}

.latest__channel:hover,
.latest__channel:focus-visible {
  color: #fff;
  outline: none;
}

.footer {
  margin: 22px 0 -9px;
  color: rgba(239, 214, 255, 0.48);
  font-size: 0.72rem;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.75); }
  50% { opacity: 1; transform: scale(1.35); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.65; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.08); }
}

@media (max-width: 520px) {
  .profile {
    align-items: start;
    padding: 20px 12px;
  }

  .card {
    padding: 27px 18px 24px;
    border-radius: 27px;
  }

  .avatar-wrap,
  .avatar {
    width: 90px;
  }

  .avatar {
    height: 90px;
    border-radius: 23px;
  }

  .bio {
    margin-bottom: 20px;
  }

  .social {
    min-height: 66px;
  }

  .latest {
    margin-top: 21px;
  }

  .scene__image {
    background-position: 49% center;
  }
}

@media (max-height: 720px) and (min-width: 521px) {
  .profile {
    padding-block: 18px;
  }

  .card {
    padding-block: 24px;
  }

  .avatar-wrap,
  .avatar {
    width: 82px;
  }

  .bio {
    margin-block: 12px 17px;
  }

  .social {
    min-height: 62px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
