/* =========================================================
   KissCartoonGuide — Homepage
   Clean presentation layer for Page 69 / front page.
   No homepage JavaScript is required for the layout.
   ========================================================= */

/* ---------- Design tokens ---------- */
body.home .mtw-homepage{
  --mtw-bg:#11151a;
  --mtw-surface:#191e24;
  --mtw-surface-2:#1d2228;
  --mtw-border:rgba(255,255,255,.10);
  --mtw-border-strong:rgba(255,255,255,.18);
  --mtw-text:#ffffff;
  --mtw-copy:#bfc3c8;
  --mtw-muted:#898f96;
  --mtw-accent:#df301c;
  --mtw-accent-hover:#f0442f;
  box-sizing:border-box;
  background:var(--mtw-bg)!important;
  color:var(--mtw-text)!important;
}

body.home .mtw-homepage *,
body.home .mtw-homepage *::before,
body.home .mtw-homepage *::after{box-sizing:border-box}

.home #primary .mtw-homepage,
.home #primary .mtw-homepage .mtw-home-section,
.home #primary .mtw-homepage .mtw-home-hero{color:#f2f2f2!important}

/* ---------- General container / sections ---------- */
body.home #primary .mtw-homepage{
  background:#11151a!important;
  color:#f2f2f2!important;
}

body.home .mtw-home-container{
  width:min(1180px,calc(100% - 40px));
  margin-inline:auto;
}

body.home .mtw-home-section{
  padding:88px 0;
  background:#11151a;
}

body.home .mtw-home-section-heading{max-width:820px}

body.home .mtw-home-small-label,
body.home .mtw-home-kicker{
  color:#df301c!important;
  font-size:11px;
  line-height:1.2;
  font-weight:800;
  letter-spacing:.16em;
  text-transform:uppercase;
}

body.home .mtw-home-section h2{
  margin:10px 0 0;
  color:#fff!important;
  font-size:clamp(28px,4vw,44px);
  line-height:1.08;
  font-weight:800;
  letter-spacing:-.025em;
}

body.home .mtw-home-description{
  max-width:760px;
  margin:14px 0 0;
  color:#bfc3c8!important;
  font-size:15px;
  line-height:1.7;
}

/* ---------- Hero ---------- */
body.home .mtw-home-hero{
  position:relative;
  min-height:660px;
  display:flex;
  align-items:center;
  overflow:hidden;
  isolation:isolate;
  background:#0d1115;
}

body.home .mtw-home-hero-bg{
  position:absolute;
  inset:0;
  z-index:-3;
}

body.home .mtw-home-hero-bg::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,rgba(0,0,0,.93) 0%,rgba(0,0,0,.78) 42%,rgba(0,0,0,.42) 72%,rgba(0,0,0,.72) 100%),
    linear-gradient(180deg,rgba(0,0,0,.28),rgba(0,0,0,.74));
}

body.home .mtw-home-hero-bg img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}

body.home .mtw-home-hero-content{
  position:relative;
  padding-top:90px;
  padding-bottom:70px;
}

body.home .mtw-home-kicker{margin-bottom:16px}

body.home .mtw-home-hero h1{
  max-width:900px;
  margin:0;
  color:#fff!important;
  font-size:clamp(42px,6.2vw,78px);
  line-height:.98;
  font-weight:850;
  letter-spacing:-.045em;
  text-wrap:balance;
}

body.home .mtw-home-hero h1 span,
body.home .mtw-home-hero h1 span:first-child{
  color:#df301c!important;
  -webkit-text-fill-color:#df301c!important;
}

body.home .mtw-home-hero-desc{
  max-width:700px;
  margin:24px 0 0;
  color:#e1e2e4!important;
  font-size:17px;
  line-height:1.7;
}

/* ---------- Search ---------- */
body.home .mtw-home-search{
  display:flex;
  align-items:stretch;
  width:min(680px,100%);
  min-height:56px;
  margin-top:30px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.25)!important;
  border-radius:14px;
  background:rgba(8,10,12,.94)!important;
  box-shadow:0 14px 38px rgba(0,0,0,.35);
}

body.home .mtw-home-search:focus-within{
  border-color:#ff5a4a!important;
  box-shadow:0 0 0 3px rgba(255,90,74,.18),0 14px 38px rgba(0,0,0,.35);
}

body.home .mtw-home-search input{
  flex:1 1 auto;
  min-width:0;
  min-height:54px;
  margin:0!important;
  padding:0 18px;
  border:0!important;
  outline:0!important;
  background:#080a0c!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  caret-color:#ff6b5b;
  font-size:15px;
  font-weight:600;
  box-shadow:none!important;
}

body.home .mtw-home-search input::placeholder{
  color:#c5c9ce!important;
  opacity:1!important;
  -webkit-text-fill-color:#c5c9ce!important;
}

body.home .mtw-home-search button{
  flex:0 0 auto;
  min-width:132px;
  min-height:54px;
  margin:0!important;
  padding:0 20px;
  border:0!important;
  border-left:1px solid rgba(255,255,255,.12)!important;
  border-radius:0!important;
  background:#df301c!important;
  color:#fff!important;
  font-size:12px;
  font-weight:900;
  letter-spacing:.05em;
  cursor:pointer;
  box-shadow:none!important;
}

body.home .mtw-home-search button:hover,
body.home .mtw-home-search button:focus-visible{background:#f0442f!important;color:#fff!important}

body.home .mtw-home-hero-bottom{
  display:flex;
  justify-content:space-between;
  gap:20px;
  max-width:680px;
  margin-top:34px;
  color:rgba(255,255,255,.64);
  font-size:10px;
  font-weight:700;
  letter-spacing:.15em;
  text-transform:uppercase;
}

/* ---------- Movies ---------- */
body.home .mtw-home-movie-grid{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:18px;
  margin-top:30px;
}

body.home .mtw-home-movie-card{
  min-width:0;
}

body.home .mtw-home-movie-card>a{
  display:block;
  color:#fff!important;
  text-decoration:none!important;
}

body.home .mtw-home-movie-poster{
  position:relative;
  overflow:hidden;
  aspect-ratio:2/3;
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  background:#181d22;
}

body.home .mtw-home-movie-image{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .28s ease;
}

body.home .mtw-home-movie-card>a:hover .mtw-home-movie-image{transform:scale(1.035)}

body.home .mtw-home-movie-placeholder{
  display:grid;
  place-items:center;
  width:100%;
  height:100%;
  color:#666;
  font-size:28px;
  font-weight:800;
}

body.home .mtw-home-movie-info{padding:12px 2px 0}

body.home .mtw-home-movie-title{
  margin:0;
  color:#fff!important;
  font-size:15px;
  line-height:1.3;
  font-weight:800;
}

body.home .mtw-home-movie-meta{
  margin-top:6px;
  color:#8f949a!important;
  font-size:11px;
  line-height:1.45;
}

body.home .mtw-home-view-all{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:30px;
  color:#fff!important;
  font-size:13px;
  font-weight:800;
  text-decoration:none!important;
}

body.home .mtw-home-view-all:hover{color:#df301c!important}

/* ---------- Category cards: image-backed ---------- */
body.home .mtw-category-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  margin-top:30px;
}

body.home .mtw-category-card{
  position:relative;
  display:block;
  min-height:280px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  background:#191e24;
  isolation:isolate;
  color:#fff!important;
  text-decoration:none!important;
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}

body.home .mtw-category-card__image,
body.home .mtw-category-card__overlay{
  position:absolute;
  inset:0;
}

body.home .mtw-category-card__image{z-index:-3}
body.home .mtw-category-card__image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .45s ease}

body.home .mtw-category-card__overlay{
  z-index:-2;
  background:linear-gradient(180deg,rgba(0,0,0,.12) 0%,rgba(0,0,0,.50) 40%,rgba(0,0,0,.94) 100%);
}

body.home .mtw-category-card__content{
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  min-height:280px;
  padding:28px;
}

body.home .mtw-category-card__label{
  margin-bottom:9px;
  color:#fff!important;
  font-size:10px;
  font-weight:900;
  letter-spacing:.16em;
  text-transform:uppercase;
}

body.home .mtw-category-card__title{
  display:block;
  color:#fff!important;
  font-size:clamp(25px,3vw,36px);
  line-height:1.04;
  font-weight:850;
  letter-spacing:-.025em;
}

body.home .mtw-category-card__description{
  display:block;
  max-width:580px;
  margin-top:10px;
  color:#e6e6e6!important;
  font-size:13px;
  line-height:1.6;
}

body.home .mtw-category-card__cta{
  display:inline-flex;
  align-items:center;
  gap:7px;
  width:max-content;
  margin-top:18px;
  padding:9px 13px;
  border:1px solid rgba(255,255,255,.45);
  border-radius:999px;
  background:rgba(0,0,0,.48);
  color:#fff!important;
  font-size:11px;
  font-weight:900;
}

body.home .mtw-category-card:hover{
  transform:translateY(-4px);
  border-color:rgba(255,255,255,.24);
  box-shadow:0 18px 38px rgba(0,0,0,.28);
}

body.home .mtw-category-card:hover .mtw-category-card__image img{transform:scale(1.045)}

/* ---------- Genres ---------- */
body.home .mtw-home-genre-grid{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:9px;
  margin-top:24px;
}

body.home .mtw-home-genre-button{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-width:0;
  min-height:46px;
  padding:0 12px;
  border:1px solid #33383d;
  border-radius:10px;
  background:#191e24;
  color:#f5f5f5!important;
  font-size:13px;
  font-weight:800;
  line-height:1.1;
  text-decoration:none!important;
  transition:transform .16s ease,border-color .16s ease,background .16s ease;
}

body.home .mtw-home-genre-button span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.home .mtw-home-genre-arrow{flex:0 0 auto;margin-left:7px;color:#bfc3c8;font-size:14px}
body.home .mtw-home-genre-button:hover{transform:translateY(-1px);border-color:#676c72;background:#202020;color:#fff!important}

/* ---------- Reviews & Guides ---------- */
body.home .mtw-home-link-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
  margin-top:30px;
}

body.home .mtw-home-link-card{
  position:relative;
  display:flex;
  flex-direction:column;
  min-width:0;
  min-height:180px;
  padding:22px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  background:#191e24;
  color:#fff!important;
  text-decoration:none!important;
  transition:transform .18s ease,border-color .18s ease,background .18s ease;
}

body.home .mtw-home-link-card::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:3px;
  background:#df301c;
}

body.home .mtw-home-link-card:hover{transform:translateY(-3px);border-color:rgba(223,48,28,.50);background:#191919}

body.home .mtw-home-link-card__label{
  color:#df301c!important;
  font-size:10px;
  font-weight:900;
  letter-spacing:.16em;
  text-transform:uppercase;
}

body.home .mtw-home-link-card__title{
  display:block;
  margin-top:10px;
  color:#fff!important;
  font-size:clamp(20px,2vw,27px);
  line-height:1.08;
  font-weight:850;
}

body.home .mtw-home-link-card__description{
  display:block;
  max-width:550px;
  margin-top:11px;
  color:#bfc3c8!important;
  font-size:14px;
  line-height:1.65;
}

body.home .mtw-home-link-card__cta{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:auto;
  padding-top:24px;
  color:#fff!important;
  font-size:12px;
  font-weight:900;
}

/* ---------- Movie Discovery: text-only ---------- */
body.home .mtw-home-discovery{background:#0b0b0b}

body.home .mtw-discovery-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
  margin-top:30px;
}

body.home .mtw-discovery-card{
  position:relative;
  display:flex;
  flex-direction:column;
  min-width:0;
  min-height:180px;
  padding:22px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.09);
  border-radius:14px;
  background:#191e24;
  color:#fff!important;
  text-decoration:none!important;
  transition:transform .18s ease,border-color .18s ease,background .18s ease;
}

body.home .mtw-discovery-card::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:3px;
  background:#2a2a2a;
}

body.home .mtw-discovery-card--good::before{background:#df301c}
body.home .mtw-discovery-card--new::before{background:#7b7f85}
body.home .mtw-discovery-card--reviews::before{background:#a4554d}
body.home .mtw-discovery-card--guides::before{background:#59636d}

body.home .mtw-discovery-card:hover{transform:translateY(-3px);border-color:rgba(255,255,255,.20);background:#191919}

body.home .mtw-discovery-card__eyebrow{
  color:#df301c!important;
  font-size:10px;
  font-weight:900;
  letter-spacing:.16em;
  text-transform:uppercase;
}

body.home .mtw-discovery-card__title{
  display:block;
  margin-top:10px;
  color:#fff!important;
  font-size:clamp(20px,2vw,27px);
  line-height:1.06;
  font-weight:850;
  letter-spacing:-.025em;
}

body.home .mtw-discovery-card__description{
  display:block;
  max-width:560px;
  margin-top:11px;
  color:#bfc3c8!important;
  font-size:14px;
  line-height:1.65;
}

body.home .mtw-discovery-card__cta{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:auto;
  padding-top:24px;
  color:#fff!important;
  font-size:12px;
  font-weight:900;
}

/* ---------- WordPress editor content ---------- */
body.home .mtw-home-editor-content{
  padding-top:72px;
  padding-bottom:80px;
}
body.home .mtw-home-editor-content-inner{
  max-width:860px;
  margin:0 auto;
  color:#bfc3c8;
  font-size:16px;
  line-height:1.8;
}
body.home .mtw-home-editor-content-inner h2,
body.home .mtw-home-editor-content-inner h3,
body.home .mtw-home-editor-content-inner h4{
  color:#fff!important;
}
body.home .mtw-home-editor-content-inner a{
  color:#df301c!important;
}
body.home .mtw-home-editor-content-inner img{
  max-width:100%;
  height:auto;
}

/* ---------- Accessibility ---------- */
body.home .mtw-homepage a:focus-visible,
body.home .mtw-homepage button:focus-visible,
body.home .mtw-homepage input:focus-visible{
  outline:3px solid rgba(255,255,255,.92)!important;
  outline-offset:3px;
}

/* ---------- Responsive ---------- */
@media (min-width:768px) and (max-width:1100px){
  body.home .mtw-home-movie-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  body.home .mtw-home-genre-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
  body.home .mtw-home-link-grid,
  body.home .mtw-discovery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media (max-width:767px){
  body.home .mtw-home-container{width:min(100% - 28px,1180px)}
  body.home .mtw-home-section{padding:64px 0}

  body.home .mtw-home-hero{min-height:590px}
  body.home .mtw-home-hero-content{padding-top:72px;padding-bottom:58px}
  body.home .mtw-home-hero h1{font-size:clamp(38px,12vw,58px)}
  body.home .mtw-home-hero-desc{font-size:15px}
  body.home .mtw-home-hero-bottom{margin-top:26px;font-size:9px}

  body.home .mtw-home-search{flex-direction:column;border-radius:13px}
  body.home .mtw-home-search input{min-height:52px}
  body.home .mtw-home-search button{width:100%;min-height:48px;border-left:0!important;border-top:1px solid rgba(255,255,255,.12)!important}

  body.home .mtw-home-movie-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}

  body.home .mtw-category-grid{grid-template-columns:1fr;gap:14px}

  body.home .mtw-home-link-grid,
  body.home .mtw-discovery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}

  body.home .mtw-category-card,
  body.home .mtw-category-card__content{min-height:235px}
  body.home .mtw-category-card__content{padding:23px}

  body.home .mtw-home-genre-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  body.home .mtw-home-genre-button{min-height:44px;font-size:12px;padding:0 10px}

  body.home .mtw-home-link-card,
  body.home .mtw-discovery-card{min-height:150px;padding:16px}
  body.home .mtw-home-link-card__title,
  body.home .mtw-discovery-card__title{font-size:19px}
  body.home .mtw-home-link-card__description,
  body.home .mtw-discovery-card__description{font-size:12px;line-height:1.5}
  body.home .mtw-home-link-card__cta,
  body.home .mtw-discovery-card__cta{padding-top:16px;font-size:11px}
}

@media (max-width:430px){
  body.home .mtw-home-container{width:calc(100% - 22px)}
  body.home .mtw-home-section{padding:56px 0}
  body.home .mtw-home-hero h1{font-size:38px}
  body.home .mtw-home-hero-bottom{gap:12px;font-size:8px}
  body.home .mtw-home-movie-grid{gap:12px}
}

@media (prefers-reduced-motion:reduce){
  body.home .mtw-home-movie-image,
  body.home .mtw-category-card__image img,
  body.home .mtw-category-card,
  body.home .mtw-home-link-card,
  body.home .mtw-discovery-card,
  body.home .mtw-home-genre-button{transition:none!important}
}


/* =========================================================
   HOMEPAGE BODY-ONLY GUARDRAILS
   Header and footer are intentionally untouched.
   ========================================================= */
.home #primary .mtw-homepage{
  display:block;
  width:100%;
  margin:0;
  padding:0;
}

.home #primary .mtw-homepage img{
  max-width:100%;
}

/* WordPress editor content lives after Movie Discovery. */
.home #primary .mtw-homepage .mtw-home-editor-content{
  width:100%;
}

/* ========================================================================== */
/* KissCartoonGuide — softer dark homepage palette                               */
/* Scoped to the final homepage body hook only. Header/footer are untouched. */
/* ========================================================================== */
body.home .mtw-homepage.mtw-homepage--soft-dark{
  --mtw-bg:#15191e;
  --mtw-surface:#1b2026;
  --mtw-surface-2:#20262d;
  --mtw-border:rgba(255,255,255,.11);
  --mtw-border-strong:rgba(255,255,255,.18);
  --mtw-text:#f4f2ee;
  --mtw-copy:#cbd0d5;
  --mtw-muted:#969da5;
  background:var(--mtw-bg)!important;
  color:var(--mtw-text)!important;
}

body.home #primary .mtw-homepage.mtw-homepage--soft-dark,
body.home #primary .mtw-homepage.mtw-homepage--soft-dark .mtw-home-section,
body.home #primary .mtw-homepage.mtw-homepage--soft-dark .mtw-home-discovery{
  background:var(--mtw-bg)!important;
}

body.home .mtw-homepage.mtw-homepage--soft-dark .mtw-home-hero{
  background:#0f1216;
}

body.home .mtw-homepage.mtw-homepage--soft-dark .mtw-home-movie-poster,
body.home .mtw-homepage.mtw-homepage--soft-dark .mtw-home-link-card,
body.home .mtw-homepage.mtw-homepage--soft-dark .mtw-discovery-card{
  background:var(--mtw-surface)!important;
}

body.home .mtw-homepage.mtw-homepage--soft-dark .mtw-home-movie-poster:hover,
body.home .mtw-homepage.mtw-homepage--soft-dark .mtw-home-link-card:hover,
body.home .mtw-homepage.mtw-homepage--soft-dark .mtw-discovery-card:hover{
  background:var(--mtw-surface-2)!important;
}


/* v41.0.3 — final contrast pass */
body.home .mtw-homepage .mtw-home-kicker,
body.home .mtw-homepage .mtw-home-small-label,
body.home .mtw-homepage .mtw-category-card__label,
body.home .mtw-homepage .mtw-discovery-card__eyebrow{
  color:#ffb14e!important;
  text-shadow:0 1px 3px rgba(0,0,0,.8);
}
body.home .mtw-homepage .mtw-home-hero-desc,
body.home .mtw-homepage .mtw-home-description,
body.home .mtw-homepage .mtw-category-card__description,
body.home .mtw-homepage .mtw-discovery-card__description{
  color:#eef1f4!important;
}
body.home .mtw-homepage .mtw-home-section:not(.mtw-home-hero){
  content-visibility:auto;
  contain-intrinsic-size:700px;
}
