/* Comfortable proportions at normal browser zoom. */
:root{--muted:#9aacc1}
body{font-size:16px;line-height:1.65}
small{line-height:1.5}
h1{font-size:clamp(30px,3vw,40px);letter-spacing:-1px}
h2{line-height:1.4}
h3{line-height:1.45}
header{max-width:1400px;width:calc(100% - 48px);margin:20px auto 0;padding:16px 24px;gap:24px;min-height:84px}
header .brand>span{font-size:20px}
header .brand>span::after{font-size:10px;letter-spacing:1.3px}
header .brand img{width:50px;height:50px;padding:4px}
header>nav{max-width:740px;gap:6px}
header>nav button{height:46px;font-size:15px;padding:0 10px;gap:9px;line-height:1.3}
header>nav button>span,header>nav svg{width:19px;height:19px}
header>nav button i{font-size:10px;top:0;right:1px}
.account-copy{max-width:110px}
.account-copy strong{font-size:14px}
.account-copy small{font-size:12px}
.account-avatar{width:40px;height:40px;font-size:16px}
.header-signout{width:42px;height:42px}
.header-signout svg{width:20px;height:20px}
main{max-width:1280px;width:calc(100% - 64px);margin:44px auto 64px}
footer{max-width:1280px;width:calc(100% - 64px);margin:0 auto;font-size:13px;gap:20px}
footer .brand{font-size:16px}
footer .brand small{font-size:11px}
footer .brand img{width:30px;height:30px}
.page-heading{gap:24px;margin-bottom:32px}
.page-heading p{font-size:16px;line-height:1.6}
.eyebrow{font-size:12px;letter-spacing:1.5px}
.primary,.secondary,.danger,.file-label{font-size:15px;min-height:44px;padding:11px 18px;line-height:1.4}
.text-btn{font-size:14px;line-height:1.5}
input,select{font-size:16px;min-height:46px;line-height:1.4}
label{font-size:14px}
input[type=checkbox],input[type=range],input[type=file]{min-height:0}
input::placeholder{color:#869ab3}
.stats{gap:18px;margin-bottom:32px}
.stats>div{padding:22px 20px;gap:14px}
.stats small{font-size:14px;color:#a8bacf}
.stats strong{font-size:34px}
.stats em{font-size:13px;color:#8fa5bf;line-height:1.5}
.stat-icon{width:48px;height:48px;flex-shrink:0}
.section-head p{font-size:15px}
.section-head h2 span{font-size:12px}
.show-grid,.library-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.show-info{padding:15px 2px}
.show-info h3{font-size:18px}
.show-info p{font-size:13px;flex-wrap:wrap;gap:6px}
.show-info small{font-size:12px;flex-wrap:wrap;gap:5px 10px}
.show-badge{font-size:11px;padding:4px 8px}
.progress{height:4px}
.panel{padding:28px}
.episode-row{padding:17px 0;gap:15px}
.episode-thumb{width:48px;height:68px}
.episode-info strong{font-size:16px;line-height:1.5}
.episode-info small{font-size:13px;line-height:1.5}
.episode-date{font-size:13px}
.episode-date small{font-size:12px}
.check{width:38px;height:38px;flex-shrink:0;font-size:20px}
.connect-panel p{font-size:15px;max-width:none}
.connect-panel .eyebrow{font-size:12px}
.tabs button{font-size:14px;min-height:42px}
.feed-row strong{font-size:15px}
.feed-row small{font-size:13px}
.demo-banner,.demo-banner button{font-size:13px;line-height:1.5}
.modal{width:820px}
.modal-overlay{padding:24px}
.modal h2{font-size:24px}
.pill{font-size:12px;letter-spacing:.4px}
.settings-workspace{grid-template-columns:240px minmax(0,1fr);gap:28px}
.settings-sidebar button{font-size:15px;padding:13px 15px;gap:12px;min-height:48px}
.settings-sidebar svg{width:20px;height:20px}
.settings-content{padding:30px;min-height:430px}
.settings-content h2{font-size:22px}
.settings-content>p{font-size:15px;line-height:1.6}
.settings-fields label{font-size:14px}
.settings-content select,.settings-content input:not([type=checkbox]){height:48px;font-size:16px}
.settings-info{font-size:14px;line-height:1.75}
.settings-summary>span{font-size:14px}
.settings-summary strong{font-size:30px}
.settings-actions{gap:14px;margin-top:28px}
.show-detail-modal{width:1240px;padding:0}
.show-detail-modal>.section-head h2{font-size:26px}
.show-detail-modal>.section-head .icon-btn{width:42px;height:42px}
.show-detail-layout{grid-template-columns:300px minmax(0,1fr)}
.show-detail-poster{width:180px}
.show-detail-meta>span:last-child,.show-genres{font-size:13px}
.show-synopsis{font-size:14px;line-height:1.7}
.show-watch-progress small{font-size:13px}
.bulk-hint{font-size:12px}
.remove-link{font-size:13px}
.episodes-heading .eyebrow{font-size:11px}
.episodes-heading h3{font-size:22px}
.episode-total{font-size:13px;white-space:normal;text-align:right}
.season-tabs button{font-size:15px;min-width:125px;padding:11px 15px}
.season-tabs button small{font-size:12px}
.season-heading h3{font-size:20px}
.season-heading small{font-size:13px}
.season-heading button{font-size:13px;white-space:normal}
.detail-episode{grid-template-columns:115px minmax(0,1fr) auto;gap:18px;padding:22px 0}
.detail-episode-image{height:72px}
.episode-kicker{font-size:11px;letter-spacing:.6px;flex-wrap:wrap;gap:5px 12px}
.detail-episode h4{font-size:17px}
.detail-episode-copy p{font-size:14px;line-height:1.65}
.detail-airdate{font-size:12px}
.episode-watch-button{font-size:13px;min-width:125px;min-height:42px;padding:10px 12px}
.poster-picker-modal{width:1040px;padding:0}
.poster-picker-modal>.section-head h2{font-size:24px}
.poster-picker{grid-template-columns:minmax(0,1fr) 310px}
.picker-intro,.picker-source p{font-size:15px}
.picker-tabs button{font-size:14px;min-height:42px}
.poster-preview-panel>p,.poster-preview-panel>small{font-size:13px}
.poster-preview-panel h3{font-size:18px}
.picker-crop h3{font-size:16px}
.picker-crop label{font-size:14px}
.picker-crop input[type=range]{height:24px;min-height:24px}
.picker-footer>span,.poster-dropzone small{font-size:12px}
.poster-dropzone>strong{font-size:17px}
.poster-dropzone p{font-size:14px}
.live-search-modal{width:860px}
.live-search-field input{min-height:50px;font-size:16px}
.live-search-caption{font-size:12px}
#search-status{font-size:14px;min-height:23px}
.search-empty h3{font-size:20px}
.search-empty p{font-size:15px}
.live-search-modal .search-result .episode-thumb{width:55px;height:78px}
.live-search-modal .search-result strong{font-size:17px}
.live-search-modal .search-result small{font-size:13px}
.live-search-modal .search-result button{min-width:95px}
.release-section-heading .eyebrow{font-size:12px;letter-spacing:1.5px}
.release-section-heading h2{font-size:26px}
.release-section-heading p{font-size:15px;max-width:none}
.release-card{flex-basis:288px}
.release-card-body{padding:20px}
.release-label{font-size:11px;letter-spacing:.7px}
.release-show-title{font-size:21px;min-height:59px;line-height:1.4}
.release-episode-number{font-size:12px;letter-spacing:.4px}
.release-card-body h4{font-size:16px;min-height:48px;line-height:1.5}
.release-date{font-size:13px;gap:6px;line-height:1.6}
.release-date>span{font-size:11px}
.release-countdown b{font-size:27px}
.release-countdown small{font-size:10px;letter-spacing:.5px}
.release-countdown>span{padding:10px 0}
.release-detail-button{font-size:14px;min-height:44px}
.release-arrow{width:42px;height:42px}
.calendar-day{font-size:13px;padding:14px 0}
.calendar-cell{min-height:155px;padding:10px}
.calendar-cell>span{width:30px;height:30px;font-size:14px}
.calendar-cell button{font-size:13px;padding:8px;line-height:1.4}
.calendar-cell small{font-size:12px;line-height:1.4;margin-top:4px}
.login-panel{max-width:460px}
.login-panel p{font-size:16px}
.login-panel>small,.login-divider{font-size:13px}
.login-features{font-size:15px}
.notice,#login-error{font-size:14px}
#toast{font-size:15px;line-height:1.5}
@media(max-width:1280px){header{grid-template-columns:minmax(0,1fr) auto;gap:14px}header>nav{grid-column:1/-1;grid-row:2;max-width:none;border-top:1px solid #263747;padding-top:12px}.account-copy{display:flex}.account-button{padding-left:16px}.show-grid,.library-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.stats>div{padding:20px 16px}.stats em{font-size:12px}}
@media(max-width:1050px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.show-grid,.library-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.bottom-grid{grid-template-columns:1fr}.show-detail-layout{grid-template-columns:255px minmax(0,1fr)}.show-detail-poster{width:160px}.detail-episode{grid-template-columns:85px minmax(0,1fr);gap:14px}.detail-episode-image{height:58px}.episode-watch-button{grid-column:2;justify-self:start}.episodes-heading{align-items:flex-start}.settings-workspace{grid-template-columns:210px minmax(0,1fr)}.settings-fields{gap:18px}}
@media(max-width:800px){.settings-workspace{grid-template-columns:1fr;gap:20px}.settings-sidebar{flex-direction:row;overflow-x:auto;gap:6px;padding-bottom:6px}.settings-sidebar button{width:auto;flex-shrink:0;white-space:nowrap;font-size:14px;padding:11px 14px}.settings-fields{grid-template-columns:1fr}.poster-picker{grid-template-columns:1fr}.poster-preview-panel{border-left:0;border-top:1px solid #29384c}.poster-picker-preview{width:180px}.picker-footer{flex-wrap:wrap}.picker-footer>div{margin-left:auto}}
@media(max-width:700px){header{width:calc(100% - 24px);margin:12px auto 0;padding:12px;top:10px;gap:10px}header .brand>span{font-size:18px}header .brand>span::after{display:none}header .brand img{width:40px;height:40px;padding:3px}header>nav{gap:4px;padding-top:10px}header>nav button{height:62px;flex-direction:column;gap:5px;padding:5px 3px;font-size:13px;white-space:normal;line-height:1.2}header>nav svg{width:19px;height:19px}.account-copy{display:none}.account-avatar{width:36px;height:36px}.account-button{padding-left:10px}.header-right{gap:10px}.header-signout{width:38px;height:38px}main{width:calc(100% - 32px);margin:30px auto 46px}footer{width:calc(100% - 32px);margin:0 auto;flex-wrap:wrap;font-size:12px}.page-heading{flex-wrap:wrap;gap:18px;margin-bottom:24px}.page-heading p{font-size:15px}.page-heading .primary{font-size:14px;padding:10px 15px}.stats{gap:12px}.stats>div{padding:17px 13px;gap:10px}.stats small{font-size:13px}.stats strong{font-size:30px}.stats em{font-size:12px}.stat-icon{width:38px;height:38px;font-size:22px}.show-grid,.library-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.show-info h3{font-size:17px}.show-info p{font-size:13px}.show-info small{font-size:12px}.show-grid>.show-card:last-child:nth-child(odd){display:block}.panel{padding:20px}.episode-row{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:8px 12px}.episode-row>.episode-thumb{grid-row:1/3;width:42px;height:60px}.episode-info{grid-column:2}.episode-info strong{font-size:15px}.episode-info small{font-size:13px}.episode-date{grid-column:2;text-align:left;font-size:12px;margin:0}.episode-date small{display:inline;font-size:12px;margin-left:8px}.episode-row>.check,.episode-row>span.cyan{grid-column:3;grid-row:1/3}.release-section-heading{align-items:flex-start;gap:14px}.release-section-heading p{font-size:14px;max-width:none}.release-section-heading h2{font-size:23px}.release-card{flex-basis:270px}.release-card-body{padding:18px}.release-show-title{font-size:20px;min-height:56px}.release-countdown b{font-size:26px}.release-countdown small{font-size:10px}.release-arrow{width:38px;height:38px}.modal-overlay{padding:12px}.modal{padding:22px;max-width:100%}.show-detail-modal,.poster-picker-modal{padding:0;max-width:calc(100vw - 24px)}.live-search-modal{padding:20px}.show-detail-modal{display:block;overflow:auto;height:92vh;max-height:92vh}.show-detail-modal>.section-head{position:sticky;top:0;z-index:2;padding:16px 18px}.show-detail-modal>.section-head h2{font-size:22px}.show-detail-layout{display:flex;flex-direction:column}.show-overview{display:grid;grid-template-columns:105px minmax(0,1fr);gap:0 16px;overflow:visible;border-right:0;border-bottom:1px solid #29384c;padding:18px}.show-detail-poster{width:105px;grid-column:1;grid-row:1/5;margin:0}.show-detail-meta,.show-genres,.show-synopsis{grid-column:2}.show-synopsis{font-size:13px;line-height:1.65}.show-watch-progress,.show-overview>.full-width,.bulk-hint,.show-manage{grid-column:1/-1}.show-watch-progress{margin-top:18px}.show-episodes{padding:22px 18px}.detail-episode-scroll{overflow:visible;padding:0}.detail-episode{grid-template-columns:70px minmax(0,1fr);gap:12px}.detail-episode-image{height:48px}.detail-episode h4{font-size:16px}.detail-episode-copy p{font-size:14px}.detail-airdate{font-size:12px}.season-heading{align-items:flex-start;flex-wrap:wrap}.season-heading button{font-size:13px}.season-heading small{font-size:13px}.season-tabs button{font-size:15px;min-width:120px}.season-tabs button small{font-size:12px}.settings-content{padding:24px;min-height:360px}.settings-content>p{font-size:15px}.settings-summary{grid-template-columns:1fr}.settings-summary>span{font-size:14px;display:flex;align-items:center;justify-content:space-between}.settings-summary strong{font-size:26px;margin:0}.settings-actions{justify-content:flex-start}.calendar-grid{min-width:840px}.calendar-day{font-size:13px}.calendar-cell{min-height:140px}.picker-tabs button{font-size:14px}.picker-footer>span{font-size:12px}.poster-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}.live-search-caption{font-size:12px}.live-search-modal .search-result strong{font-size:16px}.live-search-modal .search-result small{font-size:13px}.live-search-modal .search-result button{min-width:75px;padding:10px;font-size:14px}.live-search-modal .search-result{gap:12px}.login-panel{padding:24px}.login-story{padding:30px 24px}.login-story p{font-size:16px}.demo-banner{font-size:12px;flex-wrap:wrap}.demo-banner span{max-width:none}.demo-banner button{font-size:13px}}
@media(max-width:380px){header .brand>span{font-size:16px}header .brand img{width:36px;height:36px}.stats>div{align-items:flex-start}.stat-icon{display:none}header>nav button{font-size:12px}.release-card{flex-basis:255px}.release-section-heading h2{font-size:21px}.release-controls{gap:5px}.release-arrow{width:34px;height:36px}.show-info h3{font-size:16px}.show-overview{grid-template-columns:90px minmax(0,1fr)}.show-detail-poster{width:90px}}
header .brand small{font-size:11px}
@media(min-width:1281px) and (max-width:1400px){header{gap:18px}.account-copy{display:none}.account-button{padding-left:12px}}
/* Download availability stays attached to the tracked show. */
.show-card{border:1px solid #263a4f;border-radius:13px;background:#101d2c;overflow:hidden;display:flex;flex-direction:column}
.show-card>.poster{border:0;border-bottom:1px solid #263a4f;border-radius:0}
.show-info{padding:17px;display:flex;flex-direction:column;flex:1}
.show-downloads{margin-top:auto;padding-top:16px}
.show-download-available{border-top:1px solid #293d52;padding-top:13px}
.download-availability{display:inline-flex;align-items:center;gap:7px;color:#7fd4d8;font-size:12px;font-weight:600}
.show-download-available>small{font-size:12px;display:block;color:#91a8c0;margin:6px 0 12px}
.download-link{display:flex;align-items:center;justify-content:space-between;width:100%;padding:11px 13px;border:1px solid #55dbe93b;border-radius:8px;background:#55dbe90b;color:#8de3e8;font-size:14px;font-weight:600;min-height:44px}
.show-download-available>.text-btn{width:100%;font-size:12px;margin-top:8px;text-align:center}
.show-download-status{border-top:1px solid #293d52;padding-top:13px;color:#8da4bd;font-size:12px;line-height:1.6}
.muted-download{font-size:12px;color:#8da4bd}
.download-filterbar{display:grid;grid-template-columns:2fr 1fr 1fr;gap:18px;background:#101d2c;border:1px solid #293c51;border-radius:12px;padding:20px;margin-bottom:20px}
.download-filterbar label{margin:0;font-size:13px;color:#9bb1c9}
#download-feed-status{color:#9bb1c9;font-size:14px;margin:0 0 20px}
.download-show-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.download-show-grid>.empty{grid-column:1/-1}
.download-show-card{border:1px solid #2c4055;border-radius:14px;overflow:hidden;background:#101c2b;min-width:0}
.download-show-heading{display:flex;align-items:center;gap:20px;padding:24px;background:linear-gradient(120deg,#182c3e,#111d2c);border-bottom:1px solid #293d52}
.download-show-poster{width:82px;height:123px;padding:0;border:1px solid #3a526a;border-radius:8px;overflow:hidden;background:#0c1723;flex-shrink:0}
.download-show-poster img{width:100%;height:100%;object-fit:cover}
.download-show-heading h2{font-size:22px;margin:0 0 7px}
.download-show-heading p{font-size:13px;margin:0 0 12px}
.download-release-list{padding:0 24px;max-height:620px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.download-release{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px 0;border-bottom:1px solid #253b50}
.download-release:last-child{border-bottom:0}
.download-release>div{min-width:0;flex:1}
.download-episode-code{font-size:12px;color:#7fcbd3;font-weight:600;letter-spacing:.5px}
.download-release h3{font-size:16px;margin:5px 0 9px}
.download-release-meta{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.download-release-meta>span{font-size:11px;padding:3px 7px;border:1px solid #345068;border-radius:5px;color:#a9c7d9}
.download-release-meta>.watched-tag{color:#72d1c1;border-color:#72d1c138}
.download-release details{margin-top:9px;font-size:12px;color:#819ab4}
.download-release summary{cursor:pointer}
.download-release details p{word-break:break-word;font-size:12px;margin:7px 0 0}
.download-release>a{font-size:13px;white-space:nowrap;padding:10px 12px;flex-shrink:0}
@media(max-width:1050px){.download-show-grid{grid-template-columns:1fr}}
@media(max-width:700px){.show-info{padding:13px}.show-info h3{font-size:17px}.download-link{font-size:13px;padding:10px}.show-download-available>small{font-size:11px}.download-availability{font-size:11px}.download-filterbar{grid-template-columns:1fr;padding:18px;gap:15px}.download-show-heading{padding:18px;gap:16px}.download-show-heading h2{font-size:20px}.download-release-list{padding:0 18px}.download-release{flex-wrap:wrap;gap:12px}.download-release>div{flex-basis:100%}.download-release>a{font-size:14px}.download-show-poster{width:72px;height:108px}}
/* Six navigation items share equal spacing; downloads also opens from show details. */
header>nav{grid-template-columns:repeat(6,minmax(0,1fr));max-width:820px}
header{max-width:1480px;gap:18px}
header>nav button{font-size:14px;padding:0 6px;gap:7px}
.show-download-entry{padding:0 0 18px}
.show-download-entry>button{background:#55dbe90b;color:#8de3e8;border-color:#55dbe938}
.show-download-entry>small{display:block;font-size:12px;text-align:center;color:#8ca7bf;margin-top:7px}
@media(min-width:1281px) and (max-width:1480px){.account-copy{display:none}.account-button{padding-left:12px}}
@media(max-width:1280px){header>nav{max-width:none}}
@media(max-width:700px){header>nav button{font-size:12px;min-height:64px;gap:5px;white-space:normal;line-height:1.2;padding:5px 2px}.show-download-entry{grid-column:1/-1;padding:0 0 16px}}
@media(max-width:430px){header>nav{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}header>nav button{height:48px;min-height:48px;flex-direction:row;font-size:12px;gap:6px}header>nav button>span,header>nav svg{width:17px;height:17px}}
.show-detail-header-actions{display:flex;align-items:center;gap:12px;flex-shrink:0}
.show-detail-header-actions>.secondary{background:#55dbe90b;color:#8de3e8;border-color:#55dbe938;font-size:14px}
.show-detail-modal>.section-head h2{min-width:0;overflow-wrap:anywhere}
@media(max-width:700px){.show-detail-header-actions{gap:7px}.show-detail-header-actions>.secondary{font-size:12px;padding:8px 10px;min-height:40px}.show-detail-modal>.section-head{gap:12px}.show-detail-modal>.section-head h2{font-size:19px}}

/* Compact library cards keep countdowns and availability beside their content. */
.show-grid,.library-grid{align-items:start}
.show-info{flex:0;padding:16px;gap:0}
.show-info h3{min-height:0;margin-bottom:7px;line-height:1.4}
.show-downloads{margin-top:0;padding-top:12px}
.library-next{border-top:1px solid #293d52;margin-top:14px;padding-top:12px}
.library-next-heading{display:flex;justify-content:space-between;gap:8px;color:#79cedc;font-size:11px;font-weight:600;letter-spacing:.4px}
.library-next-heading>span:last-child{color:#97afc7;letter-spacing:0}
.library-next-title{font-size:13px;line-height:1.4;margin:6px 0 10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.library-countdown{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:0}
.library-countdown>span{width:auto;padding:6px 0;border:1px solid #2b4358;background:#091522;border-radius:7px;text-align:center;position:relative}
.library-countdown>span:not(:last-child)::after{content:':';position:absolute;right:-5px;top:7px;color:#7895ad;font-size:19px;z-index:1}
.library-countdown b{display:block;font-size:23px;line-height:1.3;font-variant-numeric:tabular-nums;color:#d9edf5}
.library-countdown small{display:block;font-size:9px;letter-spacing:.6px;color:#91abc3;margin-top:3px}
.show-download-available{padding-top:10px}
.show-download-available>small{margin:4px 0 8px}
.show-download-available>.text-btn{margin-top:4px;min-height:30px;padding:3px}
.show-download-status{padding-top:10px}
@media(max-width:450px){.show-info{padding:12px}.library-next-heading{font-size:10px}.library-countdown b{font-size:20px}.library-countdown small{font-size:8px}.library-next-title{font-size:12px}}
/* Shared rows keep every library card aligned regardless of title or feed state. */
.show-grid,.library-grid{align-items:stretch}
.show-card{height:100%}
.show-info{flex:1;display:grid;grid-template-rows:3em auto auto auto auto minmax(142px,1fr);align-content:start}
.show-info h3{height:3em;min-height:3em;line-height:1.5;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:0 0 7px}
.show-info>p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.show-info>.progress{align-self:start}
.show-info>small{white-space:nowrap}
.library-next{align-self:start}
.library-next-title{height:1.4em}
.show-downloads{display:flex;flex-direction:column;min-height:142px}
.show-download-available{display:flex;flex-direction:column;flex:1}
.show-download-available>.download-link{margin-top:auto}
.show-download-status{flex:1}
@media(max-width:450px){.show-info{grid-template-rows:3em auto auto auto auto minmax(142px,1fr)}.show-info>small{font-size:10px}.show-info>p{font-size:11px}}
.library-countdown b.countdown-placeholder,.release-countdown b.countdown-placeholder{font-family:ui-monospace,Consolas,monospace;font-variant-ligatures:none;letter-spacing:2px}

.show-download-empty{display:flex;flex-direction:column;flex:1;border-top:1px solid #293d52;padding-top:10px}
.download-empty-label{display:flex;align-items:center;gap:7px;color:#acc0d5;font-size:12px;font-weight:600}
.download-empty-label>span{color:#79cedc;font-size:16px;line-height:1}
.show-download-empty p{font-size:12px;line-height:1.6;color:#91abc3;margin:7px 0 10px}
.show-download-empty>.download-link{margin-top:auto;color:#b2c8dc;background:#17293a;border-color:#2e485e}
/* Both feed states use identical status, description, action and footer rows. */
.show-downloads{min-height:0}
.show-download-available,.show-download-empty{display:grid;grid-template-rows:22px 40px 48px 30px;gap:4px;align-content:start;padding-top:10px}
.show-download-available>.download-availability,.show-download-empty>.download-empty-label{align-self:center;line-height:1.4}
.show-download-available>small,.show-download-empty>p{margin:0;font-size:12px;line-height:1.6;align-self:start;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.show-download-available>.download-link,.show-download-empty>.download-link{margin:0;height:48px;min-height:48px;align-self:stretch}
.show-download-available>.text-btn,.show-download-empty>.text-btn{margin:0;padding:3px;min-height:30px;height:30px;width:100%;font-size:12px;text-align:center;align-self:start}
/* Overview prioritizes the next watch, upcoming releases and fresh feed matches. */
.overview-continue{margin:32px 0}
.continue-shelf{display:flex;gap:18px;overflow-x:auto;scroll-snap-type:x proximity;padding:2px 2px 14px;scrollbar-color:#31546a #0c1723}
.continue-card{flex:0 0 260px;min-width:0;border:1px solid #293d52;border-radius:12px;overflow:hidden;background:#101d2c;scroll-snap-align:start;display:flex;flex-direction:column}
.continue-poster{padding:0;border:0;width:100%;aspect-ratio:2/3;overflow:hidden;background:#091522}
.continue-poster img{width:100%;height:100%;object-fit:cover;display:block}
.continue-copy{padding:16px;display:flex;flex-direction:column;flex:1}
.continue-copy h3{font-size:17px;line-height:1.5;height:3em;margin:0 0 8px;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.continue-copy>small{font-size:12px;color:#91abc3;margin-top:6px}
.continue-episode{border-top:1px solid #293d52;margin-top:12px;padding-top:12px}
.continue-episode>span{font-size:11px;color:#79cedc;font-weight:600;letter-spacing:.5px}
.continue-episode>p{font-size:14px;color:#e1edf7;line-height:1.5;height:3em;margin:5px 0 12px;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.continue-copy>button{margin-top:auto;width:100%;min-height:44px;font-size:14px}
.overview-bottom{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:20px 0 32px}
.overview-bottom>.panel{min-width:0}
.overview-bottom .section-head{gap:12px;align-items:start}
.overview-bottom .section-head h2{margin-bottom:5px}
.overview-bottom .section-head p{font-size:13px;margin-bottom:0}
.overview-bottom .section-head>.text-btn{white-space:nowrap;font-size:13px}
.overview-empty{color:#91abc3;font-size:14px;padding:16px 0;line-height:1.7}
.overview-download-row{display:flex;align-items:center;gap:12px;border-bottom:1px solid #293d52;padding:14px 0}
.overview-download-row:last-child{border:0}
.overview-download-poster{width:44px;height:66px;flex-shrink:0;border-radius:5px;overflow:hidden}
.overview-download-poster img{width:100%;height:100%;object-fit:cover}
.overview-download-copy{min-width:0;flex:1}
.overview-download-copy strong{font-size:14px;display:block}
.overview-download-copy p{font-size:12px;margin:4px 0;color:#a8bed3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.overview-download-copy small{font-size:11px;color:#79cedc}
.overview-download-row>a{font-size:12px;padding:9px;white-space:nowrap;flex-shrink:0}
@media(max-width:1050px){.overview-bottom{grid-template-columns:1fr}}
@media(max-width:700px){.continue-card{flex-basis:230px}.overview-continue>.section-head{align-items:start;gap:14px}.overview-continue>.section-head .text-btn{font-size:12px}.overview-continue>.section-head p{font-size:14px}.overview-download-row{gap:10px}.overview-download-copy strong{font-size:13px}}
.release-carousel-frame{position:relative;padding:0 24px}
.release-carousel-frame>.release-side-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:44px;height:56px;border-radius:12px;background:#14283ef2;border:1px solid #3a6078;box-shadow:0 4px 18px #0006;color:#a5edf4;font-size:24px}
.release-carousel-frame>#release-prev{left:-20px}
.release-carousel-frame>#release-next{right:-20px}
.release-carousel-frame>.release-side-arrow:disabled{opacity:.35;background:#101c2b;box-shadow:none}
@media(max-width:700px){.release-carousel-frame{padding:0 18px}.release-carousel-frame>.release-side-arrow{width:36px;height:48px;font-size:21px}.release-carousel-frame>#release-prev{left:-10px}.release-carousel-frame>#release-next{right:-10px}}
/* Quiet circular controls align with artwork rather than the full card height. */
.release-carousel-frame{padding:0}
.release-carousel-frame>.release-side-arrow{top:432px;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;padding:0;background:#183349;border:1px solid #54d8e456;box-shadow:0 4px 14px #0003;color:var(--cyan);transition:background .18s,border-color .18s,box-shadow .18s,opacity .18s}
.release-side-arrow svg{width:22px;height:22px}
.release-carousel-frame>#release-prev{left:-20px}
.release-carousel-frame>#release-next{right:-20px}
.release-carousel-frame>.release-side-arrow:hover:not(:disabled){background:#17394a;border-color:#69dce995;box-shadow:0 0 0 4px #55dbe90c,0 5px 18px #0005;filter:none}
.release-carousel-frame>.release-side-arrow:focus-visible{outline:2px solid #55dbe9;outline-offset:4px}
.release-carousel-frame>.release-side-arrow:disabled{opacity:.2;background:#0c1928;box-shadow:none}
@media(max-width:700px){.release-carousel-frame>.release-side-arrow{top:405px;width:40px;height:40px}.release-carousel-frame>#release-prev{left:-12px}.release-carousel-frame>#release-next{right:-12px}.release-side-arrow svg{width:20px;height:20px}}
@media(max-width:380px){.release-carousel-frame>.release-side-arrow{top:382.5px}}

/* Watch queue groups episodes into readable, consistently spaced show panels. */
.queue-summary{display:flex;gap:12px;flex-wrap:wrap;margin:-8px 0 24px}
.queue-summary>span{padding:10px 16px;background:#102132;border:1px solid #294255;border-radius:9px;color:#a4bdd3;font-size:14px}
.queue-summary strong{color:#80e0e8;font-size:19px;margin-right:7px}
.queue-toolbar{display:grid;grid-template-columns:2fr 1fr 1fr;gap:18px;padding:20px;background:#101d2c;border:1px solid #293d52;border-radius:12px;margin-bottom:20px}
.queue-toolbar label{margin:0;font-size:13px;color:#9db5cc}
.queue-toolbar input,.queue-toolbar select{margin-top:7px;width:100%;min-height:46px}
.queue-result-count{font-size:13px;color:#91abc3;margin:0 0 16px}
.queue-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start}
.queue-show{background:#101d2c;border:1px solid #2b4055;border-radius:14px;overflow:hidden;min-width:0}
.queue-show-header{display:flex;align-items:center;gap:16px;padding:20px;background:linear-gradient(120deg,#183044,#101d2c);border-bottom:1px solid #2b4055}
.queue-show-poster{width:58px;height:87px;flex-shrink:0;padding:0;border:1px solid #3b5369;overflow:hidden;border-radius:7px;background:#0b1623}
.queue-show-poster img{width:100%;height:100%;object-fit:cover;display:block}
.queue-show-header>div{flex:1;min-width:0}
.queue-show-header h2{font-size:19px;line-height:1.4;margin:0 0 6px;overflow-wrap:anywhere}
.queue-show-header p{font-size:13px;color:#98bbd2;margin:0}
.queue-show-header>.text-btn{font-size:12px;white-space:nowrap;padding:0}
.queue-episodes{padding:0 20px}
.queue-episode{display:flex;align-items:center;gap:18px;padding:22px 0;border-bottom:1px solid #293d52}
.queue-episode:last-child{border:0}
.queue-episode-copy{min-width:0;flex:1}
.queue-episode-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:10px;color:#88b8ce;letter-spacing:.5px;margin-bottom:8px}
.queue-episode-meta .queue-special{color:#90e1e7;background:#55dbe913;border:1px solid #55dbe934;padding:2px 6px;border-radius:4px}
.queue-episode h3{font-size:17px;line-height:1.45;margin:0 0 7px}
.queue-episode p{font-size:13px;line-height:1.7;margin:0 0 9px;color:#9bb1c8}
.queue-episode small{display:block;font-size:12px;color:#809db7}
.queue-watch{min-width:132px;min-height:44px;font-size:13px;white-space:nowrap;color:#8be1e8;background:#55dbe90a;border-color:#55dbe937;flex-shrink:0}
@media(max-width:1050px){.queue-groups{grid-template-columns:1fr}}
@media(max-width:700px){.queue-toolbar{grid-template-columns:1fr 1fr;gap:14px;padding:16px}.queue-toolbar>label:first-child{grid-column:1/-1}.queue-summary{gap:8px}.queue-summary>span{font-size:12px;padding:8px 10px}.queue-show-header{padding:16px;gap:12px}.queue-show-header h2{font-size:17px}.queue-show-header>.text-btn{font-size:11px}.queue-episodes{padding:0 16px}.queue-episode{flex-wrap:wrap;gap:12px;padding:18px 0}.queue-episode-copy{flex-basis:100%}.queue-watch{width:100%}.queue-show-poster{width:48px;height:72px}}
.download-filterbar{grid-template-columns:2fr 1fr}
@media(max-width:700px){.download-filterbar{grid-template-columns:1fr}}

.telegram-settings-head{display:flex;align-items:start;justify-content:space-between;gap:20px;margin-bottom:24px}
.telegram-settings-head p{font-size:15px;margin:4px 0 0;color:#99b6d0}
.telegram-settings-head .pill{white-space:nowrap;font-size:11px}
#telegram-group-settings .settings-fields small{display:block;font-size:12px;color:#91abc3;line-height:1.6;margin-top:7px}
.telegram-shared-note{border:1px solid #28516a;background:#102b3b66;padding:17px;border-radius:10px;margin:22px 0}
.telegram-shared-note strong{color:#79e0ed;font-size:14px}
.telegram-shared-note p{font-size:14px;margin:6px 0}
.telegram-shared-note small{font-size:12px;color:#96b5cd}
#telegram-form-status{font-size:13px;color:#9fd8e0;margin:12px 0 0}
.telegram-command-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:24px}
.telegram-command-grid>div{background:#0b1724;border:1px solid #2a4054;border-radius:9px;padding:14px}
.telegram-command-grid strong{display:block;color:#77ddeb;font-size:15px}
.telegram-command-grid small{display:block;color:#91abc3;font-size:12px;line-height:1.6;margin-top:6px}
.telegram-setup-help{margin-top:24px;border-top:1px solid #2a4054;padding-top:18px;color:#a0bad2;font-size:13px;line-height:1.8}
.telegram-setup-help summary{cursor:pointer;color:#d8e9f7;font-weight:600}
.telegram-setup-help li{margin:8px 0}
@media(max-width:700px){.telegram-settings-head{flex-wrap:wrap;gap:12px}.telegram-command-grid{grid-template-columns:1fr}}
.header-right>.account-button{cursor:default}

header>.brand-home{background:transparent;border:0;padding:0;text-align:left;flex-shrink:0;border-radius:8px}
header>.brand-home:focus-visible{outline:2px solid var(--cyan);outline-offset:6px}
header .brand img{width:60px;height:60px;padding:2px;background:transparent;border-radius:0}
@media(max-width:700px){header .brand img{width:48px;height:48px;padding:2px}}
@media(max-width:380px){header .brand img{width:42px;height:42px}}
header .brand img{position:relative;top:-3px}

.user-account-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
#password-form{margin-top:20px}
#password-form label small{display:block;color:var(--muted);margin-top:7px}
#password-error{color:#f49b9b;min-height:1.4em;overflow-wrap:anywhere}

.queue-status-tabs{margin-bottom:20px;display:flex;flex-wrap:wrap;gap:10px}
.queue-status-tabs button{min-height:44px;font-size:16px}
.queue-status-tabs span{font-size:13px;margin-left:8px;opacity:.8}
.queue-show-header>.queue-show-actions{flex:0 0 auto;display:flex;flex-direction:column;align-items:flex-end;gap:10px}
.queue-show-actions .secondary{font-size:13px;min-height:40px}
.queue-episode-actions,.detail-episode-actions{display:flex;flex-direction:column;gap:10px;flex-shrink:0}
.queue-episode-actions button,.detail-episode-actions button{min-width:140px;min-height:42px;font-size:13px}
.show-manage label{margin:0 0 18px}
.show-manage label small{display:block;font-size:13px;line-height:1.6;margin-top:9px;color:#9bb1c8}
.planned-empty-show{padding:20px 0;font-size:14px}
.season-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}
.planned-season-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 0;border-bottom:1px solid #293d52;color:#91dbe4;font-size:14px}
@media(max-width:700px){.season-actions{justify-content:flex-start}.planned-season-row{flex-wrap:wrap}.planned-season-row button{width:100%}}
.library-toolbar{flex-wrap:wrap;align-items:center}
.library-toolbar .library-sort-label{display:flex;align-items:center;gap:10px;margin:0;font-size:14px;white-space:nowrap;color:#b5cde0}
.library-sort-label select{width:auto;min-width:160px;margin:0}
.overview-stat-link{display:flex;align-items:center;gap:16px;width:100%;text-align:left;border:0;padding:0;background:transparent;color:inherit}
.overview-stat-link:hover{background:transparent;filter:none}
.overview-stat-link:focus-visible{outline:2px solid var(--cyan);outline-offset:8px;border-radius:4px}
.overview-stat-copy{min-width:0;flex:1}
.overview-stat-link .stat-icon svg{width:28px;height:28px;display:block;flex-shrink:0}
.overview-ready-empty{padding:24px;border:1px solid #294255;border-radius:12px;background:#102132}
.overview-ready-empty h3{font-size:19px;margin:0 0 10px}
.overview-ready-empty p{font-size:15px;line-height:1.7}
.overview-ready-empty .settings-actions{justify-content:flex-start}
.release-plan-status{display:block;min-height:24px;font-size:13px;line-height:24px;margin-top:8px;color:#91dbe4}
.overview-planned-label{color:#91dbe4;font-size:12px;white-space:nowrap}
.overview-download-actions{display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex-shrink:0}
.overview-download-actions .secondary,.overview-download-actions .text-btn{font-size:13px;white-space:nowrap}
.overview-download-actions .secondary{padding:9px 12px}
.overview-download-copy small{font-size:13px}
.overview-release-options{font-size:13px;max-width:260px}
.overview-release-options summary{color:var(--cyan);cursor:pointer;text-align:right}
.overview-release-options a{display:block;padding:8px 0;overflow-wrap:anywhere}
.jellyfin-show{border:1px solid var(--border);border-radius:10px;padding:16px;margin-top:14px}
.jellyfin-show summary{display:flex;justify-content:space-between;gap:14px;cursor:pointer;flex-wrap:wrap}
.jellyfin-show summary span,.jellyfin-episode small{color:var(--muted);font-size:13px}
.jellyfin-show>p{margin:14px 0}
.jellyfin-episode{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 0;border-top:1px solid var(--border)}
.jellyfin-episode small{display:block;margin-top:6px}
.jellyfin-availability{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin-top:12px;font-size:13px;line-height:1.4;color:var(--cyan)}
.jellyfin-availability>span,.jellyfin-availability>.text-btn,.jellyfin-availability>a{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:36px;margin:0;padding:7px 10px;font-size:13px;line-height:1.4;white-space:nowrap}
.jellyfin-availability>.text-btn,.jellyfin-availability>a{border:1px solid transparent;border-radius:6px}
.jellyfin-availability span{border:1px solid var(--accent-line);border-radius:6px;background:var(--accent-wash)}
.jellyfin-player-modal{width:1100px}
.jellyfin-player video{display:block;width:100%;max-height:65vh;background:#000;border-radius:10px}
.jellyfin-player-options{display:flex;flex-wrap:wrap;align-items:flex-end;gap:16px;margin-top:20px}
.jellyfin-player-options label{flex:1;min-width:180px;margin:0}
.jellyfin-player-options select{margin-top:8px}
.jellyfin-player>p{font-size:14px;line-height:1.7;margin:18px 0 0}
.jellyfin-episode>div:last-child{display:flex;flex-wrap:wrap;gap:8px}
@media(max-width:700px){.jellyfin-episode{flex-wrap:wrap}.jellyfin-episode>div:last-child{width:100%}}
.accent-options{border:0;padding:0;margin:0;display:flex;flex-wrap:wrap;align-content:flex-start;gap:10px;min-width:0}
.accent-options legend{padding:0;margin-bottom:10px;font-size:15px;color:#9bb1c8}
.accent-options .accent-choice{display:flex;align-items:center;gap:9px;padding:12px;margin:0;border:1px solid #344257;border-radius:9px;background:#0b1420;cursor:pointer;font-size:14px}
.accent-choice input{width:16px;height:16px;margin:0;accent-color:var(--cyan)}
.accent-choice:has(input:checked){border-color:var(--cyan);box-shadow:0 0 0 1px var(--cyan)}
.accent-swatch{width:18px;height:18px;border-radius:50%;background:#55dbe9;flex-shrink:0}
[data-swatch="blue"] .accent-swatch{background:#6db0ff}
[data-swatch="neon-blue"] .accent-swatch{background:#43a9ff;box-shadow:0 0 10px #43a9ff66}
[data-accent="neon-blue"]{--cyan:#43a9ff}
[data-accent="neon-blue"] .primary{background:linear-gradient(110deg,#60b9ff,#389cf3);border-color:#79c5ff;color:#071827;box-shadow:0 3px 14px #43a9ff25}
[data-accent="neon-blue"] nav button.active,[data-accent="neon-blue"] .settings-sidebar button.active,[data-accent="neon-blue"] .tabs button.active,[data-accent="neon-blue"] .season-tabs button.active{background:#43a9ff14;color:var(--cyan);border-color:#43a9ff55;box-shadow:0 0 12px #43a9ff0f}
[data-accent="neon-blue"] .stat-icon{background:#43a9ff12;border-color:#43a9ff30}
[data-accent="neon-blue"] .progress i{background:var(--cyan)}
@media(max-width:700px){.overview-stat-link{gap:10px}.overview-download-row{flex-wrap:wrap}.overview-download-actions{flex-direction:row;align-items:center;justify-content:flex-end;flex-basis:100%}.overview-ready-empty{padding:18px}}
@media(max-width:700px){.library-toolbar .tabs{width:100%}.library-toolbar #library-search{flex:1;min-width:180px}.library-toolbar .library-sort-label{flex:1}.library-sort-label select{flex:1;min-width:0}}
@media(max-width:1050px){.detail-episode-actions{grid-column:2;align-items:flex-start}}
@media(max-width:700px){.queue-show-header{flex-wrap:wrap}.queue-show-header>.queue-show-actions{flex-basis:100%;flex-direction:row;align-items:center;justify-content:flex-end}.queue-episode-actions{width:100%;flex-direction:row;flex-wrap:wrap}.queue-episode-actions button{flex:1;min-width:130px}.detail-episode-actions{flex-direction:row;flex-wrap:wrap}.detail-episode-actions button{min-width:0;flex:1}}
.jellyfin-card-availability{margin-top:auto;padding-top:14px;display:grid;gap:12px}
.jellyfin-card-availability>span{font-size:13px;color:var(--accent,#39cce3)}
.jellyfin-card-availability button{width:100%}
.release-evidence{display:block;margin-top:8px;font-size:12px;line-height:1.6;color:var(--muted)}
.release-evidence>span{display:block}
.schedule-source-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:24px 0}
.schedule-source-cards article{border:1px solid var(--border);border-radius:12px;padding:22px;background:var(--input-surface)}
.schedule-source-cards h3{margin:0 0 12px}.schedule-source-cards p{font-size:14px;line-height:1.6;margin:14px 0 0;color:var(--muted)}
.source-status{display:inline-flex;border:1px solid var(--accent-line);border-radius:6px;padding:5px 10px;background:var(--accent-wash);color:var(--cyan);font-size:13px}
.source-status[data-connected="false"]{color:var(--muted);background:transparent;border-color:var(--border)}
.source-management,.source-refresh-report{margin:22px 0;border:1px solid var(--border);border-radius:10px;padding:16px}
.source-management summary,.source-refresh-report summary{cursor:pointer;font-weight:600}.source-management form{margin-top:20px}.source-management form>small{display:block;line-height:1.6;color:var(--muted);margin-top:10px}
.source-refresh{justify-content:flex-start;margin-top:24px}.tmdb-credits{margin-top:28px}.tmdb-credits img{width:120px;height:auto}
@media(max-width:700px){.schedule-source-cards{grid-template-columns:1fr}}
.show-info>.library-progress-meta{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:20px 18px;gap:2px 8px;min-height:40px;line-height:20px;white-space:nowrap}
.library-progress-meta>.library-watch-count{grid-column:1;grid-row:1;float:none}
.library-progress-meta>.library-next-date{grid-column:2;grid-row:1;float:none;text-align:right}
.library-progress-meta>.library-time-status{grid-column:1/-1;grid-row:2;float:none;text-align:right;font-size:11px;line-height:18px;color:var(--muted)}
@media(max-width:450px){.show-info>.library-progress-meta{grid-template-columns:1fr;grid-template-rows:16px 16px 16px;min-height:52px;line-height:16px;gap:2px}.library-progress-meta>.library-next-date{grid-column:1;grid-row:2;text-align:left}.library-progress-meta>.library-time-status{grid-column:1;grid-row:3;text-align:left}}

.countdown[data-estimated="true"]>span{border-style:dashed}

.jellyfin-connection{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:16px 0;color:var(--muted);font-size:13px}.jellyfin-connection-badge{border:1px solid var(--border);border-radius:20px;padding:6px 12px}.jellyfin-connection-badge[data-state="online"]{color:var(--cyan);border-color:var(--accent-line);background:var(--accent-wash)}.jellyfin-connection-badge:is([data-state="unreachable"],[data-state="reconnect"]){color:#efc880;border-color:#efc88066}
.modal.jellyfin-browser-modal{width:1100px;max-width:calc(100vw - 40px);max-height:88vh;padding:0;display:flex;flex-direction:column;overflow:hidden}
.jellyfin-browser-modal>.section-head{flex-shrink:0;margin:0;padding:22px 26px;border-bottom:1px solid var(--border);background:var(--surface);gap:20px}
.jellyfin-browser-modal>.section-head h2{font-size:24px;line-height:1.4;margin:0}
.jellyfin-browser-layout{display:grid;grid-template-columns:190px minmax(0,1fr);min-height:0;overflow:hidden}
.jellyfin-browser-summary{padding:24px 20px;display:flex;flex-direction:column;gap:12px;border-right:1px solid var(--border);background:var(--input-surface);overflow:auto;font-size:13px;color:var(--muted)}
.jellyfin-browser-summary>strong{font-size:15px;color:var(--text)}.jellyfin-browser-summary p{font-size:13px;line-height:1.7;margin:8px 0 0}
.jellyfin-browser-poster{aspect-ratio:2/3;overflow:hidden;border-radius:9px;margin-bottom:6px;background:var(--surface-raised)}
.jellyfin-browser-poster img{width:100%;height:100%;object-fit:cover}
.jellyfin-browser-main{display:flex;flex-direction:column;min-height:0;padding:22px 24px;overflow:hidden}
.jellyfin-browser-seasons{flex-shrink:0;display:flex;overflow-x:auto;gap:10px;padding:3px 2px 10px;margin-bottom:12px}
.jellyfin-browser-seasons button{flex-shrink:0;min-width:136px;text-align:left}
.jellyfin-browser-seasons button small{font-size:11px;white-space:nowrap}
.jellyfin-browser-filters{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:14px;flex-shrink:0}
.jellyfin-browser-filters label{font-size:12px;margin:0;color:var(--muted)}
.jellyfin-browser-filters :is(input,select){margin-top:7px;padding:10px 12px;min-height:42px;font-size:14px;width:100%}
#jellyfin-season-heading h3{font-size:17px;margin:20px 0 12px}
.jellyfin-browser-episodes{overflow:auto;min-height:0;max-height:48vh;padding-right:5px;display:flex;flex-direction:column;gap:10px}
.jellyfin-episode-card{display:grid;grid-template-columns:105px minmax(0,1fr) 140px;align-items:center;gap:16px;padding:16px;background:var(--surface);border:1px solid var(--border);border-radius:10px}
.jellyfin-episode-art{aspect-ratio:16/9;overflow:hidden;border-radius:7px;background:var(--surface-raised);display:grid;place-items:center;color:var(--muted);font-size:25px;font-weight:600}
.jellyfin-episode-art img{width:100%;height:100%;object-fit:cover}
.jellyfin-episode-meta{display:flex;gap:12px;color:var(--muted);font-size:11px;letter-spacing:.5px}
.jellyfin-episode-copy h4{font-size:15px;line-height:1.5;margin:5px 0 8px;overflow-wrap:anywhere}
.jellyfin-watched-badge{display:inline-block;font-size:11px;line-height:1.3;color:var(--cyan);border:1px solid var(--accent-line);background:var(--accent-wash);border-radius:5px;padding:4px 7px}
.jellyfin-watched-badge[data-watched="true"]{color:var(--muted);border-color:var(--border);background:transparent}
.jellyfin-episode-actions{display:flex;flex-direction:column;gap:8px;align-items:stretch}
.jellyfin-episode-actions .primary{font-size:13px;padding:10px 12px;min-height:42px;white-space:nowrap}
.jellyfin-version-label{margin:0;font-size:11px;color:var(--muted)}.jellyfin-version-label select{margin-top:4px;width:100%;font-size:12px;padding:7px}
@media(max-width:700px){.modal.jellyfin-browser-modal{max-width:calc(100vw - 24px);max-height:92vh}.jellyfin-browser-modal>.section-head{padding:16px 18px}.jellyfin-browser-modal>.section-head h2{font-size:20px}.jellyfin-browser-layout{grid-template-columns:minmax(0,1fr)}.jellyfin-browser-summary{padding:12px 18px;border-right:0;border-bottom:1px solid var(--border);gap:6px}.jellyfin-browser-poster,.jellyfin-browser-summary p{display:none}.jellyfin-browser-main{padding:16px}.jellyfin-browser-filters{grid-template-columns:minmax(0,1fr) 130px;gap:10px}.jellyfin-episode-card{grid-template-columns:70px minmax(0,1fr);gap:10px 12px;padding:12px}.jellyfin-episode-actions{grid-column:2;align-items:flex-start}.jellyfin-episode-actions .primary{min-width:120px}.jellyfin-browser-episodes{max-height:45vh}.jellyfin-episode-art{align-self:start}.jellyfin-episode-copy h4{font-size:14px}.jellyfin-browser-seasons button{min-width:130px}}

/* Planned shows use a continuous stack rather than uneven grid rows. */
.planned-groups{grid-template-columns:minmax(0,1fr);gap:20px}
.planned-groups .queue-episodes{max-height:440px;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable}
.planned-groups .queue-episode-copy{min-width:0}
@media(max-width:700px){.planned-groups{gap:16px}.planned-groups .queue-episodes{max-height:55vh}}

/* Highlight the complete show card without a playback overlay or poster zoom. */
.show-card{transition:border-color .2s,box-shadow .2s}
.show-card:hover,.show-card:focus-within{border-color:#427287;box-shadow:0 0 0 1px rgba(62,207,225,.16),0 8px 24px rgba(0,0,0,.16)}
.show-card .poster:hover{filter:none}
.show-card .poster:hover img{transform:none}

.download-release .download-torrent-name{margin:10px 0 0;font-size:13px;line-height:1.65;color:var(--muted);overflow-wrap:anywhere;white-space:normal}
