/* Thiraimax site upgrade (14 Oct 2026): genre buttons, Top 10, Coming soon, freshness badge, install card. Loaded by inc-tx4.php. */

/* "New this week" next to a row title */
.tx4-fresh {
  display: inline-block; vertical-align: middle; margin-left: 10px;
  background: var(--tx2-accent, #e63950); color: #fff;
  font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px;
}

/* Genre buttons */
.tx4-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.tx4-chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--tx2-line, rgba(255,255,255,.12));
  background: var(--tx2-surface, #15151d); color: var(--tx2-text, #f3f3f6) !important;
  font-weight: 700; font-size: 15px; text-decoration: none !important;
}
.tx4-chip:hover { background: var(--tx2-surface-2, #1d1d28); }
.tx4-chip.is-on { background: var(--tx2-accent, #e63950); border-color: var(--tx2-accent, #e63950); color: #fff !important; }
.tx4-chips-sm { margin: 12px 0 4px; gap: 8px; }
.tx4-chips-sm .tx4-chip { min-height: 34px; padding: 0 14px; font-size: 13.5px; }

.tx4-browse { padding: 8px var(--tx2-gutter, 24px) 28px; }
.tx4-browse .tx2-row-title { margin: 0 0 14px; }

/* Genre and All shows pages */
.tx4-page { padding-top: 28px; padding-bottom: 48px; }
.tx4-page-head h1 { margin: 0; font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: var(--tx2-text, #f3f3f6); }
.tx4-page .tx4-chips { padding: 0 var(--tx2-gutter, 24px); margin: 4px 0 26px; }
.tx4-movies-link { padding: 24px var(--tx2-gutter, 24px) 0; font-weight: 700; }
.tx4-movies-link a { color: var(--tx2-accent, #e63950) !important; }

/* Top 10: big rank number beside each card */
.tx4-rank { display: flex; align-items: flex-end; flex: none; }
.tx4-rank .tx2-card { flex: 1; min-width: 0; }
.tx4-rank-num {
  flex: none; margin-right: -14px; position: relative; z-index: 1;
  font-size: clamp(78px, 9vw, 120px); font-weight: 800; line-height: .78; letter-spacing: -.06em;
  color: var(--tx2-bg, #0b0b10);
  -webkit-text-stroke: 3px rgba(255, 255, 255, .55);
  padding-bottom: 46px;
}

/* Coming soon */
.tx4-soon { cursor: default; }
.tx4-soon-date {
  position: absolute; left: 8px; bottom: 8px; z-index: 2;
  background: #f2b544; color: #1a1306;
  font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px;
}

/* Install card */
.tx4-install {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 999;
  max-width: 520px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 12px 12px 14px; border-radius: 16px;
  background: #15151d; color: #f3f3f6; border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
  font-family: Manrope, system-ui, sans-serif;
}
.tx4-install[hidden] { display: none; }
.tx4-install img { border-radius: 11px; flex: none; }
.tx4-install-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.tx4-install-text strong { font-size: 16px; }
.tx4-install-text span { font-size: 13.5px; color: #b5b5c3; }
.tx4-install-go {
  flex: none; min-height: 44px; padding: 0 18px; border: 0; border-radius: 12px;
  background: #e63950; color: #fff; font: 800 15px Manrope, system-ui, sans-serif; cursor: pointer;
}
.tx4-install-go[hidden] { display: none; }
.tx4-install-x {
  flex: none; width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: transparent; color: #b5b5c3; font-size: 26px; line-height: 1; cursor: pointer;
}

/* Footer links */
.ast-footer-copyright a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Logo */
.site-title.tx4-logo { margin: 0; line-height: 1; }
.site-title.tx4-logo a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none !important; color: inherit; }
.tx4-logo-mark { flex: none; display: block; border-radius: 9px; }
.tx4-logo-word {
  font-family: Manrope, system-ui, sans-serif; font-weight: 800;
  font-size: 25px; letter-spacing: -0.03em; line-height: 1;
}
.tx4-logo-max { color: #e63950; }
body.tx-dark .tx4-logo-word { color: #f3f3f6; }
body:not(.tx-dark) .tx4-logo-word { color: #12121c; }
@media (max-width: 640px) {
  .tx4-logo-mark { width: 32px; height: 32px; }
  .tx4-logo-word { font-size: 22px; }
}

/* ---------- Light mode toggle button ---------- */
.tx4-theme {
  position: fixed; top: 22px; right: 140px; z-index: 99998;
  width: 42px; height: 42px; padding: 0; border-radius: 999px;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(255,255,255,.08); color: #fff;
  border: 1.5px solid rgba(255,255,255,.16); backdrop-filter: blur(10px);
}
.tx4-theme:hover { border-color: var(--tx2-accent, #e63950); }
.tx4-theme svg { width: 20px; height: 20px; }
.tx4-theme .tx4-moon { display: none; }
html.tx-light .tx4-theme .tx4-sun { display: none; }
html.tx-light .tx4-theme .tx4-moon { display: block; }
body.admin-bar .tx4-theme { top: 54px; }
@media (min-width: 769px) {
  body.tx-dark .site-header-primary-section-right { padding-right: 190px; }
}
@media (max-width: 768px) {
  .tx4-theme { top: auto; bottom: 20px; right: 78px; width: 48px; height: 48px; }
  body.admin-bar .tx4-theme { top: auto; }
  .tx4-install { bottom: 80px; }
}

/* ---------- Light mode for the dark pages ---------- */
html.tx-light body.tx-dark {
  --tx2-bg: #f4f6fc;
  --tx2-surface: #ffffff;
  --tx2-surface-2: #eef1f8;
  --tx2-line: rgba(18,18,28,.10);
  --tx2-text: #12121c;
  --tx2-muted: #5d6273;
  background: var(--tx2-bg); color: var(--tx2-text);
}
html.tx-light .tx4-theme { background: #fff; color: #12121c; border-color: #e2e2e2; box-shadow: 0 4px 14px rgba(0,0,0,.08); }

/* header + footer */
html.tx-light body.tx-dark .site-header,
html.tx-light body.tx-dark .main-header-bar,
html.tx-light body.tx-dark .ast-primary-header-bar,
html.tx-light body.tx-dark .ast-mobile-header-content,
html.tx-light body.tx-dark .ast-mobile-header-wrap .main-header-bar { background: rgba(255,255,255,.94) !important; }
html.tx-light body.tx-dark .site-header { border-bottom: 1px solid var(--tx2-line); }
html.tx-light body.tx-dark .site-title a,
html.tx-light body.tx-dark .tx4-logo-word { color: #12121c !important; }
html.tx-light body.tx-dark .main-header-menu .menu-link,
html.tx-light body.tx-dark .ast-builder-menu .menu-link { color: #3a3d4a !important; }
html.tx-light body.tx-dark .main-header-menu .menu-link:hover { color: #12121c !important; }
html.tx-light body.tx-dark .ast-mobile-menu-trigger-minimal,
html.tx-light body.tx-dark .menu-toggle { color: #12121c !important; }
html.tx-light body.tx-dark .ast-mobile-menu-trigger-minimal svg,
html.tx-light body.tx-dark .menu-toggle svg { fill: #12121c !important; }
html.tx-light body.tx-dark .site-footer,
html.tx-light body.tx-dark .site-footer .site-below-footer-wrap,
html.tx-light body.tx-dark .site-footer .ast-builder-grid-row-container { background: #fff !important; color: var(--tx2-muted) !important; }
html.tx-light body.tx-dark .site-footer { border-top: 1px solid var(--tx2-line); }
html.tx-light body.tx-dark .site-footer a { color: #3a3d4a !important; }
html.tx-light body.tx-dark .tx-search-icon-btn { background: #fff; color: #12121c; border-color: #e2e2e2; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
html.tx-light body.tx-dark .tx-search-icon-btn:hover { color: var(--tx2-accent); background: #fff; }

/* homepage hero */
html.tx-light body.tx-dark .tx2-slide::after {
  background:
    linear-gradient(90deg, rgba(244,246,252,.97) 0%, rgba(244,246,252,.82) 42%, rgba(244,246,252,.25) 100%),
    linear-gradient(0deg, var(--tx2-bg) 0%, rgba(244,246,252,0) 35%);
}
html.tx-light body.tx-dark .tx2-kicker { color: #b3243a; background: rgba(230,57,80,.10); }
html.tx-light body.tx-dark .tx2-hero-title { color: #12121c; }
html.tx-light body.tx-dark .tx2-hero-meta { color: #4a4f5e; }
html.tx-light body.tx-dark .tx2-chip-hd { border-color: rgba(18,18,28,.3); }
html.tx-light body.tx-dark .tx2-btn-ghost { background: #fff; color: #12121c !important; border-color: var(--tx2-line); }
html.tx-light body.tx-dark .tx2-btn-ghost:hover { background: #eef1f8; }
html.tx-light body.tx-dark .tx2-dot { background: rgba(18,18,28,.18); }
html.tx-light body.tx-dark .tx2-dot.is-active { background: var(--tx2-accent); }
html.tx-light body.tx-dark .tx2-hero-art { box-shadow: 0 24px 60px rgba(18,18,28,.18); }

/* rows, cards, show pages */
html.tx-light body.tx-dark .tx2-row-title,
html.tx-light body.tx-dark .tx2-card-title,
html.tx-light body.tx-dark .tx2-toolbar h2,
html.tx-light body.tx-dark .tx2-cathero-title { color: #12121c; }
html.tx-light body.tx-dark .tx2-cathero-sub { color: #4a4f5e; }
html.tx-light body.tx-dark .tx2-seeall { color: #3a3d4a !important; }
html.tx-light body.tx-dark .tx2-seeall:hover { background: rgba(18,18,28,.04); border-color: var(--tx2-line); }
html.tx-light body.tx-dark .tx2-arrow { background: #fff; color: #12121c; }
html.tx-light body.tx-dark .tx2-arrow:hover { background: #eef1f8; }
html.tx-light body.tx-dark .tx2-cathero::after { background: linear-gradient(0deg, var(--tx2-bg) 0%, rgba(244,246,252,.82) 70%, rgba(244,246,252,.7) 100%); }
html.tx-light body.tx-dark .tx2-cathero-art,
html.tx-light body.tx-dark .tx2-spotlight .tx2-poster-art { box-shadow: 0 18px 44px rgba(18,18,28,.2); }
html.tx-light body.tx-dark .tx2 .page-numbers { color: #3a3d4a; }
html.tx-light body.tx-dark .tx2 .page-numbers.current { color: #fff; }
html.tx-light body.tx-dark .tx4-rank-num { color: var(--tx2-bg); -webkit-text-stroke: 3px rgba(18,18,28,.4); }
html.tx-light body.tx-dark .tx4-movies-link a { color: #b3243a !important; }
@media (max-width: 900px) {
  html.tx-light body.tx-dark .tx2-slide::after { background: linear-gradient(0deg, var(--tx2-bg) 0%, rgba(244,246,252,.85) 45%, rgba(244,246,252,.45) 100%); }
}

/* ---------- inc-tx5: share, report, WhatsApp bar, About the show ---------- */
.tx5-tools { max-width: 780px; margin: 0 auto 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.tx5-wa {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px;
  border-radius: 12px; background: #1fa855; color: #fff !important; font-weight: 800; font-size: 15px;
  text-decoration: none !important;
}
.tx5-wa:hover { background: #178f47; }
.tx5-wa.is-follow { background: #fff; color: #128a43 !important; border: 1.5px solid #1fa855; }
.tx5-report { max-width: 780px; margin: 0 auto 30px; }
.tx5-report-open {
  min-height: 46px; padding: 0 18px; border-radius: 12px; cursor: pointer;
  background: #fff; color: #6b7280; border: 1.5px dashed #d6d9e0; font: 700 15px inherit;
  font-family: inherit;
}
.tx5-report-open:hover { color: var(--tx-accent, #e63950); border-color: var(--tx-accent, #e63950); }
.tx5-report-panel { margin-top: 10px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid #f0e6ea; }
.tx5-report-q { margin: 0 0 10px; font-weight: 800; font-size: 16px; color: var(--tx-text, #1a1a2e); }
.tx5-report-reasons { display: flex; flex-wrap: wrap; gap: 8px; }
.tx5-reason {
  min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  background: #fdf2f5; color: #a3243a; border: 1px solid #f7cfd8; font: 700 15px inherit; font-family: inherit;
}
.tx5-reason:hover { background: var(--tx-accent, #e63950); color: #fff; }
.tx5-report-done { margin: 0; padding: 12px 16px; border-radius: 12px; background: #e8f7ee; color: #15603a; font-weight: 700; }

.tx5-wabar {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  background: #1fa855; color: #fff; padding: 6px 12px; font-size: 15px;
}
.tx5-wabar[hidden] { display: none; }
.tx5-wabar a { display: inline-flex; align-items: center; gap: 8px; color: #fff !important; text-decoration: none !important; min-height: 36px; }
.tx5-wabar button { background: transparent; border: 0; color: #fff; font-size: 22px; width: 36px; height: 36px; cursor: pointer; }

.tx5-showtools { margin: 0 0 6px; }
.tx2-cathero + .tx5-showtools { padding: 0 var(--tx2-gutter, 24px); margin-top: 18px; }
.tx5-about {
  margin: 28px var(--tx2-gutter, 24px) 10px; padding: 24px; border-radius: 18px;
  background: var(--tx2-surface, #15151d); border: 1px solid var(--tx2-line, rgba(255,255,255,.08));
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start;
}
.tx5-about:not(:has(.tx5-trailer)) { grid-template-columns: minmax(0, 1fr); }
.tx5-about h2 { margin: 0 0 10px; font-size: 22px; font-weight: 800; color: var(--tx2-text, #f3f3f6); }
.tx5-about h3 { margin: 18px 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tx2-muted, #9a9aab); }
.tx5-story { margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--tx2-text, #f3f3f6); max-width: 70ch; }
.tx5-cast { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tx5-cast li { padding: 8px 12px; border-radius: 10px; background: var(--tx2-surface-2, #1d1d28); color: var(--tx2-text, #f3f3f6); font-size: 14.5px; }
.tx5-cast li span { color: var(--tx2-muted, #9a9aab); }
.tx5-trailer { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.tx5-trailer iframe { width: 100%; height: 100%; border: 0; display: block; }
.tx5-trailer-btn { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #000; }
.tx5-trailer-btn img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .8; }
.tx5-trailer-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px;
  background: #e63950; color: #fff; font-weight: 800; font-size: 15px;
}
.tx5-trailer-play svg { width: 16px; height: 16px; }
@media (max-width: 760px) { .tx5-about { grid-template-columns: minmax(0, 1fr); padding: 18px; } }
