/* Shared locale controls and layout rules. Load after the app stylesheet. */
.language-selector{display:flex;align-items:center;flex-shrink:0;max-width:100%}
.language-select{font:inherit;font-size:12px;line-height:1.4;max-width:132px;min-width:90px;padding:9px 25px 9px 10px;border:1px solid var(--line,#52657c);border-radius:9px;background:var(--surface,#1a2535);color:var(--text,#e9effa);cursor:pointer;direction:ltr}
.language-select option{background:var(--surface,#1a2535);color:var(--text,#e9effa)}
.language-select:focus-visible{outline:3px solid #ff9f78;outline-offset:3px}
.app-shell,.main-shell,#main,.header-actions,.global-header,.hero-layout,.channel-strip,.channels,.filter-options,.rank-info,.wide-show-copy,.profile-identity>div,.search-result>span{min-width:0}
.main-shell,#main{max-width:100%}
.global-header{min-height:115px;height:auto;padding-block:20px;flex-wrap:wrap}
.header-actions{gap:12px;max-width:100%;flex-wrap:wrap}
.desktop-greeting{flex:1;min-width:140px}
.search-trigger{max-width:260px;min-width:0}
.search-trigger>span:not([data-icon]){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.brand{font-size:24px;letter-spacing:0;gap:9px}
.brand img{flex-shrink:0}
.brand>span{min-width:0;overflow-wrap:anywhere}
.sidebar-tagline,.sidebar-bottom p,.preview-label{white-space:normal;overflow-wrap:anywhere}
.nav-item{height:auto;min-height:50px;padding-block:9px;gap:10px}
.nav-item span{overflow-wrap:anywhere;min-width:0}
.hero-label{letter-spacing:.4px;max-width:100%;overflow-wrap:anywhere}
.hero-meta{flex-wrap:wrap;gap:6px}
.hero-content{max-width:100%}
.quick-link,.show-card,.wide-image-button,.wide-title-button,.card-arrow,.rank-row,.wide-show-card,.editorial-card,.menu-row,.search-result{text-align:start}
.quick-link{min-width:0;align-items:flex-start}
.quick-link>span:last-child{min-width:0;overflow-wrap:anywhere}
.quick-icon{flex-shrink:0}
.section-heading{gap:12px}
.section-heading h2{flex-wrap:wrap;min-width:0;line-height:1.4}
.section-heading h2 small{letter-spacing:0;overflow-wrap:anywhere}
.text-button{flex-shrink:0;max-width:42%;overflow-wrap:anywhere}
.poster-badge{max-width:calc(100% - 14px);overflow-wrap:anywhere}
.cover-meta span{min-width:0;overflow-wrap:anywhere}
.show-sub{min-width:0}
.show-sub span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis}
.editorial-copy{min-width:0;max-width:calc(100% - 20px)}
.editorial-copy small,.editorial-copy p{overflow-wrap:anywhere;letter-spacing:.2px}
.editorial-copy h3{letter-spacing:.5px;line-height:1.35}
.page-title,.page-subtitle,.page-end,.empty-state,.setting-description,.profile-name,.profile-note h3{overflow-wrap:anywhere}
.page-end{letter-spacing:.3px}
.filter-options{flex:1}
.filter-chip{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.result-count{min-width:0}
.sort-control{max-width:50%;min-width:0}
.shelf-tabs,.library-tabs{flex-wrap:wrap;gap:14px 24px}
.library-tab{max-width:100%;overflow-wrap:anywhere}
.library-card-actions{flex-wrap:wrap;gap:8px}
.profile-avatar{flex-shrink:0}
.profile-name{max-width:100%}
.profile-edit{flex-shrink:0;margin-inline-start:auto}
.profile-note{min-width:0}
.profile-note h3{letter-spacing:.4px}
.profile-note>div{min-width:0}
.stats-row{min-width:0;gap:6px}
.stat{min-width:0;padding-inline:2px}
.stat small{overflow-wrap:anywhere}
.menu-row>span,.menu-row>small{min-width:0;overflow-wrap:anywhere}
.menu-row>span{flex:1}
.menu-row>small{max-width:38%;text-align:end}
.menu-row>.icon,.switch{flex-shrink:0}
.detail-title h2{min-width:0;overflow-wrap:anywhere}
.detail-tags,.detail-actions{flex-wrap:wrap}
.detail-actions>.primary-button{min-width:140px}
.detail-actions>.outline-button{flex-grow:1}
.episode-heading{gap:10px}
.episode-heading small{min-width:0;overflow-wrap:anywhere;text-align:end}
.search-field input{min-width:0}
.search-result img{flex-shrink:0}
.search-result h3{overflow-wrap:anywhere}
.modal-language-selector{position:absolute;top:15px;left:15px;z-index:4;max-width:calc(100% - 74px)}
.compact-modal{padding-top:76px}
.compact-modal .modal-close{top:17px}
.modal-language-selector .language-select{box-shadow:0 2px 12px #0001}
.nickname-input{text-align:start}
.player-stage>.modal-language-selector{top:82px;left:auto;right:18px;z-index:4}
.player-stage .language-select{background:#232b25;color:#fff;border-color:#ffffff55}
.player-stage .language-select option{background:#232b25;color:#fff}
.player-top-title{min-width:0;overflow-wrap:anywhere}
.player-preview{top:132px;max-width:calc(100% - 44px);overflow-wrap:anywhere}
.player-side{max-width:80px}
.player-side span{overflow-wrap:anywhere;text-align:center}
.player-episode-link{flex-wrap:wrap;min-width:0;text-align:start}
.player-episode-link .chevron{flex-shrink:0}
.player-seek,#player-time{direction:ltr}
.player-controls{flex-wrap:wrap}
.player-episode-sheet .episode-grid{direction:inherit}
[dir="rtl"] body{font-family:Tahoma,"Segoe UI",Arial,sans-serif}
[dir="rtl"] .desktop-sidebar{left:auto;right:max(0px,calc((100vw - 1600px)/2));border-right:0;border-left:1px solid var(--line)}
[dir="rtl"] .main-shell{margin-left:0;margin-right:204px}
[dir="rtl"] .brand,[dir="rtl"] .sidebar-tagline,[dir="rtl"] .hero-label,[dir="rtl"] .page-title,[dir="rtl"] .page-end,[dir="rtl"] .player-preview{letter-spacing:0}
[dir="rtl"] .icon.directional{transform:scaleX(-1)}
[dir="rtl"] .search-trigger kbd{margin-left:0;margin-right:auto}
[dir="rtl"] .hero:after{background:linear-gradient(270deg,#1d201dde 0%,#1d201d60 45%,transparent 78%),linear-gradient(0deg,#141b16bb,transparent 65%)}
[dir="rtl"] .hero-dots{right:auto;left:22px}
[dir="rtl"] .poster-badge{left:auto;right:7px}
[dir="rtl"] .editorial-card:after{background:linear-gradient(270deg,#172f2edb,transparent)}
[dir="rtl"] .editorial-arrow{right:auto;left:16px}
[dir="rtl"] .theater-feature:after{background:linear-gradient(270deg,#203e32ee,#203e3230)}
[dir="rtl"] .library-tab span{margin-left:0;margin-right:5px}
[dir="rtl"] .profile-edit,[dir="rtl"] .menu-row>small,[dir="rtl"] .menu-row>.chevron,[dir="rtl"] .switch,[dir="rtl"] .score,[dir="rtl"] .search-result>.icon,[dir="rtl"] .player-episode-link>.chevron,[dir="rtl"] .player-controls .next-episode{margin-left:0;margin-right:auto}
[dir="rtl"] .switch.on:before{transform:translateX(-16px)}
[dir="rtl"] .modal-close{right:auto;left:15px}
[dir="rtl"] .modal-language-selector{left:auto;right:15px}
[dir="rtl"] .player-stage>.modal-language-selector{right:auto;left:18px}
[dir="rtl"] .player-preview{left:auto;right:22px}
[dir="rtl"] .player-side{right:auto;left:16px}
[dir="rtl"] .player-title{margin-right:0;margin-left:55px}
[dir="rtl"] .player-caption{margin-right:0;margin-left:45px}
[dir="rtl"] input:not([dir]),[dir="rtl"] textarea:not([dir]){text-align:start;direction:rtl}
[dir="rtl"] input[type="number"],[dir="rtl"] input[type="range"],.video-controls input[type="range"]{direction:ltr}
.real-player-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.real-player-header h1{flex:1;min-width:0;overflow-wrap:anywhere}
.real-player-page main{min-width:0;max-width:960px}
.real-player-page p,.real-player-page output,.real-player-page label,.real-player-page summary{overflow-wrap:anywhere}
.real-player-page form>*{max-width:100%;min-width:0}
.real-player-page form input{flex:0 1 170px}
.real-player-stage{background:#000;border-radius:12px;overflow:hidden}
.real-player-stage:fullscreen{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center}
.real-player-stage:fullscreen video{max-height:calc(100vh - 120px);flex:1;min-height:0}
.video-controls{display:flex;align-items:center;gap:9px;padding:12px;flex-wrap:wrap;background:#1a2535;color:#e9effa}
.video-controls[hidden]{display:none}
.video-controls button,.video-controls select{font:inherit;font-size:12px;padding:8px;border-radius:6px;min-width:0;max-width:100%}
.video-controls select{background:#1a2535;color:#e9effa;border:1px solid #52657c}
.video-controls input[type="range"]{padding:0;accent-color:#9cd4ff;min-width:0}
#video-progress{flex:1 1 180px;width:auto}
#video-volume{flex:0 1 70px;width:70px}
#video-time{font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:1180px){[dir="rtl"] .main-shell{margin-right:170px}.search-trigger{max-width:200px}.header-actions{gap:9px}}
@media(max-width:1000px) and (min-width:761px){.global-header{gap:12px}.desktop-greeting{flex-basis:100%}.header-actions{width:100%;justify-content:flex-end}.header-actions .search-trigger{flex:1;max-width:none}.nav-item{padding-inline:12px}.brand{font-size:20px}}
@media(max-width:760px){
  .main-shell,[dir="rtl"] .main-shell{margin-inline:0;max-width:100%}
  .global-header{height:auto;min-height:76px;padding-block:14px;gap:10px}
  .mobile-brand{flex:1 1 140px;min-width:0;white-space:normal}
  .mobile-brand strong{font-size:18px;line-height:1.2;min-width:0;overflow-wrap:anywhere}
  .mobile-brand img{flex-shrink:0}
  .mobile-brand>span{display:none}
  .header-actions{flex:1 1 auto;gap:8px;justify-content:flex-end}
  .language-select{width:108px;min-width:0;font-size:11px;padding-block:7px;max-width:100%}
  .search-trigger{flex-shrink:0;max-width:34px}
  .bottom-nav .nav-item{height:100%;min-width:0;padding-inline:2px;line-height:1.15;font-size:9px;text-align:center}
  .bottom-nav .nav-item span{overflow-wrap:anywhere}
  .channels{min-width:0;flex:1 1 0}
  .hero-content{padding:20px}
  .hero-meta{font-size:9px;gap:5px}
  .hero-actions{margin-top:16px}
  .hero-label{font-size:9px;letter-spacing:0}
  .quick-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}
  .quick-link{justify-content:flex-start}
  .quick-link strong{font-size:11px;line-height:1.4}
  .quick-link small{font-size:9px}
  .section-heading{align-items:flex-start}
  .section-heading h2{font-size:18px;gap:4px}
  .section-heading h2 small{flex-basis:100%;font-size:9px;margin-top:0}
  .text-button{font-size:10px;max-width:40%;text-align:end}
  .editorial-copy h3{font-size:18px;overflow-wrap:anywhere}
  .editorial-copy p{max-width:100%}
  .editorial-card{padding:14px}
  .editorial-arrow{bottom:10px;right:10px;padding:4px}
  [dir="rtl"] .editorial-arrow{right:auto;left:10px}
  .cover-meta{font-size:8px;line-height:1.3;align-items:flex-end}
  .poster-badge{font-size:8px;padding:3px 4px}
  .filter-row{gap:10px}
  .filter-row>label{flex:0 0 52px;white-space:normal;overflow-wrap:anywhere}
  .filter-chip{font-size:11px;padding:7px 9px}
  .library-tabs{gap:10px 15px}
  .library-tab{font-size:12px;flex:1 1 70px}
  .shelf-tabs{gap:12px}
  .shelf-tabs button{font-size:13px}
  .profile-identity{gap:12px}
  .profile-name{font-size:20px}
  .profile-note{padding:20px;gap:13px}
  .profile-note h3{font-size:19px}
  .menu-row{gap:9px}
  .menu-row>span{font-size:12px}
  .menu-row>small{font-size:9px}
  .detail-actions{gap:8px}
  .detail-actions .primary-button{font-size:12px;padding-inline:13px}
  .episode-heading{align-items:flex-start}
  .episode-heading h3{flex-shrink:0}
  .episode-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
  .overlay{padding:16px}
  .modal{max-height:calc(100dvh - 32px)}
  .compact-modal{padding:76px 20px 24px}
  .modal-body{padding-inline:20px}
  .player-overlay{padding:0}
  .player-episode-sheet{padding-inline:16px}
  .player-episode-link{font-size:10px}
  .real-player-page main{padding:24px 16px}
  .real-player-page form{gap:10px}
  .video-controls{gap:7px;padding:10px}
  #video-progress{flex-basis:100%;order:-1}
  #video-time{font-size:11px}
}
@media(max-width:359px){
  .global-header{gap:9px}
  .mobile-brand{flex-basis:100%;justify-content:flex-start}
  .header-actions{width:100%;justify-content:flex-end}
  .mobile-brand strong{font-size:19px}
  .hero{height:340px}
  .hero-content h1{font-size:29px}
  .hero-meta{gap:4px;font-size:8px}
  .hero-dots{bottom:16px}
  .hero-actions .primary-button{font-size:11px;padding:11px 13px}
  .section-heading h2{font-size:17px}
  .editorial-grid{grid-template-columns:minmax(0,1fr)}
  .editorial-copy h3{font-size:21px}
  .editorial-copy p{max-width:none}
  .filter-row>label{flex-basis:43px}
  .profile-panel{padding:20px 15px}
  .profile-avatar{width:50px;height:50px;font-size:24px}
  .profile-edit{padding:5px}
  .menu-row>small{max-width:32%}
  .profile-menu{padding-inline:14px}
  .library-tab{font-size:11px}
  .compact-modal{padding-inline:17px}
  .detail-title h2{font-size:25px}
  .player-side{bottom:270px;max-width:64px}
  .player-title{font-size:25px}
  .player-top{gap:9px;padding-inline:14px}
  .player-top-title{font-size:12px}
  .player-preview{font-size:9px}
  .player-controls{gap:8px}
  .player-controls .next-episode{font-size:10px}
}
