/* PRO TV TECH — Web TV (Samsung Tizen, LG webOS, Smart TV, PC, mobile). Compatible navigateurs anciens. */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #07070a; color: #efe9d8; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; overflow: hidden; }
body { font-size: 16px; }
@media (min-width: 1600px) { body { font-size: 22px; } }
.hidden { display: none !important; }
.view { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: none; overflow: hidden; background: radial-gradient(1200px 600px at 30% -200px, #2a2410 0, #07070a 65%); }
.view.on { display: block; }
.center { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; height: 100%; }
.col { -webkit-flex-direction: column; flex-direction: column; }
.grow { -webkit-flex: 1; flex: 1; }
.mut { color: #9b9480; } .small { font-size: .8em; } .err { color: #e06464; min-height: 1.2em; }
.brand { font-weight: 900; letter-spacing: .25em; color: #f1d98a; font-size: 1.3em; white-space: nowrap; }
.brand.big { font-size: 2.6em; margin-bottom: .3em; }
.brand img { max-height: 2.2em; vertical-align: middle; }
.spinner { width: 54px; height: 54px; border: 5px solid #3a3424; border-top-color: #d4af37; border-radius: 50%; -webkit-animation: spin 1s linear infinite; animation: spin 1s linear infinite; margin: 20px auto; }
.pos-center { position: absolute; top: 50%; left: 50%; margin: -27px 0 0 -27px; }
@-webkit-keyframes spin { to { -webkit-transform: rotate(360deg); } } @keyframes spin { to { transform: rotate(360deg); } }

/* Focus télécommande */
.f { outline: none; transition: transform .12s, box-shadow .12s, border-color .12s; }
.f.focus, .f:focus { border-color: #d4af37 !important; box-shadow: 0 0 0 3px #d4af37, 0 0 24px rgba(212,175,55,.45); -webkit-transform: scale(1.04); transform: scale(1.04); z-index: 2; position: relative; }
.input.f.focus, .input:focus { -webkit-transform: none; transform: none; }

.input { display: block; width: 100%; padding: .8em 1em; margin: .5em 0; border-radius: 12px; border: 1px solid #3a3424; background: #121216; color: #efe9d8; font-size: 1em; }
.input.slim { width: 280px; margin: 0; padding: .5em .8em; }
.btn { display: inline-block; padding: .8em 1.5em; border-radius: 12px; border: 1px solid #3a3424; background: #15140f; color: #efe9d8; font-weight: 700; font-size: 1em; cursor: pointer; }
.btn.gold { background: linear-gradient(180deg, #e5c35a, #b8922b); color: #1b1505; border: 0; }
.login { max-width: 520px; margin: 6vh auto; padding: 0 24px; text-align: center; }
.login .btn { width: 100%; margin-top: .8em; }
.label { text-align: left; color: #9b9480; margin: 1.2em 0 .4em; }
.chips { text-align: left; }
.chip { display: inline-block; padding: .55em 1.1em; margin: 0 .5em .5em 0; border-radius: 30px; border: 1px solid #2a2618; background: #121216; cursor: pointer; }
.chip.sel { border-color: #d4af37; background: rgba(212,175,55,.2); color: #f1d98a; }

header.top { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; padding: 18px 3vw; }
header.top > * { margin-right: 16px; }
header.top h2 { margin: 0; font-size: 1.3em; color: #f1d98a; }
.back { font-size: 2em; width: 1.4em; height: 1.4em; line-height: 1.3em; text-align: center; border-radius: 50%; border: 1px solid #2a2618; cursor: pointer; }
.clock { font-weight: 700; font-size: 1.2em; }
.warn { margin: 0 3vw 10px; padding: 12px; border-radius: 10px; background: #2a2110; border: 1px solid #5a4818; color: #e7b44c; }

.tiles { display: -webkit-flex; display: flex; padding: 1vh 3vw; }
.tile { -webkit-flex: 1; flex: 1; margin-right: 2vw; height: 26vh; border-radius: 18px; border: 1px solid #2a2618; background: linear-gradient(135deg, #2a2410, #121216); cursor: pointer;
  display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; }
.tile:last-child { margin-right: 0; } .tile i { font-style: normal; font-size: 3em; } .tile b { font-size: 1.4em; margin-top: .3em; }
.small-tiles { padding: 1vh 3vw; } .stile { display: inline-block; padding: .9em 1.4em; margin: 0 1em 1em 0; border-radius: 14px; border: 1px solid #2a2618; background: #121216; cursor: pointer; }
h3 { color: #f1d98a; margin: 1.5vh 3vw .5vh; }
.row-scroll { white-space: nowrap; overflow-x: auto; overflow-y: hidden; padding: 12px 3vw; }
.row-scroll .poster { display: inline-block; vertical-align: top; margin-right: 18px; }
.ann { margin: 10px 3vw; padding: 14px; border-radius: 12px; background: #121216; border: 1px solid #2a2618; }

.split { position: absolute; top: 80px; left: 0; right: 0; bottom: 0; display: -webkit-flex; display: flex; }
.cats { width: 26%; min-width: 220px; overflow-y: auto; padding: 8px; background: rgba(13,13,17,.7); border-right: 1px solid #2a2618; }
.cat { padding: .75em 1em; margin-bottom: 4px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat.sel { color: #f1d98a; font-weight: 800; background: rgba(212,175,55,.14); }
.items { -webkit-flex: 1; flex: 1; overflow-y: auto; padding: 12px 16px; }
.ch { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; padding: 8px 12px; margin-bottom: 6px; border-radius: 10px; border: 1px solid #2a2618; background: #121216; cursor: pointer; }
.ch .num { width: 3em; color: #9b9480; font-size: .8em; } .ch img, .ch .ph { width: 70px; height: 46px; object-fit: contain; margin-right: 14px; background: #1b1b21; border-radius: 6px; }
.ch .nm { font-weight: 600; } .ch .now { color: #9b9480; font-size: .8em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch .txt { -webkit-flex: 1; flex: 1; overflow: hidden; } .ch .star { color: #d4af37; margin-left: 8px; }
.prog { height: 3px; background: rgba(255,255,255,.12); margin-top: 4px; } .prog div { height: 3px; background: #d4af37; }
.grid { font-size: 0; } .grid .poster { display: inline-block; vertical-align: top; margin: 0 16px 18px 0; font-size: 16px; }
.poster { width: 150px; border-radius: 12px; border: 1px solid #2a2618; background: #121216; cursor: pointer; overflow: hidden; }
@media (min-width: 1600px) { .poster { width: 200px; font-size: 20px !important; } }
.poster .img { width: 100%; padding-top: 150%; background: #1b1b21 center/cover no-repeat; position: relative; }
.poster .img .pbar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0,0,0,.6); } .poster .img .pbar div { height: 4px; background: #d4af37; }
.poster .t { padding: 6px 8px 8px; font-size: .85em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poster .st { color: #9b9480; font-size: .7em; padding: 0 8px 6px; }
.scroll { position: absolute; top: 80px; left: 0; right: 0; bottom: 0; overflow-y: auto; padding: 10px 3vw 40px; }
.scroll.narrow { max-width: 900px; margin: 0 auto; }
.empty { text-align: center; padding: 60px 20px; color: #9b9480; }

/* Fiche */
.detail { position: absolute; top: 0; left: 0; right: 0; bottom: 0; overflow-y: auto; padding: 30px 4vw; }
.detail .bg { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-size: cover; background-position: center; opacity: .22; z-index: -1; }
.detail .head { display: -webkit-flex; display: flex; margin-top: 10px; } .detail .cover { width: 240px; min-width: 240px; height: 360px; border-radius: 14px; background: #1b1b21 center/cover no-repeat; margin-right: 34px; }
.detail h1 { margin: 0 0 8px; font-size: 2em; } .detail .meta { color: #9b9480; margin-bottom: 18px; } .detail .plot { line-height: 1.5; color: #d8d2c0; max-width: 900px; }
.detail .actions .btn { margin: 0 12px 12px 0; }
.ep { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; padding: 10px; margin: 6px 0; border-radius: 10px; border: 1px solid #2a2618; background: #121216; cursor: pointer; }
.ep .th { width: 150px; height: 84px; border-radius: 8px; background: #1b1b21 center/cover no-repeat; margin-right: 16px; position: relative; } .ep .th .pbar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; } .ep .th .pbar div { height: 3px; background: #d4af37; }
@media (max-width: 700px) { .detail .head { display: block; } .detail .cover { margin: 0 auto 20px; width: 180px; min-width: 0; height: 270px; } .cats { min-width: 0; width: 38%; } .tiles { display: block; } .tile { height: 16vh; margin: 0 0 12px; } .input.slim { width: 140px; } }

/* Lecteur */
.player { background: #000; }
.player video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #000; object-fit: contain; }
.player video.cover { object-fit: cover; } .player video.fill { object-fit: fill; }
.ptop, .pbottom { position: absolute; left: 0; right: 0; padding: 24px 3vw; transition: opacity .25s; }
.ptop { top: 0; background: linear-gradient(#000, transparent); display: -webkit-flex; display: flex; } .ptitle { font-size: 1.5em; font-weight: 800; -webkit-flex: 1; flex: 1; }
.pepg { position: absolute; top: 70px; left: 3vw; color: #f1d98a; } .pepg .nx { color: #9b9480; font-size: .85em; margin-top: 4px; } .pepg .prog { width: 340px; }
.pbottom { bottom: 0; background: linear-gradient(transparent, #000); text-align: center; }
.player.idle .ptop, .player.idle .pbottom { opacity: 0; pointer-events: none; } .player.idle { cursor: none; }
.pbtn { width: 3em; height: 3em; margin: 0 .3em; border-radius: 50%; border: 1px solid #3a3424; background: rgba(0,0,0,.55); color: #fff; font-size: 1em; cursor: pointer; }
.pbtn.big { width: 3.8em; height: 3.8em; font-size: 1.2em; }
.seek { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; margin-bottom: 14px; } .seek .bar { -webkit-flex: 1; flex: 1; height: 6px; margin: 0 14px; background: rgba(255,255,255,.2); border-radius: 3px; cursor: pointer; } .seek .bar div { height: 6px; background: #d4af37; border-radius: 3px; width: 0; }
.osd { position: absolute; top: 30px; left: 50%; -webkit-transform: translateX(-50%); transform: translateX(-50%); padding: 10px 22px; border-radius: 30px; background: rgba(0,0,0,.75); border: 1px solid #8a7124; font-weight: 700; z-index: 5; }
.fatal { position: absolute; top: 50%; left: 50%; -webkit-transform: translate(-50%,-50%); transform: translate(-50%,-50%); text-align: center; background: rgba(0,0,0,.88); padding: 30px 40px; border-radius: 18px; z-index: 6; }
.fatal .btn { margin: 6px; }
.plist { position: absolute; top: 0; bottom: 0; left: 0; width: 420px; max-width: 85%; background: rgba(0,0,0,.9); overflow-y: auto; padding: 14px; z-index: 7; }
.plist .ch { background: transparent; } .plist .ch.cur { color: #f1d98a; }

.modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.75); z-index: 50; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; }
.modal > div { background: #141418; border: 1px solid #3a3424; border-radius: 16px; padding: 26px; max-width: 640px; width: 90%; max-height: 85vh; overflow-y: auto; }
.modal h3 { margin: 0 0 12px; } .modal .btn { margin: 14px 10px 0 0; }
.toast { position: fixed; bottom: 30px; left: 50%; -webkit-transform: translateX(-50%); transform: translateX(-50%); background: #1b1b21; border: 1px solid #3a3424; border-left: 3px solid #d4af37; padding: 12px 20px; border-radius: 10px; z-index: 60; }
.set-row { display: -webkit-flex; display: flex; -webkit-justify-content: space-between; justify-content: space-between; -webkit-align-items: center; align-items: center; padding: 14px 16px; margin: 6px 0; border-radius: 10px; border: 1px solid #2a2618; background: #121216; }
.set-row.f { cursor: pointer; } .set-h { color: #f1d98a; font-weight: 800; margin: 22px 0 6px; }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: #3a3424; border-radius: 4px; }
