/* =========================================================
   Porndr — light editorial theme
   ========================================================= */
:root {
  --bg: #f4f1ea;
  --bg-deep: #ece7dc;
  --surface: #ffffff;
  --surface-soft: #faf8f3;
  --ink: #111111;
  --ink-soft: #65625b;
  --ink-faint: #969187;
  --line: #ddd7ca;
  --line-strong: #c9c2b3;
  --accent: #ff3b30;
  --accent-dark: #df2b21;
  --accent-soft: #ffe9e6;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(17, 17, 17, .04), 0 18px 42px rgba(17, 17, 17, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 68px;
  --container: 1320px;
}
* { 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: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.ic { display: inline-block; vertical-align: middle; flex: none; }
.site-main { min-height: 55vh; }
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 999;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: 999px;
  font-size: .86rem; font-weight: 700; letter-spacing: .01em; line-height: 1;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn .ic { width: 17px; height: 17px; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-block { width: 100%; }
.btn-lg { min-height: 50px; padding: 0 26px; font-size: .92rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(244, 241, 234, .88);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(244, 241, 234, .96); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 34px; }
.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.logo-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.logo-text { font-size: 1.18rem; font-weight: 800; letter-spacing: -.055em; line-height: 1; }
.main-nav { display: flex; align-items: center; gap: 25px; min-width: 0; }
.main-nav > a {
  position: relative; font-size: .82rem; font-weight: 600; color: var(--ink-soft);
  white-space: nowrap; padding: 10px 0; transition: color .16s ease;
}
.main-nav > a:hover, .main-nav > a.is-active { color: var(--ink); }
.main-nav > a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--accent);
}
.header-custom-links { font-size: .8rem; color: var(--ink-soft); white-space: nowrap; }
.header-custom-links a:hover { color: var(--accent); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-search {
  display: flex; align-items: center; gap: 8px; width: 230px; height: 40px; padding: 0 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.header-search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17, 17, 17, .07); }
.header-search .ic { width: 16px; height: 16px; color: var(--ink-soft); }
.header-search input {
  width: 100%; min-width: 0; border: 0; outline: 0; background: transparent;
  font-size: .8rem; color: var(--ink);
}
.header-search input::placeholder { color: var(--ink-faint); }
.icon-btn {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: 50%; background: transparent; color: var(--ink);
  transition: background .16s ease, border-color .16s ease;
}
.icon-btn:hover { background: var(--surface); border-color: var(--line); }
.mobile-search-btn, .mobile-menu-btn { display: none; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 46px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); align-items: center; gap: 58px; }
.hero-grid > *, .video-grid > *, .cat-grid > *, .section-head > * { min-width: 0; }
.hero-copy { max-width: 680px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px;
  font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero-title {
  font-size: clamp(2.7rem, 5.4vw, 5.5rem); line-height: .94; letter-spacing: -.065em;
  font-weight: 800; text-wrap: balance; overflow-wrap: anywhere;
}
.hero-desc {
  max-width: 54ch; margin-top: 24px; color: var(--ink-soft);
  font-size: clamp(.96rem, 1.2vw, 1.08rem); line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stat strong { font-size: 1.3rem; letter-spacing: -.04em; line-height: 1; }
.hero-stat span { font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.hero-visual { position: relative; min-width: 0; }
.hero-media {
  position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--bg-deep); border-radius: 28px; box-shadow: var(--shadow);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .6, .2, 1); }
.hero-media:hover img { transform: scale(1.025); }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, .45) 100%);
}
.hero-play {
  position: absolute; right: 22px; top: 22px; z-index: 2;
  width: 54px; height: 54px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}
.hero-play .ic { width: 22px; height: 22px; margin-left: 2px; }
.hero-caption {
  position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 2;
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 12px;
  padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.hero-caption-label {
  grid-row: span 2; align-self: center; padding: 5px 8px; border-radius: 6px;
  background: var(--accent); color: #fff; font-size: .58rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
}
.hero-caption a {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: .84rem; font-weight: 700; letter-spacing: -.01em;
}
.hero-caption-meta { font-size: .7rem; color: var(--ink-soft); }
.hero-media-fallback {
  display: flex; flex-direction: column; justify-content: space-between; padding: 28px;
  background: var(--ink); border-radius: 28px;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 1px, transparent 1px 14px);
}
.hero-media-fallback::after { display: none; }
.hero-fallback-mark { color: var(--accent); font-size: .8rem; font-weight: 800; letter-spacing: .12em; }
.hero-fallback-text { color: #fff; font-size: clamp(1.6rem, 3vw, 3rem); font-weight: 800; letter-spacing: -.06em; line-height: .95; }

/* ---------- section / cards ---------- */
.section { padding: 46px 0; }
.section-first { padding-top: 18px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(1.45rem, 2.5vw, 2.05rem); line-height: 1; letter-spacing: -.05em; font-weight: 800; }
.section-link {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft);
  transition: color .15s ease;
}
.section-link .ic { width: 15px; height: 15px; }
.section-link:hover { color: var(--accent); }
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 18px; }
.v-card { min-width: 0; }
.v-thumb {
  position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: 14px; background: var(--bg-deep);
}
.v-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2, .6, .2, 1); }
.v-card:hover .v-thumb img { transform: scale(1.035); }
.v-shade {
  position: absolute; inset: 0; opacity: .55;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .55) 100%);
  transition: opacity .2s ease;
}
.v-card:hover .v-shade { opacity: .8; }
.v-duration {
  position: absolute; right: 9px; bottom: 9px; z-index: 2;
  padding: 4px 6px; border-radius: 5px; background: rgba(0, 0, 0, .82); color: #fff;
  font-size: .64rem; font-weight: 700; letter-spacing: .03em;
}
.v-play {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: rgba(255, 255, 255, .94); color: var(--ink);
  opacity: 0; transform: translate(-50%, -50%) scale(.86);
  transition: opacity .2s ease, transform .2s ease;
}
.v-play .ic { width: 18px; height: 18px; margin-left: 2px; }
.v-card:hover .v-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.v-body { padding: 11px 2px 0; }
.v-title {
  font-size: .91rem; line-height: 1.38; font-weight: 650; letter-spacing: -.018em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.v-title a { transition: color .15s ease; }
.v-card:hover .v-title a { color: var(--accent); }
.v-meta { display: flex; align-items: center; gap: 8px; margin-top: 7px; min-height: 16px; color: var(--ink-faint); font-size: .68rem; }
.v-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.v-meta .ic { width: 13px; height: 13px; }
.v-badge {
  margin-left: auto; padding: 3px 7px; border-radius: 5px;
  background: var(--accent-soft); color: var(--accent-dark); font-size: .62rem; font-weight: 800;
}
.empty-state { padding: 48px 24px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty-icon { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; margin-bottom: 16px; border-radius: 50%; background: var(--surface); }
.empty-state h2 { font-size: 1.5rem; letter-spacing: -.04em; }
.empty-state p { max-width: 460px; margin: 8px auto 20px; color: var(--ink-soft); font-size: .9rem; }
.empty-state.compact { padding: 32px 20px; text-align: left; }

/* ---------- rail ---------- */
.section-rail { padding: 54px 0 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rail-wrap { position: relative; }
.rail {
  display: flex; gap: 18px; overflow-x: auto; padding: 2px 0 4px;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none;
}
.rail::-webkit-scrollbar { display: none; }
.v-card--rail { flex: 0 0 clamp(230px, 24vw, 300px); scroll-snap-align: start; }
.rail-btn {
  position: absolute; top: 38%; z-index: 5; transform: translateY(-50%);
  width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--ink);
  box-shadow: 0 8px 22px rgba(17, 17, 17, .1); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background .16s ease, color .16s ease, opacity .16s ease;
}
.rail-btn:hover { background: var(--ink); color: #fff; }
.rail-btn[disabled] { opacity: .25; pointer-events: none; }
.rail-btn[hidden] { display: none; }
.rail-prev { left: -6px; }
.rail-next { right: -6px; }

/* ---------- categories / tags ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cat-card {
  display: flex; flex-direction: column; min-height: 128px; padding: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.cat-card:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(17, 17, 17, .06); }
.cat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: auto; }
.cat-icon { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent-dark); }
.cat-icon .ic { width: 16px; height: 16px; }
.cat-arrow { color: var(--ink-faint); }
.cat-arrow .ic { width: 16px; height: 16px; }
.cat-name { margin-top: 16px; font-size: .94rem; font-weight: 700; letter-spacing: -.025em; }
.cat-count { margin-top: 3px; font-size: .68rem; color: var(--ink-faint); }
.cat-desc { margin-top: 8px; font-size: .76rem; line-height: 1.45; color: var(--ink-soft); }
.cat-grid-large .cat-card { min-height: 160px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 9px 13px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: .77rem; font-weight: 600; color: var(--ink-soft);
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.tag-chip span { color: var(--accent); font-weight: 800; }
.tag-chip:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.tag-chip:hover span { color: #fff; }
.tag-cloud-small { gap: 6px; }
.tag-cloud-small .tag-chip { padding: 7px 11px; font-size: .72rem; }
.section-tags { padding-top: 38px; }

/* ---------- page intros / banners ---------- */
.page-intro { padding-top: 38px; padding-bottom: 4px; }
.page-intro h1 { margin-top: 14px; font-size: clamp(2rem, 4.4vw, 3.8rem); line-height: .98; letter-spacing: -.06em; }
.page-intro-count { display: inline-block; margin-left: 10px; font-size: .8rem; font-weight: 600; letter-spacing: 0; color: var(--ink-faint); vertical-align: middle; }
.category-banner { max-width: 800px; padding: 38px 0 10px; }
.category-banner .eyebrow { margin-bottom: 14px; }
.category-banner h1 { font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: .96; letter-spacing: -.065em; }
.category-banner p { max-width: 62ch; margin-top: 14px; color: var(--ink-soft); font-size: .94rem; line-height: 1.65; }
.category-count { display: inline-block; margin-top: 16px; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.listing-banner { border-bottom: 1px solid var(--line); max-width: none; padding-bottom: 30px; }
.listing-banner h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); }
.top-rated-page .listing-banner h1 { color: var(--ink); }
.top-rated-page .v-badge { background: var(--ink); color: #fff; }

/* ---------- breadcrumbs / pagination ---------- */
.breadcrumbs { padding: 24px 0 0; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: .68rem; color: var(--ink-faint); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 7px; }
.breadcrumbs li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumbs a:hover { color: var(--accent); }
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 42px; }
.page-btn {
  min-width: 38px; height: 38px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 9px; background: transparent;
  font-size: .78rem; font-weight: 700; color: var(--ink-soft);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.page-btn:hover { background: var(--surface); border-color: var(--ink); color: var(--ink); }
.page-btn.is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.page-btn.is-disabled { opacity: .35; pointer-events: none; }
.page-arrow .ic { width: 16px; height: 16px; }
.page-ellipsis { padding: 0 4px; color: var(--ink-faint); }

/* ---------- video page ---------- */
.video-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 46px; padding-top: 10px; padding-bottom: 52px; }
.video-main { min-width: 0; }
.player-shell { margin-top: 20px; overflow: hidden; border-radius: 18px; background: #000; box-shadow: var(--shadow); }
.player { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-details { margin-top: 18px; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.video-title { font-size: clamp(1.45rem, 2.5vw, 2.05rem); line-height: 1.15; letter-spacing: -.045em; }
.video-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 13px; color: var(--ink-soft); font-size: .75rem; }
.video-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.video-meta .ic { width: 14px; height: 14px; }
.meta-rating { color: var(--accent-dark) !important; font-weight: 700; }
.video-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rating { display: flex; align-items: center; gap: 7px; }
.rate-btn { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink-soft); transition: all .15s ease; }
.rate-btn:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.rate-btn .ic { width: 16px; height: 16px; }
.rating-info { display: flex; align-items: baseline; gap: 7px; margin-left: 3px; }
.rating-info strong { font-size: 1.05rem; letter-spacing: -.03em; }
.rating-info span { font-size: .68rem; color: var(--ink-faint); }
.rating.is-loading { opacity: .55; pointer-events: none; }
.video-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.action-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--ink-soft); font-size: .72rem; font-weight: 600; transition: all .15s ease; }
.action-btn:hover { border-color: var(--ink); color: var(--ink); }
.action-btn .ic { width: 14px; height: 14px; }
.video-taxonomy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-top: 18px; }
.video-cats { font-size: .76rem; color: var(--ink-soft); }
.video-cats .label { margin-right: 6px; font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.video-cats a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.video-cats a:hover { color: var(--accent); }
.video-description { position: relative; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.desc-content { max-height: 5.6em; overflow: hidden; color: var(--ink-soft); font-size: .86rem; line-height: 1.7; overflow-wrap: anywhere; }
.video-description.is-open .desc-content { max-height: none; }
.readmore-btn { display: none; margin-top: 8px; padding: 0; border: 0; background: transparent; color: var(--ink); font-size: .72rem; font-weight: 700; }
.readmore-btn.is-visible { display: inline-flex; align-items: center; gap: 4px; }
.readmore-btn .ic { width: 13px; height: 13px; }
.video-description.is-open .readmore-btn .ic { transform: rotate(-90deg); }
.video-sidebar { min-width: 0; }
.side-card { margin-top: 20px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.side-head h2 { font-size: .95rem; letter-spacing: -.025em; }
.side-head a { font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.side-list { display: flex; flex-direction: column; gap: 4px; }
.side-video { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.side-video:last-child { border-bottom: 0; }
.side-video img { width: 92px; height: 58px; flex: none; object-fit: cover; border-radius: 8px; background: var(--bg-deep); }
.side-video-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.side-video-info strong { font-size: .75rem; line-height: 1.35; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-video-info small { font-size: .65rem; color: var(--ink-faint); }
.side-video:hover strong { color: var(--accent); }
.side-cta { background: var(--ink); border-color: var(--ink); color: #fff; }
.side-cta-icon { display: inline-flex; color: var(--accent); margin-bottom: 10px; }
.side-cta h2 { font-size: 1.15rem; letter-spacing: -.04em; }
.side-cta p { margin-top: 6px; color: rgba(255, 255, 255, .62); font-size: .78rem; line-height: 1.5; }
.side-cta .btn { margin-top: 16px; background: #fff; color: var(--ink); }
.side-cta .btn:hover { background: var(--accent); color: #fff; }

/* ---------- tag page ---------- */
.tag-hero { margin-top: 18px; padding: 30px 0 8px; }
.tag-hero h1 { font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: .96; letter-spacing: -.065em; }
.tag-hero p { margin-top: 10px; color: var(--ink-soft); font-size: .92rem; }
.player-caption { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 2px; font-size: .82rem; }
.player-caption a { font-weight: 600; }
.player-caption a:hover { color: var(--accent); }
.player-caption span { flex: none; font-size: .7rem; color: var(--ink-faint); }

/* ---------- prose / error ---------- */
.page-layout { max-width: 880px; padding-top: 26px; padding-bottom: 60px; }
.prose { margin-top: 18px; padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.prose h1 { margin-bottom: 20px; font-size: clamp(2rem, 4vw, 3.4rem); line-height: .98; letter-spacing: -.06em; }
.prose h2, .prose h3 { margin: 26px 0 10px; letter-spacing: -.03em; }
.prose p, .prose li { color: var(--ink-soft); font-size: .9rem; line-height: 1.75; }
.prose p + p { margin-top: 12px; }
.prose a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { margin: 12px 0; padding-left: 20px; list-style: disc; }
.prose ol { list-style: decimal; }
.error-layout { display: flex; align-items: center; justify-content: center; padding-top: 56px; padding-bottom: 56px; }
.error-card { width: 100%; max-width: 620px; padding: 40px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.error-code { display: block; color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .18em; }
.error-card h1 { margin-top: 8px; font-size: clamp(2rem, 5vw, 3.6rem); line-height: .96; letter-spacing: -.06em; }
.error-card p { margin: 12px auto 22px; max-width: 42ch; color: var(--ink-soft); font-size: .9rem; }
.inline-search { display: flex; align-items: center; gap: 8px; max-width: 430px; margin: 0 auto 18px; padding: 5px 5px 5px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; }
.inline-search .ic { color: var(--ink-faint); }
.inline-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: .8rem; }
.inline-search .btn { min-height: 36px; padding: 0 14px; font-size: .7rem; }

/* ---------- footer ---------- */
.site-footer { margin-top: 58px; padding: 54px 0 26px; background: var(--ink); color: #f4f1ea; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.site-footer .logo-text { color: #fff; }
.footer-brand p { max-width: 38ch; margin-top: 14px; color: rgba(244, 241, 234, .58); font-size: .8rem; line-height: 1.6; }
.footer-badge { display: inline-block; margin-top: 16px; padding: 4px 8px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 5px; font-size: .65rem; font-weight: 700; letter-spacing: .08em; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-title { margin-bottom: 4px; color: rgba(244, 241, 234, .4); font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.footer-links a { color: rgba(244, 241, 234, .74); font-size: .78rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); color: rgba(244, 241, 234, .42); font-size: .66rem; line-height: 1.5; }
.to-top { position: fixed; right: 22px; bottom: 24px; z-index: 45; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(8px); transition: all .2s ease; }
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.bottom-nav { display: none; }

/* ---------- search overlay / drawer ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 12vh 20px 20px; background: rgba(17, 17, 17, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.search-overlay[hidden] { display: none; }
.search-overlay-inner { position: relative; width: 100%; max-width: 720px; padding: 40px; background: var(--bg); border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .25); }
.search-close { position: absolute; right: 10px; top: 10px; }
.search-eyebrow { margin-bottom: 14px; font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.search-overlay form { display: flex; gap: 8px; }
.search-overlay input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); outline: 0; font-size: .9rem; }
.search-overlay input:focus { border-color: var(--ink); }
.drawer-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(17, 17, 17, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.drawer-overlay[hidden] { display: none; }
.mobile-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 95; width: min(380px, 88vw); padding: 20px; background: var(--bg); transform: translateX(102%); transition: transform .28s cubic-bezier(.2, .7, .2, 1); overflow-y: auto; }
.mobile-drawer.is-open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.drawer-nav { display: flex; flex-direction: column; padding-top: 8px; }
.drawer-nav > a { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; font-weight: 700; letter-spacing: -.025em; }
.drawer-nav > a span { font-size: .66rem; font-weight: 600; color: var(--ink-faint); }
.drawer-nav > a:hover { color: var(--accent); }
.drawer-custom { padding-top: 16px; font-size: .8rem; color: var(--ink-soft); }
.drawer-cats { padding-top: 20px; }
.drawer-label { display: block; margin-bottom: 10px; font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.drawer-cats a { display: inline-block; margin: 0 6px 7px 0; padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; font-size: .72rem; background: var(--surface); }
.drawer-cats a:hover { border-color: var(--ink); }
.drawer-foot { padding-top: 20px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .main-nav { gap: 18px; }
  .header-search { width: 190px; }
  .hero-grid { gap: 38px; }
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .video-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; }
}
@media (max-width: 1020px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .hero { padding-top: 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-copy { max-width: 800px; }
  .hero-visual { max-width: 760px; }
  .hero-title { font-size: clamp(2.7rem, 7.4vw, 5rem); }
  .video-layout { grid-template-columns: 1fr; }
  .video-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .side-card { margin-top: 0; }
}
@media (max-width: 820px) {
  :root { --header-h: 62px; }
  .container { padding-left: 18px; padding-right: 18px; }
  .header-search { display: none; }
  .mobile-search-btn { display: inline-flex; }
  .hero { padding: 34px 0 30px; }
  .hero-title { font-size: clamp(2.3rem, 9vw, 4rem); }
  .hero-desc { margin-top: 16px; font-size: .92rem; }
  .hero-actions { margin-top: 22px; }
  .hero-stats { margin-top: 26px; padding-top: 18px; gap: 24px; }
  .hero-media { border-radius: 20px; }
  .hero-caption { left: 10px; right: 10px; bottom: 10px; padding: 11px 12px; }
  .hero-play { width: 44px; height: 44px; right: 14px; top: 14px; }
  .section { padding: 34px 0; }
  .video-grid { gap: 22px 12px; }
  .v-title { font-size: .84rem; }
  .v-duration { font-size: .6rem; padding: 3px 5px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-card { min-height: 112px; padding: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 8px; margin-top: 30px; }
  .bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    display: flex; align-items: stretch; justify-content: space-around;
    height: calc(60px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, .94); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  }
  .bottom-nav a, .bottom-nav button {
    flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    border: 0; background: transparent; color: var(--ink-faint); font-size: .62rem; font-weight: 600;
  }
  .bottom-nav .ic { width: 19px; height: 19px; }
  .bottom-nav .is-active { color: var(--accent); }
  .site-main { padding-bottom: 64px; }
  .to-top { bottom: 76px; right: 14px; width: 38px; height: 38px; }
  .search-overlay { padding-top: 8vh; }
  .search-overlay-inner { padding: 28px 18px 20px; }
  .search-overlay form { flex-direction: column; }
  .video-details { padding: 18px; }
  .video-sidebar { grid-template-columns: 1fr; }
  .video-toolbar { align-items: flex-start; }
  .prose { padding: 20px; }
  .error-card { padding: 28px 18px; }
}
@media (max-width: 560px) {
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v-title { font-size: .8rem; }
  .v-meta { font-size: .62rem; }
  .section-head { align-items: center; }
  .section-head h2 { font-size: 1.35rem; }
  .section-link { font-size: .6rem; }
  .hero-title { font-size: clamp(2.05rem, 10vw, 3.2rem); }
  .hero-stats { gap: 18px; }
  .hero-stat strong { font-size: 1.1rem; }
  .rail-btn { width: 36px; height: 36px; top: 34%; }
  .rail-prev { left: 2px; }
  .rail-next { right: 2px; }
  .v-card--rail { flex-basis: 220px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { font-size: .6rem; }
  .hero-caption a { font-size: .76rem; }
  .video-actions { width: 100%; }
  .action-btn { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
