/* Thiraimax — modern homepage + compact episode title (inc-tx9.php, home-tx9.php, single-tx8.php). 1 Nov 2026. */

/* =================== Homepage banner =================== */
body.tx9-home .tx9-hero { min-height: clamp(520px, 78vh, 720px); }
body.tx9-home .tx9-slide { display: block; padding: 0; gap: 0; }
/* The artwork sits on the right (it often has the show's title printed on it); the copy sits on dark on the left. */
body.tx9-home .tx9-slide-bg {
  position: absolute; top: 0; right: 0; left: 32%; z-index: -2; width: 68%; height: 100%;
  object-fit: cover; object-position: center 30%; display: block;
  transform: scale(1.04); transition: transform 8s ease-out;
}
body.tx9-home .tx9-slide.is-active .tx9-slide-bg { transform: scale(1); }
body.tx9-home .tx9-slide::after {
  background:
    linear-gradient(90deg, var(--tx2-bg) 0%, var(--tx2-bg) 32%, rgba(11,11,16,.75) 42%, rgba(11,11,16,.15) 62%, rgba(11,11,16,0) 75%),
    linear-gradient(0deg, var(--tx2-bg) 0%, rgba(11,11,16,.55) 22%, rgba(11,11,16,0) 50%);
}
body.tx9-home .tx9-hero-copy { max-width: min(600px, 42vw); }
body.tx9-home .tx9-hero-copy {
  position: absolute; left: var(--tx2-gutter); bottom: 132px; max-width: 600px; z-index: 1;
}
body.tx9-home .tx9-hero-kicker {
  display: inline-flex; align-items: center; gap: 8px; color: #fff;
  font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
body.tx9-home .tx9-hero-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tx2-accent); box-shadow: 0 0 0 4px rgba(230,57,80,.3); }
body.tx9-home .tx9-hero-title {
  margin: 14px 0 14px; color: #fff; font-size: clamp(38px, 6vw, 76px); line-height: 1; font-weight: 800;
  letter-spacing: -.035em; text-wrap: balance; text-shadow: 0 4px 30px rgba(0,0,0,.45);
}
body.tx9-home .tx9-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 24px; color: #dcdce4; font-size: 15px; font-weight: 600; }
body.tx9-home .tx9-hero-meta > span + span:not(.tx9-hd):not(.tx9-sched)::before { content: "•"; margin-right: 10px; color: #8a8a9a; }
.tx9-hd { font-size: 11px; font-weight: 800; letter-spacing: .06em; border: 1px solid rgba(255,255,255,.4); border-radius: 5px; padding: 2px 6px; }
body.tx9-home .tx9-sched { background: rgba(242,181,68,.16); color: #f2b544; border-radius: 999px; padding: 4px 11px; font-size: 13px; font-weight: 800; }
body.tx9-home .tx9-hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }

body.tx9-home .tx9-thumbs { left: auto; right: var(--tx2-gutter); bottom: 44px; gap: 10px; }
body.tx9-home .tx9-thumb {
  width: 120px; height: 68px; border-radius: 10px; overflow: hidden; padding: 0; background: #000;
  border: 2px solid transparent; opacity: .55; transition: opacity .2s, border-color .2s, transform .2s;
}
body.tx9-home .tx9-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.tx9-home .tx9-thumb:hover { opacity: .85; }
body.tx9-home .tx9-thumb.is-active { width: 120px; opacity: 1; border-color: #fff; transform: translateY(-4px); background: #000; }
body.tx9-home .tx9-thumb:focus-visible { outline: 2px solid var(--tx2-accent); outline-offset: 3px; }

/* =================== Rows =================== */
body.tx9-home .tx2-row { margin-top: 44px; }
body.tx9-home .tx9-hero + .tx2-row, body.tx9-home .tx9-hero + .tx3-cont + .tx2-row { margin-top: 8px; }
body.tx9-home .tx2-row-title { font-size: clamp(20px, 2.2vw, 26px); }
body.tx9-home .tx2-seeall { color: #ff6b7f !important; border-color: rgba(230,57,80,.45); }
body.tx9-home .tx2-seeall:hover { background: rgba(230,57,80,.12); border-color: var(--tx2-accent); }
body.tx9-home .tx2-thumb { border-radius: 12px; }
body.tx9-home .tx2-card { transition: transform .2s ease; }
body.tx9-home .tx2-card:hover { transform: translateY(-3px); }
body.tx9-home .tx2-card-title { font-size: 15.5px; }

/* =================== Episode page: compact title =================== */
body.tx9-ep .tx9-info { margin: 0 0 18px; }
body.tx9-ep .tx9-title { margin: 0; display: flex; flex-direction: column; gap: 6px; }
body.tx9-ep .tx9-kicker {
  align-self: flex-start; font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: #ff6b7f !important; text-decoration: none !important;
}
body.tx9-ep a.tx9-kicker:hover { color: #fff !important; }
body.tx9-ep .tx9-main { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.05; font-weight: 800; letter-spacing: -.025em; color: var(--tx2-text); }
body.tx9-ep .tx9-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 12px; color: var(--tx2-muted); font-size: 15px; font-weight: 600; }
body.tx9-ep .tx9-meta > span + span:not(.tx9-hd)::before { content: "·"; margin-right: 10px; }
body.tx9-ep .tx9-meta .tx9-hd { color: var(--tx2-text); border-color: var(--tx2-line); }
body.tx9-ep .tx9-about-ep { margin: 6px 0 14px; }
body.tx9-ep .tx9-about-ep h2 { margin: 0 0 8px; font-size: 18px; font-weight: 800; color: var(--tx2-text); }
body.tx9-ep .tx9-about-ep p { margin: 0; color: var(--tx2-muted); font-size: 14px; line-height: 1.75; }
body.tx9-ep .tx9-about-ep strong { color: var(--tx2-text); }
html.tx-light body.tx9-ep .tx9-kicker { color: #c42840 !important; }

/* =================== Preview badge =================== */
.tx9-flag {
  position: fixed; left: 16px; bottom: 16px; z-index: 9999; display: flex; align-items: center; gap: 10px;
  background: #7cc7ff; color: #06131f; font: 800 13px/1 "Manrope", system-ui, sans-serif;
  padding: 10px 12px 10px 14px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.tx9-flag a { color: #06131f !important; text-decoration: underline !important; font-weight: 700; }

/* =================== Phone =================== */
@media (max-width: 760px) {
  body.tx9-home .tx9-hero { min-height: 600px; }
  body.tx9-home .tx9-slide-bg { left: 0; width: 100%; height: 56%; object-position: center; }
  body.tx9-home .tx9-slide::after { background: linear-gradient(0deg, var(--tx2-bg) 0%, var(--tx2-bg) 38%, rgba(11,11,16,.2) 62%, rgba(11,11,16,0) 100%); }
  body.tx9-home .tx9-hero-copy { left: 16px; right: 16px; bottom: 76px; max-width: none; }
  body.tx9-home .tx9-slide::after { background: linear-gradient(0deg, var(--tx2-bg) 0%, var(--tx2-bg) 44%, rgba(11,11,16,.3) 56%, rgba(11,11,16,0) 75%); }
  body.tx9-home .tx9-hero-title { font-size: 38px; margin: 10px 0; }
  body.tx9-home .tx9-hero-meta { font-size: 13px; margin-bottom: 18px; }
  body.tx9-home .tx9-hero-btns .tx2-btn { flex: 1 1 0; justify-content: center; padding: 14px 12px; }
  body.tx9-home .tx9-thumbs { left: 16px; right: 16px; bottom: 22px; justify-content: center; gap: 8px; }
  body.tx9-home .tx9-thumb, body.tx9-home .tx9-thumb.is-active { width: 54px; height: 32px; border-radius: 7px; }
  body.tx9-home .tx9-thumb.is-active { transform: none; }
  body.tx9-home .tx2-row { margin-top: 32px; }
  body.tx9-ep .tx9-main { font-size: 32px; }
}
