:root {
  --bg: #0a0a0f;
  --bg-alt: #100e18;
  --card: #14131c;
  --card-border: #24222f;
  --text: #f2f1f7;
  --text-dim: #9b98ab;
  --accent: #8b5cf6;
  --accent-2: #22d3ee;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .nav-logo, .footer-logo {
  font-family: 'Orbitron', 'Inter', sans-serif;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px circle at 15% 10%, rgba(139, 92, 246, 0.18), transparent 60%),
    radial-gradient(600px circle at 85% 25%, rgba(34, 211, 238, 0.14), transparent 60%);
  pointer-events: none;
}

/* ── Header ── */
#header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.nav-logo span { color: var(--accent-2); }

.nav-links {
  display: flex;
  gap: 32px;
  margin: 0 auto;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dim);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), #6d28d9);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ── Hero ── */
.hero {
  padding: 120px 0 90px;
  text-align: center;
}

.profile-ring {
  width: 220px;
  height: 220px;
  margin: 0 auto 24px;
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow:
    0 0 0 8px rgba(139, 92, 246, 0.08),
    0 18px 55px rgba(34, 211, 238, 0.18);
}

.profile-picture {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 34%;
  border: 4px solid var(--bg);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--accent-2);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 20px;
}
.hero-title span {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gaming-ids {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 auto 24px;
}

.gaming-id {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 170px;
  padding: 9px 15px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: rgba(20, 19, 28, 0.8);
  text-align: left;
  font-weight: 700;
  line-height: 1.2;
}

.gaming-id i {
  font-size: 1.45rem;
}

.gaming-id small {
  display: block;
  margin-bottom: 2px;
  color: var(--text-dim);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.gaming-id-xbox i { color: #52b043; }
.gaming-id-psn i { color: #2d64e6; }

.tracker-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: -8px auto 13px;
  padding: 9px 15px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.07);
  color: var(--accent-2);
  font-size: 0.84rem;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tracker-link:hover {
  transform: translateY(-2px);
  border-color: var(--accent-2);
  background: rgba(34, 211, 238, 0.13);
}

.tracker-link-external {
  font-size: 0.68rem;
  opacity: 0.75;
}

.hero-socials {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 28px;
}

.hero-social-link {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: rgba(20, 19, 28, 0.78);
  color: var(--text-dim);
  font-size: 1.2rem;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.hero-social-link:hover {
  transform: translateY(-3px);
  color: #fff;
}

.hero-social-youtube { color: #ff335f; }
.hero-social-instagram { color: #e96898; }
.hero-social-tiktok { color: #f2f1f7; }
.hero-social-discord { color: #818cf8; }

.hero-social-youtube:hover {
  border-color: #ff0033;
  background: rgba(255, 0, 51, 0.12);
  box-shadow: 0 8px 22px rgba(255, 0, 51, 0.16);
}

.hero-social-instagram:hover {
  border-color: #e1306c;
  background: rgba(225, 48, 108, 0.12);
  box-shadow: 0 8px 22px rgba(225, 48, 108, 0.16);
}

.hero-social-tiktok:hover {
  border-color: var(--accent-2);
  background: rgba(34, 211, 238, 0.1);
  box-shadow: 0 8px 22px rgba(34, 211, 238, 0.14);
}

.hero-social-discord:hover {
  border-color: #5865f2;
  background: rgba(88, 101, 242, 0.14);
  box-shadow: 0 8px 22px rgba(88, 101, 242, 0.18);
}

.hero-sub {
  max-width: 560px;
  margin: 0 auto 40px;
  color: var(--text-dim);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0a0a0f;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4); }
.btn-outline {
  border: 1px solid var(--card-border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn-outline:hover { border-color: var(--accent); background: rgba(139, 92, 246, 0.08); }

/* ── Sections ── */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
}
.eyebrow {
  display: block;
  color: var(--accent-2);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 12px;
}
.section-sub { color: var(--text-dim); }

/* ── Clips ── */
.clips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.clip-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.clip-card:hover { transform: translateY(-4px); border-color: var(--accent); }

.clip-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.clip-frame iframe,
.clip-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.clip-thumbnail {
  --thumb-accent: var(--accent);
  --thumb-glow: var(--accent-2);
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 0;
  background:
    linear-gradient(90deg, rgba(6, 5, 12, 0.94) 0%, rgba(6, 5, 12, 0.58) 42%, rgba(6, 5, 12, 0.08) 75%),
    linear-gradient(0deg, rgba(6, 5, 12, 0.8), transparent 55%);
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  isolation: isolate;
}

.clip-thumbnail::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 14% 22%, color-mix(in srgb, var(--thumb-accent) 56%, transparent), transparent 28%),
    linear-gradient(115deg, color-mix(in srgb, var(--thumb-glow) 22%, transparent), transparent 42%);
  opacity: 0.76;
  transition: opacity 0.22s ease, transform 0.35s ease;
}

.clip-thumbnail::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--thumb-accent), var(--thumb-glow));
  box-shadow: 0 0 22px var(--thumb-glow);
}

.clip-thumbnail:hover::before { opacity: 1; transform: scale(1.05); }
.clip-thumbnail:focus-visible { outline: 3px solid var(--thumb-accent); outline-offset: -3px; }
.clip-thumbnail[hidden] { display: none; }

.clip-thumbnail-brand {
  position: absolute;
  top: 8px;
  left: 11px;
  width: 62px;
  height: 66px;
  filter:
    drop-shadow(0 5px 10px rgba(0, 0, 0, 0.68))
    drop-shadow(0 0 8px color-mix(in srgb, var(--thumb-accent) 68%, transparent));
}

.clip-thumbnail-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.clip-thumbnail-copy {
  position: absolute;
  left: 17px;
  bottom: 15px;
  display: flex;
  max-width: 78%;
  flex-direction: column;
  align-items: flex-start;
}

.clip-thumbnail-eyebrow {
  margin-bottom: 3px;
  color: var(--thumb-accent);
  font-size: clamp(0.55rem, 1.1vw, 0.7rem);
  font-weight: 900;
  letter-spacing: 1.8px;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 2px 8px #000;
}

.clip-thumbnail-headline {
  color: #fff;
  font-family: 'Orbitron', 'Inter', sans-serif;
  font-size: clamp(1.05rem, 2.6vw, 1.7rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 0.94;
  white-space: pre-line;
  text-wrap: balance;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.78), 0 8px 20px rgba(0, 0, 0, 0.9);
}

.clip-thumbnail-play {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  padding: 5px 9px;
  border: 1px solid color-mix(in srgb, var(--thumb-accent) 72%, white);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.52);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 1.1px;
  line-height: 1;
}

.clip-thumbnail-play i { color: var(--thumb-accent); font-size: 0.52rem; }

.clip-title {
  padding: 16px 18px 10px;
  font-weight: 600;
  font-size: 0.95rem;
}

.clip-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  padding: 0 14px 14px;
}

.clip-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.clip-action:hover {
  transform: translateY(-1px);
  border-color: var(--accent-2);
  background: rgba(34, 211, 238, 0.08);
}

.clip-action-share {
  border-color: rgba(139, 92, 246, 0.42);
  background: rgba(139, 92, 246, 0.1);
}

.clip-action:disabled {
  cursor: wait;
  opacity: 0.55;
  transform: none;
}

.clip-action-status {
  grid-column: 1 / -1;
  min-height: 0;
  color: var(--text-dim);
  font-size: 0.72rem;
  text-align: center;
}

.clip-action-status:empty { display: none; }
.clip-action-status[data-state="success"] { color: #6ee7b7; }
.clip-action-status[data-state="error"] { color: #fda4af; }

.clip-card.is-shared {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12), 0 16px 44px rgba(34, 211, 238, 0.1);
}

.clips-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  background: var(--card);
  border: 1px dashed var(--card-border);
  border-radius: var(--radius);
  color: var(--text-dim);
}
.clips-empty i { font-size: 1.8rem; color: var(--accent-2); margin-bottom: 12px; display: block; }

.clips-more {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* ── About ── */
.about-inner { max-width: 720px; text-align: center; }
.about-text { color: var(--text-dim); font-size: 1.05rem; }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--card-border);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.footer-logo { font-size: 1.2rem; font-weight: 800; }
.footer-logo span { color: var(--accent-2); }
.footer-socials { display: flex; gap: 22px; font-size: 1.3rem; }
.footer-socials a { color: var(--text-dim); transition: color 0.2s ease; }
.footer-socials a:hover { color: var(--accent-2); }
.footer-copy { color: var(--text-dim); font-size: 0.85rem; }

/* ── Responsive ── */
@media (max-width: 800px) {
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 15, 0.98);
    border-bottom: 1px solid var(--card-border);
    padding: 20px 24px;
    gap: 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-cta span { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding: 90px 0 60px; }
  .profile-ring { width: 170px; height: 170px; }
  .gaming-id { min-width: 156px; }
  .section { padding: 64px 0; }
  .clip-action { font-size: 0.76rem; }
}

@media (max-width: 380px) {
  .clip-actions { grid-template-columns: 1fr; }
  .clip-action-status { grid-column: 1; }
}
