:root {
  --accent: #4C8DFF;
  --accent-strong: #F04452;
  --accent-light: #7AB4FF;

  --accent-rgb: 76, 141, 255;
  --accent-strong-rgb: 240, 68, 82;

  --page-bg: #08090d71;
  --panel: rgba(10, 11, 15, 0.589);
  --panel-soft: rgba(16, 17, 22, 0.438);

  --text: #F4FBFF;
  --muted: #9AAAB3;

  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(76, 141, 255, 0.28);

  --shadow: 0 30px 100px rgba(0, 0, 0, 0.68);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: dark;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--page-bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.is-locked {
  overflow: hidden;
}

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

button {
  border: 0;
}

.background,
.background-image,
.background-video,
.background-noise,
.background-vignette {
  position: fixed;
  inset: 0;
}

.background {
  z-index: -10;
  overflow: hidden;
  background: #06070A;
}

.background-image {
  background-image: var(
    --background-image,
    url("assets/background.svg")
  );
  background-position: center;
  background-size: cover;
  transform: scale(1.03);
  filter: saturate(0.92) contrast(1.08);
  animation: slowZoom 22s ease-in-out infinite alternate;
}

.background-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.background-video.is-ready {
  opacity: 1;
}

.background-noise {
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.85'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.background-vignette {
  background:
    radial-gradient(
      circle at 50% 45%,
      transparent 0 24%,
      rgba(0, 0, 0, 0.25) 56%,
      rgba(0, 0, 0, 0.76) 100%
    ),
    linear-gradient(
      180deg,
      rgba(5, 6, 10, 0.20),
      rgba(5, 6, 10, 0.72)
    );
}

.background-orb {
  position: fixed;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  opacity: 0.17;
}

.background-orb--one {
  top: -28vw;
  left: -15vw;
  background: var(--accent);
}

.background-orb--two {
  right: -25vw;
  bottom: -28vw;
  background: var(--accent-strong);
}

.cursor-glow {
  position: fixed;
  z-index: 30;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(76, 141, 255, 0.10),
    transparent 68%
  );
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 44px 24px;
}

.profile-card {
  position: relative;
  isolation: isolate;
  width: min(760px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 15px;
  background: var(--panel);
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(76, 141, 255, 0.025) inset;
  backdrop-filter: blur(24px);
  transform-style: preserve-3d;
  transition:
    transform 180ms ease,
    border-color 250ms ease,
    box-shadow 250ms ease;
}

.profile-card:hover {
  border-color: rgba(76, 141, 255, 0.30);
  box-shadow:
    var(--shadow),
    0 0 55px rgba(240, 68, 82, 0.10);
}

.card-cover {
  position: relative;
  z-index: 1;
  height: 138px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(
      120deg,
      rgba(76, 141, 255, 0.14),
      transparent 48%
    ),
    linear-gradient(
      180deg,
      #11131A,
      #08090D
    );
}

.cover-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 350ms ease;
}

.cover-media.is-ready {
  opacity: 1;
}

.cover-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(7, 8, 12, 0.08),
      rgba(7, 8, 12, 0.58)
    ),
    linear-gradient(
      90deg,
      rgba(7, 8, 12, 0.22),
      transparent 32%,
      transparent 68%,
      rgba(7, 8, 12, 0.22)
    );
  pointer-events: none;
}

.cover-grid {
  position: absolute;
  z-index: 2;
  inset: 0;
  opacity: 0.26;
  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px
    );
  background-size: 34px 34px;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 16%,
    #000 84%,
    transparent
  );
}

.cover-glow {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: -190px;
  width: 420px;
  height: 270px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(75px);
  opacity: 0.19;
  transform: translateX(-50%);
}

.cover-word {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.035);
  font-size: clamp(48px, 10vw, 84px);
  font-weight: 900;
  letter-spacing: 0.18em;
  white-space: nowrap;
  user-select: none;
}

.profile-content {
  position: relative;
  z-index: 5;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 52px 34px 31px;
}

.avatar-shell {
  position: absolute;
  z-index: 20;
  top: -47px;
  left: 50%;
  width: 94px;
  height: 94px;
  padding: 4px;
  border: 1px solid rgba(76, 141, 255, 0.28);
  border-radius: 50%;
  background: #101218;
  box-shadow:
    0 13px 35px rgba(0, 0, 0, 0.65),
    0 0 28px rgba(76, 141, 255, 0.20);
  transform: translateX(-50%);
}

.profile-avatar {
  position: relative;
  z-index: 21;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: #171A22;
}

.status-dot {
  position: absolute;
  z-index: 22;
  right: 5px;
  bottom: 7px;
  width: 15px;
  height: 15px;
  border: 3px solid #0D0F14;
  border-radius: 50%;
  background: #70FF9B;
  box-shadow: 0 0 16px rgba(112, 255, 155, 0.58);
}

.status-dot.is-offline {
  background: #777F84;
  box-shadow: none;
}

.identity {
  width: 100%;
  text-align: center;
}

.name-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.name-line h1 {
  font-size: clamp(25px, 5vw, 31px);
  font-weight: 820;
  letter-spacing: -0.04em;
}

.verified {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: var(--accent);
  filter: drop-shadow(
    0 0 7px rgba(76, 141, 255, 0.55)
  );
}

.verified svg {
  width: 100%;
  height: 100%;
  fill: rgba(76, 141, 255, 0.12);
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tagline {
  margin-top: 11px;
  color: var(--accent);
  font-family: "Courier New", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.21em;
  text-transform: uppercase;
  text-shadow:
    0 0 8px rgba(76, 141, 255, 0.35),
    0 0 18px rgba(240, 68, 82, 0.22);
}

.bio {
  width: min(520px, 100%);
  margin: 11px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.location-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: #C4D2DA;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.location-icon {
  display: grid;
  place-items: center;
  color: var(--accent);
  filter: drop-shadow(
    0 0 8px rgba(76, 141, 255, 0.60)
  );
}

.location-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.social-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--accent);
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(76, 141, 255, 0.04);
  transition:
    transform 180ms ease,
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.social-link:hover {
  color: #fff;
  border-color: rgba(76, 141, 255, 0.40);
  background: rgba(76, 141, 255, 0.16);
  box-shadow:
    0 8px 25px rgba(240, 68, 82, 0.18),
    0 0 18px rgba(76, 141, 255, 0.08);
  transform: translateY(-4px);
}

.social-link svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.music-player {
  width: 100%;
  margin-top: 23px;
  padding: 13px 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background:
    linear-gradient(
      130deg,
      rgba(76, 141, 255, 0.055),
      transparent 55%
    ),
    rgba(255, 255, 255, 0.025);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18) inset;
}

.music-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.music-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.music-copy strong {
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-copy span {
  color: var(--muted);
  font-size: 10px;
}

.external-button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  color: var(--accent);
  border-radius: 8px;
  background: rgba(76, 141, 255, 0.08);
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.external-button:hover {
  background: rgba(76, 141, 255, 0.18);
  transform: translateY(-2px);
}

.external-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.player-controls {
  display: grid;
  grid-template-columns:
    auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 9px;
  margin-top: 9px;
}

.time {
  color: #93A3AC;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.progress-track {
  position: relative;
  width: 100%;
  height: 16px;
  cursor: pointer;
  background: transparent;
}

.progress-track::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-50%);
}

.progress-fill {
  position: absolute;
  top: 50%;
  left: 0;
  width: 0;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--accent-strong),
    var(--accent-light)
  );
  box-shadow:
    0 0 8px rgba(240, 68, 82, 0.50),
    0 0 15px rgba(76, 141, 255, 0.30);
  transform: translateY(-50%);
}

.progress-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow:
    0 0 8px rgba(240, 68, 82, 0.70),
    0 0 16px rgba(76, 141, 255, 0.45);
  transform: translate(-50%, -50%);
}

.player-button {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  color: #fff;
  border-radius: 9px;
  background: linear-gradient(
    135deg,
    var(--accent),
    var(--accent-strong)
  );
  box-shadow:
    0 0 18px rgba(240, 68, 82, 0.28);
  cursor: pointer;
  transition:
    transform 180ms ease,
    filter 180ms ease,
    box-shadow 180ms ease;
}

.player-button:hover {
  filter: brightness(1.14);
  box-shadow:
    0 0 24px rgba(240, 68, 82, 0.42);
  transform: translateY(-2px);
}

.player-button svg{
  width: 16px;
  height: 16px;
  fill: #ffffff;
}

.volume-button svg {
  width: 16px;
  height: 16px;
  fill: #ffffffd2;
}

/* YouTube/Furkoo stílusú hangerőszabályzó */

.volume-control {
  --volume-open-width: 112px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 31px;
  height: 31px;
  min-width: 31px;
  overflow: hidden;
  border-radius: 9px;
  border: 1px solid #ffffff2c;
  transition:
    width 220ms cubic-bezier(0.2, 0.75, 0.25, 1),
    background 180ms ease;
}

.volume-control:hover,
.volume-control:focus-within,
.volume-control.is-open {
  width: var(--volume-open-width);
  background: rgba(76, 141, 255, 0.055);
}

.volume-button {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  color: var(--accent);
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  transition:
    color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.volume-button:hover {
  color: #fff;
  background: rgba(76, 141, 255, 0.14);
}

.volume-slider-shell {
  width: 0;
  min-width: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateX(-7px);
  transition:
    width 220ms cubic-bezier(0.2, 0.75, 0.25, 1),
    opacity 130ms ease,
    transform 220ms ease;
}

.volume-control:hover .volume-slider-shell,
.volume-control:focus-within .volume-slider-shell,
.volume-control.is-open .volume-slider-shell {
  width: 72px;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.volume-slider {
  --volume-percent: 32%;
  display: block;
  width: 68px;
  height: 18px;
  margin: 0 4px 0 1px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background: transparent;
}

.volume-slider::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--accent) 0,
    var(--accent) var(--volume-percent),
    rgba(255, 255, 255, 0.13)
      var(--volume-percent),
    rgba(255, 255, 255, 0.13) 100%
  );
}

.volume-slider::-webkit-slider-thumb {
  width: 11px;
  height: 11px;
  margin-top: -4px;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 3px rgba(76, 141, 255, 0.18),
    0 0 12px rgba(240, 68, 82, 0.55);
  transition: transform 120ms ease;
}

.volume-slider:hover::-webkit-slider-thumb,
.volume-slider:focus-visible::-webkit-slider-thumb {
  transform: scale(1.12);
}

.volume-slider::-moz-range-track {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.volume-slider::-moz-range-progress {
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
}

.volume-slider::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 3px rgba(76, 141, 255, 0.18),
    0 0 12px rgba(240, 68, 82, 0.55);
}

.volume-slider:focus-visible {
  outline: none;
}

.entry-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(6, 7, 11, 0.82);
  backdrop-filter: blur(18px);
  transition:
    opacity 650ms ease,
    visibility 650ms ease;
}

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

.entry-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 30px 38px;
  color: #fff;
  border: 1px solid rgba(76, 141, 255, 0.25);
  border-radius: 15px;
  background: rgba(12, 13, 18, 0.84);
  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.52),
    0 0 50px rgba(240, 68, 82, 0.10);
  cursor: pointer;
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    background 200ms ease,
    box-shadow 200ms ease;
}

.entry-button:hover {
  border-color: rgba(76, 141, 255, 0.55);
  background: rgba(20, 22, 29, 0.94);
  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.52),
    0 0 55px rgba(240, 68, 82, 0.16);
  transform: translateY(-4px);
}

.entry-symbol {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 4px;
  color: var(--accent);
  filter: drop-shadow(
    0 0 14px rgba(76, 141, 255, 0.65)
  );
}

.entry-symbol svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.entry-button strong {
  font-size: 15px;
  letter-spacing: 0.01em;
}

.entry-button > span:last-child {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.corner-badge {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  color: #C4D2DA;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(10, 11, 15, 0.82);
  backdrop-filter: blur(14px);
}

.corner-badge span {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow:
    0 0 8px rgba(76, 141, 255, 0.75),
    0 0 16px rgba(240, 68, 82, 0.45);
  transform: rotate(45deg);
}

.corner-badge strong {
  font-size: 9px;
  letter-spacing: 0.12em;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 25px;
  z-index: 120;
  max-width: calc(100% - 32px);
  padding: 11px 15px;
  color: #F4FBFF;
  border: 1px solid rgba(76, 141, 255, 0.28);
  border-radius: 10px;
  background: rgba(10, 11, 16, 0.96);
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.50),
    0 0 25px rgba(240, 68, 82, 0.06);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition:
    opacity 200ms ease,
    transform 200ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes slowZoom {
  from {
    transform: scale(1.03);
  }

  to {
    transform: scale(1.085);
  }
}

@media (max-width: 700px) {
  .page {
    padding: 28px 14px 70px;
  }

  .profile-card {
    border-radius: 13px;
  }

  .card-cover {
    height: 118px;
  }

  .profile-content {
    padding: 49px 17px 18px;
  }

  .avatar-shell {
    top: -43px;
    width: 86px;
    height: 86px;
  }

  .bio {
    font-size: 12px;
  }

  .music-player {
    padding: 12px;
  }

  .player-controls {
    grid-template-columns:
      auto minmax(0, 1fr) auto auto;
    gap: 8px;
  }

  .player-controls .time:nth-of-type(2) {
    display: none;
  }

  .volume-control {
    --volume-open-width: 104px;
  }

  .corner-badge {
    right: 12px;
    bottom: 12px;
  }
}

@media (max-width: 440px) {
  .social-links {
    gap: 7px;
  }

  .social-link {
    width: 36px;
    height: 36px;
  }

  .music-copy strong {
    max-width: 190px;
  }

  .time {
    display: none;
  }

  .player-controls {
    grid-template-columns:
      minmax(0, 1fr) auto auto;
  }

  .volume-control {
    --volume-open-width: 99px;
  }

  .volume-control:hover .volume-slider-shell,
  .volume-control:focus-within .volume-slider-shell,
  .volume-control.is-open .volume-slider-shell {
    width: 60px;
  }

  .volume-slider {
    width: 56px;
  }
}

@media (hover: none), (pointer: coarse) {
  .volume-control {
    width: var(--volume-open-width);
    background: rgba(76, 141, 255, 0.055);
  }

  .volume-control .volume-slider-shell {
    width: 72px;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }
}

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