:root {
  --bg-primary: #0A0A0A;
  --bg-surface: #1A1A1A;
  --text-primary: #FFFFFF;
  --text-secondary: #B8B8B8;
  --accent: #E6007E;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: "IBM Plex Sans Thai", "Noto Sans Thai", sans-serif;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.mono { font-family: "Space Mono", monospace; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-brand {
  font-family: "Permanent Marker", cursive;
  font-size: 1.4rem;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s ease;
}

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

@media (max-width: 480px) {
  .nav { padding: 12px 16px; }
  .nav-brand { font-size: 1.15rem; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 0.85rem; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 92vh;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

@media (max-width: 480px) {
  .hero {
    height: auto;
    min-height: 0;
    padding: 24px 0 48px;
  }
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: fadeIn 1.2s ease forwards;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

.team-name {
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.team-name .logo-circle {
  width: clamp(160px, 32vw, 260px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: 0 0 24px 4px rgba(230, 0, 126, 0.55);
  margin-bottom: 4px;
}

.team-name .condensed {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: clamp(1rem, 3vw, 1.4rem);
}

.tagline {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 28px;
}

.line-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--text-primary);
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 0 24px rgba(230, 0, 126, 0.5);
  transition: transform 0.2s ease;
}

.line-btn:hover { transform: scale(1.04); }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- category tags ---------- */
.category-tags {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 24px;
}

.pill {
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 6px 18px;
  border-radius: 999px;
  font-family: "Space Mono", monospace;
  font-size: 0.85rem;
}

/* ---------- sections ---------- */
.section {
  padding: 48px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.6rem;
  margin-bottom: 24px;
  border-left: 4px solid var(--accent);
  padding-left: 12px;
}

.empty-state {
  color: var(--text-secondary);
  font-family: "Space Mono", monospace;
  font-size: 0.9rem;
}

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 10s ease, transform 10s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- reels rail ---------- */
.reels-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.reel-card {
  flex: 0 0 auto;
  width: 200px;
  aspect-ratio: 9 / 16;
  background: var(--bg-surface);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease;
}

.reel-card:hover { transform: scale(1.02); }

.reel-card img,
.reel-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-card .reel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
  font-size: 0.8rem;
  color: var(--text-primary);
}

/* ---------- gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 160px;
  gap: 12px;
}

.gallery-grid .gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-surface);
  transition: transform 0.2s ease;
}

.gallery-item:hover { transform: scale(1.02); }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid .gallery-item:first-child { grid-column: span 2; grid-row: span 1; }
}

/* ---------- events ---------- */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.event-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-surface);
  border-radius: 10px;
  padding: 16px 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.event-row .event-date {
  font-family: "Space Mono", monospace;
  color: var(--accent);
  min-width: 100px;
}

.event-row .event-title { flex: 1; font-weight: 500; }

.event-row .event-location { color: var(--text-secondary); font-size: 0.9rem; }

.event-status {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}

.event-status.open { background: rgba(230, 0, 126, 0.15); color: var(--accent); }
.event-status.soon { background: rgba(184, 184, 184, 0.15); color: var(--text-secondary); }
.event-status.closed { background: rgba(255,255,255,0.05); color: #666; }

@media (max-width: 480px) {
  .event-row { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ---------- contact ---------- */
.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--bg-surface);
  border-radius: 16px;
  padding: 28px;
  flex-wrap: wrap;
}

.contact-info p { margin: 6px 0; color: var(--text-secondary); }
.contact-info a { color: var(--accent); }

@media (max-width: 480px) {
  .contact-card { justify-content: center; text-align: center; padding: 24px 20px; }
  .contact-info { width: 100%; }
}

.line-qr {
  width: 200px;
  height: 200px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
}

/* ---------- footer ---------- */
.footer {
  text-align: center;
  padding: 32px 24px 48px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  font-weight: 500;
}

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

.footer-note {
  color: #555;
  font-size: 0.8rem;
  font-family: "Space Mono", monospace;
}
