.detail-page {
  margin-top: 0px;
}
.detail-hero {
  height: 44vh;
  min-height: 280px;
  background-size: cover;
  background-position: center 20%;
  position: relative;
}
.detail-back {
  background-color: #1c1616;
  position: absolute;
  top: 20px;
  left: 22px;
  z-index: 2;
}
.detail-body {
  position: relative;
  margin-top: -70px;
  padding-left: 50px;
}
.detail-title {
  font-family: var(--font-display, 'Bebas Neue', sans-serif);
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1;
  margin: 10px 0 16px;
  letter-spacing: 1px;
}

.watch-page {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #000;
  display: flex;
  flex-direction: column;
}
.watch-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.watch-title {
  flex: 1;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.watch-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.watch-frame {
  flex: 1;
  min-height: 0;
}
.watch-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

[data-tooltip] {
  position: relative;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--surface, #111);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s ease, transform 0.12s ease;
  z-index: 30;
}
[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {

  .movie-list .movie-card {
    width: 118px;
  }
  .movie-list .movie-card img {
    height: 176px;
  }
  .movie-list-container {
    padding: 8px 14px 0;
  }
  .movie-list-title {
    font-size: 1.05rem;
    letter-spacing: 1.2px;
    margin-bottom: 10px;
  }

  .movie-list-wrapper .arrow {
    display: none;
  }

  .page-content {
    padding: 16px 14px 40px;
  }
  .content-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .content-grid .movie-card {
    width: 100%;
    min-width: 0;
  }
  .content-grid .movie-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
  }
  .content-grid .movie-card-title {
    font-size: 0.74rem;
  }

  .movie-card-meta {
    font-size: 0.64rem;
    gap: 5px;
    flex-wrap: wrap;
  }
  .movie-card-meta span,
  .movie-card-rating {
    white-space: nowrap;
  }

  .detail-hero {
    height: 38vh;
    min-height: 220px;
    background-position: center 16%;
  }
  .detail-back {
    top: 50px;
    left: 12px;
  }
  .detail-body {
    position: relative;
    margin-top: -70px;
    padding-bottom: 60px;
    padding-left: 0px
  }
  .detail-title {
    font-size: clamp(1.9rem, 8.5vw, 2.8rem);
    margin: 8px 0 12px;
  }
  .detail-body .modal-overview {
    font-size: 0.86rem;
    line-height: 1.55;
  }
  .detail-body .modal-actions {
    flex-direction: column;
    gap: 10px;
  }
  .detail-body .modal-actions .btn-primary,
  .detail-body .modal-actions .btn-secondary {
    width: 100%;
    text-align: center;
    padding: 14px 0;
    letter-spacing: 1.5px;
  }
  .detail-body .picker-input {
    flex-shrink: 0;
  }

  .watch-bar {
    padding: 10px 12px;
    gap: 10px;
  }
  .watch-title {
    font-size: 0.9rem;
  }
  .watch-bar .player-ep-btn {
    padding: 6px 9px;
    font-size: 0.72rem;
  }
  .watch-bar .player-ep-label {
    font-size: 0.72rem;
  }
}

@media (max-width: 460px) {

  .movie-card-meta span:last-child {
    display: none;
  }
}

@media (max-width: 400px) {
  .movie-list .movie-card {
    width: 104px;
  }
  .movie-list .movie-card img {
    height: 156px;
  }
  .content-grid {
    gap: 8px;
  }
}

.nb {
  position: fixed;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(80% - 24px);
  max-width: 1320px;
  height: 50px;
  border-radius: 14px;
  background: rgba(14, 14, 20, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0,0,0,0.5), 0 1px 0 rgba(255,255,255,0.04) inset;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 12px 0 16px;
  gap: 4px;
}
.nb-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  text-decoration: none;
}
.nb-brand .fa-play {
  color: #e63946;
  font-size: 12px;
  text-shadow: 0 0 18px rgba(230,57,70,0.6);
}
.nb-logo {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.05rem;
  letter-spacing: 3px;
  color: #f0f0f5;
  user-select: none;
}
.nb-sep {
  width: 1px;
  height: 22px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
  margin: 0 4px;
}
.nb-links {
  display: flex;
  align-items: center;
  gap: 1px;
  list-style: none;
}
.nb-links a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  color: #6b6b80;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nb-links a i { font-size: 0.62rem; }
.nb-links a:hover { color: #f0f0f5; background: rgba(255,255,255,0.07); }
.nb-links a.active { color: #e63946; background: rgba(230,57,70,0.1); }
.nb-right {
  display: flex;
  align-items: center;
  gap: 1px;
  margin-left: auto;
  flex-shrink: 0;
}
.nb-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: #6b6b80;
  font-size: 13px;
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  position: relative;
}
.nb-btn:hover { color: #f0f0f5; background: rgba(255,255,255,0.07); }
.nb-btn.accent:hover { color: #e63946; }
.nb-wl-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  background: #e63946;
  color: #fff;
  font-size: 0.48rem;
  font-weight: 800;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(14,14,20,0.9);
  pointer-events: none;
}
.nb-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.08);
  background: none;
  color: #6b6b80;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  margin-left: 4px;
}
.nb-hamburger:hover { color: #f0f0f5; border-color: rgba(255,255,255,0.18); }

@media (max-width: 900px) {
  .nb-links { display: none; }
  .nb-sep:first-of-type { display: none; }
  .nb-desktop-only { display: none; }
  .nb-hamburger { display: flex; }
}
@media (max-width: 540px) {
  .nb { width: calc(100% - 16px); top: 6px; height: 46px; border-radius: 12px; }
}

a.movie-card, a.ep-row { display: block; color: inherit; text-decoration: none; }
a.ep-row { display: flex; }
a.featured-button, a.btn-primary { display: inline-block; text-decoration: none; text-align: center; }
.movie-card-overlay { pointer-events: none; }

body.is-watch { overflow: hidden; }
body.is-watch .nb, body.is-watch .mobile-drawer, body.is-watch .site-footer { display: none !important; }

.source-pick {
  display: flex; align-items: center; gap: 8px;
  padding: 0 4px 0 12px; height: 32px;
  background: var(--card); border: 1px solid var(--border); border-radius: 6px;
  color: var(--muted); font-size: 0.75rem; cursor: pointer;
  transition: border-color 0.2s;
}
.source-pick:hover, .source-pick:focus-within { border-color: var(--accent); color: var(--accent); }
.source-pick select, .ep-pick {
  background: transparent; border: none; outline: none; color: var(--text);
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; cursor: pointer; padding: 6px 4px; max-width: 160px;
}
.ep-pick {
  height: 32px; padding: 0 8px; max-width: 220px; text-transform: none;
  background: var(--card); border: 1px solid var(--border); border-radius: 6px;
}
.ep-pick:hover, .ep-pick:focus { border-color: var(--accent); }
.source-pick select option, .ep-pick option { background: var(--surface); color: var(--text); text-transform: none; }

.theater-warn {
  margin: 12px 0; padding: 6px 12px; border-radius: 999px; max-width: fit-content;
  background: rgba(255,165,0,0.12); border: 1px solid rgba(255,165,0,0.4); color: #ffcc80; font-size: 12px;
}
.ep-thumb-fallback {
  width: 100%; height: 100%; border-radius: 6px; background: var(--surface);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}

.prov-dd { position: relative; }
.prov-btn {
  display: flex; align-items: center; gap: 7px; height: 100%; min-height: 40px; padding: 0 12px;
  background: var(--card); border: 1px solid var(--border); border-radius: 8px; color: var(--muted);
  font-family: var(--font-body); font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: border-color .2s, background .2s, color .2s;
}
.prov-btn .fa-tv { font-size: 11px; opacity: .8; }
.prov-chev { font-size: 9px; opacity: .6; transition: transform .2s; }
.prov-dd.open .prov-btn { background: rgba(230,57,70,0.1); border-color: rgba(230,57,70,0.45); }
.prov-dd.open .prov-chev { transform: rotate(180deg); }
.prov-dd.has-sel .prov-btn { color: var(--accent); }
.prov-dd.disabled .prov-btn { cursor: not-allowed; color: var(--muted); opacity: .6; }
.prov-menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 200;
  width: min(268px, calc(100vw - 24px)); min-width: 220px; max-height: 390px;
  background: var(--surface); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,0.7); display: flex; flex-direction: column; overflow: hidden;
  border-top: 2px solid var(--accent);
}
.prov-menu[hidden] { display: none; }
.prov-dd.open-left .prov-menu { left: auto; right: 0; }
.prov-search { position: relative; padding: 10px 10px 8px; border-bottom: 1px solid var(--border); }
.prov-search i { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--muted); }
.prov-search input {
  width: 100%; box-sizing: border-box; background: var(--card); border: 1px solid var(--border); border-radius: 6px;
  padding: 7px 10px 7px 30px; color: var(--text); font-family: var(--font-body); font-size: 13px; outline: none;
}
.prov-search input:focus { border-color: var(--accent); }
.prov-list { overflow-y: auto; flex: 1; }
.prov-msg { padding: 16px; color: var(--muted); font-size: 13px; text-align: center; }
.prov-item {
  display: flex; align-items: center; gap: 10px; padding: 7px 12px; cursor: pointer;
  border-left: 2px solid transparent; transition: background .15s;
}
.prov-item:hover { background: rgba(255,255,255,0.04); }
.prov-item.on { background: rgba(230,57,70,0.1); border-left-color: var(--accent); }
.prov-item img { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.prov-item span { flex: 1; font-size: 13px; font-weight: 700; color: var(--muted); line-height: 1.2; text-align: left; }
.prov-item.on span { color: var(--text); }
.prov-check {
  width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--muted); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 8px; color: #fff;
}
.prov-item.on .prov-check { border: none; background: var(--accent); box-shadow: 0 2px 8px rgba(230,57,70,0.4); }
.prov-foot { border-top: 1px solid var(--border); padding: 8px 12px; display: flex; justify-content: space-between; align-items: center; }
.prov-foot[hidden] { display: none; }
.prov-foot span, .prov-foot button { font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; font-family: var(--font-body); }
.prov-foot span { color: var(--muted); }
.prov-foot button { background: none; border: none; color: var(--accent); cursor: pointer; padding: 0; }
#sel-provs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; }
.sel-provs-label { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.sel-prov {
  display: inline-flex; align-items: center; gap: 5px; background: var(--card); border: 1px solid rgba(230,57,70,0.35);
  border-radius: 20px; padding: 3px 8px 3px 4px; font-size: 12px; font-weight: 700; color: var(--text);
}
.sel-prov img { width: 18px; height: 18px; border-radius: 4px; object-fit: cover; }
.sel-prov button { background: none; border: none; padding: 0 0 0 2px; cursor: pointer; color: var(--muted); display: flex; }
.sel-prov button:hover { color: var(--accent); }
#results-label { font-size: 13px; color: var(--muted); margin: 0; text-align: center; }

.settings-wrap { max-width: 560px; margin: 0 auto; }
.set-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 16px; border: 1px solid var(--border); border-radius: 8px; margin-top: 6px; font-size: 0.82rem;
}
.set-row .picker-input { width: auto; min-width: 180px; }
.set-note { color: var(--muted); font-size: 0.78rem; line-height: 1.5; }
.set-divider { height: 1px; background: var(--border); margin: 22px 0 14px; }
.set-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.set-btns .filter-btn { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 768px) {
  .watch-bar { flex-wrap: wrap; }
  .watch-title { order: 1; flex-basis: calc(100% - 90px); }
  .watch-bar-right { order: 2; width: 100%; gap: 6px; }
  .source-pick { padding-left: 10px; flex-shrink: 0; }
  .source-pick select { max-width: 112px; }
  .ep-pick { flex: 1; min-width: 0; max-width: none; }
  .watch-bar .player-ep-btn { flex-shrink: 0; }
}

.site-footer { padding: 34px 16px 42px; }
.site-footer .footer-inner { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 9px; }
.site-footer p { margin: 0; line-height: 1.65; }
.site-footer a { color: rgba(255,255,255,0.72); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.18); transition: color .15s, border-color .15s; }
.site-footer a:hover { color: var(--accent); border-color: var(--accent); }
.site-footer .footer-brand { display: flex; flex-direction: column; align-items: center; gap: 2px; font-family: var(--font-display); font-size: 1.25rem; letter-spacing: 3px; text-transform: uppercase; color: var(--text); }
.site-footer .footer-brand span { font-family: var(--font-body); font-size: 0.72rem; font-weight: 400; letter-spacing: .4px; text-transform: none; color: var(--muted); }
.site-footer .footer-providers { color: rgba(255,255,255,0.58); }
.site-footer .footer-links { margin-top: 4px; font-size: 0.76rem; }
.site-footer .footer-links span { margin: 0 4px; color: rgba(255,255,255,0.2); }

.info-wrap { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 22px 24px; }
.info-card h2 { font-family: var(--font-display); letter-spacing: 2px; text-transform: uppercase; font-size: 1.2rem; margin-bottom: 10px; }
.info-card p, .info-card li { color: rgba(240,240,245,0.75); font-size: 0.88rem; line-height: 1.7; }
.info-card p + p { margin-top: 10px; }
.info-card ul { margin: 8px 0 0; padding-left: 20px; }
.info-card li + li { margin-top: 4px; }
.info-card a { color: var(--accent); }
.info-card code, .set-note code { background: rgba(255,255,255,0.06); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; font-size: 0.9em; }

body.modal-open { overflow: hidden !important; }
.ts-modal-overlay { z-index: 4000; }
.ts-modal { width: min(620px, 100%); max-height: min(90vh, 780px); }
.ts-modal .modal-body { padding: 26px 28px 28px; }
.ts-modal .modal-title { margin-bottom: 12px; padding-right: 28px; }
.ts-modal .modal-overview { margin: 0 0 12px; }
.modal-fine { font-size: 0.76rem; color: var(--muted); line-height: 1.65; margin: 10px 0 0; }
.modal-fine a, .modal-tip a { color: var(--accent); font-weight: 700; }
.modal-provider-line a { text-decoration: none; border-bottom: 1px solid rgba(230,57,70,0.4); }
.modal-provider-line a:hover { border-color: var(--accent); }
.modal-tip { display: flex; gap: 9px; align-items: flex-start; margin: 12px 0 0; padding: 10px 12px; background: rgba(230,57,70,0.1); border: 1px solid rgba(230,57,70,0.35); border-radius: 8px; color: rgba(240,240,245,0.82); font-size: 0.8rem; line-height: 1.55; }
.modal-tip i { color: var(--accent); margin-top: 2px; }
.modal-list { margin: 10px 0 14px; padding-left: 20px; color: rgba(240,240,245,0.78); font-size: 0.86rem; line-height: 1.65; }
.modal-list li + li { margin-top: 5px; }
.modal-check { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 0.8rem; font-weight: 600; color: var(--muted); cursor: pointer; user-select: none; }
.modal-check input { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }
.modal-actions .btn-secondary { text-decoration: none; display: inline-block; text-align: center; }

.settings-wrap { max-width: 760px; }
.set-row { align-items: center; }
.set-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.set-copy span { font-weight: 700; }
.set-copy small { color: var(--muted); font-size: 0.72rem; line-height: 1.45; }
.set-row .picker-input { min-width: 160px; }
.switch { position: relative; display: inline-flex; flex-shrink: 0; cursor: pointer; }
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch span { width: 40px; height: 23px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); position: relative; transition: background .2s, border-color .2s; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s; }
.switch input:checked + span { background: rgba(230,57,70,0.25); border-color: rgba(230,57,70,0.55); }
.switch input:checked + span::after { transform: translateX(17px); background: var(--accent); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.provider-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.provider-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; background: var(--card); border: 1px solid var(--border); border-radius: 999px; color: var(--text); font-size: 0.75rem; font-weight: 700; text-decoration: none; }
.provider-chip i { color: var(--accent); font-size: 0.68rem; }
.provider-chip:hover { border-color: var(--accent); color: var(--accent); }

.detail-tagline { color: var(--muted); font-style: italic; margin: -8px 0 12px; max-width: 720px; }
.detail-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 10px 14px; margin: 22px 0 4px; max-width: 860px; }
.detail-facts div { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; background: rgba(255,255,255,0.025); border: 1px solid var(--border); border-radius: 8px; }
.detail-facts span { font-size: 0.62rem; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.detail-facts b { font-size: 0.82rem; font-weight: 600; line-height: 1.35; }
.detail-section { margin-top: 34px; }
.detail-h2 { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 2px; text-transform: uppercase; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.detail-h2::before { content: ""; width: 4px; height: 20px; background: var(--accent); border-radius: 2px; }
.detail-rail-wrap .arrow-right { right: -10px; }
.detail-rail-wrap .arrow-left { left: -10px; }
.wp-box { max-width: 860px; }
.wp-group { display: flex; gap: 12px; align-items: flex-start; margin-top: 10px; }
.wp-label { flex: 0 0 52px; font-size: 0.66rem; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted); font-weight: 800; padding-top: 7px; }
.wp-list { display: flex; flex-wrap: wrap; gap: 8px; }
.wp-prov { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 5px; background: var(--card); border: 1px solid var(--border); border-radius: 999px; color: var(--text); text-decoration: none; font-size: 0.72rem; font-weight: 700; }
.wp-prov img { width: 22px; height: 22px; border-radius: 5px; object-fit: cover; }
.wp-prov:hover { border-color: var(--accent); color: var(--accent); }
.wp-note { color: var(--muted); font-size: 0.68rem; margin-top: 10px; }

.watched-badge { position: absolute; top: 6px; right: 6px; z-index: 4; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #2ecc71; color: #07130b; font-size: 10px; border: 1px solid rgba(255,255,255,0.2); pointer-events: none; }
.btn-secondary.is-on, .player-ep-btn.is-on { border-color: rgba(46,204,113,0.55); color: #7ee2a8; background: rgba(46,204,113,0.1); }
.ep-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.btn-compact { padding: 9px 16px; font-size: 0.82rem; letter-spacing: 1px; }
.ep-row { position: relative; align-items: center; }
.ep-row.is-watched { border-color: rgba(46,204,113,0.35); background: rgba(46,204,113,0.06); }
.ep-row.is-unreleased { border-style: dashed; }
.ep-info { flex: 1; }
.ep-watch-btn { width: 30px; height: 30px; flex-shrink: 0; align-self: center; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.ep-watch-btn:hover, .ep-watch-btn:focus-visible { border-color: var(--accent); color: var(--accent); outline: none; }
.ep-watch-btn.on { background: #2ecc71; border-color: #2ecc71; color: #07130b; }
.ep-watched-tag, .ep-soon-tag { display: inline-flex; align-items: center; gap: 4px; margin-left: 7px; padding: 2px 7px; border-radius: 999px; font-size: 0.58rem; font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase; vertical-align: middle; }
.ep-watched-tag { background: rgba(46,204,113,0.15); color: #7ee2a8; }
.ep-soon-tag { background: rgba(255,165,0,0.14); color: #ffcc80; }
.ep-thumb.is-spoiler { filter: blur(9px); }
.ep-desc.is-spoiler { filter: blur(6px); cursor: pointer; user-select: none; }
.ep-desc.is-spoiler:hover { filter: blur(3px); }

@media (max-width: 768px) {
  .ts-modal .modal-body { padding: 22px 18px 24px; }
  .ts-modal .modal-title { font-size: 1.65rem; }
  .modal-actions { flex-direction: column; }
  .modal-actions .btn-primary, .modal-actions .btn-secondary { width: 100%; }
  .detail-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .set-row { align-items: flex-start; }
  .set-row .picker-input { width: 100%; }
  .wp-group { flex-direction: column; gap: 4px; }
  .wp-label { padding-top: 0; }
  .ep-watch-btn { width: 36px; height: 36px; }
  .ep-watched-tag, .ep-soon-tag { display: none; }
  .info-card { padding: 18px; }
  .site-footer .footer-brand { font-size: 1.1rem; }
}
@media (max-width: 520px) {
  .detail-facts { grid-template-columns: 1fr; }
  .provider-grid { gap: 6px; }
  .provider-chip { padding: 7px 10px; font-size: 0.7rem; }
}

.hero-skeleton { height: 86vh; min-height: 520px; background: radial-gradient(60% 80% at 30% 40%, rgba(230,57,70,0.16), transparent 60%), linear-gradient(120deg, var(--surface), var(--card)); }
.hero-carousel { position: relative; height: 86vh; min-height: 520px; overflow: hidden; background: var(--surface); }
.hero-track { display: flex; height: 100%; transition: transform .75s cubic-bezier(.22,.61,.36,1); will-change: transform; }
.hero-slide { position: relative; flex: 0 0 100%; height: 100%; display: flex; align-items: flex-end; }
.hero-slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,15,.98) 0%, rgba(10,10,15,.78) 42%, rgba(10,10,15,.16) 78%), linear-gradient(0deg, var(--bg) 0%, transparent 58%); }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 980px; padding: 0 5% 92px; }
.hero-eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--accent); font-size: .68rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.hero-eyebrow span { color: var(--muted); }
.hero-title { font-family: var(--font-display, 'Bebas Neue', sans-serif); font-size: clamp(2.7rem, 6vw, 5.4rem); line-height: .92; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; max-width: 780px; text-shadow: 0 4px 28px rgba(0,0,0,.6); }
.hero-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; color: var(--muted); font-size: .8rem; font-weight: 700; }
.hero-rating { color: #f5c518; }
.hero-overview { max-width: 620px; color: #c9c9d6; font-size: .94rem; line-height: 1.6; margin-bottom: 24px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-actions { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.hero-actions .featured-button { display: inline-flex; align-items: center; gap: 9px; margin: 0; }
.hero-more { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 6px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.07); color: var(--text); font-family: var(--font-display, 'Bebas Neue', sans-serif); font-size: 1rem; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; transition: background .18s, border-color .18s; }
.hero-more:hover { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.3); color: var(--text); }
.hero-wl { width: 50px; height: 50px; flex: 0 0 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.07); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1rem; transition: background .18s, border-color .18s, color .18s; }
.hero-wl:hover { border-color: var(--accent); color: var(--accent); }
.hero-wl.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.hero-arrow { position: absolute; top: 50%; z-index: 4; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(10,10,15,.52); color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.1rem; backdrop-filter: blur(8px); transition: background .18s, border-color .18s; }
.hero-arrow:hover { background: rgba(230,57,70,.9); border-color: var(--accent); }
.hero-prev { left: 18px; }
.hero-next { right: 18px; }
.hero-dots { position: absolute; left: 50%; bottom: 30px; z-index: 4; display: flex; gap: 7px; transform: translateX(-50%); }
.hero-dot { width: 34px; height: 5px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.22); overflow: hidden; cursor: pointer; }
.hero-dot i { display: block; width: 100%; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; will-change: transform; }

.calendar-wrap { max-width: 980px; }
.cal-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 16px; scrollbar-width: none; }
.cal-days::-webkit-scrollbar { display: none; }
.cal-day { flex: 0 0 auto; min-width: 62px; padding: 9px 10px; display: flex; flex-direction: column; align-items: center; gap: 3px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: var(--text); font: inherit; cursor: pointer; transition: border-color .18s, background .18s; }
.cal-day:hover { border-color: var(--accent); background: var(--surface); }
.cal-day small { color: var(--muted); font-size: .58rem; font-weight: 800; letter-spacing: .9px; text-transform: uppercase; }
.cal-day b { font-family: var(--font-display, 'Bebas Neue', sans-serif); font-size: 1.35rem; line-height: 1; }
.cal-day i { color: var(--accent); font-size: .58rem; font-style: normal; font-weight: 800; }
.cal-day-loading { width: 62px; height: 65px; flex: 0 0 62px; border-radius: 10px; background: var(--card); animation: calPulse 1.4s ease-in-out infinite; }
.agenda { display: flex; flex-direction: column; gap: 24px; }
.agenda-day { scroll-margin-top: calc(var(--nav-h, 68px) + 18px); }
.agenda-day h3 { display: flex; align-items: baseline; gap: 9px; margin-bottom: 10px; font-family: var(--font-display, 'Bebas Neue', sans-serif); font-size: 1.25rem; letter-spacing: 2px; text-transform: uppercase; }
.agenda-day h3 small { color: var(--muted); font-family: inherit; font-size: .7rem; letter-spacing: 1px; }
.agenda-item { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 9px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.agenda-link { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: var(--text); text-decoration: none; }
.agenda-img { width: 82px; height: 48px; flex: 0 0 82px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 6px; background: var(--card); color: var(--muted); }
.agenda-img img { width: 100%; height: 100%; object-fit: cover; }
.agenda-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.agenda-text strong { overflow: hidden; font-size: .9rem; text-overflow: ellipsis; white-space: nowrap; }
.agenda-text > span { color: var(--muted); font-size: .7rem; line-height: 1.4; }
.agenda-link:hover strong { color: var(--accent); }
.cal-tag { display: inline-block; margin-right: 7px; padding: 2px 6px; border-radius: 4px; font-size: .58rem; font-weight: 800; font-style: normal; letter-spacing: .4px; text-transform: uppercase; background: rgba(255,255,255,.07); color: var(--text); }
.cal-tone-theatre { background: rgba(230,57,70,.16); color: #ff9aa2; }
.cal-tone-digital { background: rgba(46,204,113,.14); color: #7ee2a8; }
.cal-tone-premiere { background: rgba(255,107,53,.16); color: #ffb08a; }
.cal-tone-finale { background: rgba(155,89,255,.16); color: #c4a8ff; }
.cal-tone-episode { background: rgba(80,160,255,.14); color: #9ec7ff; }
.cal-tone-recent { background: rgba(255,255,255,.07); color: var(--muted); }
.cal-wl { width: 38px; height: 38px; flex: 0 0 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 50%; background: var(--card); color: var(--muted); cursor: pointer; transition: background .18s, border-color .18s, color .18s; }
.cal-wl:hover, .cal-wl.on { border-color: var(--accent); color: var(--accent); }
.cal-wl.on { background: var(--accent); color: #fff; }
.agenda-loading { pointer-events: none; }
.agenda-loading .agenda-img, .agenda-loading .agenda-text i { animation: calPulse 1.4s ease-in-out infinite; }
.agenda-loading .agenda-text i { display: block; height: 10px; border-radius: 4px; background: var(--card); }
.agenda-loading .agenda-text i:last-child { width: 62%; }
@keyframes calPulse { 0%, 100% { opacity: .55; } 50% { opacity: .2; } }

.filter-count { margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--muted); font-size: .6rem; font-weight: 800; }
.watchlist-item { position: relative; }
.watchlist-remove { position: absolute; top: 6px; left: 6px; z-index: 5; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: rgba(10,10,15,.78); color: #fff; font-size: .62rem; cursor: pointer; opacity: .72; transition: opacity .18s, background .18s, border-color .18s; }
.watchlist-item:hover .watchlist-remove { opacity: 1; }
.watchlist-remove:hover, .watchlist-remove:focus-visible { background: var(--accent); border-color: var(--accent); outline: none; }

@media (max-width: 768px) {
  .hero-carousel, .hero-skeleton { height: 68vh; min-height: 440px; }
  .hero-inner { padding: 0 18px 74px; }
  .hero-title { font-size: clamp(2.2rem, 9vw, 3.4rem); }
  .hero-overview { font-size: .84rem; -webkit-line-clamp: 2; }
  .hero-actions .featured-button, .hero-more { padding: 11px 18px; font-size: .9rem; }
  .hero-wl { width: 44px; height: 44px; flex-basis: 44px; }
  .hero-arrow { width: 36px; height: 36px; top: auto; bottom: 66px; transform: none; }
  .hero-prev { left: 12px; }
  .hero-next { right: 12px; }
  .hero-dots { bottom: 20px; }
  .agenda-img { width: 64px; height: 40px; flex-basis: 64px; }
  .agenda-text strong { font-size: .84rem; }
  .cal-wl { width: 34px; height: 34px; flex-basis: 34px; }
}
@media (max-width: 520px) {
  .hero-carousel, .hero-skeleton { min-height: 400px; }
  .hero-overview { display: none; }
  .hero-arrow { display: none; }
  .agenda-item { padding: 7px; }
  .agenda-img { width: 52px; height: 34px; flex-basis: 52px; }
  .agenda-text > span { font-size: .64rem; }
}

.hero-actions { margin-top: 24px; }
.hero-logo { display: block; width: auto; max-width: min(560px, 78vw); max-height: 154px; object-fit: contain; object-position: left center; margin-bottom: 4px; filter: drop-shadow(0 6px 24px rgba(0,0,0,.65)); }
.hero-genres { color: #d6d6e2; }

.browse-eyebrow { display: block; margin-bottom: 6px; color: var(--accent); font-size: .66rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.browse-tabs { gap: 5px; padding-bottom: 0; }
.browse-tabs .filter-btn { border-radius: 8px; padding: 8px 14px; }
.browse-filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 4% 0; }
.browse-adv-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--text); font-family: var(--font-body); font-size: .72rem; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.browse-adv-toggle:hover { border-color: rgba(230,57,70,.45); color: var(--accent); }
.browse-adv-toggle.has-filters { border-color: rgba(230,57,70,.5); background: rgba(230,57,70,.08); }
.browse-adv-toggle > i:first-child { color: var(--accent); }
.browse-adv-count { display: inline-flex; align-items: center; justify-content: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .6rem; letter-spacing: 0; }
.browse-adv-count[hidden] { display: none; }
.browse-adv-chevron { margin-left: 2px; font-size: .62rem; color: var(--muted); transition: transform .18s ease; }
.browse-adv-toggle.open .browse-adv-chevron { transform: rotate(180deg); }
.browse-filters { padding: 10px 4% 0; animation: browseReveal .18s ease; }
.browse-filters[hidden] { display: none; }
.browse-filter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.browse-field { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); }
.browse-field > span { color: var(--text); font-size: .74rem; font-weight: 700; white-space: nowrap; }
.browse-field .picker-input { width: auto; min-width: 0; max-width: 60%; flex-shrink: 0; }
@keyframes browseReveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.browse-clear { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border: 1px solid rgba(230,57,70,.35); border-radius: 8px; background: rgba(230,57,70,.08); color: #ff9aa2; font-size: .66rem; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; cursor: pointer; }
.browse-clear:hover { background: rgba(230,57,70,.16); border-color: var(--accent); color: #fff; }
.browse-clear[hidden] { display: none; }

.ts-modal.settings-modal, .ts-modal.info-modal, .ts-modal.surprise-modal { width: min(820px, 100%); }
.settings-modal .modal-body, .info-modal .modal-body, .surprise-modal .modal-body { padding: 28px 30px 32px; }
.settings-intro { margin: -4px 0 20px; }
.info-intro { margin: -4px 0 16px; }
.info-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.info-tabs .filter-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; font-size: .68rem; }
.info-panel { min-height: 84px; transition: height .22s ease; }
.info-panel.switching { overflow: hidden; }
.info-stack { display: flex; flex-direction: column; gap: 12px; }
.info-stack .info-card { padding: 18px 20px; animation: infoFade .22s ease; }
.info-stack .info-card h2 { font-size: 1.05rem; margin-bottom: 7px; }
.info-loading { display: flex; align-items: center; justify-content: center; gap: 10px; height: 84px; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .5px; }
.info-loading i { color: var(--accent); }
@keyframes infoFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.surprise-sub { min-height: 22px; margin: -4px 0 16px; }
.surprise-stage { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.surprise-poster-wrap { position: relative; aspect-ratio: 2 / 3; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--card); box-shadow: 0 14px 34px rgba(0,0,0,.35); }
.surprise-poster-wrap img { width: 100%; height: 100%; object-fit: cover; transition: filter .16s ease, transform .16s ease; }
.surprise-stage.rolling .surprise-poster-wrap img { filter: blur(1.5px) saturate(1.15); transform: scale(1.04); }
.surprise-stage.revealed .surprise-poster-wrap { animation: surpriseReveal .32s cubic-bezier(.2,.8,.2,1); }
.surprise-loader { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(10,10,15,.72); color: var(--accent); font-size: 1.4rem; }
.surprise-stage:not(.loading) .surprise-loader { display: none; }
.surprise-info { min-width: 0; padding-top: 4px; }
.surprise-kicker { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 8px; color: var(--accent); font-size: .64rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.surprise-info h3 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.05; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }
.surprise-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; color: var(--muted); font-size: .78rem; font-weight: 700; }
.surprise-overview { color: rgba(240,240,245,.75); font-size: .84rem; line-height: 1.65; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 5; -webkit-box-orient: vertical; }
.surprise-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 20px; }
.surprise-actions .featured-button { margin: 0; padding: 12px 22px; font-size: .95rem; letter-spacing: 2px; }
.surprise-actions .hero-more { padding: 11px 18px; font-size: .9rem; }
.surprise-actions .hero-wl { width: 44px; height: 44px; flex-basis: 44px; }
.surprise-retry { display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.surprise-retry:hover { color: var(--accent); border-color: var(--accent); background: rgba(230,57,70,.08); }
.surprise-retry:disabled { opacity: .45; cursor: default; }
@keyframes surpriseReveal { 0% { transform: scale(.94); opacity: .6; } 60% { transform: scale(1.025); } 100% { transform: scale(1); opacity: 1; } }

body.search-open { overflow: hidden; }
.search-overlay { position: fixed; inset: 0; z-index: 5000; transition: opacity .16s ease; }
.search-overlay.closing { opacity: 0; pointer-events: none; }
.search-scrim { position: absolute; inset: 0; background: rgba(3,3,8,.78); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); }
.search-fly { position: fixed; z-index: 3; display: flex; align-items: center; justify-content: center; overflow: hidden; background: linear-gradient(to bottom, rgba(22,22,30,.96), rgba(14,14,20,.94)); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 14px 48px rgba(0,0,0,.68), 0 1px 0 rgba(255,255,255,.05) inset; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.search-fly-icon { position: absolute; left: 50%; transform: translateX(-50%); color: #8b8b9e; font-size: 14px; pointer-events: none; transition: left .18s ease, transform .18s ease, color .18s ease; }
.search-fly-input { position: absolute; left: 54px; right: 54px; width: auto; height: 100%; border: 0; background: none; color: #f0f0f5; font-family: var(--font-body); font-size: 1rem; outline: none; opacity: 0; pointer-events: none; transition: opacity .18s ease .08s; }
.search-fly-input::placeholder { color: #6b6b80; }
.search-fly-close { position: absolute; right: 8px; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: none; color: #6b6b80; font-size: 1rem; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .18s ease .08s, color .15s, background .15s; }
.search-fly-close:hover { background: rgba(255,255,255,.07); color: #f0f0f5; }
.search-overlay.expanded .search-fly-icon { left: 23px; transform: none; color: var(--accent); }
.search-overlay.expanded .search-fly-input, .search-overlay.expanded .search-fly-close { opacity: 1; pointer-events: auto; }
.search-popup { position: fixed; z-index: 2; top: calc(var(--search-top, 10vh) + 74px); left: 50%; width: min(1100px, calc(100vw - 28px)); max-height: calc(100vh - var(--search-top, 10vh) - 98px); overflow-y: auto; padding: 18px; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; background: rgba(14,14,20,.9); box-shadow: 0 18px 60px rgba(0,0,0,.55); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(10px); transition: opacity .2s ease, transform .2s ease; }
.search-overlay.expanded .search-popup { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.search-popup-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.search-popup-types { display: flex; gap: 5px; flex-wrap: wrap; }
.search-popup-types .filter-btn { padding: 7px 13px; font-size: .68rem; }
.search-popup-meta { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .72rem; font-weight: 700; }
.search-popup-meta a { color: var(--accent); text-decoration: none; white-space: nowrap; }
.search-popup-meta a:hover { text-decoration: underline; }
.search-popup-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
.search-popup-grid .movie-card img { height: 190px; }
.search-popup-more { padding: 18px 0 4px; text-align: center; }
.search-popup-more .filter-btn { padding: 10px 28px; }

@media (max-width: 1080px) {
  .browse-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .hero-logo { max-width: 82vw; max-height: 96px; }
  .hero-actions { margin-top: 18px; }
  .browse-filter-bar { padding: 14px 14px 0; }
  .browse-filters { padding: 10px 14px 0; }
  .browse-filter-grid { grid-template-columns: 1fr; gap: 7px; padding: 11px; }
  .browse-field { padding: 9px 11px; }
  .browse-field .picker-input { min-width: 0; max-width: 60%; }
  .browse-adv-toggle { padding: 8px 11px; font-size: .66rem; }
  .browse-clear { padding: 7px 11px; font-size: .62rem; }
  .info-tabs { gap: 5px; }
  .info-tabs .filter-btn { flex: 1 1 calc(50% - 5px); justify-content: center; padding: 8px 6px; font-size: .62rem; }
  .info-stack .info-card { padding: 15px 16px; }
  .surprise-stage { grid-template-columns: 1fr; gap: 16px; }
  .surprise-poster-wrap { width: min(210px, 62vw); margin: 0 auto; }
  .surprise-info { text-align: center; }
  .surprise-meta, .surprise-actions { justify-content: center; }
  .surprise-overview { -webkit-line-clamp: 4; }
  .surprise-actions .featured-button, .surprise-actions .hero-more { flex: 1 1 auto; justify-content: center; }
  .search-popup { top: calc(var(--search-top, 10vh) + 72px); width: calc(100vw - 16px); max-height: calc(100vh - var(--search-top, 10vh) - 88px); padding: 12px; border-radius: 14px; }
  .search-fly-input { left: 48px; right: 48px; font-size: 16px; }
  .search-popup-grid { grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); gap: 10px; }
  .search-popup-grid .movie-card img { height: 158px; }
  .search-popup-meta { width: 100%; justify-content: space-between; }
  .settings-modal .modal-body, .info-modal .modal-body, .surprise-modal .modal-body { padding: 24px 18px 26px; }
}

@media (max-width: 420px) {
  .search-popup-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .search-popup-grid .movie-card img { height: 145px; }
}

.detail-page { animation: detailIn .24s ease both; }
@keyframes detailIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .detail-page { animation: none; }
}
