/* Multisites unique overrides — domain accent + readable UI */
:root {
  --copper: #ff8f5a;
  --copper-2: #ff5d3d;
  --copper-glow: color-mix(in srgb, #ff8f5a 18%, transparent);
  --ms-accent: #ff8f5a;
  --text: #f2f4f8;
  --text-2: #c5cddb;
  --text-3: #8b95a8;
}
body, body[class*="_ae"], html body {
  color: #f2f4f8 !important;
}
h1, h2, h3, h4, h5, h6,
[class*="_ae-h1"], [class*="_ae-h2"], [class*="_ae-full__title"],
[class*="_ae-card__title"], [class*="_ae-lead"] {
  color: #f2f4f8 !important;
}
a, [class*="_ae-nav__a"], [class*="_ae-card__title"] a {
  color: #e8edf7 !important;
}
a:hover, a:focus {
  color: #ff8f5a !important;
}
/* primary / copper buttons — dark readable text */
[class*="ae-btn--primary"],
[class*="ae-full__watch"],
[class*="ae-top__search-btn"],
[class*="ae-card__play"],
[class*="ae-card__badge--q"],
[class*="ae-brand__glyph"],
[class*="ae-searchbox"] input[type="button"],
[class*="ae-searchbox"] input[type="submit"],
[class*="ae-searchbox"] [class*="bbcodes"],
input[name="dosearch"], input#dosearch, input[id*="dosearch"] {
  color: #0a0c12 !important;
  -webkit-text-fill-color: #0a0c12 !important;
  background: linear-gradient(135deg, #ff8f5a, #ff5d3d) !important;
}
input[name="dofullsearch"], input#dofullsearch, input[id*="dofullsearch"],
[class*="ae-searchbox"] input[type="button"] + input[type="button"] {
  background: #1b2030 !important;
  color: #f2f4f8 !important;
  -webkit-text-fill-color: #f2f4f8 !important;
  border: 1px solid rgba(255,255,255,.14) !important;
}
[class*="ae-brand__name"] {
  background: linear-gradient(100deg, #fff 20%, #ff8f5a 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* === player tabs style === */
[class*="ae-player__tabs"],
[class*="player-tabs"] {
  display: flex !important;
  gap: 8px !important;
  padding: 10px !important;
  background: #11141c !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
}
[class*="ae-player__tabs"] button,
[class*="player-tabs"] button {
  border: 0 !important;
  background: transparent !important;
  color: #a7b0c0 !important;
  -webkit-text-fill-color: #a7b0c0 !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  padding: 10px 16px !important;
  border-radius: 999px !important;
  cursor: pointer !important;
}
[class*="ae-player__tabs"] button.is-active,
[class*="ae-player__tabs"] button[class*="is-active"],
[class*="player-tabs"] button.is-active,
[class*="player-tabs"] button[class*="is-active"] {
  background: rgba(232,165,75,.18) !important;
  color: var(--copper, #e8a54b) !important;
  -webkit-text-fill-color: var(--copper, #e8a54b) !important;
}
[class*="ae-player__frame"] {
  position: relative !important;
  width: 100% !important;
  padding-top: 56.25% !important;
  background: #000 !important;
}
[class*="ae-player__frame"] iframe {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
}
[class*="ae-player__frame"][hidden],
[class*="player-frame"][hidden] {
  display: none !important;
}

/* === search / DLE buttons readable === */
[class*="ae-searchbox"] input[type="button"],
[class*="ae-searchbox"] input[type="submit"],
[class*="ae-searchbox"] [class*="bbcodes"],
[class*="ae-searchbox"] button,
input.bbcodes,
input[type="button"].bbcodes,
input[name="dosearch"],
input#dosearch,
input[id*="dosearch"] {
  color: #0a0c12 !important;
  -webkit-text-fill-color: #0a0c12 !important;
  background: linear-gradient(135deg, var(--copper, #e8a54b), var(--copper-2, #ff6b3d)) !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  min-height: 42px !important;
  padding: 0 18px !important;
  cursor: pointer !important;
}
input[name="dofullsearch"],
input#dofullsearch,
input[id*="dofullsearch"],
[class*="ae-searchbox"] input[type="button"] + input[type="button"] {
  background: #1b2030 !important;
  color: #f2f4f8 !important;
  -webkit-text-fill-color: #f2f4f8 !important;
  border: 1px solid rgba(255,255,255,.14) !important;
}

/* html unique fingerprint */
.x93011d_ms_ghost{display:none!important;position:absolute;width:0;height:0;overflow:hidden}
html[data-ms-site="x93011d"]{--ms-seed:b63c0b;}

/* === related / catalog multi-column grid (prefix-safe) v2 === */
[class*="ae-catalog"],
[class*="ae-grid"] {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
  gap: 18px 12px !important;
  justify-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  align-items: start !important;
  box-sizing: border-box !important;
}
/* Cards must NEVER span full row (SkinUniquify prefix breaks bare :not(.ae-card)) */
[class*="ae-catalog"] > [class*="ae-card"],
[class*="ae-catalog"] > article[class*="ae-card"],
[class*="ae-grid"] > [class*="ae-card"],
[class*="ae-grid"] > article[class*="ae-card"],
[class*="ae-catalog"] > [class*="ae-slide"],
[class*="ae-grid"] > [class*="ae-slide"],
[class*="ae-catalog"] > a[class*="ae-card"],
[class*="ae-grid"] > a[class*="ae-card"],
[class*="ae-catalog"] > article,
[class*="ae-grid"] > article {
  grid-column: auto !important;
  grid-row: auto !important;
  width: 100% !important;
  max-width: 200px !important;
  justify-self: center !important;
  align-self: start !important;
  flex: 0 0 auto !important;
  display: block !important;
  float: none !important;
  clear: none !important;
}
/* only true non-cards span full width */
[class*="ae-catalog"] > :not(article):not([class*="ae-card"]):not([class*="ae-slide"]),
[class*="ae-grid"] > :not(article):not([class*="ae-card"]):not([class*="ae-slide"]) {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: 100% !important;
  justify-self: stretch !important;
}
article[class*="ae-card"],
[class*="ae-catalog"] > [class*="ae-card"],
[class*="ae-grid"] > [class*="ae-card"] {
  width: 100% !important;
  max-width: 200px !important;
}
[class*="ae-card__poster"] {
  width: 100% !important;
  aspect-ratio: 2 / 3 !important;
  height: auto !important;
  max-width: 100% !important;
}
[class*="ae-card__poster"] img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
@media (min-width: 1280px) {
  [class*="ae-catalog"],
  [class*="ae-grid"] {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 980px) and (max-width: 1279px) {
  [class*="ae-catalog"],
  [class*="ae-grid"] {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 720px) and (max-width: 979px) {
  [class*="ae-catalog"],
  [class*="ae-grid"] {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 719px) {
  [class*="ae-catalog"],
  [class*="ae-grid"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  article[class*="ae-card"],
  [class*="ae-catalog"] > [class*="ae-card"],
  [class*="ae-grid"] > [class*="ae-card"] {
    max-width: none !important;
  }
}

