:root {
  --bg:        #080808;
  --bg2:       #111111;
  --bg3:       #161616;
  --border:    #222222;
  --neon:      #00ff88;
  --neon2:     #ff0055;
  --neon3:     #7b4fff;
  --text:      #f0f0f0;
  --muted:     #555;
  --font-head: 'Bebas Neue', sans-serif;
  --font-body: 'Space Mono', monospace;

  --yt:        #ff0000;
  --tw:        #9146ff;
  --tt:        #69c9d0;
  --dc:        #5865f2;
  --rb:        #e3000f;
  --kf:        #ff5e5b;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
}

.noise {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.04;
}

.scanlines {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(
    to bottom, transparent, transparent 2px,
    rgba(0,0,0,0.12) 2px, rgba(0,0,0,0.12) 4px
  );
  opacity: 0.35;
}

.banner-bg {
  position: absolute;
  top: -70px;
  left: 0;
  right: 0;
  height: 600px;
  z-index: 0;
  background-image: url('background.png');
  background-size: cover;
  background-position: center top;
  filter: brightness(0.35);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
}

.container {
  position: relative; z-index: 1;
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 2rem;
  gap: 1rem;
  animation: fadeUp 0.6s ease both;
  position: relative;
}

.avatar-wrap {
  position: relative;
  width: 100px; height: 100px;
  overflow: visible;
}

.avatar, .avatar-fallback {
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: cover;
  position: relative; z-index: 1;
}

.avatar-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--bg2);
  font-size: 2.5rem;
  color: var(--muted);
}

.avatar-glow {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  z-index: 0;
  background: radial-gradient(circle, #ff2d78 0%, #a259ff 50%, transparent 72%);
  filter: blur(14px) saturate(1.4) hue-rotate(0deg);
  opacity: 0.85;
  animation: glowCycle 16s linear infinite;
}

@keyframes glowCycle {
  0%   { filter: blur(14px) saturate(1.4) hue-rotate(0deg); }
  100% { filter: blur(14px) saturate(1.4) hue-rotate(360deg); }
}

.creator-name {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 10vw, 4rem);
  letter-spacing: 0.06em;
  line-height: 1;
  text-shadow: 0 0 30px rgba(0,255,136,0.25);
}

.bio {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}

.video-section {
  margin-bottom: 1.75rem;
  animation: fadeUp 0.5s 0.1s ease both;
}

.video-window {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  display: block;
  text-decoration: none;
}

.video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
  z-index: 1;
}

.video-window:hover .video-overlay {
  background: rgba(0, 0, 0, 0.4);
}

.video-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  border: 2px solid rgba(255,255,255,0.2);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.video-play-btn svg {
  width: 26px; height: 26px;
  margin-left: 3px;
}

.video-window:hover .video-play-btn {
  background: rgba(255,0,0,0.85);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-yt-label {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.video-window:hover .video-yt-label {
  opacity: 1;
}

.video-featured-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  z-index: 3;
  backdrop-filter: blur(4px);
}

.links-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.link-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent, var(--neon));
}

.link-card::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--accent, var(--neon));
  opacity: 0;
  transition: opacity 0.15s ease;
}

.link-card:not(.locked):hover {
  transform: translateX(5px);
  border-color: var(--accent, var(--neon));
  box-shadow: -5px 0 24px color-mix(in srgb, var(--accent, var(--neon)) 40%, transparent);
}
.link-card:not(.locked):hover::after { opacity: 0.05; }

.youtube  { --accent: var(--yt); }
.twitch   { --accent: var(--tw); }
.tiktok   { --accent: var(--tt); }
.discord  { --accent: var(--dc); }
.roblox   { --accent: var(--rb); }
.kofi     { --accent: var(--kf); }

.link-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--accent, var(--neon));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.link-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.link-icon img {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}

.link-text {
  flex: 1;
  position: relative; z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.link-arrow {
  font-size: 1rem;
  color: var(--accent, var(--muted));
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  position: relative; z-index: 1;
}
.link-card:not(.locked):hover .link-arrow {
  opacity: 1;
  transform: translateX(0);
}

.link-card.locked {
  cursor: not-allowed;
  filter: grayscale(0.5);
}

.link-card.locked::before {
  background: var(--muted);
}

.locked-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid #333;
  border-radius: 3px;
  padding: 0.15rem 0.45rem;
  position: relative; z-index: 1;
}

.links-grid > :nth-child(1) { animation: fadeUp 0.5s 0.15s ease both; }
.links-grid > :nth-child(2) { animation: fadeUp 0.5s 0.22s ease both; }
.links-grid > :nth-child(3) { animation: fadeUp 0.5s 0.29s ease both; }
.links-grid > :nth-child(4) { animation: fadeUp 0.5s 0.36s ease both; }
.links-grid > :nth-child(5) { animation: fadeUp 0.5s 0.43s ease both; }
.links-grid > :nth-child(6) { animation: fadeUp 0.5s 0.50s ease both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUpLocked {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 0.45; transform: translateY(0); }
}

.link-card.locked { 
  animation-name: fadeUpLocked !important;
}

.footer {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}

@media (max-width: 480px) {
  .container { padding: 2rem 1rem 3rem; }
  .creator-name { font-size: 2.4rem; }
}