/* Shared spacing rhythm, including space for focus rings and the floating dock. */
:root{
  --section-space:48px;
  --heading-space:24px;
  --surface-inset:32px;
  --focus-room:12px;
  --dock-clearance:112px;
}
html{scroll-padding-block:24px var(--dock-clearance)}
button,a,input,select{scroll-margin-block:16px;scroll-margin-inline:12px}
.shelves{padding-top:var(--section-space)}
.shelf{margin-bottom:var(--section-space)}
.section-heading{gap:24px;margin-bottom:var(--heading-space);align-items:flex-end}
.section-heading>div{min-width:0}
.section-heading h2{line-height:1.2}
.section-heading p{line-height:1.5;margin-top:8px}
.section-heading .text-button{flex-shrink:0}
.poster-row{
  padding-top:var(--focus-room);padding-bottom:var(--focus-room);padding-left:var(--focus-room);
  margin-left:calc(-1 * var(--focus-room));margin-top:calc(-1 * var(--focus-room));
  scroll-padding-inline:var(--focus-room) var(--gutter);
}
.poster-caption{padding-top:16px;line-height:1.4}
.poster-caption strong,.poster-caption span{overflow-wrap:anywhere}
.continue-description{gap:12px;line-height:1.5;padding-top:12px}
.continue-description>span{min-width:0}.continue-description>span:last-child{flex-shrink:0}
.channel-card{padding:24px;gap:16px}
#home-page>footer{padding-top:24px;padding-bottom:var(--dock-clearance)}
.library-page{padding-bottom:var(--dock-clearance)}
.library-heading>p:first-child{margin-top:0}
.library-heading>p:last-child{line-height:1.5;margin-top:0;margin-bottom:32px}
.live-browser-heading{margin-bottom:var(--heading-space)}
.category-tile{gap:0;justify-content:flex-start;padding:24px}
.category-tile strong{padding-right:16px}
.category-tile-count{line-height:1.4;padding-right:24px;margin-top:auto}
.channel-tile small,.list-option small{line-height:1.5}
#library-content.playlist-library{display:flex;flex-direction:column;gap:0;max-width:880px}
.list-option strong{white-space:nowrap}
.list-option{margin-bottom:12px}
.reconnect-list{align-self:flex-start;margin:-4px 0 20px;padding:8px 12px}

/* Consistent dialog edges and breathing room around their controls. */
dialog:not(#player-dialog){overscroll-behavior:contain;scroll-padding:24px}
.small-dialog{padding:var(--surface-inset)}
.small-dialog>.eyebrow{margin-top:0;padding-right:40px;line-height:1.5}
.small-dialog h2{line-height:1.2;margin:16px 0}
.small-dialog>.muted{margin:0 0 24px}
.detail-content{padding:16px var(--surface-inset) var(--surface-inset)}
.detail-content>.eyebrow{margin-top:0}
.detail-actions{flex-wrap:wrap;margin-top:24px;gap:12px}
.import-dialog{padding:var(--surface-inset)}
.import-header h2{line-height:1.2;margin:12px 0}
.import-header>p:last-child{line-height:1.5}
.import-layout{gap:32px;margin-top:32px}
.import-methods label>span{min-height:80px}
.import-fields{padding-left:32px}
.import-fields input{height:48px;padding:12px 16px;margin-bottom:20px}
.import-fields .password-field input{padding-right:68px}
.password-field button{top:8px}
.import-fields .primary{min-height:48px}
.pair-actions,#pair-approval>div{flex-wrap:wrap}

.settings-shell{--settings-inset:32px}
.settings-header{padding:24px var(--settings-inset)}
.settings-content{padding:32px var(--settings-inset);scroll-padding:24px;overscroll-behavior:contain}
.settings-footer{padding:16px var(--settings-inset)}
.settings-section-heading,.settings-current-list{margin-bottom:32px}
.settings-group{margin-bottom:24px}
.settings-current-list{gap:16px;padding:20px}
.settings-header .close-dialog{width:40px;height:40px}
.settings-layout>nav{scroll-padding:12px}

.device-profile-menu{max-height:calc(100vh - 132px);overflow:auto;scroll-padding:16px;overscroll-behavior:contain}
.profile-menu-heading{padding-bottom:24px}
.profile-menu-action,.profile-menu-action+.profile-menu-action{min-height:48px;padding:12px 0}
.profile-upgrade{margin-top:12px}
.profile-menu-heading h2{line-height:1.35}
.profile-launcher{padding-bottom:32px}
.playlist-profile strong{line-height:1.5}
.launcher-device small{line-height:1.5}

.player-channel-info{overflow:hidden}
#player-source-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.4}
.player-subtitle-panel{scroll-padding:16px;overscroll-behavior:contain}
.player-subtitle-panel header{margin-bottom:16px}
.player-pref{gap:16px;padding:4px 0;min-height:52px}
.player-pref-label{min-width:0;line-height:1.4}
.player-stepper{width:168px;gap:4px}
.player-stepper button{width:32px}
.player-stepper output{min-width:0;flex:1;line-height:1.4}
#player-style-sample{margin-top:8px;padding:12px 8px}

@media(min-width:1700px){
  :root{--section-space:64px;--heading-space:32px;--surface-inset:40px;--dock-clearance:128px}
  .settings-shell{--settings-inset:40px}
  .settings-header,.settings-content{padding-top:32px;padding-bottom:32px}
  .category-tile{padding:28px}.channel-card{padding:28px}
}
@media(max-width:900px){.settings-shell{--settings-inset:24px}}
@media(max-width:700px){
  :root{--gutter:24px;--section-space:32px;--heading-space:20px;--surface-inset:24px;--dock-clearance:96px}
  .app-header{padding-inline:24px}
  .header-actions{flex-shrink:1}.app-header .playlist-selector{min-width:0;max-width:32vw}
  .section-heading{gap:16px}.section-heading h2{line-height:1.3}
  .continue-row{padding-top:12px;padding-bottom:12px;margin-top:-12px;margin-left:-12px;padding-left:12px}
  .channel-card{padding:16px}
  .category-tile{padding:20px}.category-tile>svg{right:20px;bottom:20px}
  .category-tile strong{padding-right:0}
  .import-layout{gap:24px;margin-top:24px}
  .import-fields{padding:24px 0 0}
  .import-methods label>span{min-height:80px}
  .device-profile-menu{right:24px;max-width:calc(100vw - 48px);max-height:calc(100vh - 112px)}
  .settings-shell{--settings-inset:20px;max-height:calc(100vh - 24px)}
  .settings-header{padding-block:20px}.settings-content{padding-block:24px}
  .settings-footer{padding-block:12px}
  .player-stepper{width:156px}
}
@media(max-width:360px){
  .app-header{gap:8px;padding-inline:16px}.app-header .brand-logo{width:68px}
  .app-header .playlist-selector{width:110px}.header-actions{gap:4px}
}
/* Playback status must not cover the open subtitle controls. */
.player-dialog[data-settings-open=true] .player-message{visibility:hidden}

/* Compact section headings, with one clear title instead of stacked eyebrows. */
.library-heading{margin-bottom:28px}
.library-heading h1{margin:0;line-height:1.2}
.library-heading>p:last-child{margin:12px 0 0}
.live-browser-heading{margin-bottom:24px;min-height:40px}
.search-box{margin-bottom:28px}
#search-input,#search-input:focus{background:transparent!important;border-radius:0;box-shadow:none}
.poster-card{--poster-radius:16px;border-radius:var(--poster-radius);background:transparent}
.poster-art{border-radius:var(--poster-radius);box-shadow:none}
.poster-caption{display:block;padding:16px 2px 0}
#library-page[data-page=playlists]{display:flex;flex-direction:column;justify-content:center;align-items:center}
#library-page[data-page=playlists]>.library-heading{width:100%;max-width:880px;text-align:center}
#library-page[data-page=playlists] .library-heading>p{max-width:none}
#library-page[data-page=playlists]>#library-content{width:100%;max-width:880px}
@media(min-width:1700px){.library-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.library-heading{margin-bottom:32px}}
/* The profile menu stays anchored to the fixed TV utility bar. */
.device-profile-menu{position:fixed}
@media(min-width:701px){
 .device-profile-menu{width:420px;padding:28px}
 .profile-menu-heading>div{max-width:none}
 .profile-menu-heading h2{font-size:20px}
 .profile-menu-heading p{font-size:15px;line-height:1.4}
 .device-profile-menu .account-plan{font-size:15px;padding:6px 10px}
 .device-license span,.device-license strong{font-size:16px;line-height:1.4}
 .device-identity strong{font-size:24px}
 .device-identity small{font-size:14px;line-height:1.5;color:#a5a5af}
 .profile-menu-action{font-size:18px;min-height:54px}
 .profile-upgrade{font-size:18px;min-height:54px}
 .profile-caption{font-size:14px;line-height:1.5;color:#a5a5af}
}
/* Kaynağın verdiği puan: başlık/tür satırının sağında, yalnızca sayı. */
.poster-caption{display:flex;align-items:center;justify-content:space-between;gap:12px}
.poster-caption-text{display:block;min-width:0;margin:0}
.poster-caption .poster-caption-text>span{display:block}
.poster-caption .poster-rating{display:block;flex-shrink:0;margin:0;font-size:15px;font-weight:650;color:#ededf0;font-variant-numeric:tabular-nums;letter-spacing:-.2px}
@media(min-width:1700px){.poster-caption .poster-rating{font-size:17px}}

/* Dizi detayı: sezon seçici ve soldan sağa bölüm listesi. */
.detail-episodes{margin-top:28px;display:flex;flex-direction:column;gap:16px;min-width:0}
.season-picker{position:relative;align-self:flex-start;z-index:2}
.season-button{gap:10px;min-height:44px;padding:0 16px;border:1px solid #ffffff24;border-radius:12px;background:#ffffff0d;font-size:15px;font-weight:600}
.season-button svg{width:15px;height:15px;transform:rotate(90deg);transition:transform 180ms ease}
.season-button[aria-expanded=true] svg{transform:rotate(-90deg)}
.season-button:disabled{opacity:1;cursor:default}.season-button:disabled svg{display:none}
.season-menu{position:absolute;top:calc(100% + 8px);left:0;min-width:200px;padding:6px;display:flex;flex-direction:column;gap:2px;border:1px solid #ffffff24;border-radius:14px;background:#2a2a2e;box-shadow:0 18px 40px #0009}
.season-menu button{justify-content:space-between;gap:16px;min-height:44px;padding:0 12px;border-radius:9px;font-size:14px;text-align:left}
.season-menu button small{color:#9b9ba3;font-size:12px}
.season-menu button[aria-selected=true]{background:#ffffff14}
.episode-row{display:flex;gap:16px;overflow-x:auto;padding:6px 4px 10px;margin:0 -4px;scrollbar-width:none;scroll-snap-type:x proximity}
.episode-row::-webkit-scrollbar{display:none}
.episode-card{flex:0 0 220px;display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:0;text-align:left;border-radius:12px;scroll-snap-align:start;transition:transform 180ms ease}
.episode-card:focus-visible{transform:translateY(-3px);outline-offset:3px}
.episode-art{position:relative;display:block;aspect-ratio:16/9;overflow:hidden;border-radius:12px;background:#303034}
.episode-art svg,.episode-art img{display:block;width:100%;height:100%;object-fit:cover;stroke:none}
.episode-progress{position:absolute;left:0;right:0;bottom:0;height:4px;background:#ffffff40}
.episode-progress span{display:block;height:100%;background:#f5f5f7}
.episode-text{display:flex;flex-direction:column;gap:4px;padding:0 2px}
.episode-text strong{font-size:14px;font-weight:600}
.episode-text span{font-size:12px;color:#a4a4ab;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.episode-status{margin:0;color:#a4a4ab;font-size:13px}
.art-fallback{display:grid;place-items:center;width:100%;height:100%;font-size:42px;font-weight:700;color:#ffffff59;background:linear-gradient(145deg,#3a3a40,#232327)}
.poster-art img{display:block;width:100%;height:100%;object-fit:cover}
#detail-art img{display:block;width:100%;height:100%;object-fit:cover}
@media(min-width:1700px){.episode-card{flex-basis:260px}.episode-text strong{font-size:16px}.episode-text span{font-size:13px}}
/* Gerçek listelerden gelen slider görselleri ve vitrin rafları */
.hero-art>img,.hero-backdrop>img{width:100%;height:100%;object-fit:cover;display:block}
.hero-art>img{object-position:center 20%}
.storefront-rows[hidden]{display:none}
.storefront-rows .channel-row{grid-template-columns:repeat(4,1fr)}
