/* ============================================================
   Bappam Media Inc Movie Pro Plugin — tmw-style.css
   Branded: Bappam Movies | Data: TMDB
   ALL selectors prefixed .tmw- — zero theme conflict
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Playfair+Display:wght@700&display=swap');

/* ─── Reset (scoped) ─────────────────────────── */
.tmw-wrap *,
.tmw-wrap *::before,
.tmw-wrap *::after { box-sizing: border-box; }

/* ─── Design Tokens ──────────────────────────── */
.tmw-wrap {
  /* Explicit light surface so dark WordPress themes cannot bleed through */
  background-color: #ffffff;
  color-scheme: light;
  --tmw-bg:           #ffffff;
  --tmw-surface:      #f5f5f5;
  --tmw-surface2:     #ebebeb;
  --tmw-border:       rgba(0,0,0,0.07);
  --tmw-border-med:   rgba(0,0,0,0.12);
  --tmw-text:         #000000;
  --tmw-text-sec:     #1a1a1a;
  --tmw-text-muted:   #4b5563;
  --tmw-brand:        #e5322d;
  --tmw-brand-dark:   #c42a26;
  --tmw-brand-soft:   rgba(229,50,45,0.08);
  --tmw-brand-border: rgba(229,50,45,0.2);
  --tmw-gold:         #b45309;
  --tmw-gold-bg:      rgba(180,83,9,0.08);
  --tmw-green:        #15803d;
  --tmw-green-bg:     rgba(21,128,61,0.08);
  --tmw-blue:         #1d4ed8;
  --tmw-blue-bg:      rgba(29,78,216,0.07);
  --tmw-radius:       16px;
  --tmw-radius-sm:    10px;
  --tmw-radius-xs:    6px;
  --tmw-font:         'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --tmw-font-display: 'Playfair Display', Georgia, serif;
  --tmw-shadow:       0 1px 3px rgba(0,0,0,.05), 0 8px 32px rgba(0,0,0,.07);
  --tmw-shadow-md:    0 4px 16px rgba(0,0,0,.1);
  --tmw-t:            0.17s cubic-bezier(0.4,0,0.2,1);
  font-family: var(--tmw-font);
  color: var(--tmw-text);
  max-width: 920px;
  margin: 0 auto;
  line-height: 1.6;
  font-size: 15px;
}

/* ─── Card Shell ─────────────────────────────── */
.tmw-card {
  background: var(--tmw-bg);
  border-radius: var(--tmw-radius);
  overflow: hidden;
  box-shadow: var(--tmw-shadow);
  border: 1px solid var(--tmw-border);
}

/* ─── HERO ───────────────────────────────────── */
.tmw-hero {
  position: relative;
  min-height: 360px;
  background: var(--tmw-surface) no-repeat center 25% / cover;
  display: flex;
  align-items: flex-end;
}
.tmw-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,.08) 0%,
    rgba(255,255,255,.6)  40%,
    rgba(255,255,255,.97) 100%
  );
  z-index: 0;
}
.tmw-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 26px;
  padding: 32px 32px 36px;
  width: 100%;
}

/* Poster */
.tmw-poster-wrap { flex: 0 0 130px; width: 130px; }
.tmw-poster {
  width: 130px;
  height: 194px;
  object-fit: cover;
  border-radius: var(--tmw-radius-sm);
  border: 2px solid rgba(0,0,0,.1);
  box-shadow: 0 12px 40px rgba(0,0,0,.22);
  display: block;
}

/* Meta */
.tmw-hero-meta { flex: 1; min-width: 0; }

/* Bappam brand pill above title */
.tmw-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--tmw-brand);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 3px 10px 3px 7px;
  border-radius: 9999px;
  margin-bottom: 9px;
}
.tmw-brand-badge-dot {
  width: 6px; height: 6px;
  background: rgba(255,255,255,.6);
  border-radius: 50%;
  display: inline-block;
}

.tmw-title {
  font-family: var(--tmw-font-display);
  font-size: clamp(1.45rem, 3.5vw, 2.05rem);
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--tmw-text);
  line-height: 1.15;
}
.tmw-year {
  font-family: var(--tmw-font);
  font-size: .82em;
  color: var(--tmw-text-muted);
  font-weight: 500;
}
.tmw-tagline {
  font-size: .85rem;
  color: var(--tmw-text-muted);
  font-style: italic;
  margin: 0 0 13px;
}

/* Quick stats row */
.tmw-quick-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}
.tmw-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .8rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 9999px;
}
.tmw-rating-good { background: var(--tmw-green-bg); color: var(--tmw-green); border: 1px solid rgba(21,128,61,.2); }
.tmw-rating-mid  { background: var(--tmw-gold-bg);  color: var(--tmw-gold);  border: 1px solid rgba(180,83,9,.2); }
.tmw-rating-bad  { background: var(--tmw-brand-soft); color: var(--tmw-brand); border: 1px solid var(--tmw-brand-border); }

.tmw-stat-chip {
  font-size: .75rem;
  color: var(--tmw-text-sec);
  background: rgba(0,0,0,.04);
  border: 1px solid var(--tmw-border-med);
  border-radius: 9999px;
  padding: 4px 10px;
  font-weight: 500;
}
.tmw-status { color: var(--tmw-green); border-color: rgba(21,128,61,.2); background: var(--tmw-green-bg); }

/* Genres */
.tmw-genres { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tmw-genre-tag {
  font-size: .71rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--tmw-blue);
  background: var(--tmw-blue-bg);
  border: 1px solid rgba(29,78,216,.15);
  border-radius: var(--tmw-radius-xs);
  padding: 3px 9px;
}

/* ─── BUTTONS — IMDb-inspired ────────────────── */
.tmw-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.tmw-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--tmw-font);
  font-size: .84rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none !important;
  user-select: none;
  transition:
    background-color .18s ease,
    color .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    transform .12s ease;
  border: 1px solid transparent;
  outline: none;
  line-height: 1;
  letter-spacing: .01em;
  white-space: nowrap;
  min-height: 40px;
}
.tmw-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(229,50,45,.35);
}
.tmw-btn:active {
  transform: translateY(1px);
}

.tmw-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tmw-btn-icon svg {
  display: block;
}
.tmw-btn-label { display: inline-block; }
.tmw-btn-arrow {
  opacity: .7;
  transition: transform .18s ease, opacity .18s ease;
}
.tmw-btn:hover .tmw-btn-arrow {
  opacity: 1;
  transform: translate(1px, -1px);
}

/* Primary — solid brand fill (Trailer) */
.tmw-btn-primary {
  background: var(--tmw-brand);
  color: #fff;
  border-color: var(--tmw-brand);
  box-shadow:
    0 1px 0 rgba(255,255,255,.18) inset,
    0 1px 2px rgba(0,0,0,.15),
    0 6px 14px rgba(229,50,45,.28);
  padding-left: 16px;
}
.tmw-btn-primary .tmw-btn-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
}
.tmw-btn-primary:hover {
  background: var(--tmw-brand-dark);
  border-color: var(--tmw-brand-dark);
  box-shadow:
    0 1px 0 rgba(255,255,255,.2) inset,
    0 2px 4px rgba(0,0,0,.18),
    0 10px 22px rgba(229,50,45,.32);
}
.tmw-btn-primary:active {
  box-shadow:
    0 1px 2px rgba(0,0,0,.18),
    0 3px 6px rgba(229,50,45,.28);
}

/* IMDb button — yellow like imdb.com */
.tmw-btn-imdb {
  --imdb-yellow: #f5c518;
  --imdb-yellow-hover: #e6b813;
  background: var(--imdb-yellow);
  color: #000;
  border-color: var(--imdb-yellow);
  box-shadow:
    0 1px 0 rgba(255,255,255,.35) inset,
    0 1px 2px rgba(0,0,0,.1),
    0 6px 14px rgba(245,197,24,.28);
}
.tmw-btn-imdb:hover {
  background: var(--imdb-yellow-hover);
  border-color: var(--imdb-yellow-hover);
  color: #000;
  box-shadow:
    0 1px 0 rgba(255,255,255,.4) inset,
    0 2px 4px rgba(0,0,0,.14),
    0 10px 22px rgba(245,197,24,.36);
}
.tmw-btn-imdb:focus-visible {
  box-shadow: 0 0 0 3px rgba(245,197,24,.45);
}
.tmw-btn-icon-badge {
  font-size: .6rem;
  font-weight: 900;
  letter-spacing: .02em;
  background: rgba(0,0,0,.86);
  color: var(--imdb-yellow);
  padding: 3px 5px;
  border-radius: 4px;
  line-height: 1;
  text-transform: none;
}

/* Ghost — subtle outline (Official Site) */
.tmw-btn-ghost {
  background: #fff;
  color: var(--tmw-text);
  border-color: rgba(0,0,0,.14);
  box-shadow:
    0 1px 0 rgba(255,255,255,.6) inset,
    0 1px 2px rgba(0,0,0,.04);
}
.tmw-btn-ghost:hover {
  background: #fafafa;
  color: var(--tmw-text);
  border-color: rgba(0,0,0,.22);
  box-shadow:
    0 1px 0 rgba(255,255,255,.6) inset,
    0 2px 8px rgba(0,0,0,.08);
}
.tmw-btn-ghost .tmw-btn-icon {
  color: var(--tmw-text-muted);
}
.tmw-btn-ghost:hover .tmw-btn-icon {
  color: var(--tmw-text);
}

/* ─── INLINE TRAILER ─────────────────────────── */
.tmw-wrap .tmw-trailer-section { margin: 24px 32px 0 !important; padding: 0 !important; }
.tmw-wrap .tmw-trailer-frame {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  max-width: 560px !important;
  margin: 14px auto 0 !important;
  padding: 0 !important;
  height: 0 !important;
  padding-bottom: 56.25% !important; /* exact 16:9, no extra space */
  background: #ffffff !important;
  border: 1px solid var(--tmw-border) !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  line-height: 0 !important;
  font-size: 0 !important;
  box-shadow: none !important;
}
.tmw-wrap .tmw-trailer-frame iframe {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  background: transparent !important;
}
@media (max-width: 600px) {
  .tmw-wrap .tmw-trailer-section { margin: 18px 16px 0 !important; }
}

/* ─── BODY ───────────────────────────────────── */
.tmw-body { padding: 0 32px 32px; }

/* ─── DIVIDER ────────────────────────────────── */
.tmw-divider { height: 1px; background: var(--tmw-border); margin: 28px 0; }

/* ─── SECTION ────────────────────────────────── */
.tmw-section { margin: 0; }
.tmw-section-title {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tmw-text-muted);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tmw-section-title span { white-space: nowrap; }
.tmw-section-title::after {
  content: '';
  display: block;
  height: 1px;
  flex: 1;
  background: var(--tmw-border);
}

/* ─── OVERVIEW ───────────────────────────────── */
.tmw-overview { font-size: .92rem; color: var(--tmw-text-sec); margin: 0; line-height: 1.8; }

/* ─── DETAILS GRID ───────────────────────────── */
.tmw-details-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 10px; }
.tmw-detail-item {
  background: var(--tmw-surface);
  border: 1px solid var(--tmw-border);
  border-radius: var(--tmw-radius-sm);
  padding: 11px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: border-color var(--tmw-t);
}
.tmw-detail-item:hover { border-color: var(--tmw-border-med); }
.tmw-detail-label { font-size: .66rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--tmw-text-muted); }
.tmw-detail-value { font-size: .87rem; color: var(--tmw-text); font-weight: 600; }

/* ─── CAST GRID ──────────────────────────────── */
.tmw-cast-grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--tmw-surface2) transparent;
}
.tmw-cast-grid::-webkit-scrollbar { height: 4px; }
.tmw-cast-grid::-webkit-scrollbar-track { background: transparent; }
.tmw-cast-grid::-webkit-scrollbar-thumb { background: var(--tmw-surface2); border-radius: 4px; }
.tmw-cast-card { flex: 0 0 82px; text-align: center; }
.tmw-cast-card img {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--tmw-border-med);
  display: block;
  margin: 0 auto 7px;
  transition: border-color var(--tmw-t), box-shadow var(--tmw-t);
}
.tmw-cast-card:hover img { border-color: var(--tmw-brand); box-shadow: 0 0 0 3px var(--tmw-brand-soft); }
.tmw-cast-no-img {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--tmw-surface2);
  border: 2px solid var(--tmw-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 7px;
}
.tmw-cast-name { font-size: .71rem; font-weight: 700; color: var(--tmw-text); margin: 0 0 2px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tmw-cast-char { font-size: .64rem; color: var(--tmw-text-muted); margin: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }

/* ─── REVIEWS ────────────────────────────────── */
.tmw-reviews { display: flex; flex-direction: column; gap: 10px; }
.tmw-review {
  background: var(--tmw-surface);
  border: 1px solid var(--tmw-border);
  border-radius: var(--tmw-radius-sm);
  padding: 14px 16px;
  transition: border-color var(--tmw-t);
}
.tmw-review:hover { border-color: var(--tmw-border-med); }
.tmw-review-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; gap: 8px; }
.tmw-review-author { font-size: .82rem; font-weight: 700; color: var(--tmw-text); }
.tmw-review-score {
  font-size: .73rem; color: var(--tmw-gold); font-weight: 600; white-space: nowrap;
  background: var(--tmw-gold-bg); padding: 3px 9px; border-radius: 9999px;
  border: 1px solid rgba(180,83,9,.18);
}
.tmw-review-text { font-size: .83rem; color: var(--tmw-text-muted); margin: 0; line-height: 1.7; }

/* ─── FOOTER ─────────────────────────────────── */
.tmw-footer {
  padding: 14px 32px;
  border-top: 1px solid var(--tmw-border);
  background: var(--tmw-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* "Powered by Bappam Movies" left side */
.tmw-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .73rem;
  color: var(--tmw-text-muted);
  font-weight: 500;
}
.tmw-footer-brand strong {
  color: var(--tmw-text);
  font-weight: 700;
}
.tmw-footer-brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--tmw-brand);
  border-radius: 5px;
  color: #fff;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: -.02em;
  flex-shrink: 0;
  font-family: var(--tmw-font);
}

/* "Data by TMDB" right side */
.tmw-footer-data {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .71rem;
  color: var(--tmw-text-muted);
}
.tmw-footer-data a { color: var(--tmw-blue); text-decoration: none; font-weight: 600; }
.tmw-footer-data a:hover { text-decoration: underline; }

/* ─── CERT / CONTENT RATING CHIP ─────────────── */
.tmw-cert-chip {
  background: rgba(0,0,0,.06);
  color: var(--tmw-text);
  border-color: var(--tmw-border-med);
  font-weight: 700;
  letter-spacing: .02em;
}

/* ─── WATCH PROVIDERS ────────────────────────── */
.tmw-providers-region {
  font-size: .7rem;
  font-weight: 600;
  color: var(--tmw-text-muted);
  text-transform: none;
  letter-spacing: 0;
  margin-left: 4px;
}
.tmw-providers {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tmw-provider-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.tmw-provider-group-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tmw-text-muted);
  min-width: 86px;
}
.tmw-provider-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tmw-provider {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--tmw-border);
  background: var(--tmw-surface);
  transition: transform var(--tmw-t), box-shadow var(--tmw-t), border-color var(--tmw-t);
  text-decoration: none !important;
}
.tmw-provider:hover {
  transform: translateY(-2px);
  box-shadow: var(--tmw-shadow-md);
  border-color: var(--tmw-border-med);
}
.tmw-provider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tmw-provider-text {
  font-size: .65rem;
  font-weight: 600;
  padding: 0 4px;
  text-align: center;
  color: var(--tmw-text);
}
.tmw-providers-attr {
  font-size: .68rem;
  color: var(--tmw-text-muted);
  margin: 10px 0 0;
}
.tmw-providers-attr a { color: var(--tmw-blue); text-decoration: none; font-weight: 600; }
.tmw-providers-attr a:hover { text-decoration: underline; }

/* ─── PRODUCTION COMPANIES ───────────────────── */
.tmw-companies {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.tmw-company {
  background: var(--tmw-surface);
  border: 1px solid var(--tmw-border);
  border-radius: var(--tmw-radius-sm);
  padding: 8px 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.tmw-company img {
  max-height: 28px;
  max-width: 120px;
  object-fit: contain;
  display: block;
  filter: none;
}
.tmw-company-text {
  font-size: .78rem;
  font-weight: 600;
  color: var(--tmw-text);
}

/* ─── ERROR ──────────────────────────────────── */
.tmw-error {
  background: var(--tmw-brand-soft);
  border: 1px solid var(--tmw-brand-border);
  color: var(--tmw-brand-dark);
  border-radius: var(--tmw-radius-sm);
  padding: 12px 16px;
  font-size: .85rem;
}

/* ─── SKELETON ───────────────────────────────── */
.tmw-skeleton {
  background: var(--tmw-bg);
  border-radius: var(--tmw-radius);
  overflow: hidden;
  border: 1px solid var(--tmw-border);
}
.tmw-sk-hero { position: relative; display: flex; align-items: flex-end; gap: 22px; padding: 24px; min-height: 300px; }
.tmw-sk-backdrop { position: absolute; inset: 0; }
.tmw-sk-poster { position: relative; z-index: 1; flex: 0 0 100px; height: 150px; border-radius: 8px; }
.tmw-sk-meta { position: relative; z-index: 1; flex: 1; }
.tmw-sk-line { border-radius: 5px; }
.tmw-sk-body { padding: 24px; }
.tmw-shimmer {
  background: linear-gradient(90deg, var(--tmw-surface) 25%, var(--tmw-surface2) 50%, var(--tmw-surface) 75%);
  background-size: 200% 100%;
  animation: tmw-shimmer-anim 1.6s ease-in-out infinite;
}
@keyframes tmw-shimmer-anim {
  0%   { background-position:  200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 600px) {
  .tmw-hero-inner { flex-direction: column; align-items: flex-start; }
  .tmw-poster-wrap { display: none; }
  .tmw-hero { min-height: 240px; }
  .tmw-body { padding: 0 18px 22px; }
  .tmw-details-grid { grid-template-columns: 1fr 1fr; }
  .tmw-footer { padding: 12px 18px; }
}

/* ─── Override dark themes (high specificity / !important from parent) ─────
   Many themes set light text + dark surfaces on .entry-content * — we force
   a consistent light card so TMDB content stays readable. */
.tmw-wrap {
  background-color: #ffffff !important;
  color: #111111 !important;
}
.tmw-wrap .tmw-card {
  background-color: #ffffff !important;
  color: #111111 !important;
}
.tmw-wrap .tmw-body {
  background-color: #ffffff !important;
  color: #111111 !important;
}
.tmw-wrap .tmw-body p,
.tmw-wrap .tmw-overview {
  color: #1a1a1a !important;
}
.tmw-wrap h2.tmw-title,
.tmw-wrap .tmw-title {
  color: #000000 !important;
}
.tmw-wrap .tmw-year,
.tmw-wrap .tmw-tagline {
  color: #4b5563 !important;
}
.tmw-wrap .tmw-section-title {
  color: #4b5563 !important;
}
.tmw-wrap .tmw-detail-item {
  background-color: #f5f5f5 !important;
  border-color: rgba(0,0,0,0.1) !important;
  color: #111111 !important;
}
.tmw-wrap .tmw-detail-label {
  color: #4b5563 !important;
}
.tmw-wrap .tmw-detail-value {
  color: #000000 !important;
}
.tmw-wrap .tmw-stat-chip {
  color: #1a1a1a !important;
  background-color: rgba(0,0,0,0.06) !important;
  border-color: rgba(0,0,0,0.15) !important;
}
.tmw-wrap .tmw-footer {
  background-color: #f0f0f0 !important;
  color: #374151 !important;
}
.tmw-wrap .tmw-footer-brand,
.tmw-wrap .tmw-footer-data {
  color: #4b5563 !important;
}
.tmw-wrap .tmw-footer-brand strong {
  color: #111111 !important;
}
.tmw-wrap .tmw-review {
  background-color: #f5f5f5 !important;
  border-color: rgba(0,0,0,0.1) !important;
}
.tmw-wrap .tmw-review-author {
  color: #111111 !important;
}
.tmw-wrap .tmw-review-text {
  color: #4b5563 !important;
}
.tmw-wrap .tmw-cast-name {
  color: #111111 !important;
}
.tmw-wrap .tmw-cast-char {
  color: #4b5563 !important;
}
.tmw-wrap .tmw-cast-no-img {
  background-color: #ebebeb !important;
  color: #111111 !important;
}
.tmw-wrap .tmw-skeleton {
  background-color: #ffffff !important;
}
.tmw-wrap .tmw-btn-ghost {
  background-color: #ffffff !important;
  color: #111111 !important;
  border-color: rgba(0,0,0,0.18) !important;
}
.tmw-wrap .tmw-btn-ghost:hover {
  background-color: #fafafa !important;
  color: #000000 !important;
  border-color: rgba(0,0,0,0.28) !important;
}
.tmw-wrap .tmw-btn-primary {
  color: #ffffff !important;
}
.tmw-wrap .tmw-btn-imdb {
  background-color: #f5c518 !important;
  color: #000000 !important;
  border-color: #f5c518 !important;
}
.tmw-wrap .tmw-btn-imdb:hover {
  background-color: #e6b813 !important;
  color: #000000 !important;
  border-color: #e6b813 !important;
}
.tmw-wrap .tmw-btn-icon-badge {
  background-color: #000000 !important;
  color: #f5c518 !important;
}
.tmw-wrap .tmw-brand-badge {
  color: #ffffff !important;
}
/* Hero: themes often force light text on headings — restore contrast on image */
.tmw-wrap .tmw-hero-meta .tmw-title,
.tmw-wrap .tmw-hero-meta h2 {
  color: #000000 !important;
}
.tmw-wrap .tmw-hero-meta .tmw-year,
.tmw-wrap .tmw-hero-meta .tmw-tagline {
  color: #374151 !important;
}

/* Watch providers / companies / keywords — light surfaces on dark themes */
.tmw-wrap .tmw-provider {
  background-color: #ffffff !important;
  border-color: rgba(0,0,0,0.12) !important;
}
.tmw-wrap .tmw-provider-text {
  color: #111111 !important;
}
.tmw-wrap .tmw-provider-group-label,
.tmw-wrap .tmw-providers-region,
.tmw-wrap .tmw-providers-attr {
  color: #4b5563 !important;
}
.tmw-wrap .tmw-company {
  background-color: #ffffff !important;
  border-color: rgba(0,0,0,0.12) !important;
}
.tmw-wrap .tmw-company-text {
  color: #111111 !important;
}
.tmw-wrap .tmw-cert-chip {
  background-color: rgba(0,0,0,0.06) !important;
  color: #111111 !important;
  border-color: rgba(0,0,0,0.15) !important;
}
