dialog { padding: 0; border: 0; background: #181818; color: #fff; box-shadow: 0 12px 80px #000b; }
dialog::backdrop { background: #000b; }
body.modal-open { overflow: hidden; }
#series-dialog { width: min(850px, calc(100% - 40px)); max-height: calc(100vh - 60px); margin: 30px auto; border-radius: 12px; overflow-y: auto; scrollbar-width: thin; }
.detail-hero { position: relative; aspect-ratio: 16/9; background: url('assets/voyager-neelix-hero.webp') center / cover; }
.detail-shade { position: absolute; inset: 0; background: linear-gradient(0deg,#181818,transparent 65%),linear-gradient(90deg,#0007,transparent); }
.round-button { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #2a2a2a99; color: #fff; border: 2px solid #ffffff80; padding: 7px; }
.round-button:hover { border-color: white; background: #3b3b3b; }
.round-button[aria-pressed=true] { border-color: white; background: #555; }
.close-detail,.dialog-close { position: absolute; top: 16px; right: 16px; z-index: 2; background: #181818; border: 0; }
.detail-hero-copy { position: absolute; bottom: 45px; left: 48px; }
.detail-hero .voyager-logo { margin-bottom: 24px; }
.detail-hero .voyager { font-size: 48px; }.detail-hero .trek { font-size: 18px; }.detail-hero .chopped { font-size: 15px; }
.detail-body { padding: 0 48px 40px; }
.detail-summary { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; font-size: 16px; line-height: 24px; }
.detail-meta { display: flex; gap: 12px; align-items: center; color: #bcbcbc; }
.quality { border: 1px solid #aaa; border-radius: 3px; padding: 0 4px; font-size: 11px; line-height: 16px; }
.detail-callout { font-weight: 700; margin: 13px 0; }
.detail-tags { font-size: 14px; line-height: 21px; }.detail-tags span { color: #aaa; }
.episode-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 25px; }
.episode-heading h3 { font-size: 24px; font-weight: 700; }
.episode-row { display: grid; grid-template-columns: 24px 130px 1fr; align-items: center; gap: 15px; padding: 25px 12px; border-bottom: 1px solid #404040; border-radius: 4px; }
.episode-row:hover { background: #333; }
.episode-number { color: #d2d2d2; font-size: 24px; }
.episode-thumb { position: relative; width: 100%; aspect-ratio: 16/9; background: #222; border-radius: 4px; overflow: hidden; display: grid; place-items: center; }
.episode-count { color: #bcbcbc; font-size: 16px; }
.episode-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumb-play { position: absolute; width: 34px; height: 34px; border: 1px solid white; border-radius: 50%; background: #0007; display: grid; place-items: center; font-size: 14px; opacity: 0; }.episode-row:hover .thumb-play,.episode-row:focus-visible .thumb-play { opacity: 1; }
.episode-copy { display: grid; gap: 7px; }.episode-copy strong { font-size: 16px; }.episode-copy span { font-size: 14px; line-height: 20px; color: #d2d2d2; }
.episode-copy .episode-status { font-size: 12px; color: #a3a3a3; }
.about-series { margin-top: 40px; }.about-series h3 { font-size: 23px; }.about-series p { color: #bcbcbc; font-size: 14px; }
#info-dialog { width: min(520px,calc(100% - 40px)); border-radius: 12px; overflow: hidden; }#dialog-art { width: 100%; display: block; }.info-copy { padding: 24px; }.info-copy h2 { margin-top: 0; }.info-copy p { color: #bbb; line-height: 1.5; }
.watch-shell { max-width: 1400px; padding: 30px var(--gutter) 60px; margin: auto; }
.back-link { display: inline-flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.player-frame { display: grid; place-items: center; aspect-ratio: 16/9; background: #000; border-radius: 8px; overflow: hidden; }
.episode-video { width: 100%; height: 100%; }
.video-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(#0009,#000d),url('assets/voyager-neelix-hero.webp') center / cover; text-align: center; padding: 16px; }
.placeholder-icon { font-size: 36px; margin-bottom: 16px; }.video-placeholder strong { font-size: 26px; }.video-placeholder p { color: #ccc; }
.watch-details { margin: 28px 0; }.watch-details h1 { font-size: 30px; margin: 8px 0; }.watch-details p { color: #bcbcbc; }.eyebrow { font-size: 13px; letter-spacing: .08em; }
@media(max-width:599px) { #series-dialog { width:calc(100% - 16px); max-height:calc(100dvh - 16px); margin:8px auto; }.detail-hero { aspect-ratio:1.2; }.detail-hero-copy { left:20px; bottom:25px; }.detail-hero .voyager { font-size:36px; }.detail-hero .trek { font-size:14px; }.detail-hero .chopped { font-size:11px; }.detail-body { padding:0 20px 30px; }.detail-summary { grid-template-columns:1fr; gap:0; font-size:14px; line-height:21px; }.detail-tags { display:none; }.episode-heading h3 { font-size:21px; }.episode-row { grid-template-columns:16px 80px 1fr; gap:10px; padding:20px 0; }.episode-copy strong { font-size:14px; }.episode-copy span { font-size:12px; line-height:17px; }.episode-number { font-size:20px; }.video-placeholder strong { font-size:20px; }.video-placeholder p { font-size:13px; } }

.detail-hero .voyager-logo { width:300px; max-width:100%; margin-bottom:8px; }
@media(max-width:599px) { .detail-hero .voyager-logo { width:220px; } }
