/*
Theme Name: Movie Template
Theme URI: https://moviespage.dulldev.com/
Author: MovieCentre
Description: Dark movie catalog theme for MovieCentre WordPress destinations.
Version: 0.9.9
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: movie-template
*/

:root {
  --mc-bg: #0a0a0c;
  --mc-panel: #151519;
  --mc-panel-soft: #1c1c22;
  --mc-line: rgba(255, 255, 255, 0.1);
  --mc-text: #f5f5f7;
  --mc-muted: #b6b6c0;
  --mc-red: #e50914;
  --mc-red-dark: #a70710;
  --mc-gold: #f5c84b;
  --mc-green: #2ecc71;
  --mc-radius: 8px;
  --mc-shadow: 0 14px 36px rgba(0, 0, 0, 0.36);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--mc-bg);
  color: var(--mc-text);
  font-family: "Tahoma", "Noto Sans Thai", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

.mc-site {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(229, 9, 20, 0.08), transparent 260px),
    var(--mc-bg);
}

.mc-container {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

.mc-topbar {
  border-bottom: 1px solid var(--mc-line);
  background: rgba(10, 10, 12, 0.96);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}

.mc-header {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr);
  gap: 20px;
  align-items: center;
  padding: 16px 0 12px;
}

.mc-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mc-brand-logo {
  width: min(260px, 52vw);
  height: auto;
  max-height: 62px;
  object-fit: contain;
}

.mc-brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mc-red);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.16);
}

.mc-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.mc-brand-name {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
}

.mc-brand-tagline {
  color: var(--mc-muted);
  font-size: 12px;
}

.mc-search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.mc-search-form input[type="search"] {
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 1px solid var(--mc-line);
  border-radius: var(--mc-radius);
  background: var(--mc-panel);
  color: var(--mc-text);
  padding: 0 14px;
  outline: none;
}

.mc-search-form input[type="search"]:focus {
  border-color: rgba(229, 9, 20, 0.72);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.18);
}

.mc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: var(--mc-radius);
  background: var(--mc-red);
  color: #fff;
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
}

.mc-button:hover,
.mc-button:focus-visible {
  background: var(--mc-red-dark);
}

.mc-nav-wrap {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mc-nav {
  display: flex;
  gap: 6px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: thin;
  padding: 10px 0;
}

.mc-nav ul {
  display: contents;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mc-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  white-space: nowrap;
  border-radius: var(--mc-radius);
  color: #f1f1f3;
  background: var(--mc-panel);
  padding: 7px 12px;
  font-size: 14px;
}

.mc-nav a:hover,
.mc-nav .current-menu-item > a,
.mc-nav .current-cat > a {
  background: var(--mc-red);
}

.mc-main {
  padding: 22px 0 42px;
}

.elementor-location-header + .mc-main,
.elementor-location-footer {
  background: var(--mc-bg);
}

.mc-elementor-archive,
.mc-elementor-single {
  color: var(--mc-text);
}

.mc-intro {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.mc-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.22;
  font-weight: 900;
}

.mc-copy {
  margin: 0;
  color: var(--mc-muted);
}

.mc-hero-band {
  border-bottom: 1px solid var(--mc-line);
  background:
    radial-gradient(circle at 18% 0%, rgba(229, 9, 20, 0.32), transparent 34%),
    linear-gradient(180deg, #121217 0%, #08080a 100%);
  margin-top: -22px;
  padding: 30px 0;
}

.mc-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 24px;
  align-items: center;
}

.mc-hero-search {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--mc-radius);
  background: rgba(255, 255, 255, 0.045);
  padding: 12px;
}

.mc-section {
  margin-top: 26px;
}

.mc-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  border-left: 5px solid var(--mc-red);
  padding-left: 12px;
}

.mc-section-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.mc-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.mc-category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mc-category-grid li {
  list-style: none;
}

.mc-category-grid a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--mc-line);
  border-radius: var(--mc-radius);
  background: var(--mc-panel);
  color: #f1f1f3;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 800;
}

.mc-category-grid a:hover {
  border-color: var(--mc-red);
  background: rgba(229, 9, 20, 0.18);
}

.mc-card {
  position: relative;
  min-width: 0;
}

.mc-card-poster {
  position: relative;
  overflow: hidden;
  border-radius: var(--mc-radius);
  background: var(--mc-panel);
  box-shadow: var(--mc-shadow);
  aspect-ratio: 2 / 3;
}

.mc-card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease, opacity 180ms ease;
}

.mc-card:hover img {
  transform: scale(1.04);
  opacity: 0.86;
}

.mc-card-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--mc-muted);
  background: linear-gradient(145deg, #24242a, #111116);
  text-align: center;
  padding: 16px;
  font-weight: 800;
}

.mc-badge-row {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 8px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.mc-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  padding: 2px 7px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.mc-badge-red {
  background: var(--mc-red);
}

.mc-badge-gold {
  background: var(--mc-gold);
  color: #151000;
}

.mc-badge-green {
  background: var(--mc-green);
  color: #03150a;
}

.mc-card-title {
  margin: 8px 0 0;
  color: #f4f4f6;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mc-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  margin-top: 4px;
  color: var(--mc-muted);
  font-size: 12px;
}

.mc-sidebar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}

.mc-panel {
  border: 1px solid var(--mc-line);
  border-radius: var(--mc-radius);
  background: var(--mc-panel);
  padding: 16px;
}

.mc-panel + .mc-panel {
  margin-top: 16px;
}

.mc-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mc-list a {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.mc-list img,
.mc-list .mc-thumb-fallback {
  width: 54px;
  height: 78px;
  border-radius: 4px;
  object-fit: cover;
  background: var(--mc-panel-soft);
}

.mc-list-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.mc-tax-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mc-tax-cloud a {
  border: 1px solid var(--mc-line);
  border-radius: 999px;
  background: var(--mc-panel-soft);
  color: var(--mc-muted);
  padding: 5px 10px;
  font-size: 13px;
}

.mc-tax-cloud a:hover {
  color: #fff;
  border-color: var(--mc-red);
}

.mc-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 26px;
}

.mc-pagination .page-numbers {
  min-width: 36px;
  min-height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--mc-radius);
  border: 1px solid var(--mc-line);
  background: var(--mc-panel);
  color: var(--mc-text);
  padding: 4px 10px;
}

.mc-pagination .current,
.mc-pagination a:hover {
  background: var(--mc-red);
  border-color: var(--mc-red);
}

.mc-single-hero {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}

.mc-single-poster {
  overflow: hidden;
  border-radius: var(--mc-radius);
  background: var(--mc-panel);
  box-shadow: var(--mc-shadow);
}

.mc-single-poster img,
.mc-single-poster .mc-card-placeholder {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.mc-single-title {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.2;
}

.mc-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
}

.mc-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mc-info-item {
  border: 1px solid var(--mc-line);
  border-radius: var(--mc-radius);
  background: rgba(255, 255, 255, 0.035);
  padding: 10px 12px;
}

.mc-info-label {
  display: block;
  color: var(--mc-muted);
  font-size: 12px;
}

.mc-info-value {
  display: block;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.mc-acf-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mc-acf-group {
  border: 1px solid var(--mc-line);
  border-radius: var(--mc-radius);
  background: var(--mc-panel);
  padding: 14px;
}

.mc-acf-group h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 16px;
  line-height: 1.25;
}

.mc-acf-table {
  display: grid;
  gap: 8px;
}

.mc-acf-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 8px;
}

.mc-acf-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.mc-acf-label {
  color: var(--mc-muted);
  font-size: 13px;
}

.mc-acf-value {
  color: #f2f2f5;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.mc-acf-value a {
  color: #ff8a91;
}

.mc-player {
  overflow: hidden;
  border-radius: var(--mc-radius);
  background: #000;
  aspect-ratio: 16 / 9;
  margin-bottom: 14px;
}

.mc-watch-hero {
  margin-top: -22px;
  padding: 24px 0 28px;
  border-bottom: 1px solid var(--mc-line);
  background:
    radial-gradient(circle at 50% 0%, rgba(229, 9, 20, 0.24), transparent 34%),
    #050506;
}

.mc-watch-player-panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--mc-radius);
  background: #09090b;
  padding: 14px;
  box-shadow: var(--mc-shadow);
}

.mc-single-after-player {
  margin-top: 24px;
}

.mc-player iframe,
.mc-player video {
  width: 100%;
  height: 100%;
  border: 0;
}

.mc-player-empty {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--mc-muted);
  text-align: center;
  padding: 18px;
}

.mc-episode-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.mc-episode-button {
  min-height: 40px;
  border: 1px solid var(--mc-line);
  border-radius: var(--mc-radius);
  background: var(--mc-panel-soft);
  color: var(--mc-text);
  padding: 6px 10px;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mc-episode-button:hover,
.mc-episode-button.is-active {
  border-color: var(--mc-red);
  background: var(--mc-red);
}

.mc-content {
  color: #dedee4;
}

.mc-content h1,
.mc-content h2,
.mc-content h3 {
  line-height: 1.25;
}

.mc-content a {
  color: #ff8088;
}

.mc-footer {
  border-top: 1px solid var(--mc-line);
  color: var(--mc-muted);
  padding: 24px 0;
  background: #070708;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1020px) {
  .mc-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .mc-category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .mc-sidebar-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .mc-header,
  .mc-single-hero,
  .mc-hero-inner {
    grid-template-columns: 1fr;
  }

  .mc-single-poster {
    width: min(270px, 72vw);
  }

  .mc-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .mc-episode-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mc-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .mc-container {
    width: min(100% - 20px, 1180px);
  }

  .mc-brand-name {
    font-size: 21px;
  }

  .mc-brand-logo {
    width: min(220px, 80vw);
  }

  .mc-search-form {
    grid-template-columns: 1fr;
  }

  .mc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mc-info-grid,
  .mc-acf-details,
  .mc-category-grid,
  .mc-episode-grid {
    grid-template-columns: 1fr;
  }

  .mc-acf-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* ============================================================
   24HD reference skin
   ============================================================ */
html {
  font-size: 14px;
}

body,
.mc-site,
.mc-main,
.elementor-location-header + .mc-main {
  background: #111;
  color: #ccc;
  font-family: "Sarabun", "Tahoma", Arial, sans-serif;
  line-height: 1.5;
}

a:hover {
  text-decoration: underline;
}

.mc-main {
  padding: 0 0 18px;
}

.site-header {
  background: #c00;
  border-bottom: 3px solid #900;
  padding: 8px 0;
}

.header-inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 10px;
}

.site-logo-text {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}

.logo-box {
  background: #111;
  border-radius: 4px;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
  padding: 6px 8px;
}

.logo-box span {
  color: #fc0;
}

.logo-sub {
  color: #fff;
  font-size: 11px;
  line-height: 1.35;
}

.header-search {
  display: flex;
  flex: 1;
  margin-left: auto;
  margin-right: 0;
  max-width: 448px;
  width: 100%;
}

.header-search input {
  background: #fff;
  border: 0;
  border-radius: 3px 0 0 3px;
  color: #333;
  flex: 1;
  font-size: 13px;
  min-height: 32px;
  min-width: 0;
  outline: 0;
  padding: 6px 10px;
}

.header-search button {
  background: #333;
  border: 0;
  border-radius: 0 3px 3px 0;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  padding: 6px 14px;
  white-space: nowrap;
}

.header-search button:hover {
  background: #555;
}

.main-nav {
  background: #222;
  border-bottom: 2px solid #c00;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 10px;
}

.main-nav li {
  margin: 0;
}

.main-nav a {
  color: #ddd;
  display: block;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 12px;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current-cat > a {
  background: #c00;
  color: #fff;
  text-decoration: none;
}

.page-wrapper {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  margin: 10px auto;
  max-width: 1200px;
  padding: 0 10px;
  width: 100%;
}

.elementor-section.page-wrapper {
  display: block;
}

.elementor-section.page-wrapper > .elementor-container,
.elementor-section.page-wrapper > .elementor-column-gap-default {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 10px;
  width: 100%;
}

.elementor-section.site-header {
  background: #c00;
  border-bottom: 3px solid #900;
  padding: 8px 0;
}

.elementor-section.site-header > .elementor-container {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 10px;
}

.elementor-section.site-header .elementor-column {
  flex: 0 0 auto !important;
  width: auto !important;
}

.elementor-section.site-header .elementor-column.elementor-col-65 {
  flex: 0 1 448px !important;
  margin-left: auto;
  max-width: 448px;
  width: 100% !important;
}

.elementor-section.site-header .elementor-widget-wrap {
  align-items: center;
  display: flex;
  justify-content: flex-start;
  padding: 0 !important;
}

.elementor-section.site-header .elementor-widget-mc24_header_search {
  margin-left: auto;
  margin-right: 0;
  max-width: 448px;
  width: 100%;
}

.elementor-location-header {
  background: #111;
  color: #ccc;
  display: block;
  min-height: 161px;
}

.elementor-location-header .elementor-section,
.elementor-location-header .elementor-container,
.elementor-location-header .elementor-column,
.elementor-location-header .elementor-widget-wrap {
  position: relative;
}

.elementor-location-header .elementor-container,
.elementor-location-header .elementor-widget-wrap {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.elementor-location-header .elementor-widget:not(:last-child) {
  margin-block-end: 0;
}

.elementor-location-header .elementor-element-e9fde6c,
.elementor-location-header .elementor-widget-image,
.elementor-location-header .elementor-widget-container {
  text-align: start;
  width: 100%;
}

.elementor-location-header .elementor-element-7770dc1,
.elementor-239 .elementor-element.elementor-element-7770dc1 {
  background: #f00;
  display: grid;
  min-height: 74px;
  width: 100%;
}

.elementor-location-header .elementor-element-7770dc1 > .e-con-inner,
.elementor-239 .elementor-element.elementor-element-7770dc1 > .e-con-inner {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(268px, 1fr) minmax(280px, 448px);
  margin: 0 auto;
  max-width: 1200px;
  min-height: 74px;
  padding: 8px 10px;
  width: 100%;
}

.elementor-location-header .elementor-widget-image a {
  display: inline-block;
}

.elementor-location-header img.attachment-large {
  aspect-ratio: 268 / 58;
  height: 58px;
  max-height: 58px;
  max-width: 268px;
  object-fit: contain;
  width: 268px;
}

.elementor-location-header .elementor-element-68a6789 {
  max-width: 448px;
  width: 100%;
}

.elementor-location-header .header-search {
  margin-left: 0;
}

.elementor-location-header .main-nav {
  min-height: 87px;
}

.elementor-location-header .main-nav ul {
  min-height: 85px;
}

.elementor-section.site-footer-ref > .elementor-container {
  display: block;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 10px;
}

.elementor-column.sidebar-left,
.elementor-column.sidebar-right {
  flex: 0 0 200px;
  width: 200px;
}

.elementor-column.main-content {
  flex: 1;
  min-width: 0;
}

.elementor-column.sidebar-left > .elementor-widget-wrap,
.elementor-column.sidebar-right > .elementor-widget-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.elementor-column.main-content > .elementor-widget-wrap {
  display: block;
}

.elementor-widget-mc24_ad_tall,
.elementor-widget-mc24_ad_sidebar,
.elementor-widget-mc24_category_widget,
.elementor-widget-mc24_genre_widget,
.elementor-widget-mc24_recent_widget,
.elementor-widget-mc24_series_widget {
  width: 100%;
}

.sidebar-left,
.sidebar-right {
  display: flex;
  flex: 0 0 200px;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.main-content {
  flex: 1;
  min-width: 0;
}

.ad-banner {
  align-items: center;
  background: #1e1e1e;
  border: 1px dashed #777;
  border-radius: 3px;
  color: #d0d0d0;
  display: flex;
  font-size: 11px;
  justify-content: center;
  text-align: center;
}

.ad-banner-wide {
  height: 100px;
  margin-bottom: 10px;
  width: 100%;
}

.ad-banner-tall {
  height: 250px;
  width: 200px;
}

.ad-banner-sidebar {
  height: 130px;
  width: 200px;
}

.widget,
.movie-detail-section,
.episode-selector,
.trailer-section,
.acf-detail-section,
.related-section {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 3px;
  overflow: hidden;
}

.widget + .widget,
.movie-detail-section,
.trailer-section,
.acf-detail-section,
.related-section {
  margin-top: 10px;
}

.widget-title,
.section-title,
.player-title-bar,
.trailer-title {
  background: #c00;
  border-radius: 3px;
  color: #fff;
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin: 0 0 8px;
  padding: 7px 12px;
}

.widget-title {
  border-radius: 0;
  font-size: 13px;
  margin-bottom: 0;
  text-transform: uppercase;
}

.section-title-centered {
  text-align: center;
}

.widget-body {
  padding: 6px 0;
}

.category-list,
.genre-list,
.series-list,
.recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-list li a,
.genre-list li a,
.series-list li a,
.recent-list li a {
  align-items: center;
  border-bottom: 1px solid #2a2a2a;
  color: #ccc;
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  padding: 4px 10px;
}

.category-list li:last-child a,
.genre-list li:last-child a,
.series-list li:last-child a,
.recent-list li:last-child a {
  border-bottom: 0;
}

.category-list li a:hover,
.genre-list li a:hover,
.series-list li a:hover,
.recent-list li a:hover {
  background: #2a2a2a;
  color: #fff;
  text-decoration: none;
}

.category-list .count,
.genre-list .count {
  background: #c00;
  border-radius: 10px;
  color: #fff;
  font-size: 10px;
  min-width: 28px;
  padding: 1px 5px;
  text-align: center;
}

.movies-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  margin-bottom: 12px;
}

.featured-row {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 12px;
}

.movie-card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  display: block;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

.movie-card:hover {
  border-color: #c00;
  transform: translateY(-2px);
  text-decoration: none;
}

.movie-card-poster {
  background: #111;
  overflow: hidden;
  padding-top: 150%;
  position: relative;
  width: 100%;
}

.movie-card-poster img,
.movie-card-poster .mc-card-placeholder {
  height: 100%;
  left: 0;
  object-fit: cover;
  position: absolute;
  top: 0;
  transition: transform 0.2s;
  width: 100%;
}

.movie-card:hover .movie-card-poster img {
  transform: scale(1.04);
}

.badge-rating,
.badge-quality,
.badge-audio,
.badge-new {
  border-radius: 2px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  padding: 2px 5px;
  position: absolute;
  z-index: 2;
}

.badge-rating {
  background: rgba(0, 0, 0, 0.75);
  color: #fc0;
  left: 4px;
  top: 4px;
}

.badge-quality {
  background: #c00;
  color: #fff;
  right: 4px;
  top: 4px;
}

.badge-quality.zoom {
  background: #f60;
}

.badge-audio {
  background: rgba(0, 0, 0, 0.75);
  bottom: 4px;
  color: #fff;
  left: 4px;
}

.badge-new {
  background: #006d00;
  bottom: 4px;
  color: #fff;
  right: 4px;
}

.movie-card-info {
  padding: 6px 7px;
}

.movie-card-title {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #ddd;
  display: -webkit-box;
  font-size: 11px;
  line-height: 1.4;
  overflow: hidden;
}

.movie-card-year {
  color: #888;
  font-size: 10px;
  margin-top: 3px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin: 14px 0;
}

.pagination .page-numbers {
  align-items: center;
  background: #222;
  border: 1px solid #444;
  border-radius: 3px;
  color: #ccc;
  display: inline-flex;
  font-size: 13px;
  height: 30px;
  justify-content: center;
  min-width: 30px;
  padding: 0 8px;
}

.pagination a:hover,
.pagination .current {
  background: #c00;
  border-color: #c00;
  color: #fff;
  text-decoration: none;
}

.player-title-bar {
  border-radius: 3px 3px 0 0;
  font-size: 15px;
  margin-bottom: 0;
  padding: 8px 14px;
}

.player-tabs {
  background: #1a1a1a;
  border: 1px solid #333;
  border-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 6px 8px;
}

.player-tab {
  background: #333;
  border-radius: 3px;
  color: #ccc;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
}

.player-tab.active,
.player-tab:hover {
  background: #c00;
  color: #fff;
  text-decoration: none;
}

.player-wrapper {
  background: #000;
  border: 1px solid #333;
  border-top: 0;
  margin-bottom: 10px;
  overflow: hidden;
  padding-top: 56.25%;
  position: relative;
  width: 100%;
}

.player-wrapper iframe,
.player-placeholder {
  border: 0;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.player-placeholder {
  align-items: center;
  border: 0;
  background: #0a0a0a;
  color: #888;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  padding: 0;
  position: absolute;
  text-align: center;
}

.player-placeholder::after {
  background: rgba(0, 0, 0, 0.55);
  content: "";
  inset: 0;
  position: absolute;
}

.player-placeholder-image {
  height: 100%;
  inset: 0;
  object-fit: cover;
  opacity: 0.72;
  position: absolute;
  width: 100%;
}

.player-placeholder .play-icon,
.player-placeholder span:not(.play-icon) {
  position: relative;
  z-index: 1;
}

button.player-placeholder {
  cursor: pointer;
  font: inherit;
}

button.player-placeholder:hover,
button.player-placeholder:focus-visible {
  background: #111;
  color: #fff;
  outline: 0;
}

.play-icon {
  color: #c00;
  font-size: 56px;
  line-height: 1;
}

.episode-selector {
  margin-bottom: 8px;
}

.episode-selector-header {
  background: #222;
  border-bottom: 1px solid #333;
  color: #fc0;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 12px;
}

.episode-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 8px;
}

.ep-btn {
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 3px;
  color: #ccc;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  padding: 5px 10px;
  white-space: nowrap;
}

.ep-btn:hover,
.ep-btn.active,
.ep-btn.is-active {
  background: #c00;
  border-color: #c00;
  color: #fff;
}

.movie-detail-section {
  padding: 10px;
}

.movie-detail-inner {
  display: flex;
  gap: 14px;
}

.movie-detail-poster {
  flex: 0 0 160px;
}

.movie-detail-poster img,
.movie-detail-poster .mc-card-placeholder {
  background: #111;
  border: 1px solid #333;
  border-radius: 3px;
  width: 160px;
}

.movie-detail-info {
  flex: 1;
  min-width: 0;
}

.movie-detail-title {
  color: #fff;
  font-size: 20px;
  line-height: 1.25;
  margin: 0 0 8px;
}

.movie-meta-row,
.movie-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 8px 0;
}

.meta-badge,
.genre-tag {
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 3px;
  color: #ddd;
  display: inline-flex;
  font-size: 11px;
  padding: 3px 7px;
}

.meta-badge.imdb {
  background: #fc0;
  border-color: #fc0;
  color: #111;
  font-weight: 700;
}

.meta-badge.quality-hd {
  background: #c00;
  border-color: #c00;
  color: #fff;
  font-weight: 700;
}

.genre-tag:hover,
.genre-tag:hover {
  background: #c00;
  border-color: #c00;
  color: #fff;
  text-decoration: none;
}

.movie-description {
  color: #ccc;
  font-size: 13px;
  line-height: 1.7;
  padding: 4px 0;
}

.trailer-section,
.acf-detail-section,
.related-section {
  padding: 0 0 10px;
}

.trailer-title {
  border-radius: 0;
  margin: 0;
}

.trailer-wrapper {
  background: #000;
  margin: 10px;
}

.trailer-wrapper iframe {
  border: 0;
  display: block;
  max-width: 100%;
  width: 100%;
}

.mc-acf-details {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 10px;
}

.mc-acf-group {
  background: #151515;
  border: 1px solid #333;
  border-radius: 3px;
  padding: 10px;
}

.mc-acf-group h3 {
  color: #fff;
  font-size: 13px;
  margin: 0 0 8px;
}

.mc-acf-row {
  border-top: 1px solid #2a2a2a;
  display: grid;
  gap: 8px;
  grid-template-columns: 120px minmax(0, 1fr);
  padding: 6px 0;
}

.mc-acf-row:first-child {
  border-top: 0;
}

.mc-acf-label {
  color: #999;
  font-size: 12px;
}

.mc-acf-value {
  color: #ddd;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.mc-acf-value a {
  color: #fc6;
}

.site-footer-ref {
  background: #090909;
  border-top: 2px solid #c00;
  color: #888;
  font-size: 12px;
  padding: 14px 0;
}

.footer-inner-ref {
  display: block;
  margin-bottom: 0;
  margin-top: 0;
}

@media (max-width: 980px) {
  .page-wrapper {
    display: block;
  }

  .sidebar-left,
  .sidebar-right {
    display: none;
  }

  .featured-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .header-inner,
  .header-search,
  .movie-detail-inner {
    display: block;
  }

  .header-search {
    margin: 8px 0 0;
    max-width: none;
  }

  .site-logo-text {
    display: flex;
  }

  .featured-row,
  .movies-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .movie-detail-poster {
    margin-bottom: 10px;
  }

  .mc-acf-details {
    grid-template-columns: 1fr;
  }

  .mc-acf-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* Comfortable reading typography */
html {
  font-size: 16px;
}

body,
.mc-site,
.mc-main,
.elementor-location-header + .mc-main {
  font-size: 16px;
  line-height: 1.65;
}

.logo-box {
  font-size: 30px;
}

.logo-sub {
  font-size: 13px;
  line-height: 1.45;
}

.header-search input,
.header-search button {
  font-size: 15px;
  min-height: 38px;
}

.main-nav a {
  font-size: 15px;
  line-height: 1.35;
  padding: 11px 14px;
}

.widget-title,
.section-title,
.player-title-bar,
.trailer-title {
  font-size: 17px;
  line-height: 1.45;
  padding: 9px 14px;
}

.widget-title {
  font-size: 15px;
}

.category-list li a,
.genre-list li a,
.series-list li a,
.recent-list li a {
  font-size: 14px;
  line-height: 1.45;
  padding: 7px 11px;
}

.category-list .count,
.genre-list .count {
  font-size: 12px;
  line-height: 1.2;
}

.movies-grid {
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.featured-row {
  gap: 10px;
}

.movie-card-info {
  padding: 8px 9px;
}

.movie-card-title {
  font-size: 14px;
  line-height: 1.45;
}

.movie-card-year {
  font-size: 12px;
}

.badge-rating,
.badge-quality,
.badge-audio,
.badge-new {
  font-size: 11px;
  line-height: 1.35;
  padding: 3px 6px;
}

.pagination .page-numbers {
  font-size: 14px;
  height: 34px;
  min-width: 34px;
}

.player-title-bar {
  font-size: 19px;
}

.player-tab {
  font-size: 14px;
  line-height: 1.35;
  padding: 7px 16px;
}

.episode-selector-header {
  font-size: 15px;
  line-height: 1.45;
  padding: 9px 14px;
}

.ep-btn {
  font-size: 13px;
  line-height: 1.35;
  padding: 7px 12px;
}

.player-placeholder {
  font-size: 16px;
}

.movie-detail-section {
  padding: 14px;
}

.movie-detail-title {
  font-size: 24px;
  line-height: 1.35;
}

.meta-badge,
.genre-tag {
  font-size: 13px;
  line-height: 1.35;
  padding: 4px 8px;
}

.movie-description {
  font-size: 15px;
  line-height: 1.8;
}

.mc-acf-group h3 {
  font-size: 15px;
}

.mc-acf-row {
  grid-template-columns: 140px minmax(0, 1fr);
  padding: 8px 0;
}

.mc-acf-label,
.mc-acf-value {
  font-size: 14px;
  line-height: 1.5;
}

.site-footer-ref {
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 680px) {
  .movies-grid,
  .featured-row {
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main-nav a {
    font-size: 14px;
    padding: 10px 12px;
  }

  .movie-detail-title {
    font-size: 22px;
  }

  .mc-acf-row {
    grid-template-columns: 1fr;
  }
}

/* Responsive Elementor layout fixes */
html,
body {
  overflow-x: hidden;
}

.elementor-section.page-wrapper > .elementor-container {
  flex-wrap: nowrap;
}

@media (max-width: 1100px) {
  .elementor-section.page-wrapper > .elementor-container,
  .page-wrapper {
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }

  .elementor-column.sidebar-left,
  .elementor-column.sidebar-right,
  .sidebar-left,
  .sidebar-right {
    flex: 0 0 180px !important;
    width: 180px !important;
  }

  .ad-banner-tall,
  .ad-banner-sidebar {
    max-width: 180px;
    width: 100%;
  }

  .movies-grid {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  }
}

@media (max-width: 980px) {
  .elementor-section.page-wrapper > .elementor-container,
  .elementor-section.page-wrapper > .elementor-column-gap-default,
  .page-wrapper {
    display: block !important;
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
    width: 100%;
  }

  .elementor-column.sidebar-left,
  .elementor-column.sidebar-right,
  .sidebar-left,
  .sidebar-right {
    display: none !important;
  }

  .elementor-column.main-content,
  .main-content {
    display: block !important;
    flex: none !important;
    max-width: none !important;
    width: 100% !important;
  }

  .elementor-column.main-content > .elementor-widget-wrap {
    display: block !important;
    width: 100%;
  }

  .featured-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .movies-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

@media (max-width: 760px) {
  .elementor-location-header {
    min-height: 183px;
  }

  .elementor-location-header .elementor-element-7770dc1 > .e-con-inner,
  .elementor-239 .elementor-element.elementor-element-7770dc1 > .e-con-inner {
    display: block;
    min-height: 123px;
    padding: 12px;
  }

  .elementor-location-header .elementor-widget-image {
    text-align: center;
  }

  .elementor-location-header .main-nav {
    min-height: 60px;
  }

  .elementor-location-header .main-nav ul {
    min-height: 58px;
  }

  .elementor-section.site-header > .elementor-container {
    display: block !important;
    padding-left: 12px;
    padding-right: 12px;
  }

  .elementor-section.site-header .elementor-column {
    display: block !important;
    width: 100% !important;
  }

  .elementor-section.site-header .elementor-widget-wrap {
    display: block !important;
  }

  .header-inner,
  .movie-detail-inner {
    display: block;
  }

  .site-logo-text {
    justify-content: center;
    margin-bottom: 10px;
  }

  .header-search {
    display: flex;
    margin: 10px 0 0;
    max-width: none;
    width: 100%;
  }

  .main-nav ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-left: 12px;
    padding-right: 12px;
    scrollbar-width: thin;
  }

  .main-nav a {
    font-size: 14px;
    padding: 10px 12px;
  }

  .featured-row,
  .movies-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .movie-detail-poster {
    flex: none;
    margin: 0 auto 14px;
    width: min(220px, 70vw);
  }

  .movie-detail-poster img,
  .movie-detail-poster .mc-card-placeholder {
    width: 100%;
  }

  .mc-acf-details {
    grid-template-columns: 1fr;
  }

  .mc-acf-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

@media (max-width: 420px) {
  .elementor-section.page-wrapper > .elementor-container,
  .elementor-section.page-wrapper > .elementor-column-gap-default,
  .page-wrapper {
    padding-left: 8px;
    padding-right: 8px;
  }

  .logo-box {
    font-size: 26px;
  }

  .logo-sub {
    font-size: 12px;
  }

  .header-search input,
  .header-search button {
    font-size: 14px;
  }

  .widget-title,
  .section-title,
  .trailer-title {
    font-size: 16px;
  }

  .player-title-bar {
    font-size: 17px;
  }

  .movies-grid,
  .featured-row {
    gap: 8px;
  }

  .movie-card-title {
    font-size: 13px;
  }

  .episode-buttons {
    gap: 6px;
  }

  .ep-btn {
    flex: 1 1 calc(50% - 6px);
    text-align: center;
  }
}
