/* ── GLAMBOT GALLERY – v3 CINEMATIC ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=DM+Mono:wght@400;500&display=swap');

:root {
  --accent: #ff4d9d;
  --bg: #050507;
  --card: rgba(255,255,255,.04);
  --border: rgba(255,255,255,.08);
  --text: #f0f2ff;
  --muted: rgba(240,242,255,.5);
  --dim: rgba(240,242,255,.25);
  --font: Inter, -apple-system, sans-serif;
  --mono: 'DM Mono', monospace;
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  min-height: 100svh; background: var(--bg); color: var(--text);
  font-family: var(--font); overflow-x: hidden;
}

/* ── ATMOSPHERE ── */
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse 90% 55% at 50% -5%,
    color-mix(in srgb, var(--accent) 20%, transparent), transparent 65%);
}
.page { position: relative; z-index: 1; }

/* ── GATE ── */
.gate {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(3, 3, 6, .92); backdrop-filter: blur(24px) saturate(1.5);
}
.gate[hidden] { display: none !important; }
.gate-card {
  width: min(460px, 100%);
  background: linear-gradient(160deg, rgba(22,14,28,.98), rgba(6,6,10,1));
  border: 1px solid rgba(255,255,255,.1); border-radius: 28px; padding: 40px;
  box-shadow: 0 40px 100px rgba(0,0,0,.7), 0 0 0 1px rgba(255,77,157,.08);
}
.gate-card h1 {
  font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 900;
  letter-spacing: -.05em; margin-bottom: 8px;
}
.gate-card p { color: var(--muted); margin-bottom: 28px; font-size: .95rem; line-height: 1.6; }
.gate-form { display: flex; flex-direction: column; gap: 12px; }
.gate-form input {
  width: 100%; min-height: 56px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.06);
  color: var(--text); padding: 0 20px; font: inherit; font-size: 1.05rem; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.gate-form input:focus {
  border-color: rgba(255,77,157,.5);
  box-shadow: 0 0 0 3px rgba(255,77,157,.12);
}
.gate-form button {
  min-height: 56px; border: none; border-radius: 16px; cursor: pointer;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 1.05rem;
  font-family: var(--font); letter-spacing: -.01em;
  transition: filter .15s, transform .1s;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.gate-form button:active { filter: brightness(.9); transform: scale(.98); }
.gate-remember {
  display: flex; align-items: center; gap: 10px; margin-top: 14px;
  cursor: pointer; color: var(--muted); font-size: .88rem;
}
.gate-error { min-height: 20px; color: #ff8fab; margin-top: 8px; font-size: .9rem; }

/* ── PAGE LAYOUT ── */
.page { width: min(1400px, calc(100vw - 48px)); margin: 0 auto; padding: 48px 0 100px; }

/* ── HERO ── */
.hero-gallery { margin-bottom: 56px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(255,77,157,.25); border-radius: 999px;
  padding: 6px 14px; margin-bottom: 20px;
}
.hero-gallery h1 {
  font-size: clamp(3rem, 7vw, 6.5rem); font-weight: 900;
  letter-spacing: -.04em; line-height: .9;
  background: linear-gradient(135deg, #fff 0%, rgba(240,242,255,.55) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 22px;
}
.hero-gallery p { font-size: 1.1rem; color: #fff; font-weight: 600; line-height: 1.65; max-width: 600px; opacity: .75; }

/* ── FEATURED CLIP ── */
.featured-clip {
  position: relative; border-radius: 28px; overflow: hidden;
  margin-bottom: 20px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 40px 80px rgba(0,0,0,.5);
}
.featured-clip .clip-thumb-wrap {
  aspect-ratio: 16/9; position: relative; overflow: hidden;
  background: #0a0a0f;
}
.featured-clip .clip-thumb { width:100%; height:100%; object-fit:cover; transition: transform .6s ease; }
.featured-clip:hover .clip-thumb { transform: scale(1.03); }
.featured-clip-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 50%);
  display: flex; align-items: flex-end; padding: 32px;
}
.featured-badge {
  position: absolute; top: 20px; left: 20px;
  background: var(--accent); color: #fff; font-size: .72rem; font-weight: 800;
  letter-spacing: 1.5px; text-transform: uppercase; padding: 6px 14px; border-radius: 999px;
}
.featured-meta h2 {
  font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 900; letter-spacing: -.05em;
  color: #fff; line-height: 1; margin-bottom: 10px;
}
.featured-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.15); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.25); color: #fff;
  padding: 12px 22px; border-radius: 999px; font-size: .95rem; font-weight: 700;
  transition: background .15s;
}
.featured-clip:hover .featured-cta { background: rgba(255,255,255,.25); }

/* ── GRID ── */
.gallery-section-label {
  font-size: .72rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  color: var(--dim); margin-bottom: 16px;
}
.gallery-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.clip-card {
  break-inside: avoid; margin-bottom: 14px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.clip-card:hover {
  transform: translateY(-6px) scale(1.008);
  box-shadow: 0 30px 60px rgba(0,0,0,.45), 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}
.clip-card-link { display: block; text-decoration: none; color: inherit; }
.clip-thumb-wrap {
  position: relative; aspect-ratio: 9/16; overflow: hidden;
  background: linear-gradient(135deg, #120b18, #0a080f);
}
.clip-thumb { width:100%; height:100%; object-fit:cover; display:block; transition: transform .4s ease; }
.clip-card:hover .clip-thumb { transform: scale(1.05); }
.clip-thumb-fallback {
  width:100%; height:100%; display:grid; place-items:center;
  font-size: 2.5rem; color: rgba(255,255,255,.1);
}
.clip-number-bg {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 8px 12px 10px;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, transparent 100%);
  display: flex; align-items: flex-end; justify-content: space-between;
}
.clip-number {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900;
  letter-spacing: -.06em; line-height: 1; color: rgba(255,255,255,.92);
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.clip-thumb-overlay {
  position: absolute; inset: 0;
  background: color-mix(in srgb, var(--accent) 25%, rgba(0,0,0,.4));
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .22s ease;
}
.clip-card:hover .clip-thumb-overlay { opacity: 1; }
.open-pill {
  background: var(--accent); color: #fff;
  padding: 12px 24px; border-radius: 999px;
  font-size: .95rem; font-weight: 800; letter-spacing: -.01em;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
}
.clip-meta {
  padding: 16px 18px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.clip-title {
  font-size: 1.15rem; font-weight: 900; letter-spacing: -.04em; color: #fff;
}
.clip-size {
  font-size: .75rem; color: var(--dim); font-family: var(--mono);
  white-space: nowrap; padding: 4px 9px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255,255,255,.03);
}

/* ── DETAIL PAGE ── */
.page-detail { padding-top: 28px; }
.back-link {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px; background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.18); border-radius: 999px;
  color: #fff; text-decoration: none; font-size: 1.1rem; font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 32px; transition: background .15s, border-color .15s;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.back-link:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.28); }
.back-link:active { background: rgba(255,255,255,.18); transform: scale(.98); }
.back-arrow { font-size: 1.5rem; font-weight: 900; }
.detail-layout {
  display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 22px; align-items: start;
}
.detail-video-card {
  background: #000; border-radius: 24px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 40px 80px rgba(0,0,0,.6);
}
.video-stage {
  min-height: calc(100svh - 160px); display: flex; align-items: center; justify-content: center;
}
.detail-video { max-width:100%; max-height:calc(100svh - 160px); width:auto; height:auto; display:block; }
.detail-side-card {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px; padding: 28px; position: sticky; top: 24px;
}
.detail-side-card h1 {
  font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900;
  letter-spacing: -.07em; line-height: .9; margin-bottom: 28px; color: #fff;
}
.detail-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.action-btn {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 20px 32px; border-radius: 20px;
  font-size: 1.15rem; font-weight: 900; letter-spacing: -.02em;
  text-decoration: none; cursor: pointer; border: none; font-family: var(--font);
  transition: all .15s;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.action-btn .btn-icon { font-size: 1.6rem; line-height: 1; }
.action-btn.primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 8px 32px color-mix(in srgb, var(--accent) 45%, transparent);
}
.action-btn.primary:hover { filter: brightness(1.1); }
.action-btn.primary:active { filter: brightness(.88); transform: scale(.97); }
.action-btn.secondary {
  background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.18); color: #fff;
}
.action-btn.secondary:active { background: rgba(255,255,255,.14); }

/* ── QR BOX ── */
.qr-box {
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  border-radius: 18px; padding: 22px; text-align: center;
}
.qr-box img { width: 150px; height: 150px; border-radius: 10px; margin-bottom: 10px; }
.qr-box p { font-size: .85rem; color: var(--muted); line-height: 1.5; }
.detail-instagram {
  margin-top: 20px; padding: 16px 20px;
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 14px; font-size: .88rem; color: var(--muted); line-height: 1.6;
}
.detail-instagram strong { color: var(--accent); }

/* ── EXCLUSIVE MODE ── */
body.exclusive {
  background: radial-gradient(ellipse 100% 70% at 50% 0%,
    color-mix(in srgb, var(--accent) 28%, transparent), transparent 60%),
    var(--bg);
}
.exclusive-wrap {
  min-height: 100svh; display: flex; flex-direction: column;
  align-items: center; padding: 40px 24px 120px;
  max-width: 560px; margin: 0 auto; gap: 0;
}
.exclusive-eyebrow {
  font-size: .72rem; font-weight: 800; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--accent); opacity: .85;
  margin-bottom: 14px; text-align: center;
}
.exclusive-title {
  font-size: clamp(4rem, 14vw, 7rem); font-weight: 900;
  letter-spacing: -.09em; line-height: .82; text-align: center;
  background: linear-gradient(135deg, #fff 0%, rgba(240,242,255,.55) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 28px;
}
.exclusive-video {
  width: 100%; max-height: calc(100svh - 320px);
  border-radius: 24px; background: #000; display: block;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08),
              0 40px 100px rgba(0,0,0,.7),
              0 0 80px color-mix(in srgb, var(--accent) 20%, transparent);
  margin-bottom: 28px;
}
/* Fixed bottom bar for exclusive */
.exclusive-bottom {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 24px max(20px, env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(5,5,7,.98) 0%, transparent 100%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.exclusive-instagram {
  font-size: .82rem; color: var(--dim); text-align: center; line-height: 1.55;
}
.exclusive-instagram strong { color: var(--accent); }

/* ── PLACEHOLDER / 404 ── */
.waiting-wrap, .notfound-wrap {
  min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 32px;
}
.waiting-card, .notfound-card { max-width: 480px; width: 100%; text-align: center; }
.waiting-icon {
  width: 88px; height: 88px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 28px; font-size: 2.2rem;
  animation: ring-pulse 2.5s ease-in-out infinite;
}
@keyframes ring-pulse{0%,100%{box-shadow:0 0 0 0 color-mix(in srgb,var(--accent) 35%,transparent)}50%{box-shadow:0 0 0 20px transparent}}
.waiting-title, .notfound-title {
  font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 900; letter-spacing: -.06em;
  color: #fff; margin-bottom: 14px; line-height: 1.05;
}
.waiting-sub, .notfound-sub { font-size: 1rem; color: var(--muted); line-height: 1.65; margin-bottom: 28px; }
.waiting-id {
  display: inline-block; padding: 8px 24px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 999px; font-family: var(--mono); font-size: 1.1rem;
  color: var(--accent); margin-bottom: 28px; letter-spacing: .08em;
}
.waiting-hint { font-size: .85rem; color: var(--dim); line-height: 1.6; }
.refresh-bar { width: 100%; height: 2px; background: rgba(255,255,255,.07); border-radius: 2px; margin-top: 28px; overflow: hidden; }
.refresh-bar-inner { height: 100%; background: var(--accent); border-radius: 2px; animation: drain var(--drain-dur, 10s) linear infinite; }
@keyframes drain { from{width:100%} to{width:0%} }
.notfound-code {
  font-size: 8rem; font-weight: 900; letter-spacing: -.1em; line-height: 1;
  margin-bottom: 20px; color: rgba(255,255,255,.06);
}
.notfound-back {
  display: inline-flex; align-items: center; gap: 8px; padding: 16px 32px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 18px; color: var(--accent); text-decoration: none;
  font-weight: 800; font-size: 1rem; transition: background .15s;
  touch-action: manipulation;
}
.notfound-back:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); }

/* ── FOOTER ── */
.showbot-footer { border-top: 1px solid var(--border); margin-top: 80px; position: relative; z-index: 1; }
.showbot-footer__inner {
  width: min(1400px, calc(100vw - 48px)); margin: 0 auto;
  padding: 28px 0; display: flex; flex-direction: column; gap: 5px;
  font-size: .8rem; color: var(--dim);
}
.showbot-footer a { color: var(--muted); text-decoration: none; transition: color .15s; }
.showbot-footer a:hover { color: var(--text); }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-side-card { position: static; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .page { width: calc(100vw - 32px); }
  .hero-gallery h1 { letter-spacing: -.04em; }
}
