@font-face {
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src: url("/fonts/fontawesome/fa-solid-900.woff2") format("woff2");
}

@font-face {
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("/fonts/fontawesome/fa-regular-400.woff2") format("woff2");
}

@font-face {
  font-family: "Font Awesome 6 Brands";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("/fonts/fontawesome/fa-brands-400.woff2") format("woff2");
}

:root {
  --accent: #fdaa0d;
  --accent-soft: rgba(253, 170, 13, 0.13);
  --accent-season: #7c3aed;
  --accent-episode: #0891b2;
}

:root,
html,
body,
button,
input,
select,
textarea,
.header-nav,
.section-name,
.bf-card__title,
.bf-card__name,
.bf-card__genre,
.item-title,
.metadata {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    "Noto Sans",
    "Liberation Sans",
    Arial,
    sans-serif,
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Segoe UI Symbol",
    "Noto Color Emoji" !important;
}

/* The copied source bundle points at its private Font Awesome Pro files.
   Force the public Font Awesome families loaded from cdnjs instead. */
.fa,
.fas,
.fa-solid,
.far,
.fa-regular {
  font-family: "Font Awesome 6 Free" !important;
}

.fa,
.fas,
.fa-solid {
  font-weight: 900 !important;
}

.far,
.fa-regular {
  font-weight: 400 !important;
}

.fab,
.fa-brands {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
}

html,
body {
  background: radial-gradient(ellipse at top, var(--accent-soft) 0%, transparent 60%), #0d0f12 !important;
  background-attachment: fixed !important;
}

#wrapper,
#wrapper.index-page,
#wrapper.home,
#wrapper.watch {
  background: transparent !important;
}

.btn-primary,
.content-box-btn,
.watch-btn,
.btn.btn-primary,
.btn.content-box-btn,
button.btn-primary {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
}

.btn-primary:hover,
.content-box-btn:hover,
.watch-btn:hover {
  filter: brightness(0.88);
}

.content-box .content-box-btn {
  border-radius: 0.6rem !important;
}

.more-btn,
.more-btn:visited {
  color: var(--accent) !important;
}

.section-name {
  border-left-color: var(--accent) !important;
}

header .header-nav > ul > li > a {
  font-weight: 600 !important;
  color: #fff !important;
  position: relative !important;
  padding: 0.35rem 0.7rem !important;
  border-radius: 0.4rem !important;
  border: 1px solid transparent !important;
}

header .header-nav > ul > li > a::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: -0.15rem;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.22s ease;
}

header .header-nav > ul > li:hover > a,
header .header-nav > ul > li.active > a {
  background: var(--accent-soft) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: var(--accent) !important;
}

header .header-nav > ul > li:hover > a::after,
header .header-nav > ul > li.active > a::after {
  transform: scaleX(1);
}

header .header-nav ul.c4 a:hover {
  color: var(--accent) !important;
}

header .header-btn:hover {
  color: var(--accent) !important;
}

.pagination .page-item.active .page-link,
.pagination .page-link.active {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
}

.pagination .page-link {
  color: var(--accent) !important;
}

.pagination .page-link:hover {
  background: var(--accent) !important;
  color: #fff !important;
}

/* Inline collapsible filter form (.xfilter) — mirrors the live site's
   #filters checkbox-pill panel, reskinned with the admin accent colour
   instead of the hardcoded brand red. */
.xfilter {
  margin-bottom: 1.2rem;
  position: relative;
  background: linear-gradient(0deg, #1e242c, rgba(30, 36, 44, 0.4));
  border-radius: 0.8rem;
  padding: 1.6rem 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.xfilter .filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.6rem 0;
}

.xfilter .filter-row + .filter-row {
  margin-top: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
}

.xfilter .label-set {
  font-weight: 500;
  min-width: 6rem;
  color: #fff;
  padding-top: 0.15rem;
}

.xfilter .input-set {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0;
  flex: 1;
  max-height: 12rem;
  overflow-y: auto;
}

.xfilter .input-set > div {
  margin: 0 1rem 0.3rem 0;
}

.xfilter .input-set input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.xfilter .input-set label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #989ea6;
  cursor: pointer;
  transition: color 0.2s;
  font-size: 0.9rem;
}

.xfilter .input-set label:hover {
  color: #fff;
}

.xfilter .input-set label i {
  font-size: 0.85rem;
  color: #6b7280;
}

.xfilter .input-set input:checked + label {
  color: #fff;
}

.xfilter .input-set input:checked + label i {
  color: var(--accent);
}

.xfilter .actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  width: 100%;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.xfilter .btn-submit {
  background: var(--accent) !important;
  color: #fff !important;
  border: 0 !important;
  width: 9rem;
  border-radius: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 2.5rem;
  font-weight: 500;
}

.xfilter .btn-submit:hover {
  filter: brightness(0.92);
}

.xfilter .btn-cancel {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #c9cdd3;
  border-radius: 2rem;
  padding: 0 1.2rem;
  height: 2.5rem;
}

.xfilter .btn-cancel:hover {
  color: #fff;
  border-color: #fff;
}

.filter-toggler .filter-count {
  margin-left: 0.4rem;
  background: var(--accent);
  color: #fff;
  border-radius: 1rem;
  padding: 0 0.5rem;
  font-size: 0.8rem;
  line-height: 1.4rem;
  display: inline-block;
  min-width: 1.4rem;
  text-align: center;
}

/* Section-header "Filter" pill link (movie/tv/genre/country/top-imdb pages) */
.btn-filterx.filter-toggler {
  align-items: center;
  gap: 0.5rem;
  background: transparent !important;
  color: var(--accent) !important;
  border: 1px solid var(--accent) !important;
  border-radius: 0.4rem !important;
  padding: 0.45rem 1.1rem !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  display: inline-flex !important;
}

.btn-filterx.filter-toggler:hover {
  background: var(--accent) !important;
  color: #fff !important;
}

/* Watch-page rating widget — the theme paints .detail-lower with a
   hardcoded brand gradient; re-skin it to follow the admin accent. */
.detail-lower,
#movie-rating.detail-lower {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-soft) 100%) !important;
}

.detail-lower .score {
  color: #fff !important;
}

.swiper-pagination-bullet-active {
  background: var(--accent) !important;
}

footer a:hover {
  color: var(--accent) !important;
}

.bf-footer {
  margin-top: 3rem;
  padding: 2.5rem 0 1.5rem;
  background: rgba(13, 15, 18, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bf-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 2rem 2.5rem;
  align-items: flex-start;
}

.bf-footer__brand {
  padding-right: 1rem;
}

.bf-footer__logo img {
  height: 2rem;
  max-width: 160px;
  object-fit: contain;
  display: block;
  margin-bottom: 0.9rem;
}

.bf-footer__desc {
  color: #a8aeb6;
  font-size: 0.85rem;
  line-height: 1.55;
  margin: 0 0 0.8rem;
}

.bf-footer__legal {
  color: #7d848d;
  font-size: 0.78rem;
  line-height: 1.5;
  margin: 0 0 0.9rem;
}

.bf-footer__social {
  display: flex;
  gap: 0.6rem;
}

.bf-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #c9cdd3;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.bf-footer__social a:hover {
  background: var(--accent);
  color: #fff;
}

.bf-footer__h {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.9rem;
}

.bf-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bf-footer__col li {
  margin-bottom: 0.45rem;
}

.bf-footer__col a {
  color: #a8aeb6;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.15s;
}

.bf-footer__col a:hover {
  color: var(--accent);
}

.bf-footer__bottom {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: #7d848d;
  font-size: 0.78rem;
}

.bf-footer__copy {
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .bf-footer__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .bf-footer__brand {
    grid-column: 1 / -1;
    padding-right: 0;
  }
}

@media (max-width: 767px) {
  .bf-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .bf-footer__brand {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .bf-footer__desc,
  .bf-footer__legal {
    align-self: stretch;
    text-align: center;
  }

  .bf-footer__logo {
    display: flex !important;
    justify-content: center;
    width: 100%;
  }

  .bf-footer__logo img {
    margin-left: 0;
    margin-right: 0;
  }

  .bf-footer__social {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .bf-footer__bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .bf-footer__copy {
    display: block;
    width: 100%;
    text-align: center !important;
    white-space: normal;
  }
}

/* ===== CARD V4 — exact fmovies design (matches live dopebox.sx inline style) ===== */
.bf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1rem;
  width: 100%;
}
@media (min-width: 576px) {
  .bf-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 992px) {
  .bf-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (min-width: 1400px) {
  .bf-grid { grid-template-columns: repeat(8, 1fr); }
}

.bf-card {
  position: relative;
  display: block;
  aspect-ratio: 2/3;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #15171a;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  text-decoration: none;
  color: inherit;
}

.bf-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.bf-card:hover .bf-card__img {
  transform: scale(1.04);
}

.bf-card__eps {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 10px;
  line-height: 1em;
  padding-top: 8px;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  display: block;
}
.bf-card__eps i {
  display: block;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  margin-top: 2px;
}

.bf-card__qual {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  background: var(--accent);
  color: #fff;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 6px;
  line-height: normal;
  text-transform: uppercase;
}

.bf-card__title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  background: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.65) 48%, rgba(0, 0, 0, 0.65));
  padding: 1.2rem 0.5rem 0.55rem;
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.25;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.bf-card__name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.bf-card__genre {
  display: block;
  margin-top: 3px;
  font-size: 0.7rem;
  font-weight: 500;
  color: #c9cdd3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 768px) {
  .bf-card__title { font-size: 0.75rem; padding: 1rem 0.4rem 0.45rem; }
  .bf-card__genre { font-size: 0.62rem; }
  .bf-card__eps { width: 34px; height: 34px; padding-top: 6px; font-size: 9px; top: 8px; right: 8px; }
  .bf-card__eps i { font-size: 13px; }
}
@media (max-width: 480px) {
  .bf-card__title { font-size: 0.7rem; }
}

.bf-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  pointer-events: none;
  z-index: 2;
}
.bf-card::before {
  content: "";
  position: absolute;
  left: calc(50% - 30px);
  top: calc(50% - 30px);
  width: 60px;
  height: 60px;
  background: #fff;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8m115.7 272-176 101c-15.8 8.8-35.7-2.5-35.7-21V152c0-18.4 19.8-29.8 35.7-21l176 107c16.4 9.2 16.4 32.9 0 42'/></svg>") center / contain no-repeat;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  pointer-events: none;
  z-index: 3;
}
.bf-card:hover::after,
.bf-card:hover::before {
  opacity: 1;
}

.bf-card__title {
  padding: 0.55rem 0.45rem 0.65rem;
}

.bf-card__name {
  display: block;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
}

.bf-card__genre {
  display: block;
  color: #989ea6;
  font-size: 0.68rem;
  margin-top: 0.15rem;
}

#tg-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1200;
  width: 380px;
  max-width: calc(100vw - 40px);
  background: #111418;
  border: 1px solid #1f242c;
  border-radius: 1rem;
  padding: 1.3rem 1.4rem;
  color: #fff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
}

#tg-toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

#tg-toast .tg-mhead {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 0.95rem;
}

#tg-toast .tg-mic {
  width: 54px;
  height: 54px;
  border-radius: 0.7rem;
  background: linear-gradient(135deg, #2aabee, #229ed9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

#tg-toast .tg-mtitle {
  flex: 1;
  font-weight: 700;
  font-size: 1.1rem;
  padding-top: 0.3rem;
  padding-right: 2rem;
}

#tg-toast .tg-mx {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: #1a1f26;
  border: 0;
  color: #a8aeb6;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
}

#tg-toast .tg-mbody {
  color: #a8aeb6;
  font-size: 0.9rem;
  line-height: 1.5;
}

#tg-toast .tg-mbody a {
  color: #2aabee;
  font-weight: 600;
}

#tg-toast .tg-msep {
  border-top: 1px solid #1f242c;
  margin: 1.05rem 0 0.9rem;
}

#tg-toast .tg-mfoot {
  display: flex;
  gap: 0.55rem;
}

#tg-toast .tg-mjoin {
  flex: 1;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 0.5rem;
  padding: 0.75rem 0.9rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

#tg-toast .tg-mlater {
  background: #1a1f26;
  color: #c9cdd3;
  border: 0;
  border-radius: 0.5rem;
  padding: 0.75rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
}

#opt-panel {
  margin-top: 1rem;
  margin-bottom: 1.75rem;
}

#opt-panel .opt-head {
  color: #7d848d;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
  text-align: center;
}

#opt-panel .opt-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

#opt-panel .opt-pill {
  padding: 0.62rem 1.15rem;
  border-radius: 0.55rem;
  background: #1a1c20;
  border: 1px solid #2a2f37;
  color: #c9cdd3;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
}

#opt-panel .opt-pill.active,
#opt-panel .opt-pill:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Episodes panel — mirrors the live site's self-contained card. Every tile
   has its own solid surface so hover/focus can never look like a bare
   Tailwind outline against the page background. */
#movie-episodes .eps-panel {
  background: linear-gradient(180deg, #16181c, #121316);
  border: 1px solid #23272e;
  border-radius: 0.9rem;
  padding: 1.1rem 1.2rem 1.15rem;
  margin: 0.2rem 0 1rem;
}
#movie-episodes .eps-panel__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
}
#movie-episodes .eps-panel__head h3 {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
#movie-episodes .eps-panel__head h3 i {
  color: var(--accent-episode);
  font-size: 0.95rem;
}
#movie-episodes .eps-count {
  margin-left: auto;
  color: #aab0b8;
  font-size: 0.76rem;
  font-weight: 600;
  background: #1a1c20;
  padding: 0.25rem 0.65rem;
  border-radius: 1rem;
  border: 1px solid #262b31;
}
#movie-episodes .season-rail {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin: 0 0 1rem;
}
#movie-episodes .season-rail__label {
  color: #7d848d;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex: 0 0 auto;
}
#movie-episodes .season-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
#movie-episodes .season-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.7rem;
  height: 2.2rem;
  padding: 0 0.9rem;
  border-radius: 0.55rem;
  background: #1a1c20;
  color: #c9cdd3;
  border: 1px solid #2a2f37;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1;
  transition: all 0.15s ease;
  cursor: pointer;
}
#movie-episodes .season-pill:hover,
#movie-episodes .season-pill:focus,
#movie-episodes .season-pill:focus-visible {
  background: #242a32;
  border-color: var(--accent-season);
  color: #fff;
  transform: translateY(-1px);
  outline: none;
}
#movie-episodes .season-pill.is-active {
  background: var(--accent-season);
  border-color: var(--accent-season);
  color: #fff;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}
#movie-episodes .ep-head {
  color: #aab0b8;
  font-size: 0.88rem;
  margin: 0 0 0.85rem;
  padding-left: 0.1rem;
}
#movie-episodes .ep-head b {
  color: #fff;
  font-weight: 600;
}
#movie-episodes .ep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(3.2rem, 1fr));
  gap: 0.5rem;
  margin: 0;
}
#movie-episodes .ep-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  border-radius: 0.6rem;
  background: #1b212a;
  border: 1px solid #2f3845;
  color: #e6e9ee;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  transition: all 0.15s ease;
  cursor: pointer;
}
#movie-episodes .ep-tile:hover,
#movie-episodes .ep-tile:focus,
#movie-episodes .ep-tile:focus-visible {
  background: #272d36;
  border-color: var(--accent-episode);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  outline: none;
}
#movie-episodes .ep-tile.is-current {
  background: var(--accent-episode);
  border-color: var(--accent-episode);
  color: #fff;
  box-shadow: 0 0 0 2px rgba(8, 145, 178, 0.3), 0 6px 16px rgba(8, 145, 178, 0.3);
}
#movie-episodes .eps-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid #23272e;
  color: #7d848d;
  font-size: 0.75rem;
}
#movie-episodes .eps-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
#movie-episodes .eps-legend .lg-chk {
  color: #6ee7a8;
}
#movie-episodes .eps-legend .lg-now {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 0.25rem;
  background: var(--accent-episode);
  display: inline-block;
}
@media (max-width: 600px) {
  #movie-episodes .eps-panel {
    padding: 0.9rem 0.85rem 1rem;
    border-radius: 0.75rem;
  }
  #movie-episodes .eps-panel__head h3 {
    font-size: 0.98rem;
  }
  #movie-episodes .ep-grid {
    grid-template-columns: repeat(auto-fill, minmax(2.8rem, 1fr));
    gap: 0.4rem;
  }
  #movie-episodes .ep-tile {
    min-height: 2.7rem;
    font-size: 0.92rem;
  }
  #movie-episodes .season-pill {
    height: 2.4rem;
    min-width: 3rem;
  }
  #movie-episodes .eps-legend {
    gap: 0.8rem;
    font-size: 0.72rem;
  }
}

/* iOS Safari auto-zooms the whole page when a tapped text input/select/textarea
   computes below 16px. Several search/filter fields use Tailwind's text-sm
   (14px) or text-[15px] to match the desktop theme pixel-for-pixel — force
   16px on touch-width viewports only so desktop sizing stays untouched. */
@media (max-width: 991px) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}
