/* Gigaler – Clean static rebuild */

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

:root {
  --bg:         #111114;
  --bg2:        #1a1a1f;
  --bg3:        #222228;
  --accent:     #e8323c;
  --accent2:    #ff5c63;
  --text:       #f0f0f0;
  --muted:      #888898;
  --border:     #2e2e38;
  --funny:      #f5a623;
  --extreme:    #4fc3f7;
  --scary:      #e8323c;
  --radius:     8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent2); }

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

/* ─── HEADER ──────────────────────────────────────────── */

header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  flex-shrink: 0;
}

.logo span { color: var(--accent); }

nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

nav a {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  color: var(--muted);
  transition: background 0.18s, color 0.18s;
}

nav a:hover,
nav a.active {
  background: var(--bg3);
  color: var(--text);
}

/* ─── HERO / PAGE TITLE ───────────────────────────────── */

.page-hero {
  background: linear-gradient(135deg, var(--bg2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.page-hero p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ─── MAIN LAYOUT ─────────────────────────────────────── */

main {
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
  width: 100%;
}

/* ─── SECTION HEADING ─────────────────────────────────── */

.section-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* ─── VIDEO GRID ──────────────────────────────────────── */

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

/* ─── VIDEO CARD ──────────────────────────────────────── */

.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(232, 50, 60, 0.15);
}

.card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bg3);
  overflow: hidden;
}

.card-thumb iframe,
.card-thumb video {
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  transition: background 0.2s;
}

.card:hover .play-overlay { background: rgba(0,0,0,0.15); }

.play-btn {
  width: 52px;
  height: 52px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s, background 0.15s;
}

.card:hover .play-btn {
  transform: scale(1.1);
  background: var(--accent2);
}

.play-btn svg { margin-left: 3px; }

.card-body {
  padding: 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  align-self: flex-start;
}

.cat-funny   { background: rgba(245,166,35,0.15);  color: var(--funny);   }
.cat-extreme { background: rgba(79,195,247,0.15);  color: var(--extreme); }
.cat-scary   { background: rgba(232,50,60,0.15);   color: var(--scary);   }

.card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.card-views {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: auto;
}

/* ─── VIDEO PAGE ──────────────────────────────────────── */

.video-page { max-width: 860px; margin: 0 auto; }

.video-page h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 6px;
}

.video-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.video-embed {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
}

.video-embed iframe,
.video-embed video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-embed video { object-fit: contain; background: #000; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* ─── TEXT CONTENT (ABOUT) ────────────────────────────── */

.prose {
  max-width: 680px;
  line-height: 1.8;
  font-size: 1rem;
}

.prose p { margin-bottom: 1.2em; }

.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 10px 20px;
  margin: 24px 0;
  background: var(--bg2);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--muted);
}

.notice {
  background: rgba(232,50,60,0.1);
  border: 1px solid rgba(232,50,60,0.3);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 24px;
  font-size: 0.9rem;
  color: #ffb3b6;
}

.notice strong { color: var(--accent2); }

/* ─── FOOTER ──────────────────────────────────────────── */

footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

footer nav { justify-content: center; margin-top: 12px; }

/* ─── RESPONSIVE ──────────────────────────────────────── */

@media (max-width: 600px) {
  .header-inner { gap: 16px; height: auto; padding: 12px 16px; flex-wrap: wrap; }
  nav a { font-size: 0.78rem; padding: 5px 10px; }
  main { padding: 24px 16px; }
  .video-grid { grid-template-columns: 1fr; }
}
