/* =====================================================
   MyFlixer Theme — Main CSS
   Palette: Dark Blue #1e3a5f | Bright Blue #4d9dff | Black footer
   Dark cinematic design
   ===================================================== */

/* ── CSS Variables ── */
:root {
  /* Theme colors */
  --mf-dark-blue:    #1e3a5f;
  --mf-darker-blue:  #16304d;
  --mf-bright-blue:  #4d9dff;
  --mf-light-blue:   #6bb3ff;
  --mf-grad: linear-gradient(135deg, #4d9dff 0%, #2e7fd9 100%);
  --mf-grad-h: linear-gradient(135deg, #6bb3ff 0%, #4d9dff 100%);
  
  /* Light theme (default) */
--mf-bg-main: #1e3a5f;
--mf-bg-grad: linear-gradient(180deg, #2e4a6f 0%, #1e3a5f 100%);
--mf-white: #FFFFFF;
--mf-text: #ffffff;
--mf-text-light: #e8f0ff;
--mf-muted: #c8d5e8;
--mf-border: rgba(77, 157, 255, 0.25);
--mf-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
--mf-card-bg: rgba(255, 255, 255, 0.14);
--mf-card-body-bg: rgba(255, 255, 255, 0.10);
--mf-card-text: #ffffff;
--mf-nav-bg: rgba(255, 255, 255, 0.12);
--mf-nav-border: rgba(255, 255, 255, 0.12);
--mf-footer-bg: #000000;
--mf-input-bg: rgba(255, 255, 255, 0.9);
--mf-featured-bg: rgba(255, 255, 255, 0.12);
--mf-featured-header-bg: rgba(255, 255, 255, 0.10);
--mf-featured-border: rgba(255, 255, 255, 0.15);
--mf-parallax-bg: linear-gradient(180deg, #2e4a6f 0%, #1e3a5f 100%);

  /* Font schemes */
  --mf-font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mf-font-heading: var(--mf-font-main);
  --mf-font-ui: var(--mf-font-main);
  --mf-font-card: var(--mf-font-main);
  --mf-font-letter-spacing: 0;
  --mf-heading-letter-spacing: -0.02em;
}

/* =====================================================
   DARK THEME STYLES
   ===================================================== */
[data-theme="dark"] {
  --mf-bg-main: #000000;
  --mf-bg-grad: linear-gradient(180deg, #0a0a0a 0%, #000000 100%);
  --mf-text: #e8f0ff;
  --mf-text-light: #d0dff5;
  --mf-muted: #7a8aaa;
  --mf-card-bg: rgba(10, 10, 15, 0.9);
  --mf-card-body-bg: rgba(5, 5, 10, 0.7);
  --mf-card-text: #e8f0ff;
  --mf-nav-bg: rgba(5, 5, 10, 0.5);
  --mf-nav-border: rgba(77, 157, 255, 0.08);
  --mf-featured-bg: rgba(10, 10, 15, 0.9);
  --mf-featured-header-bg: rgba(20, 20, 30, 0.8);
  --mf-featured-border: rgba(77, 157, 255, 0.2);
  --mf-parallax-bg: linear-gradient(180deg, #0a0a0a 0%, #000000 100%);
}

[data-theme="dark"] body,
html[data-theme="dark"] body {
  background: var(--mf-bg-grad) !important;
  background-image:
    radial-gradient(circle at 10% 15%, rgba(77, 157, 255, 0.12), transparent 35%),
    radial-gradient(circle at 85% 10%, rgba(107, 179, 255, 0.08), transparent 30%),
    radial-gradient(circle at 20% 85%, rgba(22, 48, 77, 0.15), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(30, 58, 95, 0.2), transparent 50%),
    var(--mf-bg-grad) !important;
  color: var(--mf-text) !important;
}

[data-theme="dark"] .navbar-nav a,
html[data-theme="dark"] .navbar-nav a {
  /color: var(--mf-text) !important;
}

[data-theme="dark"] .card {
  background: var(--mf-card-bg) !important;
}

[data-theme="dark"] .card-body {
  background: var(--mf-card-body-bg) !important;
}

[data-theme="dark"] .card-body,
[data-theme="dark"] .card-body *,
[data-theme="dark"] .card-title {
  color: var(--mf-card-text) !important;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3 {
  color: var(--mf-text) !important;
}

[data-theme="dark"] .of-parallax-bg {
  background: var(--mf-parallax-bg) !important;
}

[data-theme="dark"] .header-glass {
  background-color: var(--mf-nav-bg) !important;
  border-bottom-color: var(--mf-nav-border) !important;
}

[data-theme="dark"] .featured-movies-block,
[data-theme="dark"] .recently-added-block,
[data-theme="dark"] .featured-homepage-block {
  background: var(--mf-featured-bg) !important;
  border-color: var(--mf-featured-border) !important;
}

[data-theme="dark"] .recently-added-header,
[data-theme="dark"] .featured-homepage-header,
[data-theme="dark"] .featured-movies-header {
  background: var(--mf-featured-header-bg) !important;
  border-bottom-color: var(--mf-featured-border) !important;
}

[data-theme="dark"] .recently-added-title,
[data-theme="dark"] .featured-homepage-title,
[data-theme="dark"] .featured-movies-title,
[data-theme="dark"] .recently-added-h1 {
  color: var(--mf-text) !important;
}

[data-theme="dark"] .recently-added-date,
[data-theme="dark"] .recently-added-genres,
[data-theme="dark"] .featured-homepage-genres {
  color: var(--mf-muted) !important;
}

[data-theme="dark"] .recently-added-year,
[data-theme="dark"] .featured-homepage-year {
  color: rgba(160, 184, 217, 0.6) !important;
}

/* =====================================================
   CUSTOM CURSOR - DISABLED (using default cursor)
   ===================================================== */
/* 
* { cursor: none !important; }

@media (hover: none), (pointer: coarse) {
  * { cursor: auto !important; }
  .of-cursor-dot,
  .of-cursor-ring { display: none !important; }
}

.of-cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--mf-bright-blue);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  transition: background 0.2s ease, transform 0.1s ease;
  will-change: transform;
}

.of-cursor-ring {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(79, 111, 255, 0.55);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 999998;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  will-change: transform;
}

.of-cursor-ring.hovered {
  width: 52px;
  height: 52px;
  border-color: var(--mf-bright-blue);
  background: rgba(77, 157, 255, 0.08);
}

.of-cursor-dot.clicked {
  transform: translate(-50%, -50%) scale(1.8);
  background: var(--mf-bright-blue);
}
*/

/* =====================================================
   PARALLAX BACKGROUND
   ===================================================== */
.of-parallax-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -10;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, #2e4a6f 0%, #1e3a5f 100%);
}

.of-parallax-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  will-change: transform;
}

.of-parallax-orb--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #00CFFF, transparent 70%);
  top: -200px; left: -200px;
}
.of-parallax-orb--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #4F6FFF, transparent 70%);
  top: 30%; right: -150px;
  opacity: 0.14;
}
.of-parallax-orb--3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #7C3AED, transparent 70%);
  bottom: -100px; left: 30%;
  opacity: 0.12;
}
.of-parallax-orb--4 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #00CFFF, transparent 70%);
  top: 60%; left: 5%;
  opacity: 0.10;
}
.of-parallax-orb--5 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, #9747FF, transparent 70%);
  top: 15%; left: 55%;
  opacity: 0.10;
}

/* Cinematic grain overlay */
.of-parallax-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 128px 128px;
  opacity: 0.4;
  pointer-events: none;
}

/* =====================================================
   BODY & LAYOUT
   ===================================================== */
body {
  background: var(--mf-bg-grad) !important;
  background-image:
    radial-gradient(circle at 10% 15%, rgba(77, 157, 255, 0.25), transparent 35%),
    radial-gradient(circle at 85% 10%, rgba(107, 179, 255, 0.18), transparent 30%),
    radial-gradient(circle at 20% 85%, rgba(22, 48, 77, 0.4), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(30, 58, 95, 0.5), transparent 50%),
    var(--mf-bg-grad) !important;
  background-attachment: fixed;
  color: var(--mf-text);
  font-family: var(--mf-font-main);
  letter-spacing: var(--mf-font-letter-spacing);
  min-height: 100vh;
}

.site {
  position: relative;
}


/* =====================================================
   ADMIN FONT FAMILY SCHEMES
   ===================================================== */
html[data-mf-font="system"] {
  --mf-font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mf-font-heading: var(--mf-font-main);
  --mf-font-ui: var(--mf-font-main);
  --mf-font-card: var(--mf-font-main);
  --mf-font-letter-spacing: 0;
  --mf-heading-letter-spacing: -0.02em;
}

html[data-mf-font="inter"] {
  --mf-font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mf-font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mf-font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mf-font-card: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mf-font-letter-spacing: -0.006em;
  --mf-heading-letter-spacing: -0.035em;
}

html[data-mf-font="roboto"] {
  --mf-font-main: 'Roboto', Arial, Helvetica, sans-serif;
  --mf-font-heading: 'Roboto', Arial, Helvetica, sans-serif;
  --mf-font-ui: 'Roboto', Arial, Helvetica, sans-serif;
  --mf-font-card: 'Roboto', Arial, Helvetica, sans-serif;
  --mf-font-letter-spacing: -0.002em;
  --mf-heading-letter-spacing: -0.026em;
}

html[data-mf-font="ibm-plex-sans"] {
  --mf-font-main: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mf-font-heading: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mf-font-ui: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mf-font-card: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mf-font-letter-spacing: -0.004em;
  --mf-heading-letter-spacing: -0.028em;
}

html[data-mf-font="source-sans-3"] {
  --mf-font-main: 'Source Sans 3', Arial, Helvetica, sans-serif;
  --mf-font-heading: 'Source Sans 3', Arial, Helvetica, sans-serif;
  --mf-font-ui: 'Source Sans 3', Arial, Helvetica, sans-serif;
  --mf-font-card: 'Source Sans 3', Arial, Helvetica, sans-serif;
  --mf-font-letter-spacing: -0.004em;
  --mf-heading-letter-spacing: -0.024em;
}

html[data-mf-font="arial"] {
  --mf-font-main: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  --mf-font-heading: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  --mf-font-ui: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  --mf-font-card: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  --mf-font-letter-spacing: -0.005em;
  --mf-heading-letter-spacing: -0.032em;
}

/* Legacy saved values fallback. */
html[data-mf-font="default"],
html[data-mf-font="verdana"],
html[data-mf-font="tahoma"],
html[data-mf-font="georgia"],
html[data-mf-font="trebuchet"] {
  --mf-font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mf-font-heading: var(--mf-font-main);
  --mf-font-ui: var(--mf-font-main);
  --mf-font-card: var(--mf-font-main);
  --mf-font-letter-spacing: 0;
  --mf-heading-letter-spacing: -0.02em;
}
html[data-mf-font="serious"] {
  --mf-font-main: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  --mf-font-heading: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  --mf-font-ui: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  --mf-font-card: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  --mf-font-letter-spacing: -0.005em;
  --mf-heading-letter-spacing: -0.032em;
}
html[data-mf-font="clean"] {
  --mf-font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mf-font-heading: var(--mf-font-main);
  --mf-font-ui: var(--mf-font-main);
  --mf-font-card: var(--mf-font-main);
  --mf-font-letter-spacing: -0.006em;
  --mf-heading-letter-spacing: -0.035em;
}
html[data-mf-font="cinema"] {
  --mf-font-main: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mf-font-heading: var(--mf-font-main);
  --mf-font-ui: var(--mf-font-main);
  --mf-font-card: var(--mf-font-main);
  --mf-font-letter-spacing: -0.004em;
  --mf-heading-letter-spacing: -0.028em;
}
html[data-mf-font="compact"] {
  --mf-font-main: 'Roboto', Arial, Helvetica, sans-serif;
  --mf-font-heading: var(--mf-font-main);
  --mf-font-ui: var(--mf-font-main);
  --mf-font-card: var(--mf-font-main);
  --mf-font-letter-spacing: -0.002em;
  --mf-heading-letter-spacing: -0.026em;
}

html[data-mf-font] body,
html[data-mf-font] #page,
html[data-mf-font] #page :where(p, a, span, div, li, label, small, strong, em, b, button, input, select, textarea, option, table, th, td, figcaption, blockquote) {
  font-family: var(--mf-font-main) !important;
  letter-spacing: var(--mf-font-letter-spacing);
}

html[data-mf-font] #page :where(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .navbar-nav, .navbar-nav a, .dropdown-menu a, .movie-title, .card-title, .page-title, .entry-title, .section-title, .archive-title, .recently-added-title, .recently-added-h1, .featured-homepage-title, .featured-movies-title, .single-title, .detail-title, .footer-custom, .mfb-wrap, .mfb-wrap *) {
  font-family: var(--mf-font-heading) !important;
  letter-spacing: var(--mf-heading-letter-spacing);
}

html[data-mf-font] #page :where(button, .btn, input, select, textarea, .navbar, .navbar-nav, .dropdown-menu, .pagination, .page-numbers, .nav-link, .mf-header-icon-btn, .mf-search-modal, .mf-player-tabs, .server-tabs, .mfb-filter, .mfb-chip, .mfb-pagination) {
  font-family: var(--mf-font-ui) !important;
}

html[data-mf-font] #page :where(.card, .movie-card, .poster-card, .recently-added-card, .featured-homepage-card, .featured-movies-card, .archive-card, .mcs-card, .mfb-card, .mfb-grid, .mfb-grid *) {
  font-family: var(--mf-font-card) !important;
}

html[data-mf-font] #page :where(svg, svg *, img, video, iframe, canvas, .dashicons, .fa, .fas, .far, .fab, .bi, [class^="icon-"], [class*=" icon-"]) {
  font-family: initial !important;
}

h1, h2, h3, h4, h5, h6,
.navbar-nav,
.movie-title,
.card-title,
.page-title,
.section-title,
.footer-custom {
  font-family: var(--mf-font-heading);
  letter-spacing: var(--mf-heading-letter-spacing);
}

p, li, a, button, input, select, textarea {
  font-family: inherit;
}

/* =====================================================
   NAVBAR / HEADER
   ===================================================== */
.header-glass {
  background-color: rgba(30, 58, 95, 0.12) !important;
  border-bottom: 1px solid rgba(77, 157, 255, 0.05);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  color: var(--mf-text);
  transition: background 0.3s ease;
  padding: 3px 16px !important;
}

.navbar-collapse {
  justify-content: flex-end;
}

.mf-header-logo {
  margin-right: 12px;
}

/* Slim navbar */
.navbar {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  min-height: 60px !important;
}

/* Logo: keep original max-width but cap the height so the bar stays slim */
.navbar-brand img {
  max-width: 180px;
  max-height: 50px;
  height: auto;
  width: auto;
}

/* Nav links */
.navbar-nav a {
  display: block;
  text-decoration: none;
  padding: 0.3rem 0.85rem;
  color: #e8f0ff;
  transition: color 0.2s ease;
  font-weight: 500;
  font-size: 0.9rem;
}

.navbar-nav li:hover > a {
  color: var(--mf-bright-blue);
}

.navbar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar-nav li {
  position: relative;
}

/* Dropdowns */
.navbar-nav .sub-menu,
.navbar-nav .children {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--mf-white);
  min-width: 200px;
  box-shadow: 0 8px 32px rgba(79, 111, 255, 0.15);
  border-radius: 12px;
  border: 1px solid var(--mf-border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 1000;
}

.navbar-nav li:hover>.sub-menu,
.navbar-nav li:hover>.children {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar-nav .sub-menu li,
.navbar-nav .children li {
  width: 100%;
}

.navbar-nav .sub-menu a,
.navbar-nav .children a {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #f0f0ff;
  color: #1a1a2e !important;
  font-weight: 400;
}

.navbar-nav .sub-menu li:last-child a,
.navbar-nav .children li:last-child a {
  border-bottom: none;
}

.navbar-nav .sub-menu a:hover,
.navbar-nav .children a:hover {
  color: var(--mf-bright-blue) !important;
  background: rgba(79, 111, 255, 0.04);
}

.navbar-nav .sub-menu .sub-menu,
.navbar-nav .children .children {
  top: 0;
  left: 100%;
}

.sub-menu {
  list-style: none;
  padding-left: 0;
}

/* Submenu arrow */
.menu-item-has-children>a,
.page_item_has_children>a,
.has-submenu>a {
  position: relative;
  padding-right: 2rem !important;
}

.menu-item-has-children>a::after,
.page_item_has_children>a::after,
.has-submenu>a::after {
  content: '▾';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
  color: var(--mf-bright-blue);
}

@media (min-width: 992px) {
  .menu-item-has-children:hover>a::after,
  .page_item_has_children:hover>a::after,
  .has-submenu:hover>a::after {
    transform: translateY(-50%) rotate(180deg);
  }
}

/* Mobile nav */
@media (max-width: 991.98px) {
  .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
  }
  .navbar-nav li {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  /* The link itself gets all remaining space */
  .navbar-nav li > a {
    flex: 1 1 auto;
    min-width: 0;
  }

  /* Separate toggle button for submenu expand */
.of-nav-toggle {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: none;
    color: var(--mf-bright-blue);
    border-radius: 8px;
    transition: background 0.2s, transform 0.25s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .of-nav-toggle:hover,
  .of-nav-toggle:focus {
    background: rgba(79,111,255,0.08);
    outline: none;
  }
  .of-nav-toggle[aria-expanded="true"] {
    transform: rotate(180deg);
    color: var(--mf-light-blue);
  }

  /* Submenu takes full row */
  .navbar-nav .sub-menu,
  .navbar-nav .children {
    flex: 0 0 100%;
    width: 100%;
    position: static;
    box-shadow: inset 0 1px 0 rgba(79, 111, 255, 0.10), 0 10px 22px rgba(15, 23, 42, 0.08);
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    margin: 8px 0 4px;
    padding: 8px;
    border: 1px solid rgba(79, 111, 255, 0.18);
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
  }
  .navbar-nav .sub-menu.active,
  .navbar-nav .children.active {
    display: block !important;
  }
  .navbar-nav .sub-menu .sub-menu,
  .navbar-nav .children .children {
    left: 0;
  }
  .navbar-nav .sub-menu a,
  .navbar-nav .children a {
    margin: 0;
    padding: 0.72rem 1rem !important;
    border-bottom-color: rgba(79, 111, 255, 0.10);
    color: #1a1a2e !important;
  }

  /* Remove CSS ::after arrow on mobile — we have the JS button now */
  .menu-item-has-children > a::after,
  .page_item_has_children > a::after,
  .has-submenu > a::after {
    display: none !important;
  }
}

/* Hide toggle buttons on desktop */
@media (min-width: 992px) {
  .of-nav-toggle {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* =====================================================
   BUTTONS — Gradient Myflixer style
   ===================================================== */
.btn-primary {
  background: var(--mf-grad) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 600;
  border-radius: 10px;
  transition: opacity 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 18px rgba(79, 111, 255, 0.3);
}
.btn-primary:hover, .btn-primary:focus {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.35) !important;
  background: var(--mf-grad-h) !important;
  color: #fff !important;
}

.btn-secondary {
  background: rgba(79, 111, 255, 0.08) !important;
  border: 1.5px solid var(--mf-border) !important;
  color: var(--mf-bright-blue) !important;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.2s ease;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: rgba(79, 111, 255, 0.14) !important;
  border-color: var(--mf-bright-blue) !important;
  color: var(--mf-bright-blue) !important;
}

/* =====================================================
   CARDS
   ===================================================== */
.card {
  background: var(--of-card-bg);
  border: 1px solid var(--mf-border) !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 16px rgba(79, 111, 255, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(79, 111, 255, 0.18) !important;
  border-color: rgba(79, 111, 255, 0.3) !important;
}

.card-img-top {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 2 / 3 !important;
  object-fit: cover !important;
}

.card.h-100 {
  display: flex;
  flex-direction: column;
}
.card.h-100 img { flex-shrink: 0; }
.card.h-100 .card-body {
  flex-shrink: 0;
  flex-grow: 0;
}

.card-body {
  background: rgba(255, 255, 255, 0.25);
  color: #1a1a2e !important;
}

.card-title {
  color: #1a1a2e !important;
  font-weight: 600;
}

.card-body * {
  color: #1a1a2e !important;
}

/* =====================================================
   SECTION TITLES
   ===================================================== */
.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
  color: var(--mf-text);
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60%;
  height: 3px;
  background: var(--mf-grad);
  border-radius: 2px;
}

/* =====================================================
   CAROUSEL / MCS
   ===================================================== */
.mcs-wrap {
  position: relative;
}
.mcs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid var(--mf-border);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.2rem;
  cursor: none;
  box-shadow: 0 2px 14px rgba(79, 111, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
  flex-shrink: 0;
  padding: 0;
  color: var(--mf-bright-blue);
}
.mcs-arrow:hover {
  background: #fff;
  border-color: var(--mf-bright-blue);
  box-shadow: 0 4px 20px rgba(79, 111, 255, 0.25);
}
.mcs-arrow-left  { left:  -10px; }
.mcs-arrow-right { right: -10px; }
.mcs-scroll {
  cursor: none !important;
  user-select: none;
}
.mcs-scroll.is-dragging { cursor: none !important; }

.mcs-item {
  min-width: 160px;
  max-width: 160px;
  flex: 0 0 auto;
}
.mcs-card {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid transparent;
  transition: border-color 0.2s ease;
}
.mcs-card:hover {
  border-color: rgba(79, 111, 255, 0.4);
}
.mcs-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
}
.mcs-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background: linear-gradient(to top, rgba(10,10,30,0.92), rgba(10,10,30,0.45), transparent);
  color: #fff;
}
.mcs-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mcs-meta {
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mcs-imdb {
  background: linear-gradient(135deg, var(--mf-bright-blue), var(--mf-bright-blue));
  color: #fff;
  padding: 2px 7px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.03em;
}

/* =====================================================
   SEARCH
   ===================================================== */
.search-main input {
  padding: 15px 20px;
  font-size: 20px;
  border-radius: 12px;
  border: 1.5px solid var(--mf-border);
  background: rgba(255,255,255,0.85);
  color: var(--mf-dark-blue);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search-main input:focus {
  border-color: var(--mf-bright-blue);
  box-shadow: 0 0 0 4px rgba(77, 157, 255, 0.12);
  background: #fff;
}

/* Search main form */
.search-main .search-form-custom {
  width: 100%;
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.search-main .search-form-custom__label {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  margin: 0;
}
.search-main .search-form-custom .search-field {
  width: 100%;
  min-height: 56px;
  font-size: 20px;
  border-radius: 12px;
  border: 1.5px solid var(--mf-border);
  background: rgba(255,255,255,0.85);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-main .search-form-custom .search-field:focus {
  border-color: var(--mf-bright-blue);
  box-shadow: 0 0 0 4px rgba(77,157,255,0.12);
  outline: none;
}
.search-main .search-form-custom__submit {
  flex: 0 0 auto;
  min-width: 140px;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  background: var(--mf-grad);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 4px 18px rgba(79,111,255,0.3);
  transition: opacity 0.2s, box-shadow 0.2s;
}
.search-main .search-form-custom__submit:hover {
  box-shadow: 0 8px 28px rgba(77,157,255,0.35);
  box-shadow: 0 8px 28px rgba(124,58,237,0.35);
}
.search-main .search-form-custom__submit-icon {
  display: none;
}

@media (max-width: 576px) {
  .search-main .search-form-custom { gap: 8px; }
  .search-main .search-form-custom__submit {
    width: 56px;
    min-width: 56px;
    min-height: 56px;
    padding: 0;
    margin-left: 0 !important;
  }
  .search-main .search-form-custom__submit-text { display: none; }
  .search-main .search-form-custom__submit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
  }
}

/* Header search */
.header-glass .search-form-custom,
.navbar .search-form-custom {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: auto;
  margin: 0;
  padding: 0;
  gap: 0;
}
.header-glass .search-form-custom__label,
.navbar .search-form-custom__label {
  display: block;
  margin: 0;
  width: 230px;
  min-width: 230px;
  flex: 0 0 230px;
}
.header-glass .search-form-custom__submit,
.navbar .search-form-custom__submit {
  display: none !important;
}
.header-glass .search-form-custom .search-field,
.navbar .search-form-custom .search-field {
  width: 100%;
  height: 36px;
  min-height: 36px;
  border-radius: 6px;
  font-size: 14px;
  border: 1.5px solid var(--mf-border);
  background: rgba(255,255,255,0.8);
  margin: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.header-glass .search-form-custom .search-field:focus,
.navbar .search-form-custom .search-field:focus {
  border-color: var(--mf-bright-blue);
  box-shadow: 0 0 0 3px rgba(77,157,255,0.10);
  outline: none;
}
.header-glass form,
.header-glass .search-form,
.header-glass .search-form-custom,
.navbar form,
.navbar .search-form,
.navbar .search-form-custom {
  align-self: center;
}
@media (max-width: 991.98px) {
  .header-glass .search-form-custom__label,
  .navbar .search-form-custom__label {
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
  }
}

/* =====================================================
   BREADCRUMB
   ===================================================== */
.breadcrumb {
  margin-top: 3rem;
  background: transparent;
  padding: 0;
}
.breadcrumb-item a {
  color: var(--mf-bright-blue);
  text-decoration: none;
  font-weight: 500;
}
.breadcrumb-item a:hover {
  color: var(--mf-light-blue);
  text-decoration: underline;
}
.breadcrumb-item.active {
  color: #ffffff;
  font-weight: 600;
}
.breadcrumb-item + .breadcrumb-item::before {
  color: var(--mf-muted);
}

/* =====================================================
   PAGINATION
   ===================================================== */
.page-link {
  color: var(--mf-bright-blue) !important;
  border-color: var(--mf-border) !important;
  border-radius: 8px !important;
  margin: 0 2px;
  font-weight: 500;
  transition: all 0.2s ease;
}
.page-link:hover {
  background: rgba(79, 111, 255, 0.08) !important;
  border-color: var(--mf-bright-blue) !important;
  color: var(--mf-bright-blue) !important;
}
.btn-primary {
  background: var(--mf-grad) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(79, 111, 255, 0.3);
}
.page-item.disabled .page-link {
  color: var(--mf-muted) !important;
  border-color: var(--mf-border) !important;
}

/* =====================================================
   FOOTER
   ===================================================== */
footer,
.footer-custom {
  background: linear-gradient(180deg, #0f0f1a 0%, #0a0a14 100%) !important;
  border-top: 1px solid rgba(79, 111, 255, 0.15);
  color: #e2e8f0 !important;
}

.footer-logo {
  max-height: 60px;
  width: auto;
}
.footer-logo-link {
  display: inline-block;
}
.footer-site-title a:hover {
  text-decoration: underline;
}
.footer-description {
  max-width: 600px;
  margin: 0 auto;
  color: #94a3b8;
}
.footer-nav .nav-link,
.footer-nav a {
  color: #94a3b8 !important;
  padding: 0.25rem 0.5rem !important;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.footer-nav .nav-link:hover,
.footer-nav .nav-link:focus,
.footer-nav a:hover {
  color: var(--mf-bright-blue) !important;
  text-decoration: none;
  background-color: rgba(0, 207, 255, 0.08);
  border-radius: 0.25rem;
}
.footer-links a {
  color: #94a3b8;
  transition: color 0.15s ease;
}
.footer-links a:hover,
.footer-links a:focus {
  color: var(--mf-bright-blue);
  text-decoration: underline;
}

/* Footer copyright */
.footer-copyright-row {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.footer-copyright-row.border-top {
  border-top: 0 !important;
}

.footer-meta {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Footer meta link */
.footer-meta a {
  color: rgba(226, 232, 240, 0.72) !important;
  text-decoration: none !important;
  transition: color 0.18s ease;
}
.footer-meta a:hover,
.footer-meta a:focus {
  color: var(--mf-bright-blue) !important;
  text-decoration: none !important;
}



/* Admin-only font tester panel */
.mf-admin-font-panel {
  display: block;
  margin: -2px 0 14px;
  color: rgba(226, 232, 240, 0.72);
  pointer-events: auto;
}

.mf-admin-font-panel__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 8px 0 0;
}

.mf-admin-font-panel__label {
  font-family: var(--mf-font-ui) !important;
  font-size: 0.68rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.72);
}

.mf-admin-font-panel__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.mf-font-choice {
  appearance: none;
  border: 1px solid rgba(77, 157, 255, 0.22);
  background: rgba(8, 15, 28, 0.62);
  color: rgba(226, 232, 240, 0.76);
  padding: 6px 9px;
  border-radius: 0;
  font-family: var(--mf-font-ui) !important;
  font-size: 0.74rem;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.mf-font-choice:hover,
.mf-font-choice:focus {
  border-color: rgba(77, 157, 255, 0.54);
  color: #ffffff;
  background: rgba(77, 157, 255, 0.12);
  outline: none;
}

.mf-font-choice.is-active {
  border-color: rgba(77, 157, 255, 0.82);
  color: #ffffff;
  background: rgba(77, 157, 255, 0.17);
}

@media (min-width: 768px) {
  .footer-description { margin: 0; }
}

@media (max-width: 991.98px) {
  .mf-admin-font-panel {
    margin: 0 0 10px;
  }

  .mf-admin-font-panel__inner {
    justify-content: flex-start;
    padding: 8px 16px 0;
  }

  .mf-admin-font-panel__buttons {
    justify-content: flex-start;
  }
}


/* =====================================================
   MODAL
   ===================================================== */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(5, 5, 20, 0.92);
  animation: fadeIn 0.3s;
  backdrop-filter: blur(4px);
}
.modal-content {
  position: relative;
  margin: 5% auto;
  width: 80%;
  max-width: 800px;
  animation: slideIn 0.3s;
}
.close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 30px;
  font-weight: bold;
  cursor: none;
  z-index: 10000;
  transition: color 0.3s;
}
.close:hover { color: var(--mf-light-blue); }
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideIn {
  from { transform: translateY(-50px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* =====================================================
   PLAYER
   ===================================================== */
.player-frame--lazy {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(circle at 20% 20%, rgba(0,207,255,0.08), transparent 30%),
    radial-gradient(circle at 80% 30%, rgba(79,111,255,0.14), transparent 28%),
    linear-gradient(135deg, #0d0f1e 0%, #111428 45%, #08091a 100%);
  box-shadow: 0 18px 50px rgba(0,0,0,0.28);
}
.player-frame__iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 260px;
  background: #000;
  border: 0;
}
.player-poster {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%; height: 100%;
  border: 0; padding: 0;
  cursor: none;
  overflow: hidden;
  border-radius: 20px;
  background: transparent;
  text-align: left;
}
.player-poster__bg,
.player-poster__noise {
  position: absolute;
  inset: 0;
}
.player-poster__bg {
  background:
    linear-gradient(90deg, rgba(10,12,28,0.92) 0%, rgba(10,12,28,0.55) 38%, rgba(10,12,28,0.22) 100%),
    radial-gradient(circle at 72% 36%, rgba(0,207,255,0.16), transparent 18%),
    radial-gradient(circle at 78% 30%, rgba(79,111,255,0.12), transparent 10%),
    radial-gradient(circle at 82% 68%, rgba(124,58,237,0.14), transparent 18%);
}
.player-poster__bg::before,
.player-poster__bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}
.player-poster__bg::before {
  width: 380px; height: 380px;
  right: -70px; top: -90px;
  background: radial-gradient(circle, rgba(79,111,255,0.22), rgba(79,111,255,0.03) 55%, transparent 72%);
}
.player-poster__bg::after {
  width: 520px; height: 520px;
  right: -110px; bottom: -180px;
  background: radial-gradient(circle, rgba(10,12,28,0.02), rgba(10,12,28,0.55) 55%, rgba(10,12,28,0.92) 75%);
}
.player-poster__noise {
  opacity: 0.16;
  mix-blend-mode: soft-light;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 3px 3px, 3px 3px;
}
.player-poster__content {
  position: absolute;
  left: 48px; top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  max-width: min(480px, 52%);
  color: #fff;
}
.player-poster__eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  background: rgba(79,111,255,0.15);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.player-poster__title {
  display: block;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 0.96;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-shadow: 0 8px 22px rgba(0,0,0,0.35);
}
.player-poster__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  font-size: 14px;
  color: rgba(255,255,255,0.92);
}
.player-poster__meta span {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(79,111,255,0.12);
  border: 1px solid rgba(79,111,255,0.18);
  backdrop-filter: blur(8px);
}
.player-poster__rating {
  color: #fff;
  background: var(--mf-grad) !important;
  border: none !important;
  font-weight: 700;
}
.player-poster__play {
  position: absolute;
  right: 56px; top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 110px; height: 110px;
  transition: transform 0.25s ease, filter 0.25s ease;
  filter: drop-shadow(0 14px 30px rgba(0,0,0,0.28));
}
.player-poster__play-icon {
  width: 100%; height: 100%;
}
.player-poster__play-icon circle {
  fill: rgba(79,111,255,0.18);
  stroke: rgba(79,111,255,0.5);
  stroke-width: 2;
}
.player-poster__play-icon polygon {
  fill: #fff;
}
.player-poster:hover .player-poster__play,
.player-poster:focus-visible .player-poster__play {
  transform: translateY(-50%) scale(1.06);
}
.player-poster:focus-visible {
  outline: 2px solid var(--mf-bright-blue);
  outline-offset: 3px;
}
.player-frame--loaded .player-poster {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.player-poster__active-player {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--mf-grad);
  color: #fff;
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(79,111,255,0.28);
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

@media (max-width: 991.98px) {
  .player-poster__content { left: 24px; max-width: 62%; }
  .player-poster__play { right: 24px; width: 84px; height: 84px; }
}
@media (max-width: 767.98px) {
  .player-frame__iframe { min-height: 220px; }
  .player-poster__content {
    left: 18px; right: 18px;
    top: auto; bottom: 18px;
    transform: none; max-width: none;
  }
  .player-poster__title { font-size: clamp(22px, 7vw, 34px); }
  .player-poster__meta { margin-top: 12px; gap: 8px; font-size: 12px; }
  .player-poster__play { top: 34%; right: 18px; width: 72px; height: 72px; }
  .player-poster__active-player {
    margin-bottom: 10px;
    padding: 8px 12px;
    font-size: 14px;
    letter-spacing: 0.14em;
  }
}

/* =====================================================
   MISC
   ===================================================== */
footer { flex-shrink: 0; }
.site-main { min-height: 70vh; }

/* Links */
a {
  color: var(--mf-bright-blue);
  transition: color 0.2s ease;
}
a:hover { color: var(--mf-light-blue); }

/* Text utilities */
.text-dark { color: var(--mf-text) !important; }
.text-muted { color: var(--mf-muted) !important; }
.bg-light { background-color: var(--mf-white) !important; }
.bg-white { background-color: var(--mf-white) !important; }

/* Borders */
.border { border-color: var(--mf-border) !important; }
.border-secondary { border-color: rgba(255,255,255,0.08) !important; }

/* Shadow */
.shadow-sm { box-shadow: 0 2px 14px rgba(79,111,255,0.08) !important; }

/* Badges */
.badge.bg-primary {
  background: var(--mf-grad) !important;
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
}
.badge.bg-secondary {
  background: rgba(79,111,255,0.12) !important;
  color: var(--mf-bright-blue);
  border-radius: 6px;
}

/* Inputs general */
input[type="text"],
input[type="search"],
input[type="email"],
input[type="url"],
textarea,
select {
  border-color: var(--mf-border);
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--mf-bright-blue) !important;
  box-shadow: 0 8px 28px rgba(77, 157, 255, 0.35) !important;
  outline: none;
}

/* Plain text container */
.plain-text-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 16px;
}
.plain-text-entry .entry-title {
  margin: 0 0 16px;
  font-size: 2rem;
  line-height: 1.2;
  color: var(--mf-text);
}
.plain-text-entry .entry-content p {
  margin: 0 0 1rem;
  line-height: 1.7;
  color: var(--mf-text);
}

/* Breadcrumbs */
.breadcrumbs-wrapper,
.breadcrumbs {
  font-size: 0.9rem;
  margin-bottom: 20px;
  color: var(--mf-muted);
}
.breadcrumbs a {
  color: var(--mf-bright-blue);
  text-decoration: none;
}
.breadcrumbs a:hover { text-decoration: underline; }

/* =====================================================
   HEADINGS — H1 / H2 / H3
   ===================================================== */

/* H1 — page title */
h1,
.site-main h1,
.entry-title,
article h1 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--mf-text);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

/* H1 gradient underline */
h1::after,
.site-main h1::after,
.entry-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: var(--mf-grad);
  border-radius: 2px;
  margin-top: 8px;
}

/* suppress underline in navbar, footer, cards */
.navbar h1::after,
footer h1::after,
.card h1::after,
.card-body h1::after,
.breadcrumb h1::after,
.recently-added-block h1::after,
.recently-added-h1::after,
.featured-movies-title::after,
h1.recently-added-h1::after {
  display: none !important;
}

/* H2 — section header */
h2,
.site-main h2 {
  font-size: clamp(1.2rem, 2.8vw, 1.75rem);
  font-weight: 700;
  color: #0e1a29;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-top: 2rem;
  margin-bottom: 0.85rem;
  padding-left: 14px;
  border-left: 3px solid var(--mf-bright-blue);
  position: relative;
}

/* suppress border-left in some contexts */
.navbar h2,
footer h2,
.card h2,
.featured-movies-title,
.recently-added-block h2,
h2.featured-movies-title,
h2.mb-3 {
  border-left: none !important;
  padding-left: 0 !important;
}

/* H3 — subsection */
h3,
.site-main h3 {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 700;
  color: var(--mf-bright-blue);
  letter-spacing: 0.01em;
  line-height: 1.25;
  margin-top: 1.5rem;
  margin-bottom: 0.65rem;
}


/* =====================================================
   BREADCRUMB — reduce top margin
   ===================================================== */
.breadcrumb {
  margin-top: 0.75rem !important;
}

/* =====================================================
   RATING COLORS
   ===================================================== */
.rating-high {
  color: #16a34a !important;
  background: rgba(34,197,94,0.10) !important;
  border-color: rgba(34,197,94,0.25) !important;
}
.rating-mid {
  color: #b45309 !important;
  background: rgba(245,158,11,0.10) !important;
  border-color: rgba(245,158,11,0.25) !important;
}
.rating-low {
  color: #dc2626 !important;
  background: rgba(239,68,68,0.10) !important;
  border-color: rgba(239,68,68,0.25) !important;
}

/* =====================================================
   MOVIE DETAIL PAGE — info block
   ===================================================== */
.movie-info-block {
  background: rgba(30, 58, 95, 0.25) !important;
  border: 1px solid rgba(79,111,255,0.3) !important;
  border-radius: 4px;
  padding: 24px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.2);
}

.movie-info-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mf-bright-blue) !important;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(79,111,255,0.3);
}

.movie-info-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(79,111,255,0.15);
  font-size: 0.9rem;
}
.movie-info-row:last-child { border-bottom: none; }

.movie-info-label {
  flex: 0 0 130px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mf-bright-blue) !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.movie-info-value {
  flex: 1;
  color: var(--mf-text) !important;
  font-weight: 500;
  line-height: 1.45;
  min-width: 0;
}

.movie-info-value a {
  color: var(--mf-bright-blue);
  text-decoration: none;
  transition: color 0.15s;
}
.movie-info-value a:hover { color: var(--mf-light-blue); text-decoration: underline; }

/* Ratings row — pill badges */
.movie-ratings-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  margin-bottom: 8px;
}

.movie-rating-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(79,111,255,0.15);
  background: rgba(79,111,255,0.04);
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.movie-rating-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(79,111,255,0.14);
}

.movie-rating-pill__source {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--mf-muted);
  margin-bottom: 4px;
}

.movie-rating-pill__value {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--mf-text);
}

.movie-rating-pill.rating-high { border-color: rgba(34,197,94,0.3); background: rgba(34,197,94,0.07); }
.movie-rating-pill.rating-high .movie-rating-pill__value { color: #16a34a; }
.movie-rating-pill.rating-mid  { border-color: rgba(245,158,11,0.3); background: rgba(245,158,11,0.07); }
.movie-rating-pill.rating-mid  .movie-rating-pill__value { color: #b45309; }
.movie-rating-pill.rating-low  { border-color: rgba(239,68,68,0.3);  background: rgba(239,68,68,0.07); }
.movie-rating-pill.rating-low  .movie-rating-pill__value { color: #dc2626; }

/* Overview */
.movie-overview {
  font-size: 0.95rem;
  line-height: 1.72;
  color: #ffffff;
  margin-bottom: 0;
}

/* =====================================================
   NOW PLAYING — player tabs
   ===================================================== */
.now-playing-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(79,111,255,0.08);
  border: 1px solid rgba(79,111,255,0.18);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mf-bright-blue);
  margin-bottom: 12px;
}

.now-playing-label::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mf-bright-blue);
  animation: nplive 1.6s ease-in-out infinite;
}

@keyframes nplive {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(0.7); }
}

/* Player tab pills */
#playerTabs {
  border-bottom: none !important;
  gap: 8px;
  flex-wrap: wrap;
  padding: 4px 0;
  justify-content: center !important;
}

.player-tab-btn {
  border: 1.5px solid rgba(79,111,255,0.25) !important;
  border-radius: 10px !important;
  padding: 7px 20px !important;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(79,111,255,0.05) !important;
  color: var(--mf-bright-blue) !important;
  letter-spacing: 0.04em;
  transition: all 0.22s ease;
  box-shadow: none;
}

.player-tab-btn.active {
  background: var(--mf-grad) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(79,111,255,0.3);
  transform: translateY(-1px);
}

.player-tab-btn:hover:not(.active) {
  background: rgba(79,111,255,0.12) !important;
  border-color: var(--mf-bright-blue) !important;
  transform: translateY(-1px);
}

/* =====================================================
   GHOST BUTTON — Myflixer style (replaces btn-outline-primary)
   ===================================================== */
.of-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  border: 1.5px solid rgba(79,111,255,0.3);
  border-radius: 8px;
  color: var(--mf-bright-blue);
  font-weight: 600;
  font-size: 0.875rem;
  background: rgba(79,111,255,0.04);
  text-decoration: none !important;
  transition: all 0.22s ease;
  white-space: nowrap;
  cursor: none;
}
.of-btn-ghost:hover,
.of-btn-ghost:focus {
  background: var(--mf-grad) !important;
  border-color: transparent;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(79,111,255,0.28);
  text-decoration: none !important;
}

/* =====================================================
   NOW PLAYING BAR — TV show page
   ===================================================== */
.now-playing-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 18px;
  margin-bottom: 14px;
  background: rgba(79,111,255,0.04);
  border: 1px solid rgba(79,111,255,0.12);
  border-radius: 4px;
}

.now-playing-bar__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--mf-grad);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 4px;
  flex-shrink: 0;
}

.now-playing-bar__badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: nplive 1.6s ease-in-out infinite;
}

.now-playing-bar__ep {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}

.now-playing-bar__season {
  font-size: 11px;
  font-weight: 700;
  color: var(--mf-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.now-playing-bar__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #92aacb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.now-playing-bar__action {
  flex-shrink: 0;
  margin-left: auto;
}

/* episode-card Myflixer style */
.episode-card-glass {
  background: rgba(30, 58, 95, 0.25) !important;
  border: 1px solid rgba(79,111,255,0.3) !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}
.episode-card-glass:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 24px rgba(79,111,255,0.14) !important;
  border-color: rgba(79,111,255,0.28) !important;
}
.episode-card-glass.border-primary {
  border-color: rgba(79,111,255,0.4) !important;
}

/* =====================================================
   FEATURED BLOCK (Movies & TV Shows)
   ===================================================== */
.featured-movies-block {
  background: #fff;
  border: 1px solid rgba(79,111,255,0.12);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 18px rgba(77,157,255,0.3);
}

.featured-movies-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(79,111,255,0.10);
}

.featured-movies-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
  border-left: none !important;
  padding-left: 0 !important;
  margin-top: 0 !important;
}

.featured-poster-link { display: block; }

.featured-poster-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 2/3;
  background: #f0f0ff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.featured-poster-link:hover .featured-poster-wrap {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(79,111,255,0.22);
}

.featured-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-poster-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 8px 8px;
  background: linear-gradient(to top, rgba(10,10,30,0.94) 0%, rgba(10,10,30,0.5) 60%, transparent 100%);
  color: #fff;
}

.featured-poster-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-poster-meta {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
}

.featured-meta-year {
  font-size: 10px;
  color: rgba(255,255,255,0.7);
}

.featured-meta-rating {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
}

.featured-meta-rating.rating-high { background: rgba(34,197,94,0.22); color: #86efac; }
.featured-meta-rating.rating-mid  { background: rgba(245,158,11,0.22); color: #fcd34d; }
.featured-meta-rating.rating-low  { background: rgba(239,68,68,0.22);  color: #fca5a5; }

/* Season tabs */
#seasonTabs {
  border-bottom: 2px solid rgba(79,111,255,0.12) !important;
  gap: 4px;
}
.season-tab-btn {
  border: 1.5px solid transparent !important;
  border-radius: 8px 8px 0 0 !important;
  padding: 6px 16px !important;
  font-size: 0.82rem;
  font-weight: 600;
  background: transparent !important;
  color: var(--mf-muted) !important;
  transition: all 0.2s ease;
}
.season-tab-btn.active {
  background: rgba(79,111,255,0.08) !important;
  border-color: rgba(79,111,255,0.2) rgba(79,111,255,0.2) transparent !important;
  color: var(--mf-bright-blue);
}
.season-tab-btn:hover:not(.active) {
  color: var(--mf-bright-blue);
  background: rgba(79,111,255,0.04) !important;
}

/* =====================================================
   HOMEPAGE — Recently Added & Featured blocks
   ===================================================== */

/* H1 above blocks */
.recently-added-h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #1a1a2e;
  text-align: center;
  margin-bottom: 20px;
  margin-top: 0;
  letter-spacing: -0.01em;
  line-height: 1.2;
  position: relative;
  display: inline-block;
  width: 100%;
}
.recently-added-h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #00CFFF, #4F6FFF);
  border-radius: 2px;
  margin: 10px auto 0;
}
@media (max-width: 576px) { .recently-added-h1 { font-size: 1.3rem; } }

/* Recently Added block */
.recently-added-block {
  background: #fff;
  border: 1px solid rgba(79,111,255,0.12);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(79,111,255,0.10);
  text-align: left;
}
.recently-added-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: #F5F7FF;
  border-bottom: 1px solid rgba(79,111,255,0.10);
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.recently-added-icon { font-size: 1.1rem; line-height: 1; }
.recently-added-list { padding: 6px 0; }
.recently-added-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 22px;
  border-bottom: 1px solid rgba(79,111,255,0.05);
  transition: background 0.15s ease;
}
.recently-added-item:last-child { border-bottom: none; }
.recently-added-item:hover { background: rgba(79,111,255,0.04); }
.recently-added-date {
  flex-shrink: 0;
  font-size: 0.78rem;
  color: #6b7280;
  font-variant-numeric: tabular-nums;
  min-width: 88px;
}
.recently-added-title-wrap {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}
.recently-added-title {
  font-size: 0.9rem;
  color: #1a1a2e;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s ease;
  flex-shrink: 1;
  min-width: 0;
}
.recently-added-title:hover { color: #4F6FFF; text-decoration: none; }
.recently-added-year {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: #9ca3af;
  white-space: nowrap;
}
.recently-added-genres {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 100px;
  max-width: 180px;
  text-align: right;
}
.recently-added-badge {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}
.badge-movie  { background: rgba(79,111,255,0.10); color: #4F6FFF; border: 1px solid rgba(79,111,255,0.25); }
.badge-tvshow { background: rgba(0,207,255,0.10);  color: #00A8CF; border: 1px solid rgba(0,207,255,0.25); }
.badge-episode { background: rgba(124,58,237,0.10); color: #7C3AED; border: 1px solid rgba(124,58,237,0.25); }
@media (max-width: 768px) { .recently-added-genres { display: none; } }
@media (max-width: 576px) {
  .recently-added-item  { padding: 9px 14px; gap: 10px; }
  .recently-added-date  { min-width: 72px; font-size: 0.72rem; }
  .recently-added-title { font-size: 0.82rem; }
  .recently-added-year  { display: none; }
  .recently-added-header { padding: 12px 14px; font-size: 0.9rem; }
}

/* Featured Movies / TV block (homepage list) */
.featured-homepage-block {
  background: #fff;
  border: 1px solid rgba(79,111,255,0.18);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 32px rgba(79,111,255,0.13);
  text-align: left;
}
.featured-homepage-header {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 16px 24px 16px 38px;
  background:
    linear-gradient(90deg, rgba(79,111,255,0.11) 0%, rgba(0,207,255,0.06) 100%);
  border-bottom: 1px solid rgba(79,111,255,0.12);
  font-size: 1.05rem;
  font-weight: 800;
  color: #1a1a2e;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}
.featured-homepage-header::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 50%;
  width: 4px;
  height: 28px;
  transform: translateY(-50%);
  background: linear-gradient(180deg, #4F6FFF 0%, #00CFFF 100%);
  box-shadow: 0 0 18px rgba(79,111,255,0.40);
}
.featured-homepage-heading {
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}
.featured-homepage-list { padding: 4px 0; }
.featured-homepage-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 11px 24px;
  border-bottom: 1px solid rgba(79,111,255,0.05);
  transition: background 0.15s ease;
}
.featured-homepage-item:last-child { border-bottom: none; }
.featured-homepage-item:hover { background: rgba(79,111,255,0.05); }
.featured-homepage-num {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(79,111,255,0.45);
  min-width: 24px;
  text-align: right;
}
.featured-homepage-thumb {
  flex: 0 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 22px;
  overflow: hidden;
  background: rgba(79,111,255,0.10);
  border: 1px solid rgba(79,111,255,0.18);
  box-shadow: 0 1px 5px rgba(15, 23, 42, 0.16);
}
.featured-homepage-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.featured-homepage-thumb.is-empty {
  background: linear-gradient(180deg, rgba(79,111,255,0.22), rgba(0,207,255,0.10));
}
.featured-homepage-title-wrap {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
  overflow: hidden;
}
.featured-homepage-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a2e;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s ease;
  flex-shrink: 1;
  min-width: 0;
}
.featured-homepage-title:hover { color: #4F6FFF; }
.featured-homepage-year {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: #9ca3af;
  white-space: nowrap;
}
.featured-homepage-genres {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 100px;
  max-width: 200px;
  text-align: right;
}
.featured-homepage-rating {
  flex-shrink: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.featured-homepage-rating-label {
  color: currentColor;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.featured-homepage-rating-value {
  color: currentColor;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}
/* Color variants inherit from .rating-high/mid/low */
@media (max-width: 768px) { .featured-homepage-genres { display: none; } }
@media (max-width: 576px) {
  .featured-homepage-item  { padding: 10px 14px; gap: 10px; }
  .featured-homepage-title { font-size: 0.9rem; }
  .featured-homepage-year  { display: none; }
  .featured-homepage-header { min-height: 52px; padding: 13px 14px 13px 30px; font-size: 0.95rem; }
  .featured-homepage-header::before { left: 14px; height: 24px; }
}

/* =====================================================
   HOMEPAGE SEO TEXT
   ===================================================== */
.seo-text { color: #374151; line-height: 1.75; }
.seo-text p { margin-bottom: 1rem; }
.seo-text h2 { color: #1a1a2e; }
.seo-text h3 { color: #4F6FFF; }
.seo-text ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.seo-text a { color: #4F6FFF; }
.seo-text a:hover { color: #7C3AED; }
.seo-text .what-is-heading {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(79,111,255,0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: none !important;
  padding-left: 0 !important;
}
.seo-text .what-is-heading::before {
  content: '▍';
  color: #4F6FFF;
  font-size: 1rem;
}

/* =====================================================
   DARK THEME — Переключаемая темная тема
   ===================================================== */
body[data-theme="dark"] {
  --mf-bg-grad: linear-gradient(180deg, #0a0e1a 0%, #050812 100%);
  --mf-text: #e8f0ff;
  --mf-text-light: #d0dff5;
  --mf-muted: #7a8aaa;
  --mf-card-bg: rgba(15, 20, 35, 0.85);
  --mf-nav-bg: rgba(10, 14, 26, 0.95);
}

/* Основной фон body */
body[data-theme="dark"] {
  background: #050812 !important;
  background-image:
    radial-gradient(circle at 10% 15%, rgba(77, 157, 255, 0.12), transparent 35%),
    radial-gradient(circle at 85% 10%, rgba(107, 179, 255, 0.08), transparent 30%),
    radial-gradient(circle at 20% 85%, rgba(22, 48, 77, 0.2), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(30, 58, 95, 0.25), transparent 50%),
    linear-gradient(180deg, #0a0e1a 0%, #050812 100%) !important;
}

/* Parallax фон */
body[data-theme="dark"] .of-parallax-bg {
  background: linear-gradient(180deg, #0a0e1a 0%, #050812 100%);
}

/* Хедер */
body[data-theme="dark"] .header-glass {
  background-color: rgba(10, 14, 26, 0.35) !important;
  border-bottom: 1px solid rgba(77, 157, 255, 0.08);
  backdrop-filter: blur(12px);
}

/* Карточки */
body[data-theme="dark"] .card {
  background: rgba(15, 20, 35, 0.85) !important;
  border: 1px solid rgba(77, 157, 255, 0.15) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

body[data-theme="dark"] .card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(77, 157, 255, 0.25) !important;
  border-color: rgba(77, 157, 255, 0.35) !important;
}

body[data-theme="dark"] .card-body {
  background: rgba(10, 14, 26, 0.6);
  color: var(--mf-text) !important;
}

body[data-theme="dark"] .card-title {
  color: var(--mf-text) !important;
}

body[data-theme="dark"] .card-body * {
  color: var(--mf-text) !important;
}

/* Дропдауны меню */
body[data-theme="dark"] .navbar-nav .sub-menu,
body[data-theme="dark"] .navbar-nav .children {
  background: rgba(15, 20, 35, 0.98);
  border: 1px solid rgba(77, 157, 255, 0.2);
  backdrop-filter: blur(12px);
}

body[data-theme="dark"] .navbar-nav .sub-menu a,
body[data-theme="dark"] .navbar-nav .children a {
  color: var(--mf-text) !important;
  border-bottom: 1px solid rgba(77, 157, 255, 0.08);
}

body[data-theme="dark"] .navbar-nav .sub-menu a:hover,
body[data-theme="dark"] .navbar-nav .children a:hover {
  color: var(--mf-bright-blue) !important;
  background: rgba(77, 157, 255, 0.08);
}

@media (max-width: 991.98px) {
  [data-theme="dark"] .navbar-nav .sub-menu,
  [data-theme="dark"] .navbar-nav .children {
    background: rgba(20, 29, 48, 0.98);
    border-color: rgba(77, 157, 255, 0.30);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 28px rgba(0, 0, 0, 0.34);
  }

  [data-theme="dark"] .navbar-nav .sub-menu a,
  [data-theme="dark"] .navbar-nav .children a {
    color: #e8f0ff !important;
    border-bottom-color: rgba(77, 157, 255, 0.14);
  }
}

/* Заголовки */
body[data-theme="dark"] h1,
body[data-theme="dark"] .site-main h1,
body[data-theme="dark"] .entry-title,
body[data-theme="dark"] article h1 {
  color: var(--mf-text);
}

body[data-theme="dark"] h2,
body[data-theme="dark"] .site-main h2 {
  color: var(--mf-text);
}

/* Featured блоки */
body[data-theme="dark"] .featured-movies-block,
body[data-theme="dark"] .recently-added-block,
body[data-theme="dark"] .featured-homepage-block {
  background: rgba(15, 20, 35, 0.85);
  border: 1px solid rgba(77, 157, 255, 0.2);
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.6);
}

body[data-theme="dark"] .featured-movies-title,
body[data-theme="dark"] .recently-added-h1 {
  color: var(--mf-text);
}

body[data-theme="dark"] .recently-added-header,
body[data-theme="dark"] .featured-homepage-header {
  background: rgba(77, 157, 255, 0.05);
  border-bottom: 1px solid rgba(77, 157, 255, 0.15);
  color: var(--mf-text);
}

[data-theme="dark"] .featured-homepage-header::before {
  box-shadow: 0 0 22px rgba(77,157,255,0.56);
}

[data-theme="dark"] .featured-homepage-thumb {
  background: rgba(77,157,255,0.12);
  border-color: rgba(77,157,255,0.24);
  box-shadow: 0 2px 8px rgba(0,0,0,0.40);
}

body[data-theme="dark"] .featured-movies-header {
  border-bottom: 1px solid rgba(77, 157, 255, 0.15);
}

body[data-theme="dark"] .recently-added-item,
body[data-theme="dark"] .featured-homepage-item {
  border-bottom: 1px solid rgba(77, 157, 255, 0.08);
}

body[data-theme="dark"] .recently-added-item:hover,
body[data-theme="dark"] .featured-homepage-item:hover {
  background: rgba(77, 157, 255, 0.08);
}

body[data-theme="dark"] .recently-added-title,
body[data-theme="dark"] .featured-homepage-title {
  color: var(--mf-text);
}

body[data-theme="dark"] .recently-added-date,
body[data-theme="dark"] .recently-added-genres,
body[data-theme="dark"] .featured-homepage-genres {
  color: var(--mf-muted);
}

body[data-theme="dark"] .recently-added-year,
body[data-theme="dark"] .featured-homepage-year {
  color: rgba(160, 184, 217, 0.6);
}

/* Постер в featured блоках */
body[data-theme="dark"] .featured-poster-wrap {
  background: rgba(10, 14, 26, 0.8);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

/* Movie info block */
body[data-theme="dark"] .movie-info-block {
  background: rgba(15, 20, 35, 0.8) !important;
  border: 1px solid rgba(77, 157, 255, 0.25) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

body[data-theme="dark"] .movie-overview {
  color: var(--mf-text-light);
}

/* SEO текст */
body[data-theme="dark"] .seo-text {
  color: var(--mf-text-light);
}

body[data-theme="dark"] .seo-text h2,
body[data-theme="dark"] .seo-text .what-is-heading {
  color: var(--mf-text);
}

body[data-theme="dark"] .seo-text h3 {
  color: var(--mf-bright-blue);
}

/* Episode cards */
body[data-theme="dark"] .episode-card-glass {
  background: rgba(15, 20, 35, 0.8) !important;
  border: 1px solid rgba(77, 157, 255, 0.25) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
}

body[data-theme="dark"] .episode-card-glass:hover {
  box-shadow: 0 8px 24px rgba(77, 157, 255, 0.2) !important;
  border-color: rgba(77, 157, 255, 0.35) !important;
}

/* Now playing bar */
body[data-theme="dark"] .now-playing-bar {
  background: rgba(77, 157, 255, 0.08);
  border: 1px solid rgba(77, 157, 255, 0.18);
}

body[data-theme="dark"] .now-playing-bar__title {
  color: var(--mf-text-light);
}

/* Поиск */
body[data-theme="dark"] .search-main input,
body[data-theme="dark"] .header-glass .search-form-custom .search-field,
body[data-theme="dark"] .navbar .search-form-custom .search-field {
  background: rgba(15, 20, 35, 0.8);
  color: var(--mf-text);
  border: 1.5px solid rgba(77, 157, 255, 0.25);
}

body[data-theme="dark"] .search-main input::placeholder,
body[data-theme="dark"] .header-glass .search-form-custom .search-field::placeholder,
body[data-theme="dark"] .navbar .search-form-custom .search-field::placeholder {
  color: var(--mf-muted);
}

body[data-theme="dark"] .search-main input:focus,
body[data-theme="dark"] .header-glass .search-form-custom .search-field:focus,
body[data-theme="dark"] .navbar .search-form-custom .search-field:focus {
  background: rgba(15, 20, 35, 0.95);
  border-color: var(--mf-bright-blue);
}

/* Инпуты общие */
body[data-theme="dark"] input[type="text"],
body[data-theme="dark"] input[type="search"],
body[data-theme="dark"] input[type="email"],
body[data-theme="dark"] input[type="url"],
body[data-theme="dark"] textarea,
body[data-theme="dark"] select {
  background: rgba(15, 20, 35, 0.8);
  color: var(--mf-text);
  border-color: rgba(77, 157, 255, 0.25);
}

/* Plain text container */
body[data-theme="dark"] .plain-text-entry .entry-title,
body[data-theme="dark"] .plain-text-entry .entry-content p {
  color: var(--mf-text);
}

/* Breadcrumbs */
body[data-theme="dark"] .breadcrumb-item.active {
  color: var(--mf-text);
}

/* MCS carousel стрелки */
body[data-theme="dark"] .mcs-arrow {
  background: rgba(15, 20, 35, 0.95);
  border: 1.5px solid rgba(77, 157, 255, 0.25);
}

body[data-theme="dark"] .mcs-arrow:hover {
  background: rgba(15, 20, 35, 1);
  border-color: var(--mf-bright-blue);
}

/* Пагинация */
body[data-theme="dark"] .page-link {
  background: rgba(15, 20, 35, 0.6);
  border-color: rgba(77, 157, 255, 0.25) !important;
  color: var(--mf-text) !important;
}

body[data-theme="dark"] .page-link:hover {
  background: rgba(77, 157, 255, 0.15) !important;
  border-color: var(--mf-bright-blue) !important;
  color: var(--mf-bright-blue) !important;
}

body[data-theme="dark"] .page-item.active .page-link {
  background: var(--mf-grad) !important;
  border-color: transparent !important;
  color: #fff !important;
}

body[data-theme="dark"] .page-item.disabled .page-link {
  background: rgba(15, 20, 35, 0.3);
  border-color: rgba(77, 157, 255, 0.1) !important;
  color: rgba(160, 184, 217, 0.4) !important;
}

/* Кнопки переключения темы */
#theme-toggle,
#theme-toggle-mobile {
  color: var(--mf-text);
}

#theme-toggle:hover,
#theme-toggle-mobile:hover {
  background: rgba(77, 157, 255, 0.1) !important;
}

body[data-theme="dark"] #theme-toggle,
body[data-theme="dark"] #theme-toggle-mobile {
  color: var(--mf-text);
}

body[data-theme="dark"] #theme-toggle:hover,
body[data-theme="dark"] #theme-toggle-mobile:hover {
  background: rgba(77, 157, 255, 0.15) !important;
}

/* Dark theme: remove header bg, keep divider line */
[data-theme="dark"] .recently-added-header,
[data-theme="dark"] .featured-homepage-header,
[data-theme="dark"] .featured-movies-header {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;

    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}

/* Refined pagination */
.pagination,
.nav-links,
.page-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-numbers {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

/* Light theme */
html:not([data-theme="dark"]) .page-numbers {
    color: #dceaff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 8px 22px rgba(8, 28, 54, 0.16);
    backdrop-filter: blur(10px);
}

html:not([data-theme="dark"]) .page-numbers.current,
html:not([data-theme="dark"]) .page-numbers:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #3f9cff, #1477e8);
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 10px 26px rgba(20, 119, 232, 0.35);
    transform: translateY(-1px);
}

/* Dark theme */
html[data-theme="dark"] .page-numbers {
    color: #cbd7ea;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(12px);
}

html[data-theme="dark"] .page-numbers.current,
html[data-theme="dark"] .page-numbers:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #2f8cff, #1265d8);
    border-color: rgba(87, 166, 255, 0.55);
    box-shadow: 0 10px 28px rgba(47, 140, 255, 0.28);
    transform: translateY(-1px);
}

/* Dots */
.page-numbers.dots {
    pointer-events: none;
    opacity: 0.65;
}

/* Prev / Next */
.page-numbers.prev,
.page-numbers.next {
    font-size: 18px;
}

/* Mobile */
@media (max-width: 576px) {
    .page-numbers {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 14px;
    }
}

.mf-announcement-block {
    background: linear-gradient(180deg, #173965 0%, #122d50 100%);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 18px 22px;
    margin: 25px 0;
    position: relative;
    overflow: hidden;
}

.mf-announcement-block:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #3d8bff;
}

.mf-announcement-label {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #8eb8ff;
    margin-bottom: 10px;
    font-weight: 700;
}

.mf-announcement-text {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.7;
    font-weight: 500;
}

.mf-announcement-text a {
    color: #6db2ff;
    text-decoration: none;
}

.mf-announcement-text a:hover {
    color: #9ecbff;
}

@media (max-width: 768px) {
    .mf-announcement-block {
        padding: 16px;
    }

    .mf-announcement-text {
        font-size: 14px;
        line-height: 1.6;
    }
}

/* =====================================================
   Header actions / search modal / mobile player update — 2026-05-15
   ===================================================== */
.mf-header-actions {
  flex: 0 0 auto;
}

.mf-header-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(77, 157, 255, 0.18);
  border-radius: 12px;
  background: rgba(77, 157, 255, 0.06);
  color: var(--mf-text);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  -webkit-tap-highlight-color: transparent;
}

.mf-header-icon-btn:hover,
.mf-header-icon-btn:focus-visible {
  background: rgba(77, 157, 255, 0.14);
  border-color: rgba(77, 157, 255, 0.38);
  color: var(--mf-bright-blue);
  outline: none;
  transform: translateY(-1px);
}

.mf-header-icon-btn .theme-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  line-height: 1;
}

html[data-theme="dark"] .mf-header-icon-btn {
  color: var(--mf-text);
  background: rgba(77, 157, 255, 0.08);
  border-color: rgba(77, 157, 255, 0.2);
}

html[data-theme="dark"] .mf-header-icon-btn:hover,
html[data-theme="dark"] .mf-header-icon-btn:focus-visible {
  background: rgba(77, 157, 255, 0.17);
  border-color: rgba(77, 157, 255, 0.42);
}

@media (max-width: 991.98px) {
  .mf-header-logo {
    margin-right: 0;
  }

  .mf-header-logo img {
    max-width: min(180px, 36vw);
  }

  .mf-header-actions {
    margin-left: auto;
    margin-right: 8px;
  }

  .navbar .header-glass {
    row-gap: 10px;
  }

  .navbar-collapse {
    flex-basis: 100%;
  }
}

@media (max-width: 420px) {
  .mf-header-actions {
    gap: 5px !important;
    margin-right: 6px;
  }

  .mf-header-icon-btn {
    width: 39px;
    height: 39px;
    border-radius: 11px;
  }

  .navbar-toggler {
    padding: 0.35rem 0.55rem;
  }
}

html.mf-search-modal-open,
html.mf-search-modal-open body {
  overflow: hidden;
}

.mf-search-modal {
  position: fixed;
  inset: 0;
  z-index: 11050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.mf-search-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mf-search-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 20, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.mf-search-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding: clamp(22px, 3.4vw, 36px);
  border: 1px solid rgba(119, 175, 255, 0.24);
  border-radius: 26px;
  background:
    radial-gradient(circle at 12% 10%, rgba(77, 157, 255, 0.22), transparent 34%),
    radial-gradient(circle at 88% 14%, rgba(107, 179, 255, 0.14), transparent 28%),
    rgba(15, 31, 54, 0.96);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
  transform: translateY(18px) scale(0.985);
  transition: transform 0.22s ease;
}

.mf-search-modal.is-open .mf-search-modal__dialog {
  transform: translateY(0) scale(1);
}

.mf-search-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding-right: 38px;
}

.mf-search-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.mf-search-modal__close:hover,
.mf-search-modal__close:focus-visible {
  background: transparent;
  border-color: transparent;
  outline: none;
  opacity: 0.78;
  transform: none;
}

.mf-search-modal__title {
  min-width: 0;
  margin: 0;
  color: #fff;
  font-size: clamp(1.3rem, 3.2vw, 2.05rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.mf-search-modal__form .search-form-custom {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 12px !important;
  border: 1px solid rgba(119, 175, 255, 0.22);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mf-search-modal__form .search-form-custom__label {
  display: block;
  width: 100%;
}

.mf-search-modal__form .search-field {
  width: 100%;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 15px !important;
  background: rgba(3, 10, 23, 0.58) !important;
  color: #fff !important;
  font-size: 1.08rem;
  box-shadow: none !important;
}

.mf-search-modal__form .search-field::placeholder {
  color: rgba(222, 236, 255, 0.66) !important;
}

.mf-search-modal__form .search-field:focus {
  border-color: rgba(119, 175, 255, 0.62) !important;
  box-shadow: 0 0 0 4px rgba(77, 157, 255, 0.14) !important;
}

.mf-search-modal__form .search-form-custom__submit {
  min-width: 128px;
  height: 58px;
  margin: 0 !important;
  border: none !important;
  border-radius: 15px !important;
  background: var(--mf-grad) !important;
  color: #fff !important;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(79, 111, 255, 0.26);
}

.mf-search-modal__form .search-form-custom__submit:hover,
.mf-search-modal__form .search-form-custom__submit:focus-visible {
  opacity: 0.95;
  outline: none;
  transform: translateY(-1px);
}

@media (max-width: 767.98px) {
  .mf-search-modal {
    align-items: flex-start;
    padding: 74px 14px 18px;
  }

  .mf-search-modal__dialog {
    padding: 18px 16px 18px;
    border-radius: 22px;
  }

  .mf-search-modal__head {
    gap: 12px;
    margin-bottom: 14px;
  }

  .mf-search-modal__close {
    top: 14px;
    right: 14px;
    font-size: 32px;
  }

  .mf-search-modal__title {
    font-size: clamp(1.18rem, 5.2vw, 1.55rem);
    line-height: 1.18;
  }

  .mf-search-modal__form .search-form-custom {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px !important;
  }

  .mf-search-modal__form .search-field,
  .mf-search-modal__form .search-form-custom__submit {
    height: 54px;
  }

  .mf-search-modal__form .search-form-custom__submit {
    width: 100%;
  }
}

@media (max-width: 767.98px) and (orientation: portrait) {
  .mf-search-modal {
    align-items: center;
    padding: 18px 14px;
  }
}

@media (max-width: 991.98px) {
  .breadcrumb,
  .breadcrumbs-wrapper,
  .breadcrumbs {
    display: none !important;
  }
}

@media (max-width: 767.98px) and (orientation: portrait) {
  .player-section .player-frame.player-frame--lazy {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
  }

  .player-section .player-frame.player-frame--lazy .player-poster {
    border-radius: 0;
  }
}

@media (max-width: 767.98px) {
  .movie-poster-wrap .movie-poster {
    width: 100% !important;
    max-width: 215px !important;
  }
}


/* 2026-05-15: visual simplification for homepage rating, header icons, menu corners and featured heading */
.featured-homepage-rating,
.featured-homepage-rating.rating-high,
.featured-homepage-rating.rating-mid,
.featured-homepage-rating.rating-low {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
}

.featured-homepage-rating-label {
  color: #6b7280 !important;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.035em;
}

.featured-homepage-rating-value {
  font-size: 0.84rem;
  font-weight: 800;
}

.featured-homepage-rating.rating-high .featured-homepage-rating-value {
  color: #16a34a !important;
}

.featured-homepage-rating.rating-mid .featured-homepage-rating-value {
  color: #b45309 !important;
}

.featured-homepage-rating.rating-low .featured-homepage-rating-value {
  color: #dc2626 !important;
}

[data-theme="dark"] .featured-homepage-rating-label {
  color: rgba(191, 206, 230, 0.72) !important;
}

.mf-header-icon-btn,
html[data-theme="dark"] .mf-header-icon-btn {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.mf-header-icon-btn:hover,
.mf-header-icon-btn:focus-visible,
html[data-theme="dark"] .mf-header-icon-btn:hover,
html[data-theme="dark"] .mf-header-icon-btn:focus-visible {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  color: var(--mf-bright-blue) !important;
}

.navbar-nav .sub-menu,
.navbar-nav .children,
body[data-theme="dark"] .navbar-nav .sub-menu,
body[data-theme="dark"] .navbar-nav .children {
  border-radius: 0 !important;
}

.featured-homepage-header {
  padding-left: 24px !important;
}

.featured-homepage-header::before {
  display: none !important;
}

.featured-homepage-heading {
  position: relative;
  padding-bottom: 8px;
}

.featured-homepage-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 88px;
  height: 2px;
  background: linear-gradient(90deg, #4f6fff 0%, #00cfff 68%, rgba(0, 207, 255, 0) 100%);
  box-shadow: 0 0 16px rgba(79, 111, 255, 0.34);
}

[data-theme="dark"] .featured-homepage-header,
body[data-theme="dark"] .featured-homepage-header {
  color: #edf5ff !important;
}

[data-theme="dark"] .featured-homepage-heading {
  color: #f4f8ff !important;
  text-shadow: 0 0 18px rgba(99, 171, 255, 0.18);
}

[data-theme="dark"] .featured-homepage-heading::after {
  box-shadow: 0 0 20px rgba(79, 157, 255, 0.48);
}

@media (max-width: 576px) {
  .featured-homepage-header {
    padding-left: 14px !important;
  }

  .featured-homepage-heading::after {
    width: 72px;
  }
}


/* TV API ranked listing pages */
.tvapi-listing-page {
    padding-bottom: 56px;
}

.tvapi-page-hero {
    position: relative;
    margin: 18px 0 30px;
    padding: 28px 30px;
    border: 1px solid rgba(79, 111, 255, 0.16);
    background: linear-gradient(135deg, rgba(79, 111, 255, 0.08), rgba(0, 207, 255, 0.04));
    overflow: hidden;
}

[data-theme="dark"] .tvapi-page-hero {
    border-color: rgba(120, 150, 255, 0.24);
    background: linear-gradient(135deg, rgba(79, 111, 255, 0.16), rgba(0, 207, 255, 0.08));
}

.tvapi-page-kicker {
    margin-bottom: 10px;
    color: var(--primary-color, #4f6fff);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.tvapi-page-title {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 3.15rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.tvapi-page-intro {
    max-width: 780px;
    margin: 0;
    color: rgba(30, 37, 59, 0.78);
    font-size: 1rem;
    line-height: 1.65;
}

[data-theme="dark"] .tvapi-page-intro {
    color: rgba(234, 240, 255, 0.76);
}

.tvapi-ranked-poster-wrap {
    border-radius: 0;
}

.tvapi-rank-chip {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(6, 11, 30, 0.86);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.tvapi-empty-state {
    margin: 24px 0 0;
    padding: 26px 28px;
    border: 1px solid rgba(79, 111, 255, 0.16);
    background: rgba(79, 111, 255, 0.05);
    font-size: 1rem;
    line-height: 1.55;
}

[data-theme="dark"] .tvapi-empty-state {
    border-color: rgba(120, 150, 255, 0.24);
    background: rgba(79, 111, 255, 0.11);
}

.tvapi-boxoffice-list {
    display: grid;
    gap: 16px;
}

.tvapi-boxoffice-row {
    display: grid;
    grid-template-columns: 92px 116px minmax(220px, 1fr) auto;
    gap: 22px;
    align-items: center;
    padding: 18px 22px;
    border: 1px solid rgba(79, 111, 255, 0.16);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(79, 111, 255, 0.055));
    box-shadow: 0 14px 36px rgba(20, 32, 72, 0.08);
}

[data-theme="dark"] .tvapi-boxoffice-row {
    border-color: rgba(120, 150, 255, 0.24);
    background: linear-gradient(135deg, rgba(17, 22, 43, 0.98), rgba(79, 111, 255, 0.14));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.tvapi-boxoffice-rank {
    display: grid;
    gap: 7px;
    align-content: center;
    text-align: center;
}

.tvapi-boxoffice-rank-label {
    color: rgba(30, 37, 59, 0.56);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

[data-theme="dark"] .tvapi-boxoffice-rank-label {
    color: rgba(234, 240, 255, 0.52);
}

.tvapi-boxoffice-rank strong {
    color: var(--primary-color, #4f6fff);
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.05em;
}

.tvapi-boxoffice-poster-link {
    display: block;
    width: 116px;
}

.tvapi-boxoffice-poster {
    display: block;
    width: 116px;
    height: 174px;
    object-fit: cover;
    border: 1px solid rgba(79, 111, 255, 0.16);
}

[data-theme="dark"] .tvapi-boxoffice-poster {
    border-color: rgba(120, 150, 255, 0.26);
}

.tvapi-boxoffice-main {
    min-width: 0;
}

.tvapi-boxoffice-title {
    margin: 0 0 12px;
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.025em;
}

.tvapi-boxoffice-title a {
    color: inherit;
    text-decoration: none;
}

.tvapi-boxoffice-title a:hover {
    color: var(--primary-color, #4f6fff);
}

.tvapi-boxoffice-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: rgba(30, 37, 59, 0.66);
    font-size: 14px;
    font-weight: 600;
}

[data-theme="dark"] .tvapi-boxoffice-meta {
    color: rgba(234, 240, 255, 0.68);
}

.tvapi-boxoffice-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    border: 1px solid rgba(79, 111, 255, 0.12);
    background: rgba(79, 111, 255, 0.06);
}

[data-theme="dark"] .tvapi-boxoffice-meta span {
    border-color: rgba(120, 150, 255, 0.22);
    background: rgba(79, 111, 255, 0.14);
}

.tvapi-boxoffice-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(108px, 1fr));
    gap: 12px;
    margin: 0;
}

.tvapi-boxoffice-metric {
    min-width: 108px;
    padding: 14px 15px;
    border: 1px solid rgba(79, 111, 255, 0.14);
    background: rgba(79, 111, 255, 0.055);
}

[data-theme="dark"] .tvapi-boxoffice-metric {
    border-color: rgba(120, 150, 255, 0.22);
    background: rgba(79, 111, 255, 0.14);
}

.tvapi-boxoffice-metric dt {
    margin: 0 0 7px;
    color: rgba(30, 37, 59, 0.55);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

[data-theme="dark"] .tvapi-boxoffice-metric dt {
    color: rgba(234, 240, 255, 0.54);
}

.tvapi-boxoffice-metric dd {
    margin: 0;
    color: inherit;
    font-size: 1.16rem;
    font-weight: 850;
    line-height: 1.1;
}

@media (max-width: 1199.98px) {
    .tvapi-boxoffice-row {
        grid-template-columns: 82px 104px minmax(220px, 1fr);
    }

    .tvapi-boxoffice-metrics {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tvapi-boxoffice-poster-link,
    .tvapi-boxoffice-poster {
        width: 104px;
    }

    .tvapi-boxoffice-poster {
        height: 156px;
    }
}

@media (max-width: 767.98px) {
    .tvapi-page-hero {
        margin-top: 12px;
        padding: 22px 18px;
    }

    .tvapi-page-title {
        font-size: 2rem;
    }

    .tvapi-page-intro {
        font-size: 0.95rem;
    }

    .tvapi-boxoffice-row {
        grid-template-columns: 68px 86px minmax(0, 1fr);
        gap: 14px;
        padding: 14px;
    }

    .tvapi-boxoffice-rank strong {
        font-size: 1.65rem;
    }

    .tvapi-boxoffice-poster-link,
    .tvapi-boxoffice-poster {
        width: 86px;
    }

    .tvapi-boxoffice-poster {
        height: 129px;
    }

    .tvapi-boxoffice-title {
        font-size: 1.12rem;
        margin-bottom: 9px;
    }

    .tvapi-boxoffice-meta {
        gap: 7px;
        font-size: 12px;
    }

    .tvapi-boxoffice-meta span {
        min-height: 24px;
        padding: 0 8px;
    }

    .tvapi-boxoffice-metrics {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .tvapi-boxoffice-metric {
        min-width: 0;
        padding: 12px 13px;
    }
}

/* TV API refinements: premium ranked pages and color-coded Box Office IMDb rating */
.tvapi-boxoffice-meta .tvapi-boxoffice-imdb.rating-high {
    color: #16934a;
    border-color: rgba(22, 147, 74, 0.24);
    background: rgba(22, 147, 74, 0.10);
}

.tvapi-boxoffice-meta .tvapi-boxoffice-imdb.rating-mid {
    color: #b56a00;
    border-color: rgba(181, 106, 0, 0.24);
    background: rgba(181, 106, 0, 0.10);
}

.tvapi-boxoffice-meta .tvapi-boxoffice-imdb.rating-low {
    color: #c53c3c;
    border-color: rgba(197, 60, 60, 0.24);
    background: rgba(197, 60, 60, 0.10);
}

[data-theme="dark"] .tvapi-boxoffice-meta .tvapi-boxoffice-imdb.rating-high {
    color: #86efac;
    border-color: rgba(134, 239, 172, 0.30);
    background: rgba(34, 197, 94, 0.16);
}

[data-theme="dark"] .tvapi-boxoffice-meta .tvapi-boxoffice-imdb.rating-mid {
    color: #fcd34d;
    border-color: rgba(252, 211, 77, 0.30);
    background: rgba(245, 158, 11, 0.16);
}

[data-theme="dark"] .tvapi-boxoffice-meta .tvapi-boxoffice-imdb.rating-low {
    color: #fca5a5;
    border-color: rgba(252, 165, 165, 0.30);
    background: rgba(239, 68, 68, 0.16);
}

.tvapi-top250-page .tvapi-page-hero {
    margin-bottom: 28px;
}

.tvapi-top250-poster-wrap {
    border-radius: 0;
}


/* Listing cards in featured poster style */
.listing-poster-link,
.listing-term-link {
  display: block;
  height: 100%;
}

.listing-poster-wrap,
.listing-term-wrap {
  height: 100%;
}

.listing-poster-overlay {
  padding-top: 22px;
}

.listing-poster-title {
  margin-bottom: 5px;
}

.listing-poster-meta {
  min-height: 16px;
}

.listing-meta-label {
  display: inline-flex;
  align-items: center;
  min-height: 15px;
  padding: 1px 5px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.88);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.listing-poster-genres {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-term-overlay {
  padding-top: 28px;
}

.listing-term-title {
  font-size: 13px;
  font-weight: 700;
}

.listing-term-count {
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

@media (max-width: 767.98px) {
  .listing-poster-genres {
    font-size: 9px;
  }

  .listing-term-title {
    font-size: 12px;
  }
}

/* =====================================================
   MyFlixer page-level title backdrop
   ===================================================== */
#page.site {
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
}

.mfx-page-backdrop {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: var(--mfx-backdrop-height, clamp(760px, 98vh, 1220px));
  min-height: 720px;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateX(-50%) translateZ(0);
  transition: opacity .34s ease;
  will-change: opacity;
}

.mfx-page-backdrop--ready {
  opacity: 1;
}

.mfx-page-backdrop::before,
.mfx-page-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mfx-page-backdrop::before {
  z-index: 1;
  background-image: var(--mfx-backdrop-desktop);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: .74;
  filter: saturate(1.06) contrast(1.03);
  -webkit-mask-image: linear-gradient(180deg,
    #000 0%,
    #000 48%,
    rgba(0, 0, 0, .84) 62%,
    rgba(0, 0, 0, .42) 80%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(180deg,
    #000 0%,
    #000 48%,
    rgba(0, 0, 0, .84) 62%,
    rgba(0, 0, 0, .42) 80%,
    rgba(0, 0, 0, 0) 100%
  );
}

.mfx-page-backdrop::after {
  z-index: 2;
  background:
    linear-gradient(180deg,
      rgba(5, 10, 18, .10) 0%,
      rgba(5, 10, 18, .13) 36%,
      rgba(30, 58, 95, .16) 62%,
      rgba(30, 58, 95, 0) 100%
    ),
    radial-gradient(circle at 50% 0%, rgba(77, 157, 255, .07), transparent 62%);
  -webkit-mask-image: linear-gradient(180deg,
    #000 0%,
    #000 64%,
    rgba(0, 0, 0, .60) 84%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(180deg,
    #000 0%,
    #000 64%,
    rgba(0, 0, 0, .60) 84%,
    rgba(0, 0, 0, 0) 100%
  );
}

html[data-theme="dark"] .mfx-page-backdrop::before,
body[data-theme="dark"] .mfx-page-backdrop::before {
  opacity: .68;
  filter: saturate(1.03) contrast(1.06);
}

html[data-theme="dark"] .mfx-page-backdrop::after,
body[data-theme="dark"] .mfx-page-backdrop::after {
  background:
    linear-gradient(180deg,
      rgba(0, 0, 0, .14) 0%,
      rgba(0, 0, 0, .20) 36%,
      rgba(5, 8, 18, .22) 64%,
      rgba(5, 8, 18, 0) 100%
    ),
    radial-gradient(circle at 50% 0%, rgba(77, 157, 255, .05), transparent 64%);
}

/* Subtle cinematic film grain that lives only inside the page backdrop. */
.mfx-page-backdrop__grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: .105;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.46'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
  mix-blend-mode: soft-light;
  transform: translateZ(0);
  -webkit-mask-image: linear-gradient(180deg,
    #000 0%,
    #000 56%,
    rgba(0, 0, 0, .70) 78%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(180deg,
    #000 0%,
    #000 56%,
    rgba(0, 0, 0, .70) 78%,
    rgba(0, 0, 0, 0) 100%
  );
}

html[data-theme="dark"] .mfx-page-backdrop__grain,
body[data-theme="dark"] .mfx-page-backdrop__grain {
  opacity: .14;
  mix-blend-mode: screen;
}

.mfx-page-backdrop.mfx-page-backdrop--fading {
  opacity: .18;
}

/* Page backdrop is a background layer only. All real page UI must stay above it. */
.single-post .site-header,
.single-tvshows .site-header,
.single-episodes .site-header,
.single-post .header-glass,
.single-tvshows .header-glass,
.single-episodes .header-glass {
  position: relative;
  z-index: 70;
}

.single-post .content-area,
.single-tvshows .content-area,
.single-episodes .content-area,
.single-post .site-main,
.single-tvshows .site-main,
.single-episodes .site-main,
.single-post .site-main > .container,
.single-tvshows .site-main > .container,
.single-episodes .site-main > .container,
.single-post article,
.single-tvshows article,
.single-episodes article {
  position: relative;
  z-index: 2;
}

.single-post .breadcrumb,
.single-tvshows .breadcrumb,
.single-episodes .breadcrumb,
.single-post article > h1,
.single-tvshows article > h1,
.single-episodes article > h1,
.single-post .player-section,
.single-tvshows .player-section,
.single-episodes .player-section,
.single-post #playerTabs,
.single-tvshows #playerTabs,
.single-episodes #playerTabs,
.single-tvshows .now-playing-bar,
.single-episodes .now-playing-bar {
  position: relative;
  z-index: 5;
}

.single-post .player-frame,
.single-tvshows .player-frame,
.single-episodes .player-frame {
  position: relative;
  z-index: 4;
}

/* Local player cover: the same backdrop lives inside the splash, but never above the controls. */
.single-post .player-poster__bg,
.single-tvshows .player-poster__bg,
.single-episodes .player-poster__bg {
  z-index: 1;
  background-image:
    linear-gradient(90deg, rgba(8, 10, 22, .76) 0%, rgba(8, 10, 22, .43) 42%, rgba(8, 10, 22, .18) 100%),
    var(--mfx-active-backdrop-desktop, var(--mfx-backdrop-desktop)),
    radial-gradient(circle at 72% 36%, rgba(0,207,255,0.16), transparent 18%),
    radial-gradient(circle at 82% 68%, rgba(124,58,237,0.14), transparent 18%);
  background-size: cover, cover, auto, auto;
  background-position: center center, center center, center center, center center;
  background-repeat: no-repeat;
  opacity: .92;
}

.single-post .player-poster__bg::before,
.single-tvshows .player-poster__bg::before,
.single-episodes .player-poster__bg::before,
.single-post .player-poster__bg::after,
.single-tvshows .player-poster__bg::after,
.single-episodes .player-poster__bg::after {
  z-index: 2;
}

.single-post .player-poster__noise,
.single-tvshows .player-poster__noise,
.single-episodes .player-poster__noise {
  z-index: 3;
}

.single-post .player-poster__content,
.single-tvshows .player-poster__content,
.single-episodes .player-poster__content,
.single-post .player-poster__play,
.single-tvshows .player-poster__play,
.single-episodes .player-poster__play {
  z-index: 8;
}

.single-post .player-poster__play,
.single-tvshows .player-poster__play,
.single-episodes .player-poster__play {
  filter: drop-shadow(0 16px 34px rgba(0, 0, 0, .46));
}

.single-post .player-frame--loaded,
.single-tvshows .player-frame--loaded,
.single-episodes .player-frame--loaded,
.single-post .player-frame--playing,
.single-tvshows .player-frame--playing,
.single-episodes .player-frame--playing {
  z-index: 12;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .46);
}

.single-post .player-frame--loaded .player-frame__iframe,
.single-tvshows .player-frame--loaded .player-frame__iframe,
.single-episodes .player-frame--loaded .player-frame__iframe,
.single-post .player-frame--playing .player-frame__iframe,
.single-tvshows .player-frame--playing .player-frame__iframe,
.single-episodes .player-frame--playing .player-frame__iframe {
  position: relative;
  z-index: 14;
}

.mf-search-modal {
  z-index: 10000;
}

.single-post .site-main > .container,
.single-tvshows .site-main > .container,
.single-episodes .site-main > .container {
  padding-top: 8px;
}

@media (max-width: 767.98px) {
  .mfx-page-backdrop {
    height: var(--mfx-backdrop-height, clamp(560px, 92vh, 980px));
    min-height: 560px;
  }

  .mfx-page-backdrop::before {
    background-image: var(--mfx-backdrop-mobile);
    background-position: center top;
    opacity: .70;
    -webkit-mask-image: linear-gradient(180deg,
      #000 0%,
      #000 46%,
      rgba(0, 0, 0, .78) 62%,
      rgba(0, 0, 0, .34) 82%,
      rgba(0, 0, 0, 0) 100%
    );
    mask-image: linear-gradient(180deg,
      #000 0%,
      #000 46%,
      rgba(0, 0, 0, .78) 62%,
      rgba(0, 0, 0, .34) 82%,
      rgba(0, 0, 0, 0) 100%
    );
  }

  .mfx-page-backdrop__grain {
    opacity: .075;
    background-size: 150px 150px;
  }

  html[data-theme="dark"] .mfx-page-backdrop__grain,
  body[data-theme="dark"] .mfx-page-backdrop__grain {
    opacity: .105;
  }

  .single-post .player-poster__bg,
  .single-tvshows .player-poster__bg,
  .single-episodes .player-poster__bg {
    background-image:
      linear-gradient(90deg, rgba(8, 10, 22, .78) 0%, rgba(8, 10, 22, .48) 52%, rgba(8, 10, 22, .20) 100%),
      var(--mfx-active-backdrop-mobile, var(--mfx-backdrop-mobile)),
      radial-gradient(circle at 72% 36%, rgba(0,207,255,0.14), transparent 18%);
  }
}


/* Movies archive Featured Movies cinematic poster-wall block */
.featured-movies-wall-block {
    position: relative;
    overflow: visible;
    padding: 24px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    isolation: isolate;
}

.featured-movies-wall-block::before,
.featured-movies-wall-block::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    pointer-events: none;
}

.featured-movies-wall-block::before {
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(4, 12, 24, 0.62) 0%, rgba(10, 32, 58, 0.78) 44%, rgba(3, 10, 20, 0.86) 100%),
        linear-gradient(90deg, rgba(1, 5, 12, 0.78) 0%, rgba(3, 12, 24, 0.46) 14%, rgba(3, 12, 24, 0.38) 50%, rgba(3, 12, 24, 0.46) 86%, rgba(1, 5, 12, 0.78) 100%);
}

.featured-movies-wall-block::after {
    z-index: 2;
    background:
        radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 42%, rgba(1, 6, 15, 0.36) 72%, rgba(0, 2, 7, 0.82) 100%),
        linear-gradient(180deg, rgba(0, 2, 7, 0.46) 0%, rgba(0, 2, 7, 0.08) 18%, rgba(0, 2, 7, 0.12) 74%, rgba(0, 2, 7, 0.64) 100%);
}

.featured-movies-poster-wall {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    z-index: 0;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 0;
    pointer-events: none;
    opacity: 0.56;
    overflow: hidden;
}

.featured-movies-poster-wall__tile {
    flex: 0 0 10%;
    aspect-ratio: 2 / 3;
    background-image: var(--featured-wall-poster);
    background-size: cover;
    background-position: center;
    filter: saturate(0.62) contrast(0.86) brightness(0.54) blur(0.45px);
}

.featured-movies-header,
.featured-movies-grid {
    position: relative;
    z-index: 3;
}

.featured-movies-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding: 12px 16px 13px;
    border-bottom: 1px solid rgba(180, 214, 255, 0.24);
    background: linear-gradient(90deg, rgba(2, 8, 18, 0.82), rgba(6, 22, 42, 0.58), rgba(6, 22, 42, 0.18));
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.featured-movies-title {
    font-size: 1.3rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.035em;
    text-transform: uppercase;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.88), 0 0 22px rgba(77, 157, 255, 0.26);
}

.featured-poster-link { display: block; }

.featured-poster-wrap {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    aspect-ratio: 2/3;
    background: rgba(8, 20, 38, 0.86);
    box-shadow: 0 20px 44px rgba(0,0,0,0.58), 0 0 0 1px rgba(218, 235, 255, 0.16);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.featured-poster-link:hover .featured-poster-wrap {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 26px 58px rgba(0,0,0,0.66), 0 0 0 1px rgba(77, 157, 255, 0.34);
}

.featured-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.06) contrast(1.04) brightness(1.02);
}

.featured-poster-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 10px 8px 8px;
    background: linear-gradient(to top, rgba(3,7,18,0.98) 0%, rgba(3,7,18,0.68) 62%, transparent 100%);
    color: #fff;
}

.featured-poster-title {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}

.featured-poster-meta {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
}

.featured-meta-year {
    font-size: 10px;
    color: rgba(255,255,255,0.78);
}

.featured-meta-rating {
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 5px;
}

.featured-meta-rating.rating-high { background: rgba(34,197,94,0.22); color: #86efac; }
.featured-meta-rating.rating-mid  { background: rgba(245,158,11,0.22); color: #fcd34d; }
.featured-meta-rating.rating-low  { background: rgba(239,68,68,0.22);  color: #fca5a5; }

html[data-theme="dark"] .featured-movies-wall-block::before {
    background:
        linear-gradient(180deg, rgba(1, 5, 13, 0.68) 0%, rgba(4, 18, 35, 0.80) 44%, rgba(1, 5, 13, 0.90) 100%),
        linear-gradient(90deg, rgba(0, 2, 8, 0.82) 0%, rgba(0, 5, 14, 0.52) 14%, rgba(0, 5, 14, 0.42) 50%, rgba(0, 5, 14, 0.52) 86%, rgba(0, 2, 8, 0.82) 100%);
}

html[data-theme="dark"] .featured-movies-poster-wall {
    opacity: 0.50;
}

html[data-theme="dark"] .featured-movies-poster-wall__tile {
    filter: saturate(0.56) contrast(0.82) brightness(0.48) blur(0.45px);
}

@media (max-width: 991.98px) {
    .featured-movies-wall-block {
        padding: 20px;
    }

    .featured-movies-poster-wall__tile {
        flex-basis: 8.333333%;
    }
}

@media (max-width: 767.98px) {
    .featured-movies-wall-block {
        padding: 16px 14px;
        margin-left: -12px;
        margin-right: -12px;
    }

    .featured-movies-poster-wall {
        opacity: 0.46;
    }

    .featured-movies-poster-wall__tile {
        flex-basis: 6.666667%;
        filter: saturate(0.52) contrast(0.78) brightness(0.46) blur(0.35px);
    }

    .featured-movies-wall-block::before {
        background:
            linear-gradient(180deg, rgba(3, 10, 22, 0.72) 0%, rgba(8, 27, 52, 0.84) 46%, rgba(3, 10, 22, 0.92) 100%),
            linear-gradient(90deg, rgba(1, 5, 12, 0.76) 0%, rgba(3, 12, 24, 0.52) 22%, rgba(3, 12, 24, 0.52) 78%, rgba(1, 5, 12, 0.76) 100%);
    }

    .featured-movies-header {
        padding: 10px 12px 11px;
        margin-bottom: 16px;
    }

    .featured-movies-title {
        font-size: 1.02rem;
    }

    .featured-poster-title {
        font-size: 11px;
    }
}


/* Movies archive Featured Movies wall: desktop visibility/readability tuning */
@media (min-width: 768px) {
    .featured-movies-wall-block::before {
        z-index: 1;
        background:
            radial-gradient(ellipse at center, rgba(1, 5, 13, 0.70) 0%, rgba(2, 10, 22, 0.62) 38%, rgba(4, 18, 34, 0.24) 67%, rgba(4, 18, 34, 0.08) 100%),
            linear-gradient(180deg, rgba(3, 10, 22, 0.28) 0%, rgba(5, 20, 40, 0.16) 28%, rgba(5, 20, 40, 0.18) 74%, rgba(2, 8, 18, 0.36) 100%);
    }

    .featured-movies-wall-block::after {
        z-index: 2;
        background:
            radial-gradient(ellipse at center, transparent 0%, transparent 54%, rgba(0, 4, 12, 0.18) 78%, rgba(0, 2, 8, 0.52) 100%),
            linear-gradient(90deg, rgba(0, 2, 8, 0.32) 0%, rgba(0, 2, 8, 0.08) 10%, transparent 20%, transparent 80%, rgba(0, 2, 8, 0.08) 90%, rgba(0, 2, 8, 0.32) 100%);
    }

    .featured-movies-poster-wall {
        opacity: 0.82;
    }

    .featured-movies-poster-wall__tile {
        filter: saturate(0.86) contrast(0.94) brightness(0.72) blur(0.18px);
    }

    html[data-theme="dark"] .featured-movies-wall-block::before {
        background:
            radial-gradient(ellipse at center, rgba(0, 3, 10, 0.68) 0%, rgba(1, 8, 20, 0.58) 38%, rgba(3, 16, 32, 0.22) 67%, rgba(3, 16, 32, 0.07) 100%),
            linear-gradient(180deg, rgba(2, 8, 18, 0.24) 0%, rgba(4, 18, 36, 0.14) 30%, rgba(4, 18, 36, 0.16) 74%, rgba(1, 5, 14, 0.32) 100%);
    }

    html[data-theme="dark"] .featured-movies-wall-block::after {
        background:
            radial-gradient(ellipse at center, transparent 0%, transparent 56%, rgba(0, 2, 8, 0.16) 78%, rgba(0, 1, 5, 0.46) 100%),
            linear-gradient(90deg, rgba(0, 1, 5, 0.26) 0%, rgba(0, 1, 5, 0.06) 10%, transparent 20%, transparent 80%, rgba(0, 1, 5, 0.06) 90%, rgba(0, 1, 5, 0.26) 100%);
    }

    html[data-theme="dark"] .featured-movies-poster-wall {
        opacity: 0.84;
    }

    html[data-theme="dark"] .featured-movies-poster-wall__tile {
        filter: saturate(0.84) contrast(0.94) brightness(0.74) blur(0.18px);
    }

    .featured-movies-wall-block .featured-movies-header {
        z-index: 6;
        padding: 12px 16px 13px;
        background: linear-gradient(90deg, rgba(0, 3, 10, 0.90), rgba(4, 18, 38, 0.74) 48%, rgba(4, 18, 38, 0.28) 100%) !important;
        border-bottom: 1px solid rgba(143, 197, 255, 0.48) !important;
        box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .featured-movies-wall-block .featured-movies-title,
    .featured-movies-wall-block h2.featured-movies-title {
        color: #ffffff !important;
        opacity: 1 !important;
        font-weight: 900 !important;
        letter-spacing: 0.055em !important;
        text-transform: uppercase !important;
        text-shadow: 0 3px 16px rgba(0, 0, 0, 0.95), 0 0 28px rgba(77, 157, 255, 0.42) !important;
    }
}


/* Movies archive Featured Movies header: remove title panel, keep white title + line */
.featured-movies-wall-block .featured-movies-header {
    position: relative;
    z-index: 6;
    padding: 0 0 14px !important;
    margin-bottom: 20px !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid rgba(180, 214, 255, 0.54) !important;
}

.featured-movies-wall-block .featured-movies-title,
.featured-movies-wall-block h2.featured-movies-title {
    color: #ffffff !important;
    opacity: 1 !important;
    font-weight: 900 !important;
    letter-spacing: 0.055em !important;
    text-transform: uppercase !important;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.96), 0 0 24px rgba(77, 157, 255, 0.34) !important;
}

@media (max-width: 767.98px) {
    .featured-movies-wall-block .featured-movies-header {
        padding: 0 0 12px !important;
        margin-bottom: 16px !important;
        background: transparent !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-bottom: 1px solid rgba(180, 214, 255, 0.50) !important;
    }

    .featured-movies-wall-block .featured-movies-title,
    .featured-movies-wall-block h2.featured-movies-title {
        color: #ffffff !important;
        text-shadow: 0 3px 14px rgba(0, 0, 0, 0.95), 0 0 20px rgba(77, 157, 255, 0.30) !important;
    }
}


/* 2026-06-05: player popup / mobile layout / splash cleanup fixes */
.player-poster__eyebrow,
.player-poster__meta,
.player-poster__rating {
  display: none !important;
}

.player-poster__title {
  display: block;
}

.player-poster__year {
  display: inline-block;
  margin-left: 0.42em;
  font-size: 0.44em;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.76);
  vertical-align: baseline;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.single-post #playerTabs,
.single-tvshows #playerTabs,
.single-episodes #playerTabs {
  margin-top: 8px !important;
  margin-bottom: 16px !important;
  padding-top: 0 !important;
}

.single-post .player-frame.player-frame--lazy,
.single-tvshows .player-frame.player-frame--lazy,
.single-episodes .player-frame.player-frame--lazy {
  margin-bottom: 8px !important;
}

.single-post .player-poster__play,
.single-tvshows .player-poster__play,
.single-episodes .player-poster__play {
  top: 50% !important;
  transform: translateY(-50%) !important;
}

.single-post .player-poster:hover .player-poster__play,
.single-post .player-poster:focus-visible .player-poster__play,
.single-tvshows .player-poster:hover .player-poster__play,
.single-tvshows .player-poster:focus-visible .player-poster__play,
.single-episodes .player-poster:hover .player-poster__play,
.single-episodes .player-poster:focus-visible .player-poster__play {
  transform: translateY(-50%) scale(1.06) !important;
}

.player-frame__iframe,
.player-frame.player-frame--loaded .player-frame__iframe,
.player-frame.player-frame--playing .player-frame__iframe,
.player-frame.player-frame--has-played .player-frame__iframe {
  pointer-events: auto !important;
}

.player-frame.player-frame--loaded .player-poster,
.player-frame.player-frame--playing .player-poster,
.player-frame.player-frame--has-played .player-poster,
.player-frame.player-frame--loaded .player-poster__bg,
.player-frame.player-frame--playing .player-poster__bg,
.player-frame.player-frame--has-played .player-poster__bg,
.player-frame.player-frame--loaded .player-poster__noise,
.player-frame.player-frame--playing .player-poster__noise,
.player-frame.player-frame--has-played .player-poster__noise {
  pointer-events: none !important;
}

.modal,
.modal.show,
.modal-backdrop,
.mf-search-modal,
.mf-search-modal.is-open {
  pointer-events: auto;
}

.modal {
  z-index: 120000 !important;
}

.modal-backdrop {
  z-index: 119990 !important;
}

.mf-search-modal {
  z-index: 120100 !important;
}

.mfx-page-backdrop,
.mfx-page-backdrop::before,
.mfx-page-backdrop::after,
.mfx-page-backdrop__grain,
.player-poster__bg,
.player-poster__noise {
  pointer-events: none !important;
}

.mobile-player-ratings {
  display: none;
}

@media (max-width: 991.98px) {
  .navbar-toggler,
  .navbar-toggler:focus,
  .navbar-toggler:hover {
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }

  .navbar-toggler-icon {
    width: 1.6em;
    height: 1.6em;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.96%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.4' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.45));
  }

  .navbar {
    padding-top: 0 !important;
  }

  .navbar .header-glass {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    border-radius: 0 !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }

  .navbar-collapse {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    margin-top: 0 !important;
    border-radius: 0 !important;
    padding: 10px 16px 14px !important;
    background: rgba(8, 20, 38, 0.96) !important;
    border-top: 1px solid rgba(143, 197, 255, 0.18);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
  }

  .navbar-collapse .navbar-nav {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .mobile-player-ratings {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: -4px 0 16px;
  }

  .mobile-player-rating {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    padding: 0;
    border: 0;
    background: transparent !important;
    font-size: 0.78rem;
    line-height: 1.2;
    color: var(--mf-muted);
  }

  .mobile-player-rating__source {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(214, 229, 248, 0.70);
  }

  .mobile-player-rating__value {
    font-weight: 800;
    color: #ffffff;
  }

  .mobile-player-rating.rating-high .mobile-player-rating__value { color: #22c55e; }
  .mobile-player-rating.rating-mid .mobile-player-rating__value { color: #f59e0b; }
  .mobile-player-rating.rating-low .mobile-player-rating__value { color: #ef4444; }

  .movie-info-block .movie-ratings-title,
  .movie-info-block .movie-ratings-grid {
    display: none !important;
  }

  .single-post .player-poster__play,
  .single-tvshows .player-poster__play,
  .single-episodes .player-poster__play {
    top: 50% !important;
    right: 18px;
    width: 72px;
    height: 72px;
  }
}

@media (min-width: 992px) {
  .single-post .movie-poster-wrap,
  .single-tvshows .movie-poster-wrap,
  .single-episodes .movie-poster-wrap {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .single-post .movie-poster,
  .single-tvshows .movie-poster,
  .single-episodes .movie-poster {
    display: block;
    margin-top: 0 !important;
  }
}


/* 2026-06-05: final player/header/scroll fixes */
.player-poster__meta,
.player-poster__rating {
  display: flex !important;
}

.player-poster__meta {
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.player-poster__rating {
  display: inline-flex !important;
  align-items: center;
  width: fit-content;
  color: #ffffff;
  background: var(--mf-grad) !important;
  border: 0 !important;
  font-weight: 800;
  padding: 7px 11px;
  border-radius: 999px;
  line-height: 1.1;
  box-shadow: 0 10px 24px rgba(77, 157, 255, 0.18);
}

.player-poster__year {
  margin-left: 0.32em;
}

.mobile-player-ratings {
  display: none !important;
}

@media (max-width: 767.98px) {
  .movie-info-block .movie-ratings-title,
  .movie-info-block .movie-ratings-grid {
    display: grid !important;
  }

  .movie-info-block .movie-ratings-title {
    display: block !important;
  }

  .player-poster__meta {
    margin-top: 12px;
  }

  .player-poster__rating {
    font-size: 0.78rem;
    padding: 6px 10px;
  }
}

/* compact mobile header + always-light hamburger */
@media (max-width: 991.98px) {
  .navbar {
    min-height: 42px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .navbar .header-glass {
    min-height: 42px !important;
    padding-top: 3px !important;
    padding-bottom: 3px !important;
    row-gap: 4px !important;
  }

  .navbar-brand,
  .mf-header-logo {
    line-height: 1 !important;
  }

  .mf-header-logo img,
  .navbar-brand img {
    max-height: 36px !important;
    max-width: min(138px, 31vw) !important;
  }

  .mf-header-actions {
    gap: 6px !important;
    margin-right: 6px !important;
  }

  .mf-header-icon-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    border-radius: 0 !important;
  }

  .mf-header-icon-btn svg {
    width: 18px !important;
    height: 18px !important;
  }

  .navbar-toggler,
  .navbar-toggler:focus,
  .navbar-toggler:hover {
    width: 36px !important;
    height: 34px !important;
    min-width: 36px !important;
    padding: 0 !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .navbar-toggler-icon {
    width: 24px !important;
    height: 24px !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.98%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.6' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.52)) !important;
  }

  .navbar-collapse {
    margin-top: 0 !important;
  }
}

@media (max-width: 420px) {
  .mf-header-logo img,
  .navbar-brand img {
    max-height: 33px !important;
    max-width: min(128px, 30vw) !important;
  }

  .mf-header-icon-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
  }

  .navbar-toggler {
    width: 34px !important;
    height: 32px !important;
  }
}

/* restored scroll-to-top styling */
.mfx-scroll-top {
  position: fixed !important;
  right: 24px !important;
  bottom: 24px !important;
  left: auto !important;
  top: auto !important;
  z-index: 120500 !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border: 1px solid rgba(143, 197, 255, 0.38) !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #4d9dff 0%, #2563eb 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 18px 42px rgba(3, 10, 24, 0.36), 0 0 0 1px rgba(255,255,255,0.08) inset !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(14px) scale(0.96) !important;
  cursor: pointer !important;
  pointer-events: none !important;
  transition: opacity .22s ease, visibility .22s ease, transform .22s ease, box-shadow .22s ease !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.mfx-scroll-top.is-visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
  pointer-events: auto !important;
}

.mfx-scroll-top:hover,
.mfx-scroll-top:focus-visible {
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 22px 52px rgba(3, 10, 24, 0.44), 0 0 0 4px rgba(77, 157, 255, 0.18) !important;
  outline: none !important;
}

.mfx-scroll-top svg {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  color: currentColor !important;
  pointer-events: none !important;
}

.mfx-scroll-top svg path {
  stroke: currentColor !important;
}

html[data-theme="dark"] .mfx-scroll-top {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
  border-color: rgba(143, 197, 255, 0.28) !important;
}

@media (max-width: 767.98px) {
  .mfx-scroll-top {
    right: 16px !important;
    bottom: 16px !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
  }

  .mfx-scroll-top svg {
    width: 20px !important;
    height: 20px !important;
  }
}

/* player radius/corner cleanup */
.single-post .player-frame,
.single-tvshows .player-frame,
.single-episodes .player-frame,
.single-post .player-frame.player-frame--lazy,
.single-tvshows .player-frame.player-frame--lazy,
.single-episodes .player-frame.player-frame--lazy {
  overflow: hidden !important;
  background: transparent !important;
  border-radius: 20px !important;
  isolation: isolate;
}

.single-post .player-poster,
.single-tvshows .player-poster,
.single-episodes .player-poster,
.single-post .player-poster__bg,
.single-tvshows .player-poster__bg,
.single-episodes .player-poster__bg,
.single-post .player-poster__noise,
.single-tvshows .player-poster__noise,
.single-episodes .player-poster__noise,
.single-post .player-frame__iframe,
.single-tvshows .player-frame__iframe,
.single-episodes .player-frame__iframe {
  border-radius: inherit !important;
}

.single-post .player-frame__iframe,
.single-tvshows .player-frame__iframe,
.single-episodes .player-frame__iframe {
  background: transparent !important;
}


/* 2026-06-05: cursor removal, modal layer fix, mobile player corners, plain splash rating */
.of-cursor-dot,
.of-cursor-ring {
  display: none !important;
  pointer-events: none !important;
}

.modal-backdrop {
  z-index: 1040 !important;
  pointer-events: auto !important;
}

.modal {
  z-index: 1055 !important;
  pointer-events: none !important;
}

.modal.show {
  pointer-events: auto !important;
}

.modal .modal-dialog,
.modal .modal-content,
.modal .modal-header,
.modal .modal-body,
.modal .modal-footer {
  position: relative;
  z-index: 1;
  pointer-events: auto !important;
}

.player-poster__meta {
  margin-top: 14px !important;
}

.player-poster__meta span,
.player-poster__rating,
.player-poster__rating:hover,
.player-poster__rating:focus {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.player-poster__rating {
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 0.32em !important;
  width: auto !important;
  min-width: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  line-height: 1.1 !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em !important;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.55) !important;
}

.player-poster__rating-label {
  color: rgba(255, 255, 255, 0.78) !important;
  font-weight: 700 !important;
}

.player-poster__rating.rating-high .player-poster__rating-value {
  color: #22c55e !important;
}

.player-poster__rating.rating-mid .player-poster__rating-value {
  color: #f59e0b !important;
}

.player-poster__rating.rating-low .player-poster__rating-value {
  color: #f97316 !important;
}

@media (max-width: 767.98px) {
  .single-post .player-frame,
  .single-tvshows .player-frame,
  .single-episodes .player-frame,
  .single-post .player-poster,
  .single-tvshows .player-poster,
  .single-episodes .player-poster,
  .single-post .player-poster__bg,
  .single-tvshows .player-poster__bg,
  .single-episodes .player-poster__bg,
  .single-post .player-poster__noise,
  .single-tvshows .player-poster__noise,
  .single-episodes .player-poster__noise,
  .single-post .player-frame__iframe,
  .single-tvshows .player-frame__iframe,
  .single-episodes .player-frame__iframe,
  .single-post .ratio,
  .single-tvshows .ratio,
  .single-episodes .ratio,
  .single-post .embed-responsive,
  .single-tvshows .embed-responsive,
  .single-episodes .embed-responsive {
    border-radius: 0 !important;
  }
}


/* 2026-06-05: splash label, compact rating spacing, hard mobile no-radius fix */
.player-poster__active-player,
.single-post .player-poster__active-player,
.single-tvshows .player-poster__active-player,
.single-episodes .player-poster__active-player {
  position: absolute !important;
  z-index: 9 !important;
  top: 22px !important;
  left: 0 !important;
  right: 0 !important;
  display: block !important;
  width: max-content !important;
  max-width: calc(100% - 40px) !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: clamp(12px, 1.15vw, 15px) !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  letter-spacing: 0.20em !important;
  text-transform: uppercase !important;
  text-align: center !important;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.70) !important;
  pointer-events: none !important;
}

.player-poster__rating {
  gap: 0.12em !important;
  column-gap: 0.12em !important;
}

.player-poster__rating-label {
  margin-right: 0 !important;
  padding-right: 0 !important;
}

.player-poster__rating-value {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

@media (max-width: 991.98px) {
  .player-poster__active-player,
  .single-post .player-poster__active-player,
  .single-tvshows .player-poster__active-player,
  .single-episodes .player-poster__active-player {
    top: 16px !important;
    font-size: 12px !important;
    letter-spacing: 0.18em !important;
  }

  body.single-post .player-section .player-frame,
  body.single-tvshows .player-section .player-frame,
  body.single-episodes .player-section .player-frame,
  body.single-post .player-section .player-frame.player-frame--lazy,
  body.single-tvshows .player-section .player-frame.player-frame--lazy,
  body.single-episodes .player-section .player-frame.player-frame--lazy,
  body.single-post .player-section .player-poster,
  body.single-tvshows .player-section .player-poster,
  body.single-episodes .player-section .player-poster,
  body.single-post .player-section .player-poster::before,
  body.single-tvshows .player-section .player-poster::before,
  body.single-episodes .player-section .player-poster::before,
  body.single-post .player-section .player-poster::after,
  body.single-tvshows .player-section .player-poster::after,
  body.single-episodes .player-section .player-poster::after,
  body.single-post .player-section .player-poster__bg,
  body.single-tvshows .player-section .player-poster__bg,
  body.single-episodes .player-section .player-poster__bg,
  body.single-post .player-section .player-poster__bg::before,
  body.single-tvshows .player-section .player-poster__bg::before,
  body.single-episodes .player-section .player-poster__bg::before,
  body.single-post .player-section .player-poster__bg::after,
  body.single-tvshows .player-section .player-poster__bg::after,
  body.single-episodes .player-section .player-poster__bg::after,
  body.single-post .player-section .player-poster__noise,
  body.single-tvshows .player-section .player-poster__noise,
  body.single-episodes .player-section .player-poster__noise,
  body.single-post .player-section .player-frame__iframe,
  body.single-tvshows .player-section .player-frame__iframe,
  body.single-episodes .player-section .player-frame__iframe {
    border-radius: 0 !important;
  }
}

/* 2026-06-05: mobile splash vertical balance + rating left alignment */
.player-poster__meta,
.single-post .player-poster__meta,
.single-tvshows .player-poster__meta,
.single-episodes .player-poster__meta {
  justify-content: flex-start !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

.player-poster__rating,
.single-post .player-poster__rating,
.single-tvshows .player-poster__rating,
.single-episodes .player-poster__rating {
  margin-left: 0 !important;
  padding-left: 0 !important;
  transform: translateX(-1px) !important;
}

.player-poster__rating-label,
.player-poster__rating-value {
  display: inline-block !important;
}

@media (max-width: 767.98px) {
  body.single-post .player-section .player-poster__content,
  body.single-tvshows .player-section .player-poster__content,
  body.single-episodes .player-section .player-poster__content {
    top: 50% !important;
    bottom: auto !important;
    left: 18px !important;
    right: 112px !important;
    max-width: calc(100% - 130px) !important;
    transform: translateY(-35%) !important;
  }

  body.single-post .player-section .player-poster__meta,
  body.single-tvshows .player-section .player-poster__meta,
  body.single-episodes .player-section .player-poster__meta {
    margin-top: 10px !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
  }

  body.single-post .player-section .player-poster__rating,
  body.single-tvshows .player-section .player-poster__rating,
  body.single-episodes .player-section .player-poster__rating {
    transform: translateX(-1px) !important;
  }
}



/* Player splash state: after the first Play click, splash never returns while switching players. */
.player-frame.player-frame--has-played .player-poster {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.player-frame.player-frame--has-played .player-frame__iframe {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Directory pages: genres / countries, text-only cards */
.mcs-directory-header {
  margin: 0 0 28px;
}

.mcs-directory-header h1 {
  margin-bottom: 8px;
}

.mcs-directory-header p {
  max-width: 640px;
  margin: 0;
  color: rgba(235, 245, 255, 0.72);
}

html:not([data-theme="dark"]) .mcs-directory-header p {
  color: rgba(29, 49, 74, 0.72);
}

.mcs-directory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 36px;
}

.mcs-directory-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
  padding: 18px 20px;
  overflow: hidden;
  text-decoration: none !important;
  border: 1px solid rgba(77, 157, 255, 0.18);
  background: linear-gradient(135deg, rgba(13, 37, 66, 0.72), rgba(10, 25, 47, 0.48));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.mcs-directory-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(77, 157, 255, 0.16), transparent 42%);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.mcs-directory-card:hover,
.mcs-directory-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(77, 157, 255, 0.52);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.22);
}

.mcs-directory-card:hover::before,
.mcs-directory-card:focus-visible::before {
  opacity: 1;
}

.mcs-directory-card__title,
.mcs-directory-card__count {
  position: relative;
  z-index: 1;
}

.mcs-directory-card__title {
  min-width: 0;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mcs-directory-card__count {
  flex: 0 0 auto;
  color: rgba(202, 224, 250, 0.72);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

html:not([data-theme="dark"]) .mcs-directory-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(236, 245, 255, 0.78));
  border-color: rgba(37, 106, 190, 0.15);
  box-shadow: 0 16px 34px rgba(16, 45, 84, 0.09);
}

html:not([data-theme="dark"]) .mcs-directory-card__title {
  color: #13253f;
}

html:not([data-theme="dark"]) .mcs-directory-card__count {
  color: rgba(43, 75, 118, 0.72);
}

/* Minimal site pagination */
.mcs-light-pagination {
  display: flex;
  justify-content: center;
  margin: 26px 0 42px;
}

.mcs-light-pagination__inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.mcs-light-pagination .page-numbers,
.mcs-light-pagination__item {
  width: auto;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  text-decoration: none !important;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

html:not([data-theme="dark"]) .mcs-light-pagination .page-numbers,
html:not([data-theme="dark"]) .mcs-light-pagination__item {
  color: #31506f;
  border: 1px solid rgba(35, 101, 178, 0.18);
}

html:not([data-theme="dark"]) .mcs-light-pagination .page-numbers:hover,
html:not([data-theme="dark"]) .mcs-light-pagination .page-numbers.current {
  color: #ffffff;
  border-color: rgba(63, 156, 255, 0.75);
  background: #3f9cff;
}

html[data-theme="dark"] .mcs-light-pagination .page-numbers,
html[data-theme="dark"] .mcs-light-pagination__item {
  color: rgba(222, 235, 252, 0.82);
  border: 1px solid rgba(130, 178, 236, 0.18);
}

html[data-theme="dark"] .mcs-light-pagination .page-numbers:hover,
html[data-theme="dark"] .mcs-light-pagination .page-numbers.current {
  color: #ffffff;
  border-color: rgba(77, 157, 255, 0.78);
  background: rgba(77, 157, 255, 0.82);
}

.mcs-light-pagination .page-numbers.dots {
  border-color: transparent !important;
  background: transparent !important;
  opacity: 0.62;
  pointer-events: none;
}

.mcs-light-pagination .prev,
.mcs-light-pagination .next {
  font-size: 1.05rem;
}

@media (max-width: 991.98px) {
  .mcs-directory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .mcs-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .mcs-directory-card {
    min-height: 66px;
    padding: 14px 14px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
  }

  .mcs-directory-card__title {
    width: 100%;
    font-size: 0.95rem;
  }

  .mcs-directory-card__count {
    font-size: 0.67rem;
  }

  .mcs-light-pagination {
    margin: 20px 0 34px;
  }

  .mcs-light-pagination__inner {
    gap: 5px;
  }

  .mcs-light-pagination .page-numbers,
  .mcs-light-pagination__item {
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    font-size: 0.78rem;
  }
}


/* Clean minimal pagination alignment/readability */
.mcs-light-pagination .page-numbers,
.mcs-light-pagination__item {
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  border-radius: 0 !important;
  transform: none !important;
  position: relative !important;
  top: 0 !important;
}

html:not([data-theme="dark"]) .mcs-light-pagination .page-numbers,
html:not([data-theme="dark"]) .mcs-light-pagination__item {
  color: #173354 !important;
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(42, 106, 184, 0.30) !important;
  box-shadow: none !important;
}

html:not([data-theme="dark"]) .mcs-light-pagination .page-numbers.current,
html:not([data-theme="dark"]) .mcs-light-pagination .page-numbers:hover {
  color: #ffffff !important;
  background: #3f9cff !important;
  border-color: #3f9cff !important;
  transform: none !important;
}

html[data-theme="dark"] .mcs-light-pagination .page-numbers,
html[data-theme="dark"] .mcs-light-pagination__item {
  color: rgba(235, 244, 255, 0.88) !important;
  background: rgba(255, 255, 255, 0.055) !important;
  border-color: rgba(130, 178, 236, 0.18) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .mcs-light-pagination .page-numbers.current,
html[data-theme="dark"] .mcs-light-pagination .page-numbers:hover {
  color: #ffffff !important;
  background: rgba(77, 157, 255, 0.88) !important;
  border-color: rgba(77, 157, 255, 0.88) !important;
  transform: none !important;
}

.mcs-light-pagination .page-numbers.dots {
  color: rgba(148, 172, 201, 0.72) !important;
  background: transparent !important;
  border-color: transparent !important;
  width: 36px !important;
  min-width: 36px !important;
  opacity: 1 !important;
}

@media (max-width: 767.98px) {
  .mcs-light-pagination .page-numbers,
  .mcs-light-pagination__item {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
  }
}


/* MyFlixer page load progress and visual loader */
.mfx-top-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 2147483000;
  pointer-events: none;
  opacity: 0;
  transform: translateZ(0);
}

html.mfx-js.mfx-progress-loading .mfx-top-progress {
  opacity: 1;
}

html.mfx-progress-done .mfx-top-progress {
  opacity: 0;
  transition: opacity 0.28s ease;
}

.mfx-top-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(var(--mfx-load-progress, 0.06));
  background: linear-gradient(90deg, rgba(62, 150, 255, 0.2), #4a9dff 44%, #78c3ff 100%);
  box-shadow: 0 0 12px rgba(74, 157, 255, 0.85), 0 0 22px rgba(74, 157, 255, 0.35);
  transition: transform 0.22s ease;
}

.mfx-page-loader {
  position: fixed;
  inset: 0;
  z-index: 2147482000;
  display: none;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(74, 157, 255, 0.16), transparent 34%),
    radial-gradient(circle at 18% 12%, rgba(74, 157, 255, 0.10), transparent 28%),
    linear-gradient(180deg, rgba(5, 10, 20, 0.98) 0%, rgba(3, 7, 15, 0.99) 100%);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

html.mfx-js.mfx-page-loading .mfx-page-loader {
  display: flex;
}

html.mfx-page-loader-done .mfx-page-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.34s ease, visibility 0s linear 0.34s;
}

.mfx-page-loader__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 126px;
  height: 126px;
}

.mfx-page-loader__inner::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(109, 185, 255, 0.16);
  background: rgba(4, 12, 25, 0.22);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.34), 0 0 44px rgba(74, 157, 255, 0.18);
  transform: rotate(45deg);
}

.mfx-page-loader__logo {
  position: relative;
  z-index: 2;
  display: block;
  width: 78px;
  height: 78px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.18)) drop-shadow(0 0 30px rgba(74, 157, 255, 0.28));
  animation: mfx-loader-logo-pulse 1.15s ease-in-out infinite;
}

@keyframes mfx-loader-logo-pulse {
  0%, 100% {
    transform: scale(0.96);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

html[data-theme="light"] .mfx-page-loader,
[data-theme="light"] .mfx-page-loader {
  background:
    radial-gradient(circle at 50% 38%, rgba(74, 157, 255, 0.20), transparent 34%),
    radial-gradient(circle at 18% 12%, rgba(74, 157, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(17, 43, 72, 0.98) 0%, rgba(6, 18, 35, 0.99) 100%);
}

@media (max-width: 767.98px) {
  .mfx-top-progress {
    height: 2px;
  }

  .mfx-page-loader__inner {
    width: 104px;
    height: 104px;
  }

  .mfx-page-loader__logo {
    width: 66px;
    height: 66px;
  }
}



/* Keep the single title visible in lights-off mode */
body.mfx-lights-off .site-main article > h1.mfx-lights-dim,
body.mfx-lights-off .site-main article > h1.mb-4.mfx-lights-dim,
body.mfx-lights-off .site-main article > .entry-title.mfx-lights-dim,
body.mfx-lights-off article > h1.mfx-lights-dim,
body.mfx-lights-off article > .entry-title.mfx-lights-dim {
  opacity: 1 !important;
  filter: none !important;
  color: #ffffff !important;
  position: relative;
  z-index: 71;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.62), 0 1px 2px rgba(0, 0, 0, 0.9);
}

body.mfx-lights-off .site-main article > h1.mfx-lights-dim::after,
body.mfx-lights-off .site-main article > h1.mb-4.mfx-lights-dim::after,
body.mfx-lights-off .site-main article > .entry-title.mfx-lights-dim::after,
body.mfx-lights-off article > h1.mfx-lights-dim::after,
body.mfx-lights-off article > .entry-title.mfx-lights-dim::after {
  opacity: 1 !important;
  filter: none !important;
  background: var(--mf-grad) !important;
  box-shadow: 0 0 18px rgba(77, 157, 255, 0.42);
}

body.mfx-lights-off .site-main article > h1.mfx-lights-dim a,
body.mfx-lights-off article > h1.mfx-lights-dim a {
  color: inherit !important;
}

@media (prefers-reduced-motion: reduce) {
  .mfx-top-progress__bar,
  html.mfx-progress-done .mfx-top-progress,
  html.mfx-page-loader-done .mfx-page-loader {
    transition: none !important;
  }

  .mfx-page-loader__logo {
    animation: none !important;
  }
}

/* =====================================================
   MyFlixer thin themed scrollbar
   ===================================================== */
:root {
  --mfx-scrollbar-track: rgba(226, 236, 249, 0.42);
  --mfx-scrollbar-thumb: rgba(77, 157, 255, 0.78);
  --mfx-scrollbar-thumb-hover: rgba(37, 99, 235, 0.92);
}

html[data-theme="dark"] {
  --mfx-scrollbar-track: rgba(4, 14, 30, 0.72);
  --mfx-scrollbar-thumb: rgba(77, 157, 255, 0.70);
  --mfx-scrollbar-thumb-hover: rgba(118, 185, 255, 0.94);
}

html,
body,
* {
  scrollbar-width: thin;
  scrollbar-color: var(--mfx-scrollbar-thumb) var(--mfx-scrollbar-track);
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--mfx-scrollbar-track);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--mfx-scrollbar-thumb), rgba(37, 99, 235, 0.84));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--mfx-scrollbar-thumb-hover), rgba(37, 99, 235, 0.98));
}

::-webkit-scrollbar-corner {
  background: var(--mfx-scrollbar-track);
}

@media (max-width: 767.98px) {
  ::-webkit-scrollbar {
    width: 4px;
    height: 4px;
  }
}


/* =====================================================
   MyFlixer search guard UI
   ===================================================== */
.search-form-custom {
  position: relative;
}

.search-form-custom .mcs-search-message {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  min-height: 16px;
  color: rgba(230, 86, 86, 0.96);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(-3px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.search-form-custom.mcs-search-form--has-message .mcs-search-message {
  opacity: 1;
  transform: translateY(0);
}

.search-form-custom.mcs-search-form--cooldown .search-form-custom__submit {
  cursor: wait;
  opacity: 0.78;
}

.search-form-custom .mcs-search-countdown {
  display: none;
  min-width: 1.15em;
  text-align: center;
  font-weight: 900;
  line-height: 1;
}

.search-form-custom.mcs-search-form--cooldown .mcs-search-countdown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-form-custom.mcs-search-form--cooldown .search-form-custom__submit-icon,
.search-form-custom.mcs-search-form--cooldown .search-form-custom__submit-text {
  display: none !important;
}

.mf-search-modal__form .search-form-custom .mcs-search-message {
  left: 12px;
  right: 12px;
  top: calc(100% + 10px);
  color: rgba(255, 165, 130, 0.98);
}

html[data-theme="dark"] .search-form-custom .mcs-search-message,
body[data-theme="dark"] .search-form-custom .mcs-search-message {
  color: rgba(255, 165, 130, 0.98);
}

@media (max-width: 576px) {
  .search-form-custom .mcs-search-message {
    font-size: 11px;
  }

  .search-form-custom .mcs-search-countdown {
    font-size: 18px;
  }
}


.mf-header-icon-btn.mcs-search-trigger--cooldown {
  color: #ffffff !important;
  background: rgba(77, 157, 255, 0.16) !important;
  border-color: rgba(140, 190, 255, 0.35) !important;
}

.mcs-search-trigger-countdown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1em;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}


/* MyFlixer lights-off focus mode (no overlays over the player) */
.mfx-cinema-overlay,
.mfx-cinema-panels,
.mfx-cinema-panel {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.mfx-lights-dim {
  opacity: 0.14;
  filter: brightness(0.24) saturate(0.48);
  transition: opacity 0.36s ease, filter 0.36s ease;
}

.mfx-page-backdrop.mfx-lights-dim,
body.mfx-lights-off .mfx-page-backdrop {
  opacity: 0.36;
  filter: brightness(0.16) saturate(0.46) blur(0.45px);
  transition: opacity 0.36s ease, filter 0.36s ease;
}

body.mfx-lights-off .mfx-page-backdrop__grain {
  opacity: 0.08;
}

.mfx-lights-focus {
  position: relative;
  z-index: 70;
  opacity: 1 !important;
  filter: none !important;
  transition: filter 0.36s ease, opacity 0.36s ease;
}

.mfx-lights-focus .player-frame,
.mfx-lights-focus #playerTabs,
.mfx-lights-focus .player-tabs,
.mfx-lights-focus .player-tab,
.mfx-lights-focus .player-tab-btn,
.mfx-lights-focus .nav-tabs#playerTabs {
  position: relative;
  z-index: 72;
  opacity: 1 !important;
  filter: none !important;
}

.mfx-lights-focus .player-frame {
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(130, 185, 255, 0.20);
}

html[data-theme="light"] .mfx-lights-dim {
  opacity: 0.12;
  filter: brightness(0.22) saturate(0.44);
}

html[data-theme="light"] body.mfx-lights-off .mfx-page-backdrop {
  opacity: 0.32;
  filter: brightness(0.14) saturate(0.42) blur(0.45px);
}

html[data-theme="dark"] .mfx-lights-dim {
  opacity: 0.17;
  filter: brightness(0.28) saturate(0.52);
}

html[data-theme="dark"] body.mfx-lights-off .mfx-page-backdrop {
  opacity: 0.42;
  filter: brightness(0.18) saturate(0.50) blur(0.35px);
}

@media (max-width: 767.98px) {
  .mfx-lights-dim {
    opacity: 0.16;
    filter: brightness(0.26) saturate(0.52);
  }

  body.mfx-lights-off .mfx-page-backdrop {
    opacity: 0.40;
    filter: brightness(0.18) saturate(0.50);
  }

  .mfx-lights-focus .player-frame {
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mfx-lights-dim,
  .mfx-lights-focus,
  .mfx-page-backdrop.mfx-lights-dim,
  body.mfx-lights-off .mfx-page-backdrop {
    transition: none;
  }
}

/* 2026-06-10: calmer archive Featured poster-wall backgrounds */
.archive.post-type-archive-post .featured-movies-wall-block,
.post-type-archive-post .featured-movies-wall-block,
.archive.post-type-archive-tvshows .featured-movies-wall-block,
.post-type-archive-tvshows .featured-movies-wall-block,
.featured-movies-wall-block {
    overflow: hidden;
    padding-bottom: 46px;
}

.featured-movies-wall-block::before {
    z-index: 1;
    background:
        linear-gradient(180deg,
            rgba(0, 3, 10, 0.82) 0%,
            rgba(1, 7, 18, 0.86) 32%,
            rgba(1, 7, 18, 0.90) 68%,
            rgba(0, 4, 12, 0.98) 100%),
        linear-gradient(90deg,
            rgba(0, 2, 8, 0.90) 0%,
            rgba(0, 4, 12, 0.64) 16%,
            rgba(0, 5, 14, 0.56) 50%,
            rgba(0, 4, 12, 0.64) 84%,
            rgba(0, 2, 8, 0.90) 100%);
}

.featured-movies-wall-block::after {
    z-index: 2;
    background:
        linear-gradient(180deg,
            rgba(0, 4, 12, 0.22) 0%,
            rgba(0, 4, 12, 0.04) 18%,
            rgba(0, 4, 12, 0.12) 52%,
            rgba(0, 4, 12, 0.72) 84%,
            #02070f 100%),
        radial-gradient(ellipse at center,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.04) 38%,
            rgba(0, 2, 8, 0.40) 74%,
            rgba(0, 1, 5, 0.86) 100%);
}

.featured-movies-poster-wall {
    opacity: 0.34 !important;
}

.featured-movies-poster-wall__tile {
    filter: saturate(0.45) contrast(0.76) brightness(0.36) blur(0.55px) !important;
}

html[data-theme="dark"] .featured-movies-wall-block::before,
body[data-theme="dark"] .featured-movies-wall-block::before {
    background:
        linear-gradient(180deg,
            rgba(0, 2, 8, 0.86) 0%,
            rgba(1, 6, 16, 0.90) 34%,
            rgba(1, 6, 16, 0.93) 68%,
            rgba(0, 3, 10, 1) 100%),
        linear-gradient(90deg,
            rgba(0, 1, 5, 0.92) 0%,
            rgba(0, 3, 10, 0.68) 16%,
            rgba(0, 4, 12, 0.60) 50%,
            rgba(0, 3, 10, 0.68) 84%,
            rgba(0, 1, 5, 0.92) 100%);
}

html[data-theme="dark"] .featured-movies-wall-block::after,
body[data-theme="dark"] .featured-movies-wall-block::after {
    background:
        linear-gradient(180deg,
            rgba(0, 3, 10, 0.24) 0%,
            rgba(0, 3, 10, 0.06) 18%,
            rgba(0, 3, 10, 0.18) 52%,
            rgba(0, 3, 10, 0.78) 84%,
            #01050b 100%),
        radial-gradient(ellipse at center,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.06) 38%,
            rgba(0, 2, 8, 0.46) 74%,
            rgba(0, 1, 5, 0.90) 100%);
}

html[data-theme="dark"] .featured-movies-poster-wall,
body[data-theme="dark"] .featured-movies-poster-wall {
    opacity: 0.30 !important;
}

html[data-theme="dark"] .featured-movies-poster-wall__tile,
body[data-theme="dark"] .featured-movies-poster-wall__tile {
    filter: saturate(0.42) contrast(0.72) brightness(0.32) blur(0.6px) !important;
}

.featured-movies-grid {
    position: relative;
    z-index: 4;
}

.featured-movies-grid::before {
    content: '';
    position: absolute;
    inset: -12px -14px -18px;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at center, rgba(0, 3, 10, 0.28) 0%, rgba(0, 3, 10, 0.18) 52%, rgba(0, 3, 10, 0) 100%),
        linear-gradient(180deg, rgba(0, 3, 10, 0.18), rgba(0, 3, 10, 0.34));
}

.featured-movies-grid > * {
    position: relative;
    z-index: 2;
}

.featured-poster-wrap {
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.68), 0 0 0 1px rgba(218, 235, 255, 0.14);
}

@media (max-width: 767.98px) {
    .featured-movies-wall-block {
        padding-bottom: 36px;
    }

    .featured-movies-poster-wall {
        opacity: 0.28 !important;
    }

    .featured-movies-poster-wall__tile {
        filter: saturate(0.40) contrast(0.72) brightness(0.32) blur(0.55px) !important;
    }

    .featured-movies-grid::before {
        inset: -8px -8px -14px;
        background: linear-gradient(180deg, rgba(0, 3, 10, 0.18), rgba(0, 3, 10, 0.32));
    }
}

/* 2026-06-10: Featured archive poster wall balanced v3.
   The archive Featured Movies / Featured TV Shows background wall stays visible,
   but is softened by a separate vignette and a bottom fade. */
.featured-movies-block.featured-movies-wall-block {
    position: relative !important;
    isolation: isolate !important;
    overflow: visible !important;
    padding-top: 24px !important;
    padding-bottom: 96px !important;
    margin-bottom: 72px !important;
    background:
        radial-gradient(ellipse at center,
            rgba(7, 24, 46, 0.18) 0%,
            rgba(2, 9, 19, 0.46) 72%,
            rgba(0, 3, 9, 0.76) 100%) !important;
}

.featured-movies-block.featured-movies-wall-block::before,
.featured-movies-block.featured-movies-wall-block::after {
    content: '' !important;
    position: absolute !important;
    left: 50% !important;
    width: 100vw !important;
    transform: translateX(-50%) !important;
    pointer-events: none !important;
}

/* Side vignette and soft dark wash. Keep center transparent enough so poster wall is visible. */
.featured-movies-block.featured-movies-wall-block::before {
    z-index: 2 !important;
    top: -22px !important;
    bottom: -118px !important;
    background:
        radial-gradient(ellipse at center,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 2, 8, 0.08) 42%,
            rgba(0, 2, 8, 0.34) 78%,
            rgba(0, 1, 5, 0.78) 100%),
        linear-gradient(90deg,
            rgba(0, 1, 5, 0.92) 0%,
            rgba(0, 3, 10, 0.62) 10%,
            rgba(0, 5, 14, 0.24) 22%,
            rgba(0, 5, 14, 0.10) 50%,
            rgba(0, 5, 14, 0.24) 78%,
            rgba(0, 3, 10, 0.62) 90%,
            rgba(0, 1, 5, 0.92) 100%),
        linear-gradient(180deg,
            rgba(0, 3, 10, 0.34) 0%,
            rgba(0, 5, 16, 0.10) 26%,
            rgba(0, 5, 16, 0.14) 62%,
            rgba(0, 3, 10, 0.44) 100%) !important;
}

/* Bottom fade only. Cards stay above this layer, background fades into the page. */
.featured-movies-block.featured-movies-wall-block::after {
    z-index: 3 !important;
    top: auto !important;
    bottom: -128px !important;
    height: 330px !important;
    background:
        linear-gradient(180deg,
            rgba(0, 3, 10, 0) 0%,
            rgba(0, 3, 10, 0.08) 22%,
            rgba(0, 3, 10, 0.30) 48%,
            rgba(0, 3, 10, 0.72) 76%,
            #00040a 100%) !important;
}

.featured-movies-block.featured-movies-wall-block .featured-movies-poster-wall {
    z-index: 1 !important;
    top: -22px !important;
    bottom: -128px !important;
    opacity: 0.52 !important;
    filter: none !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
}

.featured-movies-block.featured-movies-wall-block .featured-movies-poster-wall__tile {
    opacity: 1 !important;
    filter: saturate(0.56) contrast(0.78) brightness(0.44) blur(0.35px) !important;
}

.featured-movies-block.featured-movies-wall-block .featured-movies-header,
.featured-movies-block.featured-movies-wall-block .featured-movies-grid {
    position: relative !important;
    z-index: 6 !important;
}

.featured-movies-block.featured-movies-wall-block .featured-movies-header {
    background: linear-gradient(90deg,
        rgba(0, 3, 10, 0.74) 0%,
        rgba(4, 16, 32, 0.46) 52%,
        rgba(4, 16, 32, 0.08) 100%) !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22) !important;
}

.featured-movies-block.featured-movies-wall-block .featured-movies-grid::before {
    content: '' !important;
    position: absolute !important;
    inset: -16px -18px -24px !important;
    z-index: 0 !important;
    pointer-events: none !important;
    background:
        radial-gradient(ellipse at center,
            rgba(0, 3, 10, 0.22) 0%,
            rgba(0, 3, 10, 0.12) 48%,
            rgba(0, 3, 10, 0) 100%),
        linear-gradient(180deg,
            rgba(0, 3, 10, 0.10),
            rgba(0, 3, 10, 0.22)) !important;
}

.featured-movies-block.featured-movies-wall-block .featured-movies-grid > * {
    position: relative !important;
    z-index: 2 !important;
}

@media (min-width: 1200px) {
    .featured-movies-block.featured-movies-wall-block .featured-movies-poster-wall {
        opacity: 0.56 !important;
    }

    .featured-movies-block.featured-movies-wall-block .featured-movies-poster-wall__tile {
        filter: saturate(0.58) contrast(0.80) brightness(0.46) blur(0.30px) !important;
    }
}

@media (max-width: 991.98px) {
    .featured-movies-block.featured-movies-wall-block {
        padding-bottom: 76px !important;
        margin-bottom: 56px !important;
    }

    .featured-movies-block.featured-movies-wall-block::before {
        bottom: -104px !important;
    }

    .featured-movies-block.featured-movies-wall-block::after {
        bottom: -108px !important;
        height: 270px !important;
    }

    .featured-movies-block.featured-movies-wall-block .featured-movies-poster-wall {
        bottom: -108px !important;
        opacity: 0.44 !important;
    }

    .featured-movies-block.featured-movies-wall-block .featured-movies-poster-wall__tile {
        filter: saturate(0.50) contrast(0.74) brightness(0.40) blur(0.35px) !important;
    }
}

@media (max-width: 767.98px) {
    .featured-movies-block.featured-movies-wall-block {
        padding-bottom: 58px !important;
        margin-bottom: 44px !important;
    }

    .featured-movies-block.featured-movies-wall-block::before {
        top: -14px !important;
        bottom: -76px !important;
        background:
            radial-gradient(ellipse at center,
                rgba(0, 0, 0, 0) 0%,
                rgba(0, 2, 8, 0.18) 64%,
                rgba(0, 1, 5, 0.78) 100%),
            linear-gradient(90deg,
                rgba(0, 1, 5, 0.84) 0%,
                rgba(0, 4, 12, 0.36) 24%,
                rgba(0, 4, 12, 0.18) 50%,
                rgba(0, 4, 12, 0.36) 76%,
                rgba(0, 1, 5, 0.84) 100%),
            linear-gradient(180deg,
                rgba(0, 3, 10, 0.40) 0%,
                rgba(0, 5, 16, 0.14) 48%,
                rgba(0, 2, 7, 0.58) 100%) !important;
    }

    .featured-movies-block.featured-movies-wall-block::after {
        bottom: -80px !important;
        height: 210px !important;
    }

    .featured-movies-block.featured-movies-wall-block .featured-movies-poster-wall {
        top: -14px !important;
        bottom: -80px !important;
        opacity: 0.38 !important;
    }

    .featured-movies-block.featured-movies-wall-block .featured-movies-poster-wall__tile {
        filter: saturate(0.46) contrast(0.70) brightness(0.36) blur(0.45px) !important;
    }

    .featured-movies-block.featured-movies-wall-block .featured-movies-grid::before {
        inset: -10px -10px -18px !important;
        background: linear-gradient(180deg,
            rgba(0, 3, 10, 0.14),
            rgba(0, 3, 10, 0.26)) !important;
    }
}

/* 2026-06-10: Featured archive poster wall seamless bottom fade v4.
   Keep the background poster wall visible, but fade it inside the block so it
   blends into the page background without a horizontal dark stripe. */
.archive.post-type-archive-post .featured-movies-block.featured-movies-wall-block,
.post-type-archive-post .featured-movies-block.featured-movies-wall-block,
.archive.post-type-archive-tvshows .featured-movies-block.featured-movies-wall-block,
.post-type-archive-tvshows .featured-movies-block.featured-movies-wall-block,
.featured-movies-block.featured-movies-wall-block {
    position: relative !important;
    isolation: isolate !important;
    overflow: hidden !important;
    padding-top: 24px !important;
    padding-bottom: 74px !important;
    margin-bottom: 46px !important;
    border: 0 !important;
    box-shadow: none !important;
    background:
        radial-gradient(ellipse at 50% 36%, rgba(12, 32, 58, 0.20) 0%, rgba(5, 12, 25, 0.18) 46%, rgba(5, 8, 18, 0.00) 82%),
        linear-gradient(180deg, rgba(5, 8, 18, 0.00) 0%, rgba(5, 8, 18, 0.10) 62%, rgba(5, 8, 18, 0.00) 100%) !important;
}

.featured-movies-block.featured-movies-wall-block::before,
.featured-movies-block.featured-movies-wall-block::after {
    content: '' !important;
    position: absolute !important;
    left: 50% !important;
    width: 100vw !important;
    transform: translateX(-50%) !important;
    pointer-events: none !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Vignette: dark sides and a light central wash, without creating a bottom band. */
.featured-movies-block.featured-movies-wall-block::before {
    z-index: 2 !important;
    top: 0 !important;
    bottom: 0 !important;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(0, 0, 0, 0) 0%, rgba(0, 3, 10, 0.08) 48%, rgba(0, 2, 8, 0.44) 82%, rgba(0, 1, 5, 0.86) 100%),
        linear-gradient(90deg,
            rgba(0, 1, 5, 0.94) 0%,
            rgba(0, 3, 10, 0.64) 9%,
            rgba(0, 5, 16, 0.20) 23%,
            rgba(0, 5, 16, 0.06) 50%,
            rgba(0, 5, 16, 0.20) 77%,
            rgba(0, 3, 10, 0.64) 91%,
            rgba(0, 1, 5, 0.94) 100%) !important;
}

/* Bottom fade: begins high, ends inside the block, and does not spill over the next section. */
.featured-movies-block.featured-movies-wall-block::after {
    z-index: 3 !important;
    top: 50% !important;
    bottom: -1px !important;
    height: auto !important;
    background:
        linear-gradient(180deg,
            rgba(5, 8, 18, 0.00) 0%,
            rgba(5, 8, 18, 0.18) 34%,
            rgba(5, 8, 18, 0.46) 62%,
            rgba(5, 8, 18, 0.76) 82%,
            rgba(5, 8, 18, 0.96) 100%) !important;
}

.featured-movies-block.featured-movies-wall-block .featured-movies-poster-wall {
    z-index: 1 !important;
    top: -18px !important;
    bottom: -1px !important;
    opacity: 0.58 !important;
    filter: none !important;
    -webkit-mask-image: linear-gradient(180deg,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 1) 56%,
        rgba(0, 0, 0, 0.76) 70%,
        rgba(0, 0, 0, 0.34) 86%,
        rgba(0, 0, 0, 0) 100%) !important;
    mask-image: linear-gradient(180deg,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 1) 56%,
        rgba(0, 0, 0, 0.76) 70%,
        rgba(0, 0, 0, 0.34) 86%,
        rgba(0, 0, 0, 0) 100%) !important;
}

.featured-movies-block.featured-movies-wall-block .featured-movies-poster-wall__tile {
    opacity: 1 !important;
    filter: saturate(0.58) contrast(0.80) brightness(0.46) blur(0.28px) !important;
}

.featured-movies-block.featured-movies-wall-block .featured-movies-header,
.featured-movies-block.featured-movies-wall-block .featured-movies-grid {
    position: relative !important;
    z-index: 6 !important;
}

.featured-movies-block.featured-movies-wall-block .featured-movies-grid::before {
    content: '' !important;
    position: absolute !important;
    inset: -16px -18px -20px !important;
    z-index: 0 !important;
    pointer-events: none !important;
    border: 0 !important;
    box-shadow: none !important;
    background:
        radial-gradient(ellipse at 50% 44%, rgba(0, 3, 10, 0.24) 0%, rgba(0, 3, 10, 0.12) 52%, rgba(0, 3, 10, 0.00) 100%) !important;
}

.featured-movies-block.featured-movies-wall-block .featured-movies-grid > * {
    position: relative !important;
    z-index: 2 !important;
}

@media (min-width: 1200px) {
    .featured-movies-block.featured-movies-wall-block {
        padding-bottom: 82px !important;
        margin-bottom: 50px !important;
    }

    .featured-movies-block.featured-movies-wall-block .featured-movies-poster-wall {
        opacity: 0.60 !important;
    }

    .featured-movies-block.featured-movies-wall-block .featured-movies-poster-wall__tile {
        filter: saturate(0.60) contrast(0.82) brightness(0.48) blur(0.24px) !important;
    }
}

@media (max-width: 991.98px) {
    .featured-movies-block.featured-movies-wall-block {
        padding-bottom: 66px !important;
        margin-bottom: 40px !important;
    }

    .featured-movies-block.featured-movies-wall-block::after {
        top: 48% !important;
    }

    .featured-movies-block.featured-movies-wall-block .featured-movies-poster-wall {
        opacity: 0.48 !important;
    }

    .featured-movies-block.featured-movies-wall-block .featured-movies-poster-wall__tile {
        filter: saturate(0.52) contrast(0.76) brightness(0.40) blur(0.34px) !important;
    }
}

@media (max-width: 767.98px) {
    .featured-movies-block.featured-movies-wall-block {
        padding-bottom: 54px !important;
        margin-bottom: 34px !important;
    }

    .featured-movies-block.featured-movies-wall-block::before {
        background:
            radial-gradient(ellipse at 50% 40%, rgba(0, 0, 0, 0) 0%, rgba(0, 3, 10, 0.15) 56%, rgba(0, 1, 5, 0.82) 100%),
            linear-gradient(90deg,
                rgba(0, 1, 5, 0.88) 0%,
                rgba(0, 4, 12, 0.40) 22%,
                rgba(0, 4, 12, 0.14) 50%,
                rgba(0, 4, 12, 0.40) 78%,
                rgba(0, 1, 5, 0.88) 100%) !important;
    }

    .featured-movies-block.featured-movies-wall-block::after {
        top: 46% !important;
    }

    .featured-movies-block.featured-movies-wall-block .featured-movies-poster-wall {
        top: -12px !important;
        opacity: 0.42 !important;
    }

    .featured-movies-block.featured-movies-wall-block .featured-movies-poster-wall__tile {
        filter: saturate(0.48) contrast(0.72) brightness(0.36) blur(0.40px) !important;
    }
}

/* 2026-06-10: Featured archive poster wall full-bleed seamless fade v5.
   This overrides the previous v2/v3/v4 experiments. The poster wall must stay
   visible on both sides and fade out by transparency, not by a rectangular dark band. */
.archive.post-type-archive-post .featured-movies-block.featured-movies-wall-block,
.post-type-archive-post .featured-movies-block.featured-movies-wall-block,
.archive.post-type-archive-tvshows .featured-movies-block.featured-movies-wall-block,
.post-type-archive-tvshows .featured-movies-block.featured-movies-wall-block,
.featured-movies-block.featured-movies-wall-block {
    position: relative !important;
    isolation: isolate !important;
    overflow: visible !important;
    padding-top: 24px !important;
    padding-bottom: 34px !important;
    margin-bottom: 58px !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.featured-movies-block.featured-movies-wall-block::before,
.featured-movies-block.featured-movies-wall-block::after {
    content: '' !important;
    position: absolute !important;
    left: 50% !important;
    width: 100vw !important;
    max-width: none !important;
    transform: translateX(-50%) !important;
    pointer-events: none !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Full-bleed vignette. It fades out together with the poster wall, so it cannot leave a horizontal seam. */
.featured-movies-block.featured-movies-wall-block::before {
    z-index: 2 !important;
    top: -44px !important;
    bottom: -170px !important;
    display: block !important;
    background:
        radial-gradient(ellipse at 50% 36%, rgba(0, 0, 0, 0) 0%, rgba(1, 7, 18, 0.08) 48%, rgba(1, 5, 14, 0.42) 78%, rgba(0, 1, 5, 0.92) 100%),
        linear-gradient(90deg,
            rgba(0, 1, 5, 0.96) 0%,
            rgba(0, 3, 10, 0.70) 8%,
            rgba(0, 6, 18, 0.26) 21%,
            rgba(0, 6, 18, 0.08) 50%,
            rgba(0, 6, 18, 0.26) 79%,
            rgba(0, 3, 10, 0.70) 92%,
            rgba(0, 1, 5, 0.96) 100%),
        linear-gradient(180deg,
            rgba(5, 8, 18, 0.18) 0%,
            rgba(5, 8, 18, 0.04) 34%,
            rgba(5, 8, 18, 0.06) 62%,
            rgba(5, 8, 18, 0.28) 78%,
            rgba(5, 8, 18, 0.62) 90%,
            rgba(5, 8, 18, 0.00) 100%) !important;
    -webkit-mask-image: linear-gradient(180deg,
        rgba(0, 0, 0, 0.00) 0%,
        rgba(0, 0, 0, 1.00) 9%,
        rgba(0, 0, 0, 1.00) 68%,
        rgba(0, 0, 0, 0.64) 82%,
        rgba(0, 0, 0, 0.18) 93%,
        rgba(0, 0, 0, 0.00) 100%) !important;
    mask-image: linear-gradient(180deg,
        rgba(0, 0, 0, 0.00) 0%,
        rgba(0, 0, 0, 1.00) 9%,
        rgba(0, 0, 0, 1.00) 68%,
        rgba(0, 0, 0, 0.64) 82%,
        rgba(0, 0, 0, 0.18) 93%,
        rgba(0, 0, 0, 0.00) 100%) !important;
}

/* Disable the old bottom overlay. It created the visible horizontal band. */
.featured-movies-block.featured-movies-wall-block::after {
    display: none !important;
    background: none !important;
}

.featured-movies-block.featured-movies-wall-block .featured-movies-poster-wall {
    position: absolute !important;
    z-index: 1 !important;
    left: 50% !important;
    width: 100vw !important;
    max-width: none !important;
    transform: translateX(-50%) !important;
    top: -44px !important;
    bottom: -170px !important;
    height: auto !important;
    overflow: hidden !important;
    opacity: 0.74 !important;
    filter: none !important;
    pointer-events: none !important;
    -webkit-mask-image: linear-gradient(180deg,
        rgba(0, 0, 0, 0.00) 0%,
        rgba(0, 0, 0, 0.94) 7%,
        rgba(0, 0, 0, 1.00) 54%,
        rgba(0, 0, 0, 0.78) 70%,
        rgba(0, 0, 0, 0.36) 86%,
        rgba(0, 0, 0, 0.08) 96%,
        rgba(0, 0, 0, 0.00) 100%) !important;
    mask-image: linear-gradient(180deg,
        rgba(0, 0, 0, 0.00) 0%,
        rgba(0, 0, 0, 0.94) 7%,
        rgba(0, 0, 0, 1.00) 54%,
        rgba(0, 0, 0, 0.78) 70%,
        rgba(0, 0, 0, 0.36) 86%,
        rgba(0, 0, 0, 0.08) 96%,
        rgba(0, 0, 0, 0.00) 100%) !important;
}

.featured-movies-block.featured-movies-wall-block .featured-movies-poster-wall__tile {
    opacity: 1 !important;
    filter: saturate(0.58) contrast(0.78) brightness(0.42) blur(0.24px) !important;
}

.featured-movies-block.featured-movies-wall-block .featured-movies-header,
.featured-movies-block.featured-movies-wall-block .featured-movies-grid,
.featured-movies-block.featured-movies-wall-block .featured-movies-list {
    position: relative !important;
    z-index: 6 !important;
}

.featured-movies-block.featured-movies-wall-block .featured-movies-grid::before {
    display: none !important;
    content: none !important;
    background: none !important;
    box-shadow: none !important;
}

@media (min-width: 1200px) {
    .featured-movies-block.featured-movies-wall-block {
        padding-bottom: 38px !important;
        margin-bottom: 64px !important;
    }

    .featured-movies-block.featured-movies-wall-block::before,
    .featured-movies-block.featured-movies-wall-block .featured-movies-poster-wall {
        top: -50px !important;
        bottom: -190px !important;
    }

    .featured-movies-block.featured-movies-wall-block .featured-movies-poster-wall {
        opacity: 0.76 !important;
    }

    .featured-movies-block.featured-movies-wall-block .featured-movies-poster-wall__tile {
        filter: saturate(0.60) contrast(0.80) brightness(0.44) blur(0.22px) !important;
    }
}

@media (max-width: 991.98px) {
    .featured-movies-block.featured-movies-wall-block {
        padding-bottom: 30px !important;
        margin-bottom: 46px !important;
    }

    .featured-movies-block.featured-movies-wall-block::before,
    .featured-movies-block.featured-movies-wall-block .featured-movies-poster-wall {
        top: -34px !important;
        bottom: -130px !important;
    }

    .featured-movies-block.featured-movies-wall-block .featured-movies-poster-wall {
        opacity: 0.58 !important;
    }

    .featured-movies-block.featured-movies-wall-block .featured-movies-poster-wall__tile {
        filter: saturate(0.52) contrast(0.74) brightness(0.38) blur(0.30px) !important;
    }
}

@media (max-width: 767.98px) {
    .featured-movies-block.featured-movies-wall-block {
        overflow: hidden !important;
        padding-bottom: 30px !important;
        margin-bottom: 38px !important;
    }

    .featured-movies-block.featured-movies-wall-block::before,
    .featured-movies-block.featured-movies-wall-block .featured-movies-poster-wall {
        top: -24px !important;
        bottom: -92px !important;
    }

    .featured-movies-block.featured-movies-wall-block::before {
        background:
            radial-gradient(ellipse at 50% 36%, rgba(0, 0, 0, 0) 0%, rgba(1, 5, 14, 0.36) 68%, rgba(0, 1, 5, 0.90) 100%),
            linear-gradient(90deg,
                rgba(0, 1, 5, 0.88) 0%,
                rgba(0, 4, 12, 0.42) 20%,
                rgba(0, 4, 12, 0.12) 50%,
                rgba(0, 4, 12, 0.42) 80%,
                rgba(0, 1, 5, 0.88) 100%) !important;
    }

    .featured-movies-block.featured-movies-wall-block .featured-movies-poster-wall {
        opacity: 0.48 !important;
    }

    .featured-movies-block.featured-movies-wall-block .featured-movies-poster-wall__tile {
        filter: saturate(0.48) contrast(0.70) brightness(0.34) blur(0.34px) !important;
    }
}

/* 2026-06-10: Featured archive poster wall v6.
   No fade at the top: the poster wall starts with a straight edge.
   Keep only the lower fade and remove the dark backing panel under FEATURED title. */
.archive.post-type-archive-post .featured-movies-block.featured-movies-wall-block,
.post-type-archive-post .featured-movies-block.featured-movies-wall-block,
.archive.post-type-archive-tvshows .featured-movies-block.featured-movies-wall-block,
.post-type-archive-tvshows .featured-movies-block.featured-movies-wall-block,
.featured-movies-block.featured-movies-wall-block {
    position: relative !important;
    isolation: isolate !important;
    overflow: visible !important;
    padding-top: 24px !important;
    padding-bottom: 38px !important;
    margin-bottom: 66px !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.featured-movies-block.featured-movies-wall-block::before,
.featured-movies-block.featured-movies-wall-block::after {
    content: '' !important;
    position: absolute !important;
    left: 50% !important;
    width: 100vw !important;
    max-width: none !important;
    transform: translateX(-50%) !important;
    pointer-events: none !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Side vignette only. No top fade, no title backing strip. */
.featured-movies-block.featured-movies-wall-block::before {
    z-index: 2 !important;
    top: 0 !important;
    bottom: -170px !important;
    display: block !important;
    background:
        radial-gradient(ellipse at 50% 38%,
            rgba(0, 0, 0, 0.00) 0%,
            rgba(0, 4, 12, 0.06) 48%,
            rgba(0, 2, 8, 0.38) 78%,
            rgba(0, 1, 5, 0.88) 100%),
        linear-gradient(90deg,
            rgba(0, 1, 5, 0.95) 0%,
            rgba(0, 3, 10, 0.66) 8%,
            rgba(0, 6, 18, 0.24) 21%,
            rgba(0, 6, 18, 0.06) 50%,
            rgba(0, 6, 18, 0.24) 79%,
            rgba(0, 3, 10, 0.66) 92%,
            rgba(0, 1, 5, 0.95) 100%) !important;
    -webkit-mask-image: linear-gradient(180deg,
        rgba(0, 0, 0, 1.00) 0%,
        rgba(0, 0, 0, 1.00) 66%,
        rgba(0, 0, 0, 0.70) 82%,
        rgba(0, 0, 0, 0.24) 94%,
        rgba(0, 0, 0, 0.00) 100%) !important;
    mask-image: linear-gradient(180deg,
        rgba(0, 0, 0, 1.00) 0%,
        rgba(0, 0, 0, 1.00) 66%,
        rgba(0, 0, 0, 0.70) 82%,
        rgba(0, 0, 0, 0.24) 94%,
        rgba(0, 0, 0, 0.00) 100%) !important;
}

/* No separate dark overlay: lower fade is handled by the poster wall transparency. */
.featured-movies-block.featured-movies-wall-block::after {
    display: none !important;
    background: none !important;
}

.featured-movies-block.featured-movies-wall-block .featured-movies-poster-wall {
    position: absolute !important;
    z-index: 1 !important;
    left: 50% !important;
    width: 100vw !important;
    max-width: none !important;
    transform: translateX(-50%) !important;
    top: 0 !important;
    bottom: -170px !important;
    height: auto !important;
    overflow: hidden !important;
    opacity: 0.74 !important;
    filter: none !important;
    pointer-events: none !important;
    -webkit-mask-image: linear-gradient(180deg,
        rgba(0, 0, 0, 1.00) 0%,
        rgba(0, 0, 0, 1.00) 58%,
        rgba(0, 0, 0, 0.84) 72%,
        rgba(0, 0, 0, 0.46) 86%,
        rgba(0, 0, 0, 0.10) 97%,
        rgba(0, 0, 0, 0.00) 100%) !important;
    mask-image: linear-gradient(180deg,
        rgba(0, 0, 0, 1.00) 0%,
        rgba(0, 0, 0, 1.00) 58%,
        rgba(0, 0, 0, 0.84) 72%,
        rgba(0, 0, 0, 0.46) 86%,
        rgba(0, 0, 0, 0.10) 97%,
        rgba(0, 0, 0, 0.00) 100%) !important;
}

.featured-movies-block.featured-movies-wall-block .featured-movies-poster-wall__tile {
    opacity: 1 !important;
    filter: saturate(0.58) contrast(0.78) brightness(0.42) blur(0.24px) !important;
}

/* Remove the title strip/panel under FEATURED MOVIES / FEATURED TV SHOWS. */
.featured-movies-block.featured-movies-wall-block .featured-movies-header,
.featured-movies-wall-block .featured-movies-header,
.featured-movies-block.featured-movies-wall-block .featured-movies-title,
.featured-movies-wall-block .featured-movies-title,
.featured-movies-block.featured-movies-wall-block h2.featured-movies-title,
.featured-movies-wall-block h2.featured-movies-title {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.featured-movies-block.featured-movies-wall-block .featured-movies-header,
.featured-movies-wall-block .featured-movies-header {
    position: relative !important;
    z-index: 6 !important;
    padding: 0 0 14px !important;
    margin-bottom: 20px !important;
    border-bottom: 1px solid rgba(180, 214, 255, 0.52) !important;
}

.featured-movies-block.featured-movies-wall-block .featured-movies-grid,
.featured-movies-block.featured-movies-wall-block .featured-movies-list {
    position: relative !important;
    z-index: 6 !important;
}

.featured-movies-block.featured-movies-wall-block .featured-movies-grid::before {
    display: none !important;
    content: none !important;
    background: none !important;
    box-shadow: none !important;
}

@media (min-width: 1200px) {
    .featured-movies-block.featured-movies-wall-block {
        padding-bottom: 42px !important;
        margin-bottom: 70px !important;
    }

    .featured-movies-block.featured-movies-wall-block::before,
    .featured-movies-block.featured-movies-wall-block .featured-movies-poster-wall {
        top: 0 !important;
        bottom: -190px !important;
    }

    .featured-movies-block.featured-movies-wall-block .featured-movies-poster-wall {
        opacity: 0.76 !important;
    }

    .featured-movies-block.featured-movies-wall-block .featured-movies-poster-wall__tile {
        filter: saturate(0.60) contrast(0.80) brightness(0.44) blur(0.22px) !important;
    }
}

@media (max-width: 991.98px) {
    .featured-movies-block.featured-movies-wall-block {
        padding-bottom: 34px !important;
        margin-bottom: 50px !important;
    }

    .featured-movies-block.featured-movies-wall-block::before,
    .featured-movies-block.featured-movies-wall-block .featured-movies-poster-wall {
        top: 0 !important;
        bottom: -130px !important;
    }

    .featured-movies-block.featured-movies-wall-block .featured-movies-poster-wall {
        opacity: 0.58 !important;
    }

    .featured-movies-block.featured-movies-wall-block .featured-movies-poster-wall__tile {
        filter: saturate(0.52) contrast(0.74) brightness(0.38) blur(0.30px) !important;
    }
}

@media (max-width: 767.98px) {
    .featured-movies-block.featured-movies-wall-block {
        overflow: hidden !important;
        padding-bottom: 32px !important;
        margin-bottom: 40px !important;
    }

    .featured-movies-block.featured-movies-wall-block::before,
    .featured-movies-block.featured-movies-wall-block .featured-movies-poster-wall {
        top: 0 !important;
        bottom: -92px !important;
    }

    .featured-movies-block.featured-movies-wall-block::before {
        background:
            radial-gradient(ellipse at 50% 38%, rgba(0, 0, 0, 0) 0%, rgba(1, 5, 14, 0.34) 70%, rgba(0, 1, 5, 0.88) 100%),
            linear-gradient(90deg,
                rgba(0, 1, 5, 0.88) 0%,
                rgba(0, 4, 12, 0.42) 20%,
                rgba(0, 4, 12, 0.12) 50%,
                rgba(0, 4, 12, 0.42) 80%,
                rgba(0, 1, 5, 0.88) 100%) !important;
    }

    .featured-movies-block.featured-movies-wall-block .featured-movies-poster-wall {
        opacity: 0.48 !important;
    }

    .featured-movies-block.featured-movies-wall-block .featured-movies-poster-wall__tile {
        filter: saturate(0.48) contrast(0.70) brightness(0.34) blur(0.34px) !important;
    }
}

/* =====================================================
   MyFlixer color scheme switcher
   Pastel accent palettes. Rating badges intentionally keep their own styles.
   ===================================================== */
:root,
html[data-mf-color="blue"] {
  --mf-accent: #6bb3ff;
  --mf-accent-strong: #4d9dff;
  --mf-accent-soft: rgba(107, 179, 255, 0.12);
  --mf-accent-soft-2: rgba(107, 179, 255, 0.20);
  --mf-accent-border: rgba(107, 179, 255, 0.34);
  --mf-accent-glow: rgba(77, 157, 255, 0.24);
  --mf-heading-tint: #f2f8ff;
  --mf-heading-shadow: rgba(77, 157, 255, 0.18);
  --mf-breadcrumb-link: #8fbfff;
  --mf-breadcrumb-active: #f5f9ff;
  --mf-menu-hover: #a9ceff;
  --mf-menu-hover-bg: rgba(107, 179, 255, 0.10);
}

html[data-mf-color="slate"] {
  --mf-accent: #a9b8c8;
  --mf-accent-strong: #7f93a8;
  --mf-accent-soft: rgba(169, 184, 200, 0.12);
  --mf-accent-soft-2: rgba(169, 184, 200, 0.20);
  --mf-accent-border: rgba(169, 184, 200, 0.36);
  --mf-accent-glow: rgba(127, 147, 168, 0.22);
  --mf-heading-tint: #f0f4f7;
  --mf-heading-shadow: rgba(169, 184, 200, 0.16);
  --mf-breadcrumb-link: #b6c5d4;
  --mf-breadcrumb-active: #f4f7f9;
  --mf-menu-hover: #c2ceda;
  --mf-menu-hover-bg: rgba(169, 184, 200, 0.10);
}

html[data-mf-color="sage"] {
  --mf-accent: #b8d2b4;
  --mf-accent-strong: #86ad89;
  --mf-accent-soft: rgba(184, 210, 180, 0.12);
  --mf-accent-soft-2: rgba(184, 210, 180, 0.20);
  --mf-accent-border: rgba(184, 210, 180, 0.36);
  --mf-accent-glow: rgba(134, 173, 137, 0.22);
  --mf-heading-tint: #f1f8ef;
  --mf-heading-shadow: rgba(184, 210, 180, 0.16);
  --mf-breadcrumb-link: #c4ddb9;
  --mf-breadcrumb-active: #f5fbf4;
  --mf-menu-hover: #c9e1c2;
  --mf-menu-hover-bg: rgba(184, 210, 180, 0.10);
}

html[data-mf-color="sand"] {
  --mf-accent: #e5c98f;
  --mf-accent-strong: #c9a96b;
  --mf-accent-soft: rgba(229, 201, 143, 0.12);
  --mf-accent-soft-2: rgba(229, 201, 143, 0.20);
  --mf-accent-border: rgba(229, 201, 143, 0.38);
  --mf-accent-glow: rgba(201, 169, 107, 0.22);
  --mf-heading-tint: #fff7e8;
  --mf-heading-shadow: rgba(229, 201, 143, 0.16);
  --mf-breadcrumb-link: #efd7a4;
  --mf-breadcrumb-active: #fff9ee;
  --mf-menu-hover: #f1dba9;
  --mf-menu-hover-bg: rgba(229, 201, 143, 0.10);
}

html[data-mf-color="rose"] {
  --mf-accent: #e5aebb;
  --mf-accent-strong: #c98294;
  --mf-accent-soft: rgba(229, 174, 187, 0.12);
  --mf-accent-soft-2: rgba(229, 174, 187, 0.20);
  --mf-accent-border: rgba(229, 174, 187, 0.36);
  --mf-accent-glow: rgba(201, 130, 148, 0.22);
  --mf-heading-tint: #fff1f4;
  --mf-heading-shadow: rgba(229, 174, 187, 0.16);
  --mf-breadcrumb-link: #efbec8;
  --mf-breadcrumb-active: #fff5f7;
  --mf-menu-hover: #f1c5cf;
  --mf-menu-hover-bg: rgba(229, 174, 187, 0.10);
}

html[data-mf-color="violet"] {
  --mf-accent: #c7b8ee;
  --mf-accent-strong: #9f89d2;
  --mf-accent-soft: rgba(199, 184, 238, 0.12);
  --mf-accent-soft-2: rgba(199, 184, 238, 0.20);
  --mf-accent-border: rgba(199, 184, 238, 0.36);
  --mf-accent-glow: rgba(159, 137, 210, 0.22);
  --mf-heading-tint: #f5f0ff;
  --mf-heading-shadow: rgba(199, 184, 238, 0.16);
  --mf-breadcrumb-link: #d0c3f5;
  --mf-breadcrumb-active: #f8f4ff;
  --mf-menu-hover: #d4c9f5;
  --mf-menu-hover-bg: rgba(199, 184, 238, 0.10);
}

.mf-color-switcher {
  position: relative;
  order: 1;
}

.mf-header-search-btn {
  order: 2;
}

#theme-toggle {
  order: 3;
}

@media (min-width: 992px) {
  .mf-header-search-btn {
    order: 1;
  }

  #theme-toggle {
    order: 2;
  }

  .mf-color-switcher {
    order: 3;
  }
}

.mf-color-toggle {
  position: relative;
}

.mf-color-toggle__dot {
  width: 18px;
  height: 18px;
  display: inline-block;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mf-accent), var(--mf-accent-strong));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.34),
    0 0 0 3px var(--mf-accent-soft),
    0 0 18px var(--mf-accent-glow);
}

.mf-color-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 178px;
  padding: 8px;
  border: 1px solid var(--mf-accent-border);
  background: rgba(5, 8, 18, 0.96);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.025);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 1200;
}

.mf-color-switcher.is-open .mf-color-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mf-color-choice {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(232, 240, 255, 0.84);
  font-family: var(--mf-font-ui);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1;
  text-align: left;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.mf-color-choice:hover,
.mf-color-choice:focus,
.mf-color-choice.is-active {
  color: #fff;
  border-color: var(--mf-accent-border);
  background: var(--mf-menu-hover-bg);
  outline: none;
}

.mf-color-choice__swatch {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mf-choice-swatch), var(--mf-choice-swatch-2));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

@media (max-width: 991.98px) {
  .mf-color-menu {
    left: 0;
    right: auto;
  }
}

html[data-mf-color] #page :where(
  h1,
  h2,
  h3,
  h4,
  .page-title,
  .entry-title,
  .archive-title,
  .section-title,
  .recently-added-title,
  .recently-added-h1,
  .featured-homepage-title,
  .featured-movies-title,
  .single-title,
  .detail-title,
  .mfb-title
) {
  color: var(--mf-heading-tint) !important;
  text-shadow: 0 1px 22px var(--mf-heading-shadow);
}

html[data-mf-color] #page :where(h1, .page-title, .archive-title, .single-title, .detail-title)::after,
html[data-mf-color] #page :where(.section-title, .recently-added-title, .featured-homepage-title, .featured-movies-title)::after {
  background: var(--mf-accent) !important;
  box-shadow: 0 0 18px var(--mf-accent-glow);
}

html[data-mf-color] .breadcrumb-item a {
  color: var(--mf-breadcrumb-link) !important;
}

html[data-mf-color] .breadcrumb-item a:hover {
  color: var(--mf-menu-hover) !important;
}

html[data-mf-color] .breadcrumb-item.active {
  color: var(--mf-breadcrumb-active) !important;
}

html[data-mf-color] .breadcrumb-item + .breadcrumb-item::before {
  color: color-mix(in srgb, var(--mf-breadcrumb-link) 52%, var(--mf-muted)) !important;
}

html[data-mf-color] .navbar-nav li:hover > a,
html[data-mf-color] .navbar-nav li.current-menu-item > a,
html[data-mf-color] .navbar-nav li.current-menu-ancestor > a {
  color: var(--mf-menu-hover) !important;
}

html[data-mf-color] .navbar-nav .sub-menu a:hover,
html[data-mf-color] .navbar-nav .children a:hover {
  color: var(--mf-accent) !important;
  background: var(--mf-menu-hover-bg) !important;
}

html[data-mf-color] .menu-item-has-children > a::after,
html[data-mf-color] .page_item_has_children > a::after,
html[data-mf-color] .has-submenu > a::after,
html[data-mf-color] .of-nav-toggle,
html[data-mf-color] .of-nav-toggle[aria-expanded="true"] {
  color: var(--mf-accent) !important;
}

html[data-mf-color] .of-nav-toggle:hover,
html[data-mf-color] .of-nav-toggle:focus {
  background: var(--mf-menu-hover-bg) !important;
}

html[data-mf-color] .mf-header-icon-btn:hover,
html[data-mf-color] .mf-header-icon-btn:focus-visible,
html[data-mf-color] .navbar-toggler:hover,
html[data-mf-color] .navbar-toggler:focus {
  color: var(--mf-accent) !important;
  border-color: var(--mf-accent-border) !important;
  box-shadow: 0 0 0 3px var(--mf-accent-soft) !important;
}

html[data-mf-color] .search-field:focus,
html[data-mf-color] .form-control:focus,
html[data-mf-color] input[type="search"]:focus,
html[data-mf-color] input[type="text"]:focus,
html[data-mf-color] input[type="email"]:focus,
html[data-mf-color] textarea:focus {
  border-color: var(--mf-accent) !important;
  box-shadow: 0 0 0 3px var(--mf-accent-soft) !important;
}

html[data-mf-color] :where(.btn-secondary, .page-link, .page-numbers, .mfb-chip, .mfb-region-btn, .mfb-filter-chip) {
  border-color: var(--mf-accent-border) !important;
  color: var(--mf-accent) !important;
}

html[data-mf-color] :where(.btn-secondary:hover, .btn-secondary:focus, .page-link:hover, .page-numbers:hover, .mfb-chip:hover, .mfb-chip.is-active, .mfb-region-btn:hover, .mfb-region-btn.is-active, .mfb-filter-chip:hover, .mfb-filter-chip.is-active) {
  background: var(--mf-accent-soft) !important;
  border-color: var(--mf-accent) !important;
  color: var(--mf-heading-tint) !important;
}

html[data-mf-color] :where(.nav-tabs .nav-link.active, .nav-tabs .nav-link:hover, .player-tab.active, .player-tab:hover, .server-tab.active, .server-tab:hover, .mf-player-tabs .nav-link.active, .mf-player-tabs .nav-link:hover) {
  border-color: var(--mf-accent-border) !important;
  color: var(--mf-accent) !important;
}

html[data-mf-color] :where(.card, .featured-listing-card, .listing-card, .movie-card, .poster-card, .mfb-card):hover {
  border-color: var(--mf-accent-border) !important;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.26), 0 0 26px var(--mf-accent-glow) !important;
}

html[data-mf-color] .mf-admin-font-panel__inner,
html[data-mf-color] .mf-font-choice.is-active,
html[data-mf-color] .mf-font-choice:hover,
html[data-mf-color] .mf-font-choice:focus {
  border-color: var(--mf-accent-border) !important;
}

html[data-mf-color] .mf-font-choice.is-active,
html[data-mf-color] .mf-font-choice:hover,
html[data-mf-color] .mf-font-choice:focus {
  color: var(--mf-accent) !important;
}

/* =====================================================
   2026-06-10: Color schemes v2 - horizontal swatches and full UI accents
   Rating badges intentionally remain untouched.
   ===================================================== */
html[data-mf-color] {
  --mf-accent-panel: color-mix(in srgb, var(--mf-accent) 12%, transparent);
  --mf-accent-panel-strong: color-mix(in srgb, var(--mf-accent) 20%, transparent);
  --mf-accent-line: color-mix(in srgb, var(--mf-accent) 44%, transparent);
  --mf-accent-title-line: color-mix(in srgb, var(--mf-accent) 62%, transparent);
  --mf-accent-control-bg: color-mix(in srgb, var(--mf-accent) 10%, transparent);
  --mf-accent-control-bg-hover: color-mix(in srgb, var(--mf-accent) 18%, transparent);
}

/* Header color switcher: flat horizontal dot row, no framed dropdown. */
.mf-color-switcher {
  position: relative !important;
}

.mf-color-menu {
  --mf-color-menu-shift: 0px;
  position: absolute !important;
  top: calc(100% + 9px) !important;
  left: 50% !important;
  right: auto !important;
  width: max-content !important;
  max-width: calc(100vw - 24px) !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translate(calc(-50% + var(--mf-color-menu-shift)), 7px) !important;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease !important;
  z-index: 1400 !important;
  pointer-events: none !important;
}

.mf-color-switcher.is-open .mf-color-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translate(calc(-50% + var(--mf-color-menu-shift)), 0) !important;
  pointer-events: auto !important;
}

.mf-color-choice {
  width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  flex: 0 0 22px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: none !important;
  color: transparent !important;
  line-height: 1 !important;
  text-indent: -9999px !important;
  overflow: visible !important;
}

.mf-color-choice__label {
  display: none !important;
}

.mf-color-choice__swatch {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, var(--mf-choice-swatch), var(--mf-choice-swatch-2)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.36),
    0 5px 16px rgba(0, 0, 0, 0.30) !important;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease !important;
}

.mf-color-choice:hover,
.mf-color-choice:focus,
.mf-color-choice.is-active {
  border: 0 !important;
  background: transparent !important;
  outline: none !important;
}

.mf-color-choice:hover .mf-color-choice__swatch,
.mf-color-choice:focus .mf-color-choice__swatch {
  transform: translateY(-1px) scale(1.08) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.58),
    0 7px 18px rgba(0, 0, 0, 0.34) !important;
}

.mf-color-choice.is-active .mf-color-choice__swatch {
  transform: scale(1.12) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.72),
    0 0 0 3px rgba(255, 255, 255, 0.16),
    0 0 0 5px var(--mf-accent-soft),
    0 8px 20px rgba(0, 0, 0, 0.34) !important;
}

@media (max-width: 991.98px) {
  .mf-color-switcher { order: 1 !important; }
  .mf-header-search-btn { order: 2 !important; }
  #theme-toggle { order: 3 !important; }

  .mf-color-menu {
    gap: 7px !important;
    max-width: calc(100vw - 20px) !important;
  }

  .mf-color-choice {
    width: 24px !important;
    height: 24px !important;
    flex-basis: 24px !important;
  }

  .mf-color-choice__swatch {
    width: 18px !important;
    height: 18px !important;
    flex-basis: 18px !important;
  }
}

@media (min-width: 992px) {
  .mf-header-search-btn { order: 1 !important; }
  #theme-toggle { order: 2 !important; }
  .mf-color-switcher { order: 3 !important; }
}

/* Splash player / player controls. */
html[data-mf-color] .player-frame--lazy {
  background:
    radial-gradient(circle at 20% 20%, var(--mf-accent-panel), transparent 32%),
    radial-gradient(circle at 80% 30%, var(--mf-accent-panel-strong), transparent 30%),
    linear-gradient(135deg, #0d0f1e 0%, #111428 45%, #08091a 100%) !important;
}

html[data-mf-color] .player-poster__bg {
  background:
    linear-gradient(90deg, rgba(10,12,28,0.92) 0%, rgba(10,12,28,0.56) 38%, rgba(10,12,28,0.24) 100%),
    radial-gradient(circle at 72% 36%, var(--mf-accent-panel-strong), transparent 18%),
    radial-gradient(circle at 78% 30%, var(--mf-accent-panel), transparent 10%),
    radial-gradient(circle at 82% 68%, var(--mf-accent-soft-2), transparent 18%) !important;
}

html[data-mf-color] .player-poster__bg::before {
  background: radial-gradient(circle, var(--mf-accent-panel-strong), var(--mf-accent-panel) 55%, transparent 72%) !important;
}

html[data-mf-color] .player-poster__eyebrow,
html[data-mf-color] .player-poster__meta span {
  background: var(--mf-accent-control-bg) !important;
  border-color: var(--mf-accent-border) !important;
  color: var(--mf-heading-tint) !important;
}

html[data-mf-color] .player-poster__active-player,
html[data-mf-color] .now-playing-bar__badge,
html[data-mf-color] .player-tab-btn.active,
html[data-mf-color] .of-btn-ghost:hover,
html[data-mf-color] .of-btn-ghost:focus,
html[data-mf-color] .episode-card-glass .btn-primary,
html[data-mf-color] .episode-card-glass .btn-outline-primary:hover,
html[data-mf-color] .episode-card-glass .btn-outline-primary:focus,
html[data-mf-color] .now-playing-bar__action .btn,
html[data-mf-color] .now-playing-bar__action a {
  background: linear-gradient(135deg, var(--mf-accent), var(--mf-accent-strong)) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 6px 20px var(--mf-accent-glow) !important;
}

html[data-mf-color] .player-poster__play-icon circle {
  fill: var(--mf-accent-control-bg-hover) !important;
  stroke: var(--mf-accent) !important;
}

html[data-mf-color] .player-poster:hover .player-poster__play-icon circle,
html[data-mf-color] .player-poster:focus-visible .player-poster__play-icon circle {
  fill: var(--mf-accent-panel-strong) !important;
  stroke: var(--mf-heading-tint) !important;
}

html[data-mf-color] .player-poster:focus-visible {
  outline-color: var(--mf-accent) !important;
}

html[data-mf-color] .now-playing-label,
html[data-mf-color] .player-tab-btn,
html[data-mf-color] .of-btn-ghost,
html[data-mf-color] .episode-card-glass .btn-outline-primary {
  background: var(--mf-accent-control-bg) !important;
  border-color: var(--mf-accent-border) !important;
  color: var(--mf-accent) !important;
}

html[data-mf-color] .now-playing-label::before {
  background: var(--mf-accent) !important;
  box-shadow: 0 0 12px var(--mf-accent-glow) !important;
}

html[data-mf-color] .player-tab-btn:hover:not(.active),
html[data-mf-color] .of-btn-ghost:hover,
html[data-mf-color] .episode-card-glass .btn-outline-primary:hover {
  background: var(--mf-accent-control-bg-hover) !important;
  border-color: var(--mf-accent) !important;
}

html[data-mf-color] .now-playing-bar,
html[data-mf-color] .now-playing-glass {
  background: var(--mf-accent-control-bg) !important;
  border-color: var(--mf-accent-border) !important;
}

html[data-mf-color] .now-playing-bar__season,
html[data-mf-color] .now-playing-bar__title {
  color: var(--mf-heading-tint) !important;
}

/* Overview / detail info block. Ratings inside this block keep their own classes. */
html[data-mf-color] .movie-info-block {
  background: color-mix(in srgb, var(--mf-accent) 8%, rgba(15, 20, 35, 0.86)) !important;
  border-color: var(--mf-accent-border) !important;
}

html[data-mf-color] .movie-info-section-title,
html[data-mf-color] .movie-info-label {
  color: var(--mf-accent) !important;
  border-color: var(--mf-accent-line) !important;
}

html[data-mf-color] .movie-info-row {
  border-bottom-color: color-mix(in srgb, var(--mf-accent) 20%, transparent) !important;
}

html[data-mf-color] .movie-info-value a {
  color: var(--mf-breadcrumb-link) !important;
}

html[data-mf-color] .movie-info-value a:hover {
  color: var(--mf-menu-hover) !important;
}

/* Carousels: These may interest you / You recently viewed. */
html[data-mf-color] .mcs-arrow {
  border-color: var(--mf-accent-border) !important;
  color: var(--mf-accent) !important;
  background: color-mix(in srgb, var(--mf-accent) 8%, rgba(15, 20, 35, 0.94)) !important;
  box-shadow: 0 2px 14px var(--mf-accent-glow) !important;
}

html[data-mf-color] .mcs-arrow:hover,
html[data-mf-color] .mcs-arrow:focus {
  border-color: var(--mf-accent) !important;
  color: var(--mf-heading-tint) !important;
  background: color-mix(in srgb, var(--mf-accent) 18%, rgba(15, 20, 35, 0.98)) !important;
  box-shadow: 0 6px 22px var(--mf-accent-glow) !important;
}

/* Homepage list blocks and Featured Movies accents. */
html[data-mf-color] .featured-homepage-block,
html[data-mf-color] .recently-added-block {
  border-color: var(--mf-accent-border) !important;
}

html[data-mf-color] .featured-homepage-header,
html[data-mf-color] .recently-added-header {
  background: linear-gradient(135deg, var(--mf-accent-control-bg), rgba(255,255,255,0.02)) !important;
  border-bottom-color: var(--mf-accent-border) !important;
}

html[data-mf-color] .featured-homepage-heading,
html[data-mf-color] .featured-homepage-num,
html[data-mf-color] .recently-added-date {
  color: var(--mf-accent) !important;
}

html[data-mf-color] .featured-homepage-heading::after,
html[data-mf-color] .featured-homepage-header::before,
html[data-mf-color] .recently-added-h1::after,
html[data-mf-color] .recently-added-title::after {
  background: var(--mf-accent) !important;
  box-shadow: 0 0 18px var(--mf-accent-glow) !important;
}

html[data-mf-color] .featured-homepage-item:hover,
html[data-mf-color] .recently-added-item:hover {
  background: var(--mf-accent-control-bg) !important;
}

html[data-mf-color] .featured-homepage-title:hover,
html[data-mf-color] .recently-added-title:hover {
  color: var(--mf-menu-hover) !important;
}

html[data-mf-color] .featured-homepage-genres,
html[data-mf-color] .recently-added-genres,
html[data-mf-color] .featured-homepage-year,
html[data-mf-color] .recently-added-year {
  color: color-mix(in srgb, var(--mf-accent) 48%, rgba(208, 223, 245, 0.78)) !important;
}

/* TV API / Top 250 / In Theaters / Top Box Office panels, excluding IMDb rating badges. */
html[data-mf-color] .tvapi-page-hero,
html[data-mf-color] .tvapi-empty-state {
  border-color: var(--mf-accent-border) !important;
  background: linear-gradient(135deg, var(--mf-accent-panel-strong), var(--mf-accent-panel)) !important;
}

html[data-mf-color] .tvapi-page-kicker,
html[data-mf-color] .tvapi-boxoffice-rank strong,
html[data-mf-color] .tvapi-boxoffice-title a:hover {
  color: var(--mf-accent) !important;
}

html[data-mf-color] .tvapi-boxoffice-row {
  border-color: var(--mf-accent-border) !important;
  background: linear-gradient(135deg, color-mix(in srgb, var(--mf-accent) 13%, rgba(17, 22, 43, 0.98)), rgba(17, 22, 43, 0.96)) !important;
}

html[data-mf-color] .tvapi-boxoffice-poster,
html[data-mf-color] .tvapi-boxoffice-meta span:not(.tvapi-boxoffice-imdb),
html[data-mf-color] .tvapi-boxoffice-metric {
  border-color: var(--mf-accent-border) !important;
  background: var(--mf-accent-control-bg) !important;
}

html[data-mf-color] .tvapi-boxoffice-rank-label,
html[data-mf-color] .tvapi-boxoffice-metric dt {
  color: color-mix(in srgb, var(--mf-accent) 48%, rgba(234, 240, 255, 0.54)) !important;
}

/* Generic primary controls, but do not override rating badges. */
html[data-mf-color] .btn-primary:not(.movie-rating-pill):not(.featured-meta-rating):not(.featured-homepage-rating):not([class*="rating-"]) {
  background: linear-gradient(135deg, var(--mf-accent), var(--mf-accent-strong)) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 6px 20px var(--mf-accent-glow) !important;
}

html[data-mf-color] .btn-outline-primary:not([class*="rating-"]) {
  border-color: var(--mf-accent-border) !important;
  color: var(--mf-accent) !important;
}

html[data-mf-color] .btn-outline-primary:not([class*="rating-"]):hover,
html[data-mf-color] .btn-outline-primary:not([class*="rating-"]):focus {
  background: var(--mf-accent-control-bg-hover) !important;
  border-color: var(--mf-accent) !important;
  color: var(--mf-heading-tint) !important;
}

/* 2026-06-10: color scheme finishing pass: scrollbars, current episode cards, splash player label. */
html[data-mf-color] {
  scrollbar-width: thin;
  scrollbar-color: var(--mf-accent-strong) rgba(255, 255, 255, 0.045);
}

html[data-mf-color] body,
html[data-mf-color] #page,
html[data-mf-color] .site,
html[data-mf-color] .site-main,
html[data-mf-color] .content-area,
html[data-mf-color] .mcs-horizontal-scroll,
html[data-mf-color] .mcs-carousel-track,
html[data-mf-color] .mcs-scroll-track,
html[data-mf-color] .related-carousel,
html[data-mf-color] .recently-viewed-carousel,
html[data-mf-color] .season-tabs,
html[data-mf-color] .episodes-scroll,
html[data-mf-color] .episodes-list,
html[data-mf-color] .mfb-filter-options,
html[data-mf-color] .mfb-years-grid,
html[data-mf-color] .featured-homepage-list,
html[data-mf-color] .featured-homepage-scroll,
html[data-mf-color] .tvapi-boxoffice-list {
  scrollbar-width: thin;
  scrollbar-color: var(--mf-accent-strong) rgba(255, 255, 255, 0.045);
}

html[data-mf-color]::-webkit-scrollbar,
html[data-mf-color] body::-webkit-scrollbar,
html[data-mf-color] #page::-webkit-scrollbar,
html[data-mf-color] .site::-webkit-scrollbar,
html[data-mf-color] .site-main::-webkit-scrollbar,
html[data-mf-color] .content-area::-webkit-scrollbar,
html[data-mf-color] .mcs-horizontal-scroll::-webkit-scrollbar,
html[data-mf-color] .mcs-carousel-track::-webkit-scrollbar,
html[data-mf-color] .mcs-scroll-track::-webkit-scrollbar,
html[data-mf-color] .related-carousel::-webkit-scrollbar,
html[data-mf-color] .recently-viewed-carousel::-webkit-scrollbar,
html[data-mf-color] .season-tabs::-webkit-scrollbar,
html[data-mf-color] .episodes-scroll::-webkit-scrollbar,
html[data-mf-color] .episodes-list::-webkit-scrollbar,
html[data-mf-color] .mfb-filter-options::-webkit-scrollbar,
html[data-mf-color] .mfb-years-grid::-webkit-scrollbar,
html[data-mf-color] .featured-homepage-list::-webkit-scrollbar,
html[data-mf-color] .featured-homepage-scroll::-webkit-scrollbar,
html[data-mf-color] .tvapi-boxoffice-list::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

html[data-mf-color]::-webkit-scrollbar-track,
html[data-mf-color] body::-webkit-scrollbar-track,
html[data-mf-color] #page::-webkit-scrollbar-track,
html[data-mf-color] .site::-webkit-scrollbar-track,
html[data-mf-color] .site-main::-webkit-scrollbar-track,
html[data-mf-color] .content-area::-webkit-scrollbar-track,
html[data-mf-color] .mcs-horizontal-scroll::-webkit-scrollbar-track,
html[data-mf-color] .mcs-carousel-track::-webkit-scrollbar-track,
html[data-mf-color] .mcs-scroll-track::-webkit-scrollbar-track,
html[data-mf-color] .related-carousel::-webkit-scrollbar-track,
html[data-mf-color] .recently-viewed-carousel::-webkit-scrollbar-track,
html[data-mf-color] .season-tabs::-webkit-scrollbar-track,
html[data-mf-color] .episodes-scroll::-webkit-scrollbar-track,
html[data-mf-color] .episodes-list::-webkit-scrollbar-track,
html[data-mf-color] .mfb-filter-options::-webkit-scrollbar-track,
html[data-mf-color] .mfb-years-grid::-webkit-scrollbar-track,
html[data-mf-color] .featured-homepage-list::-webkit-scrollbar-track,
html[data-mf-color] .featured-homepage-scroll::-webkit-scrollbar-track,
html[data-mf-color] .tvapi-boxoffice-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.045);
}

html[data-mf-color]::-webkit-scrollbar-thumb,
html[data-mf-color] body::-webkit-scrollbar-thumb,
html[data-mf-color] #page::-webkit-scrollbar-thumb,
html[data-mf-color] .site::-webkit-scrollbar-thumb,
html[data-mf-color] .site-main::-webkit-scrollbar-thumb,
html[data-mf-color] .content-area::-webkit-scrollbar-thumb,
html[data-mf-color] .mcs-horizontal-scroll::-webkit-scrollbar-thumb,
html[data-mf-color] .mcs-carousel-track::-webkit-scrollbar-thumb,
html[data-mf-color] .mcs-scroll-track::-webkit-scrollbar-thumb,
html[data-mf-color] .related-carousel::-webkit-scrollbar-thumb,
html[data-mf-color] .recently-viewed-carousel::-webkit-scrollbar-thumb,
html[data-mf-color] .season-tabs::-webkit-scrollbar-thumb,
html[data-mf-color] .episodes-scroll::-webkit-scrollbar-thumb,
html[data-mf-color] .episodes-list::-webkit-scrollbar-thumb,
html[data-mf-color] .mfb-filter-options::-webkit-scrollbar-thumb,
html[data-mf-color] .mfb-years-grid::-webkit-scrollbar-thumb,
html[data-mf-color] .featured-homepage-list::-webkit-scrollbar-thumb,
html[data-mf-color] .featured-homepage-scroll::-webkit-scrollbar-thumb,
html[data-mf-color] .tvapi-boxoffice-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--mf-accent), var(--mf-accent-strong));
  border: 2px solid rgba(5, 8, 18, 0.78);
  box-shadow: 0 0 14px var(--mf-accent-glow);
}

html[data-mf-color] .mcs-horizontal-scroll::-webkit-scrollbar-thumb,
html[data-mf-color] .mcs-carousel-track::-webkit-scrollbar-thumb,
html[data-mf-color] .mcs-scroll-track::-webkit-scrollbar-thumb,
html[data-mf-color] .related-carousel::-webkit-scrollbar-thumb,
html[data-mf-color] .recently-viewed-carousel::-webkit-scrollbar-thumb,
html[data-mf-color] .season-tabs::-webkit-scrollbar-thumb,
html[data-mf-color] .episodes-scroll::-webkit-scrollbar-thumb,
html[data-mf-color] .episodes-list::-webkit-scrollbar-thumb,
html[data-mf-color] .mfb-filter-options::-webkit-scrollbar-thumb,
html[data-mf-color] .mfb-years-grid::-webkit-scrollbar-thumb,
html[data-mf-color] .featured-homepage-list::-webkit-scrollbar-thumb,
html[data-mf-color] .featured-homepage-scroll::-webkit-scrollbar-thumb,
html[data-mf-color] .tvapi-boxoffice-list::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--mf-accent), var(--mf-accent-strong));
}

html[data-mf-color]::-webkit-scrollbar-thumb:hover,
html[data-mf-color] body::-webkit-scrollbar-thumb:hover,
html[data-mf-color] #page::-webkit-scrollbar-thumb:hover,
html[data-mf-color] .site::-webkit-scrollbar-thumb:hover,
html[data-mf-color] .site-main::-webkit-scrollbar-thumb:hover,
html[data-mf-color] .content-area::-webkit-scrollbar-thumb:hover,
html[data-mf-color] .mcs-horizontal-scroll::-webkit-scrollbar-thumb:hover,
html[data-mf-color] .mcs-carousel-track::-webkit-scrollbar-thumb:hover,
html[data-mf-color] .mcs-scroll-track::-webkit-scrollbar-thumb:hover,
html[data-mf-color] .related-carousel::-webkit-scrollbar-thumb:hover,
html[data-mf-color] .recently-viewed-carousel::-webkit-scrollbar-thumb:hover,
html[data-mf-color] .season-tabs::-webkit-scrollbar-thumb:hover,
html[data-mf-color] .episodes-scroll::-webkit-scrollbar-thumb:hover,
html[data-mf-color] .episodes-list::-webkit-scrollbar-thumb:hover,
html[data-mf-color] .mfb-filter-options::-webkit-scrollbar-thumb:hover,
html[data-mf-color] .mfb-years-grid::-webkit-scrollbar-thumb:hover,
html[data-mf-color] .featured-homepage-list::-webkit-scrollbar-thumb:hover,
html[data-mf-color] .featured-homepage-scroll::-webkit-scrollbar-thumb:hover,
html[data-mf-color] .tvapi-boxoffice-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--mf-heading-tint), var(--mf-accent));
}

/* Current episode/series tile: accent-sensitive label and border. Rating badges remain untouched. */
html[data-mf-color] .episode-card-glass.border-primary,
html[data-mf-color] .episode-card-glass:has(.badge.bg-primary) {
  border-color: var(--mf-accent) !important;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--mf-accent) 48%, transparent),
    0 10px 28px var(--mf-accent-glow) !important;
}

html[data-mf-color] .episode-card-glass.border-primary:hover,
html[data-mf-color] .episode-card-glass:has(.badge.bg-primary):hover {
  border-color: var(--mf-heading-tint) !important;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--mf-accent) 70%, transparent),
    0 14px 34px var(--mf-accent-glow) !important;
}

html[data-mf-color] .episode-card-glass .badge.bg-primary {
  background: linear-gradient(135deg, var(--mf-accent), var(--mf-accent-strong)) !important;
  border: 1px solid color-mix(in srgb, var(--mf-accent) 62%, rgba(255, 255, 255, 0.24)) !important;
  color: #fff !important;
  box-shadow: 0 5px 18px var(--mf-accent-glow) !important;
}

html[data-mf-color] .episode-card-glass.border-primary .btn-primary,
html[data-mf-color] .episode-card-glass:has(.badge.bg-primary) .btn-primary {
  background: linear-gradient(135deg, var(--mf-accent), var(--mf-accent-strong)) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 6px 20px var(--mf-accent-glow) !important;
}

/* Splash active player label: no pill/fill, only text color follows the scheme. */
html[data-mf-color] .player-poster__active-player,
html[data-mf-color] .single-post .player-poster__active-player,
html[data-mf-color] .single-tvshows .player-poster__active-player,
html[data-mf-color] .single-episodes .player-poster__active-player {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  padding: 0 !important;
  color: var(--mf-heading-tint) !important;
  text-decoration: none !important;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.72) !important;
}

/* =====================================================
   2026-06-10: Color schemes v4 - transparent scrollbar tracks and light Bests contrast
   ===================================================== */
html[data-mf-color] {
  scrollbar-width: thin !important;
  scrollbar-color: var(--mf-accent-strong) transparent !important;
}

html[data-mf-color] body,
html[data-mf-color] #page,
html[data-mf-color] .site,
html[data-mf-color] .site-main,
html[data-mf-color] .content-area,
html[data-mf-color] .mcs-horizontal-scroll,
html[data-mf-color] .mcs-carousel-track,
html[data-mf-color] .mcs-scroll-track,
html[data-mf-color] .related-carousel,
html[data-mf-color] .recently-viewed-carousel,
html[data-mf-color] .season-tabs,
html[data-mf-color] .episodes-scroll,
html[data-mf-color] .episodes-list,
html[data-mf-color] .mfb-filter-options,
html[data-mf-color] .mfb-years-grid,
html[data-mf-color] .featured-homepage-list,
html[data-mf-color] .featured-homepage-scroll,
html[data-mf-color] .tvapi-boxoffice-list {
  scrollbar-width: thin !important;
  scrollbar-color: var(--mf-accent-strong) transparent !important;
}

html[data-mf-color]::-webkit-scrollbar-track,
html[data-mf-color] body::-webkit-scrollbar-track,
html[data-mf-color] #page::-webkit-scrollbar-track,
html[data-mf-color] .site::-webkit-scrollbar-track,
html[data-mf-color] .site-main::-webkit-scrollbar-track,
html[data-mf-color] .content-area::-webkit-scrollbar-track,
html[data-mf-color] .mcs-horizontal-scroll::-webkit-scrollbar-track,
html[data-mf-color] .mcs-carousel-track::-webkit-scrollbar-track,
html[data-mf-color] .mcs-scroll-track::-webkit-scrollbar-track,
html[data-mf-color] .related-carousel::-webkit-scrollbar-track,
html[data-mf-color] .recently-viewed-carousel::-webkit-scrollbar-track,
html[data-mf-color] .season-tabs::-webkit-scrollbar-track,
html[data-mf-color] .episodes-scroll::-webkit-scrollbar-track,
html[data-mf-color] .episodes-list::-webkit-scrollbar-track,
html[data-mf-color] .mfb-filter-options::-webkit-scrollbar-track,
html[data-mf-color] .mfb-years-grid::-webkit-scrollbar-track,
html[data-mf-color] .featured-homepage-list::-webkit-scrollbar-track,
html[data-mf-color] .featured-homepage-scroll::-webkit-scrollbar-track,
html[data-mf-color] .tvapi-boxoffice-list::-webkit-scrollbar-track {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html[data-mf-color]::-webkit-scrollbar-corner,
html[data-mf-color] body::-webkit-scrollbar-corner,
html[data-mf-color] #page::-webkit-scrollbar-corner,
html[data-mf-color] .site::-webkit-scrollbar-corner,
html[data-mf-color] .mcs-horizontal-scroll::-webkit-scrollbar-corner,
html[data-mf-color] .mcs-carousel-track::-webkit-scrollbar-corner,
html[data-mf-color] .related-carousel::-webkit-scrollbar-corner,
html[data-mf-color] .recently-viewed-carousel::-webkit-scrollbar-corner,
html[data-mf-color] .season-tabs::-webkit-scrollbar-corner,
html[data-mf-color] .episodes-list::-webkit-scrollbar-corner,
html[data-mf-color] .mfb-filter-options::-webkit-scrollbar-corner,
html[data-mf-color] .mfb-years-grid::-webkit-scrollbar-corner {
  background: transparent !important;
}

html[data-mf-color]::-webkit-scrollbar-thumb,
html[data-mf-color] body::-webkit-scrollbar-thumb,
html[data-mf-color] #page::-webkit-scrollbar-thumb,
html[data-mf-color] .site::-webkit-scrollbar-thumb,
html[data-mf-color] .site-main::-webkit-scrollbar-thumb,
html[data-mf-color] .content-area::-webkit-scrollbar-thumb,
html[data-mf-color] .mcs-horizontal-scroll::-webkit-scrollbar-thumb,
html[data-mf-color] .mcs-carousel-track::-webkit-scrollbar-thumb,
html[data-mf-color] .mcs-scroll-track::-webkit-scrollbar-thumb,
html[data-mf-color] .related-carousel::-webkit-scrollbar-thumb,
html[data-mf-color] .recently-viewed-carousel::-webkit-scrollbar-thumb,
html[data-mf-color] .season-tabs::-webkit-scrollbar-thumb,
html[data-mf-color] .episodes-scroll::-webkit-scrollbar-thumb,
html[data-mf-color] .episodes-list::-webkit-scrollbar-thumb,
html[data-mf-color] .mfb-filter-options::-webkit-scrollbar-thumb,
html[data-mf-color] .mfb-years-grid::-webkit-scrollbar-thumb,
html[data-mf-color] .featured-homepage-list::-webkit-scrollbar-thumb,
html[data-mf-color] .featured-homepage-scroll::-webkit-scrollbar-thumb,
html[data-mf-color] .tvapi-boxoffice-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--mf-accent), var(--mf-accent-strong)) !important;
  background-clip: padding-box !important;
  border: 2px solid transparent !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

html[data-mf-color] .mcs-horizontal-scroll::-webkit-scrollbar-thumb,
html[data-mf-color] .mcs-carousel-track::-webkit-scrollbar-thumb,
html[data-mf-color] .mcs-scroll-track::-webkit-scrollbar-thumb,
html[data-mf-color] .related-carousel::-webkit-scrollbar-thumb,
html[data-mf-color] .recently-viewed-carousel::-webkit-scrollbar-thumb,
html[data-mf-color] .season-tabs::-webkit-scrollbar-thumb,
html[data-mf-color] .episodes-scroll::-webkit-scrollbar-thumb,
html[data-mf-color] .episodes-list::-webkit-scrollbar-thumb,
html[data-mf-color] .mfb-filter-options::-webkit-scrollbar-thumb,
html[data-mf-color] .mfb-years-grid::-webkit-scrollbar-thumb,
html[data-mf-color] .featured-homepage-list::-webkit-scrollbar-thumb,
html[data-mf-color] .featured-homepage-scroll::-webkit-scrollbar-thumb,
html[data-mf-color] .tvapi-boxoffice-list::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--mf-accent), var(--mf-accent-strong)) !important;
}

html[data-mf-color]::-webkit-scrollbar-button:horizontal,
html[data-mf-color] body::-webkit-scrollbar-button:horizontal,
html[data-mf-color] .mcs-horizontal-scroll::-webkit-scrollbar-button:horizontal,
html[data-mf-color] .mcs-carousel-track::-webkit-scrollbar-button:horizontal,
html[data-mf-color] .related-carousel::-webkit-scrollbar-button:horizontal,
html[data-mf-color] .recently-viewed-carousel::-webkit-scrollbar-button:horizontal,
html[data-mf-color] .season-tabs::-webkit-scrollbar-button:horizontal,
html[data-mf-color] .episodes-list::-webkit-scrollbar-button:horizontal,
html[data-mf-color] .mfb-filter-options::-webkit-scrollbar-button:horizontal,
html[data-mf-color] .mfb-years-grid::-webkit-scrollbar-button:horizontal {
  width: 12px !important;
  height: 9px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html[data-mf-color]::-webkit-scrollbar-button:horizontal:decrement,
html[data-mf-color] body::-webkit-scrollbar-button:horizontal:decrement,
html[data-mf-color] .mcs-horizontal-scroll::-webkit-scrollbar-button:horizontal:decrement,
html[data-mf-color] .mcs-carousel-track::-webkit-scrollbar-button:horizontal:decrement,
html[data-mf-color] .related-carousel::-webkit-scrollbar-button:horizontal:decrement,
html[data-mf-color] .recently-viewed-carousel::-webkit-scrollbar-button:horizontal:decrement,
html[data-mf-color] .season-tabs::-webkit-scrollbar-button:horizontal:decrement,
html[data-mf-color] .episodes-list::-webkit-scrollbar-button:horizontal:decrement,
html[data-mf-color] .mfb-filter-options::-webkit-scrollbar-button:horizontal:decrement,
html[data-mf-color] .mfb-years-grid::-webkit-scrollbar-button:horizontal:decrement {
  border-style: solid !important;
  border-width: 4px 6px 4px 0 !important;
  border-color: transparent var(--mf-accent) transparent transparent !important;
}

html[data-mf-color]::-webkit-scrollbar-button:horizontal:increment,
html[data-mf-color] body::-webkit-scrollbar-button:horizontal:increment,
html[data-mf-color] .mcs-horizontal-scroll::-webkit-scrollbar-button:horizontal:increment,
html[data-mf-color] .mcs-carousel-track::-webkit-scrollbar-button:horizontal:increment,
html[data-mf-color] .related-carousel::-webkit-scrollbar-button:horizontal:increment,
html[data-mf-color] .recently-viewed-carousel::-webkit-scrollbar-button:horizontal:increment,
html[data-mf-color] .season-tabs::-webkit-scrollbar-button:horizontal:increment,
html[data-mf-color] .episodes-list::-webkit-scrollbar-button:horizontal:increment,
html[data-mf-color] .mfb-filter-options::-webkit-scrollbar-button:horizontal:increment,
html[data-mf-color] .mfb-years-grid::-webkit-scrollbar-button:horizontal:increment {
  border-style: solid !important;
  border-width: 4px 0 4px 6px !important;
  border-color: transparent transparent transparent var(--mf-accent) !important;
}

html:not([data-theme="dark"])[data-mf-color] body .mfb-page :where(
  .mfb-filter-label,
  .mfb-filter__label,
  .mfb-filter-row__label,
  .mfb-filter-group__label,
  .mfb-filters-label,
  .mfb-filter-title,
  .mfb-filter-name,
  .mfb-filter-row > span:first-child,
  .mfb-filter-row > label:first-child,
  .mfb-filter-group > span:first-child,
  .mfb-filter-group > label:first-child
),
html[data-theme="light"][data-mf-color] body .mfb-page :where(
  .mfb-filter-label,
  .mfb-filter__label,
  .mfb-filter-row__label,
  .mfb-filter-group__label,
  .mfb-filters-label,
  .mfb-filter-title,
  .mfb-filter-name,
  .mfb-filter-row > span:first-child,
  .mfb-filter-row > label:first-child,
  .mfb-filter-group > span:first-child,
  .mfb-filter-group > label:first-child
) {
  color: #173353 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

html:not([data-theme="dark"])[data-mf-color] body .mfb-page :where(
  .mfb-chip,
  .mfb-region-btn,
  .mfb-filter-chip,
  .mfb-filter-options button,
  .mfb-region-options button,
  .mfb-production-options button,
  .mfb-filter-list button
),
html[data-theme="light"][data-mf-color] body .mfb-page :where(
  .mfb-chip,
  .mfb-region-btn,
  .mfb-filter-chip,
  .mfb-filter-options button,
  .mfb-region-options button,
  .mfb-production-options button,
  .mfb-filter-list button
) {
  background: rgba(255, 255, 255, 0.76) !important;
  border-color: color-mix(in srgb, var(--mf-accent-strong) 48%, #173353 24%) !important;
  box-shadow: none !important;
  color: #173353 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

html:not([data-theme="dark"])[data-mf-color] body .mfb-page :where(
  .mfb-chip:hover,
  .mfb-region-btn:hover,
  .mfb-filter-chip:hover,
  .mfb-filter-options button:hover,
  .mfb-region-options button:hover,
  .mfb-production-options button:hover,
  .mfb-filter-list button:hover
),
html[data-theme="light"][data-mf-color] body .mfb-page :where(
  .mfb-chip:hover,
  .mfb-region-btn:hover,
  .mfb-filter-chip:hover,
  .mfb-filter-options button:hover,
  .mfb-region-options button:hover,
  .mfb-production-options button:hover,
  .mfb-filter-list button:hover
) {
  background: color-mix(in srgb, var(--mf-accent) 20%, #ffffff 80%) !important;
  border-color: var(--mf-accent-strong) !important;
  color: #0e2744 !important;
}

html:not([data-theme="dark"])[data-mf-color] body .mfb-page :where(
  .mfb-chip.is-active,
  .mfb-chip.active,
  .mfb-region-btn.is-active,
  .mfb-region-btn.active,
  .mfb-filter-chip.is-active,
  .mfb-filter-chip.active,
  .mfb-filter-options button.is-active,
  .mfb-filter-options button.active,
  .mfb-region-options button.is-active,
  .mfb-region-options button.active,
  .mfb-production-options button.is-active,
  .mfb-production-options button.active,
  .mfb-filter-list button.is-active,
  .mfb-filter-list button.active,
  [aria-pressed="true"].mfb-chip,
  [aria-pressed="true"].mfb-region-btn,
  [aria-pressed="true"].mfb-filter-chip,
  .mfb-filter-options button[aria-pressed="true"],
  .mfb-region-options button[aria-pressed="true"],
  .mfb-production-options button[aria-pressed="true"],
  .mfb-filter-list button[aria-pressed="true"]
),
html[data-theme="light"][data-mf-color] body .mfb-page :where(
  .mfb-chip.is-active,
  .mfb-chip.active,
  .mfb-region-btn.is-active,
  .mfb-region-btn.active,
  .mfb-filter-chip.is-active,
  .mfb-filter-chip.active,
  .mfb-filter-options button.is-active,
  .mfb-filter-options button.active,
  .mfb-region-options button.is-active,
  .mfb-region-options button.active,
  .mfb-production-options button.is-active,
  .mfb-production-options button.active,
  .mfb-filter-list button.is-active,
  .mfb-filter-list button.active,
  [aria-pressed="true"].mfb-chip,
  [aria-pressed="true"].mfb-region-btn,
  [aria-pressed="true"].mfb-filter-chip,
  .mfb-filter-options button[aria-pressed="true"],
  .mfb-region-options button[aria-pressed="true"],
  .mfb-production-options button[aria-pressed="true"],
  .mfb-filter-list button[aria-pressed="true"]
) {
  background: linear-gradient(135deg, color-mix(in srgb, var(--mf-accent-strong) 62%, #16304e 38%), color-mix(in srgb, var(--mf-accent) 62%, #16304e 38%)) !important;
  border-color: color-mix(in srgb, var(--mf-accent) 76%, #16304e 24%) !important;
  color: #ffffff !important;
  opacity: 1 !important;
}

html:not([data-theme="dark"])[data-mf-color] body .mfb-page .mfb-filters,
html:not([data-theme="dark"])[data-mf-color] body .mfb-page .mfb-filter-bar,
html:not([data-theme="dark"])[data-mf-color] body .mfb-page .mfb-filter-panel,
html[data-theme="light"][data-mf-color] body .mfb-page .mfb-filters,
html[data-theme="light"][data-mf-color] body .mfb-page .mfb-filter-bar,
html[data-theme="light"][data-mf-color] body .mfb-page .mfb-filter-panel {
  color: #173353 !important;
}

/* 2026-06-10: force single-page carousel scrollbars to follow color scheme.
   These rules target the real .mcs-scroll carousels used on single movie/TV/episode pages.
   Track stays transparent; only thumb and edge arrows react to the palette. */
html[data-mf-color] .mcs-scroll {
  scrollbar-width: thin !important;
  scrollbar-color: var(--mf-accent-strong) transparent !important;
}

html[data-mf-color] .mcs-scroll::-webkit-scrollbar {
  height: 9px !important;
  width: 9px !important;
}

html[data-mf-color] .mcs-scroll::-webkit-scrollbar-track,
html[data-mf-color] .mcs-scroll::-webkit-scrollbar-track-piece {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

html[data-mf-color] .mcs-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--mf-accent), var(--mf-accent-strong)) !important;
  border: 2px solid transparent !important;
  border-radius: 999px !important;
  background-clip: padding-box !important;
  box-shadow: none !important;
}

html[data-mf-color] .mcs-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, var(--mf-heading-tint), var(--mf-accent)) !important;
  background-clip: padding-box !important;
}

html[data-mf-color] .mcs-scroll::-webkit-scrollbar-button {
  background: transparent !important;
  box-shadow: none !important;
}

html[data-mf-color] .mcs-scroll::-webkit-scrollbar-button:horizontal:decrement,
html[data-mf-color] .mcs-scroll::-webkit-scrollbar-button:horizontal:start:decrement,
html[data-mf-color] .mcs-scroll::-webkit-scrollbar-button:horizontal:single-button:decrement {
  width: 10px !important;
  height: 9px !important;
  border-top: 4px solid transparent !important;
  border-bottom: 4px solid transparent !important;
  border-right: 6px solid var(--mf-accent) !important;
  border-left: 0 !important;
}

html[data-mf-color] .mcs-scroll::-webkit-scrollbar-button:horizontal:increment,
html[data-mf-color] .mcs-scroll::-webkit-scrollbar-button:horizontal:end:increment,
html[data-mf-color] .mcs-scroll::-webkit-scrollbar-button:horizontal:single-button:increment {
  width: 10px !important;
  height: 9px !important;
  border-top: 4px solid transparent !important;
  border-bottom: 4px solid transparent !important;
  border-left: 6px solid var(--mf-accent) !important;
  border-right: 0 !important;
}

html[data-mf-color] .mcs-scroll::-webkit-scrollbar-button:horizontal:decrement:hover,
html[data-mf-color] .mcs-scroll::-webkit-scrollbar-button:horizontal:start:decrement:hover,
html[data-mf-color] .mcs-scroll::-webkit-scrollbar-button:horizontal:single-button:decrement:hover {
  border-right-color: var(--mf-heading-tint) !important;
}

html[data-mf-color] .mcs-scroll::-webkit-scrollbar-button:horizontal:increment:hover,
html[data-mf-color] .mcs-scroll::-webkit-scrollbar-button:horizontal:end:increment:hover,
html[data-mf-color] .mcs-scroll::-webkit-scrollbar-button:horizontal:single-button:increment:hover {
  border-left-color: var(--mf-heading-tint) !important;
}

/* =====================================================
   2026-06-10: Light theme readability fixes after color schemes
   Rating badges are intentionally excluded.
   ===================================================== */
html[data-theme="light"] .featured-homepage-block,
html[data-theme="light"] body .featured-homepage-block,
html[data-theme="light"] .recently-added-block,
html[data-theme="light"] body .recently-added-block {
  background: rgba(255, 255, 255, 0.98) !important;
  border-color: color-mix(in srgb, var(--mf-accent-strong, #4d9dff) 34%, rgba(15, 23, 42, 0.18)) !important;
  box-shadow:
    0 16px 44px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.82) inset !important;
}

html[data-theme="light"] .featured-homepage-header,
html[data-theme="light"] body .featured-homepage-header,
html[data-theme="light"] .recently-added-header,
html[data-theme="light"] body .recently-added-header {
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--mf-accent, #6bb3ff) 10%, #ffffff 90%) 0%,
      rgba(255, 255, 255, 0.96) 100%) !important;
  border-bottom-color: color-mix(in srgb, var(--mf-accent-strong, #4d9dff) 22%, rgba(15, 23, 42, 0.14)) !important;
}

html[data-theme="light"] .featured-homepage-heading,
html[data-theme="light"] body .featured-homepage-heading,
html[data-theme="light"] .recently-added-h1,
html[data-theme="light"] body .recently-added-h1 {
  color: color-mix(in srgb, var(--mf-accent-strong, #4d9dff) 44%, #111827 56%) !important;
  text-shadow: none !important;
}

html[data-theme="light"] .featured-homepage-heading::after,
html[data-theme="light"] .featured-homepage-header::before,
html[data-theme="light"] .recently-added-h1::after,
html[data-theme="light"] .recently-added-title::after,
html[data-theme="light"] body .featured-homepage-heading::after,
html[data-theme="light"] body .featured-homepage-header::before,
html[data-theme="light"] body .recently-added-h1::after,
html[data-theme="light"] body .recently-added-title::after {
  background: color-mix(in srgb, var(--mf-accent-strong, #4d9dff) 72%, #111827 28%) !important;
  box-shadow: none !important;
}

html[data-theme="light"] .featured-homepage-item,
html[data-theme="light"] body .featured-homepage-item,
html[data-theme="light"] .recently-added-item,
html[data-theme="light"] body .recently-added-item {
  border-bottom-color: rgba(15, 23, 42, 0.075) !important;
}

html[data-theme="light"] .featured-homepage-item:hover,
html[data-theme="light"] body .featured-homepage-item:hover,
html[data-theme="light"] .recently-added-item:hover,
html[data-theme="light"] body .recently-added-item:hover {
  background: color-mix(in srgb, var(--mf-accent, #6bb3ff) 7%, #ffffff 93%) !important;
}

html[data-theme="light"] .featured-homepage-num,
html[data-theme="light"] body .featured-homepage-num,
html[data-theme="light"] .recently-added-date,
html[data-theme="light"] body .recently-added-date {
  color: color-mix(in srgb, var(--mf-accent-strong, #4d9dff) 60%, #1f2937 40%) !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

html[data-theme="light"] .featured-homepage-title,
html[data-theme="light"] body .featured-homepage-title,
html[data-theme="light"] .recently-added-title,
html[data-theme="light"] body .recently-added-title {
  color: #111827 !important;
  text-shadow: none !important;
}

html[data-theme="light"] .featured-homepage-title:hover,
html[data-theme="light"] body .featured-homepage-title:hover,
html[data-theme="light"] .recently-added-title:hover,
html[data-theme="light"] body .recently-added-title:hover {
  color: color-mix(in srgb, var(--mf-accent-strong, #4d9dff) 72%, #111827 28%) !important;
}

html[data-theme="light"] .featured-homepage-year,
html[data-theme="light"] body .featured-homepage-year,
html[data-theme="light"] .recently-added-year,
html[data-theme="light"] body .recently-added-year {
  color: #475569 !important;
  text-shadow: none !important;
}

html[data-theme="light"] .featured-homepage-genres,
html[data-theme="light"] body .featured-homepage-genres,
html[data-theme="light"] .recently-added-genres,
html[data-theme="light"] body .recently-added-genres {
  color: #334155 !important;
  text-shadow: none !important;
}

html[data-theme="light"] .featured-homepage-thumb,
html[data-theme="light"] body .featured-homepage-thumb {
  border-color: rgba(15, 23, 42, 0.16) !important;
  box-shadow: 0 1px 5px rgba(15, 23, 42, 0.18) !important;
}

/* Top Box Office / TV API listing year badge readability in light mode. */
html[data-theme="light"] .featured-meta-year,
html[data-theme="light"] body .featured-meta-year,
html[data-theme="light"] .listing-meta-year,
html[data-theme="light"] body .listing-meta-year,
html[data-theme="light"] .player-poster__year,
html[data-theme="light"] body .player-poster__year {
  color: #1f2937 !important;
  background: color-mix(in srgb, var(--mf-accent, #6bb3ff) 10%, rgba(255,255,255,0.92) 90%) !important;
  border: 1px solid color-mix(in srgb, var(--mf-accent-strong, #4d9dff) 34%, rgba(15, 23, 42, 0.18)) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

html[data-theme="light"] .tvapi-boxoffice-meta span:not(.tvapi-boxoffice-imdb),
html[data-theme="light"] body .tvapi-boxoffice-meta span:not(.tvapi-boxoffice-imdb) {
  color: #334155 !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
  background: rgba(255,255,255,0.72) !important;
  text-shadow: none !important;
}

/* Protect rating badges from the light-mode readability overrides. */
html[data-theme="light"] .featured-homepage-rating,
html[data-theme="light"] body .featured-homepage-rating,
html[data-theme="light"] .featured-meta-rating,
html[data-theme="light"] body .featured-meta-rating,
html[data-theme="light"] .listing-meta-rating,
html[data-theme="light"] body .listing-meta-rating,
html[data-theme="light"] .tvapi-boxoffice-imdb,
html[data-theme="light"] body .tvapi-boxoffice-imdb {
  text-shadow: none !important;
}

/* =====================================================
   2026-06-10 v7: final light-mode contrast fixes.
   - Homepage Featured Movies uses the real rendered classes.
   - Top Box Office/year badges use translucent fills instead of solid grey.
   - Rating badges are not changed.
   ===================================================== */
html[data-theme="light"] body.home .featured-homepage-block,
body[data-theme="light"].home .featured-homepage-block,
[data-theme="light"] body.home .featured-homepage-block {
  background: rgba(247, 250, 255, 0.965) !important;
  color: #162033 !important;
  border-color: rgba(22, 37, 63, 0.16) !important;
  box-shadow: 0 18px 48px rgba(20, 40, 72, 0.16) !important;
}

html[data-theme="light"] body.home .featured-homepage-header,
body[data-theme="light"].home .featured-homepage-header,
[data-theme="light"] body.home .featured-homepage-header {
  background: rgba(255, 255, 255, 0.72) !important;
  border-bottom-color: rgba(22, 37, 63, 0.14) !important;
}

html[data-theme="light"] body.home .featured-homepage-heading,
body[data-theme="light"].home .featured-homepage-heading,
[data-theme="light"] body.home .featured-homepage-heading {
  color: color-mix(in srgb, var(--mf-accent-strong, #2f6fb8) 50%, #162033 50%) !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

html[data-theme="light"] body.home .featured-homepage-title,
html[data-theme="light"] body.home .featured-homepage-title:visited,
body[data-theme="light"].home .featured-homepage-title,
body[data-theme="light"].home .featured-homepage-title:visited,
[data-theme="light"] body.home .featured-homepage-title,
[data-theme="light"] body.home .featured-homepage-title:visited {
  color: #111827 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

html[data-theme="light"] body.home .featured-homepage-year,
body[data-theme="light"].home .featured-homepage-year,
[data-theme="light"] body.home .featured-homepage-year {
  color: #526174 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

html[data-theme="light"] body.home .featured-homepage-genres,
body[data-theme="light"].home .featured-homepage-genres,
[data-theme="light"] body.home .featured-homepage-genres {
  color: #334155 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

html[data-theme="light"] body.home .featured-homepage-num,
body[data-theme="light"].home .featured-homepage-num,
[data-theme="light"] body.home .featured-homepage-num {
  color: color-mix(in srgb, var(--mf-accent-strong, #2f6fb8) 68%, #24344d 32%) !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

html[data-theme="light"] body.home .featured-homepage-item,
body[data-theme="light"].home .featured-homepage-item,
[data-theme="light"] body.home .featured-homepage-item {
  background: transparent !important;
  border-bottom-color: rgba(22, 37, 63, 0.10) !important;
}

html[data-theme="light"] body.home .featured-homepage-item:nth-child(even),
body[data-theme="light"].home .featured-homepage-item:nth-child(even),
[data-theme="light"] body.home .featured-homepage-item:nth-child(even) {
  background: rgba(32, 62, 96, 0.035) !important;
}

/* Top Box Office / TV API pages: make year/meta badges translucent, not solid grey. */
html[data-theme="light"] .tvapi-boxoffice-meta span:not(.tvapi-boxoffice-imdb),
body[data-theme="light"] .tvapi-boxoffice-meta span:not(.tvapi-boxoffice-imdb),
[data-theme="light"] .tvapi-boxoffice-meta span:not(.tvapi-boxoffice-imdb) {
  color: rgba(238, 245, 255, 0.86) !important;
  background: rgba(255, 255, 255, 0.13) !important;
  border-color: rgba(255, 255, 255, 0.20) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  text-shadow: none !important;
}

html[data-theme="light"] .tvapi-boxoffice-meta span:not(.tvapi-boxoffice-imdb):hover,
body[data-theme="light"] .tvapi-boxoffice-meta span:not(.tvapi-boxoffice-imdb):hover,
[data-theme="light"] .tvapi-boxoffice-meta span:not(.tvapi-boxoffice-imdb):hover {
  background: color-mix(in srgb, var(--mf-accent, #6bb3ff) 18%, rgba(255,255,255,0.13) 82%) !important;
  border-color: color-mix(in srgb, var(--mf-accent, #6bb3ff) 44%, rgba(255,255,255,0.20) 56%) !important;
}

html[data-theme="light"] .tvapi-boxoffice-meta .tvapi-boxoffice-imdb,
body[data-theme="light"] .tvapi-boxoffice-meta .tvapi-boxoffice-imdb,
[data-theme="light"] .tvapi-boxoffice-meta .tvapi-boxoffice-imdb {
  /* rating badge protection */
}

html[data-theme="light"] .featured-meta-year:not(.tvapi-boxoffice-imdb),
html[data-theme="light"] .listing-meta-year:not(.tvapi-boxoffice-imdb),
body[data-theme="light"] .featured-meta-year:not(.tvapi-boxoffice-imdb),
body[data-theme="light"] .listing-meta-year:not(.tvapi-boxoffice-imdb),
[data-theme="light"] .featured-meta-year:not(.tvapi-boxoffice-imdb),
[data-theme="light"] .listing-meta-year:not(.tvapi-boxoffice-imdb) {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  color: rgba(238, 245, 255, 0.88) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08) !important;
  text-shadow: none !important;
}

html[data-theme="light"] .listing-poster-overlay .featured-meta-year,
html[data-theme="light"] .featured-poster-overlay .featured-meta-year,
body[data-theme="light"] .listing-poster-overlay .featured-meta-year,
body[data-theme="light"] .featured-poster-overlay .featured-meta-year,
[data-theme="light"] .listing-poster-overlay .featured-meta-year,
[data-theme="light"] .featured-poster-overlay .featured-meta-year {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  color: rgba(238, 245, 255, 0.88) !important;
}

html[data-theme="light"] .featured-homepage-rating,
html[data-theme="light"] .featured-meta-rating,
html[data-theme="light"] .listing-meta-rating,
body[data-theme="light"] .featured-homepage-rating,
body[data-theme="light"] .featured-meta-rating,
body[data-theme="light"] .listing-meta-rating,
[data-theme="light"] .featured-homepage-rating,
[data-theme="light"] .featured-meta-rating,
[data-theme="light"] .listing-meta-rating {
  /* rating badge protection */
}

/* =====================================================
   2026-06-10 v8: light-mode year badges and homepage readability final fixes.
   ===================================================== */
html[data-theme="light"] #page .listing-poster-overlay .featured-meta-year,
html[data-theme="light"] #page .featured-poster-overlay .featured-meta-year,
html[data-theme="light"] #page .featured-meta-year:not(.featured-meta-rating):not([class*="rating"]),
html[data-theme="light"] #page .listing-meta-year:not(.listing-meta-rating):not([class*="rating"]) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: rgba(238, 245, 255, 0.88) !important;
  -webkit-text-fill-color: rgba(238, 245, 255, 0.88) !important;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="light"] #page .tvapi-boxoffice-meta span:not(.tvapi-boxoffice-imdb) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-height: 0 !important;
  color: rgba(230, 241, 255, 0.92) !important;
  -webkit-text-fill-color: rgba(230, 241, 255, 0.92) !important;
  text-shadow: none !important;
}

html[data-theme="light"] body.home #page .featured-homepage-block a.featured-homepage-title,
html[data-theme="light"] body.home #page .featured-homepage-block a.featured-homepage-title:link,
html[data-theme="light"] body.home #page .featured-homepage-block a.featured-homepage-title:visited,
html[data-theme="light"] body.home #page .featured-homepage-block .featured-homepage-title {
  color: #101827 !important;
  -webkit-text-fill-color: #101827 !important;
  opacity: 1 !important;
  text-shadow: none !important;
  mix-blend-mode: normal !important;
}

html[data-theme="light"] body.home #page .featured-homepage-block .featured-homepage-year {
  color: #475569 !important;
  -webkit-text-fill-color: #475569 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

html[data-theme="light"] body.home #page .featured-homepage-block .featured-homepage-genres {
  color: #334155 !important;
  -webkit-text-fill-color: #334155 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

html[data-theme="light"] body.home #page .featured-homepage-block .featured-homepage-num,
html[data-theme="light"] body.home #page .featured-homepage-block .featured-homepage-heading {
  opacity: 1 !important;
  text-shadow: none !important;
}


/* =====================================================
   2026-06-10 v9: Top Box Office year frame in light theme.
   Keep poster-card years plain, but restore the framed meta style
   for Top Box Office rows, matching dark theme structure.
   ===================================================== */
html[data-theme="light"] #page .tvapi-boxoffice-meta span:not(.tvapi-boxoffice-imdb),
html[data-theme="light"] body #page .tvapi-boxoffice-meta span:not(.tvapi-boxoffice-imdb),
[data-theme="light"] #page .tvapi-boxoffice-meta span:not(.tvapi-boxoffice-imdb) {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 28px !important;
  padding: 0 11px !important;
  border: 1px solid var(--mf-accent-border, rgba(120, 150, 255, 0.28)) !important;
  background: color-mix(in srgb, var(--mf-accent, #6bb3ff) 10%, rgba(16, 24, 44, 0.74) 90%) !important;
  color: color-mix(in srgb, var(--mf-accent, #6bb3ff) 72%, #ffffff 28%) !important;
  -webkit-text-fill-color: color-mix(in srgb, var(--mf-accent, #6bb3ff) 72%, #ffffff 28%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  text-shadow: none !important;
}

html[data-theme="light"] #page .tvapi-boxoffice-meta span:not(.tvapi-boxoffice-imdb):hover,
html[data-theme="light"] body #page .tvapi-boxoffice-meta span:not(.tvapi-boxoffice-imdb):hover,
[data-theme="light"] #page .tvapi-boxoffice-meta span:not(.tvapi-boxoffice-imdb):hover {
  border-color: color-mix(in srgb, var(--mf-accent, #6bb3ff) 62%, rgba(255, 255, 255, 0.24) 38%) !important;
  background: color-mix(in srgb, var(--mf-accent, #6bb3ff) 16%, rgba(16, 24, 44, 0.78) 84%) !important;
}

@media (max-width: 575.98px) {
  html[data-theme="light"] #page .tvapi-boxoffice-meta span:not(.tvapi-boxoffice-imdb),
  html[data-theme="light"] body #page .tvapi-boxoffice-meta span:not(.tvapi-boxoffice-imdb),
  [data-theme="light"] #page .tvapi-boxoffice-meta span:not(.tvapi-boxoffice-imdb) {
    min-height: 24px !important;
    padding: 0 8px !important;
  }
}

/* =====================================================
   2026-06-10 v10: player splash year cleanup.
   Keep the splash year as plain text only, never as a badge.
   ===================================================== */
html[data-theme] #page .player-poster__year,
html[data-theme] body #page .player-poster__year,
[data-theme] #page .player-poster__year,
#page .player-poster__title .player-poster__year {
  display: inline !important;
  margin-left: 0.32em !important;
  padding: 0 !important;
  min-height: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.78) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.78) !important;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.48) !important;
}

html[data-theme="light"] #page .player-poster__year,
html[data-theme="light"] body #page .player-poster__year,
[data-theme="light"] #page .player-poster__year {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.82) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.82) !important;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.58) !important;
}
