:root {
  --bg: #050505;
  --panel: #101010;
  --panel-2: #170b0e;
  --red: #ff102d;
  --red-soft: #ff4d62;
  --red-dark: #8f0012;
  --text: #fff3f5;
  --muted: #c8a6ad;
  --line: rgba(255, 77, 98, 0.25);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.44);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Tajawal", Arial, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(255, 16, 45, 0.24), transparent 29rem),
    linear-gradient(135deg, #030303 0%, #111 52%, #090405 100%);
  color: var(--text);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 76px;
  padding: 0.75rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 900;
}

.brand img {
  width: 58px;
  height: 58px;
  filter: drop-shadow(0 0 18px rgba(255, 16, 45, 0.5));
}

.nav-brand {
  padding: 0 1rem;
  color: var(--text);
}

.site-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.site-nav a {
  padding: 0.7rem 0.85rem;
  border-radius: 7px;
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: rgba(255, 16, 45, 0.15);
}

.site-nav .nav-brand:hover,
.site-nav .nav-brand.active {
  background: transparent;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--red-soft);
}

.section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 5rem);
}

.page { display: none; }
.page.active { display: block; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  min-height: calc(100vh - 76px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-arena {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 46%, rgba(255, 16, 45, 0.28), transparent 22rem),
    linear-gradient(90deg, rgba(255, 16, 45, 0.12), transparent 44%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 46px);
  opacity: 0.9;
}

.hero-arena span {
  position: absolute;
  left: -8%;
  right: -8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 77, 98, 0.55), transparent);
}

.hero-arena span:nth-child(1) { top: 24%; transform: rotate(-7deg); }
.hero-arena span:nth-child(2) { top: 58%; transform: rotate(4deg); }
.hero-arena span:nth-child(3) { bottom: 14%; transform: rotate(-3deg); }

.hero-orbit {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: min(76vh, 620px);
  overflow: visible;
}

.hero-orbit img {
  width: min(800px, 120vw);
  max-width: none;
  filter: drop-shadow(0 34px 48px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 28px rgba(255, 16, 45, 0.46));
  animation: xcrFloat 5s ease-in-out infinite;
}

.hero-logo-xl {
  position: absolute;
}

.orbit-ring {
  position: absolute;
  border: 1px solid rgba(255, 77, 98, 0.24);
  border-radius: 50%;
  pointer-events: none;
}

.ring-one {
  width: min(560px, 88vw);
  aspect-ratio: 1;
  animation: slowSpin 18s linear infinite;
}

.ring-two {
  width: min(420px, 70vw);
  aspect-ratio: 1;
  border-style: dashed;
  animation: slowSpin 12s linear infinite reverse;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -18% -8%;
  height: 28%;
  background: linear-gradient(90deg, transparent, rgba(255, 16, 45, 0.16), transparent);
  transform: skewY(-4deg);
}

.hero-console,
.hero-orbit {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--red-soft);
  font-weight: 900;
}

.hero h1 {
  margin: 0;
  font-size: clamp(4.2rem, 12vw, 10rem);
  line-height: 0.9;
  font-weight: 900;
  text-shadow: 0 12px 0 #000, 0 0 32px rgba(255, 16, 45, 0.32);
}

.hero-copy {
  max-width: 640px;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.8;
}

.hero-actions,
.filters,
.channel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.btn.primary,
.chip.active {
  color: #fff;
  background: linear-gradient(135deg, var(--red-soft), var(--red));
  border-color: rgba(255, 115, 130, 0.62);
}

.btn.ghost,
.chip {
  color: var(--red-soft);
  background: rgba(255, 16, 45, 0.1);
}

.live-link { gap: 0.55rem; direction: ltr; }

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.45rem;
  border-radius: 999px;
  color: #fff;
  background: #e11d48;
  font-size: 0.78rem;
  line-height: 1;
  box-shadow: 0 0 18px rgba(225, 29, 72, 0.45);
}

.live-badge[hidden] { display: none; }
.live-badge::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #fff;
  animation: livePulse 1.2s infinite;
}

.hero-console {
  padding: clamp(1rem, 4vw, 2rem);
  border-right: 3px solid var(--red);
}

.signal-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 560px;
  margin-top: 2rem;
}

.signal-board div {
  min-height: 94px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.48);
}

.signal-board strong {
  display: block;
  color: var(--red-soft);
  font-size: 1.35rem;
}

.signal-board span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section-head {
  max-width: 780px;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.15;
}

.about,
.contact,
.store {
  background: rgba(255, 255, 255, 0.025);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.55fr);
  gap: 2rem;
  align-items: stretch;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.052), rgba(255, 16, 45, 0.055));
  box-shadow: var(--shadow);
}

.about-text {
  position: relative;
  color: var(--muted);
  font-size: 1.13rem;
  line-height: 2;
  top: -90px;
  align-self: center;
  padding: clamp(0.25rem, 2vw, 1rem);
}

.about-panel {
  display: grid;
  place-items: center;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle, rgba(255, 16, 45, 0.22), transparent 62%),
    var(--panel);
}

.about-panel img {
  width: min(580px, 100%);
  max-height: 430px;
  object-fit: contain;
}

.photo-panel {
  min-height: 420px;
}

.photo-panel img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  max-height: none;
  object-fit: cover;
  object-position: center top;
}

.stats-grid,
.media-grid,
.social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.stats-grid.mini { margin-top: 1.4rem; }

.stat-card,
.video-card,
.social-card,
.stream-card-big,
.kick-chat-card,
.soon-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 16, 45, 0.055));
  box-shadow: var(--shadow);
}

.stat-card {
  position: relative;
  top: 180px;
  display: grid;
  min-height: 118px;
  padding: 1rem;
  transition: border-color 160ms ease, transform 160ms ease;
}

.stat-card strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--red-soft);
  font-size: 1.55rem;
}

.stat-card span,
.loading,
.empty {
  color: var(--muted);
  line-height: 1.8;
}

.stat-card:hover,
.video-card:hover,
.social-card:hover {
  border-color: rgba(255, 77, 98, 0.68);
  transform: translateY(-2px);
}

.video-card {
  overflow: hidden;
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0c0c0c;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-thumb span {
  position: absolute;
  bottom: 0.65rem;
  right: 0.65rem;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  color: #fff;
  background: var(--red);
  font-weight: 900;
  font-size: 0.8rem;
}

.video-body,
.social-card {
  padding: 1rem;
}

.video-body h3,
.social-card strong {
  margin: 0 0 0.65rem;
  line-height: 1.45;
}

.video-body p,
.social-card span,
.soon-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.video-body time {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--red-soft);
  font-size: 0.92rem;
  font-weight: 800;
}

.load-row {
  display: flex;
  justify-content: center;
  margin-top: 1.2rem;
}

.stream-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 1rem;
}

.stream-card-big {
  overflow: hidden;
}

.stream-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 58px;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.stream-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: #777;
}

.stream-dot.is-live {
  background: var(--red);
  box-shadow: 0 0 20px var(--red);
}

.kick-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 16, 45, 0.22), transparent 32%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 18px),
    #050505;
}

.kick-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0.72;
  filter: brightness(0.46) contrast(1.12) saturate(0.95);
  pointer-events: auto;
}

.kick-frame.is-live iframe {
  opacity: 1;
  filter: none;
  pointer-events: auto;
}

.kick-offline {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: end;
  gap: 0.7rem;
  padding: 1.5rem 1.5rem 2rem;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.22), rgba(5, 5, 5, 0.18) 44%, rgba(5, 5, 5, 0.9)),
    linear-gradient(90deg, rgba(255, 16, 45, 0.18), transparent, rgba(255, 16, 45, 0.12));
  pointer-events: none;
}

.kick-frame.is-live .kick-offline {
  display: none;
}

.kick-offline img {
  width: min(86px, 26vw);
  filter: drop-shadow(0 0 22px rgba(255, 16, 45, 0.42));
}

.kick-offline strong {
  color: var(--red-soft);
  font-size: clamp(1.25rem, 3vw, 2.2rem);
  font-weight: 900;
  text-shadow: 0 3px 0 #000;
}

.kick-offline span {
  color: var(--muted);
  font-weight: 800;
}

.kick-chat-card {
  min-height: 100%;
  overflow: hidden;
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 58px;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.chat-head strong {
  color: var(--red-soft);
  font-size: 1.15rem;
}

.chat-head a {
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--red-soft);
  background: rgba(255, 16, 45, 0.1);
  font-weight: 900;
}

.kick-chat-frame {
  position: relative;
  height: 620px;
  overflow: hidden;
  background: #080808;
}

.kick-chat-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #080808;
}

.kick-chat-card p {
  margin: 0;
  padding: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.7;
}

.soon-box {
  min-height: 430px;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    linear-gradient(120deg, rgba(255, 16, 45, 0.16), transparent 48%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 18px);
}

.soon-box h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(5rem, 16vw, 12rem);
  line-height: 0.9;
  text-shadow: 0 12px 0 #000, 0 0 32px rgba(255, 16, 45, 0.4);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 980px;
}

.contact-form label {
  display: grid;
  gap: 0.55rem;
  color: var(--red-soft);
  font-weight: 900;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.95rem 1rem;
  color: var(--text);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 16, 45, 0.045));
  font: inherit;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(255, 77, 98, 0.78);
  box-shadow: 0 0 0 3px rgba(255, 16, 45, 0.12);
}

.contact-form textarea {
  resize: vertical;
}

.full-field,
.contact-form button,
.form-status {
  grid-column: 1 / -1;
}

.form-status {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #030303;
}

.site-footer img {
  width: 42px;
  height: 42px;
}

.site-footer a {
  color: var(--red-soft);
  font-weight: 800;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.74); }
}

@keyframes xcrFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-14px) scale(1.02); }
}

@keyframes slowSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 76px;
    right: 1rem;
    left: 1rem;
    transform: none;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(5, 5, 5, 0.96);
  }

  .nav-brand {
    justify-content: center;
    order: -1;
  }
  .site-nav.open { display: flex; }
  .hero,
  .about-layout,
  .stream-layout {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: auto;
    padding-top: 5rem;
  }
  .hero-orbit {
    min-height: 340px;
    order: -1;
  }

  .signal-board {
    grid-template-columns: 1fr;
  }
  .stats-grid,
  .media-grid,
  .social-grid,
  .contact-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header { min-height: 68px; }
  .site-nav { top: 68px; }
  .brand span { font-size: 0.95rem; }
  .hero h1 { font-size: clamp(3.3rem, 19vw, 5.8rem); }
  .stats-grid,
  .media-grid,
  .social-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }
  .about-layout { padding: 0.75rem; }
  .site-footer { flex-wrap: wrap; }
}
