/* Basic reset */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color: #111; background: radial-gradient(#021027, #000000); min-height: 100vh; }
.bg-layer { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.content { position: relative; z-index: 1; }

.container { width: min(1100px, 92%); margin: 0 auto; padding-left: clamp(16px, 4vw, 32px); padding-right: clamp(16px, 4vw, 32px); }
.container.narrow { width: min(720px, 92%); }
.page-main { padding-top: clamp(24px, 8vh, 72px); }
.circle-container { position: absolute; animation-iteration-count: infinite; animation-timing-function: linear; will-change: transform; }
.circle { width: 100%; height: 100%; border-radius: 50%; mix-blend-mode: screen; background-image: radial-gradient(hsl(180, 100%, 80%), hsl(180, 100%, 80%) 10%, hsla(180, 100%, 80%, 0) 56%); animation: fade-frames 200ms infinite, scale-frames 2s infinite; will-change: transform, opacity; }

@keyframes fade-frames { 0%{opacity:1;} 50%{opacity:0.7;} 100%{opacity:1;} }
@keyframes scale-frames { 0%{ transform: scale3d(0.4,0.4,1);} 50%{ transform: scale3d(2.2,2.2,1);} 100%{ transform: scale3d(0.4,0.4,1);} }
@keyframes move-up { from { transform: translate3d(var(--x, 0), 120vh, 0);} to { transform: translate3d(var(--x, 0), -120vh, 0);} }

.site-header { background: #111; color: #fff; padding: 24px 0; }
.site-header h1 { margin: 0; font-size: 28px; }
.site-header .subtitle { margin: 4px 0 0; color: #cfcfcf; }
.topnav { background: #0f1115; }
.topnav .container { display: flex; gap: 10px; padding: 10px 0; flex-wrap: wrap; }
.pill { display: inline-block; padding: 8px 12px; border-radius: 999px; text-decoration: none; color: #fff; border: 1px solid rgba(255,255,255,0.22); background: rgba(255,255,255,0.04); transition: background .18s ease, transform .12s ease, box-shadow .18s ease, border-color .18s ease; box-shadow: none; }
.pill:hover { background: rgba(255,255,255,0.10); transform: translateY(-1px); border-color: rgba(15,98,254,0.6); box-shadow: 0 0 18px rgba(15,98,254,0.35); }

/* Pill base (no rainbow) */
.pill { position: relative; overflow: visible; }

.site-footer { padding: 24px 0 48px; color: #666; text-align: center; }
.site-footer a { color: inherit; }

.empty { color: #666; text-align: center; padding: 48px 0; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; padding: 24px 0 40px; }

.card { background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid #eee; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.card img { display: block; width: 100%; height: 260px; object-fit: cover; background: #f2f2f2; }
.card figcaption { padding: 10px 12px; font-size: 14px; color: #333; display: grid; gap: 6px; }
.card .meta { color: #888; font-size: 12px; }
.card.padded { padding: clamp(16px, 3vw, 28px); }
.about h2 { margin: 4px 0 8px; }
.about p { margin: 0 0 10px; color: #666; }
.about ul { margin: 8px 0 0; padding-left: 18px; color: #444; }
.about li { margin: 4px 0; }

/* Home navigation grid */
.nav-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding: clamp(16px, 3vw, 32px) 0 clamp(24px, 4vw, 48px); }
.nav-card { position: relative; overflow: visible; display: block; text-decoration: none; color: inherit; border: 1px solid #eee; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.04); transition: transform .12s ease, box-shadow .18s ease, border-color .18s ease, box-shadow .18s ease; box-shadow: 0 0 0 rgba(15,98,254,0); }
.nav-card:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,0.08), 0 0 18px rgba(15,98,254,0.25); border-color: rgba(15,98,254,0.35); }
.nav-card::before { content: none; }
.nav-card::after { content: none; }

.nav-card-body { padding: 18px; }
.nav-card h2 { margin: 0 0 6px; font-size: 20px; }
.nav-card p { margin: 0; color: #666; }

/* Highlights video placeholder */
.video-placeholder { margin: 20px 0 32px; }
.video-box { width: 100%; aspect-ratio: 16 / 9; border: 2px dashed #bbb; border-radius: 10px; display: grid; place-items: center; color: #777; background: #fafafa; }

.countdown { margin-top: clamp(8px, 2vh, 16px); }
.countdown h2 { margin: 0 0 8px; }
.countdown-digits { font-variant-numeric: tabular-nums; font-size: clamp(18px, 4vw, 28px); font-weight: 800; letter-spacing: 1px; }

.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; }
.lightbox.open { display: block; }
.lightbox .overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(2px); z-index: 1; }
.lightbox .stage { position: fixed; inset: 0; display: grid; place-items: center; padding: 24px; z-index: 2; }
.lightbox .stage img { width: auto; height: auto; max-width: 96vw; max-height: 92vh; border-radius: 12px; box-shadow: 0 12px 28px rgba(0,0,0,0.5); }
.lightbox .panel { display: none !important; width: 0; height: 0; overflow: hidden; }
.lightbox .info-card { position: absolute; right: 24px; bottom: 24px; width: min(380px, 80vw); background: rgba(16,18,24,0.72); color: #e9e9e9; border: 1px solid rgba(255,255,255,0.15); backdrop-filter: blur(8px); border-radius: 12px; padding: 14px; box-shadow: 0 10px 28px rgba(0,0,0,0.45); z-index: 3; }
.lightbox .info-card h3 { margin: 0 0 8px; font-size: 16px; }
.lightbox .info-card .meta-grid { color: #d0d0d0; }
.lightbox .panel h3 { margin: 0 0 6px; }
.lightbox .meta-grid { display: grid; grid-template-columns: max-content 1fr; gap: 8px 12px; font-size: 14px; color: #333; }
.lightbox .close { position: absolute; top: 10px; right: 10px; background: #111; color: #fff; border: none; border-radius: 8px; padding: 6px 10px; cursor: pointer; }

@media (max-width: 860px) {
  .lightbox .info-card { right: 12px; left: 12px; bottom: 12px; width: auto; }
}

/* Prevent background scroll when lightbox is open */
.no-scroll { overflow: hidden; }

.uploader main { padding: 32px 0; }
.form-card { display: grid; gap: 14px; background: #fff; border-radius: 10px; border: 1px solid #eee; padding: 16px; }
.form-card label { display: grid; gap: 6px; font-weight: 600; }
.form-card input[type="password"],
.form-card input[type="file"],
.form-card textarea { font: inherit; padding: 10px; border: 1px solid #ddd; border-radius: 8px; background: #fcfcfc; }
.form-card button, .button { appearance: none; border: none; background: #111; color: #fff; padding: 10px 14px; border-radius: 8px; font-weight: 700; cursor: pointer; }
.button { display: inline-block; text-decoration: none; }

@media (prefers-color-scheme: dark) {
  body { color: #e9e9e9; background: radial-gradient(#060913, #000000); }
  .site-header { background: #0b0c10; }
  .card { background: #0b0c10; border-color: #1b1e26; box-shadow: none; }
  .card figcaption { color: #d0d0d0; }
  .card .meta { color: #9aa0a6; }
  .about p { color: #9aa0a6; }
  .about ul { color: #d0d0d0; }
  .topnav { background: #0b0c10; }
  .pill { color: #e9e9e9; border-color: #293042; background: #151922; }
  .pill:hover { background: #1d2430; border-color: rgba(52,127,255,0.55); box-shadow: 0 0 18px rgba(52,127,255,0.28); }
  .nav-card { background: #0b0c10; border-color: #1b1e26; box-shadow: none; }
  .nav-card:hover { border-color: rgba(52,127,255,0.35); box-shadow: 0 6px 14px rgba(0,0,0,0.4), 0 0 18px rgba(52,127,255,0.28); }
  /* no rainbow layers on pills in dark mode */
  .nav-card::before { filter: blur(1px); }
  .nav-card p { color: #9aa0a6; }
  .video-box { background: #0f1115; border-color: #334; color: #9aa0a6; }
  .form-card { background: #0b0c10; border-color: #1b1e26; }
  .form-card input[type="password"],
  .form-card input[type="file"],
  .form-card textarea { background: #0f1115; border-color: #1b1e26; color: #e9e9e9; }
  .site-footer { color: #9aa0a6; }
}

