/* Films & TV */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 140px; gap: 14px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
.mv-rate { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.72); color: #ffd25e; font-size: 11px; font-weight: 800; padding: 2px 6px; border-radius: 6px; }
.tmdb-note { margin-top: 26px; font-size: 11px; }
.setup-steps { line-height: 1.8; padding-left: 20px; margin: 10px 0 0; }
.setup-steps pre { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; margin: 6px 0; }
.setup-steps code { background: var(--panel-2); padding: 1px 5px; border-radius: 5px; }
.mv-hero { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.mv-hero .bd { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.mv-hero .shade { position: absolute; inset: 0; background: linear-gradient(90deg, var(--panel) 10%, color-mix(in srgb, var(--panel) 40%, transparent)), linear-gradient(0deg, var(--panel), transparent 70%); }
.mv-hero .in { position: relative; display: grid; grid-template-columns: 140px 1fr; gap: 18px; padding: 18px; align-items: end; min-height: 200px; }
.mv-hero h3 { margin: 4px 0; font-size: 24px; line-height: 1.2; }
.mv-score { display: inline-flex; gap: 6px; align-items: baseline; font-weight: 800; font-size: 18px; color: var(--star); margin-top: 6px; }
.mv-tag { font-style: italic; color: var(--muted); margin: 12px 0 0; }
.trailer { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); margin-top: 12px; background: #000; }
.prov-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.prov-row .meta { min-width: 78px; }
.prov-row img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.prov-row img.net { width: auto; max-width: 90px; height: 26px; object-fit: contain; background: #fff; padding: 3px 6px; border-radius: 6px; }
.rail.cast { grid-auto-columns: 96px; }
.cast-card { text-align: center; cursor: pointer; display: grid; justify-items: center; align-content: start; gap: 2px; min-width: 0; }
.cast-card img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--panel-3); margin-bottom: 4px; }
.cast-card b { font-size: 12px; line-height: 1.25; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cast-card .meta { font-size: 11px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cast-card:hover b { color: var(--accent); }
.ep-next { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 9px 12px; border-top: 1px solid var(--line); cursor: pointer; }
.ep-next:first-child { border-top: 0; }
.ep-next:hover { background: var(--panel-2); }
.ep-next.static { cursor: default; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); grid-template-columns: 96px 1fr auto; }
.ep-next img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; background: var(--panel-3); }
.ep-next.static img { aspect-ratio: 16 / 9; }
.ep-row { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--line); }
.ep-row:first-child { border-top: 0; }
.ep-row img, .ep-ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--panel-3); }
.ep-ph { display: grid; place-items: center; font-weight: 800; color: var(--muted); }
.ep-row p { margin: 4px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ep-row.future { opacity: .7; }
