/* Xxxhuge - plain dark tube theme */
:root {
  color-scheme: dark;
  --bg: #0a0a0b;
  --surface: #121214;
  --surface-soft: #1a1a1d;
  --ink: #f4f4f2;
  --muted: #a3a3a0;
  --faint: #737370;
  --line: #262628;
  --line-strong: #3a3a3d;
  --header: #050506;
  --header-fg: #f4f4f2;
  --header-muted: #9b9b98;
  --accent: #ff3b30;
  --accent-ink: #ffffff;
  --accent-soft: #2a1112;
  --radius: 6px;
  --header-h: 60px;
  --container: 1440px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  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; display: block; }
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(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.ic { display: inline-block; vertical-align: middle; flex: none; }
.site-main { min-height: 40vh; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 999; padding: 10px 16px; border-radius: 4px; background: #fff; color: #000; font-weight: 700; }
.skip-link:focus { top: 16px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 15px; border: 1px solid transparent; border-radius: 4px; font-size: .78rem; font-weight: 700; line-height: 1; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.btn .ic { width: 15px; height: 15px; }
.btn-accent, .btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-accent:hover, .btn-primary:hover { background: #fff; color: #0a0a0b; border-color: #fff; }
.btn-outline, .btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover, .btn-ghost:hover { background: #fff; color: #0a0a0b; border-color: #fff; }
.btn-block { width: 100%; }

/* header */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--header); color: var(--header-fg); border-bottom: 1px solid #202023; }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 26px; }
.logo { display: inline-flex; align-items: center; gap: 9px; flex: none; }
.logo-mark { width: 27px; height: 27px; display: inline-flex; align-items: center; justify-content: center; border-radius: 3px; background: var(--accent); color: #fff; font-size: .88rem; font-weight: 900; line-height: 1; }
.logo-text { color: var(--header-fg); font-size: 1.08rem; font-weight: 900; letter-spacing: .02em; text-transform: uppercase; line-height: 1; }
.main-nav { display: flex; align-items: center; gap: 21px; min-width: 0; }
.main-nav > a { position: relative; padding: 9px 0; color: var(--header-muted); font-size: .73rem; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.main-nav > a:hover, .main-nav > a.is-active { color: #fff; }
.main-nav > a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 2px; background: var(--accent); }
.header-custom-links { color: var(--header-muted); font-size: .73rem; white-space: nowrap; }
.header-custom-links a:hover { color: var(--accent); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 5px; }
.header-search { display: flex; align-items: center; gap: 7px; width: 240px; height: 34px; padding: 0 10px; border: 1px solid #2b2b2f; border-radius: 4px; background: #111113; }
.header-search:focus-within { border-color: var(--accent); }
.header-search .ic { width: 14px; height: 14px; color: var(--header-muted); }
.header-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--header-fg); font-size: .74rem; }
.header-search input::placeholder { color: var(--header-muted); }
.icon-btn { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--header-muted); }
.icon-btn:hover { color: #fff; background: #1c1c1f; }
.mobile-search-btn, .mobile-menu-btn { display: none; }

/* page lead */
.page-lead { padding: 34px 0 24px; border-bottom: 1px solid var(--line); }
.lead-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; }
.lead-copy { min-width: 0; max-width: 790px; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 9px; color: var(--faint); font-size: .61rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.page-lead h1 { font-size: clamp(1.85rem, 4vw, 3.1rem); line-height: 1; letter-spacing: -.055em; font-weight: 900; }
.page-lead p { max-width: 62ch; margin-top: 10px; color: var(--muted); font-size: .84rem; line-height: 1.55; }
.lead-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: none; }
.lead-count { color: var(--faint); font-size: .63rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.lead-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.section-latest { padding-top: 26px; padding-bottom: 42px; }

/* cards */
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 14px; }
.v-card { min-width: 0; }
.v-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 5px; background: var(--surface-soft); }
.v-thumb img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s ease; }
.v-card:hover .v-thumb img { opacity: .82; }
.v-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, .55) 100%); }
.v-duration { position: absolute; right: 6px; bottom: 6px; z-index: 2; padding: 2px 5px; border-radius: 2px; background: rgba(0, 0, 0, .86); color: #fff; font-size: .6rem; font-weight: 700; }
.v-play { display: none; }
.v-body { padding: 8px 1px 0; }
.v-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .85rem; line-height: 1.4; font-weight: 600; }
.v-title a:hover { color: var(--accent); }
.v-meta { display: flex; align-items: center; gap: 5px; min-height: 14px; margin-top: 4px; color: var(--faint); font-size: .62rem; }
.v-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.v-meta .ic { width: 11px; height: 11px; }
.v-badge { margin-left: auto; padding: 2px 5px; border-radius: 2px; background: var(--accent); color: #fff; font-size: .58rem; font-weight: 800; }

/* sections */
.section { padding: 30px 0; }
.section-first { padding-top: 8px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-head h2 { font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1; letter-spacing: -.04em; font-weight: 900; }
.section-link { display: inline-flex; align-items: center; gap: 5px; flex: none; color: var(--muted); font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.section-link .ic { width: 13px; height: 13px; }
.section-link:hover { color: var(--accent); }
.section-tags { padding-top: 28px; padding-bottom: 40px; border-top: 1px solid var(--line); }

/* tags */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-chip { display: inline-flex; align-items: center; gap: 5px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); color: var(--muted); font-size: .71rem; }
.tag-chip:hover { border-color: var(--accent); color: #fff; }
.tag-cloud-small { gap: 4px; }
.tag-cloud-small .tag-chip { padding: 5px 8px; font-size: .66rem; }

/* categories */
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cat-card { display: flex; flex-direction: column; min-height: 92px; padding: 13px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.cat-card:hover { border-color: var(--accent); }
.cat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: auto; }
.cat-icon { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 3px; background: var(--accent-soft); color: var(--accent); }
.cat-icon .ic { width: 14px; height: 14px; }
.cat-arrow { color: var(--faint); }
.cat-arrow .ic { width: 13px; height: 13px; }
.cat-name { margin-top: 11px; font-size: .82rem; font-weight: 700; }
.cat-count { margin-top: 2px; color: var(--faint); font-size: .62rem; }
.cat-desc { margin-top: 5px; color: var(--muted); font-size: .7rem; line-height: 1.45; }
.cat-grid-large .cat-card { min-height: 126px; }

/* listing */
.category-banner { max-width: 840px; padding: 28px 0 18px; border-bottom: 1px solid var(--line); }
.category-banner .eyebrow { margin-bottom: 8px; }
.category-banner h1 { font-size: clamp(1.85rem, 4.4vw, 3.2rem); line-height: 1; letter-spacing: -.055em; font-weight: 900; }
.category-banner p { max-width: 64ch; margin-top: 9px; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.category-count { display: inline-block; margin-top: 9px; color: var(--faint); font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.listing-banner { max-width: none; padding-bottom: 21px; }
.listing-banner h1 { font-size: clamp(2.1rem, 5vw, 3.8rem); }

/* breadcrumbs/pagination */
.breadcrumbs { padding: 17px 0 0; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--faint); font-size: .62rem; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.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: 4px; margin-top: 30px; }
.page-btn { min-width: 33px; height: 33px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); font-size: .7rem; font-weight: 700; }
.page-btn:hover { border-color: #fff; color: #fff; }
.page-btn.is-current { border-color: var(--accent); background: var(--accent); color: #fff; }
.page-btn.is-disabled { opacity: .3; pointer-events: none; }
.page-arrow .ic { width: 14px; height: 14px; }
.page-ellipsis { padding: 0 3px; color: var(--faint); }

/* video page */
.video-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 30px; padding-top: 6px; padding-bottom: 44px; }
.video-main { min-width: 0; }
.player-shell { margin-top: 13px; overflow: hidden; border-radius: 5px; background: #000; }
.player { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-details { margin-top: 13px; padding: 18px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
.video-title { font-size: clamp(1.2rem, 2.2vw, 1.65rem); line-height: 1.2; letter-spacing: -.035em; }
.video-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 13px; margin-top: 9px; color: var(--muted); font-size: .68rem; }
.video-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.video-meta .ic { width: 12px; height: 12px; }
.meta-rating { color: var(--accent) !important; font-weight: 700; }
.video-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 11px; margin-top: 14px; padding: 11px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rating { display: flex; align-items: center; gap: 6px; }
.rate-btn { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); }
.rate-btn:hover { border-color: var(--accent); color: var(--accent); }
.rate-btn .ic { width: 14px; height: 14px; }
.rating-info { display: flex; align-items: baseline; gap: 5px; margin-left: 2px; }
.rating-info strong { font-size: .95rem; }
.rating-info span { color: var(--faint); font-size: .62rem; }
.rating.is-loading { opacity: .55; pointer-events: none; }
.video-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.action-btn { display: inline-flex; align-items: center; gap: 5px; min-height: 31px; padding: 0 9px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); font-size: .66rem; font-weight: 600; }
.action-btn:hover { border-color: #fff; color: #fff; }
.action-btn .ic { width: 12px; height: 12px; }
.video-taxonomy { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 10px; padding-top: 13px; }
.video-cats { color: var(--muted); font-size: .7rem; }
.video-cats .label { margin-right: 5px; color: var(--faint); font-size: .58rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.video-cats a { text-decoration: underline; text-underline-offset: 3px; }
.video-cats a:hover { color: var(--accent); }
.video-description { margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); }
.desc-content { max-height: 5.6em; overflow: hidden; color: var(--muted); font-size: .81rem; line-height: 1.65; overflow-wrap: anywhere; }
.video-description.is-open .desc-content { max-height: none; }
.readmore-btn { display: none; margin-top: 7px; padding: 0; border: 0; background: transparent; color: var(--ink); font-size: .66rem; font-weight: 700; }
.readmore-btn.is-visible { display: inline-flex; align-items: center; gap: 3px; }
.readmore-btn .ic { width: 12px; height: 12px; }
.video-description.is-open .readmore-btn .ic { transform: rotate(-90deg); }
.video-sidebar { min-width: 0; }
.side-card { margin-top: 13px; padding: 13px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.side-head h2 { font-size: .84rem; letter-spacing: -.02em; }
.side-head a { color: var(--faint); font-size: .58rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.side-list { display: flex; flex-direction: column; gap: 2px; }
.side-video { display: flex; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.side-video:last-child { border-bottom: 0; }
.side-video img { width: 84px; height: 52px; flex: none; object-fit: cover; border-radius: 3px; background: var(--surface-soft); }
.side-video-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.side-video-info strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .69rem; line-height: 1.35; font-weight: 600; }
.side-video-info small { color: var(--faint); font-size: .59rem; }
.side-video:hover strong { color: var(--accent); }
.side-cta { background: var(--header); border-color: var(--header); color: var(--header-fg); }
.side-cta-icon { display: inline-flex; margin-bottom: 7px; color: var(--accent); }
.side-cta h2 { font-size: .98rem; letter-spacing: -.03em; }
.side-cta p { margin-top: 4px; color: var(--header-muted); font-size: .7rem; line-height: 1.45; }
.side-cta .btn { margin-top: 11px; background: var(--accent); color: #fff; }
.side-cta .btn:hover { background: #fff; color: #000; }

/* tag page */
.tag-hero { margin-top: 11px; padding: 19px 0 5px; }
.tag-hero h1 { font-size: clamp(1.75rem, 4vw, 3.1rem); line-height: 1; letter-spacing: -.05em; font-weight: 900; }
.tag-hero p { margin-top: 8px; color: var(--muted); font-size: .82rem; }
.player-caption { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 1px; font-size: .74rem; }
.player-caption a { font-weight: 600; }
.player-caption a:hover { color: var(--accent); }
.player-caption span { flex: none; color: var(--faint); font-size: .63rem; }

/* prose/error */
.page-layout { max-width: 850px; padding-top: 20px; padding-bottom: 50px; }
.prose { margin-top: 11px; padding: 22px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.prose h1 { margin-bottom: 15px; font-size: clamp(1.65rem, 3.5vw, 2.7rem); line-height: 1; letter-spacing: -.045em; }
.prose h2, .prose h3 { margin: 21px 0 8px; letter-spacing: -.025em; }
.prose p, .prose li { color: var(--muted); font-size: .83rem; line-height: 1.7; }
.prose p + p { margin-top: 10px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { margin: 10px 0; padding-left: 18px; list-style: disc; }
.prose ol { list-style: decimal; }
.error-layout { display: flex; align-items: center; justify-content: center; padding-top: 44px; padding-bottom: 44px; }
.error-card { width: 100%; max-width: 540px; padding: 26px; text-align: center; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
.error-code { display: block; color: var(--accent); font-size: .66rem; font-weight: 800; letter-spacing: .16em; }
.error-card h1 { margin-top: 6px; font-size: clamp(1.75rem, 4.4vw, 2.9rem); line-height: 1; letter-spacing: -.05em; }
.error-card p { max-width: 42ch; margin: 9px auto 17px; color: var(--muted); font-size: .82rem; }
.inline-search { display: flex; align-items: center; gap: 6px; max-width: 390px; margin: 0 auto 13px; padding: 4px 4px 4px 11px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); }
.inline-search .ic { color: var(--faint); }
.inline-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: .74rem; }
.inline-search .btn { min-height: 31px; padding: 0 10px; font-size: .64rem; }

/* empty */
.empty-state { padding: 40px 20px; text-align: center; border: 1px dashed var(--line-strong); border-radius: 4px; }
.empty-icon { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; margin-bottom: 11px; border-radius: 50%; background: var(--surface); color: var(--accent); }
.empty-state h2 { font-size: 1.2rem; letter-spacing: -.03em; }
.empty-state p { max-width: 420px; margin: 6px auto 15px; color: var(--muted); font-size: .8rem; }
.empty-state.compact { padding: 22px 15px; text-align: left; }

/* footer */
.site-footer { margin-top: 42px; padding: 38px 0 18px; background: var(--header); color: var(--header-fg); border-top: 3px solid var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 28px; }
.footer-brand p { max-width: 38ch; margin-top: 9px; color: var(--header-muted); font-size: .73rem; line-height: 1.55; }
.footer-badge { display: inline-block; margin-top: 11px; padding: 3px 6px; border: 1px solid #333; border-radius: 2px; color: var(--header-fg); font-size: .6rem; font-weight: 700; letter-spacing: .06em; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.footer-title { margin-bottom: 2px; color: var(--header-muted); font-size: .58rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.footer-links a { color: var(--header-muted); font-size: .71rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 13px; border-top: 1px solid #222; color: var(--header-muted); font-size: .6rem; line-height: 1.5; }
.to-top { position: fixed; right: 15px; bottom: 17px; z-index: 45; width: 35px; height: 35px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.bottom-nav { display: none; }

/* search/drawer */
.search-overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 12vh 18px 18px; background: rgba(0, 0, 0, .72); }
.search-overlay[hidden] { display: none; }
.search-overlay-inner { position: relative; width: 100%; max-width: 620px; padding: 28px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
.search-close { position: absolute; right: 8px; top: 8px; color: var(--muted); }
.search-eyebrow { margin-bottom: 10px; color: var(--faint); font-size: .6rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.search-overlay form { display: flex; gap: 6px; }
.search-overlay input { flex: 1; min-width: 0; height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 3px; outline: 0; background: var(--bg); color: var(--ink); font-size: .82rem; }
.search-overlay input:focus { border-color: var(--accent); }
.drawer-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .6); }
.drawer-overlay[hidden] { display: none; }
.mobile-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 95; width: min(350px, 88vw); padding: 15px; overflow-y: auto; background: var(--bg); color: var(--ink); transform: translateX(102%); transition: transform .24s ease; }
.mobile-drawer.is-open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.drawer-head .icon-btn { color: var(--muted); }
.drawer-nav { display: flex; flex-direction: column; padding-top: 5px; }
.drawer-nav > a { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; font-weight: 700; letter-spacing: -.02em; }
.drawer-nav > a span { color: var(--faint); font-size: .6rem; font-weight: 500; }
.drawer-nav > a:hover { color: var(--accent); }
.drawer-custom { padding-top: 11px; color: var(--muted); font-size: .74rem; }
.drawer-cats { padding-top: 15px; }
.drawer-label { display: block; margin-bottom: 7px; color: var(--faint); font-size: .58rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.drawer-cats a { display: inline-block; margin: 0 5px 5px 0; padding: 5px 8px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); font-size: .66rem; }
.drawer-cats a:hover { border-color: var(--accent); }
.drawer-foot { padding-top: 15px; }

/* responsive */
@media (max-width: 1180px) {
  .main-nav { gap: 15px; }
  .header-search { width: 195px; }
  .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) 280px; gap: 22px; }
}
@media (max-width: 1000px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .video-layout { grid-template-columns: 1fr; }
  .video-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
  .side-card { margin-top: 0; }
}
@media (max-width: 760px) {
  :root { --header-h: 56px; }
  .container { padding-left: 14px; padding-right: 14px; }
  .header-search { display: none; }
  .mobile-search-btn { display: inline-flex; }
  .page-lead { padding: 23px 0 17px; }
  .lead-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .lead-side { align-items: flex-start; width: 100%; }
  .lead-actions { justify-content: flex-start; }
  .page-lead h1 { font-size: clamp(1.65rem, 7vw, 2.5rem); }
  .page-lead p { font-size: .79rem; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 8px; }
  .v-title { font-size: .77rem; }
  .v-meta { font-size: .57rem; }
  .v-duration { font-size: .55rem; padding: 2px 4px; }
  .section { padding: 24px 0; }
  .section-head h2 { font-size: 1.1rem; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-card { min-height: 82px; padding: 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 6px; margin-top: 22px; }
  .bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: flex; height: calc(54px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: var(--surface); }
  .bottom-nav a, .bottom-nav button { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; background: transparent; color: var(--faint); font-size: .56rem; font-weight: 600; }
  .bottom-nav .ic { width: 17px; height: 17px; }
  .bottom-nav .is-active { color: var(--accent); }
  .site-main { padding-bottom: 56px; }
  .to-top { bottom: 66px; right: 9px; width: 33px; height: 33px; }
  .search-overlay { padding-top: 8vh; }
  .search-overlay-inner { padding: 21px 13px 15px; }
  .search-overlay form { flex-direction: column; }
  .video-details { padding: 13px; }
  .video-sidebar { grid-template-columns: 1fr; }
  .prose { padding: 15px; }
  .error-card { padding: 20px 13px; }
}
@media (max-width: 440px) {
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v-title { font-size: .73rem; }
  .v-meta { font-size: .55rem; }
  .page-lead h1 { font-size: 1.6rem; }
  .lead-actions .btn { min-height: 34px; padding: 0 10px; font-size: .68rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { font-size: .56rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
