/* =========================================================================
 * PornGates theme — dark, fast, framework-free.
 * ========================================================================= */
@font-face {
  font-family: 'InterVar';
  src: url('/fonts/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}
:root {
  --bg:        #0d0d12;
  --bg-2:      #14141c;
  --bg-3:      #1c1c28;
  --surface:   #191922;
  --border:    #262633;
  --text:      #ece9f1;
  --muted:     #9a95ab;
  --primary:   #ff2436;
  --primary-2: #ff5568;
  --accent:    #b3101d;
  --radius:    12px;
  --radius-sm: 8px;
  --wrap:      1320px;
  --shadow:    0 8px 30px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'InterVar', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Sans", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.006em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary-2); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.25; font-weight: 700; }
.muted { color: var(--muted); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.main { min-height: 60vh; padding: 24px 0 60px; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .7em 1.3em;
  border-radius: 999px; border: 1px solid var(--border); background: var(--bg-3);
  color: var(--text); cursor: pointer; font-weight: 600; font-size: 14px; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--accent)); border: 0; }
.btn-ghost { background: transparent; }
.btn:hover { filter: brightness(1.1); }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 50;
  background: rgba(13,13,18,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; }
.brand-mark { color: var(--primary); }
.brand-name { letter-spacing: .3px; }
.brand-logo { height: 48px; width: auto; display: block; }
@media (max-width: 640px) { .brand-logo { height: 38px; } }
.main-nav { display: flex; gap: 16px; flex: 1; overflow: hidden; }
.main-nav a { color: var(--muted); font-weight: 600; white-space: nowrap; }
.main-nav a:hover { color: var(--text); }

.search-form { display: flex; align-items: center; background: var(--bg-3);
  border: 1px solid var(--border); border-radius: 999px; position: relative; }
/* Autocomplete dropdown */
.search-suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden auto;
  z-index: 55; max-height: 400px; padding: 6px; }
.ss-item { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; }
.ss-item:hover { background: var(--bg-3); }
.ss-item img, .ss-noimg { width: 58px; height: 33px; border-radius: 6px; object-fit: cover; flex: 0 0 auto;
  background: var(--bg-3); display: grid; place-items: center; color: var(--muted); }
.ss-title { flex: 1; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.ss-dur { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.search-form input { background: transparent; border: 0; color: var(--text);
  padding: .55em .9em; width: 200px; outline: none; }
.search-form button { background: transparent; border: 0; color: var(--muted);
  cursor: pointer; padding: 0 .8em; }

/* Language switch */
.lang-switch { position: relative; }
.lang-toggle { display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: var(--bg-3); border: 1px solid var(--border); color: var(--text);
  border-radius: 999px; padding: .45em .8em; font-weight: 600; }
.lang-menu { position: absolute; right: 0; top: 120%; min-width: 170px; list-style: none;
  margin: 0; padding: 6px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow); opacity: 0; visibility: hidden;
  transform: translateY(-6px); transition: .15s; }
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu a { display: flex; gap: 8px; padding: .55em .7em; border-radius: 6px; }
.lang-menu a:hover, .lang-menu a[aria-current] { background: var(--bg-3); }
.nav-burger { display: none; background: none; border: 0; color: var(--text); font-size: 22px; cursor: pointer; }

/* ---- Hero ---- */
.hero { padding: 22px 0 8px; }
.hero-title { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; color: var(--text);
  letter-spacing: -0.02em; }
.hero-title .accent { color: var(--primary); }
.hero-sub { color: var(--muted); font-size: 16px; margin: 0; }

/* ---- Sections ---- */
.section { margin: 34px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2, .section-head h1 { font-size: 20px; }
.see-all { color: var(--primary-2); font-weight: 600; font-size: 14px; }
.listing-head h1 { font-size: 26px; }

/* ---- Video grid & cards ---- */
.video-grid { display: grid; gap: 20px 16px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.video-card { min-width: 0; position: relative; }

/* Favorite heart on cards */
.fav-btn { position: absolute; top: 8px; right: 8px; z-index: 3; width: 32px; height: 32px;
  display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(0,0,0,.55); color: rgba(255,255,255,.9); opacity: 0; transition: .15s; }
.video-card:hover .fav-btn, .fav-btn.active { opacity: 1; }
.fav-btn svg { fill: currentColor; }
.fav-btn:hover { background: rgba(0,0,0,.75); transform: scale(1.08); }
.fav-btn.active { color: var(--primary); background: rgba(0,0,0,.6); }
.cont-remove { font-size: 15px; font-weight: 700; line-height: 1; }
.cont-remove.active { color: #fff; }

/* Continue-watching progress bar on the thumbnail */
.cont-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.2); z-index: 2; }
.cont-progress > span { display: block; height: 100%; background: var(--primary); }

/* Header favorites icon */
.header-fav { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  color: var(--muted); flex: 0 0 auto; }
.header-fav svg { fill: currentColor; }
.header-fav:hover { color: var(--primary); background: var(--bg-3); }
.video-card .thumb { position: relative; display: block; aspect-ratio: 16/9;
  border-radius: var(--radius); overflow: hidden; background: var(--bg-3); }
.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.video-card:hover .thumb img { transform: scale(1.06); }
.thumb-fallback { display: grid; place-items: center; height: 100%; font-size: 42px;
  font-weight: 800; color: rgba(255,255,255,.85); text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.thumb-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; padding: 2px 7px; border-radius: 6px; font-size: 12px; font-weight: 700;
  background: rgba(0,0,0,.78); color: #fff; }
.badge-duration { right: 8px; bottom: 8px; }
.badge-cc { left: 8px; bottom: 8px; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.video-card-body { padding: 10px 2px; }
.video-card-title { font-size: 15px; margin: 0 0 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-card-meta { display: flex; justify-content: space-between; align-items: center;
  color: var(--muted); font-size: 13px; }
.sub-flags { display: inline-flex; gap: 3px; font-size: 14px; }

/* ---- Chips ---- */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: .5em 1em;
  background: var(--bg-3); border: 1px solid var(--border); border-radius: 999px;
  font-weight: 600; font-size: 14px; }
.chip:hover { border-color: var(--primary); color: var(--text); }
.chip-count { color: var(--muted); font-size: 12px; }
.chip-tag { color: var(--muted); }

/* ---- Category grid ---- */
.category-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.category-card { position: relative; aspect-ratio: 16/9; border-radius: var(--radius);
  overflow: hidden; background: var(--bg-3); display: grid; place-items: end start; }
.category-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.category-card-name { position: relative; padding: 12px; font-weight: 700; font-size: 17px; z-index: 1; }
.category-card-count { position: absolute; top: 10px; right: 10px; z-index: 1;
  background: rgba(0,0,0,.7); padding: 2px 8px; border-radius: 999px; font-size: 12px; }

/* =========================================================================
 * Watch page + player
 * ========================================================================= */
.watch { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 28px; align-items: start; }

/* Info card under the player */
.watch-info { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 18px 20px; margin-top: 16px; }
.watch-title { font-size: 22px; margin: 0 0 10px; line-height: 1.3; }
.watch-meta { color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; font-size: 14px; margin-bottom: 14px; }
.wm-item { display: inline-flex; align-items: center; }
.wm-item:not(:first-child)::before { content: "·"; margin: 0 10px; color: var(--border); }
.wm-cc { color: var(--primary-2); font-weight: 700; }
.watch-subs-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.wm-label { color: var(--muted); font-size: 12px; font-weight: 600; }
.sub-flags { display: flex; flex-wrap: wrap; gap: 6px; }
.sub-flag-btn { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 8px;
  background: var(--bg-3); border: 1px solid var(--border); font-size: 15px; cursor: pointer; }
.sub-flag-btn:hover { border-color: var(--primary); }
.sfb-code { font-size: 11px; font-weight: 700; color: var(--muted); }
.watch-taxonomy { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.watch-section { margin: 22px 0; padding-top: 18px; border-top: 1px solid var(--border); }
.watch-section h2 { font-size: 18px; }
.watch-story { background: linear-gradient(180deg, rgba(179,16,29,.08), transparent);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.prose { color: #cfcada; white-space: pre-wrap; }

/* Player styles live in player.css (shared with the admin preview). */

/* ---- Watch section head + read-in-language pills ---- */
.watch-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.read-langs { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.read-langs-label { color: var(--muted); font-size: 12px; font-weight: 600; }

/* Clear, obviously-clickable language pills (shared) */
.lang-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600;
  padding: 6px 12px; border-radius: 10px; background: var(--bg-3); border: 1px solid var(--border);
  color: var(--text); transition: .15s; line-height: 1; }
.lang-pill-flag { font-size: 15px; }
.lang-pill:hover { border-color: var(--primary); background: var(--surface); transform: translateY(-1px); }
.lang-pill.active { border-color: transparent; color: #fff; cursor: default;
  background: linear-gradient(135deg, var(--primary), var(--accent)); }
.lang-pill.active:hover { transform: none; }

/* ---- Reactions (per-language like/dislike) ---- */
.reactions-wrap { margin: 0; padding-bottom: 4px; }
.reactions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.react-btn { display: inline-flex; align-items: center; gap: 7px; padding: .5em 1.1em; border-radius: 999px;
  background: var(--bg-3); border: 1px solid var(--border); color: var(--text); cursor: pointer;
  font-weight: 600; font-size: 14px; transition: .15s; }
.react-btn:hover { border-color: var(--primary); }
.react-btn.active { background: linear-gradient(135deg, var(--primary), var(--accent)); border-color: transparent; color: #fff; }
.react-ico { font-size: 16px; }
.react-bar { flex: 1; min-width: 80px; max-width: 180px; height: 6px; background: rgba(255,255,255,.14); border-radius: 3px; overflow: hidden; }
.react-bar > span { display: block; height: 100%; background: linear-gradient(90deg, #23c17e, #6ee7a8); }
.react-ratio { font-weight: 700; font-size: 13px; }
.react-locale { padding: 3px 9px; border: 1px solid var(--border); border-radius: 999px; font-size: 12px;
  font-weight: 700; color: var(--muted); }

/* Add-to-favorites button on the watch page */
.watch-actions { margin: 2px 0 6px; }
.watch-fav { display: inline-flex; align-items: center; gap: 8px; padding: .55em 1.2em; border-radius: 999px;
  background: var(--bg-3); border: 1px solid var(--border); color: var(--text); cursor: pointer; font-weight: 600; font-size: 14px; transition: .15s; }
.watch-fav svg { fill: currentColor; }
.watch-fav:hover { border-color: var(--primary); }
.watch-fav.active { background: linear-gradient(135deg, var(--primary), var(--accent)); border-color: transparent; color: #fff; }
.watch-fav .wf-added { display: none; }
.watch-fav.active .wf-add { display: none; }
.watch-fav.active .wf-added { display: inline; }

/* "Loved worldwide" per-country ratio strip (display only) */
.reactions-world { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.rw-label { color: var(--muted); font-size: 12px; font-weight: 600; }
.rw-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--border); font-size: 13px; }
.rw-flag { font-size: 15px; }
.rw-pct { font-weight: 800; color: var(--primary-2); }

/* Related sidebar */
.watch-side .side-title { font-size: 16px; margin-bottom: 12px; }
.side-list { display: grid; gap: 14px; }
.side-list .video-grid { display: block; }

/* ---- Breadcrumb / sort / listings ---- */
.breadcrumb { color: var(--muted); font-size: 13px; margin: 4px 0 14px; display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary-2); }
.bc-sep { margin: 0 6px; opacity: .5; }
.bc-current { color: var(--text); font-weight: 600; max-width: 60ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sort-tabs { display: flex; gap: 6px; }
.sort-tabs a { padding: .4em .9em; border-radius: 999px; background: var(--bg-3);
  border: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--muted); }
.sort-tabs a.active { background: var(--primary); color: #fff; border-color: transparent; }
.listing-intro { color: var(--muted); max-width: 70ch; margin-bottom: 18px; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }
.search-form-lg { margin: 0 0 16px; width: min(560px, 100%); }
.search-form-lg input { flex: 1; }
.search-form-lg button { color: var(--text); font-weight: 600; }

/* Search mode tabs (content vs dialogue) */
.search-modes { display: flex; gap: 8px; margin-bottom: 22px; }
.search-mode { padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--bg-3); border: 1px solid var(--border); color: var(--muted); }
.search-mode:hover { color: #fff; border-color: var(--primary); }
.search-mode.active { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; border-color: transparent; }
.search-hint { margin: -8px 0 16px; }

/* Dialogue search results (snippet-based) */
.dialogue-results { display: flex; flex-direction: column; gap: 14px; }
.dialogue-result { display: grid; grid-template-columns: 200px 1fr; gap: 16px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.dialogue-thumb { position: relative; display: block; aspect-ratio: 16/9; background: var(--bg-3); }
.dialogue-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dialogue-body { padding: 12px 14px 12px 0; }
.dialogue-body h3 { font-size: 16px; margin-bottom: 6px; }
.dialogue-snippet { color: #cdc8d8; font-style: italic; margin: 4px 0 8px; line-height: 1.6; }
.dialogue-snippet mark { background: rgba(255,36,54,.28); color: #fff; padding: 0 2px; border-radius: 3px; }

/* Interactive transcript */
.transcript-body { display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.transcript-body.collapsed { max-height: 320px; -webkit-mask-image: linear-gradient(180deg,#000 78%,transparent);
  mask-image: linear-gradient(180deg,#000 78%,transparent); }
.tr-line { display: flex; gap: 12px; text-align: left; background: none; border: 0; cursor: pointer;
  color: #cbc6d6; padding: 6px 8px; border-radius: 6px; font-size: 14px; line-height: 1.5; width: 100%; }
.tr-line:hover { background: var(--bg-3); color: #fff; }
.tr-time { flex: 0 0 44px; color: var(--primary-2); font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13px; }
.transcript-toggle { margin-top: 12px; }

/* ---- Error / 404 page ---- */
.error-page { text-align: center; padding: 60px 20px 80px; max-width: 640px; margin: 0 auto; }
.error-code { font-size: clamp(72px, 16vw, 140px); font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text;
  background-clip: text; color: transparent; }
.error-title { font-size: 24px; margin: 6px 0 8px; }
.error-sub { color: var(--muted); margin-bottom: 24px; }
.error-search { margin: 0 auto 20px; }
.error-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.error-cats { justify-content: center; }

/* ---- Ad zones ---- */
.ad-zone { margin: 18px auto; text-align: center; max-width: 100%; }
.ad-zone-header { margin: 0; padding: 8px 0; background: var(--bg-2); border-bottom: 1px solid var(--border); }
.ad-zone-footer { padding: 14px 0; }
.ad-zone .ad-unit { display: inline-block; max-width: 100%; margin: 6px auto; }
.ad-zone .ad-unit + .ad-unit { margin-left: 12px; }
.ad-unit img, .ad-image img { max-width: 100%; height: auto; display: inline-block; }
.ad-card { position: relative; display: grid; place-items: center; background: var(--bg-2);
  border: 1px dashed var(--border); border-radius: var(--radius); overflow: hidden; min-height: 120px; }
.ad-card img { width: 100%; height: 100%; object-fit: cover; }
.ad-card::after { content: "Ad"; position: absolute; top: 6px; left: 6px; font-size: 10px; font-weight: 700;
  color: var(--muted); background: rgba(0,0,0,.5); padding: 1px 6px; border-radius: 4px; }

/* ---- FAQ (collection pages) ---- */
.faq-section { margin: 32px 0 10px; max-width: 900px; }
.faq-title { font-size: 20px; margin-bottom: 14px; }
.faq-item { background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px; margin-bottom: 10px; }
.faq-item summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 24px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 20px; color: var(--primary-2); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--muted); margin: 12px 0 0; line-height: 1.65; }

/* ---- Pagination ---- */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 34px 0 0; }
.pagination .page { min-width: 38px; height: 38px; display: grid; place-items: center;
  padding: 0 10px; border-radius: 8px; background: var(--bg-3); border: 1px solid var(--border);
  color: var(--text); font-weight: 600; }
.pagination .page.active { background: var(--primary); border-color: transparent; color: #fff; }
.pagination .page.disabled { opacity: .4; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--border);
  background: radial-gradient(1200px 300px at 15% 0%, rgba(179,16,29,.10), transparent 60%),
              radial-gradient(1000px 300px at 85% 0%, rgba(255,36,54,.08), transparent 60%),
              var(--bg-2);
  padding: 48px 0 0; margin-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.1fr; gap: 30px; }
.footer-logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; color: var(--text); }
.footer-logo .brand-mark { color: var(--primary); }
.footer-logo-img { height: 40px; width: auto; display: block; }
.footer-desc { margin: 10px 0 14px; max-width: 34ch; }
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.fbadge { font-size: 11px; font-weight: 800; letter-spacing: .5px; padding: 3px 9px; border-radius: 6px;
  background: var(--bg-3); border: 1px solid var(--border); color: var(--muted); }
.footer-col h4 { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 12px; }
.footer-col a { display: block; color: #cfcada; padding: 4px 0; font-size: 14px; }
.footer-col a:hover { color: var(--primary-2); }
.footer-disclaimer { padding: 24px 0 0; margin-top: 28px; border-top: 1px solid var(--border); }
.footer-bottom-bar { margin-top: 18px; padding: 16px 0; border-top: 1px solid var(--border); }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-mini-links a:hover { color: var(--primary-2); }

/* ---- Legal / static pages ---- */
.legal { max-width: 820px; padding-top: 20px; padding-bottom: 40px; }
.legal h1 { font-size: 30px; margin-bottom: 18px; }
.legal-prose { color: #cbc6d6; line-height: 1.75; white-space: normal; }
.legal-prose h2 { font-size: 19px; color: var(--text); margin: 26px 0 10px; }
.legal-prose p, .legal-prose li { margin: 0 0 10px; }
.legal-prose ul, .legal-prose ol { padding-left: 22px; }
.legal-prose a { color: var(--primary-2); }
.legal-prose a:hover { text-decoration: underline; }
.legal-note { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--border);
  color: var(--muted); font-size: 13px; }

/* ---- Age gate ---- */
.age-gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: rgba(5,5,8,.96); backdrop-filter: blur(6px); padding: 20px; }
/* Must beat the display:grid above so the [hidden] attribute actually hides it. */
.age-gate[hidden] { display: none; }
.age-gate-box { max-width: 440px; text-align: center; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.age-gate-box p { color: var(--muted); margin: 16px 0 22px; }
.age-gate-actions { display: flex; gap: 12px; justify-content: center; }

/* =========================================================================
 * Richer tube styling (v2)
 * ========================================================================= */

/* ---- Category bar under header ---- */
.cat-bar { background: var(--bg-2); border-bottom: 1px solid var(--border);
  position: sticky; top: 62px; z-index: 40; }
.cat-bar-inner { display: flex; gap: 8px; overflow-x: auto; padding: 10px 20px;
  scrollbar-width: none; scroll-behavior: smooth; }
.cat-bar-inner::-webkit-scrollbar { display: none; }
.cat-pill { flex: 0 0 auto; padding: .45em 1em; border-radius: 999px; font-size: 13px;
  font-weight: 600; color: var(--muted); background: var(--bg-3); border: 1px solid var(--border);
  white-space: nowrap; transition: .15s; }
.cat-pill:hover { color: #fff; border-color: var(--primary); }
.cat-pill.active { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; border-color: transparent; }
.cat-pill-all { color: var(--primary-2); }

/* ---- Section head accent ---- */
.section-head h2, .section-head h1 { position: relative; padding-left: 14px; }
.section-head h2::before, .section-head h1::before { content: ""; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%); width: 4px; height: 1.05em; border-radius: 3px;
  background: linear-gradient(180deg, var(--primary), var(--accent)); }

/* ---- Denser, richer grid + cards ---- */
.video-grid { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 22px 16px; }
.video-card .thumb { box-shadow: 0 2px 10px rgba(0,0,0,.25); transition: box-shadow .2s, transform .2s; }
.video-card:hover .thumb { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.45); }
.badge-hd { left: 8px; top: 8px; background: linear-gradient(135deg,#00c6ff,#0072ff); letter-spacing: .5px; }
.badge-cc { left: 8px; bottom: 8px; }
.rating-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.18); }
.rating-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), #ff9f45); }
.video-card-title a:hover { color: var(--primary-2); }

/* ---- SEO copy block ---- */
.seo-block { margin: 40px 0 10px; padding: 22px 24px; background: var(--bg-2);
  border: 1px solid var(--border); border-radius: var(--radius); position: relative; }
.seo-block .seo-block-inner { color: #c7c2d4; }
.seo-block .seo-block-inner h2 { font-size: 20px; color: var(--text); }
.seo-block .seo-block-inner h3 { font-size: 16px; color: var(--text); margin-top: 18px; }
.seo-block .seo-block-inner p { margin: 0 0 12px; max-width: 90ch; }
.seo-block .seo-block-inner strong { color: var(--text); }
.seo-block.collapsed .seo-block-inner { max-height: 5.2em; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.seo-block-toggle { margin-top: 12px; background: transparent; border: 1px solid var(--border);
  color: var(--primary-2); border-radius: 999px; padding: .45em 1.2em; font-weight: 600; cursor: pointer; }
.seo-block-toggle:hover { border-color: var(--primary); }

/* ---- Hero polish ---- */
.hero { padding: 30px 0 10px; }
.hero-sub { max-width: 62ch; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hero-chip { padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--bg-3); border: 1px solid var(--border); color: #cfcada; transition: .15s; }
.hero-chip:hover { border-color: var(--primary); color: #fff; transform: translateY(-1px); }
.hero-chip-all { color: var(--primary-2); }

/* ---- Responsive ---- */
@media (max-width: 1000px) {
  .watch { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .main-nav, .search-form { display: none; }
  .nav-burger { display: block; }
  /* Pin the language switch + burger to the right (not stuck to the logo). */
  .lang-switch { margin-left: auto; }
  .header-inner { gap: 10px; }
  body.nav-open .main-nav { display: flex; position: absolute; top: 62px; left: 0; right: 0;
    flex-direction: column; background: var(--surface); padding: 12px 20px; gap: 10px;
    border-bottom: 1px solid var(--border); z-index: 60; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px 10px; }
  .watch-info { padding: 14px; }
  .watch-title { font-size: 19px; }
}
