/* =====================================================================
   PPV — design system
   White background | Red actions | Black/gray text (spec §4)

   Brand values are CSS custom properties so Admin → Settings can override
   them by emitting a small :root block, with no rebuild.
   ===================================================================== */

:root {
  color-scheme: light;

  /* Brand — overridable from admin settings */
  --red:        #E30613;
  --red-dark:   #B00510;
  --red-soft:   #FDECEE;
  --bg:         #FFFFFF;
  --ink:        #111111;
  --ink-muted:  #555555;

  /* Neutrals */
  --ink-faint:  #8A8A8A;
  --line:       #E6E6E6;
  --line-soft:  #F1F1F1;
  --surface:    #FFFFFF;
  --surface-alt:#FAFAFA;

  /* Status */
  --green:      #128A4B;
  --green-soft: #E8F6EE;
  --amber:      #A96A00;
  --amber-soft: #FFF5E5;
  --blue:       #1A5FB4;
  --blue-soft:  #EAF1FB;

  /* Shape + depth */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 16px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(17, 17, 17, .04), 0 1px 2px rgba(17, 17, 17, .06);
  --shadow:    0 4px 12px rgba(17, 17, 17, .08);
  --shadow-lg: 0 16px 40px rgba(17, 17, 17, .14);
  /* Fallback first, then brand-aware version for browsers with color-mix. */
  --ring: 0 0 0 3px rgba(227, 6, 19, .22);
  --ring: 0 0 0 3px color-mix(in srgb, var(--red) 22%, transparent);

  /* Rhythm */
  --gap:   16px;
  --gap-lg:24px;
  --nav-h: 58px;
  --side-w:236px;

  --font: "Inter", "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
          Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ----------------------------------------------------------------
   Animations
   ---------------------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(227, 6, 19, .3); }
  50%      { box-shadow: 0 0 0 8px rgba(227, 6, 19, 0); }
}

/* ---------------------------------------------------------------------
   Base
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--red); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--red-dark); text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; }
h4 { font-size: .92rem; }
p  { margin: 0 0 1em; }

small, .small { font-size: .82rem; }
.muted  { color: var(--ink-muted); }
.faint  { color: var(--ink-faint); }
.mono   { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; }
.nowrap { white-space: nowrap; }
.right  { text-align: right; }
.center { text-align: center; }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--gap-lg) 0; }

/* Visible focus for keyboard users, invisible for mouse clicks. */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--red); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--r) 0;
}
.skip-link:focus { left: 0; text-decoration: none; }

/* ---------------------------------------------------------------------
   Layout
   --------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}
.wrap--narrow { max-width: 480px; }
.wrap--mid    { max-width: 760px; }

.page    { padding: var(--gap-lg) 0 48px; }
.section { margin-bottom: var(--gap-lg); }

.row {
  display: flex;
  gap: var(--gap);
  align-items: center;
}
.row--between { justify-content: space-between; }
.row--wrap    { flex-wrap: wrap; }
.row--top     { align-items: flex-start; }
.grow         { flex: 1 1 auto; min-width: 0; }

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.page-head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--gap-lg);
}
.page-head h1, .page-head h2 { margin: 0; }
.page-head__sub { color: var(--ink-muted); margin: 4px 0 0; font-size: .85rem; }

/* ---------------------------------------------------------------------
   Top navigation — sticky, glassmorphism, red active underline
   --------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  transition: background .2s ease;
}
.nav__inner {
  height: 100%;
  display: flex; align-items: center; gap: 12px;
}

.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 1.1rem; letter-spacing: -.02em;
  color: var(--ink);
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand__mark {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--red); color: #fff;
  font-size: .72rem; font-weight: 800; letter-spacing: -.03em;
  transition: transform .15s ease;
}
.brand:hover .brand__mark { transform: scale(1.06); }

.nav__links {
  display: flex; align-items: center; gap: 2px;
  margin-left: 8px;
}
.nav__link {
  position: relative;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  color: var(--ink-muted);
  font-weight: 500; font-size: .87rem;
  transition: color .14s ease, background .14s ease;
}
.nav__link:hover { color: var(--ink); background: var(--surface-alt); text-decoration: none; }
.nav__link.is-active { color: var(--ink); font-weight: 600; }
.nav__link.is-active::after {
  content: "";
  position: absolute; left: 10px; right: 10px; bottom: -1px;
  height: 2px; border-radius: 2px;
  background: var(--red);
}

.nav__spacer { flex: 1 1 auto; }
.nav__actions { display: flex; align-items: center; gap: 8px; }

.nav__toggle {
  display: none;
  background: none; border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 5px 8px;
  cursor: pointer; color: var(--ink);
  line-height: 1;
  transition: background .14s ease, border-color .14s ease;
}
.nav__toggle:hover { background: var(--surface-alt); border-color: #ccc; }

/* Avatar chip for the signed-in user */
.avatar {
  display: grid; place-items: center;
  width: 30px; height: 30px; flex: 0 0 30px;
  border-radius: var(--r-pill);
  background: var(--red-soft); color: var(--red);
  font-weight: 700; font-size: .75rem; text-transform: uppercase;
  transition: transform .14s ease, box-shadow .14s ease;
}
.avatar:hover { transform: scale(1.06); box-shadow: var(--shadow-sm); }

/* ---------------------------------------------------------------------
   Buttons — red fill (primary), red outline (secondary)
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: var(--red); color: #fff;
  font: inherit; font-size: .88rem; font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .16s ease, box-shadow .16s ease, transform .08s ease, border-color .16s ease;
}
.btn:hover { background: var(--red-dark); color: #fff; text-decoration: none; box-shadow: 0 2px 8px rgba(227, 6, 19, .25); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.is-disabled {
  opacity: .5; cursor: not-allowed; transform: none;
}

.btn--outline {
  background: #fff; color: var(--red); border-color: var(--red);
}
.btn--outline:hover { background: var(--red-soft); color: var(--red-dark); border-color: var(--red-dark); box-shadow: none; }

.btn--ghost {
  background: transparent; color: var(--ink-muted); border-color: var(--line);
}
.btn--ghost:hover { background: var(--surface-alt); color: var(--ink); box-shadow: none; }

.btn--danger { background: #B00510; }
.btn--danger:hover { background: #8C040D; }

.btn--sm { padding: 5px 10px; font-size: .82rem; }
.btn--lg { padding: 11px 20px; font-size: .95rem; }
.btn--block { width: 100%; }
.btn--icon { padding: 6px 8px; }

.btn-group { display: inline-flex; gap: 6px; flex-wrap: wrap; }

/* ---------------------------------------------------------------------
   Forms
   --------------------------------------------------------------------- */
.field { margin-bottom: var(--gap); }
.field > label,
.label {
  display: block;
  margin-bottom: 5px;
  font-size: .84rem; font-weight: 600; color: var(--ink);
}
.field__hint { margin: 5px 0 0; font-size: .78rem; color: var(--ink-muted); }
.req { color: var(--red); }

.input, .select, .textarea,
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="url"], input[type="date"],
input[type="search"], input[type="tel"], select, textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff; color: var(--ink);
  font: inherit; font-size: .88rem;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.input:hover, input:hover, select:hover, textarea:hover { border-color: #D0D0D0; }

.input:focus, .select:focus, .textarea:focus,
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: var(--ring);
}

textarea { min-height: 100px; resize: vertical; }

select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23555' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  padding-right: 32px;
}

input::placeholder, textarea::placeholder { color: #B4B4B4; }

.input.is-error, input.is-error, select.is-error, textarea.is-error {
  border-color: var(--red);
  background: var(--red-soft);
}
.field__error { margin: 5px 0 0; font-size: .78rem; color: var(--red); font-weight: 500; }

.check {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: .88rem; cursor: pointer;
}
.check input[type="checkbox"], .check input[type="radio"] {
  width: 16px; height: 16px; flex: 0 0 16px;
  margin: 2px 0 0;
  accent-color: var(--red);
  cursor: pointer;
}

.input-group { display: flex; }
.input-group .input { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.input-group .btn   { border-radius: 0 var(--r-sm) var(--r-sm) 0; }

/* ---------------------------------------------------------------------
   Cards + stat widgets
   --------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.card__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--gap);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
}
.card__head h2, .card__head h3 { margin: 0; font-size: .95rem; }
.card__body { padding: 16px; }
.card__foot {
  padding: 10px 16px;
  border-top: 1px solid var(--line-soft);
  background: var(--surface-alt);
  border-radius: 0 0 var(--r) var(--r);
}
.card--flush .card__body { padding: 0; }
.card--hover { transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.card--hover:hover { border-color: var(--red); box-shadow: var(--shadow); transform: translateY(-2px); }

/* A card holding an irreversible action. The tint is deliberately mild: the
   confirm dialog does the stopping, this only has to make the card easy to
   tell apart from the form above it. */
.card--danger { border-color: #F3C8CC; }
.card--danger .card__head { border-bottom-color: #F7D8DB; }
.card--danger .card__foot { background: var(--red-soft); border-top-color: #F7D8DB; }

/* One form split into groups: the seam between two bodies gets the same
   hairline as the head, so the groups read as sections rather than cards. */
.card__body + .card__body { border-top: 1px solid var(--line-soft); }

/* Headline numbers */
.stat {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat::before {
  content: "";
  position: absolute; inset: 0 auto 0 0;
  width: 3px; background: var(--red);
  opacity: 0; transition: opacity .18s ease;
}
.stat:hover::before { opacity: 1; }
.stat__label {
  font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 4px;
}
.stat__value {
  font-size: 1.5rem; font-weight: 800; letter-spacing: -.025em;
  line-height: 1.15; color: var(--ink);
  margin: 0;
}
.stat__meta { margin: 4px 0 0; font-size: .78rem; color: var(--ink-muted); }
.stat--accent { background: var(--red); border-color: var(--red); }
.stat--accent .stat__label { color: rgba(255,255,255,.82); }
.stat--accent .stat__value,
.stat--accent .stat__meta  { color: #fff; }
.stat--accent:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(227, 6, 19, .3); }

/* ---------------------------------------------------------------------
   Alerts + badges
   --------------------------------------------------------------------- */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink-muted);
  border-radius: var(--r-sm);
  background: var(--surface-alt);
  font-size: .88rem;
  margin-bottom: var(--gap);
  animation: fadeInUp .3s ease both;
}
.alert--ok   { border-left-color: var(--green); background: var(--green-soft); border-color: #CBE7D7; }
.alert--err  { border-left-color: var(--red);   background: var(--red-soft);   border-color: #F6CFD3; }
.alert--warn { border-left-color: var(--amber); background: var(--amber-soft); border-color: #F0DCB8; }
.alert--info { border-left-color: var(--blue);  background: var(--blue-soft);  border-color: #CCDCF3; }
.alert p:last-child { margin-bottom: 0; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--line-soft); color: var(--ink-muted);
  font-size: .72rem; font-weight: 600; letter-spacing: .01em;
  white-space: nowrap;
}
.badge--live,      .badge--paid,   .badge--active   { background: var(--green-soft); color: var(--green); }
.badge--pending,   .badge--processing               { background: var(--amber-soft); color: var(--amber); }
.badge--rejected,  .badge--cancelled, .badge--banned,
.badge--flagged                                    { background: var(--red-soft);   color: var(--red); }
.badge--info,      .badge--suspended               { background: var(--blue-soft);  color: var(--blue); }
.badge--red { background: var(--red); color: #fff; }

.dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; flex: 0 0 7px;
}

/* Empty states */
.empty {
  padding: 36px 20px;
  text-align: center;
  color: var(--ink-muted);
}
.empty__icon { font-size: 1.8rem; opacity: .3; margin-bottom: 6px; }
.empty h3 { color: var(--ink); margin-bottom: 4px; }

/* ---------------------------------------------------------------------
   Tables — 7 rows per page everywhere (spec §3.10)
   --------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: .87rem;
}
.table th, .table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line-soft);
}
.table thead th {
  background: var(--surface-alt);
  color: var(--ink-muted);
  font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 1;
}
.table tbody tr { transition: background .12s ease; }
.table tbody tr:hover { background: var(--red-soft); }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
/* A row of buttons or small forms. Inside a table it hugs the right-hand edge;
   anywhere else — a card foot, a page head — it sits where the flow puts it.
   Wrapping matters because admin rows can hold four actions on a narrow admin
   sidebar layout. */
.actions { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.table .actions { justify-content: flex-end; }

.table__title { font-weight: 600; color: var(--ink); }
.table__sub   { display: block; font-size: .78rem; color: var(--ink-muted); }

/* Thumbnail inside a table row (dashboard/videos.php, admin/videos.php).
   Fixed 16:9 box so rows keep an even height whether or not there is an image. */
.thumb-sm {
  width: 68px; height: 38px; flex: 0 0 68px;
  border-radius: var(--r-sm);
  background: var(--line-soft);
  object-fit: cover;
  display: block;
}
.thumb-sm--empty {
  display: grid; place-items: center;
  color: var(--ink-faint); font-size: .82rem;
}
.table__media { display: flex; gap: 10px; align-items: center; min-width: 0; }

/* Thumbnail preview beside its file input (dashboard/video-edit.php).
   Wraps below ~560px so the input never gets squeezed to nothing. */
.thumb-edit { display: flex; gap: var(--gap); align-items: flex-start; flex-wrap: wrap; }
.thumb-edit__body { flex: 1 1 260px; min-width: 0; }
.thumb-lg {
  width: 220px; height: 124px; flex: 0 0 220px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--line-soft);
  object-fit: cover;
  display: block;
}
.thumb-lg--empty {
  display: grid; place-items: center;
  color: var(--ink-faint); font-size: 1.3rem;
}
@media (max-width: 560px) {
  .thumb-lg { width: 100%; flex-basis: 100%; height: auto; aspect-ratio: 16 / 9; }
}

/* Toolbar above a table: search + filters */
.toolbar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line-soft);
}
.toolbar .input, .toolbar select { width: auto; min-width: 140px; }
.toolbar__search { flex: 1 1 200px; min-width: 160px; }

/* Pagination */
.pager {
  display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
}
.pager__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff; color: var(--ink-muted);
  font-size: .82rem; font-weight: 600;
  transition: border-color .14s ease, color .14s ease, background .14s ease;
}
.pager__btn:hover { border-color: var(--red); color: var(--red); text-decoration: none; }
.pager__btn.is-current { background: var(--red); border-color: var(--red); color: #fff; }
.pager__btn.is-disabled { opacity: .4; pointer-events: none; }
.pager__gap { padding: 0 3px; color: var(--ink-faint); }

/* ---------------------------------------------------------------------
   Dashboard shell — collapsible sidebar
   --------------------------------------------------------------------- */
.shell {
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr);
  align-items: start;
  gap: var(--gap-lg);
  max-width: 1320px;
  margin: 0 auto;
  padding: var(--gap-lg) 16px 48px;
}

.side {
  position: sticky;
  top: calc(var(--nav-h) + var(--gap-lg));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 8px;
  box-shadow: var(--shadow-sm);
}
.side__group { margin-bottom: 4px; }
.side__label {
  padding: 8px 10px 4px;
  font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-faint);
}
.side__link {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  color: var(--ink-muted);
  font-size: .87rem; font-weight: 500;
  transition: background .14s ease, color .14s ease;
}
.side__link:hover { background: var(--surface-alt); color: var(--ink); text-decoration: none; }
.side__link.is-active {
  background: var(--red-soft);
  color: var(--red);
  font-weight: 650;
}
.side__link .side__ico { width: 16px; text-align: center; flex: 0 0 16px; opacity: .9; }
.side__link .side__count {
  margin-left: auto;
  background: var(--red); color: #fff;
  border-radius: var(--r-pill);
  padding: 1px 6px; font-size: .7rem; font-weight: 700;
}

.side__backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 55;
  background: rgba(17, 17, 17, .4);
}

/* ---------------------------------------------------------------------
   Video cards
   --------------------------------------------------------------------- */
.vgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--gap) 12px;
}

.vcard {
  min-width: 0;
  animation: fadeInUp .35s ease both;
}
.vcard:nth-child(2) { animation-delay: .04s; }
.vcard:nth-child(3) { animation-delay: .08s; }
.vcard:nth-child(4) { animation-delay: .12s; }
.vcard:nth-child(5) { animation-delay: .16s; }
.vcard:nth-child(6) { animation-delay: .2s; }

.vcard__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: var(--r);
  overflow: hidden;
  background: #F0F0F0 center/cover no-repeat;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.vcard__thumb:hover {
  border-color: rgba(227, 6, 19, .3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .1);
  transform: translateY(-3px);
}
.vcard__thumb img { width: 100%; height: 100%; object-fit: cover; }
.vcard__thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(17, 17, 17, 0);
  transition: background .18s ease;
}
.vcard__thumb:hover::after { background: rgba(17, 17, 17, .15); }

.vcard__play {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
  opacity: 0; transition: opacity .18s ease;
}
.vcard__thumb:hover .vcard__play,
.vcard__thumb:focus-visible .vcard__play { opacity: 1; }
.vcard__play span {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--red); color: #fff;
  font-size: .8rem; padding-left: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
  transition: transform .15s ease;
}
.vcard__thumb:hover .vcard__play span { transform: scale(1.08); }

.vcard__time {
  position: absolute; right: 6px; bottom: 6px; z-index: 3;
  background: rgba(0, 0, 0, .78); color: #fff;
  border-radius: 4px; padding: 1px 5px;
  font-size: .7rem; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.vcard__body  { padding: 8px 2px 0; }
.vcard__title {
  margin: 0 0 2px;
  font-size: .87rem; font-weight: 600; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}
.vcard__title a { color: inherit; text-decoration: none; }
.vcard__title a:hover { color: var(--red); text-decoration: none; }
.vcard__meta { font-size: .76rem; color: var(--ink-muted); display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------------------------------------------------------------------
   Full-screen player overlay (#player-overlay)
   Covers the whole viewport; opened by playVideo(path, name).
   --------------------------------------------------------------------- */
.player-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  background: rgba(8, 8, 8, .97);
  opacity: 0;
  visibility: hidden;
  transform: scale(.98);
  transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
}
.player-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

/* Stop the page behind from scrolling while the overlay is up. */
body.is-playing { overflow: hidden; }

.player-overlay__bar {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, .04);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.player-overlay__title {
  margin: 0;
  font-size: .9rem; font-weight: 600; color: rgba(255, 255, 255, .92);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.player-overlay__actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.player-overlay__close {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border: 0; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .85);
  font-size: 1.05rem; line-height: 1; cursor: pointer;
  transition: background .16s ease, color .16s ease, transform .12s ease;
}
.player-overlay__close:hover {
  background: var(--red); color: #fff;
  transform: scale(1.05);
}

.player-overlay__stage {
  flex: 1 1 auto;
  display: grid;
  place-items: center;
  padding: 12px 16px;
  min-height: 0;
}
.player-overlay__frame {
  width: 100%;
  max-width: 1100px;
  max-height: 100%;
  position: relative;   /* the two ad layers below sit on top of the video */
}
/* Each engine gets this box to itself and rearranges it as it likes — Plyr and
   Video.js wrap the <video> in chrome of their own, DPlayer replaces the lot.
   The width and the height cap therefore have to apply to whatever ends up
   here, not only to a bare <video>, which is what `> *` is for.

   z-index on the wrapper is what keeps an engine's own layering — control bars,
   menus, big play buttons — inside a stacking context of its own, so the two ad
   layers below stay on top of all three engines without knowing anything about
   the numbers they use internally. */
.player-overlay__engine { width: 100%; min-width: 0; position: relative; z-index: 0; }
.player-overlay__engine > * { width: 100%; max-width: 100%; }
/* Video.js sizes itself from CSS when it is given no width or height options,
   and its own sheet loads after this one — hence the wrapper in the selector. */
.player-overlay__engine > .video-js {
  height: auto; aspect-ratio: 16 / 9; max-height: 74vh; background: #000;
}

/* :not() keeps the roll's own <video> out of this: it is sized by .player-ad
   below, and 74vh on both elements would fight the flex column it sits in. */
.player-overlay__frame video:not(.player-ad__video) {
  width: 100%; max-height: 74vh; background: #000; border-radius: var(--r-sm);
}

/* ---------------------------------------------------------------------
   Ads inside the player
   .player-ad        pre/mid/post-roll, covering the video while it runs
   .player-ad-banner overlay markup, sitting over the bottom of the video
   Both are filled by player.js from api/player-ads.php.
   --------------------------------------------------------------------- */
.player-ad {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  background: #000;
  border-radius: var(--r-sm);
  overflow: hidden;
}
/* The roll fills the same box as the video, so switching between them does not
   move the frame or change the height of the dialog. */
.player-ad__video { flex: 1 1 auto; width: 100%; min-height: 0; background: #000; cursor: pointer; }

.player-ad__bar {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, .06);
}
.player-ad__label {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
}
.player-ad__visit { margin-left: auto; color: #fff; font-size: .82rem; text-decoration: underline; }
/* Skip sits last so it never moves when the countdown text changes width. */
.player-ad__skip { margin-left: auto; }
.player-ad__visit + .player-ad__skip { margin-left: 0; }

.player-ad-banner {
  position: absolute;
  left: 50%; bottom: 12px;
  transform: translateX(-50%);
  z-index: 3;
  max-width: min(100%, 700px);
  padding: 6px 8px;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--r-sm);
}
.player-ad-banner .ad-slot { margin: 0; }
.player-ad-banner img { max-width: 100%; height: auto; display: block; }
.player-ad-banner__close {
  position: absolute;
  top: -8px; right: -8px;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: #fff; color: #111;
  font-size: .82rem; line-height: 1; cursor: pointer;
  transition: background .14s ease, color .14s ease;
}
.player-ad-banner__close:hover { background: var(--red); color: #fff; }

/* Loading + error states inside the overlay */
.player-overlay__status {
  display: none;
  color: rgba(255, 255, 255, .82);
  text-align: center;
  font-size: .88rem;
}
.player-overlay__status.is-shown { display: block; }
.player-overlay__status .spinner { margin: 0 auto 10px; }

.spinner {
  width: 28px; height: 28px;
  border: 3px solid rgba(255, 255, 255, .15);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.spinner--ink { border-color: var(--line); border-top-color: var(--red); }

@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2s; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Engine accents, so whichever player is chosen still looks like the brand.
   Plyr takes a custom property, Video.js paints its progress bar from a class,
   and DPlayer is told its colour in JS (see player.js). */
.plyr { --plyr-color-main: var(--red); border-radius: var(--r-sm); }
.video-js { border-radius: var(--r-sm); overflow: hidden; }
.video-js .vjs-play-progress,
.video-js .vjs-volume-level { background-color: var(--red); }
.video-js .vjs-big-play-button:hover,
.video-js .vjs-big-play-button:focus { background-color: var(--red); border-color: var(--red); }

/* Ads ------------------------------------------------------------------ */
.ad-slot { margin: var(--gap) 0; text-align: center; overflow: hidden; }
.ad-slot--header  { margin: 0 0 var(--gap); }
.ad-slot--sidebar { margin: 0 0 var(--gap); }
.ad-slot__note {
  font-size: .66rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 4px;
}
/* Banner check in admin/ads.php. A leaderboard is 728×90 and a square is 300×250,
   so this keeps the advertiser's own shape instead of cropping to a fixed box the
   way .thumb-lg does, and caps the height so the form stays readable. */
.ad-preview {
  display: block;
  max-width: 100%; max-height: 180px; height: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--line-soft);
}

/* ---------------------------------------------------------------------
   Interstitial (#interstitial)
   The full-page break before playback. z-index sits above .player-overlay
   (120) because the overlay has already opened underneath it, showing
   "Preparing stream…"; filled by player.js from api/player-ads.php.
   --------------------------------------------------------------------- */
.interstitial {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(8, 8, 8, .94);
  animation: fadeIn .2s ease;
}
.interstitial[hidden] { display: none; }

.interstitial__panel {
  width: 100%;
  max-width: 700px;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: scaleIn .25s ease;
}
/* The panel is focused when the break opens, and a ring around the whole dialog
   reads as damage rather than as focus, so only keyboard traversal shows it. */
.interstitial__panel:focus { outline: none; }
.interstitial__panel:focus-visible { box-shadow: var(--shadow-lg), var(--ring); }

.interstitial__bar {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}
.interstitial__label {
  font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-faint);
}
.interstitial__close {
  margin-left: auto;
  display: grid; place-items: center;
  width: 26px; height: 26px;
  border: 0; border-radius: var(--r-sm);
  background: var(--surface-alt); color: var(--ink);
  font-size: .95rem; line-height: 1; cursor: pointer;
  transition: background .14s ease, color .14s ease;
}
.interstitial__close:hover { background: var(--red); color: #fff; }

/* The advertiser's creative decides its own height, so this scrolls rather
   than crops — a 300×600 skyscraper booked here still shows in full. */
.interstitial__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 12px;
  text-align: center;
}
.interstitial__body .ad-slot { margin: 0; }
.interstitial__body img { max-width: 100%; height: auto; }

.interstitial__foot {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: var(--gap);
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: var(--surface-alt);
}
.interstitial__note { margin: 0; font-size: .82rem; color: var(--ink-muted); }
.interstitial__go { margin-left: auto; }

@media (max-width: 640px) {
  .interstitial { padding: 0; }
  .interstitial__panel { max-width: none; height: 100%; border-radius: 0; }
  .interstitial__foot { flex-direction: column; align-items: stretch; text-align: center; }
  .interstitial__go { margin-left: 0; }
}

/* Progress bar (upload) ------------------------------------------------ */
.progress {
  height: 6px;
  background: var(--line-soft);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.progress__bar {
  height: 100%; width: 0;
  background: var(--red);
  border-radius: var(--r-pill);
  transition: width .2s ease;
}

/* Inline SVG column chart (app/views/chart.php) ------------------------ */
.chart-wrap { margin: 0; }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart__bar  { fill: var(--red); }
.chart__grid { stroke: var(--line-soft); stroke-dasharray: 3 4; }
.chart__axis { stroke: var(--line); }
/* Sized in user units: the viewBox scales, so this tracks the chart rather
   than the page. 11 lands at roughly 9px on a 600px-wide card. */
.chart__tick { fill: var(--ink-faint); font-size: 11px; }
.chart__cap  { margin-top: 8px; font-size: .78rem; color: var(--ink-muted); }

/* Home page ------------------------------------------------------------ */
.hero {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--red-soft) 0%, #fff 50%, var(--surface-alt) 100%);
  padding: 36px 28px;
  text-align: center;
  overflow: hidden;
  margin-bottom: var(--gap-lg);
  animation: fadeInUp .4s ease both;
}
.hero::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--red), var(--red-dark));
}
.hero h1 { font-size: 1.8rem; margin: 0 0 6px; }
.hero p  { color: var(--ink-muted); max-width: 520px; margin: 0 auto; font-size: .92rem; }
.hero__cta   { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.hero__stats {
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-top: 22px;
}
.hero__stat strong { display: block; font-size: 1.2rem; line-height: 1.2; }
.hero__stat span {
  font-size: .7rem; color: var(--ink-muted);
  text-transform: uppercase; letter-spacing: .05em; font-weight: 600;
}

/* Watch page (v.php) --------------------------------------------------- */
.watch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(220px, 25vw, 280px);
  gap: var(--gap-lg);
}
.watch__poster {
  position: relative;
  display: block; width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: #111 center/cover no-repeat;
  cursor: pointer;
  transition: box-shadow .2s ease;
}
.watch__poster:hover { box-shadow: 0 8px 28px rgba(0, 0, 0, .18); }
.watch__poster img { width: 100%; height: 100%; object-fit: cover; }
.watch__poster::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(17, 17, 17, .1);
  transition: background .18s ease;
}
.watch__poster:hover::after { background: rgba(17, 17, 17, 0); }
.watch__play {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
}
.watch__play span {
  display: grid; place-items: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--red); color: #fff;
  font-size: 1.3rem; padding-left: 4px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .3);
  transition: transform .18s ease, box-shadow .18s ease;
}
.watch__poster:hover .watch__play span {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(227, 6, 19, .35);
}
.watch__title { margin: 12px 0 4px; font-size: 1.2rem; }
.watch__meta {
  display: flex; flex-wrap: wrap; gap: 5px 12px;
  font-size: .82rem; color: var(--ink-muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.watch__desc { margin: 12px 0 0; white-space: pre-line; font-size: .9rem; }

/* Inline player — replaces the poster in-place on click */
.watch__screen {
  position: relative;
  width: 100%;
  border-radius: var(--r);
  overflow: hidden;
  background: #000;
}
.watch__inline-player { width: 100%; }
.watch__inline-player video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--r);
}
.watch__player-status {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  color: var(--ink-muted);
  font-size: .88rem;
  background: var(--surface-alt);
  border-radius: var(--r);
  z-index: 3;
}
.watch__player-status .spinner { margin: 0; }

/* Long-form admin-authored text (page.php). The stored value is plain text,
   so blank lines are the only paragraph break available to the author. */
.doc { white-space: pre-line; max-width: 70ch; }

/* Copy-to-clipboard link row */
.copy-row { display: flex; gap: 6px; align-items: center; }
.copy-row input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .8rem;
  background: var(--surface-alt);
}

/* Auth pages ----------------------------------------------------------- */
.auth {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--nav-h));
  padding: 32px 16px 48px;
}
.auth__card {
  width: 100%; max-width: 400px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 26px 24px;
  animation: scaleIn .3s ease both;
}
.auth__head { text-align: center; margin-bottom: 18px; }
.auth__head h1 { font-size: 1.3rem; margin-bottom: 4px; }
.auth__head p  { color: var(--ink-muted); font-size: .88rem; margin: 0; }
.auth__foot {
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  text-align: center; font-size: .84rem; color: var(--ink-muted);
}

/* Upload dropzone ------------------------------------------------------ */
.dropzone {
  border: 2px dashed var(--line);
  border-radius: var(--r);
  background: var(--surface-alt);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.dropzone:hover, .dropzone.is-over {
  border-color: var(--red);
  background: var(--red-soft);
  transform: scale(1.01);
}
.dropzone__icon { font-size: 1.6rem; color: var(--red); margin-bottom: 6px; }
.dropzone__hint { color: var(--ink-muted); font-size: .82rem; margin: 4px 0 0; }

/* Footer --------------------------------------------------------------- */
.foot {
  border-top: 1px solid var(--line);
  background: var(--surface-alt);
  padding: 20px 0;
  font-size: .82rem;
  color: var(--ink-muted);
}
.foot__inner { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.foot a { color: var(--ink-muted); transition: color .14s ease; }
.foot a:hover { color: var(--red); }

/* Utilities ------------------------------------------------------------ */
.mt-0 { margin-top: 0; }    .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 8px; }  .mb-1 { margin-bottom: 8px; }
.mt-2 { margin-top: 16px; } .mb-2 { margin-bottom: 16px; }
.mt-3 { margin-top: 24px; } .mb-3 { margin-bottom: 24px; }
.hide { display: none !important; }

/* =====================================================================
   Responsive — dashboards collapse to stacked cards on small screens
   ===================================================================== */

@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .watch { grid-template-columns: minmax(0, 1fr); }

  /* Sidebar becomes an off-canvas drawer */
  .side {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 58;
    width: 250px;
    border-radius: 0;
    border-width: 0 1px 0 0;
    padding: 12px 8px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform .22s ease;
  }
  .side.is-open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .side__backdrop.is-open { display: block; }

  .nav__toggle { display: inline-flex; }
  .nav__links  { display: none; }

  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .watch__play span { width: 52px; height: 52px; font-size: 1.1rem; }
}

@media (max-width: 640px) {
  :root {
    --gap: 12px;
    --gap-lg: 18px;
    --nav-h: 50px;
  }

  body { font-size: 13.5px; }

  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.1rem; }
  .page-head { align-items: flex-start; }
  .page { padding: var(--gap-lg) 0 36px; }

  .wrap { padding: 0 12px; }

  .hero { padding: 24px 16px; border-radius: var(--r); }
  .hero h1 { font-size: 1.4rem; }
  .hero p { font-size: .85rem; }
  .hero__stats { gap: 16px; }
  .hero__stat strong { font-size: 1.05rem; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .vgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 8px;
  }

  .vcard__play span { width: 34px; height: 34px; font-size: .7rem; }
  .vcard__title { font-size: .82rem; }
  .vcard__meta { font-size: .72rem; }

  .stat__value { font-size: 1.3rem; }
  .stat { padding: 12px 14px; }
  .card__body, .card__head, .card__foot { padding: 12px; }

  /* Tables marked .table--stack turn into one card per row.
     Each <td> needs data-label="Column name" for the inline label. */
  .table--stack thead { display: none; }
  .table--stack tbody tr {
    display: block;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 10px 12px;
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
  }
  .table--stack tbody tr:hover { background: #fff; }
  .table--stack tbody tr:last-child { margin-bottom: 0; }
  .table--stack td {
    display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
    padding: 4px 0;
    border: 0;
    text-align: right;
  }
  .table--stack td::before {
    content: attr(data-label);
    flex: 0 0 38%;
    text-align: left;
    font-size: .72rem; font-weight: 700; letter-spacing: .045em; text-transform: uppercase;
    color: var(--ink-muted);
  }
  .table--stack td[data-label=""]::before,
  .table--stack td:not([data-label])::before { content: none; }
  .table--stack .actions { justify-content: flex-end; flex-wrap: wrap; }

  .toolbar { padding: 10px 12px; }
  .toolbar .input, .toolbar select, .toolbar__search { width: 100%; min-width: 0; flex: 1 1 100%; }

  .player-overlay__bar { padding: 8px 12px; }
  .player-overlay__title { font-size: .82rem; }
  .player-overlay__stage { padding: 8px; }
  .player-overlay__frame video:not(.player-ad__video) { max-height: 58vh; border-radius: var(--r-sm); }
  .player-overlay__engine > .video-js { max-height: 58vh; }
  .player-ad__bar { flex-wrap: wrap; gap: 6px; }
  .player-ad-banner { left: 6px; right: 6px; bottom: 6px; transform: none; max-width: none; }

  .watch__title { font-size: 1.1rem; margin-top: 10px; }
  .watch__play span { width: 48px; height: 48px; font-size: 1rem; }

  .auth__card { padding: 20px 16px; }

  .btn { padding: 7px 12px; font-size: .84rem; }
  .btn--lg { padding: 9px 16px; font-size: .9rem; }
  .btn--sm { padding: 4px 8px; font-size: .78rem; }

  .nav__actions .btn--ghost,
  .nav__actions .btn--sm { padding: 4px 8px; font-size: .78rem; }

  .copy-row { flex-direction: column; }
  .copy-row input { font-size: .75rem; }
  .copy-row .btn { width: 100%; }

  .foot { padding: 16px 0; }
  .foot__inner { flex-direction: column; text-align: center; gap: 8px; }
}

/* Extra small screens (< 380px) */
@media (max-width: 380px) {
  .vgrid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero { padding: 20px 14px; }
  .hero h1 { font-size: 1.25rem; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
}
