/*
Theme Name: Zokaj Theme Child
Template: zokaj-theme
Description: ZOKAJ series catalogue and episode guide, built for the existing ZOKAJ WordPress content model.
Author: ZOKAJ
Version: 1.1.13
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Text Domain: zokaj-theme-child
Tags: entertainment, catalogue, series, responsive
*/

:root {
  --zokaj-wine: #ad1f50;
  --zokaj-wine-dark: #86163b;
  --zokaj-ink: #25232a;
  --zokaj-muted: #77747a;
  --zokaj-line: #e6e3e5;
  --zokaj-soft: #f7f5f6;
  --zokaj-footer: #111113;
  --zokaj-container: 1148px;
  --zokaj-reading: 900px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body.zokaj-site {
  margin: 0;
  background: #fff;
  color: var(--zokaj-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.zokaj-site a { color: var(--zokaj-wine); text-decoration: none; }
body.zokaj-site a:hover { color: var(--zokaj-wine-dark); }
body.zokaj-site img { max-width: 100%; height: auto; }
body.zokaj-site button,
body.zokaj-site input,
body.zokaj-site select,
body.zokaj-site textarea { font: inherit; }
body.zokaj-site .site,
body.zokaj-site .site-content,
body.zokaj-site .content-area,
body.zokaj-site .site-main,
body.zokaj-site .inside-article { width: 100%; max-width: none; margin: 0; padding: 0; background: #fff; }
body.zokaj-site .grid-container { max-width: none; padding-left: 0; padding-right: 0; }
body.zokaj-site .entry-header,
body.zokaj-site .entry-summary,
body.zokaj-site .entry-content,
body.zokaj-site .entry-footer { margin: 0; padding: 0; }
body.zokaj-site .entry-title { margin: 0; }

.zokaj-container { width: min(var(--zokaj-container), calc(100% - 36px)); margin-inline: auto; }
.zokaj-brand-row { height: 75px; display: flex; align-items: center; justify-content: center; background: #fff; }
.zokaj-brand { display: inline-flex; align-items: center; justify-content: center; color: var(--zokaj-wine-dark) !important; font-size: 37px; font-weight: 900; letter-spacing: -2px; line-height: 1; text-transform: uppercase; }
.zokaj-brand:hover { color: var(--zokaj-wine) !important; }
.zokaj-brand img { display: block; width: auto; max-width: 260px; max-height: 70px; }
.zokaj-brand .custom-logo-link { display: inline-flex; align-items: center; }
.zokaj-brand .custom-logo { max-height: 58px; width: auto; }
.zokaj-nav-band { min-height: 56px; background: var(--zokaj-wine); color: #fff; }
.zokaj-nav-inner { display: flex; align-items: stretch; min-height: 56px; }
.zokaj-menu-toggle { display: none; align-self: center; border: 1px solid rgba(255,255,255,.4); border-radius: 3px; padding: 7px 12px; background: transparent; color: #fff; cursor: pointer; }
.zokaj-nav { flex: 1; min-width: 0; }
.zokaj-nav-list,
.zokaj-nav .menu { display: flex; flex-wrap: wrap; align-items: stretch; list-style: none; margin: 0; padding: 0; }
.zokaj-nav-list li,
.zokaj-nav .menu > li { display: flex; margin: 0; padding: 0; }
.zokaj-nav-list a,
.zokaj-nav .menu > li > a { display: flex; align-items: center; min-height: 56px; padding: 0 16px; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .25px; text-transform: uppercase; }
.zokaj-nav-list a:hover,
.zokaj-nav .menu > li > a:hover,
.zokaj-nav-list .current-menu-item > a,
.zokaj-nav .current-menu-item > a { background: var(--zokaj-wine-dark); color: #fff; }
.zokaj-header-search { display: flex; align-items: center; margin-left: auto; padding-left: 10px; }
.zokaj-header-search input[type="search"] { width: 150px; min-width: 0; border: 1px solid rgba(255,255,255,.35); border-radius: 2px 0 0 2px; padding: 7px 9px; background: rgba(255,255,255,.12); color: #fff; font-size: 12px; }
.zokaj-header-search input::placeholder { color: rgba(255,255,255,.78); }
.zokaj-header-search button { border: 0; border-radius: 0 2px 2px 0; padding: 8px 10px; background: var(--zokaj-wine-dark); color: #fff; font-size: 11px; font-weight: 700; cursor: pointer; }

.zokaj-main { min-height: 55vh; }
.zokaj-section { padding: 43px 0 58px; }
.zokaj-section-title { margin: 0 0 29px; color: var(--zokaj-wine); font-size: 29px; font-weight: 500; line-height: 1.2; text-align: center; text-transform: uppercase; }
.zokaj-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 30px; }
.zokaj-video-card { min-width: 0; text-align: center; }
.zokaj-card-image-link { display: block; position: relative; overflow: hidden; aspect-ratio: 2 / 3; background: #f0edf0; }
.zokaj-card-image { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.zokaj-card-image-link:hover .zokaj-card-image { transform: scale(1.025); }
.zokaj-card-placeholder { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; padding: 20px; background: linear-gradient(145deg, #f2e8ed, #d9cbd1); color: var(--zokaj-wine-dark); font-size: 18px; font-weight: 700; }
.zokaj-type-ribbon { position: absolute; right: 0; bottom: 0; left: 0; display: block; padding: 12px 8px 9px; background: linear-gradient(transparent, rgba(0,0,0,.82)); color: #fff; font-size: clamp(20px, 2.1vw, 34px); font-weight: 800; line-height: 1.05; letter-spacing: 1px; text-align: center; text-shadow: 0 1px 4px rgba(0,0,0,.45); }
.zokaj-card-title { margin: 6px 0 0; color: #19171a; font-size: 17px; font-weight: 600; line-height: 1.35; }
.zokaj-card-title a { color: inherit !important; }
.zokaj-card-title a:hover { color: var(--zokaj-wine) !important; }
.zokaj-card-episode { margin: 3px 0 0; color: #858087; font-size: 13px; line-height: 1.4; }
.zokaj-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 38px; }
.zokaj-pagination .page-numbers { display: inline-flex; min-width: 36px; height: 36px; align-items: center; justify-content: center; border: 1px solid var(--zokaj-line); padding: 0 10px; color: var(--zokaj-wine); }
.zokaj-pagination .current,
.zokaj-pagination a:hover { background: var(--zokaj-wine); color: #fff; }

.zokaj-content-section { padding: 30px 0 62px; }
.zokaj-breadcrumbs { margin: 0 0 17px; color: #8d858b; font-size: 12px; }
.zokaj-breadcrumbs a { color: var(--zokaj-wine); }
.zokaj-page-title { margin: 0 0 18px; color: var(--zokaj-wine); font-size: 27px; font-weight: 500; line-height: 1.25; text-align: center; text-transform: uppercase; }
.zokaj-intro-box { margin: 0 auto 17px; border-left: 3px solid var(--zokaj-wine); padding: 14px 18px; background: #faf8f9; color: #39343a; font-size: 13px; line-height: 1.7; }
.zokaj-intro-box p:last-child { margin-bottom: 0; }
.zokaj-info-banner { margin: 15px 0 18px; padding: 9px 12px; background: #fff8dd; color: #5b4d1d; font-size: 12px; text-align: center; }
.zokaj-quick-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin: 16px 0 24px; }
.zokaj-quick-links a { display: inline-block; border-radius: 2px; padding: 6px 10px; background: #3f91d0; color: #fff; font-size: 11px; font-weight: 700; line-height: 1.2; }
.zokaj-quick-links a:nth-child(3n) { background: #e5a34d; }
.zokaj-quick-links a:hover { background: var(--zokaj-wine); color: #fff; }
.zokaj-detail-section { margin: 0 0 30px; }
.zokaj-detail-heading { margin: 0 0 13px; color: var(--zokaj-wine); font-size: 19px; font-weight: 500; line-height: 1.3; text-align: center; text-transform: uppercase; }
.zokaj-overview-grid { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 24px; align-items: start; }
.zokaj-overview-poster-wrap { border: 1px solid var(--zokaj-line); padding: 4px; background: #fff; }
.zokaj-overview-poster { display: block; width: 100%; height: auto; }
.zokaj-info-table,
.zokaj-episode-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.zokaj-info-table th,
.zokaj-info-table td { border-bottom: 1px solid #eee9ec; padding: 6px 9px; text-align: left; vertical-align: top; }
.zokaj-info-table th { width: 34%; color: #6e656c; font-weight: 600; }
.zokaj-info-table td { color: #333036; overflow-wrap: anywhere; }
.zokaj-media-frame { position: relative; overflow: hidden; width: 100%; aspect-ratio: 16 / 9; background: #111; }
.zokaj-media-frame iframe,
.zokaj-media-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.zokaj-media-unavailable { display: flex; min-height: 150px; align-items: center; justify-content: center; padding: 22px; background: #f7f5f6; color: #777078; font-size: 13px; text-align: center; }
.zokaj-entry-content { color: #343036; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.zokaj-entry-content p { margin: 0 0 1.15em; }
.zokaj-entry-content h2,
.zokaj-entry-content h3,
.zokaj-entry-content h4 { margin: 25px 0 10px; color: var(--zokaj-wine); font-size: 18px; font-weight: 500; line-height: 1.35; text-transform: uppercase; }
.zokaj-entry-content img { display: block; max-width: 100%; height: auto; margin: 16px auto; }
.zokaj-entry-content .aligncenter { margin-inline: auto; }
.zokaj-entry-content blockquote { margin: 18px 0; border-left: 3px solid var(--zokaj-wine); padding: 10px 15px; background: #faf8f9; }
.zokaj-entry-content table { width: 100%; border-collapse: collapse; }
.zokaj-entry-content td,
.zokaj-entry-content th { border: 1px solid var(--zokaj-line); padding: 7px; }
.zokaj-table-wrap { overflow-x: auto; border: 1px solid #eee9ec; }
.zokaj-episode-table th,
.zokaj-episode-table td { border-bottom: 1px solid #e8e3e6; padding: 8px 10px; text-align: left; vertical-align: top; }
.zokaj-episode-table th { background: #faf7f9; color: var(--zokaj-wine); font-weight: 700; white-space: nowrap; }
.zokaj-episode-table td:first-child { width: 55px; color: var(--zokaj-wine); white-space: nowrap; }
.zokaj-episode-table tr:last-child td { border-bottom: 0; }
.zokaj-episode-title { min-width: 240px; }
.zokaj-related-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--zokaj-line); }
.zokaj-related-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; align-items: start; border-bottom: 1px solid var(--zokaj-line); padding: 8px 4px; font-size: 13px; }
.zokaj-related-number { color: var(--zokaj-wine); }
.zokaj-related-date { color: var(--zokaj-muted); font-size: 12px; }
.zokaj-download-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.zokaj-download-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--zokaj-line); padding: 10px 12px; font-size: 12px; }
.zokaj-download-item a { font-weight: 700; }
.zokaj-section-note { color: var(--zokaj-muted); font-size: 12px; text-align: center; }
.zokaj-search-title { margin: 0 0 26px; color: var(--zokaj-wine); font-size: 25px; font-weight: 500; text-align: center; text-transform: uppercase; }
.zokaj-page-content { max-width: var(--zokaj-reading); margin: 0 auto; padding: 12px 0 45px; }
.zokaj-page-content h1,
.zokaj-page-content h2,
.zokaj-page-content h3 { color: var(--zokaj-wine); }
.zokaj-page-content img { max-width: 100%; height: auto; }
.zokaj-comments { margin-top: 34px; border-top: 4px solid var(--zokaj-wine); padding-top: 18px; }
.zokaj-comments .comments-title,
.zokaj-comments h3 { color: var(--zokaj-wine); font-size: 18px; font-weight: 500; text-transform: uppercase; }
.zokaj-comments .comment-list { padding-left: 20px; }
.zokaj-comments .comment-body { margin: 12px 0; border-bottom: 1px solid var(--zokaj-line); padding-bottom: 12px; }
.zokaj-comments input[type="text"],
.zokaj-comments input[type="email"],
.zokaj-comments input[type="url"],
.zokaj-comments textarea { width: 100%; border: 1px solid #ddd5db; padding: 9px 10px; }
.zokaj-comments input[type="submit"] { border: 0; border-radius: 2px; padding: 10px 18px; background: var(--zokaj-wine); color: #fff; cursor: pointer; }
.zokaj-comments input[type="submit"]:hover { background: var(--zokaj-wine-dark); }
.zokaj-no-results { padding: 25px; background: var(--zokaj-soft); color: #625b61; text-align: center; }

.zokaj-footer { background: var(--zokaj-footer); color: #e6e3e6; }
.zokaj-footer-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 48px; padding: 36px 0 30px; }
.zokaj-footer-title { margin: 0 0 10px; color: #fff; font-size: 14px; font-weight: 700; text-transform: uppercase; }
.zokaj-footer p { margin: 0 0 12px; color: #c2bdc2; font-size: 12px; line-height: 1.8; }
.zokaj-footer-links { display: flex; flex-wrap: wrap; gap: 7px; }
.zokaj-footer-links a { border: 1px solid #403b40; padding: 4px 8px; color: #d9d3d8; font-size: 11px; }
.zokaj-footer-links a:hover { border-color: var(--zokaj-wine); color: #fff; }
.zokaj-footer-bottom { border-top: 1px solid #302d30; padding: 13px 0; color: #9f989f; font-size: 11px; text-align: center; }
.zokaj-footer-bottom a { color: #ddd5dc; }
.zokaj-footer .widget { margin: 0; }
.zokaj-footer .widget-title,
.zokaj-footer .zokaj-footer-title { margin: 0 0 10px; color: #fff; font-size: 14px; font-weight: 700; text-transform: uppercase; }
.zokaj-footer .widget p { margin: 0 0 12px; color: #c2bdc2; font-size: 12px; line-height: 1.8; }
.zokaj-footer .widget a { color: #d9d3d8; }
.zokaj-footer .widget a:hover { color: #fff; }
.zokaj-footer-bar-widget { margin: 0 !important; }
.zokaj-footer-bar-widget p { margin: 0 !important; }
.zokaj-footer-bottom .widget ul { margin: 0; padding: 0; list-style: none; }
.zokaj-footer-bottom .widget li { display: inline-block; margin: 0 8px; }
.zokaj-back-top { position: fixed; right: 14px; bottom: 14px; z-index: 10; display: flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; background: var(--zokaj-wine); color: #fff !important; box-shadow: 0 2px 8px rgba(0,0,0,.2); }

@media (max-width: 900px) {
  .zokaj-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 20px; }
  .zokaj-header-search input[type="search"] { width: 120px; }
  .zokaj-footer-main { gap: 28px; }
}
@media (max-width: 640px) {
  .zokaj-container { width: calc(100% - 24px); }
  .zokaj-brand-row { height: 64px; }
  .zokaj-brand { font-size: 31px; }
  .zokaj-brand img,
  .zokaj-brand .custom-logo { max-width: 210px; max-height: 48px; }
  .zokaj-nav-inner { position: relative; flex-wrap: wrap; padding: 0 12px; }
  .zokaj-menu-toggle { display: inline-flex; margin: 8px 0; }
  .zokaj-nav { display: none; flex: 0 0 100%; order: 3; }
  .zokaj-nav.is-open { display: block; }
  .zokaj-nav-list,
  .zokaj-nav .menu { display: block; }
  .zokaj-nav-list li,
  .zokaj-nav .menu > li { display: block; }
  .zokaj-nav-list a,
  .zokaj-nav .menu > li > a { min-height: 42px; padding: 0 12px; border-top: 1px solid rgba(255,255,255,.12); }
  .zokaj-header-search { margin-left: auto; padding-left: 8px; }
  .zokaj-header-search input[type="search"] { width: min(34vw, 150px); }
  .zokaj-section { padding: 31px 0 42px; }
  .zokaj-section-title { margin-bottom: 22px; font-size: 24px; }
  .zokaj-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 13px; }
  .zokaj-card-title { font-size: 14px; }
  .zokaj-card-episode { font-size: 11px; }
  .zokaj-type-ribbon { font-size: clamp(18px, 5.5vw, 28px); }
  .zokaj-content-section { padding: 24px 0 42px; }
  .zokaj-page-title { font-size: 22px; }
  .zokaj-overview-grid { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
  .zokaj-info-table { font-size: 11px; }
  .zokaj-info-table th,
  .zokaj-info-table td { padding: 5px 6px; }
  .zokaj-info-table th { width: 40%; }
  .zokaj-detail-heading { font-size: 17px; }
  .zokaj-episode-table { font-size: 11px; }
  .zokaj-episode-table th,
  .zokaj-episode-table td { padding: 7px; }
  .zokaj-episode-title { min-width: 180px; }
  .zokaj-download-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zokaj-footer-main { grid-template-columns: 1fr; gap: 20px; padding: 28px 0 22px; }
  .zokaj-related-list li { grid-template-columns: 22px minmax(0, 1fr); }
  .zokaj-related-date { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.zokaj-overview-poster-wrap { position: relative; overflow: hidden; }
.zokaj-overview-poster-wrap .zokaj-type-ribbon { font-size: 22px; }

/* -------------------------------------------------------------
   ZOKAJ video detail and Abyss player — v1.0.1
   ------------------------------------------------------------- */
.zokaj-video-page-main { overflow: clip; }
.zokaj-video-page-main .zokaj-breadcrumbs { padding-top: 20px; margin-bottom: 15px; }
.zokaj-detail-hero { position: relative; isolation: isolate; overflow: hidden; background: #171116; color: #fff; }
.zokaj-detail-hero::before { content: ""; position: absolute; z-index: -2; inset: -28px; background: var(--zokaj-backdrop, none) center 35% / cover no-repeat; filter: blur(18px); opacity: .34; transform: scale(1.05); }
.zokaj-detail-hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(16,12,16,.97) 0%, rgba(25,15,22,.92) 48%, rgba(29,13,22,.80) 100%); }
.zokaj-detail-hero-inner { display: grid; grid-template-columns: 205px minmax(0,1fr); gap: 34px; align-items: center; padding-top: 36px; padding-bottom: 38px; }
.zokaj-detail-hero-poster { overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 9px; background: #29232a; box-shadow: 0 18px 44px rgba(0,0,0,.35); aspect-ratio: 2/3; }
.zokaj-detail-hero-poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.zokaj-detail-poster-placeholder { display: flex; width: 100%; height: 100%; min-height: 280px; align-items: center; justify-content: center; padding: 20px; color: #fff; font-weight: 800; text-align: center; background: linear-gradient(145deg,#512139,#19141a); }
.zokaj-detail-hero-copy { min-width: 0; max-width: 800px; padding: 8px 0; }
.zokaj-detail-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 11px; color: #e5bdcd; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.zokaj-detail-kicker span { display: inline-flex; align-items: center; min-height: 25px; border: 1px solid rgba(255,255,255,.2); border-radius: 3px; padding: 3px 9px; }
.zokaj-detail-title { margin: 0 0 12px; color: #fff; font-size: clamp(28px,4vw,45px); font-weight: 800; line-height: 1.12; letter-spacing: -.025em; text-align: left; text-transform: none; }
.zokaj-detail-taxonomies { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 15px; }
.zokaj-detail-taxonomies a { border: 1px solid rgba(255,255,255,.2); border-radius: 50px; padding: 4px 10px; color: #f4dce5; font-size: 11px; }
.zokaj-detail-taxonomies a:hover { border-color: var(--zokaj-wine); background: var(--zokaj-wine); color: #fff; }
.zokaj-detail-summary { max-width: 720px; margin: 0 0 18px; color: #e2dce1; font-size: 14px; line-height: 1.75; }
.zokaj-detail-facts { display: flex; flex-wrap: wrap; gap: 8px 17px; margin: 0 0 22px; }
.zokaj-detail-facts span { color: #f1e9ee; font-size: 12px; }
.zokaj-detail-facts strong { margin-right: 4px; color: #bf9aaa; font-weight: 700; }
.zokaj-detail-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.zokaj-button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 5px; padding: 9px 18px; font-size: 12px; font-weight: 800; letter-spacing: .02em; transition: background .18s ease,border-color .18s ease,transform .18s ease; }
.zokaj-button:hover { transform: translateY(-1px); }
.zokaj-button-primary { background: var(--zokaj-wine); color: #fff !important; }
.zokaj-button-primary:hover { background: #c22a5d; color: #fff !important; }
.zokaj-button-ghost { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.05); color: #fff !important; }
.zokaj-button-ghost:hover { border-color: #fff; background: rgba(255,255,255,.12); color: #fff !important; }
.zokaj-video-content { padding-top: 30px; }
.zokaj-section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 14px; }
.zokaj-section-heading-row .zokaj-detail-heading { margin: 2px 0 0; text-align: left; }
.zokaj-section-eyebrow { display: block; color: #9c7484; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.zokaj-player-provider { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e6dce1; border-radius: 40px; padding: 5px 10px; color: #77616c; font-size: 11px; font-weight: 700; white-space: nowrap; }
.zokaj-player-provider::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #21a36a; box-shadow: 0 0 0 3px rgba(33,163,106,.12); }
.zokaj-watch-section { margin: 0 0 32px; }
.zokaj-watch-player { overflow: hidden; border: 1px solid #2d2730; border-radius: 10px; background: #151217; box-shadow: 0 12px 32px rgba(28,17,24,.12); }
.zokaj-player-frame { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; background: #050505; }
.zokaj-player-frame iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; background: #050505; }
.zokaj-player-toolbar { display: flex; min-height: 49px; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255,255,255,.08); padding: 8px 14px; color: #fff; }
.zokaj-player-current { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 800; }
.zokaj-player-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #d32b63; box-shadow: 0 0 0 4px rgba(211,43,99,.15); }
.zokaj-player-step-controls { display: flex; align-items: center; gap: 9px; color: #c8bec6; font-size: 11px; }
.zokaj-player-step-controls button { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border: 1px solid #51434e; border-radius: 4px; background: #29212a; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.zokaj-player-step-controls button:hover:not(:disabled) { border-color: #c14a76; background: var(--zokaj-wine); }
.zokaj-player-step-controls button:disabled { opacity: .32; cursor: not-allowed; }
.zokaj-episode-picker { border-top: 1px solid rgba(255,255,255,.08); padding: 14px; }
.zokaj-episode-picker-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.zokaj-episode-picker-heading h3 { margin: 0; color: #fff; font-size: 12px; font-weight: 800; }
.zokaj-episode-picker-heading span { color: #a99da6; font-size: 11px; }
.zokaj-episode-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.zokaj-episode-button { display: inline-flex; min-width: 78px; min-height: 51px; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border: 1px solid #493b46; border-radius: 5px; padding: 6px 10px; background: #211b22; color: #ded5dc; cursor: pointer; transition: border-color .18s ease,background .18s ease,color .18s ease; }
.zokaj-episode-button:hover { border-color: #a94b70; color: #fff; }
.zokaj-episode-button.is-active { border-color: var(--zokaj-wine); background: var(--zokaj-wine); color: #fff; box-shadow: 0 0 0 1px rgba(173,31,80,.18); }
.zokaj-episode-button-number { font-size: 14px; font-weight: 900; line-height: 1.1; }
.zokaj-episode-button-text { color: inherit; font-size: 9px; opacity: .8; text-transform: uppercase; }
.zokaj-watch-unavailable { margin: 0 0 30px; border: 1px dashed #ded4da; border-radius: 8px; padding: 22px; background: #faf8f9; }
.zokaj-watch-unavailable .zokaj-detail-heading { text-align: left; }
.zokaj-watch-unavailable p { margin: 7px 0 0; color: #726870; font-size: 13px; }
.zokaj-quick-links { justify-content: flex-start; margin: 0 0 28px; padding-bottom: 15px; border-bottom: 1px solid var(--zokaj-line); }
.zokaj-quick-links a { border-radius: 4px; background: #f3edf0; color: #74304b; }
.zokaj-quick-links a:nth-child(3n) { background: #f3edf0; }
.zokaj-quick-links a:hover { background: var(--zokaj-wine); color: #fff; }
.zokaj-video-content .zokaj-detail-section { margin-bottom: 38px; }
.zokaj-video-content .zokaj-intro-box { margin-bottom: 20px; border-radius: 5px; }
.zokaj-video-content .zokaj-detail-heading { text-transform: none; font-size: 21px; font-weight: 800; }
.zokaj-video-content .zokaj-info-table { font-size: 13px; }
.zokaj-video-content .zokaj-info-table th,
.zokaj-video-content .zokaj-info-table td { padding: 9px 11px; }
.zokaj-video-content .zokaj-overview-poster-wrap { max-width: 230px; border: 0; border-radius: 8px; padding: 0; background: transparent; }
.zokaj-video-content .zokaj-overview-poster { border-radius: 7px; }
.zokaj-video-content .zokaj-type-ribbon { border-radius: 0 0 7px 7px; font-size: 19px; }
.zokaj-video-content .zokaj-entry-content { font-size: 14px; }
.zokaj-video-content .zokaj-related-list { max-width: 900px; }

@media (max-width: 760px) {
  .zokaj-detail-hero-inner { grid-template-columns: 128px minmax(0,1fr); gap: 18px; padding-top: 25px; padding-bottom: 27px; }
  .zokaj-detail-hero::after { background: linear-gradient(90deg,rgba(16,12,16,.96),rgba(24,15,22,.91)); }
  .zokaj-detail-title { font-size: clamp(22px,5vw,31px); }
  .zokaj-detail-summary { font-size: 12px; line-height: 1.55; }
  .zokaj-detail-facts { gap: 5px 11px; margin-bottom: 15px; }
  .zokaj-detail-facts span { font-size: 10px; }
  .zokaj-button { min-height: 37px; padding: 8px 12px; font-size: 11px; }
  .zokaj-video-content .zokaj-overview-grid { grid-template-columns: 125px minmax(0,1fr); gap: 14px; }
  .zokaj-video-content .zokaj-overview-poster-wrap { max-width: 125px; }
}
@media (max-width: 480px) {
  .zokaj-detail-hero-inner { grid-template-columns: 96px minmax(0,1fr); gap: 13px; padding-top: 20px; padding-bottom: 22px; }
  .zokaj-detail-kicker { gap: 5px; margin-bottom: 7px; font-size: 9px; }
  .zokaj-detail-kicker span { min-height: 21px; padding: 2px 6px; }
  .zokaj-detail-title { margin-bottom: 8px; font-size: 21px; }
  .zokaj-detail-taxonomies { gap: 4px; margin-bottom: 9px; }
  .zokaj-detail-taxonomies a { padding: 3px 7px; font-size: 9px; }
  .zokaj-detail-summary { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; margin-bottom: 10px; font-size: 11px; }
  .zokaj-detail-facts { gap: 4px 8px; margin-bottom: 11px; }
  .zokaj-detail-facts span { font-size: 9px; }
  .zokaj-detail-hero-actions { gap: 6px; }
  .zokaj-button { min-height: 33px; padding: 6px 9px; font-size: 10px; }
  .zokaj-video-content { padding-top: 22px; }
  .zokaj-player-toolbar { min-height: 42px; padding: 6px 9px; }
  .zokaj-player-current { font-size: 11px; }
  .zokaj-episode-picker { padding: 10px; }
  .zokaj-episode-buttons { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; }
  .zokaj-episode-button { min-width: 0; min-height: 45px; padding: 5px 4px; }
  .zokaj-episode-button-number { font-size: 13px; }
  .zokaj-episode-button-text { font-size: 8px; }
  .zokaj-video-content .zokaj-overview-grid { grid-template-columns: 95px minmax(0,1fr); gap: 10px; }
  .zokaj-video-content .zokaj-overview-poster-wrap { max-width: 95px; }
  .zokaj-video-content .zokaj-info-table { font-size: 10px; }
  .zokaj-video-content .zokaj-info-table th,
  .zokaj-video-content .zokaj-info-table td { padding: 5px 6px; }
  .zokaj-video-content .zokaj-detail-heading { font-size: 18px; }
}

/* -------------------------------------------------------------
   ZOKAJ classic video detail layout — v1.0.3
   Recreates the familiar centered detail-page structure from the
   supplied Archive.org reference while retaining the Abyss player.
   ------------------------------------------------------------- */
.zokaj-video-page-classic { overflow: visible; }
.zokaj-video-detail-shell {
  width: min(780px, calc(100% - 32px));
  margin: 15px auto 54px;
  color: #302c30;
}
.zokaj-video-page-classic .zokaj-classic-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0 0 13px;
  padding: 0;
  color: #888087;
  font-size: 10px;
  line-height: 1.5;
}
.zokaj-classic-video-header { margin: 0 0 14px; }
.zokaj-classic-video-title {
  margin: 0 0 10px;
  color: var(--zokaj-wine);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}
.zokaj-classic-intro {
  margin: 0 0 13px;
  border-left: 3px solid var(--zokaj-wine);
  padding: 2px 12px 2px 13px;
  color: #353136;
  font-size: 12px;
  line-height: 1.55;
}
.zokaj-classic-intro blockquote {
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}
.zokaj-classic-intro p { margin: 0 0 7px; }
.zokaj-classic-intro p:last-child { margin-bottom: 0; }
.zokaj-classic-intro-source { margin: 5px 0 0; font-size: 10px; text-align: right; }
.zokaj-classic-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 12px; }
.zokaj-classic-tags a,
.zokaj-classic-type-tag {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  border-radius: 2px;
  padding: 4px 8px;
  background: #3f91d0;
  color: #fff !important;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}
.zokaj-classic-tags a:nth-child(2n) { background: #2879b6; }
.zokaj-classic-tags a:nth-child(3n) { background: #e2a04a; }
.zokaj-classic-type-tag { background: var(--zokaj-wine); }
.zokaj-classic-submenu {
  justify-content: flex-start;
  gap: 5px;
  margin: 0 0 22px;
  padding: 0 0 2px;
}
.zokaj-classic-submenu a {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  border-radius: 2px;
  padding: 5px 9px;
  background: #3f91d0;
  color: #fff !important;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}
.zokaj-classic-submenu a:nth-child(2n) { background: #2879b6; }
.zokaj-classic-submenu a:nth-child(3n) { background: #e5a34d; }
.zokaj-classic-submenu a.zokaj-watch-link { background: var(--zokaj-wine); }
.zokaj-classic-submenu a:hover { filter: brightness(.92); }
.zokaj-video-page-classic .zokaj-classic-section { margin: 0 0 27px; }
.zokaj-video-page-classic .zokaj-detail-heading {
  margin: 0 0 11px;
  color: var(--zokaj-wine);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
}
.zokaj-classic-overview-grid {
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 15px;
  align-items: start;
}
.zokaj-classic-poster-wrap {
  position: relative;
  max-width: 210px;
  overflow: hidden;
  border: 1px solid #d9d4d7;
  border-radius: 0;
  padding: 3px;
  background: #fff;
}
.zokaj-classic-poster-wrap .zokaj-overview-poster { display: block; width: 100%; height: auto; border-radius: 0; }
.zokaj-classic-poster-wrap .zokaj-type-ribbon { font-size: 21px; }
.zokaj-classic-info-table { width: 100%; border-collapse: collapse; font-size: 11px; line-height: 1.45; }
.zokaj-classic-info-table th,
.zokaj-classic-info-table td { border-bottom: 1px solid #e9e5e7; padding: 5px 7px; text-align: left; vertical-align: top; }
.zokaj-classic-info-table th { width: 37%; color: #595159; font-weight: 700; white-space: normal; }
.zokaj-classic-info-table td { color: #383239; overflow-wrap: anywhere; }
.zokaj-classic-plot { font-size: 12px; line-height: 1.65; }
.zokaj-classic-plot p { margin: 0 0 10px; }
.zokaj-classic-plot h2,
.zokaj-classic-plot h3,
.zokaj-classic-plot h4 { font-size: 15px; }
.zokaj-classic-table-wrap { border: 0; overflow-x: auto; }
.zokaj-classic-episode-table { width: 100%; min-width: 430px; border-collapse: collapse; font-size: 10px; line-height: 1.4; }
.zokaj-classic-episode-table th,
.zokaj-classic-episode-table td { border-bottom: 1px solid #e6e1e4; padding: 6px 7px; text-align: left; vertical-align: top; }
.zokaj-classic-episode-table thead th { background: #faf8f9; color: #4c444a; font-weight: 700; white-space: nowrap; }
.zokaj-classic-episode-table tbody th { width: 34%; background: transparent; color: var(--zokaj-wine); font-weight: 600; }
.zokaj-classic-episode-table tbody td:nth-child(2) { width: 22%; white-space: nowrap; color: #6f6870; }
.zokaj-classic-episode-table tbody td:last-child { color: #39343a; }
.zokaj-classic-episode-table a { color: var(--zokaj-wine); }
.zokaj-episode-group { display: block; margin-top: 3px; color: #888087; font-size: 9px; }
.zokaj-classic-watch-section { margin-top: 30px !important; }
.zokaj-classic-watch-section > .zokaj-detail-heading { margin-bottom: 12px; }
.zokaj-classic-watch-player { overflow: hidden; border: 0; border-radius: 0; background: #050505; box-shadow: none; }
.zokaj-classic-player-frame { width: 100%; aspect-ratio: 16 / 9; background: #050505; }
.zokaj-classic-player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.zokaj-classic-player-controls {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 8px;
  background: #f5f2f4;
  color: #554b52;
  font-size: 10px;
  font-weight: 700;
}
.zokaj-classic-step-controls { gap: 7px; color: #554b52; }
.zokaj-classic-step-controls button {
  width: 23px;
  height: 23px;
  border: 1px solid #d9cdd4;
  border-radius: 2px;
  background: #fff;
  color: var(--zokaj-wine);
  font-size: 17px;
}
.zokaj-classic-step-controls button:hover:not(:disabled) { border-color: var(--zokaj-wine); background: var(--zokaj-wine); color: #fff; }
.zokaj-classic-step-controls button:disabled { opacity: .35; }
.zokaj-classic-episode-picker { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 0 0; background: #fff; }
.zokaj-classic-episode-button {
  display: inline-flex;
  min-width: 30px;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e4dce1;
  border-radius: 2px;
  padding: 4px 7px;
  background: #fff;
  color: #655b62;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.zokaj-classic-episode-button:hover,
.zokaj-classic-episode-button.is-active { border-color: var(--zokaj-wine); background: var(--zokaj-wine); color: #fff; }
.zokaj-classic-watch-unavailable { border: 1px dashed #ded4da; border-radius: 0; padding: 18px; background: #faf8f9; color: #736b71; font-size: 12px; text-align: center; }
.zokaj-classic-related-group { margin: 0 0 18px; }
.zokaj-classic-related-list { max-width: 100%; }
.zokaj-classic-related-list li { grid-template-columns: 22px minmax(0,1fr) auto; gap: 6px; padding: 6px 3px; font-size: 11px; }
.zokaj-classic-related-list .zokaj-related-date { font-size: 10px; }
.zokaj-classic-comments { margin-top: 28px; border-top-width: 3px; padding-top: 15px; }

@media (max-width: 650px) {
  .zokaj-video-detail-shell { width: min(100% - 22px, 780px); margin-top: 12px; }
  .zokaj-classic-video-title { font-size: 21px; }
  .zokaj-classic-intro { padding-left: 10px; font-size: 11px; }
  .zokaj-classic-overview-grid { grid-template-columns: 125px minmax(0,1fr); gap: 11px; }
  .zokaj-classic-poster-wrap { max-width: 125px; }
  .zokaj-classic-poster-wrap .zokaj-type-ribbon { font-size: 15px; }
  .zokaj-classic-info-table { font-size: 10px; }
  .zokaj-classic-info-table th,
  .zokaj-classic-info-table td { padding: 4px 5px; }
  .zokaj-video-page-classic .zokaj-detail-heading { font-size: 16px; }
  .zokaj-classic-episode-table { min-width: 390px; }
}
@media (max-width: 420px) {
  .zokaj-classic-overview-grid { grid-template-columns: 100px minmax(0,1fr); gap: 9px; }
  .zokaj-classic-poster-wrap { max-width: 100px; }
  .zokaj-classic-info-table { font-size: 9px; }
  .zokaj-classic-info-table th,
  .zokaj-classic-info-table td { padding: 3px 4px; }
  .zokaj-classic-tags a,
  .zokaj-classic-type-tag,
  .zokaj-classic-submenu a { min-height: 22px; padding: 4px 6px; font-size: 9px; }
}



/* -------------------------------------------------------------
   Legacy ZOKAJ detail-page fidelity — v1.0.3
   Adapted from the supplied Family Child style.css. These rules are
   deliberately scoped to the single-video template, not site-wide.
   ------------------------------------------------------------- */
:root {
  --zokaj-classic-wine: #b2204d;
}

body.zokaj-video-page.zokaj-site .zokaj-video-detail-shell {
  font-family: Verdana, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #222;
}

body.zokaj-video-page.zokaj-site .zokaj-video-detail-shell a {
  color: var(--zokaj-classic-wine);
}
body.zokaj-video-page.zokaj-site .zokaj-video-detail-shell a:hover,
body.zokaj-video-page.zokaj-site .zokaj-video-detail-shell a:focus {
  color: #86163b;
  text-decoration: none;
}

/* Original Bootstrap breadcrumb treatment. */
.zokaj-video-page-classic .zokaj-classic-breadcrumbs {
  min-height: 35px;
  align-items: center;
  margin: 0 0 16px;
  border-radius: 4px;
  padding: 8px 15px;
  background: #f5f5f5;
  color: #777;
  font-family: Verdana, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.4;
}

.zokaj-classic-video-title {
  margin: 0 0 8px;
  color: var(--zokaj-classic-wine);
  font-family: Verdana, Arial, sans-serif;
  font-size: 35px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

/* The old HTML used <div class="blockquote"><blockquote ...>. Keep that
   structure and put the wine border on the blockquote itself, as the old CSS did. */
.zokaj-classic-intro {
  margin: 0 0 16px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #222;
  font-family: Verdana, Arial, sans-serif;
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
}
.zokaj-classic-intro blockquote {
  margin: 0 0 20px 20px;
  border: 0;
  border-left: 5px solid var(--zokaj-classic-wine);
  padding: 8px 18px 8px 20px;
  background: transparent;
  color: inherit;
  font-size: 15px;
  font-style: normal;
  line-height: 1.5;
  text-align: justify;
}
.zokaj-classic-intro blockquote p { font-style: normal;
  margin: 0 0 10px;
}
.zokaj-classic-intro blockquote p:last-child { margin-bottom: 0; }
.zokaj-classic-intro blockquote a { font-weight: 700; }
.zokaj-classic-intro-source { display: none !important; }

/* Old category/navigation controls were compact Bootstrap buttons. */
.zokaj-classic-tags { margin: 0 0 12px; }
.zokaj-classic-tags a,
.zokaj-classic-type-tag,
.zokaj-classic-submenu a {
  min-height: 27px;
  border-radius: 2px;
  padding: 6px 10px;
  font-family: Verdana, Arial, sans-serif;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
}
.zokaj-classic-submenu {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 49px;
  align-items: center;
  margin: 0 0 20px;
  border: 0;
  padding: 7px 0;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,.06);
}
.zokaj-classic-submenu a {
  min-height: 29px;
  padding: 7px 11px;
  background: #337ab7;
  font-size: 11px;
  font-weight: 400;
}
.zokaj-classic-submenu a:nth-child(2n),
.zokaj-classic-submenu a:nth-child(3n) { background: #337ab7; }
.zokaj-classic-submenu a.zokaj-watch-link { background: #e5a34d; }
.zokaj-classic-submenu a:hover { background: var(--zokaj-classic-wine); filter: none; }

/* Legacy h1/h2/h3 were centered, uppercase and wine-colored. */
.zokaj-video-page-classic .zokaj-detail-heading {
  margin: 10px 0 11px;
  color: var(--zokaj-classic-wine);
  font-family: Verdana, Arial, sans-serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}
.zokaj-classic-overview-grid {
  grid-template-columns: minmax(195px, 31%) minmax(0, 1fr);
  gap: 18px;
}
.zokaj-classic-poster-wrap {
  max-width: 230px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}
.zokaj-classic-poster-wrap .zokaj-overview-poster {
  display: block;
  width: 100%;
  height: auto;
  border: 8px solid #fff;
  border-radius: 0;
  margin: 0 0 15px;
  box-shadow: 0 0 5px #ccc;
}
.zokaj-classic-info-table {
  font-family: Verdana, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.45;
}
.zokaj-classic-info-table th,
.zokaj-classic-info-table td {
  border-bottom: 1px solid #ddd;
  padding: 7px 9px;
}
.zokaj-classic-info-table th { width: 30%; color: #222; font-weight: 700; }
.zokaj-classic-info-table td { color: #222; }

/* Legacy .content-main used Verdana 14px / 24px, justified copy and framed images. */
.zokaj-classic-plot {
  padding: 0 20px;
  color: #222;
  font-family: Verdana, Arial, sans-serif;
  font-size: 14px;
  line-height: 24px;
  text-align: justify;
}
.zokaj-classic-plot p { margin: 0 0 12px; }
.zokaj-classic-plot h2,
.zokaj-classic-plot h3,
.zokaj-classic-plot h4 {
  margin: 10px 0;
  color: var(--zokaj-classic-wine);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
}
.zokaj-classic-plot img,
.zokaj-classic-plot .img {
  max-width: 98%;
  height: auto;
  border: 8px solid #fff;
  margin: 0 auto 5px;
  box-shadow: 0 0 5px #ccc;
}
.zokaj-classic-plot .aligncenter { display: block; margin-right: auto; margin-left: auto; }
.zokaj-classic-plot blockquote {
  margin: 0 0 20px 20px;
  border-left: 5px solid var(--zokaj-classic-wine);
  padding: 8px 18px 8px 20px;
  text-align: justify;
}

.zokaj-classic-episode-table { font-family: Verdana, Arial, sans-serif; font-size: 11px; }
.zokaj-classic-related-list li { font-family: Verdana, Arial, sans-serif; font-size: 12px; }
.zokaj-video-page-classic #comments { scroll-margin-top: 58px; }
#overview, #plot, #episode-guide, #watch, #related, #comments { scroll-margin-top: 58px; }

@media (max-width: 760px) {
  .zokaj-classic-video-title { font-size: 27px; }
  .zokaj-classic-intro blockquote { margin-left: 10px; padding: 7px 12px 7px 14px; font-size: 14px; }
  .zokaj-video-page-classic .zokaj-detail-heading { font-size: 22px; }
  .zokaj-classic-overview-grid { grid-template-columns: minmax(145px, 32%) minmax(0,1fr); gap: 12px; }
  .zokaj-classic-poster-wrap { max-width: 100%; }
  .zokaj-classic-info-table { font-size: 11px; }
  .zokaj-classic-info-table th,
  .zokaj-classic-info-table td { padding: 5px 6px; }
  .zokaj-classic-plot { padding: 0 10px; font-size: 13px; line-height: 22px; }
}
@media (max-width: 480px) {
  .zokaj-classic-video-title { font-size: 23px; }
  .zokaj-video-page-classic .zokaj-detail-heading { font-size: 19px; }
  .zokaj-classic-overview-grid { grid-template-columns: 112px minmax(0,1fr); gap: 9px; }
  .zokaj-classic-info-table { font-size: 10px; }
  .zokaj-classic-info-table th,
  .zokaj-classic-info-table td { padding: 4px 5px; }
  .zokaj-classic-intro blockquote { margin-left: 7px; padding-left: 11px; font-size: 13px; }
  .zokaj-classic-plot { padding: 0 6px; font-size: 12px; line-height: 20px; }
  .zokaj-classic-submenu { overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; }
  .zokaj-classic-submenu a { flex: 0 0 auto; white-space: nowrap; }
}


/* -------------------------------------------------------------
   Legacy ZOKAJ data fidelity and Abyss episode navigation — v1.0.7
   ------------------------------------------------------------- */
.zokaj-classic-watch-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 12px;
}
.zokaj-classic-watch-nav-item {
  min-width: 0;
  border-bottom: 1px solid #e2dce0;
  padding: 7px 8px 9px;
  background: #fff;
  font-family: Verdana, Arial, sans-serif;
  font-size: 11px;
}
.zokaj-classic-watch-nav-label {
  display: block;
  margin-bottom: 3px;
  color: #6d646a;
  font-weight: 700;
}
.zokaj-classic-watch-nav-item button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--zokaj-classic-wine);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.zokaj-classic-watch-nav-item button:hover { text-decoration: underline; }
.zokaj-classic-watch-nav-item small {
  display: block;
  margin-top: 3px;
  color: #6f6870;
  font-size: 10px;
  line-height: 1.4;
}
.zokaj-classic-watch-nav-next { text-align: right; }
.zokaj-classic-related-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Verdana, Arial, sans-serif;
  font-size: 11px;
  line-height: 1.45;
}
.zokaj-classic-related-table th,
.zokaj-classic-related-table td {
  border-bottom: 1px solid #e6e1e4;
  padding: 7px 8px;
  text-align: left;
  vertical-align: top;
}
.zokaj-classic-related-table thead th {
  background: #faf8f9;
  color: #4c444a;
  font-weight: 700;
}
.zokaj-classic-related-table tbody th { width: 38px; color: #51474e; }
.zokaj-classic-related-table td:last-child { width: 145px; white-space: nowrap; color: #6f6870; }
.zokaj-classic-related-table a { color: var(--zokaj-classic-wine); }
.zokaj-classic-related-group { margin-bottom: 20px !important; }
.zokaj-classic-related-group .zokaj-detail-heading { margin-top: 18px; }
.zokaj-classic-poster-wrap .zokaj-type-ribbon { display: none !important; }

@media (max-width: 650px) {
  .zokaj-classic-watch-navigation { gap: 8px; }
  .zokaj-classic-watch-nav-item { padding: 6px 4px; font-size: 10px; }
  .zokaj-classic-related-table { font-size: 10px; }
  .zokaj-classic-related-table th,
  .zokaj-classic-related-table td { padding: 5px 5px; }
  .zokaj-classic-related-table td:last-child { width: 95px; white-space: normal; }
}

.zokaj-classic-subbed-note {
  margin: 7px 0 18px;
  color: #655b62;
  font-family: Verdana, Arial, sans-serif;
  font-size: 11px;
  font-style: italic;
  line-height: 1.5;
  text-align: center;
}
.zokaj-classic-subbed-note strong { color: #302930; font-style: normal; }
@media (max-width: 650px) {
  .zokaj-classic-subbed-note { margin: 6px 0 15px; font-size: 10px; }
}


/** Episode Guide typography and border cleanup — v1.0.7 */
.zokaj-video-page-classic .zokaj-classic-table-wrap {
  border: 0 !important;
  box-shadow: none !important;
  overflow-x: auto;
}
.zokaj-video-page-classic table.zokaj-classic-episode-table {
  width: 100%;
  min-width: 560px;
  margin: 0;
  border: 0 !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  background: transparent !important;
  font-family: Verdana, Arial, sans-serif;
  font-size: 13px !important;
  line-height: 1.5;
}
.zokaj-video-page-classic table.zokaj-classic-episode-table tr {
  border: 0 !important;
  background: transparent !important;
}
.zokaj-video-page-classic table.zokaj-classic-episode-table th,
.zokaj-video-page-classic table.zokaj-classic-episode-table td {
  border: 0 !important;
  padding: 8px 9px;
  background: transparent !important;
  text-align: left;
  vertical-align: top;
  font-size: inherit;
  line-height: inherit;
}
.zokaj-video-page-classic table.zokaj-classic-episode-table thead th {
  border-bottom: 2px solid #d8d3d6 !important;
  color: #272329;
  font-weight: 700;
  white-space: nowrap;
}
.zokaj-video-page-classic table.zokaj-classic-episode-table tbody th,
.zokaj-video-page-classic table.zokaj-classic-episode-table tbody td {
  border-bottom: 1px solid #dedade !important;
}
.zokaj-video-page-classic table.zokaj-classic-episode-table tbody th {
  width: 32%;
  color: var(--zokaj-classic-wine, #b2204d);
  font-weight: 700;
  white-space: normal;
}
.zokaj-video-page-classic table.zokaj-classic-episode-table tbody td:nth-child(2) {
  width: 19%;
  color: #383239;
  white-space: normal;
}
.zokaj-video-page-classic table.zokaj-classic-episode-table tbody td:last-child {
  color: #29252a;
  overflow-wrap: anywhere;
}
.zokaj-video-page-classic table.zokaj-classic-episode-table a {
  color: var(--zokaj-classic-wine, #b2204d);
}
@media (max-width: 650px) {
  .zokaj-video-page-classic table.zokaj-classic-episode-table {
    min-width: 520px;
    font-size: 12px !important;
  }
  .zokaj-video-page-classic table.zokaj-classic-episode-table th,
  .zokaj-video-page-classic table.zokaj-classic-episode-table td {
    padding: 7px 8px;
  }
}


/* -------------------------------------------------------------
   v1.0.8 — Classic episode navigation and focused Plot emphasis
   ------------------------------------------------------------- */
/* Match the original Family single-video layout: Previous/Next label
   and episode link in a narrow left cell, episode title in the right cell. */
.zokaj-video-page-classic .zokaj-classic-watch-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 12px;
  align-items: start;
}
.zokaj-video-page-classic .zokaj-classic-watch-navigation.first-episode .zokaj-classic-watch-nav-next {
  grid-column: 1;
}
.zokaj-video-page-classic .zokaj-classic-watch-nav-item {
  min-width: 0;
  border: 0;
  border-bottom: 1px solid #ded9dc;
  padding: 5px 8px 8px;
  background: #fff;
  text-align: left;
  font-family: Verdana, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.45;
}
.zokaj-video-page-classic .zokaj-classic-watch-nav-table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  table-layout: fixed;
  font: inherit;
}
.zokaj-video-page-classic .zokaj-classic-watch-nav-table th,
.zokaj-video-page-classic .zokaj-classic-watch-nav-table td {
  border: 0;
  padding: 3px 7px 3px 0;
  background: transparent;
  text-align: left;
  vertical-align: top;
}
.zokaj-video-page-classic .zokaj-classic-watch-nav-table th {
  width: 96px;
  color: #25232a;
  font-weight: 700;
}
.zokaj-video-page-classic .zokaj-classic-watch-nav-label {
  display: block;
  margin: 0;
  color: #25232a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}
.zokaj-video-page-classic .zokaj-classic-watch-nav-table button {
  display: inline;
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--zokaj-classic-wine);
  font: inherit;
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
}
.zokaj-video-page-classic .zokaj-classic-watch-nav-table button:hover { text-decoration: underline; }
.zokaj-video-page-classic .zokaj-classic-watch-nav-table td {
  color: #25232a;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.zokaj-video-page-classic .zokaj-classic-watch-nav-table td br { display: block; content: ""; margin-top: 2px; }
.zokaj-video-page-classic .zokaj-classic-watch-nav-item[hidden] { display: none !important; }

/* A paragraph containing only one emphasized line is a centered caption. */
.zokaj-video-page-classic .zokaj-classic-plot p > em:only-child {
  display: block;
  text-align: center;
}

/* The number picker remains; the redundant player toolbar and subtitle credit are removed. */
.zokaj-video-page-classic .zokaj-classic-episode-picker { margin-top: 8px; }
@media (max-width: 650px) {
  .zokaj-video-page-classic .zokaj-classic-watch-navigation { grid-template-columns: 1fr; gap: 8px; }
  .zokaj-video-page-classic .zokaj-classic-watch-navigation.first-episode .zokaj-classic-watch-nav-next { grid-column: 1; }
  .zokaj-video-page-classic .zokaj-classic-watch-nav-item { padding: 5px 3px 7px; font-size: 12px; }
  .zokaj-video-page-classic .zokaj-classic-watch-nav-table th { width: 86px; }
  .zokaj-video-page-classic .zokaj-classic-watch-nav-label { font-size: 12px; }
  .zokaj-video-page-classic .zokaj-classic-watch-nav-table td { font-size: 12px; }
}


/* -------------------------------------------------------------
   v1.0.9 — Classic episode picker, related tables and quick links
   ------------------------------------------------------------- */
/* Episode number selector: compact Bootstrap-like square buttons. */
.zokaj-video-page-classic .zokaj-classic-episode-picker {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  margin-top: 8px;
  padding: 8px 0 0;
  background: #fff;
}
.zokaj-video-page-classic button.zokaj-classic-episode-button {
  display: inline-flex;
  flex: 0 0 auto;
  min-width: 33px;
  width: auto;
  min-height: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd6db !important;
  border-radius: 2px !important;
  padding: 4px 8px !important;
  background: #fff !important;
  color: #514951 !important;
  font-family: Verdana, Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  text-decoration: none;
  box-shadow: none !important;
  cursor: pointer;
}
.zokaj-video-page-classic button.zokaj-classic-episode-button:hover,
.zokaj-video-page-classic button.zokaj-classic-episode-button.is-active {
  border-color: var(--zokaj-classic-wine, #b2204d) !important;
  background: var(--zokaj-classic-wine, #b2204d) !important;
  color: #fff !important;
}

/* Movies / Specials / Other: legible legacy table typography and horizontal rules only. */
.zokaj-video-page-classic table.zokaj-classic-related-table {
  width: 100%;
  margin: 0 0 10px;
  border: 0 !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  background: #fff !important;
  color: #29252a;
  font-family: Verdana, Arial, sans-serif !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}
.zokaj-video-page-classic table.zokaj-classic-related-table tr,
.zokaj-video-page-classic table.zokaj-classic-related-table th,
.zokaj-video-page-classic table.zokaj-classic-related-table td {
  border-top: 0 !important;
  border-right: 0 !important;
  border-left: 0 !important;
  background: transparent !important;
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}
.zokaj-video-page-classic table.zokaj-classic-related-table thead th {
  border-bottom: 2px solid #d8d3d6 !important;
  padding: 8px 10px !important;
  color: #282329 !important;
  font-weight: 700 !important;
  text-align: left;
  white-space: nowrap;
}
.zokaj-video-page-classic table.zokaj-classic-related-table tbody th,
.zokaj-video-page-classic table.zokaj-classic-related-table tbody td {
  border-bottom: 1px solid #dedade !important;
  padding: 8px 10px !important;
  color: #302b31;
  font-weight: 400;
  text-align: left;
  vertical-align: top;
}
.zokaj-video-page-classic table.zokaj-classic-related-table tbody th {
  width: 38px;
  color: #4b444a;
  font-weight: 400;
}
.zokaj-video-page-classic table.zokaj-classic-related-table tbody td:nth-last-child(1) {
  width: 150px;
  color: #5e565e;
  white-space: nowrap;
}
.zokaj-video-page-classic table.zokaj-classic-related-table a {
  color: var(--zokaj-classic-wine, #b2204d) !important;
  font-weight: 400;
}

/* Classic compact navigation buttons, with the stronger type size in the reference. */
.zokaj-video-page-classic .zokaj-classic-submenu a {
  min-height: 31px;
  padding: 7px 12px;
  font-family: Verdana, Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.35;
  letter-spacing: 0;
}

@media (max-width: 650px) {
  .zokaj-video-page-classic button.zokaj-classic-episode-button {
    min-width: 31px;
    min-height: 29px;
    height: 29px;
    padding: 4px 7px !important;
    font-size: 12px !important;
  }
  .zokaj-video-page-classic table.zokaj-classic-related-table {
    font-size: 12px !important;
  }
  .zokaj-video-page-classic table.zokaj-classic-related-table thead th,
  .zokaj-video-page-classic table.zokaj-classic-related-table tbody th,
  .zokaj-video-page-classic table.zokaj-classic-related-table tbody td {
    padding: 7px 7px !important;
  }
  .zokaj-video-page-classic table.zokaj-classic-related-table tbody td:nth-last-child(1) {
    width: auto;
    white-space: normal;
  }
  .zokaj-video-page-classic .zokaj-classic-submenu a {
    font-size: 12px !important;
  }
}


/* -------------------------------------------------------------
   v1.1.1 — Keep the classic detail column narrow; widen only the player.
   Overview, Plot, Episode Guide, navigation and related tables retain the
   780px reading width. The Abyss frame may break out to the desktop width.
   ------------------------------------------------------------- */
body.zokaj-video-page.zokaj-site .zokaj-video-detail-shell {
  width: min(780px, calc(100% - 32px));
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

/* Expand only the video frame, not the watch section or episode picker. */
.zokaj-video-page-classic .zokaj-classic-watch-player {
  width: 100%;
  overflow: visible;
}
.zokaj-video-page-classic .zokaj-classic-player-frame {
  position: relative;
  left: 50%;
  width: min(1148px, calc(100vw - 26px));
  max-width: 1148px;
  margin-left: 0;
  margin-bottom: 14px;
  transform: translateX(-50%);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #050505;
}

/* The episode list stays in the classic reading column and is visibly
   separated from the expanded player frame. */
.zokaj-video-page-classic .zokaj-classic-episode-picker {
  width: 100%;
  margin-top: 14px !important;
  padding-top: 0 !important;
}

/* Legacy post-tape pagination: plain number links, with only the active
   episode shown as a wine-coloured square. 37px lets 30 episodes fit on
   the 1120px content width shown in the old 1174px viewport screenshot. */
.zokaj-video-page-classic .zokaj-classic-episode-picker {
  display: flex !important;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  width: 100%;
  margin: 8px 0 0;
  padding: 0;
  background: #fff;
}

.zokaj-video-page-classic button.zokaj-classic-episode-button {
  display: inline-flex;
  flex: 0 0 37px;
  width: 37px;
  min-width: 37px;
  max-width: 37px;
  height: 31px;
  min-height: 31px;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  color: #999 !important;
  font-family: Verdana, Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  text-align: center;
  text-decoration: none;
  box-shadow: none !important;
  cursor: pointer;
}

.zokaj-video-page-classic button.zokaj-classic-episode-button:hover {
  border: 0 !important;
  background: #f5edf1 !important;
  color: var(--zokaj-classic-wine, #b2204d) !important;
}

.zokaj-video-page-classic button.zokaj-classic-episode-button.is-active,
.zokaj-video-page-classic button.zokaj-classic-episode-button.is-active:hover {
  border: 0 !important;
  background: var(--zokaj-classic-wine, #b2204d) !important;
  color: #fff !important;
  font-weight: 700 !important;
}

@media (max-width: 650px) {
  body.zokaj-video-page.zokaj-site .zokaj-video-detail-shell {
    width: calc(100% - 28px);
    max-width: 780px;
  }
  .zokaj-video-page-classic .zokaj-classic-player-frame {
    width: calc(100vw - 28px);
    max-width: none;
    margin-bottom: 12px;
  }
  .zokaj-video-page-classic button.zokaj-classic-episode-button {
    flex-basis: 34px;
    width: 34px;
    min-width: 34px;
    max-width: 34px;
    height: 30px;
    min-height: 30px;
    font-size: 12px !important;
  }
}

/* -------------------------------------------------------------
   v1.1.2 — Match Previous/Next and Episode Picker to player width.
   Keep all other detail sections at the 780px reading width.
   Remove the dark player-wrapper background behind the episode list.
   ------------------------------------------------------------- */
.zokaj-video-page-classic .zokaj-classic-watch-navigation {
  position: relative;
  left: 50%;
  width: min(1148px, calc(100vw - 26px));
  max-width: 1148px;
  margin-left: 0;
  transform: translateX(-50%);
}

.zokaj-video-page-classic .zokaj-classic-watch-player {
  background: transparent !important;
  box-shadow: none !important;
}

.zokaj-video-page-classic .zokaj-classic-episode-picker {
  position: relative;
  left: 50%;
  width: min(1148px, calc(100vw - 26px));
  max-width: 1148px;
  margin-left: 0;
  transform: translateX(-50%);
  background: transparent !important;
}

@media (max-width: 650px) {
  .zokaj-video-page-classic .zokaj-classic-watch-navigation,
  .zokaj-video-page-classic .zokaj-classic-episode-picker {
    width: calc(100vw - 28px);
    max-width: none;
  }
}



/* -------------------------------------------------------------
   v1.1.3 — Mobile Overview: centered full-size poster above details.
   Desktop/tablet retain the classic side-by-side poster and table.
   ------------------------------------------------------------- */
@media (max-width: 650px) {
  .zokaj-video-page-classic .zokaj-classic-overview-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    align-items: start;
  }

  .zokaj-video-page-classic .zokaj-classic-poster-wrap {
    width: 100%;
    max-width: 230px;
    justify-self: center;
    margin: 0 auto;
  }

  .zokaj-video-page-classic .zokaj-classic-poster-wrap .zokaj-overview-poster {
    display: block;
    width: 100%;
    max-width: 230px;
    height: auto;
    margin: 0 auto;
  }

  .zokaj-video-page-classic .zokaj-overview-details {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
  }

  .zokaj-video-page-classic .zokaj-classic-info-table {
    width: 100%;
    table-layout: auto;
  }
}


/* -------------------------------------------------------------
   v1.1.4 — Unified mobile typography across the complete video page.
   The Plot body text (12px / 20px, Verdana) is the mobile reference.
   Keep heading hierarchy, layouts, player width and desktop typography.
   ------------------------------------------------------------- */
@media (max-width: 650px) {
  body.zokaj-video-page.zokaj-site .zokaj-video-detail-shell {
    font-family: Verdana, Arial, sans-serif !important;
    font-size: 12px !important;
    line-height: 20px !important;
  }

  /* Top area: breadcrumb, introduction and inline content. */
  body.zokaj-video-page.zokaj-site .zokaj-classic-breadcrumbs,
  body.zokaj-video-page.zokaj-site .zokaj-classic-intro,
  body.zokaj-video-page.zokaj-site .zokaj-classic-intro blockquote,
  body.zokaj-video-page.zokaj-site .zokaj-classic-intro p,
  body.zokaj-video-page.zokaj-site .zokaj-classic-intro a {
    font-family: Verdana, Arial, sans-serif !important;
    font-size: 12px !important;
    line-height: 20px !important;
  }

  /* Navigation labels use the same readable body size. */
  body.zokaj-video-page.zokaj-site .zokaj-classic-submenu a {
    font-family: Verdana, Arial, sans-serif !important;
    font-size: 12px !important;
    line-height: 20px !important;
  }

  /* Overview table: remove the old 9–11px mobile overrides. */
  body.zokaj-video-page.zokaj-site .zokaj-classic-info-table,
  body.zokaj-video-page.zokaj-site .zokaj-classic-info-table th,
  body.zokaj-video-page.zokaj-site .zokaj-classic-info-table td {
    font-family: Verdana, Arial, sans-serif !important;
    font-size: 12px !important;
    line-height: 20px !important;
  }

  /* Plot remains the typography reference; apply it consistently. */
  body.zokaj-video-page.zokaj-site .zokaj-classic-plot,
  body.zokaj-video-page.zokaj-site .zokaj-classic-plot p,
  body.zokaj-video-page.zokaj-site .zokaj-classic-plot li {
    font-family: Verdana, Arial, sans-serif !important;
    font-size: 12px !important;
    line-height: 20px !important;
  }

  /* Episode Guide and release information. */
  body.zokaj-video-page.zokaj-site table.zokaj-classic-episode-table,
  body.zokaj-video-page.zokaj-site table.zokaj-classic-episode-table th,
  body.zokaj-video-page.zokaj-site table.zokaj-classic-episode-table td,
  body.zokaj-video-page.zokaj-site .zokaj-episode-group {
    font-family: Verdana, Arial, sans-serif !important;
    font-size: 12px !important;
    line-height: 20px !important;
  }

  /* Previous / Next episode text and names. */
  body.zokaj-video-page.zokaj-site .zokaj-classic-watch-nav-item,
  body.zokaj-video-page.zokaj-site .zokaj-classic-watch-nav-table,
  body.zokaj-video-page.zokaj-site .zokaj-classic-watch-nav-label,
  body.zokaj-video-page.zokaj-site .zokaj-classic-watch-nav-table th,
  body.zokaj-video-page.zokaj-site .zokaj-classic-watch-nav-table td,
  body.zokaj-video-page.zokaj-site .zokaj-classic-watch-nav-table button {
    font-family: Verdana, Arial, sans-serif !important;
    font-size: 12px !important;
    line-height: 20px !important;
  }

  /* Episode number picker and Movies / Specials / Other tables. */
  body.zokaj-video-page.zokaj-site button.zokaj-classic-episode-button {
    font-family: Verdana, Arial, sans-serif !important;
    font-size: 12px !important;
    line-height: 20px !important;
  }
  body.zokaj-video-page.zokaj-site table.zokaj-classic-related-table,
  body.zokaj-video-page.zokaj-site table.zokaj-classic-related-table th,
  body.zokaj-video-page.zokaj-site table.zokaj-classic-related-table td {
    font-family: Verdana, Arial, sans-serif !important;
    font-size: 12px !important;
    line-height: 20px !important;
  }

  /* Keep section/title sizes distinct, but use the same family and rhythm. */
  body.zokaj-video-page.zokaj-site .zokaj-classic-video-title,
  body.zokaj-video-page.zokaj-site .zokaj-detail-heading {
    font-family: Verdana, Arial, sans-serif !important;
    line-height: 1.3 !important;
  }
}


/* Homepage refinements - ZOKAJ Child 1.1.6 */
body.home .zokaj-brand-row > .zokaj-container,
body.front-page .zokaj-brand-row > .zokaj-container {
  display: flex;
  align-items: center;
  justify-content: center;
}
body.home .zokaj-brand,
body.front-page .zokaj-brand {
  margin-inline: auto;
}
/* The Primary Menu is visible on the homepage as well as inner pages.
   Keep the logo centered and leave the search field aligned to the right. */
body.home .zokaj-nav-inner,
body.front-page .zokaj-nav-inner {
  justify-content: flex-start;
}
body.home .zokaj-header-search,
body.front-page .zokaj-header-search {
  margin-left: auto;
}
body.home .zokaj-type-ribbon,
body.front-page .zokaj-type-ribbon,
body.home .zokaj-card-episode,
body.front-page .zokaj-card-episode {
  display: none !important;
}


/* Header consistency — v1.1.7
   Keep the logo centered on every template (not only the homepage),
   and force high-contrast white navigation links on the wine band. */
body.zokaj-site .zokaj-header .zokaj-brand-row > .zokaj-container {
  display: flex !important;
  align-items: center;
  justify-content: center !important;
  width: min(var(--zokaj-container), calc(100% - 36px));
  margin-inline: auto;
}
body.zokaj-site .zokaj-header .zokaj-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto !important;
}
body.zokaj-site .zokaj-header .zokaj-nav-band .zokaj-nav-list a,
body.zokaj-site .zokaj-header .zokaj-nav-band .zokaj-nav .menu > li > a,
body.zokaj-site .zokaj-header .zokaj-nav-band .zokaj-nav-list a:visited,
body.zokaj-site .zokaj-header .zokaj-nav-band .zokaj-nav .menu > li > a:visited {
  color: #fff !important;
  text-decoration: none !important;
}
body.zokaj-site .zokaj-header .zokaj-nav-band .zokaj-nav-list a:hover,
body.zokaj-site .zokaj-header .zokaj-nav-band .zokaj-nav-list a:focus,
body.zokaj-site .zokaj-header .zokaj-nav-band .zokaj-nav .menu > li > a:hover,
body.zokaj-site .zokaj-header .zokaj-nav-band .zokaj-nav .menu > li > a:focus,
body.zokaj-site .zokaj-header .zokaj-nav-band .zokaj-nav-list .current-menu-item > a,
body.zokaj-site .zokaj-header .zokaj-nav-band .zokaj-nav .current-menu-item > a {
  color: #fff !important;
  background-color: var(--zokaj-wine-dark) !important;
}
body.zokaj-site ::selection {
  color: #fff;
  background: var(--zokaj-wine);
}
@media (max-width: 767px) {
  body.zokaj-site .zokaj-header .zokaj-brand-row > .zokaj-container {
    width: calc(100% - 24px);
  }
}


/* -------------------------------------------------------------
   v1.1.8 — Branded mobile hamburger menu.
   Replace the inherited grey text button with a clean three-line icon.
   ------------------------------------------------------------- */
@media (max-width: 640px) {
  body.zokaj-site .zokaj-menu-toggle {
    display: inline-flex !important;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    margin: 7px 0;
    padding: 0 !important;
    border: 1px solid rgba(255,255,255,.34) !important;
    border-radius: 4px;
    background: transparent !important;
    color: #fff !important;
    box-shadow: none !important;
    text-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .18s ease, border-color .18s ease;
  }
  body.zokaj-site .zokaj-menu-toggle:hover,
  body.zokaj-site .zokaj-menu-toggle:focus,
  body.zokaj-site .zokaj-menu-toggle:active,
  body.zokaj-site .zokaj-menu-toggle[aria-expanded="true"] {
    border-color: rgba(255,255,255,.65) !important;
    background: rgba(80,0,28,.18) !important;
    color: #fff !important;
    box-shadow: none !important;
  }
  body.zokaj-site .zokaj-menu-toggle:focus-visible {
    outline: 2px solid #fff !important;
    outline-offset: 2px;
  }
  .zokaj-hamburger {
    display: flex;
    width: 21px;
    height: 16px;
    flex-direction: column;
    justify-content: space-between;
  }
  .zokaj-hamburger span {
    display: block;
    width: 21px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transform-origin: center;
    transition: transform .18s ease, opacity .18s ease;
  }
  .zokaj-menu-toggle[aria-expanded="true"] .zokaj-hamburger span:first-child {
    transform: translateY(7px) rotate(45deg);
  }
  .zokaj-menu-toggle[aria-expanded="true"] .zokaj-hamburger span:nth-child(2) { opacity: 0; }
  .zokaj-menu-toggle[aria-expanded="true"] .zokaj-hamburger span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }
  body.zokaj-site .zokaj-nav.is-open {
    background: var(--zokaj-wine-dark);
    border-top: 1px solid rgba(255,255,255,.2);
  }
  body.zokaj-site .zokaj-nav.is-open .zokaj-nav-list a,
  body.zokaj-site .zokaj-nav.is-open .menu > li > a {
    background: transparent !important;
    color: #fff !important;
  }
  body.zokaj-site .zokaj-nav.is-open .zokaj-nav-list a:hover,
  body.zokaj-site .zokaj-nav.is-open .menu > li > a:hover {
    background: rgba(255,255,255,.12) !important;
    color: #fff !important;
  }

  /* Keep the current taxonomy/category visibly active in the expanded mobile menu.
     The base mobile link rule uses !important, so the active state must do so too. */
  body.zokaj-site .zokaj-nav.is-open .current-menu-item > a,
  body.zokaj-site .zokaj-nav.is-open .current-menu-ancestor > a,
  body.zokaj-site .zokaj-nav.is-open .current-menu-parent > a,
  body.zokaj-site .zokaj-nav.is-open .current_page_item > a,
  body.zokaj-site .zokaj-nav.is-open .current_page_parent > a,
  body.zokaj-site .zokaj-nav.is-open .current_page_ancestor > a,
  body.zokaj-site .zokaj-nav.is-open .current-post-ancestor > a,
  body.zokaj-site .zokaj-nav.is-open .current-category-ancestor > a,
  body.zokaj-site .zokaj-nav.is-open .current-taxonomy-ancestor > a,
  body.zokaj-site .zokaj-nav.is-open a[aria-current="page"] {
    background: var(--zokaj-wine-dark, #86163b) !important;
    color: #fff !important;
  }
}


/* -------------------------------------------------------------
   v1.1.10 — Reliable active state in the mobile Primary Menu.
   Keep the menu band wine-colored, but do not paint the whole
   expanded navigation with the dark active color. Only the
   current category and hovered/focused links use the dark color.
   ------------------------------------------------------------- */
@media (max-width: 640px) {
  body.zokaj-site .zokaj-header .zokaj-nav-band .zokaj-nav.is-open {
    background: transparent !important;
  }
  body.zokaj-site .zokaj-header .zokaj-nav-band .zokaj-nav.is-open .zokaj-nav-list,
  body.zokaj-site .zokaj-header .zokaj-nav-band .zokaj-nav.is-open .menu,
  body.zokaj-site .zokaj-header .zokaj-nav-band .zokaj-nav.is-open li {
    background: transparent !important;
  }
  body.zokaj-site .zokaj-header .zokaj-nav-band .zokaj-nav.is-open .zokaj-nav-list a,
  body.zokaj-site .zokaj-header .zokaj-nav-band .zokaj-nav.is-open .menu > li > a {
    background: transparent !important;
    color: #fff !important;
    transition: background-color .16s ease, color .16s ease;
  }
  body.zokaj-site .zokaj-header .zokaj-nav-band .zokaj-nav.is-open .zokaj-nav-list a:hover,
  body.zokaj-site .zokaj-header .zokaj-nav-band .zokaj-nav.is-open .zokaj-nav-list a:focus,
  body.zokaj-site .zokaj-header .zokaj-nav-band .zokaj-nav.is-open .zokaj-nav-list a:focus-visible,
  body.zokaj-site .zokaj-header .zokaj-nav-band .zokaj-nav.is-open .zokaj-nav-list a:active,
  body.zokaj-site .zokaj-header .zokaj-nav-band .zokaj-nav.is-open .menu > li > a:hover,
  body.zokaj-site .zokaj-header .zokaj-nav-band .zokaj-nav.is-open .menu > li > a:focus,
  body.zokaj-site .zokaj-header .zokaj-nav-band .zokaj-nav.is-open .menu > li > a:focus-visible,
  body.zokaj-site .zokaj-header .zokaj-nav-band .zokaj-nav.is-open .menu > li > a:active {
    background: var(--zokaj-wine-dark, #86163b) !important;
    color: #fff !important;
  }
  body.zokaj-site .zokaj-header .zokaj-nav-band .zokaj-nav.is-open .current-menu-item > a,
  body.zokaj-site .zokaj-header .zokaj-nav-band .zokaj-nav.is-open .current-menu-ancestor > a,
  body.zokaj-site .zokaj-header .zokaj-nav-band .zokaj-nav.is-open .current-menu-parent > a,
  body.zokaj-site .zokaj-header .zokaj-nav-band .zokaj-nav.is-open .current_page_item > a,
  body.zokaj-site .zokaj-header .zokaj-nav-band .zokaj-nav.is-open .current_page_parent > a,
  body.zokaj-site .zokaj-header .zokaj-nav-band .zokaj-nav.is-open .current_page_ancestor > a,
  body.zokaj-site .zokaj-header .zokaj-nav-band .zokaj-nav.is-open .current-post-ancestor > a,
  body.zokaj-site .zokaj-header .zokaj-nav-band .zokaj-nav.is-open .current-category-ancestor > a,
  body.zokaj-site .zokaj-header .zokaj-nav-band .zokaj-nav.is-open .current-taxonomy-ancestor > a,
  body.zokaj-site .zokaj-header .zokaj-nav-band .zokaj-nav.is-open a[aria-current="page"] {
    background: var(--zokaj-wine-dark, #86163b) !important;
    color: #fff !important;
  }
}
