/* ==========================================================================
   segavideo — tema "sack" (layout derivado do template PornSack)
   Troca apenas visual: DOM/classes novos, mesma estrutura de URLs e mesmos
   dados/variáveis dos templates Smarty. Paleta e tipografia vêm de config/app.php
   (bloco `theme`), injectados em :root no header.tpl — os valores abaixo são o
   fallback quando o config não define nada.
   Mapa antigo → novo em plans/pornsack-template.md
   ========================================================================== */

:root {
    --bg: #0b0b0b;
    --surface: #141414;
    --surface-2: #1b1b1b;
    --line: #2a2a2a;
    --text: #f5f2ec;
    --muted: #a9a49c;
    --accent: #e8a739;
    --accent-2: #ffc35a;
    --on-accent: #050505;
    --accent-rgb: 232, 167, 57;
    --radius: 8px;
    --shell: 1760px;
    --condensed: "Barlow Condensed", "Roboto Condensed", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.45; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(10, 10, 10, .98); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-row { max-width: var(--shell); height: 68px; margin: 0 auto; padding: 6px 18px; display: grid; grid-template-columns: 150px minmax(260px, 720px) 1fr; gap: 18px; align-items: center; }
.brand { min-width: 0; height: 46px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; font-family: var(--condensed); line-height: .95; }
.brand > a { font-size: 34px; font-weight: 800; letter-spacing: -.01em; text-transform: uppercase; white-space: nowrap; }
.brand > a span { color: var(--accent); }
.brand-tagline { font-style: normal; color: var(--muted); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.site-search { position: relative; display: flex; height: 42px; background: #202020; border: 1px solid #333; border-radius: 7px; overflow: visible; transition: border-color .2s, box-shadow .2s; }
.site-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(var(--accent-rgb), .14); }
.site-search input { flex: 1; min-width: 0; padding: 0 14px; border: 0; outline: 0; color: var(--text); background: transparent; }
.site-search input::placeholder { color: #817d77; }
.site-search button { width: 48px; flex: 0 0 48px; border: 0; color: var(--on-accent); background: var(--accent); border-radius: 0 6px 6px 0; cursor: pointer; }
.site-search svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; }
/* sugestões de busca (js/functions.js) */
.live-panel { position: absolute; top: 100%; left: 0; right: 0; z-index: 120; display: none; overflow: hidden; background: #161616; border: 1px solid #343434; border-radius: 0 0 7px 7px; box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
.live-panel.is-show { display: block; }
.live-panel a { display: flex; gap: 9px; align-items: center; padding: 9px 12px; font-size: 13px; }
.live-panel a:hover { color: var(--accent-2); background: #211d15; }
.live-panel a b { margin-left: auto; color: var(--muted); font-weight: 600; font-size: 11px; }
.utility-nav { justify-self: end; display: flex; gap: 9px; align-items: center; font-weight: 700; }
.utility-nav a { padding: 9px 12px; border-radius: 6px; white-space: nowrap; }
.utility-nav a:hover { background: var(--surface-2); }
.utility-nav a.is-active { color: var(--accent-2); background: rgba(var(--accent-rgb), .12); }
.utility-nav .account-primary-link { color: var(--on-accent); background: var(--accent); }
.utility-nav .account-primary-link:hover { color: var(--on-accent); background: var(--accent-2); }
.category-nav { max-width: var(--shell); margin: 0 auto; padding: 0 18px; height: 39px; display: flex; gap: 2px; align-items: stretch; overflow-x: auto; scrollbar-width: none; }
.category-nav::-webkit-scrollbar { display: none; }
.category-nav a { display: flex; align-items: center; flex: 0 0 auto; padding: 0 12px; color: #c4c0ba; font-family: var(--condensed); font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border-bottom: 2px solid transparent; }
.category-nav a:hover, .category-nav a.active { color: var(--accent-2); border-color: var(--accent); }
.nav-toggle, .mobile-menu { display: none; }

/* ---------------------------------------------------------- mobile menu */
.mobile-menu > a { padding: 8px; background: #1c1c1c; text-align: center; border-radius: 4px; }
.link-block { grid-column: 1 / -1; }
.link-block h3 { margin: 4px 0 6px; color: var(--accent); font-family: var(--condensed); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }

/* ------------------------------------------------------------ containers */
.content-shell { max-width: var(--shell); margin: 0 auto; padding: 14px 18px 34px; }
.quick-bar { min-height: 38px; margin-bottom: 12px; padding: 8px 12px; display: flex; gap: 12px; align-items: center; overflow-x: auto; background: var(--surface); border: 1px solid #232323; border-radius: var(--radius); white-space: nowrap; color: var(--muted); }
.quick-bar strong { color: var(--text); }
.quick-bar a:hover { color: var(--accent-2); }

.video-section { margin: 0 0 24px; }
.section-heading, .page-heading { min-height: 42px; display: flex; justify-content: space-between; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); }
.section-heading { margin-bottom: 11px; }
.section-heading h2, .page-heading h1 { margin: 0; font-family: var(--condensed); font-weight: 800; letter-spacing: .01em; }
.section-heading h2 { position: relative; padding: 0 0 8px 11px; font-size: 26px; text-transform: uppercase; }
.section-heading h2::before { content: ""; position: absolute; left: 0; top: 5px; width: 4px; height: 22px; border-radius: 2px; background: var(--accent); }
.section-heading > a { color: var(--accent-2); font-size: 13px; font-weight: 700; }
.section-heading > span { color: var(--muted); }
.page-heading { margin: 1px 0 14px; padding-bottom: 10px; }
.page-heading h1 { font-size: 34px; text-transform: uppercase; }
.page-heading > span { color: var(--muted); }
.eyebrow { margin: 0 0 -3px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.home-intro { margin: 16px 0; }
.archive-intro { margin: 0 0 22px; }
.home-intro h1 { margin: 0 0 6px; font-size: clamp(20px, 3vw, 28px); line-height: 1.3; }
.home-intro p, .archive-intro p { margin: 0; max-width: 80ch; color: var(--muted); line-height: 1.6; }
.archive-related { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.archive-related > span { font-size: 13px; }

/* ----------------------------------------------------------------- cards */
.video-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 17px 12px; }
.archive-grid { min-height: 40vh; }
.video-card { position: relative; min-width: 0; transition: opacity .18s ease, transform .18s ease; }
.video-card.is-removing { opacity: 0; transform: scale(.97); }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 7px; background: #1d1b18; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; }
.thumb video { position: absolute; inset: 0; }
.thumb img { transition: transform .25s ease, filter .25s ease; }
.thumb-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 75% 20%, rgba(var(--accent-rgb), .24), transparent 32%), linear-gradient(135deg, #28231c 0%, #151515 55%, #24201a 100%); }
.thumb-placeholder span { position: relative; color: rgba(var(--accent-rgb), .24); font-family: var(--condensed); font-size: clamp(32px, 4vw, 68px); font-weight: 800; letter-spacing: -.06em; }
.play-icon { position: absolute; inset: 50% auto auto 50%; width: 42px; height: 42px; display: grid; place-items: center; transform: translate(-50%, -45%) scale(.8); border-radius: 50%; color: var(--on-accent); background: rgba(240, 178, 67, .94); opacity: 0; transition: opacity .2s, transform .2s; box-shadow: 0 5px 20px rgba(0, 0, 0, .35); }
.play-icon svg { width: 25px; fill: currentColor; }
.thumb:hover img { transform: scale(1.035); filter: brightness(.72); }
.thumb:hover .play-icon { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.duration, .quality { position: absolute; bottom: 6px; padding: 3px 6px; color: #fff; background: rgba(0, 0, 0, .82); border-radius: 3px; font-size: 11px; font-weight: 700; }
.duration { right: 6px; }
.quality { left: 6px; color: #15110b; background: var(--accent-2); }
.seekbar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0, 0, 0, .6); }
.seekbar > span { display: block; height: 100%; background: var(--accent); }
.card-copy { padding: 7px 2px 0; }
.card-copy h3 { margin: 0 0 5px; font-size: 14px; line-height: 1.3; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-copy h3 a:hover { color: var(--accent-2); }
.card-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; }
.card-meta a { color: #c9a96c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-meta em { font-style: normal; white-space: nowrap; }

/* ------------------------------------------------------ category cards */
.category-section { margin: 4px 0 25px; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.category-card { min-height: 64px; padding: 9px 11px; display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: center; overflow: hidden; background: linear-gradient(110deg, #1b1b1b, #151515); border: 1px solid #292929; border-radius: 7px; transition: border-color .2s, transform .2s; }
.category-card:hover { border-color: #65502b; transform: translateY(-1px); }
.category-mark { width: 42px; height: 42px; display: grid; place-items: center; color: #18130b; background: var(--accent); border-radius: 6px; font-family: var(--condensed); font-size: 25px; font-weight: 800; }
.category-card strong, .category-card small { display: block; }
.category-card strong { font-family: var(--condensed); font-size: 19px; text-transform: uppercase; }
.category-card small { color: var(--muted); font-size: 11px; }
.category-card .arrow { color: var(--accent); font-size: 20px; }
.cat-2 .category-mark, .cat-6 .category-mark { background: #d98543; }
.cat-3 .category-mark, .cat-7 .category-mark { background: #c5a45f; }
.cat-4 .category-mark, .cat-8 .category-mark { background: #f0c873; }

/* ----------------------------------------------------------- pagination */
.navigation.pagination { margin: 28px 0 4px; }
.navigation.pagination ul { margin: 0; padding: 0; }
.nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.nav-links li { list-style: none; }
.page-numbers, .nav-links a { min-width: 38px; height: 38px; padding: 0 11px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; font-weight: 700; }
.page-numbers.current, .page-numbers:hover, .nav-links a.current, .nav-links a:hover { color: #111; background: var(--accent); border-color: var(--accent); }

/* ------------------------------------------------------------ ad blocks */
.watch-ad-links { margin-top: 7px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.watch-ad-links a { min-width: 0; min-height: 38px; padding: 7px 9px; display: flex; align-items: center; justify-content: center; gap: 6px; color: #fff; background: linear-gradient(135deg, #2a0d12, #171719 72%); border: 1px solid #6f202b; border-radius: 5px; font-size: 12px; line-height: 1; text-align: center; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.watch-ad-links a:hover { color: #fff; background: linear-gradient(135deg, #8e1f2e, #351116); border-color: #db3b50; transform: translateY(-1px); }
.watch-ad-links span { flex: 0 0 auto; font-size: 15px; line-height: 1; }
.watch-ad-links strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-ad-links { margin-bottom: 10px; }
.ad-strip { margin: 20px 0 4px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ad-slot { min-height: 90px; display: grid; place-items: center; color: #6d6660; background: var(--surface); border: 1px dashed #2f2f2f; border-radius: var(--radius); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }

/* ---------------------------------------------------------- watch page */
.watch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.video-player { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #000; border-radius: 8px; }
.video-player video, .video-player iframe { width: 100%; height: 100%; border: 0; }
.video-player video { object-fit: contain; }
.player-empty { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 7px; color: var(--muted); background: radial-gradient(circle, #222 0, #070707 68%); }
.watch-heading-row { margin: 12px 0 5px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.watch-main .watch-heading-row h1 { min-width: 0; margin: 0; flex: 1; font-family: var(--condensed); font-size: 31px; line-height: 1.1; }
.favorite-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 7px 11px; color: #ded8cf; background: rgba(12, 12, 12, .92); border: 1px solid #49443d; border-radius: 5px; font-size: 12px; font-weight: 700; line-height: 1; cursor: pointer; transition: color .16s, background .16s, border-color .16s, transform .16s; }
.favorite-button svg { width: 18px; height: 18px; fill: transparent; stroke: currentColor; stroke-width: 1.8; }
.favorite-button:hover { color: var(--accent-2); background: #201b13; border-color: #8b6a31; transform: translateY(-1px); }
.favorite-button.is-favorite { color: #171109; background: var(--accent); border-color: var(--accent); }
.favorite-button.is-favorite svg { fill: currentColor; }
.watch-meta { display: flex; flex-wrap: wrap; gap: 15px; align-items: center; color: var(--muted); font-size: 12px; }
.vote-btn { display: inline-flex; gap: 6px; align-items: center; padding: 5px 9px; color: #ded8cf; background: #191919; border: 1px solid #333; border-radius: 5px; font-size: 12px; font-weight: 700; cursor: pointer; }
.vote-btn:hover { color: var(--accent-2); border-color: #6b542a; }
.source-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; color: var(--muted); font-size: 12px; }
.source-meta strong { color: #d9d4cc; }
.video-taxonomies { margin-top: 14px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.taxonomy-group + .taxonomy-group { margin-top: 12px; padding-top: 11px; border-top: 1px solid #242424; }
.taxonomy-group h2, .video-description h2 { margin: 0 0 7px; color: #e7e1d8; font-family: var(--condensed); font-size: 18px; text-transform: uppercase; }
.tag-row, .pill-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.tag-row a, .pill-list a { padding: 5px 9px; color: #dfc99e; background: #211c14; border: 1px solid #41351e; border-radius: 4px; font-size: 12px; font-weight: 600; }
.tag-row a:hover, .pill-list a:hover { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
/* na régua de navegação os links viram abas (herdam .category-nav a) */
.category-nav .pill-list { display: contents; }
.category-nav .pill-list a { padding: 0 12px; color: #c4c0ba; background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0; font-size: 15px; text-transform: uppercase; }
.taxonomy-line { display: flex; gap: 6px; align-items: flex-start; }
.taxonomy-collapsible .tag-row { min-width: 0; max-height: 29px; flex: 1; overflow: hidden; }
.taxonomy-collapsible.is-expanded .tag-row { max-height: none; }
.taxonomy-expand { width: 29px; height: 29px; flex: 0 0 29px; display: none; place-items: center; padding: 0; color: #17110a; background: var(--accent); border: 0; border-radius: 4px; font-size: 19px; font-weight: 800; line-height: 1; cursor: pointer; }
.taxonomy-expand:hover { background: var(--accent-2); }
.taxonomy-collapsible.is-clipped .taxonomy-expand { display: grid; }
.video-description { margin-top: 14px; padding-top: 12px; color: #c0bbb4; border-top: 1px solid var(--line); }
.flaglink { display: inline-block; margin-top: 12px; color: var(--muted); font-size: 11px; text-decoration: underline; }
.flaglink:hover { color: var(--accent-2); }
.watch-sidebar .section-heading h2 { font-size: 22px; }
.watch-sidebar .video-card { margin-bottom: 13px; display: grid; grid-template-columns: 132px 1fr; gap: 9px; }
.watch-sidebar .card-copy { padding-top: 1px; }
.watch-sidebar .card-meta { display: block; }
.watch-sidebar .card-meta em { display: block; margin-top: 3px; font-style: normal; }
/* "up next" overlay do player (js/functions.js) */
.nextup-card { position: absolute; inset: auto 0 0; z-index: 20; padding: 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .95)); }
.nextup-in { display: grid; gap: 6px; }
.nextup-label { color: var(--accent-2); font-size: 12px; font-weight: 700; }
.nextup-title { color: #fff; font-size: 13px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nextup-btns { display: flex; gap: 7px; }
.nextup-go, .nextup-x { padding: 7px 11px; border: 1px solid var(--accent); border-radius: 5px; color: var(--on-accent); background: var(--accent); font-size: 12px; font-weight: 700; cursor: pointer; }
.nextup-x { color: #ddd; background: transparent; border-color: #444; }

/* --------------------------------------------------------- notices/404 */
.notice { max-width: 840px; margin: 14px auto; padding: 11px 13px; border-left: 3px solid; border-radius: 4px; font-size: 13px; }
.notice-ok { color: #dff4c9; background: #14230e; border-color: #80b650; }
.notice-bad { color: #ffd8d4; background: #2d1110; border-color: #e05c55; }
.notice .is-close { float: right; color: inherit; background: transparent; border: 0; font-size: 16px; line-height: 1; cursor: pointer; }
.empty-state { max-width: 840px; margin: 28px auto; padding: 42px 20px; display: grid; place-items: center; align-content: center; text-align: center; background: var(--surface); border: 1px dashed #403b34; border-radius: 9px; }
.empty-state > span { color: var(--accent); font-size: 52px; line-height: 1; }
.empty-state svg { width: 52px; height: 52px; fill: none; stroke: var(--accent); stroke-width: 1.6; }
.related-section { grid-column: 1 / -1; }
.empty-state h2, .empty-state h1 { margin: 8px 0 3px; font-family: var(--condensed); font-size: 26px; text-transform: uppercase; }
.empty-state p { margin: 0; color: var(--muted); }
/* paginas de texto puro: /dmca, /2257, /contact (mesma caixa dos blocos de conteúdo) */
.prose-page { max-width: 840px; margin: 20px auto; }
.prose-page article { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.prose-page h1, .prose-page article h1 { margin-bottom: 14px; color: var(--text); font-family: var(--condensed); font-size: 34px; font-weight: 800; line-height: .95; text-transform: uppercase; letter-spacing: .01em; }
.prose-page article h2 { margin: 20px 0 8px; color: var(--accent-2); font-family: var(--condensed); font-size: 20px; text-transform: uppercase; }
.prose-page article p, .prose-page article li { color: #c0bbb4; line-height: 1.65; }
.prose-page article p + p, .prose-page article li + li { margin-top: 9px; }
.prose-page article ol, .prose-page article ul { padding-left: 22px; }
.prose-page article a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; }
.prose-page article a:hover { color: var(--accent); }
.prose-page article strong { color: var(--text); }

/* -------------------------------------------------------------- footer */
.site-footer { max-width: var(--shell); margin: 0 auto; padding: 22px 18px; display: grid; gap: 12px; align-items: center; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-wordmark { font-family: var(--condensed); font-size: 30px; font-weight: 800; line-height: .9; text-transform: uppercase; color: var(--text); }
.footer-brand { display: flex; gap: 11px; align-items: center; }
.footer-brand p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-links a { padding: 5px 9px; color: #dfc99e; background: #1a1712; border: 1px solid #3a3020; border-radius: 4px; font-size: 12px; }
.footer-links a:hover { color: var(--on-accent); background: var(--accent); }
.legal { margin: 0; padding-top: 10px; border-top: 1px solid #1c1c1c; font-size: 11px; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 1350px) { .video-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1120px) {
    .header-row { grid-template-columns: 116px minmax(260px, 1fr) auto; }
    .video-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
    .header-row { height: 60px; grid-template-columns: 38px 1fr; gap: 8px; padding: 5px 12px; }
    .brand { display: none; }
    .nav-toggle { width: 34px; height: 34px; padding: 7px; display: flex; flex-direction: column; justify-content: center; gap: 4px; color: #fff; background: transparent; border: 1px solid #343434; border-radius: 5px; }
    .nav-toggle span { width: 100%; height: 2px; background: currentColor; transform-origin: center; transition: transform .26s cubic-bezier(.22, 1, .36, 1), opacity .18s ease; }
    .nav-toggle[aria-expanded="true"] { color: var(--accent-2); background: #1c1811; border-color: #755726; }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(.25); }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
    .site-search { height: 38px; }
    .utility-nav { display: none; }
    .category-nav { height: 36px; padding: 0 12px; }
    .category-nav a { padding: 0 9px; font-size: 14px; }
    .mobile-menu { max-height: 0; padding: 0 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; overflow: hidden; visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(-8px); background: #101010; border-top: 1px solid transparent; transition: max-height .32s cubic-bezier(.22, 1, .36, 1), padding .26s ease, opacity .2s ease, transform .26s cubic-bezier(.22, 1, .36, 1), border-color .2s, visibility 0s linear .32s; }
    .mobile-menu.is-open { max-height: 78vh; overflow-y: auto; padding: 10px 12px; visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0); border-color: var(--line); transition-delay: 0s; }
    .content-shell { padding: 12px 12px 28px; }
    .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .watch-layout { grid-template-columns: 1fr; }
    .watch-sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .watch-sidebar .section-heading { grid-column: 1 / -1; }
    .watch-sidebar .video-card { display: block; margin: 0; }
    .ad-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .header-row { grid-template-columns: 34px 1fr; }
    .site-search input { padding: 0 9px; }
    .site-search button { width: 40px; flex-basis: 40px; }
    .section-heading h2 { font-size: 22px; }
    .section-heading > a { font-size: 11px; }
    .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 8px; }
    .card-copy h3 { font-size: 13px; }
    .category-grid { grid-template-columns: 1fr; }
    .category-card { min-height: 56px; grid-template-columns: 34px 1fr; padding: 8px; gap: 8px; }
    .category-mark { width: 34px; height: 34px; font-size: 21px; }
    .category-card strong { font-size: 16px; }
    .category-card .arrow { display: none; }
    .page-heading h1 { font-size: 28px; }
    .navigation.pagination .nav-links { gap: 4px; }
    .navigation.pagination .page-numbers { min-width: 34px; height: 36px; padding: 0 8px; }
    .watch-main .watch-heading-row h1 { font-size: 26px; }
    .favorite-button span { display: none; }
    .favorite-button { width: 38px; padding: 0; }
    .watch-ad-links { gap: 4px; }
    .watch-ad-links a { min-height: 34px; padding: 6px 4px; gap: 4px; font-size: 10px; }
    .watch-sidebar { grid-template-columns: 1fr 1fr; gap: 10px 8px; }
    .footer-links { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .mobile-menu, .nav-toggle span { transition: none !important; } }
