/* 123Movies Cinematic TV Series V19
   Targeted visual update only: preserve V18 PHP poster helper, server and
   episode handlers, player URLs, IMDb metadata and the shared footer. */
body.pictures-tvseries-page {
  --tv19-coral: #f34d50;
  --tv19-panel: #151e28;
  --tv19-border: #33404e;
  --tv19-gold: #e8c98e;
}

/* Episode and server controls: remove old white theme bars. */
body.pictures-tvseries-page #main.pictures-watch-page #list-eps {
  display: block !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 14px 0 22px !important;
}
body.pictures-tvseries-page #main.pictures-watch-page #list-eps .le-server {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  background: #151e28 !important;
  border: 1px solid #33404e !important;
  border-radius: 12px !important;
  margin: 0 0 12px !important;
  padding: 15px 18px !important;
  box-shadow: none !important;
  min-height: 68px;
}
body.pictures-tvseries-page #main.pictures-watch-page #list-eps .le-server:last-of-type {
  border: 1px solid #33404e !important;
  margin-bottom: 0 !important;
}
body.pictures-tvseries-page #main.pictures-watch-page #list-eps .les-title {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  float: none !important;
  flex: 0 0 132px !important;
  min-width: 0 !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #f8f7f5 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}
body.pictures-tvseries-page #main.pictures-watch-page #list-eps .les-title i {
  color: var(--tv19-coral) !important;
}
body.pictures-tvseries-page #main.pictures-watch-page #list-eps .les-content {
  display: flex !important;
  align-items: center !important;
  flex: 1 1 500px !important;
  width: auto !important;
  min-width: 0 !important;
  gap: 8px !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 12px !important;
}
body.pictures-tvseries-page #main.pictures-watch-page #list-eps .pictures-tv-server-tabs,
body.pictures-tvseries-page #main.pictures-watch-page #list-eps .pictures-episode-groups,
body.pictures-tvseries-page #main.pictures-watch-page #list-eps .pictures-episode-group.active {
  align-items: center !important;
  gap: 8px !important;
}
body.pictures-tvseries-page #main.pictures-watch-page #list-eps .pictures-episode-group.active {
  display: flex !important;
  flex-wrap: wrap !important;
}
/* Buttons are intentionally style-only; keep anchor data-src / data-server / data-episode-id. */
body.pictures-tvseries-page #main.pictures-watch-page #list-eps button.pictures-tv-server-tab,
body.pictures-tvseries-page #main.pictures-watch-page #list-eps a.btn-eps.pictures-episode-btn {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 39px !important;
  height: 39px !important;
  width: auto !important;
  min-width: 43px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  background: #25303c !important;
  border: 1px solid #425062 !important;
  border-bottom: 1px solid #425062 !important;
  border-radius: 8px !important;
  color: #eaf0f7 !important;
  text-decoration: none !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 750 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transition: background-color .16s, border-color .16s, transform .16s;
}
body.pictures-tvseries-page #main.pictures-watch-page #list-eps button.pictures-tv-server-tab {
  min-width: 84px !important;
}
body.pictures-tvseries-page #main.pictures-watch-page #list-eps button.pictures-tv-server-tab:hover,
body.pictures-tvseries-page #main.pictures-watch-page #list-eps a.btn-eps.pictures-episode-btn:hover {
  background: #382830 !important;
  border-color: #f34d50 !important;
  color: #fff !important;
}
body.pictures-tvseries-page #main.pictures-watch-page #list-eps button.pictures-tv-server-tab.active,
body.pictures-tvseries-page #main.pictures-watch-page #list-eps a.btn-eps.pictures-episode-btn.active {
  background: #f34d50 !important;
  border-color: #f34d50 !important;
  color: #fff !important;
}
body.pictures-tvseries-page #main.pictures-watch-page #list-eps button.pictures-tv-server-tab:focus-visible,
body.pictures-tvseries-page #main.pictures-watch-page #list-eps a.btn-eps.pictures-episode-btn:focus-visible {
  outline: 2px solid #e8c98e !important;
  outline-offset: 3px !important;
}
body.pictures-tvseries-page #main.pictures-watch-page #list-eps a.btn-eps.pictures-episode-btn.active::before {
  margin-right: 6px !important;
  font-size: 9px !important;
}
/* Neutral sharing buttons and matching gold IMDb badge. */
body.pictures-tvseries-page #main.pictures-watch-page #mv-info .pictures-share-row a.pictures-share-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #25303c !important;
  border: 1px solid #425062 !important;
  color: #f5f6f8 !important;
  border-radius: 8px !important;
  padding: 7px 11px !important;
}
body.pictures-tvseries-page #main.pictures-watch-page #mv-info .pictures-share-row a.pictures-share-btn:hover {
  border-color: #f34d50 !important;
  background: #382830 !important;
}
body.pictures-tvseries-page #main.pictures-watch-page .badge.imdb,
body.pictures-tvseries-page #main.pictures-watch-page .mli-quality {
  background: var(--tv19-gold) !important;
  color: #20170b !important;
}
/* Recommendations: same SIX-card visual rhythm as movie detail page. */
body.pictures-tvseries-page #main.pictures-watch-page .mlw-related {
  clear: both !important;
  margin: 36px 0 30px !important;
  padding: 0 !important;
}
body.pictures-tvseries-page #main.pictures-watch-page .mlw-related .ml-title {
  margin: 0 0 20px !important;
  padding: 3px 0 3px 13px !important;
  border: 0 !important;
  border-left: 3px solid #f34d50 !important;
  background: none !important;
  min-height: 0 !important;
}
body.pictures-tvseries-page #main.pictures-watch-page .mlw-related .ml-title span {
  color: #f7f6f4 !important;
  background: transparent !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  letter-spacing: -.02em !important;
  text-transform: none !important;
}
body.pictures-tvseries-page #main.pictures-watch-page .mlw-related .movies-list.movies-list-full {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  column-gap: 15px !important;
  row-gap: 19px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}
body.pictures-tvseries-page #main.pictures-watch-page .mlw-related .movies-list.movies-list-full::before,
body.pictures-tvseries-page #main.pictures-watch-page .mlw-related .movies-list.movies-list-full::after {
  content: none !important;
}
body.pictures-tvseries-page #main.pictures-watch-page .mlw-related .movies-list .ml-item {
  box-sizing: border-box !important;
  position: relative !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  aspect-ratio: 2 / 3 !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid #303b48 !important;
  border-radius: 12px !important;
  background: #151e28 !important;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
body.pictures-tvseries-page #main.pictures-watch-page .mlw-related .movies-list .ml-item:hover {
  border-color: #f34d50 !important;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,.33);
}
body.pictures-tvseries-page #main.pictures-watch-page .mlw-related .movies-list .ml-item > a.ml-mask {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  border: 0 !important;
  border-radius: inherit !important;
  overflow: hidden !important;
  text-decoration: none !important;
}
body.pictures-tvseries-page #main.pictures-watch-page .mlw-related .movies-list .ml-item img.mli-thumb {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  object-fit: cover !important;
}
body.pictures-tvseries-page #main.pictures-watch-page .mlw-related .movies-list .ml-item .mli-info {
  position: absolute !important;
  left: 0 !important;
  bottom: 0 !important;
  right: 0 !important;
  z-index: 5 !important;
  height: auto !important;
  width: 100% !important;
  padding: 28px 10px 10px !important;
  border-radius: 0 0 11px 11px !important;
  background: linear-gradient(180deg, transparent, rgba(4,7,12,.78) 45%, rgba(4,7,12,.95)) !important;
}
body.pictures-tvseries-page #main.pictures-watch-page .mlw-related .movies-list .ml-item .mli-info h2 {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
  margin: 0 !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  line-height: 1.38 !important;
  text-align: left !important;
  text-shadow: 0 1px 4px #050608;
}
body.pictures-tvseries-page #main.pictures-watch-page .mlw-related .movies-list .ml-item .mli-quality {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  z-index: 6 !important;
  background: #e8c98e !important;
  color: #18130b !important;
  border-radius: 7px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 5px 7px !important;
}
@media (max-width: 1050px) {
  body.pictures-tvseries-page #main.pictures-watch-page .mlw-related .movies-list.movies-list-full { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
@media (max-width: 767px) {
  body.pictures-tvseries-page #main.pictures-watch-page #list-eps .le-server { padding: 14px !important; gap: 11px !important; }
  body.pictures-tvseries-page #main.pictures-watch-page #list-eps .les-title { flex: 1 0 100% !important; }
  body.pictures-tvseries-page #main.pictures-watch-page #list-eps .les-content { flex: 1 0 100% !important; }
  body.pictures-tvseries-page #main.pictures-watch-page .mlw-related .movies-list.movies-list-full { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 12px !important; }
}
@media (max-width: 420px) {
  body.pictures-tvseries-page #main.pictures-watch-page .mlw-related .movies-list.movies-list-full { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
}
@media (prefers-reduced-motion: reduce) {
  body.pictures-tvseries-page #main.pictures-watch-page #list-eps a.btn-eps.pictures-episode-btn,
  body.pictures-tvseries-page #main.pictures-watch-page .mlw-related .ml-item { transition: none !important; transform: none !important; }
}
