/* EnjoyVideo 1.1.9 — crisp, accessible, mobile-first visual system.
   Loaded last: preserves existing templates, menus, videos, and widget APIs. */
:root {
  --ev-bg: #0b0f16;
  --ev-surface: #151b26;
  --ev-surface-raised: #1d2634;
  --ev-edge: rgba(193, 211, 235, .11);
  --ev-primary: #54c6ff;
  --ev-primary-hover: #9bdeff;
  --ev-text: #eef4fc;
  --ev-muted: #abb7ca;
  --ev-radius: 12px;
}
html { scroll-behavior: smooth; }
body {
  background: var(--ev-bg);
  color: var(--ev-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body, button, input, select, textarea { font-family: inherit; }
.container { width: min(1312px, calc(100% - 48px)); max-width: 100%; }
img, video, iframe { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, h5, h6 { color: var(--ev-text); letter-spacing: -.02em; }
a { color: var(--ev-primary); }
a:hover { color: var(--ev-primary-hover); }
a:visited { color: var(--ev-primary); }
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--ev-primary);
  outline-offset: 3px;
}
.site-header { background: #111823; border-bottom: 1px solid var(--ev-edge); box-shadow: none; }
.site-start { min-height: 75px; }
.site-branding #logo { min-height: 70px; height: auto; line-height: 70px; }
.site-branding img { max-height: 54px; }
.site-branding .brand-title { font-size: clamp(1.2rem,2vw,1.55rem); font-weight: 780; letter-spacing: -.035em; line-height: 72px; }
.site-branding .brand-title a, .site-branding .brand-title a:visited { color: var(--ev-text); }
#primary-menu > li > a, #primary-menu > li > a:visited { color: #e5edf9; font-weight: 650; }
#primary-menu > li > a:hover { color: var(--ev-primary); }
.sf-menu ul { background: #202a38; border: 1px solid var(--ev-edge); }
.header-search { border: 1px solid #334054; border-radius: 9px; background: #1e2939; }
.header-search .search-input, .header-search .search-input:focus { color: #f4f8ff; background: transparent; }
.header-search .search-submit { background: #147fb5; border-radius: 0 8px 8px 0; }
.header-toggles .toggle-text { color: var(--ev-text); }
.header-toggles .toggle-icon svg { fill: var(--ev-text); }
.site-content { margin-top: 26px; margin-bottom: 40px; }
.ev-home-intro { margin: 0 0 22px; padding: 0 0 14px; border-bottom: 1px solid var(--ev-edge); }
.ev-home-intro h1 { font-size: clamp(1.35rem,2.5vw,1.8rem); line-height: 1.3; margin: 0; }
.ev-home-intro p { color: var(--ev-muted); margin: 6px 0 0; font-size: .93rem; }
#featured-content { margin-bottom: 28px; }
#featured-content .featured-large,
#featured-content .featured-small { border-radius: var(--ev-radius); overflow: hidden; isolation: isolate; }
#featured-content .thumbnail-link { background: var(--ev-surface-raised); }
#featured-content .entry-header { padding: 18px; }
#featured-content .entry-title { text-shadow: 0 2px 9px #000a; font-weight: 760; }
#featured-content .gradient { height: 75%; background: linear-gradient(180deg, transparent, #090f1fd9); }
#featured-content .thumbnail-link img { transition: transform .25s ease; }
#featured-content .thumbnail-link:hover img { transform: scale(1.035); }
.content-loop > .hentry,
.content-block-1 .posts-loop > .hentry {
  border: 1px solid var(--ev-edge);
  background: var(--ev-surface);
  border-radius: var(--ev-radius);
  overflow: hidden;
  padding-bottom: 13px;
  transition: border-color .18s ease, transform .18s ease;
}
.content-loop > .hentry:hover,
.content-block-1 .posts-loop > .hentry:hover {
  border-color: rgba(84,198,255,.42);
  transform: translateY(-2px);
}
.content-loop > .hentry > .thumbnail-link,
.content-block-1 .posts-loop > .hentry > .thumbnail-link {
  margin-bottom: 11px;
  background: #263244;
  border-radius: 0;
}
.content-loop > .hentry > .entry-header,
.content-block-1 .posts-loop > .hentry > .entry-header {
  padding: 0 14px;
}
.content-loop .entry-header .entry-category,
.content-block-1 .entry-header .entry-category { margin-top: 0; margin-bottom: 8px; }
.content-loop .entry-title,
.content-block-1 .hentry .entry-title {
  font-size: 1rem;
  font-weight: 690;
  line-height: 1.47;
}
.content-loop .entry-title a,
.content-loop .entry-title a:visited,
.content-block-1 .hentry .entry-title a,
.content-block-1 .hentry .entry-title a:visited { color: var(--ev-text); }
.content-loop .entry-title a:hover,
.content-block-1 .hentry .entry-title a:hover { color: var(--ev-primary); }
.content-loop .entry-meta,
.content-block-1 .entry-meta { color: var(--ev-muted); font-size: .79rem; }
.content-loop .entry-meta .entry-date { color: var(--ev-muted); }
.content-loop .entry-header .entry-category a { color: var(--ev-primary); }
.thumbnail-link .icon-play { background: #070b11c9; border-radius: 8px; }
.content-block .section-heading { margin-bottom: 18px; }
.content-block .section-heading h3 { font-size: 1.22rem; line-height: 1.25; }
.content-block .section-heading h3 a,
.content-block .section-heading h3 span,
.content-block .section-heading h3 a:visited { color: var(--ev-text); }
.content-block .section-heading .section-more-link a {
  color: var(--ev-primary);
  border: 1px solid #305476;
  border-radius: 8px;
  text-transform: none;
}
.breadcrumbs, .ev-breadcrumb { color: var(--ev-muted); }
.breadcrumbs h1 { color: var(--ev-text); font-size: clamp(1.3rem,2.8vw,1.9rem); }
.breadcrumbs .breadcrumbs-nav,
.breadcrumbs .taxonomy-description { color: var(--ev-muted); }
.breadcrumbs .breadcrumbs-nav a,
.breadcrumbs .breadcrumbs-nav a:visited { color: var(--ev-primary); }
.ev-breadcrumb { margin: 0 0 14px; font-size: .86rem; }
.ev-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; }
.ev-breadcrumb li { min-width: 0; color: var(--ev-muted); }
.ev-breadcrumb li:not(:first-child)::before { content: '/'; margin-right: 7px; color: #607189; }
.ev-breadcrumb li[aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: min(48ch,80vw); }
.single .site-main, .page .site-main,
.error404 .site-main { background: var(--ev-surface); color: var(--ev-text); border: 1px solid var(--ev-edge); border-radius: var(--ev-radius); }
.single .entry-header, .page .entry-header { border-color: var(--ev-edge); }
.single .entry-title, .page .entry-title { font-size: clamp(1.55rem,3vw,2.2rem); line-height: 1.24; }
.entry-content { line-height: 1.86; color: #e0e7f3; }
.entry-content :is(p, li) { overflow-wrap: anywhere; }
.entry-content a { color: var(--ev-primary); text-underline-offset: 3px; }
.entry-content blockquote { border-left: 3px solid var(--ev-primary); background: #ffffff09; padding: 12px 18px; }
.entry-content iframe, .entry-content video, .entry-content .wp-block-embed iframe { width: 100%; height: auto; aspect-ratio: 16/9; border: 0; border-radius: 10px; }
.entry-content .wp-block-video video { width: 100%; }
.entry-tags .tag-links a, .entry-tags .tag-links a:visited { background: #25354b; color: #cceaff; border: 1px solid #345172; }
.sidebar .widget { background: var(--ev-surface); border: 1px solid var(--ev-edge); padding: 16px; border-radius: var(--ev-radius); }
.sidebar .widget h2, .sidebar .widget .widget-title { border-color: var(--ev-edge); color: var(--ev-text); }
.sidebar .widget h2 span, .sidebar .widget .widget-title span { color: var(--ev-text); }
.sidebar .widget ul > li a, .sidebar .widget ul > li a:visited { color: #cbd6e6; }
.sidebar .widget ul > li a:hover { color: var(--ev-primary); }
.ev-related { margin-top: 28px; }
.ev-related h2 { margin-bottom: 16px; font-size: 1.25rem; }
.ev-related .content-loop { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.ev-related .content-loop > .hentry { padding-bottom: 12px; }
.ev-related .content-loop .entry-title { font-size: .91rem; }
.pagination .page-numbers { background: #1c2634; border: 1px solid var(--ev-edge); color: var(--ev-text); border-radius: 9px; }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: #075983; color: #fff; }
input, input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea, select { background: #1d2939; border: 1px solid #40506a; color: var(--ev-text); border-radius: 8px; }
input:focus, textarea:focus, select:focus { border-color: var(--ev-primary); }
.site-footer .footer-columns, .footer-columns { background: #111823; border-top: 1px solid var(--ev-edge); }
#site-bottom { background: #090c13; border-top: 1px solid var(--ev-edge); color: #b5c0d0; }
#site-bottom .site-info { color: #b5c0d0; }
#site-bottom .footer-nav li a, #site-bottom .footer-nav li a:visited { color: #d9e2f0; }
#back-top a { border-radius: 10px; }
@media (max-width: 959px) {
  .container { width: calc(100% - 28px); }
  .site-branding .brand-title { line-height: 64px; }
  .ev-related .content-loop { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .container { width: calc(100% - 24px); }
  .site-content { margin-top: 16px; }
  #featured-content { margin-bottom: 20px; }
  .ev-home-intro { margin-bottom: 16px; }
  .ev-home-intro h1 { font-size: 1.3rem; }
  .content-loop, .content-block-1 .posts-loop, .content-block-1 .posts-loop.enjoyvideo-cols-3 { grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 9px; row-gap: 12px; }
  .content-loop > .hentry > .entry-header,
  .content-block-1 .posts-loop > .hentry > .entry-header { padding: 0 10px; }
  .content-loop .entry-title, .content-block-1 .hentry .entry-title { font-size: .84rem; }
  .content-loop .entry-header .entry-category a { font-size: .68rem; }
  .content-loop .entry-meta, .content-block-1 .entry-meta { font-size: .72rem; }
  #featured-content .entry-header { padding: 10px; }
  .single .site-main { padding: 15px; }
  .ev-related .content-loop { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 350px) {
  .content-loop, .content-block-1 .posts-loop, .content-block-1 .posts-loop.enjoyvideo-cols-3, .ev-related .content-loop { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
/* Keep mobile navigation as legible and polished as the desktop header. */
.menu-modal, .menu-modal-inner { background: #121925; }
.menu-modal li { border-color: var(--ev-edge); }
.menu-modal a, .menu-modal a:visited,
button.close-nav-toggle, button.close-nav-toggle:hover { color: var(--ev-text); }
button.close-nav-toggle svg { fill: var(--ev-text); }
.menu-modal a:focus, .menu-modal a:hover { color: var(--ev-primary); }
.modal-menu .ancestor-wrapper, .modal-menu li.current-menu-item { background: transparent; }
button.sub-menu-toggle { border-color: var(--ev-edge); }
/* Let actual player aspect ratio reserve space; no JS-calculated top offset (CLS). */
.single article.has-embed { padding-top: 0 !important; }
.single article.has-embed .first-video,
.single article.has-embed .wp-video,
.single article.has-embed .wp-block-video,
.single article.has-embed .wp-block-embed,
.single article.has-embed .wp-block-embed__wrapper {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  margin-bottom: 14px;
}
.single article.has-embed .entry-content :is(iframe, video) {
  display: block;
  width: 100% !important;
  max-width: 100%;
  aspect-ratio: 16 / 9;
}

/* Mobile discoverability: search is available inside the responsive menu. */
.ev-mobile-search { padding: 18px 24px 26px; }
.ev-mobile-search .search-form { display: flex; align-items: stretch; gap: 8px; }
.ev-mobile-search .search-field { min-width: 0; flex: 1; }
.ev-mobile-search .search-submit { background: #146b9a; color: #fff; border-radius: 8px; padding: 0 18px; height: 42px; }
/* Widget section title semantics follow the home page H1. */
.content-block .section-heading h2.section-title {
  border-left: 3px solid var(--ev-primary);
  padding-left: 11px;
  font-size: clamp(1.05rem,2vw,1.25rem);
  font-weight: 730;
  line-height: 1.25;
  display: inline-block;
  margin: 0;
}
.content-block .section-heading h2.section-title a,
.content-block .section-heading h2.section-title span {
  color: var(--ev-text);
}
