/* Style presets — variants switched by body classes from presets.php.
   Colours, radius and font come in as CSS variables (inline in <head>). */

body { font-family: var(--jav-font, "Segoe UI", "Noto Sans Thai", Tahoma, sans-serif); }

/* shape follows the preset radius */
.video-card, .actress-card, .info-panel, .content-box { border-radius: var(--jav-radius, 12px); }
.video-card .thumb { border-radius: 0; }
.cat-strip a, .tags a, .letter-nav a { border-radius: calc(var(--jav-radius, 12px) + 8px); }
.site-header .wp-block-search input.wp-block-search__input {
  border-radius: min(var(--jav-radius, 8px), 8px) 0 0 min(var(--jav-radius, 8px), 8px); }
.site-header .wp-block-search button.wp-block-search__button {
  border-radius: 0 min(var(--jav-radius, 8px), 8px) min(var(--jav-radius, 8px), 8px) 0; }
.section-title::before { border-radius: min(var(--jav-radius, 3px), 3px); }

/* header follows the page colour instead of a fixed dark tint */
.site-header { background: color-mix(in srgb, var(--bg) 92%, transparent); }

/* ---------- header variants ---------- */
.jav-header-center .site-header .topbar { justify-content: center; text-align: center; }
.jav-header-center .site-header .wp-block-site-title,
.jav-header-center .site-header .wp-block-site-logo { flex-basis: 100%;
  display: flex; justify-content: center; }
.jav-header-center .site-header .wp-block-site-title a { font-size: 28px; }
.jav-header-center .site-header .wp-block-search { margin-left: 0; }
.jav-header-center .cat-strip { justify-content: center; }

.jav-header-bar .site-header { background: var(--bg-elev);
  border-top: 3px solid var(--accent); }
.jav-header-bar .site-header .wp-block-navigation a { text-transform: uppercase;
  letter-spacing: .4px; font-size: 13px; }

/* flat (non-gradient) site title */
.jav-flat-title .site-title,
.jav-flat-title .wp-block-site-title a { background: none;
  -webkit-background-clip: initial; background-clip: initial; color: var(--accent); }

/* ---------- card variants ---------- */
.jav-card-overlay .video-card { border: 0; }
.jav-card-overlay :not(.video-layout-cards) > .video-card > a { display: block; position: relative; }
.jav-card-overlay .video-card .body { position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 3; padding: 34px 12px 10px;
  background: linear-gradient(to top, rgba(0,0,0,.88), rgba(0,0,0,.55) 60%, transparent); }
.jav-card-overlay .video-card .title { color: #fff; }
.jav-card-overlay .video-card .meta { color: rgba(255,255,255,.75); }
.jav-card-overlay .video-card .dur { top: 8px; bottom: auto; right: 44px; }
.jav-card-overlay .video-layout-cards .video-card .body { position: static;
  background: none; padding: 12px 14px; }
.jav-card-overlay .video-layout-cards .video-card .title { color: var(--text); }
.jav-card-overlay .video-layout-cards .video-card .meta { color: var(--muted); }

/* poster ratios — covers are wide (back + front), so tall crops keep the
   right-hand front cover in view */
.jav-ratio-cinema .video-card .thumb { aspect-ratio: 16/9; }
.jav-ratio-poster .video-card .thumb { aspect-ratio: 3/4; }
.jav-ratio-square .video-card .thumb { aspect-ratio: 1/1; }
.jav-ratio-poster .video-card .thumb img,
.jav-ratio-square .video-card .thumb img { object-position: right center; }
.jav-ratio-poster .video-layout-cards .video-card .thumb,
.jav-ratio-square .video-layout-cards .video-card .thumb { aspect-ratio: 16/10.5; }
.jav-ratio-poster .video-layout-cards .video-card .thumb img,
.jav-ratio-square .video-layout-cards .video-card .thumb img { object-position: center; }

/* ---------- light scheme ---------- */
.jav-scheme-light .site-header { box-shadow: 0 1px 0 var(--border); }
.jav-scheme-light .site-header .wp-block-navigation a:hover,
.jav-scheme-light .site-nav a:hover,
.jav-scheme-light .cat-strip a:hover,
.jav-scheme-light .tags a:hover,
.jav-scheme-light .letter-nav a:hover { color: var(--text); }
.jav-scheme-light .video-card:hover { border-color: var(--accent);
  box-shadow: 0 8px 22px rgba(20,30,60,.12); }
.jav-scheme-light .video-card .thumb { background: #e5e8ee; }
.jav-scheme-light .fav-btn { background: rgba(255,255,255,.85); color: #9aa3b5; }

/* condensed / serif presets: tighten big headings a little */
.jav-preset-noir .section-title { text-transform: uppercase; letter-spacing: .6px; }
.jav-preset-gold .section-title { font-weight: 600; letter-spacing: .3px; }

@media (max-width: 640px) {
  .jav-header-center .site-header .wp-block-site-title a { font-size: 22px; }
  .jav-card-overlay .video-card .body { padding: 26px 9px 8px; }
}

/* list cards: two per row on wide screens so the section stays compact */
@media (min-width: 960px) {
  .video-layout-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-layout-cards .video-card > a { grid-template-columns: minmax(160px, 42%) 1fr; }
}
