body.dialog-open { overflow: hidden; }
.brand-mark { background: var(--accent); color: white; width: 29px; height: 30px; border-radius: 8px; font-size: 16px; padding-left: 2px; }
.hero-rating { color: var(--lime); font-weight: 700; }
.hero-language { padding: 5px 8px; border: 1px solid #ffffff28; border-radius: 3px; font-size: 9px; }
.hero-meta .hero-language::before { display: none; }
.hero-content .hero-save { padding: 0; min-width: 45px; }
.hero-bottom > span { letter-spacing: 2px; font-size: 8px; color: #8c928e; }
.poster-art { position: relative; height: auto; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 6px; transition: none; }
.poster-card:hover .poster-art { transform: none; filter: none; }
.poster-image { padding: 0; height: 100%; }
.poster-image > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform .5s, filter .4s; }
.poster-image .poster-fallback { position: absolute; inset: 0; z-index: 0; font-size: 13px; }
.poster-card:hover .poster-image > img { transform: scale(1.04); filter: brightness(.72); }
.poster-title { padding: 0; max-width: 100%; background: none; text-align: left; font-size: 12px; }
.poster-badges { z-index: 3; }
.card-save { z-index: 4; }
.card-save.is-saved { opacity: 1; transform: none; color: white; background: var(--accent); border-color: var(--accent); }
.poster-subtitle { font-size: 10px; }
.poster-image > img.image-failed, img.image-failed { visibility: hidden; }
.provider-strip { display: block; padding: 22px 0 25px; }
.provider-strip > .section-kicker { display: block; margin-bottom: 14px; }
.provider-strip .quick-filters { margin-bottom: 0; }
.provider-strip .provider-chip { min-height: 40px; font-size: 11px; padding: 10px 16px; border-radius: 30px; background: #ffffff04; }
.catalog-callout { margin-top: 20px; padding: 42px 0 4px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.catalog-callout h2 { margin: 10px 0 0; font-size: clamp(24px,3.1vw,42px); letter-spacing: -1px; line-height: 1.2; }
.filters { margin-bottom: 27px; }
.catalog-grid > .empty-state { grid-column: 1 / -1; }
.search-bar { display: flex; gap: 12px; align-items: stretch; margin-bottom: 35px; }
.search-input-wrap { flex: 1; max-width: none; }
.search-count { margin: 0 0 20px; font-size: 11px; }
.section-heading .search-count { margin: 0; }
.count-accent { color: var(--accent); font-size: .65em; }
.details-tagline { color: #89938d; font-style: italic; margin: -3px 0 18px; font-size: 12px; }
.details-content > .section-kicker { display: block; margin-bottom: 12px; }
.details-content:first-child { padding-top: 60px; margin-top: 0; min-height: 230px; }
.cast-image { overflow: hidden; }
.cast-image img { width: 100%; height: 100%; object-fit: cover; }
.cast-name,.cast-character { display: block; }
.details-content .poster-row { grid-auto-columns: calc((100% - 64px) / 5); gap: 16px; }
.details-content .section { margin-top: 28px; margin-bottom: 0; }
.watch-topbar { justify-content: space-between; padding-right: 25px; }
.watch-topbar p { color: #8d9b92; font-size: 10px; margin: 7px 0 0; }
.watch-topbar .section-kicker { display: block; margin-bottom: 6px; }
.player-controls { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.player-controls .provider-status { padding: 0; margin: 0; border: 0; }
.watch-info .provider-status { justify-content: flex-start; gap: 8px; }
.episode-still { overflow: hidden; }
.episode-still img { width: 100%; height: 100%; object-fit: cover; }
.episode-still svg { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); filter: drop-shadow(0 0 6px black); }
.episode-meta { display: block; }
.episode-number { display: block; font-size: 8px; margin-bottom: 5px; color: #a58b7d; }
.episode-list .loading-line { position: static; width: auto; height: auto; transform: none; animation: none; background: transparent; padding: 30px; color: var(--muted); }
.about-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.about-card h2 { margin: 0 0 17px; font-size: 19px; letter-spacing: -.5px; }
.about-card p { font-size: 12px; }
.about-card p + p { margin-top: 15px; }
.about-card .tmdb-logo { margin: 5px 0 18px; width: 88px; height: auto; }
.footer-top > div > p { margin: 14px 0 0; color: #8a908a; font-size: 11px; }
.footer-note { font-size: 9px; color: #808b81; }
.tmdb-logo { width: 75px; height: auto; }
.skip-link:focus { position: fixed !important; top: 10px; left: 10px; width: auto !important; height: auto !important; padding: 12px !important; clip: auto !important; background: #202325; z-index: 1000; }
@media (max-width: 720px) {
  .catalog-callout { flex-direction: column; align-items: flex-start; padding-top: 30px; }
  .search-bar { flex-direction: column; }
  .search-bar > .button { align-self: flex-start; }
  .about-grid { grid-template-columns: 1fr; }
  .details-content .poster-row { grid-auto-columns: calc((100% - 24px) / 3); gap: 12px; }
  .player-wrap { min-height: 290px; }
  .player-placeholder { padding: 22px; }
  .player-heading { font-size: 18px; }
  .player-placeholder .section-kicker { font-size: 6px; }
  .player-controls { padding: 15px; flex-wrap: wrap; }
  .watch-topbar { padding: 18px; }
  .poster-title { font-size: 11px; }
}

main { overflow-x: clip; }
.mobile-nav a { font-size: 10px; }
/* Append after refinements.css. Keep horizontal scrolling inside the shelves. */
body { min-width: 0; }
#main, .page-content, .section, .row-wrap, .provider-strip, .quick-filters { min-width: 0; }
.provider-strip .quick-filters { max-width: 100%; margin-right: 0; }
.poster-row, .cast-row { overscroll-behavior-x: contain; }
#main > .page-content > .empty-state:first-child { margin-top: 118px; }

@media (max-width: 720px) {
  .provider-strip { overflow: hidden; }
  .provider-strip .quick-filters { width: 100%; padding-right: 0; }
  .provider-strip .provider-chip { min-height: 40px; font-size: 11px; }
  .hero-overview { font-size: 13px; }
  .hero-meta { font-size: 11px; }
  .hero-meta .hero-language { font-size: 10px; }
  .hero-bottom > span { max-width: 40%; font-size: 7px; line-height: 1.8; }
  .hero-counter { flex-shrink: 0; }
  .section-kicker { font-size: 8px; }
  .section-link { font-size: 10px; }
  .poster-title { font-size: 12px; }
  .poster-subtitle, .catalog-grid .poster-subtitle { font-size: 10px; }
  .catalog-description { font-size: 12px; }
  .filter-field label { font-size: 9px; }
  .filter-field select { font-size: 12px; min-height: 40px; }
  .mobile-nav { gap: 3px; padding-left: 9px; padding-right: 9px; }
  .mobile-nav a, .mobile-nav button { min-height: 36px; justify-content: center; padding: 3px 10px; font-size: 11px; }
  .details-overview { font-size: 12px; }
  .details-facts { font-size: 11px; }
  .fact-label { font-size: 9px; }
  .details-meta { font-size: 10px; }
  .cast-name { font-size: 10px; }
  .cast-character { font-size: 9px; }
  .episode-title { font-size: 12px; }
  .episode-overview { font-size: 11px; }
  .episode-meta { font-size: 10px; }
  .episode-number { font-size: 9px; }
  .season-bar select { font-size: 11px; min-height: 39px; }
  .player-message { font-size: 11px; }
  .player-placeholder .section-kicker { font-size: 8px; }
  .player-placeholder .button { min-height: 37px; font-size: 10px; }
  .player-controls .button { font-size: 11px; }
  .watch-info p { font-size: 12px; }
  .watch-info .provider-status { font-size: 10px; line-height: 1.8; }
  .footer-links { font-size: 11px; }
  .footer-note { font-size: 10px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: clamp(35px,10.6vw,46px); max-width: 100%; overflow-wrap: anywhere; }
  .hero-overview { font-size: 12px; }
  .hero-actions .button { font-size: 11px; }
  .hero-actions .button.ghost { font-size: 0; }
  .hero-bottom > span { font-size: 6px; letter-spacing: 1.2px; }
  .hero-counter { gap: 7px; }
  .hero-counter::after { display: none; }
  .section-title { font-size: 19px; }
  .catalog-grid .poster-title { font-size: 12px; }
  .section-link { font-size: 9px; }
  .details-content .poster-row { grid-auto-columns: calc((100% - 12px) / 2.2); }
  .episode-still { width: 88px; height: 50px; }
  .episode-overview { -webkit-line-clamp: 2; }
  .episode-meta { font-size: 9px; }
  .mobile-nav a, .mobile-nav button { padding-left: 7px; padding-right: 7px; font-size: 10px; }
}


.watch-info p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
