:root {
  --bg: #0a0a0a;
  --surface: #161616;
  --surface-2: #1e1e1e;
  --border: #2a2a2a;
  --text: #f5f5f5;
  --muted: #9ca3af;
  --accent: #a3e635;
  --accent-dark: #84cc16;
  --danger: #f87171;
  --radius: 12px;
  --wrap: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #0a0a0a; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { padding: 7px 14px; font-size: .8rem; }
.btn-block { width: 100%; text-align: center; }

.link-arrow { color: var(--accent); font-weight: 600; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,10,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand img { display: block; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--muted); font-weight: 600; font-size: .95rem; transition: color .15s; }
.site-nav a:hover, .site-nav a.active { color: var(--text); }
.site-nav .nav-cta {
  color: #0a0a0a; background: var(--accent);
  padding: 9px 18px; border-radius: var(--radius);
}
.site-nav .nav-cta:hover { background: var(--accent-dark); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); display: block; }

/* ---------- Hero ---------- */
.hero { border-bottom: 1px solid var(--border); overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: center; padding-top: 72px; padding-bottom: 72px;
}
.kicker {
  color: var(--accent); font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; font-size: .8rem; margin: 0 0 16px;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  font-weight: 900; letter-spacing: -.02em; text-transform: uppercase;
}
.lead { color: var(--muted); font-size: 1.15rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.showreel-frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 0 0 1px rgba(163,230,53,.15), 0 30px 80px -20px rgba(163,230,53,.25);
  background: #000;
}
.showreel-label {
  text-align: center; color: var(--muted); font-size: .8rem;
  text-transform: uppercase; letter-spacing: .1em; margin-top: 14px;
}

.player { width: 100%; aspect-ratio: 16/9; display: block; background: #000; border: 0; }
.player.embed { position: relative; }
.player.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player.linkout {
  position: relative; display: grid; place-items: center; gap: 14px;
  background-size: cover; background-position: center; text-decoration: none;
}
.player.linkout::before { content: ""; position: absolute; inset: 0; background: rgba(10,10,10,.55); }
.player.linkout .play-glyph, .player.linkout .linkout-label { position: relative; }
.player.linkout .play-glyph { position: static; transform: none; }
.player.linkout .linkout-label { color: #fff; font-weight: 700; font-size: 1.05rem; }
.player.linkout:hover .play-glyph { background: var(--accent); }
.player.linkout:hover .play-glyph::after { border-left-color: #0a0a0a; }
.player.noplay { display: grid; place-items: center; color: var(--muted); font-weight: 600; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.about { max-width: 780px; text-align: center; }
.about h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); text-transform: uppercase; letter-spacing: -.01em; }
.about-body { color: var(--muted); font-size: 1.15rem; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 36px; gap: 16px; flex-wrap: wrap; }
.section-head h2, .page-head h1, .related h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem); text-transform: uppercase; letter-spacing: -.01em;
}

/* ---------- Grid & cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card-thumb { position: relative; aspect-ratio: 16/9; background: var(--surface-2); overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-placeholder, .mini-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1e1e1e, #101010);
}
.play-glyph {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(10,10,10,.6); border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(4px); transition: background .18s, transform .18s;
}
.play-glyph::after {
  content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff;
}
.card:hover .play-glyph { background: var(--accent); transform: translate(-50%, -50%) scale(1.08); }
.card:hover .play-glyph::after { border-left-color: #0a0a0a; }
.format-badge, .platform-badge {
  position: absolute; top: 10px; font-size: .68rem; font-weight: 700; letter-spacing: .04em;
  padding: 3px 9px; border-radius: 999px; text-transform: uppercase;
}
.format-badge { left: 10px; background: var(--accent); color: #0a0a0a; }
.platform-badge { right: 10px; background: rgba(10,10,10,.7); color: #f5f5f5; border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(4px); }
.card-body { padding: 16px 18px 20px; }
.card-brand { color: var(--accent); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.card-title { font-size: 1.1rem; margin: 6px 0 8px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: .82rem; margin-bottom: 10px; }
.meta-views { font-weight: 600; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-block; background: var(--surface-2); border: 1px solid var(--border);
  color: var(--muted); font-size: .72rem; padding: 3px 10px; border-radius: 999px;
}

/* ---------- CTA ---------- */
.cta { background: var(--accent); color: #0a0a0a; }
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.cta-copy h2 { font-size: clamp(1.8rem, 4vw, 3rem); text-transform: uppercase; letter-spacing: -.01em; }
.cta-copy p { font-size: 1.1rem; max-width: 40ch; }
.cta-mail a { font-weight: 700; text-decoration: underline; }

/* ---------- Forms ---------- */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.video-form label, .settings-form label, .login-card label {
  display: grid; gap: 6px; font-weight: 600; font-size: .9rem;
}

/* Simple one-field CTA email capture */
.contact-form { display: grid; gap: 10px; }
.email-label { font-weight: 700; font-size: .95rem; color: #0a0a0a; }
.email-row { display: flex; gap: 10px; }
.email-row input {
  flex: 1 1 auto; min-width: 0;
  background: #fff; border: 2px solid #0a0a0a;
  color: #0a0a0a; padding: 15px 16px; border-radius: 12px; font: inherit; font-size: 1.05rem;
}
.email-row input::placeholder { color: rgba(10,10,10,.45); }
.email-row input:focus { outline: 3px solid rgba(10,10,10,.4); outline-offset: 1px; }
.email-row .btn-accent {
  flex: 0 0 auto; white-space: nowrap;
  background: #0a0a0a; color: var(--accent); font-size: 1.05rem; padding: 15px 26px;
}
.email-row .btn-accent:hover { background: #1a1a1a; }
.form-reassure { color: rgba(10,10,10,.75); font-size: .9rem; margin: 2px 0 0; font-weight: 600; }
.cta-alt { color: rgba(10,10,10,.8); font-size: .95rem; margin: 18px 0 0; font-weight: 600; }
.cta-alt a { text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Numbered "how it works" steps */
.cta-steps { list-style: none; counter-reset: step; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.cta-steps li { display: flex; align-items: center; gap: 14px; font-size: 1.1rem; font-weight: 700; color: #0a0a0a; }
.cta-steps li span {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  background: #0a0a0a; color: var(--accent);
  display: grid; place-items: center; font-size: 1rem; font-weight: 800;
}

.flash { padding: 12px 16px; border-radius: 10px; font-weight: 600; margin-bottom: 16px; }
.flash-ok { background: rgba(10,10,10,.12); color: #0a0a0a; }
.admin .flash-ok { background: rgba(163,230,53,.15); color: var(--accent); border: 1px solid rgba(163,230,53,.3); }
.flash-err { background: rgba(248,113,113,.15); color: var(--danger); border: 1px solid rgba(248,113,113,.3); }

/* ---------- Detail ---------- */
.detail { padding-top: 48px; }
.detail-player { margin-bottom: 32px; }
.detail-brand { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; }
.detail h1 { font-size: clamp(1.8rem, 5vw, 3rem); text-transform: uppercase; margin-top: 8px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.detail-tags .tag:hover { border-color: var(--accent); color: var(--text); }
.detail-desc { color: var(--muted); font-size: 1.1rem; max-width: 70ch; }
.related { padding-top: 24px; }

/* ---------- Filters ---------- */
.page-head { padding-bottom: 24px; }
.filters { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 0; padding-bottom: 24px; }
.tag-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  padding: 7px 16px; border-radius: 999px; border: 1px solid var(--border);
  color: var(--muted); font-weight: 600; font-size: .85rem; transition: all .15s;
}
.pill:hover { border-color: var(--accent); color: var(--text); }
.pill.active { background: var(--accent); color: #0a0a0a; border-color: var(--accent); }
.filter-controls { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-controls .ctrl { margin: 0; }
.filter-controls select, .brand-filter select {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  padding: 9px 14px; border-radius: 10px; font: inherit; cursor: pointer;
}
.filter-controls select:hover { border-color: var(--accent); }

.detail-props { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 16px 0; padding: 0; }
.detail-props > div { display: grid; gap: 2px; }
.detail-props dt { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; margin: 0; }
.detail-props dd { margin: 0; font-weight: 700; font-size: 1.05rem; }
.detail-props dd a { color: var(--accent); }
.gallery-grid-section { padding-top: 0; }
.empty { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-inner p { color: var(--muted); margin: 8px 0 0; font-size: .9rem; }
.footer-contact a { color: var(--accent); font-weight: 600; }

/* ---------- Error page ---------- */
.error-page { text-align: center; padding: 120px 24px; }
.error-code { font-size: 5rem; font-weight: 900; color: var(--accent); margin: 0; }
.error-page h1 { font-size: 1.6rem; margin: 8px 0 32px; }

/* ============ ADMIN ============ */
body.admin { background: #0d0d0d; }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: var(--surface); border-right: 1px solid var(--border);
  padding: 24px 16px; display: flex; flex-direction: column; gap: 8px;
  position: sticky; top: 0; height: 100vh;
}
.admin-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; margin-bottom: 20px; padding: 0 8px; }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.admin-sidebar nav a {
  padding: 10px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: .92rem;
  display: flex; align-items: center; justify-content: space-between;
}
.admin-sidebar nav a:hover { background: var(--surface-2); color: var(--text); }
.admin-sidebar nav a.active { background: var(--accent); color: #0a0a0a; }
.badge { background: var(--danger); color: #fff; border-radius: 999px; font-size: .72rem; padding: 1px 8px; }
.admin-sidebar nav a.active .badge { background: #0a0a0a; color: var(--accent); }
.logout-form { margin-top: auto; }
.view-site { color: var(--muted); font-size: .85rem; padding: 8px; }
.view-site:hover { color: var(--accent); }

.admin-main { padding: 32px 40px; max-width: 1100px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; gap: 16px; flex-wrap: wrap; }
.admin-head h1 { font-size: 1.8rem; margin: 0; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 32px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.stat-num { font-size: 2.4rem; font-weight: 800; display: block; }
.stat-label { color: var(--muted); font-size: .9rem; }

.admin-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.admin-panel.narrow { max-width: 560px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.panel-head h2 { font-size: 1.2rem; margin: 0; }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr.clickable { cursor: pointer; }
.admin-table tr.clickable:hover td { background: var(--surface-2); }
.videos-table .thumb-cell img { width: 80px; height: 45px; object-fit: cover; border-radius: 6px; }
.videos-table .mini-placeholder { width: 80px; height: 45px; border-radius: 6px; }
.order-input { width: 60px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); padding: 6px 8px; border-radius: 6px; }
.row-title { font-weight: 600; }
.row-title:hover { color: var(--accent); }
.tags-cell { display: flex; flex-wrap: wrap; gap: 4px; max-width: 200px; }
.type-badge { background: var(--surface-2); border: 1px solid var(--border); padding: 2px 8px; border-radius: 6px; font-size: .75rem; }
.row-actions td { padding-top: 0; border-bottom: 1px solid var(--border); }
.linkbtn { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; font-size: .82rem; padding: 4px 8px; }
.linkbtn:hover { color: var(--text); }
.linkbtn.danger:hover { color: var(--danger); }
.center { text-align: center; }
.star { color: var(--border); font-size: 1.1rem; }
.star.active { color: var(--accent); }
.table-foot { margin-top: 20px; }

.status { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 10px; border-radius: 999px; }
.status-new, .status-live { background: rgba(163,230,53,.15); color: var(--accent); }
.status-contacted { background: rgba(96,165,250,.15); color: #93c5fd; }
.status-closed, .status-draft { background: var(--surface-2); color: var(--muted); }

.empty-state { text-align: center; padding: 60px 24px; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); display: grid; gap: 18px; justify-items: center; }

/* Admin forms */
.video-form input[type=text], .video-form input[type=url], .video-form input[type=number],
.video-form textarea, .settings-form input, .settings-form textarea,
.login-card input, .inline-form input[type=text] {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  padding: 11px 13px; border-radius: 8px; font: inherit; width: 100%;
}
.form-grid { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.form-main { display: grid; gap: 18px; }
.form-side { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: grid; gap: 18px; position: sticky; top: 24px; }
.source-picker { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; }
.source-picker legend { padding: 0 8px; color: var(--muted); font-size: .85rem; }
.radio, .checkbox { display: flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.radio input, .checkbox input { width: auto; }
.source-panel { padding: 12px 0 0; }
.source-panel[hidden] { display: none; }
.hint { color: var(--muted); font-size: .8rem; font-weight: 400; margin: 4px 0 0; }
.current-poster img { border-radius: 8px; border: 1px solid var(--border); }
.tag-picker { display: grid; gap: 10px; }
.picker-label { font-weight: 600; font-size: .9rem; }
.tag-checks { display: grid; gap: 6px; max-height: 180px; overflow-y: auto; }
.settings-form { display: grid; gap: 18px; max-width: 640px; }

.inline-form { display: flex; gap: 10px; margin-bottom: 20px; }
.tag-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.tag-list li { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: var(--surface-2); border-radius: 8px; }
.tag-list form { margin: 0; }

/* Login */
.admin-login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; width: 100%; max-width: 380px; display: grid; gap: 16px; }
.login-brand { display: flex; justify-content: center; margin-bottom: 8px; }
.login-card h1 { text-align: center; font-size: 1.4rem; }
.login-card form { display: grid; gap: 14px; }

/* Lead detail */
.lead-detail { display: grid; gap: 24px; max-width: 720px; }
.lead-meta dl { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin: 0; }
.lead-meta dt { color: var(--muted); font-size: .9rem; }
.lead-meta dd { margin: 0; }
.lead-message { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; }
.lead-message h2 { font-size: 1.1rem; }
.status-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; display: grid; gap: 12px; }
.status-options { display: flex; gap: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-inner, .cta-inner { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .form-side { position: static; }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 12px 24px 20px;
  }
  body.nav-open .site-nav { display: flex; }
  .site-nav a { padding: 12px 0; width: 100%; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .admin-sidebar nav { flex-direction: row; flex-wrap: wrap; }
  .logout-form { margin: 0; }
  .admin-main { padding: 24px 20px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .email-row { flex-direction: column; }
  .email-row .btn-accent { width: 100%; text-align: center; }
}
