/* ============================================================
   hm-theme.css — Hotmaal design system (replaces xh-theme-v3.css on the public site)
   CSS only: no JS animations, transforms/opacity for motion, reduced-motion respected.
   ============================================================ */

:root {
  --bg: #0e0a1d;
  --bg-2: #150f2b;
  --surface: #1c1538;
  --surface-2: #251c4a;
  --surface-3: #2f2460;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f2ff;
  --text-2: rgba(245, 242, 255, 0.78);
  --muted: #a7a0c8;
  --pink: #ff3d9a;
  --violet: #9b5cff;
  --indigo: #5b6cff;
  --amber: #ffb547;
  --grad: linear-gradient(135deg, #ff3d9a 0%, #b44dff 55%, #5b6cff 100%);
  --grad-soft: linear-gradient(135deg, rgba(255, 61, 154, 0.18) 0%, rgba(155, 92, 255, 0.18) 60%, rgba(91, 108, 255, 0.18) 100%);
  --grad-warm: linear-gradient(135deg, #ff7a3d 0%, #ff3d9a 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 14px 34px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 61, 154, 0.35);
  --header-h: 64px;
  --maxw: 1760px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(155, 92, 255, 0.18), transparent 60%),
    radial-gradient(1000px 500px at 100% 0%, rgba(255, 61, 154, 0.12), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--pink); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; border-radius: 6px; }
.hm-ico { width: 1.15em; height: 1.15em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.18em; }
.hm-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Layout shell ---------- */
.xh-wrap { display: flex; flex-direction: column; min-height: 100vh; }
.xh-body { display: flex; flex: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; }
.xh-main { flex: 1; min-width: 0; padding: 22px 28px 40px; }

/* ---------- Header ---------- */
.xh-header-wrap {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(14, 10, 29, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.xh-header-wrap::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--grad); opacity: .85;
}
.xh-topbar {
  display: flex; align-items: center; gap: 18px;
  max-width: var(--maxw); margin: 0 auto; padding: 10px 28px; min-height: var(--header-h);
}
.xh-topbar .logo a { display: flex; align-items: center; }
.xh-topbar .logo img.xh-logo-img { height: 40px; width: auto; }
.xh-topbar .logo strong { position: absolute; left: -9999px; }

.xh-search { flex: 1; max-width: 620px; }
.xh-search form {
  display: flex; align-items: center;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border-strong);
  border-radius: 999px; padding: 4px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.xh-search form:focus-within { border-color: rgba(255, 61, 154, 0.7); box-shadow: 0 0 0 4px rgba(255, 61, 154, 0.15); background: rgba(255, 255, 255, 0.09); }
.xh-search input[type="text"] {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: none;
  padding: 8px 14px; color: var(--text); font-size: .95rem;
}
.xh-search input[type="text"]::placeholder { color: var(--muted); }
.xh-search .search-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 36px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--grad); color: #fff; transition: transform .2s var(--ease), filter .2s var(--ease);
}
.xh-search .search-btn:hover { filter: brightness(1.1); transform: scale(1.04); }

.xh-hamburger {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.05); color: var(--text); cursor: pointer;
}
.xh-hamburger .hm-ico { width: 22px; height: 22px; }

/* Desktop primary nav */
.xh-mainnav {
  display: flex; align-items: center; gap: 6px;
  max-width: var(--maxw); margin: 0 auto; padding: 0 28px 10px;
  overflow-x: auto; scrollbar-width: none;
}
.xh-mainnav::-webkit-scrollbar { display: none; }
.xh-mainnav a {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 8px 16px; border-radius: 999px; font-size: .9rem; font-weight: 600;
  color: var(--text-2); border: 1px solid transparent;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.xh-mainnav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); border-color: var(--border); }
.xh-mainnav a.active { color: #fff; background: var(--grad); box-shadow: 0 6px 18px rgba(255, 61, 154, 0.3); }
.xh-mainnav .xh-mainnav-spacer { flex: 1 1 auto; }
.xh-mainnav .xh-mainnav-meta { font-weight: 500; font-size: .85rem; }

/* ---------- Sidebar (mobile drawer) ---------- */
.xh-sidebar { display: none; }
.xh-overlay { display: none; }

/* ---------- Page headings ---------- */
.xh-page-title {
  font-size: 1.45rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25;
  margin: 4px 0 20px; padding-bottom: 12px; position: relative; color: var(--text);
}
.xh-page-title::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 72px; height: 4px; border-radius: 4px; background: var(--grad);
}

/* ---------- Video grid & cards ---------- */
.xh-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
.video-card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: transparent; }
.video-card .thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0a0716; }
.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.video-card:hover .thumb img { transform: scale(1.05); }
.video-card .thumb::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(transparent, rgba(8, 5, 18, 0.65)); pointer-events: none;
}
.video-card .play {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: 54px; height: 54px; margin: -27px 0 0 -27px;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.35); color: #fff;
  opacity: 0; transform: scale(.85); transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.video-card .play .hm-ico { width: 22px; height: 22px; fill: currentColor; stroke: none; margin-left: 3px; }
.video-card:hover .play { opacity: 1; transform: scale(1); }
.video-card .duration {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  padding: 3px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .02em;
  color: #fff; background: rgba(10, 6, 22, 0.72); border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.video-card .info { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.video-card .info h3 {
  font-size: .95rem; font-weight: 700; line-height: 1.35; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.video-card .info h3 a { color: inherit; }
.video-card .info h3 a:hover { color: var(--pink); }
.video-card .meta { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); }

/* ---------- Category / pornstar / channel tiles ---------- */
.xh-cat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
a.cat-card {
  position: relative; display: block; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden;
  background: var(--grad-soft), var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
a.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.cat-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
a.cat-card:hover .cat-img { transform: scale(1.06); }
a.cat-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(8, 5, 18, 0.9) 100%); }
.cat-label {
  position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 2;
  font-size: .95rem; font-weight: 800; color: #fff; line-height: 1.25; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.has-video-count .cat-label-name { padding-right: 62px; }
.cat-meta-count {
  position: absolute; right: 10px; bottom: 10px; z-index: 3;
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
  font-size: .75rem; font-weight: 700; color: #fff; background: var(--grad); box-shadow: 0 4px 12px rgba(255, 61, 154, 0.35);
}
.cat-meta-count .hm-ico { width: 13px; height: 13px; }

/* ---------- Tags index ---------- */
.xh-tag-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-card {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  padding: 9px 10px 9px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.tag-card:hover { transform: translateY(-2px); border-color: rgba(255, 61, 154, 0.5); background: var(--surface-2); }
.tag-card .tag-name { font-weight: 700; color: var(--text); font-size: .88rem; line-height: 1.3; overflow-wrap: anywhere; }
.tag-card .tag-name::before { content: '#'; color: var(--pink); margin-right: 2px; }
.tag-card .tag-count { flex: 0 0 auto; font-size: .75rem; color: var(--muted); background: rgba(255, 255, 255, 0.06); padding: 2px 8px; border-radius: 999px; }

/* ---------- Single video page ---------- */
.xh-player-wrap { max-width: 1120px; margin: 0 auto 18px; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); background: #000; }
.xh-player-wrap > video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; display: block; }
.xh-video-box { max-width: 1120px; margin: 0 auto; padding: 20px 22px; border-radius: var(--radius); background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%); border: 1px solid var(--border); box-shadow: var(--shadow); }
.xh-video-title { font-size: 1.4rem; font-weight: 800; line-height: 1.3; letter-spacing: -0.01em; color: var(--text); }
.xh-video-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.xh-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  font-size: .8rem; font-weight: 600; color: var(--text-2); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border);
}
a.xh-chip:hover { color: #fff; border-color: rgba(255, 61, 154, 0.6); }
.xh-video-desc { font-size: .95rem; color: var(--text-2); margin: 12px 0 4px; }
.xh-downloads { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 6px; }
.xh-dl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; font-weight: 700; font-size: .95rem; color: #fff;
  background: var(--grad); box-shadow: 0 8px 22px rgba(255, 61, 154, 0.3);
  transition: transform .2s var(--ease), filter .2s var(--ease), box-shadow .2s var(--ease);
}
.xh-dl-btn:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 12px 28px rgba(255, 61, 154, 0.4); }
.xh-dl-btn.q720 { background: linear-gradient(135deg, #b44dff 0%, #5b6cff 100%); box-shadow: 0 8px 22px rgba(124, 92, 255, 0.3); }
.xh-dl-btn.q1080 { background: var(--grad-warm); box-shadow: 0 8px 22px rgba(255, 122, 61, 0.3); }
.xh-tag-section { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.xh-tag-label { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.xh-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.xh-tags a {
  padding: 6px 13px; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--text-2);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.xh-tags a:hover { color: #fff; border-color: transparent; background: var(--grad); transform: translateY(-1px); }
.xh-tags a.model-tag { color: #fff; background: linear-gradient(135deg, rgba(255, 61, 154, 0.35), rgba(255, 61, 154, 0.15)); border-color: rgba(255, 61, 154, 0.5); }
.xh-tags a.channel-tag { color: #fff; background: linear-gradient(135deg, rgba(91, 108, 255, 0.35), rgba(155, 92, 255, 0.15)); border-color: rgba(124, 92, 255, 0.5); }
.xh-related-title { font-size: 1.2rem; font-weight: 800; margin: 34px 0 16px; display: flex; align-items: center; gap: 10px; }
.xh-related-title::before { content: ''; width: 6px; height: 22px; border-radius: 6px; background: var(--grad); }

/* ---------- Download page ---------- */
.xh-download-box { max-width: 680px; margin: 10px auto 0; padding: 34px 26px; text-align: center; border-radius: var(--radius); background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%); border: 1px solid var(--border); box-shadow: var(--shadow); }
.xh-download-box h1 { font-size: 1.35rem; font-weight: 800; line-height: 1.35; margin-bottom: 22px; }
.xh-download-box .xh-dl-btn { font-size: 1.05rem; padding: 14px 36px; }
.xh-download-box + .xh-tags { justify-content: center; margin: 18px auto 0; max-width: 900px; }

/* ---------- Static / informational pages ---------- */
.xh-static-page {
  max-width: 860px; margin: 0 auto; padding: 34px 36px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%); border: 1px solid var(--border); box-shadow: var(--shadow);
  color: var(--text-2); line-height: 1.75;
}
.xh-static-page h1, .xh-static-page h2 { color: var(--text); font-weight: 800; letter-spacing: -0.01em; }
.xh-static-page h1 { font-size: 1.7rem; margin-bottom: 6px; }
.xh-static-page .xh-updated { font-size: .82rem; color: var(--muted); margin-bottom: 22px; }
.xh-static-page h2 { font-size: 1.12rem; margin: 26px 0 8px; display: flex; align-items: center; gap: 10px; }
.xh-static-page h2::before { content: ''; width: 4px; height: 18px; border-radius: 4px; background: var(--grad); }
.xh-static-page p { margin-bottom: 12px; }
.xh-static-page ul { margin: 0 0 14px 4px; }
.xh-static-page ul li { position: relative; padding-left: 20px; margin-bottom: 6px; }
.xh-static-page ul li::before { content: ''; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
.xh-static-page a { color: var(--pink); font-weight: 600; }
.xh-static-page a:hover { color: #fff; }
.xh-contact-card { display: flex; align-items: center; gap: 14px; margin: 18px 0; padding: 16px 18px; border-radius: 12px; background: var(--grad-soft); border: 1px solid var(--border-strong); }
.xh-contact-card .hm-ico { width: 26px; height: 26px; color: var(--pink); }
.xh-contact-card strong { display: block; color: var(--text); }

/* ---------- Empty / 404 ---------- */
.xh-empty-state { max-width: 640px; margin: 30px auto; text-align: center; padding: 40px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.xh-empty-state .xh-page-title::after { left: 50%; margin-left: -36px; }
.xh-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 11px 22px; border-radius: 12px; font-weight: 700; color: #fff; background: var(--grad); }
.xh-btn:hover { color: #fff; filter: brightness(1.08); }

/* ---------- Pagination ---------- */
.xh-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 34px 0 10px; }
.xh-pagination a, .xh-pagination span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 14px;
  border-radius: 12px; font-weight: 700; font-size: .9rem; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--border);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.xh-pagination a:hover { color: #fff; border-color: rgba(255, 61, 154, 0.6); transform: translateY(-2px); }
.xh-pagination .current { color: #fff; background: var(--grad); border-color: transparent; box-shadow: 0 6px 18px rgba(255, 61, 154, 0.3); }

/* ---------- Footer ---------- */
.xh-footer { margin-top: auto; border-top: 1px solid var(--border); background: linear-gradient(180deg, rgba(21, 15, 43, 0.6), rgba(14, 10, 29, 0.95)); }
.xh-footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 34px 28px 22px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.xh-footer-brand img { height: 34px; width: auto; margin-bottom: 12px; }
.xh-footer-brand p, .xh-footer-note { font-size: .85rem; color: var(--muted); }
.xh-footer h4 { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text); margin-bottom: 12px; }
.xh-footer-links { display: flex; flex-direction: column; gap: 8px; }
.xh-footer-links a { color: var(--text-2); font-size: .9rem; }
.xh-footer-links a:hover { color: var(--pink); }
.xh-footer-bottom { max-width: var(--maxw); margin: 0 auto; padding: 16px 28px 22px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .8rem; color: var(--muted); }
.xh-badge-18 { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 22px; padding: 0 6px; border-radius: 6px; font-size: .72rem; font-weight: 800; color: #fff; background: var(--grad-warm); margin-right: 6px; }

/* ---------- Mobile bottom navigation ---------- */
.hm-bottomnav { display: none; }

/* ---------- Ads ---------- */
.xh-ad-slot { margin: 16px 0; text-align: center; }

/* ---------- 18+ notice ---------- */
.hm-age { display: none; }
.hm-age-pending, .hm-age-pending body { overflow: hidden; }
.hm-age-pending .hm-age {
  display: flex; position: fixed; inset: 0; z-index: 100000; align-items: center; justify-content: center; padding: 16px;
  background: radial-gradient(800px 500px at 50% 20%, rgba(155, 92, 255, 0.25), transparent 60%), rgba(8, 5, 18, 0.97);
}
.hm-age-box { width: 100%; max-width: 460px; text-align: center; padding: 30px 24px; border-radius: 20px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border-strong); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6); }
.hm-age-box img { margin: 0 auto 16px; height: 48px; width: auto; }
.hm-age-box h2 { font-size: 1.45rem; font-weight: 800; margin-bottom: 10px; }
.hm-age-box p { font-size: .95rem; color: var(--text-2); margin-bottom: 22px; }
.hm-age-actions { display: flex; flex-direction: column; gap: 10px; }
.hm-age-enter { border: 0; border-radius: 12px; padding: 14px 16px; cursor: pointer; background: var(--grad); color: #fff; font-weight: 800; font-size: 1rem; box-shadow: 0 10px 26px rgba(255, 61, 154, 0.35); }
.hm-age-enter:hover { filter: brightness(1.08); }
.hm-age-leave { color: var(--muted); padding: 8px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1679px) { .xh-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1399px) { .xh-cat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1279px) {
  .xh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .xh-cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Tablet & phone: compact header, drawer, bottom navigation */
@media (max-width: 991px) {
  :root { --header-h: 58px; }
  .xh-topbar { padding: 8px 14px; gap: 10px; flex-wrap: wrap; }
  .xh-hamburger { display: inline-flex; }
  .xh-topbar .logo { flex: 1; display: flex; justify-content: center; }
  .xh-topbar .logo img.xh-logo-img { height: 36px; }
  .xh-search { order: 3; flex: 1 1 100%; max-width: none; }
  .xh-mainnav { display: none; }
  .xh-main { padding: 18px 16px 96px; }
  .xh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .xh-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .xh-footer-inner { grid-template-columns: 1fr 1fr; padding: 28px 18px 18px; }
  .xh-footer-brand { grid-column: 1 / -1; }
  .xh-footer-bottom { padding: 14px 18px 96px; }

  /* Off-canvas category drawer */
  .xh-sidebar {
    display: block; position: fixed; top: 0; bottom: 0; left: 0; z-index: 1200; width: 290px; max-width: 86vw;
    padding: 18px 0 30px; overflow-y: auto; overscroll-behavior: contain;
    background: linear-gradient(180deg, var(--surface-2), var(--bg)); border-right: 1px solid var(--border-strong);
    transform: translateX(-102%); transition: transform .3s var(--ease); box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
  }
  .xh-sidebar.open { transform: translateX(0); }
  .xh-sidebar h4 { padding: 14px 20px 6px; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  .xh-sidebar li a { display: flex; align-items: center; gap: 10px; padding: 10px 20px; color: var(--text-2); font-weight: 600; font-size: .95rem; }
  .xh-sidebar li a:hover, .xh-sidebar li a.active { color: #fff; background: var(--grad-soft); }
  .xh-sidebar .all-cats-link { display: block; margin: 10px 20px 0; padding: 10px 14px; border-radius: 12px; text-align: center; font-weight: 700; color: #fff; background: var(--grad); }
  .xh-sidebar .sidebar-cat-extra { display: none; }
  .xh-overlay { display: block; position: fixed; inset: 0; z-index: 1100; background: rgba(5, 3, 12, 0.6); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
  .xh-overlay.active { opacity: 1; pointer-events: auto; }
  body.sidebar-open { overflow: hidden; }

  /* Bottom tab bar */
  .hm-bottomnav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 1050;
    padding: 6px; border-radius: 20px; background: rgba(28, 21, 56, 0.88); border: 1px solid var(--border-strong);
    -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5); padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
  }
  .hm-bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px; border-radius: 14px; font-size: .68rem; font-weight: 700; color: var(--muted); }
  .hm-bottomnav a .hm-ico { width: 22px; height: 22px; }
  .hm-bottomnav a.active { color: #fff; background: var(--grad); box-shadow: 0 6px 16px rgba(255, 61, 154, 0.35); }
  .hm-age-pending .hm-bottomnav { display: none; }
}

/* Phones: one large poster per row */
@media (max-width: 599px) {
  html { font-size: 15px; }
  .xh-grid { grid-template-columns: 1fr; gap: 18px; }
  .video-card .info h3 { font-size: 1rem; }
  .video-card .play { opacity: .9; transform: scale(1); width: 48px; height: 48px; margin: -24px 0 0 -24px; }
  .xh-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cat-label { font-size: .85rem; left: 10px; bottom: 8px; }
  .has-video-count .cat-label-name { padding-right: 52px; }
  .cat-meta-count { right: 8px; bottom: 8px; padding: 2px 7px; }
  .xh-tag-grid { gap: 8px; }
  .tag-card { padding: 8px 8px 8px 12px; }
  .xh-page-title { font-size: 1.2rem; }
  .xh-video-title { font-size: 1.15rem; }
  .xh-video-box, .xh-static-page { padding: 20px 16px; }
  .xh-player-wrap { margin-left: -16px; margin-right: -16px; border-radius: 0; }
  .xh-downloads { flex-direction: column; }
  .xh-dl-btn { width: 100%; }
  .xh-footer-inner { gap: 24px 16px; }   /* Browse and Information stay side by side on phones */
  .xh-pagination a, .xh-pagination span { min-width: 40px; height: 40px; padding: 0 12px; }
}

/* Only very narrow screens stack the footer columns (on 320-360px phones a long link may wrap) */
@media (max-width: 299px) {
  .xh-footer-inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
