/* Kecudo — deep teal brand with an amber spark. Unbounded for the wordmark and headlines, Manrope for text.
   Light and dark themes follow the visitor's system setting. */
:root {
  --bg: #f2f5f4; --surface: #ffffff; --surface-2: #f7f9f8; --ink: #0e1b1a; --muted: #5b6b69; --line: #dce3e1;
  --brand: #0e7c6b; --brand-ink: #ffffff; --brand-soft: #dcf1ec; --brand-strong: #0a5e51;
  --pop: #f2a93b; --pop-soft: #fdf0dc;
  --ok: #1d7a4f; --ok-soft: #e1f3ea; --err: #b3261e; --err-soft: #fbe6e3; --warn: #8a5a00; --warn-soft: #fdf2d6;
  --shadow: 0 1px 2px rgba(14, 27, 26, .06), 0 8px 24px -12px rgba(14, 27, 26, .18);
  --shadow-hover: 0 2px 4px rgba(14, 27, 26, .08), 0 18px 40px -16px rgba(14, 27, 26, .30);
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;
  --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1312; --surface: #121d1c; --surface-2: #0f1918; --ink: #e6efed; --muted: #93a5a2; --line: #22312f;
    --brand: #2fb79f; --brand-ink: #04201b; --brand-soft: #123029; --brand-strong: #5fd3bd;
    --pop: #f5b95a; --pop-soft: #3a2a12;
    --ok: #5cc996; --ok-soft: #173326; --err: #ff8a80; --err-soft: #3a1b19; --warn: #f5c56a; --warn-soft: #3a2e12;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .6);
    --shadow-hover: 0 2px 4px rgba(0, 0, 0, .5), 0 18px 40px -16px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); }
a { color: var(--brand); text-underline-offset: 3px; }
img { max-width: 100%; }
.wrap { max-width: 1040px; margin: 0 auto; padding-inline: 16px; }
.wrap.wide, .topbar .wrap, .footer.wrap { max-width: 1200px; }
main.wrap { padding-block: 28px 56px; }
h1 { font: 700 clamp(26px, 4vw, 38px)/1.12 var(--display); letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h2 { font: 700 18px/1.3 var(--display); letter-spacing: -0.01em; margin: 0; }
h3 { font-size: 17px; line-height: 1.3; margin: 0; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 14px; }
.tag { font: 600 12px var(--font); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
code { font: 13px var(--mono); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; overflow-wrap: anywhere; }
.breakall { display: inline-block; margin-top: 6px; word-break: break-all; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ----- top bar ----- */
.topbar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 34px; height: 34px; flex: none; }
.wordmark { font: 700 22px/1 var(--display); letter-spacing: -0.03em; }
.brand.small .logo-mark { width: 22px; height: 22px; }
.brand.small .wordmark { font-size: 15px; }
nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.navlink { font: 600 15px var(--font); color: var(--ink); text-decoration: none; padding: 8px 10px; border-radius: 8px; }
.navlink:hover { background: var(--surface); }
.pill { display: inline-block; background: var(--pop); color: #2b1a00; font: 700 11px/1 var(--font); padding: 4px 7px; border-radius: 999px; vertical-align: 2px; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-block: 20px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* ----- buttons & forms ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 700 15px var(--font); background: var(--brand); color: var(--brand-ink); border: 0; border-radius: 10px; padding: 11px 18px; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--brand-strong); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.small { padding: 7px 12px; font-size: 14px; border-radius: 8px; }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--brand); background: var(--surface); }
.linkbtn { background: none; border: 0; padding: 0; font: 600 14px var(--font); color: var(--brand); cursor: pointer; }
.linkbtn.navlink { font-size: 15px; color: var(--ink); padding: 8px 10px; }
.linkbtn.danger { color: var(--err); }
.small-text { font-size: 13px; }
form.inline { display: inline; margin: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
label small { font-weight: 500; color: var(--muted); }
input, textarea, select { font: 500 15px var(--font); color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
label.check { flex-direction: row; align-items: center; gap: 10px; font-weight: 600; }
label.check input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.narrow { max-width: 460px; margin: 12px auto 0; display: flex; flex-direction: column; gap: 16px; }
.alert { padding: 12px 14px; border-radius: 12px; font-size: 15px; margin: 14px 0; }
.alert.err { background: var(--err-soft); color: var(--err); }
.alert.ok { background: var(--ok-soft); color: var(--ok); }
.alert.warn { background: var(--warn-soft); color: var(--warn); }
.alert a { color: inherit; font-weight: 700; }
.status { min-height: 1.4em; font-size: 14px; }
.status.ok { color: var(--ok); } .status.err { color: var(--err); }
.drop { border: 2px dashed var(--line); border-radius: 14px; padding: 26px 16px; text-align: center; align-items: center; cursor: pointer; font-weight: 500; background: var(--surface-2); }
.drop.over, .drop:hover, .drop.has-file { border-color: var(--brand); background: var(--brand-soft); }
.drop strong { font: 700 16px var(--display); }
.drop input { max-width: 100%; width: auto; background: transparent; border: 0; }
.fn { font: 500 13px var(--mono); overflow-wrap: anywhere; }
progress { width: 100%; height: 8px; accent-color: var(--brand); }
.empty { padding: 18px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); grid-column: 1 / -1; }
.empty.big { display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; padding: 48px 16px; }
.empty.big b { color: var(--ink); font-size: 17px; }

/* ----- home ----- */
.hero { display: flex; flex-direction: column; gap: 14px; padding-block: 12px 26px; max-width: 760px; }
.hero h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.05; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p { margin: 0; color: var(--muted); font-size: 18px; max-width: 56ch; }
.search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px 6px 6px 14px; box-shadow: var(--shadow); max-width: 620px; margin-top: 6px; }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.search svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex: none; }
.search input { border: 0; background: transparent; padding: 8px 4px; box-shadow: none; min-width: 0; }
.search input:focus { box-shadow: none; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; }
.chip span { font-weight: 600; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--brand); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip.on span { color: inherit; opacity: .7; }
.results { margin: -6px 0 16px; }

/* ----- video cards (3 columns) ----- */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid3.spaced { margin-top: 18px; }
@media (max-width: 960px) { .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid3 { grid-template-columns: 1fr; } .two { grid-template-columns: 1fr; } }
.vcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; min-width: 0; transition: box-shadow .2s, transform .2s; }
@media (prefers-reduced-motion: no-preference) { .vcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); } }
.frame { position: relative; padding: 8px 8px 0; }
.frame video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; border-radius: 10px; }
.vbody { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.vtop { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vtop time { font-size: 13px; color: var(--muted); white-space: nowrap; }
.vcard h3 { overflow-wrap: anywhere; }
.vcard h3.fn { font: 600 14px var(--mono); }
.desc { margin: 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.by { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; margin-top: auto; padding-top: 6px; min-width: 0; }
.by span { overflow: hidden; text-overflow: ellipsis; }
.by:hover span { color: var(--brand); }
.who { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: 14px; font-weight: 700; padding-top: 4px; }
.actions a { text-decoration: none; }
.vcard.is-new { border-color: var(--pop); box-shadow: 0 0 0 2px var(--pop-soft), var(--shadow); }
.edit summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--brand); }
.edit form { margin-top: 12px; }

/* category & status badges */
.cat { display: inline-block; font: 700 11px/1 var(--font); text-transform: uppercase; letter-spacing: .06em; padding: 6px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge { font: 700 11px/1 var(--font); text-transform: uppercase; letter-spacing: .05em; padding: 6px 9px; border-radius: 999px; white-space: nowrap; }
.badge.on { background: var(--ok-soft); color: var(--ok); }
.badge.off { background: var(--line); color: var(--muted); }
.badge.new { background: var(--pop); color: #2b1a00; }
.badge.priv { background: var(--brand-soft); color: var(--brand-strong); }

/* avatars */
.avatar { display: inline-grid; place-items: center; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-2); }
.avatar.initials { background: hsl(var(--h) 55% 88%); color: hsl(var(--h) 55% 26%); font: 700 13px var(--display); }
@media (prefers-color-scheme: dark) { .avatar.initials { background: hsl(var(--h) 40% 22%); color: hsl(var(--h) 60% 80%); } }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.avatar.md { width: 40px; height: 40px; }
.avatar.lg { width: 64px; height: 64px; font-size: 20px; }
.avatar.xl { width: 104px; height: 104px; font-size: 32px; border: 4px solid var(--surface); box-shadow: var(--shadow); }

.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; margin: 40px 0 16px; }
.section-head h1 { font-size: clamp(24px, 3.4vw, 32px); }
main > .section-head:first-child { margin-top: 0; }
.creators { margin-top: 12px; }
.creator-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.creator { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 18px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; min-width: 0; }
.creator:hover { border-color: var(--brand); }
.creator b { font-size: 15px; overflow-wrap: anywhere; }
.creator span { font-size: 13px; color: var(--muted); }

/* ----- profile header (dashboard & vendor page) ----- */
.back { display: inline-block; margin-bottom: 18px; font-weight: 700; text-decoration: none; }
.profile-head { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; margin-bottom: 8px; position: relative; overflow: hidden; }
.profile-head::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--brand), var(--pop)); }
.profile-text { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 240px; align-items: flex-start; }
.profile-text p { margin: 0; max-width: 62ch; }
.avatar-edit { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.avatar-form { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.avatar-form .status { font-size: 13px; text-align: center; max-width: 140px; }
.linkrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.linkrow code { padding: 6px 8px; min-width: 0; }
.settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 40px; align-items: start; }
.settings summary { cursor: pointer; font: 700 16px var(--display); }
.settings form { margin-top: 16px; }

/* ----- admin ----- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stats div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 2px; }
.stats b { font: 700 24px var(--display); font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: 14px; }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.two-col h2 { margin-bottom: 12px; }
.status-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.status-list li { display: flex; gap: 12px; align-items: flex-start; }
.status-list li > b { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; }
.status-list li.ok > b { background: var(--ok-soft); color: var(--ok); }
.status-list li.bad > b { background: var(--warn-soft); color: var(--warn); }
.status-list div { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; }
.status-list span { color: var(--muted); }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td .by { margin: 0; padding: 0; font-weight: 500; }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions form + form { margin-left: 12px; }

/* ----- clickable thumbnails ----- */
.frame.thumb { display: block; position: relative; color: inherit; }
.frame.thumb img, .frame.thumb video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; border-radius: 10px; pointer-events: none; }
.play { position: absolute; left: 50%; top: calc(50% + 4px); transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; background: rgba(14, 27, 26, .62); display: grid; place-items: center; transition: background .2s, transform .2s; }
.play svg { width: 24px; height: 24px; fill: #fff; margin-left: 3px; }
.frame.thumb:hover .play { background: var(--brand); }
@media (prefers-reduced-motion: no-preference) { .frame.thumb:hover .play { transform: translate(-50%, -50%) scale(1.08); } }
.title-link { color: inherit; text-decoration: none; }
.title-link:hover { color: var(--brand); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; min-width: 0; }
.card-foot .by { margin: 0; padding: 0; }
.views { font-size: 13px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cover-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.thumb-form { display: flex; align-items: center; gap: 8px; }
.thumb-form .status { font-size: 13px; }
.two label.check { align-self: center; }
input[type="file"] { padding: 9px; }

/* ----- watch page ----- */
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .watch { grid-template-columns: 1fr; } }
.player { background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.player video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.watch-meta { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; }
.watch-meta h1 { font-size: clamp(22px, 3vw, 30px); }
.watch-desc { margin: 0; white-space: pre-line; max-width: 70ch; }
.share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share code { padding: 6px 8px; min-width: 0; }
.vendor-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 84px; }
.vendor-box p { margin: 0; font-size: 14px; }
.by.big { font-size: 16px; padding: 0; gap: 12px; }
.by.big > span { display: flex; flex-direction: column; }
.by.big .muted { font-weight: 500; font-size: 13px; }

/* ----- category colors (hue set per category) ----- */
.cat { --h: 170; background: hsl(var(--h) 70% 93%); color: hsl(var(--h) 60% 28%); text-decoration: none; }
a.cat:hover { background: hsl(var(--h) 70% 87%); }
.cat.none { background: var(--warn-soft); color: var(--warn); text-transform: none; letter-spacing: 0; font-size: 12px; }
.chip.cat-chip.on { background: hsl(var(--h) 55% 38%); border-color: hsl(var(--h) 55% 38%); color: #fff; }
@media (prefers-color-scheme: dark) {
  .cat { background: hsl(var(--h) 35% 20%); color: hsl(var(--h) 70% 78%); }
  a.cat:hover { background: hsl(var(--h) 35% 26%); }
  .chip.cat-chip.on { background: hsl(var(--h) 45% 45%); border-color: hsl(var(--h) 45% 45%); }
}
.hero .lede { font: 700 clamp(18px, 2.4vw, 24px)/1.3 var(--display); color: var(--ink); }
.section-head.first { margin-top: 8px; }

/* ----- categories page ----- */
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 960px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr; } }
.cat-tile { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; }
.cat-tile:hover { border-color: hsl(var(--h) 55% 45%); }
@media (prefers-reduced-motion: no-preference) { .cat-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); } }
.cat-visual { aspect-ratio: 16 / 7; background: linear-gradient(135deg, hsl(var(--h) 65% 88%), hsl(calc(var(--h) + 30) 70% 80%)); }
@media (prefers-color-scheme: dark) { .cat-visual { background: linear-gradient(135deg, hsl(var(--h) 35% 22%), hsl(calc(var(--h) + 30) 40% 16%)); } }
.cat-visual img, .cat-visual video { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cat-text { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-top: 4px solid hsl(var(--h) 55% 45%); }
.cat-text b { font-size: 16px; }
.cat-text span { font-size: 13px; color: var(--muted); white-space: nowrap; }

/* ----- vendor contact & wider sign-up ----- */
.contact { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--muted); }
.narrow.wide-form { max-width: 560px; }
.vtop .cat { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.vtop time, .vtop .badge { flex: none; }
.cat-visual { position: relative; overflow: hidden; }
.cat-visual img, .cat-visual video { position: absolute; inset: 0; }
.cat-grid { align-items: start; }

/* ----- company line under each video ----- */
.vtop .uploaded { font-size: 13px; color: var(--muted); white-space: nowrap; flex: none; }
.company { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); min-width: 0; }
.company-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.company-name { font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.company-name:hover { color: var(--brand); }
.site { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--brand); text-decoration: none; min-width: 0; max-width: 100%; }
.site:hover { text-decoration: underline; }
.site svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
.site span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.company .views { align-self: flex-end; }
.profile-text .site, .vendor-box .site { font-size: 15px; }

/* ----- home headline colors: green headline, red question ----- */
:root { --hero-green: #15803d; --hero-red: #dc2626; }
@media (prefers-color-scheme: dark) { :root { --hero-green: #4ade80; --hero-red: #f87171; } }
.hero h1.hero-green { color: var(--hero-green); }
.hero .lede.hero-red { color: var(--hero-red); }

/* Current page in the top menu */
.navlink.on { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--brand); }

/* Subcategory filter row on the home page */
.subchips { margin-top: -8px; padding: 10px 12px; border-radius: var(--radius); background: hsl(var(--h) 60% 96%); border: 1px solid hsl(var(--h) 40% 88%); }
.chip.sub-chip { padding: 6px 12px; font-size: 13px; }
.chip.sub-chip.on { background: hsl(var(--h) 55% 38%); border-color: hsl(var(--h) 55% 38%); color: #fff; }
@media (prefers-color-scheme: dark) {
  .subchips { background: hsl(var(--h) 30% 12%); border-color: hsl(var(--h) 25% 22%); }
  .chip.sub-chip.on { background: hsl(var(--h) 45% 45%); border-color: hsl(var(--h) 45% 45%); }
}
/* Matching categories shown above search results */
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 18px; font-size: 14px; }

/* Category tiles with their subcategories */
.cat-tile .cat-main { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.sub-list { list-style: none; margin: 0; padding: 4px 16px 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.sub-list a { display: inline-block; font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.sub-list a:hover { border-color: hsl(var(--h) 55% 45%); color: hsl(var(--h) 55% 32%); }
.sub-list a span { color: var(--muted); font-size: 12px; margin-left: 2px; }
@media (prefers-color-scheme: dark) { .sub-list a:hover { color: hsl(var(--h) 70% 78%); } }

/* Category path on the watch page: Home & Garden › Furniture */
.catpath { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font: 700 13px var(--font); margin-bottom: 6px; }
.catpath a { color: hsl(var(--h) 55% 32%); text-decoration: none; background: hsl(var(--h) 70% 93%); padding: 5px 10px; border-radius: 999px; }
.catpath a:hover { background: hsl(var(--h) 70% 87%); }
.catpath span { color: var(--muted); }
@media (prefers-color-scheme: dark) { .catpath a { background: hsl(var(--h) 35% 20%); color: hsl(var(--h) 70% 78%); } .catpath a:hover { background: hsl(var(--h) 35% 26%); } }

/* About page */
.prose { max-width: 680px; margin: 12px auto 0; }
.prose h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; margin: 6px 0 14px; }
.prose h2 { font-size: 20px; margin: 28px 0 8px; }
.prose p { margin: 0 0 12px; }
.prose .lead { font-size: 19px; color: var(--muted); }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px !important; }

/* Contact page */
.narrow.wider { max-width: 620px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Contact messages on /admin */
.msgs { display: flex; flex-direction: column; gap: 12px; }
.msg { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.msg.is-new { border-color: var(--pop); box-shadow: 0 0 0 2px var(--pop-soft); }
.msg-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.msg-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.msg-body { margin: 10px 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Top menu: allow wrapping on small screens now that it has more links */
.topbar-inner nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 2px; }
@media (max-width: 720px) { .navlink { padding: 6px 7px; font-size: 14px; } .linkbtn.navlink { font-size: 14px; padding: 6px 7px; } }

/* Ad / Vd labels next to each uploader */
.acct { display: inline-block; font: 800 10.5px/1 var(--font); letter-spacing: .04em; padding: 4px 6px; border-radius: 6px; vertical-align: 2px; white-space: nowrap; cursor: help; }
.acct-advertiser { background: var(--pop); color: #2b1a00; }
.acct-vendor { background: var(--brand); color: var(--brand-ink); }
h1 .acct { font-size: 13px; padding: 5px 8px; vertical-align: 6px; }
.company-line { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.company-line .company-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Video length on cards */
.len { position: absolute; right: 16px; bottom: 8px; background: rgba(0, 0, 0, .72); color: #fff; font: 700 12px/1 var(--font); padding: 4px 6px; border-radius: 6px; font-variant-numeric: tabular-nums; }

/* Sign-up: choose Vendor or Advertiser */
.type-pick { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.type-pick legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; padding: 0; }
@media (max-width: 600px) { .type-pick { grid-template-columns: 1fr; } }
.type-option { display: flex; flex-direction: row; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; background: var(--surface-2); font-weight: 500; }
.type-option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand); }
.type-option input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.type-option > span { display: flex; flex-direction: column; gap: 4px; }
.type-option b { display: flex; align-items: center; gap: 8px; }
.type-option small { color: var(--muted); font-weight: 500; line-height: 1.4; }
label.check.agree { align-items: flex-start; font-weight: 500; }
label.check.agree input { margin-top: 3px; }

/* My page: terms and advertiser notes */
.terms-card { border-color: var(--pop); }
.terms-card h3 { margin: 0; }
.terms-card p { margin: 0; }
.alert.ad-note { background: var(--pop-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--pop) 50%, transparent); }

/* About page: two account-type cards */
.type-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0 8px; }
@media (max-width: 640px) { .type-cards { grid-template-columns: 1fr; } }
.type-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 6px; border-top: 4px solid var(--brand); }
.type-card.ad { border-top-color: var(--pop); }
.type-card h2 { margin: 0 0 8px !important; display: flex; align-items: center; gap: 8px; }
.type-card ul { padding-left: 18px; margin: 0 0 12px; }
.type-card li { margin-bottom: 6px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.terms h2 { font-size: 18px; }

/* Admin: email buttons and type picker */
.email-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.type-form { display: flex; gap: 8px; align-items: center; }
.type-form select { padding: 6px 8px; font-size: 13px; width: auto; }
details summary { cursor: pointer; }

/* ----- shop ----- */
.shop-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px; align-items: center; padding-block: 8px 30px; }
.shop-hero-text { display: flex; flex-direction: column; gap: 14px; }
.shop-hero h1 { font-size: clamp(30px, 4.6vw, 48px); line-height: 1.06; }
.shop-hero .lead { margin: 0; color: var(--muted); font-size: 18px; }
.shop-hero .cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.shop-video { border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow-hover); aspect-ratio: 16 / 9; }
.shop-video video { width: 100%; height: 100%; display: block; object-fit: contain; }
.shop-video-empty { height: 100%; display: grid; place-items: center; color: #cfd8d6; font-weight: 700; background: linear-gradient(135deg, #0e7c6b, #0a5e51); }
.shop-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-block: 8px 34px; scroll-margin-top: 90px; }
.shop-plan { display: flex; flex-direction: column; gap: 14px; }
.shop-plan.pro { border: 2px solid var(--pop); box-shadow: var(--shadow-hover); }
.shop-plan h2 { display: flex; align-items: center; gap: 10px; font-size: 22px; }
.shop-badge { font: 700 11px var(--font); text-transform: uppercase; letter-spacing: .06em; background: var(--pop); color: #2b1a00; padding: 4px 8px; border-radius: 999px; }
.shop-price { font: 700 34px/1 var(--display); }
.shop-price span { font: 600 15px var(--font); color: var(--muted); }
.shop-plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.shop-plan li { display: flex; gap: 10px; align-items: flex-start; }
.shop-check { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.shop-check circle { fill: var(--brand-soft); } .shop-check path { fill: none; stroke: var(--brand); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.shop-plan.pro .shop-check circle { fill: var(--pop-soft); } .shop-plan.pro .shop-check path { stroke: #b86e00; }
#paypal-buttons { min-height: 50px; }
.shop-how { max-width: 760px; display: flex; flex-direction: column; gap: 12px; }
.shop-how ol { margin: 0 0 14px; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.shop-how details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.shop-how summary { font-weight: 700; cursor: pointer; }
.shop-how details p { margin: 8px 0 0; color: var(--muted); }
.shop-card { display: flex; flex-direction: column; gap: 10px; }
.shop-card p { margin: 0; }
.shop-order h2 { font-size: 16px; }
.shop-key { font: 500 13px var(--mono); word-break: break-all; resize: none; }
.shop-file { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.shop-upload { cursor: pointer; }
.shop-sub { font: 700 15px var(--font); margin: 22px 0 8px; }
.shop-manual { align-items: end; }
#shop .stats { margin: 14px 0; }
@media (max-width: 820px) { .shop-hero, .shop-plans { grid-template-columns: 1fr; } }
.shop-buy { display: flex; flex-direction: column; gap: 8px; }
.shop-buy-btn { width: 100%; padding: 15px 18px; font-size: 17px; }
.shop-pay-icons { text-align: center; color: var(--muted); font-size: 13px; font-weight: 600; }
.shop-or { text-align: center; color: var(--muted); margin: 4px 0; }
.shop-help { font-size: 16px; line-height: 1.55; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.shop-help summary { cursor: pointer; font-weight: 800; font-size: 17px; color: var(--brand); }
.shop-help ul { margin: 10px 0 2px; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.shop-help b { color: var(--ink); }
.shop-plan .shop-help ul { flex: none; list-style: disc; }
.shop-plan .shop-help li, .shop-help li { display: list-item; }

/* ----- admin: visitors ----- */
#visitors { margin-bottom: 22px; }
#visitors .stats { margin: 14px 0; }
.vchart { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.vbar { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.vbar span { width: 100%; background: var(--brand); border-radius: 4px 4px 0 0; opacity: .8; }
.vbar:hover span { opacity: 1; }
.vbar.today span { background: var(--pop); opacity: 1; }
.vchart-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: 4px; }
.vlist { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.vlist li span { overflow-wrap: anywhere; }
.vlist li b { float: right; font-variant-numeric: tabular-nums; margin-left: 10px; }
.vcols { margin-top: 8px; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 26px; margin-top: 6px; }
.vshare { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.vshare-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.vshare-top b { font-variant-numeric: tabular-nums; }
.vshare-bar { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-top: 3px; }
.vshare-bar span { display: block; height: 100%; background: var(--brand); border-radius: 99px; }

/* ----- shop catalog & products ----- */
.shop-front { max-width: 820px; }
.shop-card { padding: 14px; gap: 8px; }
.shop-card h3 { font-size: 17px; }
.shop-card .desc { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shop-cover { display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.shop-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-noimg { width: 100%; height: 100%; display: grid; place-items: center; text-align: center; padding: 12px; font: 700 15px var(--display); color: var(--brand-strong); background: linear-gradient(135deg, var(--brand-soft), var(--pop-soft)); }
.shop-card-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: auto; font-size: 14px; }
.shop-card-foot b { font-size: 17px; }
.shop-item { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: start; margin: 14px 0 28px; }
.shop-item-media { border-radius: var(--radius); overflow: hidden; background: var(--surface-2); display: flex; flex-direction: column; gap: 10px; }
.shop-item-media video, .shop-item-media .shop-item-img { width: 100%; display: block; aspect-ratio: 4 / 3; object-fit: cover; background: #000; }
.shop-item-media .shop-noimg { aspect-ratio: 4 / 3; font-size: 22px; }
.shop-item-media audio { width: calc(100% - 20px); margin: 0 10px; }
.shop-item-media .hint { margin: 0 12px 10px; }
.shop-item-info { display: flex; flex-direction: column; gap: 12px; }
.shop-item-info h1 { font-size: clamp(26px, 3.6vw, 38px); }
.shop-item-info .lead { margin: 0; color: var(--muted); font-size: 17px; }
.shop-facts { list-style: none; margin: 6px 0 0; padding: 0; border-top: 1px solid var(--line); }
.shop-facts li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.shop-facts span { color: var(--muted); text-align: right; }
.shop-desc { max-width: 760px; margin-bottom: 26px; }
.shop-vendor { margin: 8px 0 26px; }
.wide-form { max-width: 720px; }
.shop-earn { display: flex; flex-direction: column; justify-content: center; gap: 2px; background: var(--ok-soft); border-radius: 12px; padding: 10px 14px; }
.shop-earn b { font: 700 24px var(--display); color: var(--ok); }
.shop-earn small { font-size: 12px; }
.shop-connect { margin: 10px 0 4px; }
#selling { margin-bottom: 22px; }
#selling .section-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
@media (max-width: 820px) { .shop-item { grid-template-columns: 1fr; } }

/* vendor payout balance */
.shop-balance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 10px 0; }
.shop-balance > div { background: var(--card, #fff); border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.shop-balance b { font: 700 22px var(--display); color: var(--ok); }
.shop-balance span { font-size: 13px; opacity: .8; }
.alert .cta-row { margin-top: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- Digital Products: its own frame, apart from the free video categories ---------- */
:root { --dp: #5b3fd6; --dp-strong: #4329b3; --dp-soft: #efeafd; --dp-line: #cfc3f7; }
@media (prefers-color-scheme: dark) { :root { --dp: #a891ff; --dp-strong: #c4b5ff; --dp-soft: #1f1840; --dp-line: #3b2f70; } }
.cat-bar { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.cat-bar > .chips { flex: 1 1 420px; margin: 0; }
.dp-box { padding: 6px; border-radius: 999px; background: var(--dp-soft); border: 2px dashed var(--dp-line); }
.dp-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--dp-line);
  color: var(--dp-strong); font-weight: 800; font-size: 14px; text-decoration: none; }
.dp-chip svg, .dp-badge svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.dp-chip span { font-weight: 600; font-size: 12px; opacity: .75; }
.dp-chip:hover { border-color: var(--dp); }
.dp-chip.on { background: var(--dp); border-color: var(--dp); color: #fff; }
@media (prefers-color-scheme: dark) { .dp-chip.on { color: #120c2b; } }
.dp-frame { margin: 22px 0 8px; padding: 20px; border-radius: 22px; border: 2px solid var(--dp-line);
  background: linear-gradient(135deg, var(--dp-soft), var(--surface) 70%); box-shadow: var(--shadow); }
.dp-frame .grid3 { margin-top: 16px; }
.dp-frame .subchips { --h: 255 !important; margin-top: 16px; background: var(--surface); }
.dp-head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.dp-head h3 { font: 700 clamp(18px, 2.4vw, 22px)/1.25 var(--display); margin: 8px 0 4px; letter-spacing: -0.01em; }
.dp-head p { margin: 0; color: var(--muted); }
.dp-head .btn:not(.ghost) { background: var(--dp); border-color: var(--dp); }
.dp-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--dp); color: #fff;
  font-weight: 800; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
@media (prefers-color-scheme: dark) { .dp-badge { color: #120c2b; } }
.dp-empty { margin: 14px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px dashed var(--dp-line); color: var(--muted); }
.dp-frame .pager { margin-top: 18px; }

/* ---------- vendor "Sell digital downloads" panel ---------- */
.sell-panel { border: 2px solid var(--dp-line); background: linear-gradient(135deg, var(--dp-soft), var(--surface) 65%); padding: 24px; }
.sell-head { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.sell-head h2 { font: 700 clamp(22px, 3vw, 28px)/1.2 var(--display); margin-top: 8px; color: var(--dp-strong); }
.sell-head .btn { background: var(--dp); border-color: var(--dp); }
.sell-only { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--pop); color: #2a1a00; font-weight: 800; font-size: 13px;
  letter-spacing: .04em; text-transform: uppercase; }
.sell-lead { font-size: 18px; line-height: 1.55; margin: 14px 0; }
.sell-lead b { color: var(--dp-strong); }
.sell-facts { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.sell-facts li { background: var(--surface); border: 1px solid var(--dp-line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.sell-facts b { font: 700 22px var(--display); color: var(--dp-strong); }
.sell-facts span { font-size: 14px; color: var(--muted); }
.sell-note { font-size: 15px; font-weight: 600; color: var(--warn); margin: 0 0 14px; }
@media (max-width: 560px) { .sell-panel, .dp-frame { padding: 16px; } .sell-lead { font-size: 16px; } .dp-box { border-radius: 18px; } }

/* ---------- samples: try before you buy ---------- */
.shop-cover { position: relative; }
.sample-tag { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(14, 27, 26, .82); color: #fff;
  font-weight: 800; font-size: 12px; letter-spacing: .02em; backdrop-filter: blur(4px); }
.sample-label { margin: 12px 0 6px; font-weight: 800; color: var(--dp-strong); }
.shop-item-media audio, .shop-item-media video { width: 100%; }
.shop-sample { width: 100%; height: 460px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.sample-field { padding: 14px; border-radius: 14px; border: 2px dashed var(--dp-line); background: var(--dp-soft); }
.sample-field b { color: var(--dp-strong); }
.pay-rule { margin: 6px 0 0; line-height: 1.6; }
.videos-head { align-items: flex-end; }
.videos-for { margin: 6px 0 0; font-size: 16px; font-weight: 700; color: var(--brand-strong); }

/* Digital Products: square category tiles */
.dp-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 16px 14px; margin-top: 18px; }
.dp-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--ink); text-align: center; }
.dp-sq { width: 100%; aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden; border: 2px solid var(--dp-line); display: grid; place-items: center;
  background: linear-gradient(145deg, var(--dp-soft), var(--surface)); box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.dp-sq img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dp-ico { font-size: 44px; line-height: 1; }
.dp-tile b { margin-top: 6px; font-size: 14px; font-weight: 800; line-height: 1.25; }
.dp-tile small { color: var(--muted); font-size: 12px; }
.dp-tile:hover .dp-sq, .dp-tile.on .dp-sq { border-color: var(--dp); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.dp-tile.on b { color: var(--dp-strong); }
.dp-sub { margin: 22px 0 0; font: 700 15px var(--display); color: var(--dp-strong); }
@media (max-width: 560px) { .dp-tiles { grid-template-columns: repeat(3, 1fr); gap: 12px 10px; } .dp-ico { font-size: 34px; } .dp-tile b { font-size: 12.5px; } }

/* Home grids: 4 videos per row; digital products 5 per row */
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.grid5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.dp-frame .grid5 { margin-top: 12px; }
.grid4 .vcard h3, .grid5 .shop-card h3 { font-size: 15px; }
.grid4 .desc { font-size: 13.5px; }
.grid5 .shop-card { padding: 10px; }
.grid5 .shop-card .desc { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.grid5 .shop-card-foot { font-size: 13px; gap: 6px; flex-wrap: wrap; }
.grid5 .sample-tag { font-size: 11px; padding: 3px 8px; left: 8px; bottom: 8px; }
@media (max-width: 1100px) { .grid5 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 960px) { .grid4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grid4, .grid5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 420px) { .grid4 { grid-template-columns: 1fr; } }

/* Digital Products tiles: smaller, all on one line (scrolls sideways on small screens) */
.dp-tiles { grid-template-columns: repeat(9, minmax(84px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.dp-tile { scroll-snap-align: start; }
.dp-sq { border-radius: 14px; }
.dp-ico { font-size: 32px; }
.dp-tile b { font-size: 12.5px; margin-top: 4px; }
.dp-tile small { font-size: 11px; }
@media (max-width: 560px) { .dp-tiles { grid-template-columns: repeat(9, 84px); gap: 10px; } .dp-ico { font-size: 28px; } .dp-tile b { font-size: 12px; } }

/* product lists: cover column */
.products-table td.cover-cell { width: 84px; padding-right: 0; }
.cover-thumb { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
  background: var(--surface-2); text-decoration: none; text-align: center; font-size: 11px; color: var(--muted); line-height: 1.3; }
.cover-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-thumb b { color: var(--brand); }
.cover-thumb:hover { border-color: var(--brand); }

/* Music tile: animated, glowing equalizer */
.eq-sq { background: radial-gradient(circle at 50% 120%, #4a2a8c 0%, #1d1240 60%, #120b2a 100%); position: relative; }
.eq-sq::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.28) 48%, transparent 62%);
  transform: translateX(-120%); animation: eq-shine 3.2s ease-in-out infinite; }
.eq { display: flex; align-items: flex-end; justify-content: center; gap: 3px; width: 82%; height: 70%; }
.eq i { flex: 1; height: 100%; border-radius: 3px 3px 1px 1px; transform-origin: bottom; background: linear-gradient(to top, #ff6a3d, #ffb340 55%, #fff27a);
  box-shadow: 0 0 6px rgba(255, 190, 70, .85), 0 0 14px rgba(255, 120, 60, .55);
  animation: eq-jump calc(.7s + var(--i) * .07s) ease-in-out calc(var(--i) * -.23s) infinite alternate; }
.eq i:nth-child(3n) { animation-duration: .55s; } .eq i:nth-child(4n+1) { animation-duration: .9s; }
@keyframes eq-jump { 0% { transform: scaleY(.15); filter: brightness(.9); } 35% { transform: scaleY(.85); } 60% { transform: scaleY(.4); }
  100% { transform: scaleY(1); filter: brightness(1.35); } }
@keyframes eq-shine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@media (prefers-reduced-motion: reduce) { .eq i { animation: none; transform: scaleY(calc(.35 + mod(var(--i), 4) * .18)); } .eq-sq::after { animation: none; } }

/* Home category chips: smaller, light orange with dark blue text */
:root { --chip-bg: #ffe8cf; --chip-line: #f6cfa3; --chip-ink: #13285c; --chip-on: #13285c; --chip-on-ink: #fff3e4; }
@media (prefers-color-scheme: dark) { :root { --chip-bg: #3a2814; --chip-line: #5a3f20; --chip-ink: #c9d8ff; --chip-on: #c9d8ff; --chip-on-ink: #1a1206; } }
.cat-bar > .chips, .orange-chips { gap: 8px; }
.cat-bar > .chips .chip, .orange-chips .chip { padding: 6px 12px; font-size: 13px; background: var(--chip-bg); border-color: var(--chip-line); color: var(--chip-ink); }
.cat-bar > .chips .chip span, .orange-chips .chip span { font-size: 11px; color: var(--chip-ink); opacity: .65; }
.cat-bar > .chips .chip:hover, .orange-chips .chip:hover { border-color: var(--chip-ink); }
.cat-bar > .chips .chip.on, .cat-bar > .chips .chip.cat-chip.on, .orange-chips .chip.on { background: var(--chip-on); border-color: var(--chip-on); color: var(--chip-on-ink); }
.cat-bar > .chips .chip.on span, .orange-chips .chip.on span { color: inherit; opacity: .8; }
.cat-bar .dp-chip { padding: 6px 14px; font-size: 13px; }
.grid5.spaced { margin-top: 18px; }
.about-dp { padding: 18px 20px; border-radius: 18px; border: 2px solid var(--dp-line); background: linear-gradient(135deg, var(--dp-soft), var(--surface) 70%); }
.about-dp p:first-child { margin-top: 0; }
.about-dp ul { margin-bottom: 0; }

/* admin money table */
.ledger td.num, .ledger th { white-space: nowrap; }
.ledger .pos { color: var(--ok); }
.ledger .neg { color: var(--err); }
.stats .stat-kecudo { border-color: var(--ok); background: var(--ok-soft); }
.stats .stat-kecudo b { color: var(--ok); }

/* ---------- checkout box: clear, calm and trustworthy ---------- */
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.buy-card { margin-top: 18px; padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.buy-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.buy-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-weight: 700; font-size: 13px; }
.buy-chip .ico { width: 15px; height: 15px; }
.shop-buy-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; letter-spacing: .01em; box-shadow: 0 8px 20px -10px rgba(14, 124, 107, .7); }
.shop-buy-btn .ico { width: 19px; height: 19px; }
.pay-methods { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pay-methods span { padding: 4px 9px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface-2); font-size: 12px; font-weight: 800; letter-spacing: .02em; color: var(--ink); }
.secure-note { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--brand-soft); color: var(--ink); font-size: 13.5px; line-height: 1.5; }
.secure-note .ico { color: var(--brand-strong); margin-top: 1px; }
.trust-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14px; line-height: 1.45; }
.trust-list li { display: flex; gap: 10px; align-items: flex-start; }
.trust-list .ico { color: var(--ok); margin-top: 1px; }
.seller-box { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); text-decoration: none; }
a.seller-box:hover { border-color: var(--brand); }
.seller-box b { display: block; font-size: 14.5px; }
.seller-box span { font-size: 12.5px; color: var(--muted); }
.seller-ava { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; overflow: hidden; background: var(--brand); color: #fff !important; font: 700 17px var(--display); }
.seller-ava img { width: 100%; height: 100%; object-fit: cover; }
.seller-ava.kecudo { background: linear-gradient(135deg, var(--brand), var(--brand-strong)); }
.policy-links { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; font-size: 12.5px; color: var(--muted); }
.policy-links a { color: var(--muted); }
.shop-plan.pro .pay-methods, .shop-plan.pro .secure-note, .shop-plan.pro .trust-list, .shop-plan.pro .seller-box, .shop-plan.pro .policy-links { margin-top: 12px; }
#pay-status:empty { display: none; }

/* ---------- cart ---------- */
.cart-ico { width: 17px; height: 17px; vertical-align: -3px; margin-right: 4px; }
.shop-cart-btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; }
.card-cart { margin-top: 10px; }
.card-cart .btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.card-cart .ico { width: 16px; height: 16px; }
.cart-wrap h1 { margin-bottom: 16px; }
.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
@media (max-width: 860px) { .cart-grid { grid-template-columns: 1fr; } }
.cart-list { list-style: none; margin: 0; padding: 6px 16px; }
.cart-row { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-row:last-child { border-bottom: 0; }
.cart-cover { display: block; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.cart-cover img, .cart-cover .shop-noimg { width: 100%; height: 100%; object-fit: cover; display: grid; place-items: center; font-size: 11px; }
.cart-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cart-info a { color: var(--ink); text-decoration: none; }
.cart-info span { font-size: 13px; }
.cart-price { font: 700 18px var(--display); }
.cart-sum { margin-top: 0; position: sticky; top: 84px; }
.receipt-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.receipt-total b { font: 700 26px var(--display); }
.receipt-list { list-style: none; margin: 0; padding: 0; }
.receipt-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.receipt-item div { display: flex; flex-direction: column; }
.receipt .receipt-total { padding-top: 6px; }

/* ---------- third-level categories (Music › Guitar) ---------- */
.sub-list li.has-kids { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sub2-list { list-style: none; margin: 0; padding: 0 0 0 4px; display: flex; flex-wrap: wrap; gap: 5px; border-left: 2px solid hsl(var(--h) 55% 70%); }
.sub2-list a { font-size: 12px; padding: 3px 9px; background: transparent; }
.chips.sub2chips { margin-top: -4px; padding-left: 14px; border-left: 3px solid hsl(var(--h) 55% 60%); }
.chips.sub2chips .chip { font-size: 13px; }

/* ---------- /admin/categories (Category settings) ---------- */
.catset-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.catset-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.catset-add label { margin: 0; }
.catset-add input[type=text] { min-width: 220px; }
.catset { border: 1px solid var(--line); border-left: 6px solid hsl(var(--h) 60% 50%); border-radius: 12px; margin: 0 0 12px; background: var(--surface); }
.catset > summary { cursor: pointer; padding: 12px 16px; font-weight: 700; display: flex; gap: 10px; align-items: center; list-style: none; }
.catset > summary::-webkit-details-marker { display: none; }
.catset > summary::before { content: '▸'; color: var(--muted); }
.catset[open] > summary::before { content: '▾'; }
.catset > summary .muted { font-weight: 400; font-size: 13px; }
.catset-body { padding: 0 16px 14px; }
.cs-row { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); }
.cs-row form { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.cs-row input[type=text] { width: 220px; padding: 5px 8px; }
.cs-row select { padding: 5px 6px; }
.cs-row .cs-count { font-size: 12px; color: var(--muted); min-width: 72px; }
.cs-row .cs-arrows button { padding: 2px 8px; }
.cs-lvl2 { padding-left: 22px; }
.cs-lvl3 { padding-left: 48px; }
.cs-lvl3 input[type=text] { width: 190px; }
.cs-add { padding-left: 22px; }
.cs-add.cs-lvl3 { padding-left: 48px; }
.cs-add input[type=text] { width: 200px; }
.cs-tag { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; background: hsl(var(--h) 60% 50%); vertical-align: middle; }

/* ---------- My page: products framed by category ---------- */
.prod-jump { margin: 6px 0 12px; }
.prod-frame { border: 1px solid var(--line); border-left: 5px solid var(--brand); border-radius: 12px; padding: 10px 14px 6px; margin: 0 0 14px; background: var(--surface); }
.prod-frame h3 { margin: 2px 0 8px; font-size: 17px; display: flex; align-items: baseline; gap: 8px; }
.prod-frame h3 span { font-size: 13px; font-weight: 500; color: var(--muted); }
.prod-frame .table-wrap { margin: 0; }
.prod-frame table { table-layout: fixed; width: 100%; }
.prod-frame th:nth-child(1) { width: 96px; }
.prod-frame th:nth-child(3) { width: 140px; }
.prod-frame th:nth-child(4) { width: 130px; }
.prod-frame th:nth-child(5) { width: 70px; }
.prod-frame th:nth-child(6) { width: 170px; }
.cs-lvl4 { padding-left: 74px; }
.cs-lvl4 input[type=text] { width: 170px; }
.cs-add.cs-lvl4 { padding-left: 74px; }
/* group headings inside a product frame: E-courses › Music, E-courses › Music › Guitar */
.products-table tr.grp td { background: var(--surface-2); font-weight: 700; font-size: 14px; padding: 8px 12px; border-top: 1px solid var(--line); }
.products-table tr.grp td span { color: var(--brand); margin-right: 4px; }
.products-table tr.grp td small { font-weight: 500; color: var(--muted); margin-left: 6px; }
.products-table tr.grp-3 td { padding-left: 34px; }
.products-table tr.grp-4 td { padding-left: 56px; }
.prod-frame[id^="admin-products"] th:nth-child(3) { width: 140px; }
.prod-frame[id^="admin-products"] th:nth-child(4) { width: 130px; }
.prod-frame[id^="admin-products"] th:nth-child(5) { width: 100px; }
.prod-frame[id^="admin-products"] th:nth-child(6) { width: 70px; }
.prod-frame[id^="admin-products"] th:nth-child(7) { width: 150px; }

/* Kecudo Uploader button (admins only, on /admin and My page) */
.uploader-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 6px 0 18px; }
.uploader-btn { background: #e5191e; color: #fff; } .uploader-btn:hover { background: #b81217; }

/* My Videos form (laid out like "Add a product"): Free price button and "Fill from a pack folder" */
.vid-form-title { margin: 0; font: 700 18px var(--display); }
.pack-fill { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 12px; background: var(--surface-2); }
.pack-fill .f-pack-info { flex: 1 1 260px; }
.price-field { display: flex; flex-direction: column; gap: 6px; }
.price-label { font-weight: 700; }
.price-choice { display: flex; gap: 8px; }
.price-free { font: 700 15px var(--font); padding: 10px 22px; border-radius: 10px; border: 2px solid var(--brand); background: var(--brand-soft); color: var(--brand-strong); cursor: default; }
.f-cover-picked { font-weight: 600; }

/* "Arrange" buttons (home and shop): Newest / By category, and the category columns */
.arrange { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 14px; }
.arrange-chip { font-weight: 700; }
.cat-cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 10px;
  scroll-snap-type: x proximity; align-items: start; }
.cat-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; scroll-snap-align: start; background: var(--surface-2);
  border: 1px solid var(--line); border-top: 4px solid hsl(var(--h, 170) 55% 45%); border-radius: var(--radius); padding: 10px; }
.cat-col-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 2px 4px 6px; border-bottom: 1px solid var(--line); }
.cat-col-head b { font: 700 15px var(--display); } .cat-col-head span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.cat-col-list { display: flex; flex-direction: column; gap: 12px; }
.cat-col-list > * { width: 100%; margin: 0; }
.cat-col-more { align-self: center; }
@media (max-width: 640px) { .cat-cols { grid-auto-columns: 82%; } }
.admin-item-form [hidden] { display: none !important; }
.kind-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kind-btn { text-align: left; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; }
.kind-btn b { font-size: 15px; } .kind-btn small { color: var(--muted); }
.kind-btn.on { border-color: var(--brand); background: var(--brand-soft); }
.price-btn { font: 700 15px var(--font); padding: 10px 18px; border-radius: 10px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.price-btn.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong); }
.owner-prod-title { margin: 22px 0 10px; font: 700 17px var(--display); }
.owner-prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.owner-prod { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.op-cover { flex: none; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; font-size: 26px; text-decoration: none; }
.op-cover img { width: 100%; height: 100%; object-fit: cover; }
.op-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; } .op-body b { overflow-wrap: anywhere; }
.op-body .actions { display: flex; gap: 10px; align-items: center; }
@media (max-width: 560px) { .kind-choice { grid-template-columns: 1fr; } }

/* ---------- Ad slot: sponsored slideshow or video at the top right of Home and Shop (lib/adslot.js) ---------- */
.hero-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 500px); gap: 40px; align-items: center; }
.hero-split > .hero { max-width: none; min-width: 0; }
.hero-split .hero h1 { font-size: clamp(28px, 3.6vw, 48px); }
@media (max-width: 960px) {
  .hero-split { grid-template-columns: 1fr; gap: 4px; }
  .hero-split > .adslot { width: 100%; max-width: 640px; margin-bottom: 22px; }
}
.adslot { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.adslot-stage { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #0b1312; isolation: isolate;
  box-shadow: 0 0 0 1px rgba(14, 27, 26, .06), 0 2px 4px rgba(14, 27, 26, .06), 0 24px 48px -22px rgba(14, 27, 26, .55); transition: box-shadow .25s, transform .25s; }
@media (prefers-reduced-motion: no-preference) { .adslot:hover .adslot-stage { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(14, 27, 26, .08), 0 4px 8px rgba(14, 27, 26, .08), 0 30px 56px -22px rgba(14, 27, 26, .6); } }
.adslot-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; overflow: hidden; }
.adslot-slide.is-on { opacity: 1; z-index: 1; }
.adslot-slide img, .adslot-video, .adslot-yt { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; border: 0; }
.adslot-yt { pointer-events: none; transform: scale(1.03); }
@media (prefers-reduced-motion: no-preference) { .adslot-slide.is-on img { animation: adslot-zoom calc(var(--ad-int, 6s) + 1s) linear both; } }
@keyframes adslot-zoom { from { transform: scale(1); } to { transform: scale(1.05); } }
.adslot-hit { position: absolute; inset: 0; z-index: 2; }
/* top: progress bars, "Sponsored" label, sound button */
.adslot-bars { position: absolute; top: 10px; left: 12px; right: 12px; z-index: 4; display: flex; gap: 5px; pointer-events: none; }
.adslot-bars span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.adslot-bars i { display: block; height: 100%; width: 0; background: #fff; border-radius: 3px; }
.adslot-bars span.done i { width: 100%; }
.adslot-bars span.on i { animation: adslot-fill var(--ad-int, 6s) linear forwards; }
.adslot.is-paused .adslot-bars span.on i, .adslot.is-paused .adslot-slide.is-on img { animation-play-state: paused; }
@keyframes adslot-fill { from { width: 0; } to { width: 100%; } }
.adslot-badge { position: absolute; top: 12px; left: 12px; z-index: 4; font: 700 10px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: #fff;
  background: rgba(8, 14, 13, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 6px 9px; border-radius: 999px; pointer-events: none; }
.has-bars .adslot-badge { top: 22px; }
.adslot-sound { position: absolute; top: 10px; right: 10px; z-index: 4; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: rgba(8, 14, 13, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; transition: background .2s; }
.adslot-sound:hover { background: rgba(8, 14, 13, .75); }
.adslot-sound svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; grid-area: 1 / 1; }
.adslot-sound svg path:first-child { fill: currentColor; }
.adslot-sound svg + svg, .adslot-sound.is-on svg:first-child { display: none; }
.adslot-sound.is-on svg + svg { display: block; }
/* arrows (slideshows; shown on hover) */
.adslot-nav { position: absolute; top: 50%; z-index: 4; width: 38px; height: 38px; margin-top: -30px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; padding: 0 0 3px; font: 600 26px/1 var(--font); color: #0e1b1a; background: rgba(255, 255, 255, .9);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25); opacity: 0; transition: opacity .2s, transform .2s; }
.adslot-nav.prev { left: 12px; } .adslot-nav.next { right: 12px; }
.adslot:hover .adslot-nav, .adslot-nav:focus-visible { opacity: 1; }
.adslot-nav:hover { transform: scale(1.06); }
@media (hover: none) { .adslot-nav { display: none; } }
/* bottom: advertiser, headline and button */
.adslot-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px;
  padding: 56px 16px 14px; color: #fff; text-decoration: none; background: linear-gradient(to top, rgba(4, 10, 9, .82) 0%, rgba(4, 10, 9, .45) 50%, transparent 100%); }
.adslot-who { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.adslot-who b { font: 700 15px/1.2 var(--display); letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adslot-who span { font: 500 13.5px/1.35 var(--font); opacity: .9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adslot-who span:empty { display: none; }
.adslot-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; background: #fff; color: #0e1b1a; font: 700 13px/1 var(--font); padding: 10px 14px; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .2); transition: transform .2s, background .2s; }
.adslot-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.adslot-bar:hover .adslot-btn svg, .adslot-house:hover .adslot-btn svg { transform: translateX(3px); }
.adslot-foot { align-self: flex-end; font: 600 12px var(--font); color: var(--muted); text-decoration: none; padding-right: 4px; }
.adslot-foot:hover { color: var(--brand); text-decoration: underline; }
@media (max-width: 480px) { .adslot-stage { border-radius: 16px; } .adslot-bar { padding: 44px 12px 12px; } .adslot-who span { display: none; } .adslot-btn { padding: 9px 12px; } }
/* "Advertise with us" placeholder */
.adslot-house { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px; padding: 28px 30px; color: #fff; text-decoration: none;
  background: radial-gradient(110% 90% at 100% 0%, rgba(47, 183, 159, .85) 0%, transparent 55%), radial-gradient(80% 80% at 0% 110%, rgba(242, 169, 59, .55) 0%, transparent 60%), linear-gradient(135deg, #0a5e51 0%, #0b2421 60%, #0e1b1a 100%); }
.adslot-house::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18;
  background-image: linear-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .5) 1px, transparent 1px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(80% 80% at 70% 30%, #000, transparent); mask-image: radial-gradient(80% 80% at 70% 30%, #000, transparent); }
.adslot-house .adslot-badge { top: 14px; left: auto; right: 14px; }
.house-eyebrow { font: 700 11px var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--pop); }
.adslot-house strong { font: 700 clamp(20px, 2.3vw, 28px)/1.15 var(--display); letter-spacing: -0.02em; max-width: 15ch; }
.house-sub { font: 500 14px/1.45 var(--font); opacity: .85; max-width: 34ch; }
.adslot-house .adslot-btn { margin-top: 8px; }
@media (max-width: 480px) { .adslot-house { padding: 20px; gap: 6px; } .house-sub { display: none; } }

/* /admin/ads */
.ad-intro { max-width: 80ch; margin: 0 0 16px; }
.ad-two { margin-top: 18px; }
.ad-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.ad-kinds { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 12px; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; }
.ad-kinds legend { font: 600 14px var(--font); padding: 0 6px; }
.ad-preview { margin: 12px 0 8px; max-width: 520px; }
.ad-edit { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ad-edit-main, .ad-edit-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (max-width: 960px) { .ad-edit { grid-template-columns: 1fr; } }
.ad-edit h2 { margin-bottom: 8px; } .ad-edit h3 { font: 700 15px var(--display); margin: 18px 0 4px; }
.ad-slides { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.ad-slide-row { display: grid; grid-template-columns: 128px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.ad-slide-row img { width: 128px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; display: block; }
.ad-slide-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
.ad-slide-form input { padding: 8px 10px; font-size: 14px; }
.ad-slide-actions { display: flex; gap: 10px; align-items: center; }
.ad-slide-actions .linkbtn[disabled] { opacity: .3; cursor: default; }
@media (max-width: 720px) { .ad-slide-row { grid-template-columns: 96px 1fr; } .ad-slide-row img { width: 96px; } .ad-slide-form { grid-column: 1 / -1; grid-template-columns: 1fr; } .ad-slide-actions { grid-column: 2; grid-row: 1; justify-content: flex-end; } }
.small-drop { padding: 14px; }
.ad-side-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.danger-btn { color: var(--err); }
.ad-stats { grid-template-columns: repeat(3, 1fr); }
.ad-stats b { font-size: 20px; }
.ad-bar { margin-top: -8px; }
.ad-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 16px; }
.ad-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 700 15px var(--font); text-decoration: none; }
.ad-tab:hover { border-color: var(--brand); }
.ad-tab.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ad-tab-n { font: 600 12px var(--font); padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.ad-tab.on .ad-tab-n { background: rgba(255, 255, 255, .16); color: inherit; }

/* About page: live numbers, three ways in, advertising box */
.about-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 20px 0 6px; }
.about-nums div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.about-nums b { font: 700 24px/1.1 var(--display); color: var(--brand); font-variant-numeric: tabular-nums; }
.about-nums span { color: var(--muted); font-size: 14px; }
.about-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 8px; }
@media (max-width: 680px) { .about-ways { grid-template-columns: 1fr; } }
.about-way { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; }
.about-way:hover { border-color: var(--brand); box-shadow: var(--shadow-hover); }
@media (prefers-reduced-motion: no-preference) { .about-way:hover { transform: translateY(-2px); } }
.about-way b { font: 700 15px/1.25 var(--display); }
.about-way span:last-child { color: var(--muted); font-size: 14px; line-height: 1.45; }
.about-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 19px; background: var(--brand-soft); }
.about-way.dp .about-ico { background: var(--dp-soft, #ede9fe); }
.about-way.ad .about-ico { background: var(--pop-soft); }
.about-adv { padding: 18px 20px; border-radius: 18px; color: #fff; background: radial-gradient(110% 90% at 100% 0%, rgba(47, 183, 159, .7) 0%, transparent 55%), radial-gradient(80% 80% at 0% 110%, rgba(242, 169, 59, .45) 0%, transparent 60%), linear-gradient(135deg, #0a5e51 0%, #0b2421 60%, #0e1b1a 100%); }
.about-adv p:first-child { margin-top: 0; }
.about-adv a:not(.btn) { color: #fff; }
.about-adv ul { margin-bottom: 4px; }
.about-adv .btn { background: #fff; color: #0e1b1a; } .about-adv .btn:hover { background: var(--pop); }
.about-adv .cta-row { margin-top: 12px !important; margin-bottom: 0; }
/* Each page's ad has its own color: Home = red, Shop = blue. The slot's frame, button and progress bars,
   the "Advertise with us" box, and the matching buttons and tabs on /admin all use it. */
.adslot-home, .ad-admin-btn.home, .ad-tab-home { --ad-accent: #e5191e; --ad-deep: #b81217; --ad-glow: 239, 68, 68; --ad-tint: #fee2e2; --ad-l1: #fb923c; --ad-l2: #f472b6; }
.adslot-shop, .ad-admin-btn.shop, .ad-tab-shop { --ad-accent: #2563eb; --ad-deep: #1d4ed8; --ad-glow: 96, 165, 250; --ad-tint: #dbeafe; --ad-l1: #22d3ee; --ad-l2: #a78bfa; }
.adslot .adslot-stage, .adslot:hover .adslot-stage { box-shadow: none; transform: none; border-radius: 17px; }
.adslot .adslot-btn { background: var(--ad-accent); color: #fff; }
.adslot .adslot-bar:hover .adslot-btn { background: var(--ad-deep); }
.adslot .adslot-bars i { background: var(--ad-accent); }
.adslot .adslot-bars span { background: rgba(255, 255, 255, .45); }
.adslot .adslot-house { background: radial-gradient(110% 90% at 100% 0%, rgba(255, 255, 255, .18) 0%, transparent 55%), linear-gradient(135deg, var(--ad-accent) 0%, var(--ad-deep) 100%); }
.adslot .house-eyebrow { color: var(--ad-tint); }
.adslot .adslot-house .adslot-btn { background: #fff; color: var(--ad-deep); }
.adslot .adslot-house:hover .adslot-btn { background: var(--ad-tint); }
.adslot-foot:hover { color: var(--ad-accent); }
/* /admin buttons and tabs, in the same color as their slot */
.ad-admin-btn { color: #fff; background: var(--ad-accent); }
.ad-admin-btn:hover { color: #fff; background: var(--ad-deep); }
.ad-admin-btn .pill { background: #fff; color: var(--ad-deep); }
.ad-tab:hover { border-color: var(--ad-accent); }
.ad-tab.on { background: var(--ad-accent); border-color: var(--ad-accent); color: #fff; }

/* Light frame around each slot: a red (Home) or blue (Shop) frame with a soft glow, and big marquee-style dots
   running around it in four light colors that take turns: Naples yellow, light purple, light green and light blue,
   plus light red on the Shop slot (placed by /adslot.js). They move and blink in turn; they stand still and steady for visitors who ask for less motion. */
.adslot-frame { --ad-dot: 9px; --ad-dot-gap: 26px; position: relative; padding: 14px; border-radius: 30px; isolation: isolate;
  background: linear-gradient(135deg, var(--ad-accent) 0%, var(--ad-deep) 100%);
  box-shadow: 0 24px 48px -24px rgba(var(--ad-glow), .8), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .25s; }
.adslot-frame::before { content: ""; position: absolute; inset: 6px; z-index: -1; border-radius: inherit; background: var(--ad-accent); filter: blur(20px); opacity: .45; }
.adslot-frame::after { content: ""; position: absolute; inset: 14px; border-radius: 16px; pointer-events: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .3), inset 0 0 0 1px rgba(255, 255, 255, .2); z-index: 5; }
.adslot .adslot-stage, .adslot:hover .adslot-stage { border-radius: 16px; }
@media (max-width: 480px) { .adslot-frame { --ad-dot: 7px; --ad-dot-gap: 20px; padding: 11px; border-radius: 26px; } .adslot-frame::after { inset: 11px; } }
.adslot-dots { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 6; pointer-events: none; overflow: visible; opacity: 0; transition: opacity .4s; }
.adslot-frame.has-dots .adslot-dots { opacity: 1; }
.adslot-dots rect { fill: none; stroke-width: var(--ad-dot); stroke-linecap: round; }
.adslot-dots .d1 { stroke: #fff3b0; filter: drop-shadow(0 0 2px #fada5e) drop-shadow(0 0 6px #fada5e); }   /* Naples yellow */
.adslot-dots .d2 { stroke: #ede9fe; filter: drop-shadow(0 0 2px #c4b5fd) drop-shadow(0 0 6px #a78bfa); }   /* light purple */
.adslot-dots .d3 { stroke: #dcfce7; filter: drop-shadow(0 0 2px #86efac) drop-shadow(0 0 6px #4ade80); }   /* light green */
.adslot-dots .d4 { stroke: #e0f2fe; filter: drop-shadow(0 0 2px #7dd3fc) drop-shadow(0 0 6px #38bdf8); }   /* light blue */
.adslot-dots .d5 { stroke: #fca5a5; filter: drop-shadow(0 0 2px #f87171) drop-shadow(0 0 6px #ef4444); }   /* light red (Shop slot only) */
@media (prefers-reduced-motion: no-preference) {
  /* moving + blinking: each color flashes in turn (one flash per 1.2 s, well under the 3-per-second safety limit) */
  .adslot-dots rect { animation: adslot-dots 3.2s linear infinite, adslot-blink 1.2s ease-in-out infinite; }
  .adslot-dots .d2 { animation-delay: 0s, -.3s; } .adslot-dots .d3 { animation-delay: 0s, -.6s; } .adslot-dots .d4 { animation-delay: 0s, -.9s; } .adslot-dots .d5 { animation-delay: 0s, -1.05s; }
  .adslot:hover .adslot-dots rect { animation-duration: 1.6s, 1.2s; }
  .adslot:hover .adslot-frame { transform: translateY(-2px); }
}
@keyframes adslot-dots { from { stroke-dashoffset: var(--o0); } to { stroke-dashoffset: var(--o1); } }
@keyframes adslot-blink { 0%, 100% { opacity: 1; } 45% { opacity: 1; } 60% { opacity: .15; } 85% { opacity: .15; } }

/* /admin "Products by account": one block per vendor (green edge) or advertiser (amber edge). */
.acct-jump-btn { background: #2f6f4f; border-color: #2f6f4f; color: #fff; }
.acct-filter { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 4px 0 14px; }
.acct-filter .chips { margin: 0; }
.acct-filter button.chip { cursor: pointer; font: inherit; font-weight: 700; font-size: 14px; }
.acct-filter input[type="search"] { max-width: 260px; }
.acct-block { border: 1px solid var(--line); border-left: 5px solid #3a9a6a; border-radius: 12px; padding: 12px 14px 8px; margin: 0 0 14px; background: var(--surface); scroll-margin-top: 80px; }
.acct-block-advertiser { border-left-color: #d9962b; }
.acct-block:target { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 35%, transparent); }
.acct-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.acct-head .by { flex: 1 1 220px; }
.acct-counts { color: var(--muted); font-size: 14px; font-weight: 600; }
.acct-block h4 { margin: 12px 0 6px; font-size: 15px; }
.acct-table { table-layout: fixed; width: 100%; }
.acct-table th:nth-child(1) { width: 96px; }
.acct-table th:nth-child(3) { width: 130px; }
.acct-table td.num { white-space: normal; }
#all-products { scroll-margin-top: 80px; }
.acct-table th:nth-child(4) { width: 90px; }
.acct-table th:nth-child(5) { width: 90px; }
.acct-table th:nth-child(6) { width: 150px; }
.acct-table .cover-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.acct-empty { margin-top: 4px; }

/* Home page: "Latest videos" in 6 columns (fewer on smaller screens), with compact cards. */
.grid6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.grid6 .vbody { padding: 10px 10px 12px; }
.grid6 .vcard h3 { font-size: 14px; line-height: 1.3; }
.grid6 .desc { font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.grid6 .vtop { flex-wrap: wrap; gap: 4px 6px; }
.grid6 .uploaded { font-size: 11.5px; }
.grid6 .cat { font-size: 10px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.grid6 .company { flex-wrap: wrap; gap: 6px; font-size: 13px; }
.grid6 .company .avatar.md { width: 28px; height: 28px; font-size: 11px; }
.grid6 .company-text { min-width: 0; flex: 1 1 0; }
.grid6 .company-name { font-size: 13px; display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.grid6 .company-text a[rel~="nofollow"], .grid6 .company-text .site { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.grid6 .views { font-size: 12px; flex-basis: 100%; }
@media (max-width: 1150px) { .grid6 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1020px) { .grid6 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 960px) { .grid6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grid6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 420px) { .grid6 { grid-template-columns: 1fr; } }

/* Home page: E-courses and Ebooks rows under "Newest" in the Digital Products frame. */
.dp-sub-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dp-sub-head a { font-size: 14px; font-weight: 600; }

/* "Add to cart" without leaving the page (CART_JS in server.js). */
form[action="/shop/cart/add"] button.is-busy { opacity: .7; cursor: progress; }
form[action="/shop/cart/add"] .btn.is-added, form[action="/shop/cart/add"] .btn.ghost.is-added { background: #e6f4ec; border-color: #2f8a5b; color: #1d6b43; }
.cart-toast { position: fixed; z-index: 60; right: 18px; bottom: 18px; max-width: min(420px, calc(100vw - 36px)); display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap;
  padding: 12px 40px 12px 16px; border-radius: 14px; background: #14231c; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.3); font-weight: 600; font-size: 14px; animation: cart-in .2s ease-out; }
.cart-toast[hidden] { display: none; }
.cart-toast-msg { flex: 1 1 200px; }
.cart-toast-x { position: absolute; top: 6px; right: 8px; background: none; border: 0; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; opacity: .7; }
@keyframes cart-in { from { transform: translateY(12px); opacity: 0; } }
#cart-n.bump { animation: cart-bump .35s ease-out; }
@keyframes cart-bump { 50% { transform: scale(1.35); } }
@media (prefers-reduced-motion: reduce) { .cart-toast, #cart-n.bump { animation: none; } }
