* { box-sizing: border-box; }
html { min-height: 100%; background: #060a12; }
body { margin: 0; min-height: 100%; color: #edf4ff; font-family: Arial, Helvetica, sans-serif; background: #060a12; background-image: linear-gradient(135deg, #102849 0%, #060a12 55%, #091525 100%); }
[hidden] { display: none !important; }
.page { padding: 48px 24px; min-height: 100vh; display: table; width: 100%; }
.login-shell { display: table-cell; vertical-align: middle; }
.brand, .card, .status, .navigation-help, footer, .no-script { max-width: 440px; margin-left: auto; margin-right: auto; }
.brand { text-align: center; margin-bottom: 28px; }
.tv-mark { width: 56px; height: 39px; margin: 0 auto 18px; border: 3px solid #2495ff; border-radius: 9px; position: relative; }
.tv-mark:after { content: ''; position: absolute; width: 24px; height: 3px; background: #2495ff; bottom: -9px; left: 13px; }
.play-mark { display: block; width: 0; height: 0; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-left: 13px solid #2495ff; margin: 7px auto; }
h1 { font-size: 36px; font-weight: 900; letter-spacing: 4px; margin: 0 0 10px; }
h1 span { color: #2495ff; }
.brand p { color: #a6b7cd; margin: 0; font-size: 16px; }
.card { padding: 28px; background: #101a2a; border: 1px solid #23364f; border-radius: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
h2 { font-size: 22px; margin: 0 0 10px; }
.card-intro, .card p { color: #a6b7cd; font-size: 15px; line-height: 1.6; }
.card-intro { margin: 0 0 24px; }
.field { margin-bottom: 22px; }
label { display: block; color: #c4d6eb; font-size: 14px; margin-bottom: 9px; }
input { display: block; width: 100%; min-height: 56px; padding: 16px; color: #edf4ff; background: #0a1220; border: 2px solid #2b3b52; border-radius: 14px; font-family: inherit; font-size: 16px; }
input::-webkit-input-placeholder { color: #77869b; }
input::placeholder { color: #77869b; opacity: 1; }
input[aria-invalid="true"] { border-color: #ff9595; }
input:focus { border-color: #2495ff; outline: 3px solid #2495ff; outline-offset: 2px; }
button { font-family: inherit; cursor: pointer; }
button:focus, a:focus { outline: 3px solid #fff; outline-offset: 4px; }
button:focus, input:focus { outline: 3px solid #2495ff; outline-offset: 4px; box-shadow: 0 0 0 2px #061323, 0 0 24px rgba(36,149,255,.75); }
button:disabled { opacity: .6; cursor: default; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 116px; }
.visibility { position: absolute; top: 6px; right: 6px; min-height: 44px; min-width: 100px; background: #16273e; color: #a9d6ff; border: 1px solid #304b6a; border-radius: 9px; font-size: 12px; font-weight: bold; }
.visibility:focus { background: #24496f; }
.primary { width: 100%; min-height: 56px; padding: 16px; border: 3px solid transparent; border-radius: 14px; background: #2495ff; color: #031329; font-size: 16px; font-weight: bold; letter-spacing: 2px; }
.primary:hover, .primary:focus { background: #64b5ff; }
.primary:focus { border-color: #2495ff; }
.field-error { display: block; color: #ffb4b4; font-size: 14px; line-height: 1.5; margin-top: 6px; }
.field-error:empty { display: none; }
.status { margin-top: 18px; color: #c4ddff; line-height: 1.6; font-size: 15px; }
.status:not(:empty) { border: 1px solid #36587d; border-radius: 12px; background: #102139; padding: 16px; }
.status.error { border-color: #915959; color: #ffb4b4; background: #281820; }
.status.success { border-color: #408769; color: #a3e4c3; }
.navigation-help { text-align: center; color: #a6b7cd; font-size: 13px; line-height: 1.6; margin-top: 20px; }
footer { text-align: center; color: #77869b; font-size: 12px; margin-top: 24px; }
.home-panel { max-width: 1100px; margin: 0 auto; }
.home-heading { text-align: center; margin-bottom: 28px; }
.home-heading h2 { font-size: 28px; }
.home-heading p { color: #a6b7cd; font-size: 18px; }
.home-options { font-size: 0; }
.subscription-panel { margin: 0 1% 24px; padding: 18px 22px; border: 1px solid #23364f; border-radius: 16px; background: #101a2a; }
.subscription-panel h3 { margin: 0 0 14px; color: #c4ddff; font-size: 18px; }
.subscription-details { font-size: 0; }
.subscription-item { display: inline-block; vertical-align: top; width: 33.33%; padding-right: 12px; }
.subscription-label { display: block; color: #a6b7cd; font-size: 13px; margin-bottom: 6px; }
.subscription-item strong { display: block; font-size: 16px; line-height: 1.5; word-wrap: break-word; }
.subscription-panel.active #subscription-status { color: #a3e4c3; }
.subscription-panel.expired { border-color: #915959; }
.subscription-panel.expired #subscription-status, .subscription-notice { color: #ffb4b4; }
.subscription-notice { margin: 12px 0 0; font-size: 15px; }
@media (max-width: 799px) {
  .subscription-panel { margin-left: 0; margin-right: 0; padding: 18px; }
  .subscription-item { display: block; width: 100%; padding: 0; margin-bottom: 12px; }
  .subscription-item:last-child { margin-bottom: 0; }
}
@media (min-width: 1000px) {
  .subscription-panel h3 { font-size: 22px; }
  .subscription-label { font-size: 16px; }
  .subscription-item strong { font-size: 20px; }
  .subscription-notice { font-size: 18px; }
}
.home-option { display: inline-block; vertical-align: top; width: 31.33%; margin: 0 1%; min-height: 260px; padding: 28px 18px; background: #101a2a; color: #edf4ff; border: 3px solid #23364f; border-radius: 24px; text-align: center; }
.home-option:hover, .home-option:focus { background: #152e4c; border-color: #2495ff; }
.home-option:focus { outline: 3px solid #2495ff; outline-offset: 4px; box-shadow: 0 0 28px rgba(36,149,255,.75); }
.option-icon { display: block; margin: 0 auto 24px; width: 76px; height: 68px; line-height: 68px; color: #2495ff; font-size: 46px; }
.live-icon { font-size: 26px; font-weight: bold; border: 3px solid #2495ff; border-radius: 12px; line-height: 62px; }
.option-title { display: block; font-size: 26px; font-weight: bold; letter-spacing: 1px; margin-bottom: 14px; }
.option-description { display: block; color: #a6b7cd; font-size: 17px; line-height: 1.5; }
.home-actions { text-align: center; margin-top: 30px; }
.secondary { min-width: 160px; min-height: 60px; padding: 16px 24px; margin: 0 8px; border: 2px solid #36587d; border-radius: 14px; background: #101a2a; color: #c4ddff; font-size: 18px; font-weight: bold; letter-spacing: 1px; }
.secondary:hover, .secondary:focus { background: #24496f; border-color: #2495ff; }
.coming-soon { display: inline-block; font-size: 13px; color: #a9d6ff; background: #162f4c; border-radius: 6px; padding: 8px 12px; margin-bottom: 24px; letter-spacing: 2px; }
.category-panel .primary { margin-top: 18px; }
.login-action { display: block; width: 100%; margin: 14px 0 0; min-width: 0; font-size: 14px; letter-spacing: 1px; }
.live-panel { width: 100%; margin: 0 auto; }
.live-workspace { display: -webkit-flex; display: flex; -webkit-align-items: stretch; align-items: stretch; }
.live-categories, .live-channels, .live-player-column { min-width: 0; min-height: 0; }
.live-categories, .live-channels { display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; background: #101a2a; border: 1px solid #23364f; border-radius: 14px; padding: 14px; }
.live-categories { width: 23%; -webkit-flex: 0 0 23%; flex: 0 0 23%; }
.live-channels { width: 27%; -webkit-flex: 0 0 27%; flex: 0 0 27%; }
.live-player-column { width: 50%; -webkit-flex: 1 1 50%; flex: 1 1 50%; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; padding-left: 12px; }
.live-channels { border-left: 0; }
.live-workspace h3 { font-size: 22px; margin: 0 0 12px; -webkit-flex: 0 0 auto; flex: 0 0 auto; }
.live-list { -webkit-flex: 1 1 0%; flex: 1 1 0%; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 8px; }
.live-list p { font-size: 18px; color: #a6b7cd; line-height: 1.5; }
.live-item { display: block; width: 100%; margin: 0 0 10px; padding: 16px 12px; min-height: 56px; text-align: left; color: #edf4ff; background: #0a1220; border: 2px solid #2b3b52; border-radius: 12px; font-size: 18px; word-wrap: break-word; }
.live-item.selected { color: #c4e5ff; background: #153654; border-color: #2495ff; }
.live-item.playing { color: #a3e4c3; background: #123328; border-color: #408769; }
.live-item:focus { border-color: #2495ff; outline: 3px solid #2495ff; outline-offset: 2px; box-shadow: 0 0 18px rgba(36,149,255,.8); }
.live-item.playing:focus { color: #a3e4c3; background: #123328; }
.live-player-area { -webkit-flex: 1 1 0%; flex: 1 1 0%; min-height: 0; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; background: #080d16; border: 1px solid #23364f; border-radius: 14px; padding: 6px; }
#live-video { display: block; width: 100%; height: 0; min-height: 0; -webkit-flex: 1 1 0%; flex: 1 1 0%; background: #000; object-fit: contain; }
#live-video:focus { outline: 3px solid #2495ff; outline-offset: -4px; }
.live-player-bar { padding: 14px 10px 6px; -webkit-flex: 0 0 auto; flex: 0 0 auto; }
#live-channel-name { display: block; font-size: 22px; line-height: 1.4; word-wrap: break-word; }
.live-player-actions { margin-top: 10px; }
.live-player-actions .secondary { min-width: 0; width: auto; min-height: 48px; padding: 12px; font-size: 18px; margin: 4px; }
.live-message { margin: 0; padding: 6px 14px 12px; color: #c4ddff; font-size: 16px; line-height: 1.4; -webkit-flex: 0 0 auto; flex: 0 0 auto; }
.live-message.error { color: #ffb4b4; }
.live-pagination { padding-top: 8px; text-align: center; font-size: 14px; color: #a6b7cd; -webkit-flex: 0 0 auto; flex: 0 0 auto; }
.live-pagination .secondary { min-width: 0; width: auto; min-height: 44px; font-size: 14px; padding: 10px 6px; margin: 4px 2px; letter-spacing: 0; }
#live-page-info { display: block; }
.live-player-column .home-actions { margin-top: 10px; -webkit-flex: 0 0 auto; flex: 0 0 auto; }
.live-player-column .home-actions .secondary { min-width: 0; width: auto; min-height: 48px; font-size: 16px; margin: 4px; padding: 12px; }
.show-live .brand { display: none; }
.show-live .brand h1 { font-size: 28px; line-height: 32px; margin: 0; }
.show-live .tv-mark, .show-live .brand p, .show-live .status, .show-live .navigation-help, .show-live footer { display: none; }
.live-header { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; min-height: 60px; background: #060a12; }
.live-header .live-menu-back { -webkit-flex: 0 0 auto; flex: 0 0 auto; min-width: 0; width: auto; min-height: 44px; margin: 0 16px 0 4px; padding: 10px 12px; font-size: 18px; }
.show-live #live-title { font-size: 22px; line-height: 26px; margin: 0; }
.live-player-area:fullscreen { width: 100%; height: 100%; border-radius: 0; overflow: auto; }
.live-player-area:-webkit-full-screen { width: 100%; height: 100%; border-radius: 0; overflow: auto; }
.live-player-area:fullscreen #live-video { height: 78vh; -webkit-flex: 1 0 auto; flex: 1 0 auto; }
.live-player-area:-webkit-full-screen #live-video { height: 78vh; -webkit-flex: 1 0 auto; flex: 1 0 auto; }
@media (min-width: 800px) {
  body.show-live { height: 100vh; overflow: hidden; }
  body.show-live .page { display: block; min-height: 0; height: 100vh; padding: 12px; }
  .show-live .login-shell { display: block; }
  .show-live .live-workspace { height: calc(100vh - 84px); }
}
@media (max-width: 799px) {
  body.show-live .page { display: block; padding: 18px 12px; }
  .show-live .login-shell { display: block; }
  .live-workspace { -webkit-flex-direction: column; flex-direction: column; }
  .live-categories, .live-channels, .live-player-column { width: 100%; -webkit-flex: 0 0 auto; flex: 0 0 auto; margin-bottom: 16px; }
  .live-player-column { -webkit-order: -1; order: -1; padding: 0; }
  .live-channels { border-left: 1px solid #23364f; }
  .live-player-area { -webkit-flex: 0 0 auto; flex: 0 0 auto; }
  #live-video { -webkit-flex: 0 0 auto; flex: 0 0 auto; height: 32vh; min-height: 160px; }
  .live-list { -webkit-flex: 0 0 auto; flex: 0 0 auto; max-height: 320px; }
}
.show-home .status, .show-home .navigation-help, .show-home footer { max-width: 1100px; }
@media (max-width: 799px) {
  .home-panel { max-width: 440px; }
  .home-option { display: block; width: 100%; margin: 0 0 18px; min-height: 180px; padding: 24px 18px; }
  .option-icon { margin-bottom: 16px; height: 48px; width: 58px; line-height: 48px; font-size: 34px; }
  .live-icon { font-size: 20px; line-height: 42px; }
  .option-title { font-size: 22px; }
  .option-description { font-size: 15px; }
  .home-heading h2 { font-size: 24px; }
  .home-actions { margin-top: 22px; }
  .secondary { min-width: 0; width: 44%; margin: 0 2%; font-size: 16px; padding: 16px 8px; }
}
.no-script { color: #ffb4b4; }
@media (min-width: 1000px) {
  .page { padding: 48px; }
  .brand, .card, .status, .navigation-help, footer { max-width: 620px; }
  .brand { margin-bottom: 32px; }
  h1 { font-size: 52px; }
  .brand p { font-size: 22px; }
  .card { padding: 32px; }
  h2 { font-size: 28px; }
  .card p { font-size: 18px; }
  label { font-size: 20px; }
  input { min-height: 76px; font-size: 22px; padding: 22px; }
  .password-wrap input { padding-right: 138px; }
  .visibility { top: 8px; right: 8px; min-height: 60px; min-width: 116px; font-size: 15px; }
  .primary { min-height: 76px; font-size: 22px; }
  .field-error, .status, .navigation-help { font-size: 18px; }
  footer { font-size: 15px; }
}
@media (max-width: 380px) {
  .page { padding: 28px 16px; }
  .card { padding: 20px 16px; }
  .password-wrap input { padding-right: 98px; }
  .visibility { min-width: 82px; font-size: 11px; }
}
@media (max-height: 750px) and (min-width: 1000px) {
  .page { padding-top: 28px; padding-bottom: 28px; }
  .brand { margin-bottom: 22px; }
}

@media (max-width: 799px) {
  .show-live .live-header { position: fixed; top: 0; left: 0; width: 100%; height: 76px; padding: 8px 12px; z-index: 20; border-bottom: 1px solid #23364f; }
  .show-live #live-title { font-size: 18px; line-height: 24px; }
  .show-live .live-header .live-menu-back { margin-right: 12px; font-size: 16px; }
  body.show-live .page { padding-top: 88px; }
}

/* Compact video and the EPG share the existing third column. Ratio padding works on old WebKit. */
.live-player-area { -webkit-flex: 0 0 auto; flex: 0 0 auto; padding: 4px; }
.live-video-frame { position: relative; width: 100%; max-width: 80vh; margin: 0 auto; background: #000; }
.live-video-frame:before { content: ''; display: block; padding-top: 56.25%; }
.live-video-frame #live-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.live-player-bar { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; padding: 6px 8px; }
#live-channel-name { -webkit-flex: 1 1 0%; flex: 1 1 0%; min-width: 0; font-size: 20px; line-height: 1.25; }
.live-player-actions { -webkit-flex: 0 0 auto; flex: 0 0 auto; margin: 0 0 0 8px; }
.live-player-actions .secondary { min-height: 40px; font-size: 16px; padding: 8px 10px; margin: 0; }
.live-message { padding: 4px 8px 6px; font-size: 15px; }
.live-retry-play { position: absolute; left: 50%; top: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); margin: 0; width: auto; min-width: 140px; min-height: 48px; font-size: 18px; }
.live-epg { display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; -webkit-flex: 1 1 0%; flex: 1 1 0%; min-height: 0; padding: 8px 6px 4px; margin-top: 6px; background: #101a2a; border: 1px solid #23364f; border-radius: 12px; }
.live-workspace .live-epg h3 { font-size: 17px; margin: 0 4px 4px; }
.live-epg-status { font-size: 16px; margin: 6px 4px; color: #a6b7cd; }
.live-epg-list { -webkit-flex: 1 1 0%; flex: 1 1 0%; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 6px; }
.epg-item { padding: 10px; margin-bottom: 8px; background: #0a1220; border: 2px solid #23364f; border-radius: 8px; word-wrap: break-word; }
.epg-item.current { border-color: #408769; background: #123328; }
.epg-item strong { display: block; font-size: 18px; line-height: 1.35; }
.epg-time { display: block; margin-top: 4px; color: #a9d6ff; font-size: 16px; }
.epg-item p { font-size: 16px; line-height: 1.4; margin: 6px 0 0; color: #a6b7cd; }
.epg-item:focus { outline: 3px solid #2495ff; outline-offset: 1px; border-color: #2495ff; box-shadow: 0 0 18px rgba(36,149,255,.8); }
.epg-progress { height: 6px; margin-top: 8px; background: #263b4d; border-radius: 4px; overflow: hidden; }
.epg-progress span { display: block; height: 100%; background: #2495ff; }
.live-player-column .home-actions { margin-top: 4px; }
.live-player-column .home-actions .secondary { min-height: 36px; padding: 6px 10px; font-size: 14px; margin: 2px; }
.live-player-area:fullscreen .live-video-frame { max-width: none; -webkit-flex: 1 1 0%; flex: 1 1 0%; min-height: 0; }
.live-player-area:-webkit-full-screen .live-video-frame { max-width: none; -webkit-flex: 1 1 0%; flex: 1 1 0%; min-height: 0; }
.live-player-area:fullscreen .live-video-frame:before { display: none; }
.live-player-area:-webkit-full-screen .live-video-frame:before { display: none; }
@media (max-width: 799px) {
  .live-video-frame { max-width: none; }
  .live-epg { -webkit-flex: 0 0 auto; flex: 0 0 auto; }
  .live-epg-list { -webkit-flex: 0 0 auto; flex: 0 0 auto; max-height: 340px; }
  #live-channel-name { font-size: 18px; }
  .live-player-actions .secondary { font-size: 14px; }
}

/* Movies use their own screen and one dedicated video, without touching Live TV. */
.show-movies .brand, .show-movies .status, .show-movies .navigation-help, .show-movies footer { display: none; }
body.show-movies { height: 100vh; overflow: hidden; }
body.show-movies .page { display: block; min-height: 0; height: 100vh; padding: 12px; }
.show-movies .login-shell { display: block; }
.movie-header { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; min-height: 60px; }
.movie-header .secondary { -webkit-flex: 0 0 auto; flex: 0 0 auto; width: auto; min-width: 0; min-height: 44px; margin: 0 16px 0 4px; padding: 10px 12px; font-size: 18px; }
.movie-header h2 { margin: 0; font-size: 22px; line-height: 1.3; min-width: 0; word-wrap: break-word; }
.movie-workspace { height: calc(100vh - 84px); display: -webkit-flex; display: flex; }
.movie-categories, .movie-results { min-height: 0; min-width: 0; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; background: #101a2a; border: 1px solid #23364f; border-radius: 14px; padding: 12px; }
.movie-categories { width: 25%; -webkit-flex: 0 0 25%; flex: 0 0 25%; }
.movie-results { width: 75%; -webkit-flex: 1 1 75%; flex: 1 1 75%; margin-left: 10px; }
.movie-categories h3 { font-size: 22px; margin: 0 0 10px; }
.movie-scroll { -webkit-flex: 1 1 0%; flex: 1 1 0%; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 8px; }
.movie-grid { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-align-content: flex-start; align-content: flex-start; }
.movie-card { width: 23%; -webkit-flex: 0 0 23%; flex: 0 0 23%; margin: 0 1% 18px; padding: 0; background: #0a1220; color: #edf4ff; border: 2px solid #2b3b52; border-radius: 10px; overflow: hidden; text-align: left; }
.movie-card:focus { outline: 3px solid #2495ff; outline-offset: 2px; border-color: #2495ff; box-shadow: 0 0 24px rgba(36,149,255,.8); }
.movie-poster { display: block; position: relative; width: 100%; padding-top: 150%; background: #0a1220; }
.movie-poster img, .movie-cover img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; }
.movie-poster-placeholder { position: absolute; top: 45%; left: 0; width: 100%; text-align: center; font-size: 22px; font-weight: bold; color: #2495ff; letter-spacing: 2px; }
.movie-card-title { display: block; padding: 10px; min-height: 64px; font-size: 18px; line-height: 1.3; word-wrap: break-word; }
.movie-catalog-actions { text-align: center; -webkit-flex: 0 0 auto; flex: 0 0 auto; padding-top: 6px; }
.movie-catalog-actions .secondary { width: auto; min-width: 0; min-height: 40px; padding: 8px; margin: 3px; font-size: 14px; letter-spacing: 0; }
#movie-count { color: #a6b7cd; font-size: 14px; margin: 0 4px; }
.movie-message { color: #c4ddff; font-size: 16px; line-height: 1.4; margin: 4px 6px 8px; }
.movie-details-scroll { height: calc(100vh - 84px); overflow-y: auto; padding: 16px; border: 1px solid #23364f; border-radius: 14px; background: #101a2a; }
.movie-details-scroll:focus { outline: 3px solid #2495ff; outline-offset: -4px; }
.movie-details-layout { display: -webkit-flex; display: flex; -webkit-align-items: flex-start; align-items: flex-start; }
.movie-cover { position: relative; width: 26%; -webkit-flex: 0 0 26%; flex: 0 0 26%; padding-top: 39%; background: #060a12; border-radius: 10px; overflow: hidden; }
.movie-description { min-width: 0; -webkit-flex: 1 1 0%; flex: 1 1 0%; padding-left: 24px; }
#movie-title { font-size: 30px; line-height: 1.3; margin: 0 0 18px; }
#movie-watch { width: auto; min-width: 220px; margin-bottom: 12px; }
#movie-metadata { margin: 12px 0 20px; font-size: 18px; line-height: 1.5; }
#movie-metadata dt { font-weight: bold; color: #a9d6ff; margin-top: 8px; }
#movie-metadata dd { margin: 0; word-wrap: break-word; }
#movie-synopsis-section h3 { font-size: 20px; margin: 0 0 8px; }
#movie-synopsis { font-size: 20px; line-height: 1.5; white-space: pre-wrap; margin: 0; }
.movie-player-area { display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; height: calc(100vh - 84px); background: #000; padding: 8px; }
#movie-video { width: 100%; height: 0; min-height: 0; -webkit-flex: 1 1 0%; flex: 1 1 0%; object-fit: contain; background: #000; }
#movie-video:focus { outline: 3px solid #2495ff; outline-offset: -4px; }
.movie-player-controls { -webkit-flex: 0 0 auto; flex: 0 0 auto; text-align: center; padding: 6px; }
.movie-player-controls .secondary { width: auto; min-width: 0; min-height: 44px; padding: 10px 14px; font-size: 18px; }
.movie-player-area:fullscreen { width: 100%; height: 100%; }
.movie-player-area:-webkit-full-screen { width: 100%; height: 100%; }
@media (min-width: 1500px) {
  .movie-card { width: 18%; -webkit-flex-basis: 18%; flex-basis: 18%; }
}
@media (max-width: 799px) {
  .movie-header .secondary { font-size: 14px; margin-right: 10px; }
  .movie-header h2 { font-size: 18px; }
  .movie-workspace { -webkit-flex-direction: column; flex-direction: column; }
  .movie-categories { width: 100%; -webkit-flex: 0 0 28%; flex: 0 0 28%; }
  .movie-results { width: 100%; -webkit-flex: 1 1 0%; flex: 1 1 0%; margin: 8px 0 0; }
  .movie-card { width: 48%; -webkit-flex-basis: 48%; flex-basis: 48%; }
  .movie-card-title { font-size: 16px; }
  .movie-categories h3 { font-size: 18px; }
  .movie-details-layout { display: block; }
  .movie-cover { width: 50%; padding-top: 75%; margin: 0 auto 18px; }
  .movie-description { padding-left: 0; }
  #movie-title { font-size: 24px; }
  #movie-watch { width: 100%; }
  #movie-synopsis { font-size: 18px; }
  #movie-count { display: block; }
  .movie-catalog-actions .secondary { font-size: 12px; }
}

.movie-search-bar { -webkit-flex: 0 0 auto; flex: 0 0 auto; margin: 0 6px 6px; }
.movie-search-label { display: block; font-size: 16px; margin-bottom: 5px; }
.movie-search-row { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; }
.movie-search-row input { min-width: 0; -webkit-flex: 1 1 0%; flex: 1 1 0%; min-height: 46px; padding: 10px 12px; font-size: 18px; }
.movie-search-row .secondary { -webkit-flex: 0 0 auto; flex: 0 0 auto; width: auto; min-width: 0; min-height: 44px; padding: 10px; margin: 0 0 0 12px; font-size: 16px; }
#movie-search-scope { margin: 5px 0 0; color: #a6b7cd; font-size: 14px; line-height: 1.3; }
.movie-details-scroll { padding: 12px; }
.movie-cover { width: 25%; -webkit-flex: 0 0 25%; flex: 0 0 25%; padding-top: 37.5%; }
.movie-description { padding-left: 18px; }
#movie-title { font-size: 28px; margin-bottom: 10px; }
#movie-watch { min-height: 48px; padding: 12px 22px; font-size: 20px; margin-bottom: 6px; }
#movie-metadata { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin: 8px 0 10px; line-height: 1.4; }
.movie-meta-item { margin: 0 16px 8px 0; max-width: 100%; }
#movie-metadata dt { display: inline; margin: 0 6px 0 0; font-size: 16px; }
#movie-metadata dd { display: inline; font-size: 18px; }
.movie-meta-item.movie-credit { width: calc(50% - 16px); }
#movie-synopsis { font-size: 18px; line-height: 1.4; }
#movie-synopsis-section h3 { font-size: 18px; margin-bottom: 5px; }
.movie-player-area { height: calc(100vh - 24px); }
.movie-player-area .movie-header { -webkit-flex: 0 0 auto; flex: 0 0 auto; padding-bottom: 6px; }
.movie-player-controls { padding: 0; }
.movie-player-controls .secondary { margin: 6px; }
.movie-player-area:fullscreen { height: 100%; }
.movie-player-area:-webkit-full-screen { height: 100%; }
@media (max-width: 799px) {
  .movie-search-label { font-size: 14px; }
  .movie-search-row input { font-size: 16px; }
  .movie-search-row .secondary { font-size: 13px; margin-left: 8px; }
  #movie-search-scope { font-size: 12px; }
  .movie-cover { width: 42%; padding-top: 63%; }
  .movie-description { padding-left: 0; }
  #movie-title { font-size: 24px; }
  .movie-meta-item.movie-credit { width: 100%; }
}

/* Phone-only overrides, last in the cascade. All existing TV/PC rules stay intact. */
@media (max-width: 767px) {
  body.show-live, body.show-movies { overflow-x: hidden; }
  .show-live .page, .show-movies .page,
  .show-live .login-shell, .show-movies .login-shell { max-width: 100%; min-width: 0; }

  .show-live .live-categories, .show-movies .movie-categories,
  .show-series #series-catalog .series-categories {
    width: 100%; min-height: 0; padding: 4px; margin: 0 0 6px;
    -webkit-flex: 0 0 auto; flex: 0 0 auto;
  }
  .show-live .live-categories h3, .show-movies .movie-categories h3,
  .show-series #series-catalog .series-categories h3 { display: none; }
  .show-live #live-categories-list, .show-movies #movie-categories-list,
  .show-series #series-catalog #series-categories-list {
    display: block; width: 100%; min-height: 0; max-height: none; height: auto;
    -webkit-flex: 0 0 auto; flex: 0 0 auto; padding: 6px;
    white-space: nowrap; overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .show-live #live-categories-list .live-item, .show-movies #movie-categories-list .live-item,
  .show-series #series-catalog #series-categories-list .live-item {
    display: inline-block; width: auto; min-width: 0; min-height: 44px;
    padding: 10px 12px; margin: 0 6px 0 0; font-size: 14px; line-height: 20px;
    white-space: nowrap; vertical-align: middle; border-radius: 10px;
  }
  .show-live #live-categories-list .selected, .show-movies #movie-categories-list .selected,
  .show-series #series-catalog #series-categories-list .selected {
    color: #edf4ff; background: #153654; border-color: #2495ff;
  }

  .show-movies .movie-workspace,
  .show-series #series-catalog .series-workspace { width: 100%; min-width: 0; }
  .show-movies .movie-results,
  .show-series #series-catalog .series-results { margin: 0; padding: 8px 4px; min-width: 0; }
  .show-movies .movie-search-bar,
  .show-series #series-catalog .series-search-bar { margin: 0 6px 6px; }
  .show-movies .movie-search-row input,
  .show-series #series-catalog .series-search-row input { font-size: 16px; min-height: 44px; }
  .show-movies #movie-grid-scroll,
  .show-series #series-catalog #series-grid-scroll { padding: 6px; -webkit-overflow-scrolling: touch; }
  .show-movies .movie-grid,
  .show-series #series-catalog .series-grid { display: block; width: 100%; }
  .show-movies .movie-card,
  .show-series #series-catalog .series-card {
    display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
    width: 100%; max-width: 100%; margin: 0 0 8px; padding: 8px;
    -webkit-flex: none; flex: none; min-width: 0;
  }
  .show-movies .movie-poster,
  .show-series #series-catalog .series-poster {
    width: 72px; height: 108px; padding: 0; -webkit-flex: 0 0 72px; flex: 0 0 72px;
    border-radius: 6px; overflow: hidden;
  }
  .show-movies .movie-poster .movie-poster-placeholder,
  .show-series #series-catalog .series-poster .series-poster-placeholder { font-size: 11px; letter-spacing: 0; }
  .show-movies .movie-card-title,
  .show-series #series-catalog .series-card-title {
    -webkit-flex: 1 1 0%; flex: 1 1 0%; min-width: 0; min-height: 0;
    padding: 8px 10px; font-size: 16px; line-height: 1.4; white-space: normal;
    word-wrap: break-word; overflow-wrap: break-word;
  }
  .show-movies .movie-card:after,
  .show-series #series-catalog .series-card:after { content: '\203a'; color: #a9d6ff; font-size: 24px; padding: 0 4px; -webkit-flex: 0 0 auto; flex: 0 0 auto; }
  .show-movies .movie-catalog-actions .secondary,
  .show-series #series-catalog .series-catalog-actions .secondary { min-height: 44px; }

  .show-live .live-workspace { width: 100%; min-width: 0; }
  .show-live .live-categories { -webkit-order: 0; order: 0; }
  .show-live .live-player-column { -webkit-order: 1; order: 1; margin-bottom: 8px; min-width: 0; }
  .show-live .live-channels { -webkit-order: 2; order: 2; padding: 8px; margin-bottom: 8px; }
  .show-live .live-channels h3 { font-size: 17px; margin-bottom: 6px; }
  .show-live #live-channels-list { padding: 6px; max-height: 400px; -webkit-overflow-scrolling: touch; }
  .show-live #live-channels-list .live-item {
    display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
    min-width: 0; min-height: 48px; padding: 8px 10px; margin-bottom: 6px;
    font-size: 16px; line-height: 1.4; white-space: normal; word-wrap: break-word;
  }
  .show-live .mobile-channel-logo {
    display: block !important; width: 36px; height: 36px; margin-right: 10px;
    -webkit-flex: 0 0 36px; flex: 0 0 36px; object-fit: contain;
  }
  .show-live .mobile-channel-logo.unavailable { display: none !important; }
  .show-live .mobile-channel-name { min-width: 0; -webkit-flex: 1 1 0%; flex: 1 1 0%; word-wrap: break-word; }
  .show-live .live-player-actions .secondary { min-height: 44px; }
  .show-live #live-channel-name { min-width: 0; font-size: 16px; word-wrap: break-word; }
  .show-live .live-epg { padding: 6px; margin-top: 6px; }
  .show-live .live-epg-list { max-height: 240px; -webkit-overflow-scrolling: touch; }

  .show-movies .movie-details-scroll { padding: 10px; -webkit-overflow-scrolling: touch; }
  .show-movies .movie-cover { width: 84px; height: 126px; padding: 0; margin: 0 12px 8px 0; float: left; }
  .show-movies .movie-cover .movie-poster-placeholder { font-size: 13px; letter-spacing: 0; }
  .show-movies .movie-description { min-width: 0; padding: 0; }
  .show-movies #movie-title { font-size: 20px; line-height: 1.3; margin-bottom: 8px; word-wrap: break-word; }
  .show-movies #movie-watch { width: auto; max-width: 100%; min-width: 0; min-height: 48px; padding: 10px 16px; font-size: 18px; }
  .show-movies #movie-metadata { clear: both; margin: 8px 0; }
  .show-movies .movie-meta-item { margin: 0 10px 6px 0; }
  .show-movies #movie-metadata dt, .show-movies #movie-metadata dd { font-size: 15px; }
  .show-movies #movie-synopsis { font-size: 16px; word-wrap: break-word; }
  .show-movies .movie-header h2, .show-live #live-title { word-wrap: break-word; }
}

/* Independent Series screen: existing Live/Movie selectors are unchanged. */
.show-series .brand, .show-series .status, .show-series .navigation-help, .show-series footer { display: none; }
body.show-series { height: 100vh; overflow: hidden; }
body.show-series .page { display: block; min-height: 0; height: 100vh; padding: 12px; }
.show-series .login-shell { display: block; }
.series-header { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; min-height: 60px; }
.series-header .secondary { -webkit-flex: 0 0 auto; flex: 0 0 auto; width: auto; min-width: 0; min-height: 44px; margin: 0 16px 0 4px; padding: 10px 12px; font-size: 18px; }
.series-header h2 { margin: 0; font-size: 22px; line-height: 1.3; min-width: 0; word-wrap: break-word; }
.series-workspace { height: calc(100vh - 84px); display: -webkit-flex; display: flex; }
.series-categories, .series-results { min-height: 0; min-width: 0; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; background: #101a2a; border: 1px solid #23364f; border-radius: 14px; padding: 12px; }
.series-categories { width: 25%; -webkit-flex: 0 0 25%; flex: 0 0 25%; }
.series-results { width: 75%; -webkit-flex: 1 1 75%; flex: 1 1 75%; margin-left: 10px; }
.series-categories h3 { font-size: 22px; margin: 0 0 10px; }
.series-scroll { -webkit-flex: 1 1 0%; flex: 1 1 0%; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 8px; }
.series-grid { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-align-content: flex-start; align-content: flex-start; }
.series-card { width: 23%; -webkit-flex: 0 0 23%; flex: 0 0 23%; margin: 0 1% 18px; padding: 0; background: #0a1220; color: #edf4ff; border: 2px solid #2b3b52; border-radius: 10px; overflow: hidden; text-align: left; }
.series-card:focus { outline: 3px solid #2495ff; outline-offset: 2px; border-color: #2495ff; box-shadow: 0 0 24px rgba(36,149,255,.8); }
.series-poster { display: block; position: relative; width: 100%; padding-top: 150%; background: #0a1220; }
.series-poster img, .series-cover img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; }
.series-poster-placeholder { position: absolute; top: 45%; left: 0; width: 100%; text-align: center; font-size: 22px; font-weight: bold; color: #2495ff; letter-spacing: 2px; }
.series-card-title { display: block; padding: 10px; min-height: 64px; font-size: 18px; line-height: 1.3; word-wrap: break-word; }
.series-catalog-actions { text-align: center; -webkit-flex: 0 0 auto; flex: 0 0 auto; padding-top: 6px; }
.series-catalog-actions .secondary { width: auto; min-width: 0; min-height: 40px; padding: 8px; margin: 3px; font-size: 14px; letter-spacing: 0; }
#series-count { color: #a6b7cd; font-size: 14px; margin: 0 4px; }
.series-message { color: #c4ddff; font-size: 16px; line-height: 1.4; margin: 4px 6px 8px; }
.series-details-scroll { height: calc(100vh - 84px); overflow-y: auto; padding: 16px; border: 1px solid #23364f; border-radius: 14px; background: #101a2a; }
.series-details-scroll:focus { outline: 3px solid #2495ff; outline-offset: -4px; }
.series-details-layout { display: -webkit-flex; display: flex; -webkit-align-items: flex-start; align-items: flex-start; }
.series-cover { position: relative; width: 26%; -webkit-flex: 0 0 26%; flex: 0 0 26%; padding-top: 39%; background: #060a12; border-radius: 10px; overflow: hidden; }
.series-description { min-width: 0; -webkit-flex: 1 1 0%; flex: 1 1 0%; padding-left: 24px; }
#series-title { font-size: 30px; line-height: 1.3; margin: 0 0 18px; }
#series-watch { width: auto; min-width: 220px; margin-bottom: 12px; }
#series-metadata { margin: 12px 0 20px; font-size: 18px; line-height: 1.5; }
#series-metadata dt { font-weight: bold; color: #a9d6ff; margin-top: 8px; }
#series-metadata dd { margin: 0; word-wrap: break-word; }
#series-synopsis-section h3 { font-size: 20px; margin: 0 0 8px; }
#series-synopsis { font-size: 20px; line-height: 1.5; white-space: pre-wrap; margin: 0; }
.series-player-area { display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; height: calc(100vh - 84px); background: #000; padding: 8px; }
#series-video { width: 100%; height: 0; min-height: 0; -webkit-flex: 1 1 0%; flex: 1 1 0%; object-fit: contain; background: #000; }
#series-video:focus { outline: 3px solid #2495ff; outline-offset: -4px; }
.series-player-controls { -webkit-flex: 0 0 auto; flex: 0 0 auto; text-align: center; padding: 6px; }
.series-player-controls .secondary { width: auto; min-width: 0; min-height: 44px; padding: 10px 14px; font-size: 18px; }
.series-player-area:fullscreen { width: 100%; height: 100%; }
.series-player-area:-webkit-full-screen { width: 100%; height: 100%; }
@media (min-width: 1500px) {
.series-card { width: 18%; -webkit-flex-basis: 18%; flex-basis: 18%; }
}
@media (max-width: 799px) {
.series-header .secondary { font-size: 14px; margin-right: 10px; }
.series-header h2 { font-size: 18px; }
.series-workspace { -webkit-flex-direction: column; flex-direction: column; }
.series-categories { width: 100%; -webkit-flex: 0 0 28%; flex: 0 0 28%; }
.series-results { width: 100%; -webkit-flex: 1 1 0%; flex: 1 1 0%; margin: 8px 0 0; }
.series-card { width: 48%; -webkit-flex-basis: 48%; flex-basis: 48%; }
.series-card-title { font-size: 16px; }
.series-categories h3 { font-size: 18px; }
.series-details-layout { display: block; }
.series-cover { width: 50%; padding-top: 75%; margin: 0 auto 18px; }
.series-description { padding-left: 0; }
#series-title { font-size: 24px; }
#series-watch { width: 100%; }
#series-synopsis { font-size: 18px; }
#series-count { display: block; }
.series-catalog-actions .secondary { font-size: 12px; }
}
.series-search-bar { -webkit-flex: 0 0 auto; flex: 0 0 auto; margin: 0 6px 6px; }
.series-search-label { display: block; font-size: 16px; margin-bottom: 5px; }
.series-search-row { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; }
.series-search-row input { min-width: 0; -webkit-flex: 1 1 0%; flex: 1 1 0%; min-height: 46px; padding: 10px 12px; font-size: 18px; }
.series-search-row .secondary { -webkit-flex: 0 0 auto; flex: 0 0 auto; width: auto; min-width: 0; min-height: 44px; padding: 10px; margin: 0 0 0 12px; font-size: 16px; }
#series-search-scope { margin: 5px 0 0; color: #a6b7cd; font-size: 14px; line-height: 1.3; }
.series-details-scroll { padding: 12px; }
.series-cover { width: 25%; -webkit-flex: 0 0 25%; flex: 0 0 25%; padding-top: 37.5%; }
.series-description { padding-left: 18px; }
#series-title { font-size: 28px; margin-bottom: 10px; }
#series-watch { min-height: 48px; padding: 12px 22px; font-size: 20px; margin-bottom: 6px; }
#series-metadata { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin: 8px 0 10px; line-height: 1.4; }
.series-meta-item { margin: 0 16px 8px 0; max-width: 100%; }
#series-metadata dt { display: inline; margin: 0 6px 0 0; font-size: 16px; }
#series-metadata dd { display: inline; font-size: 18px; }
.series-meta-item.series-credit { width: calc(50% - 16px); }
#series-synopsis { font-size: 18px; line-height: 1.4; }
#series-synopsis-section h3 { font-size: 18px; margin-bottom: 5px; }
.series-player-area { height: calc(100vh - 24px); }
.series-player-area .series-header { -webkit-flex: 0 0 auto; flex: 0 0 auto; padding-bottom: 6px; }
.series-player-controls { padding: 0; }
.series-player-controls .secondary { margin: 6px; }
.series-player-area:fullscreen { height: 100%; }
.series-player-area:-webkit-full-screen { height: 100%; }
@media (max-width: 799px) {
.series-search-label { font-size: 14px; }
.series-search-row input { font-size: 16px; }
.series-search-row .secondary { font-size: 13px; margin-left: 8px; }
#series-search-scope { font-size: 12px; }
.series-cover { width: 42%; padding-top: 63%; }
.series-description { padding-left: 0; }
#series-title { font-size: 24px; }
.series-meta-item.series-credit { width: 100%; }
}
@media (max-width: 767px) {
body.show-series { overflow-x: hidden; }
.show-series .page, .show-series .login-shell { max-width: 100%; min-width: 0; }
.show-series .series-details-scroll { padding: 10px; -webkit-overflow-scrolling: touch; }
.show-series .series-cover { width: 84px; height: 126px; padding: 0; margin: 0 12px 8px 0; float: left; }
.show-series .series-cover .series-poster-placeholder { font-size: 13px; letter-spacing: 0; }
.show-series .series-description { min-width: 0; padding: 0; }
.show-series #series-title { font-size: 20px; line-height: 1.3; margin-bottom: 8px; word-wrap: break-word; }
.show-series #series-watch { width: auto; max-width: 100%; min-width: 0; min-height: 48px; padding: 10px 16px; font-size: 18px; }
.show-series #series-metadata { clear: both; margin: 8px 0; }
.show-series .series-meta-item { margin: 0 10px 6px 0; }
.show-series #series-metadata dt, .show-series #series-metadata dd { font-size: 15px; }
.show-series #series-synopsis { font-size: 16px; word-wrap: break-word; }
.show-series .series-header h2 { word-wrap: break-word; }
}

/* Series details reserve the remaining height for season and episode navigation. */
.show-series .series-details-scroll {
  display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column;
  overflow: hidden; padding: 10px; min-height: 0;
}
.show-series .series-details-layout {
  -webkit-flex: 0 0 auto; flex: 0 0 auto; max-height: 32vh; min-height: 0;
  overflow-y: auto; overflow-x: hidden; padding: 4px;
}
.show-series .series-cover { width: 23%; -webkit-flex: 0 0 23%; flex: 0 0 23%; height: 200px; padding: 0; }
.show-series #series-title { margin-bottom: 6px; font-size: 26px; }
.series-section-title { font-size: 17px; margin: 8px 4px 4px; -webkit-flex: 0 0 auto; flex: 0 0 auto; }
.series-seasons { white-space: nowrap; overflow-x: auto; overflow-y: hidden; padding: 6px; -webkit-flex: 0 0 auto; flex: 0 0 auto; }
.series-seasons .secondary { display: inline-block; width: auto; min-width: 0; margin: 0 8px 0 0; padding: 10px 14px; min-height: 44px; font-size: 17px; }
.series-seasons .selected { background: #153654; border-color: #2495ff; }
.series-episodes { -webkit-flex: 1 1 0%; flex: 1 1 0%; overflow-y: auto; overflow-x: hidden; min-height: 0; padding: 6px; }
.series-episode { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; width: 100%; text-align: left; background: #0a1220; color: #edf4ff; border: 2px solid #2b3b52; border-radius: 8px; margin: 0 0 7px; padding: 8px 12px; font-size: 18px; min-height: 56px; }
.series-episode.last-watched { border-color: #4887af; background: #13283d; }
.series-episode:focus { outline: 3px solid #2495ff; outline-offset: 1px; border-color: #2495ff; box-shadow: 0 0 18px rgba(36,149,255,.8); }
.series-episode-image { position: relative; width: 112px; height: 63px; -webkit-flex: 0 0 112px; flex: 0 0 112px; margin-right: 12px; background: #060a12; }
.series-episode-image img { width: 100%; height: 100%; object-fit: contain; }
.series-episode-image .series-poster-placeholder { font-size: 13px; letter-spacing: 0; top: 35%; }
.series-episode-text { display: block; min-width: 0; -webkit-flex: 1 1 0%; flex: 1 1 0%; word-wrap: break-word; }
.series-episode-text strong, .series-episode-text span { display: block; }
.series-episode-text span { color: #b4c6dd; font-size: 15px; line-height: 1.4; margin-top: 3px; }
.series-episode-description { max-height: 44px; overflow: hidden; }
#series-episodes-more { width: auto; min-height: 42px; padding: 8px; margin: 3px; font-size: 15px; -webkit-flex: 0 0 auto; flex: 0 0 auto; }
@media (max-width: 767px) {
  .show-series .series-details-layout { display: block; max-height: 34vh; }
  .show-series .series-cover { width: 72px; height: 108px; margin-right: 10px; }
  .show-series #series-title { font-size: 20px; }
  .series-seasons { -webkit-overflow-scrolling: touch; }
  .series-seasons .secondary { font-size: 14px; padding: 10px; }
  .series-episodes { -webkit-overflow-scrolling: touch; }
  .series-episode { font-size: 16px; padding: 8px; }
  .series-episode-image { width: 80px; height: 45px; -webkit-flex-basis: 80px; flex-basis: 80px; margin-right: 8px; }
  .series-episode-text span { font-size: 13px; }
}

#series-info-scroll:focus { outline: 3px solid #2495ff; outline-offset: -3px; }

/* Internal screens only: compact header; login and home retain the brand. */
.show-live .brand, .show-movies .brand, .show-series .brand {
  display: none; margin: 0; padding: 0;
}
body.show-live .page, body.show-movies .page, body.show-series .page {
  padding-top: 0; padding-bottom: 12px;
}
.show-live .login-shell, .show-movies .login-shell, .show-series .login-shell {
  display: block; vertical-align: top;
}
.show-live .live-header, .show-movies .movie-header, .show-series .series-header {
  height: 52px; min-height: 52px; margin: 0; padding: 4px 0;
  -webkit-flex: 0 0 52px; flex: 0 0 52px;
}
.show-live .live-header .live-menu-back,
.show-movies .movie-header .secondary, .show-series .series-header .secondary {
  min-height: 44px; margin: 0 12px 0 4px; padding: 8px 12px;
}
.show-live .live-header h2, .show-movies .movie-header h2, .show-series .series-header h2 {
  min-width: 0; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.show-movies .movie-workspace, .show-series .series-workspace,
.show-movies .movie-details-scroll, .show-series .series-details-scroll {
  height: calc(100vh - 64px);
}
.show-movies .movie-player-area, .show-series .series-player-area {
  height: calc(100vh - 12px);
}
.show-movies .movie-player-area:fullscreen, .show-series .series-player-area:fullscreen { height: 100%; }
.show-movies .movie-player-area:-webkit-full-screen, .show-series .series-player-area:-webkit-full-screen { height: 100%; }
@media (min-width: 800px) {
  .show-live .live-workspace { height: calc(100vh - 64px); }
}
@media (max-width: 799px) {
  .show-live .live-header { height: 52px; min-height: 52px; padding: 4px 12px; }
  body.show-live .page { padding-top: 52px; }
  .show-live .live-header h2, .show-movies .movie-header h2, .show-series .series-header h2 { font-size: 16px; }
}

/* IPTV67 custom player controls: ES5/Tizen 3.0 safe, no native video focus trap. */
.iptv67-controls { position: relative; z-index: 31; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-flex-wrap: wrap; flex-wrap: wrap; padding: 9px; background: #14243e; border: 1px solid #38577a; border-radius: 8px; opacity: .85; }
.iptv67-controls.visible, .iptv67-controls:focus-within { opacity: 1; }
.iptv67-control { background: #223d61; color: #fff; border: 1px solid #4b6a90; border-radius: 6px; padding: 9px 12px; min-height: 42px; margin: 3px; font-size: 14px; }
.iptv67-control:focus, .iptv67-progress input:focus, .iptv67-next button:focus { outline: 4px solid #2495ff; outline-offset: 2px; background: #1263ad; box-shadow: 0 0 18px #2495ff; }
.iptv67-progress { -webkit-flex: 1 1 190px; flex: 1 1 190px; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; padding: 0 8px; min-width: 160px; }
.iptv67-progress input { -webkit-flex: 1 1 auto; flex: 1 1 auto; width: 80px; min-height: 30px; padding: 0; margin: 0 8px 0 0; }
.iptv67-clock { color: #e9f2ff; white-space: nowrap; font-size: 13px; }
.iptv67-next { position: absolute; z-index: 40; right: 16px; bottom: 90px; max-width: 85%; padding: 14px; background: rgba(8,20,40,.95); border: 1px solid #2495ff; border-radius: 10px; }
.iptv67-next span { display: block; margin-bottom: 8px; font-size: 15px; }
.iptv67-css-fullscreen { position: fixed !important; top: 0 !important; right: 0 !important; bottom: 0 !important; left: 0 !important; width: 100vw !important; height: 100vh !important; max-height: none !important; max-width: none !important; margin: 0 !important; padding: 4px !important; z-index: 99999 !important; background: #000 !important; border-radius: 0 !important; display: -webkit-flex !important; display: flex !important; -webkit-flex-direction: column !important; flex-direction: column !important; }
.iptv67-css-fullscreen video { -webkit-flex: 1 1 0% !important; flex: 1 1 0% !important; min-height: 0 !important; width: 100% !important; max-height: none !important; object-fit: contain !important; }
.iptv67-css-fullscreen .live-video-frame { -webkit-flex: 1 1 0% !important; flex: 1 1 0% !important; min-height: 0 !important; max-height: none !important; }
.iptv67-css-fullscreen .live-video-frame video { height: 100% !important; }
.iptv67-css-fullscreen .movie-header, .iptv67-css-fullscreen .series-header, .iptv67-css-fullscreen .live-player-bar, .iptv67-css-fullscreen .live-message, .iptv67-css-fullscreen .movie-player-controls, .iptv67-css-fullscreen .series-player-controls { display: none !important; }
.iptv67-css-fullscreen .iptv67-controls { -webkit-flex: 0 0 auto; flex: 0 0 auto; }
@media (max-width: 767px) { .iptv67-control { padding: 7px; font-size: 12px; } .iptv67-next { right: 4px; bottom: 115px; } }
.iptv67-css-fullscreen .live-video-frame:before { display: none !important; }
.iptv67-css-fullscreen .live-video-frame #live-video { position: absolute !important; width: 100% !important; height: 100% !important; }

/* IPTV67 TV 3.0: player occupies the full viewport, not the mini-player frame. */
.iptv67-css-fullscreen.live-player-area { -webkit-flex: none !important; flex: none !important; }
.iptv67-css-fullscreen .live-video-frame { width: 100% !important; max-width: 100% !important; height: auto !important; -webkit-flex: 1 1 0% !important; flex: 1 1 0% !important; overflow: hidden !important; }
.iptv67-css-fullscreen .live-video-frame #live-video { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; object-fit: contain !important; }
/* Controls are fully hidden after inactivity; they reappear with OK/arrows. */
.iptv67-controls { opacity: 0 !important; visibility: hidden; pointer-events: none; }
.iptv67-controls.visible { opacity: 1 !important; visibility: visible; pointer-events: auto; }
.iptv67-next[hidden] { display: none !important; }

/* v3: Fullscreen TV ao vivo detached from mini-player column (old Tizen WebKit). */
body.iptv67-live-fullscreen-active { overflow: hidden !important; }
body > #live-player-area.iptv67-css-fullscreen {
  position: fixed !important; top: 0 !important; left: 0 !important;
  right: auto !important; bottom: auto !important;
  box-sizing: border-box !important; width: 100% !important; height: 100% !important;
  margin: 0 !important; padding: 0 !important; border: 0 !important;
  border-radius: 0 !important; z-index: 2147483000 !important;
  display: block !important; background: #000 !important;
}
body > #live-player-area.iptv67-css-fullscreen .live-video-frame {
  display: block !important; position: absolute !important; top: 0 !important; left: 0 !important;
  width: 100% !important; height: 100% !important; max-width: none !important;
  margin: 0 !important; padding: 0 !important; border: 0 !important;
}
body > #live-player-area.iptv67-css-fullscreen #live-video {
  position: absolute !important; top: 0 !important; left: 0 !important;
  width: 100% !important; height: 100% !important; object-fit: contain !important;
}
.iptv67-css-fullscreen .iptv67-controls {
  position: absolute !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
  z-index: 2147483001 !important;
}
.iptv67-controls:not(.visible) { display: none !important; }
.iptv67-css-fullscreen #live-video:focus, .iptv67-css-fullscreen video:focus { outline: none !important; }

/* Confirmation toast on the home screen (Samsung Tizen 3.0 compatible). */
.exit-toast[hidden] { display: none !important; }
.exit-toast { position: fixed; z-index: 99999; left: 50%; bottom: 9%; width: 360px; max-width: 88%; margin-left: -180px; box-sizing: border-box; padding: 17px 22px; text-align: center; border-radius: 12px; background: rgba(10, 24, 42, .96); color: #fff; border: 2px solid #2495ff; font-size: 20px; font-weight: bold; box-shadow: 0 4px 28px rgba(0,0,0,.65); }
@media (max-width: 440px) { .exit-toast { left: 6%; margin-left: 0; width: 88%; } }
