/* C4La-Squad — dark gaming, mobile-first */
:root {
  --bg: #07070c;
  --bg-elev: #101018;
  --bg-card: #14141f;
  --bg-card-hover: #1c1c2a;
  --border: #2a2a3d;
  --text: #f2f2f7;
  --muted: #9a9ab0;
  --accent: #ff2d55;
  --accent-2: #00e5ff;
  --accent-hot: #ffcc00;
  --glow: rgba(255, 45, 85, 0.35);
  --radius: 12px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  --header-h: 64px;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--accent-hot);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

.skip-link:focus {
  top: 0.75rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 7, 12, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--accent), #ff6b35);
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 24px var(--glow);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 0 12px;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  content: "";
  width: 100%;
}

.nav-toggle-bar::before {
  transform: translateY(-7px);
}

.nav-toggle-bar::after {
  transform: translateY(5px);
  margin-top: -2px;
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem 1rem;
  flex-direction: column;
  gap: 0.25rem;
}

.site-nav.is-open {
  display: flex;
}

.site-nav a {
  color: var(--text);
  font-weight: 600;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
}

.site-nav a:hover {
  background: var(--bg-card);
  text-decoration: none;
  color: var(--accent-2);
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    background: transparent;
    border: 0;
    padding: 0;
  }

  .site-nav a {
    padding: 0.4rem 0.75rem;
    font-size: 0.95rem;
  }

  .brand-tagline {
    white-space: normal;
  }
}

/* Hero */
.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1rem 2rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  right: -40px;
  top: -60px;
  background: radial-gradient(circle, var(--glow), transparent 70%);
  pointer-events: none;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 18ch;
}

.hero-lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  max-width: 42ch;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px var(--glow);
}

.btn-primary:hover {
  background: #ff4466;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

/* Videos section */
.videos {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1rem 3rem;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-head h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.toolbar {
  margin-bottom: 1.25rem;
}

.search-wrap {
  display: block;
}

#search {
  width: 100%;
  max-width: 420px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
}

#search:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.2);
}

#search::placeholder {
  color: var(--muted);
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 520px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 860px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.video-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  padding: 0;
  width: 100%;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.video-card:hover,
.video-card:focus-visible {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
  outline: none;
}

.card-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

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

.hook-badge {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  max-width: calc(100% - 1.2rem);
  padding: 0.35rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  color: #0a0a0f;
  background: var(--accent-hot);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.card-body {
  padding: 0.85rem 1rem 1rem;
}

.card-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 2rem 1rem;
}

/* Moments stub */
.moments {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

.moments-card {
  background: var(--bg-elev);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
}

.moments-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.coming-soon-badge {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2);
  border: 1px solid var(--accent-2);
  border-radius: 999px;
}

.moments-card p:last-child {
  margin: 0 auto;
  max-width: 36ch;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  padding: 1.5rem 1rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
}

.footer-brand {
  margin: 0;
  font-weight: 700;
}

.footer-links {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--accent-2);
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: var(--accent);
}

.lightbox-media {
  background: #000;
  aspect-ratio: 16 / 9;
}

.lightbox-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox-body {
  padding: 1.25rem 1.25rem 1.5rem;
}

.lightbox-hook {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-hot);
}

.lightbox-body h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lightbox-desc {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

body.lightbox-open {
  overflow: hidden;
}

/* Sponsored HC GamerLife insert (kyasi HouseSet pattern) — not ownership */
.house-ad {
  max-width: var(--max);
  margin: 0 auto 3rem;
  padding: 0 1rem;
}
.house-ad-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  min-height: 18rem;
  overflow: hidden;
  border: 1px solid rgba(255, 79, 94, 0.4);
  border-radius: 1.25rem;
  background: #0c0708;
}
.house-ad-visual {
  position: relative;
  min-height: 14rem;
  background: #10080a;
}
.house-ad-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.house-ad-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent, transparent, rgba(12, 7, 8, 0.85));
  pointer-events: none;
}
.house-ad-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
  padding: 1.75rem 1.5rem;
}
.house-ad-kicker {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ff7a85;
}
.house-ad-copy h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  max-width: 12ch;
}
.house-ad-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 40ch;
}
.house-ad-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.25rem;
}
.btn-house {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ff4f5e;
  color: #fff !important;
  padding: 0.75rem 1.25rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none !important;
}
.btn-house:hover {
  filter: brightness(1.1);
  text-decoration: none !important;
}
@media (max-width: 800px) {
  .house-ad-inner {
    grid-template-columns: 1fr;
  }
  .house-ad-fade {
    background: linear-gradient(to top, rgba(12, 7, 8, 0.92), transparent 55%);
  }
  .house-ad-visual {
    min-height: 12rem;
  }
}
