/* 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; }

/* 2.4.0 : chargement du catalogue et zapping */
.loadbox{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:48px 20px;text-align:center}
.loadbox .lmsg{font-size:1.05rem;color:#e8e8e8}
.loadbox .lhint{color:#9a9a9a;font-size:.85rem;max-width:420px;min-height:1.2em}
.hstatus{margin:8px 24px;padding:10px 16px;border:1px solid rgba(212,175,55,.35);border-radius:12px;background:rgba(212,175,55,.08);font-size:.9rem;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.spinner.mini{width:16px;height:16px;border-width:2px;display:inline-block;position:static;margin:0}
.btn.slim{padding:4px 12px;font-size:.85rem}
.appdls{display:flex;gap:12px;flex-wrap:wrap;margin:6px 24px 14px}
a.appdl{display:flex;align-items:center;gap:12px;padding:12px 18px;border:1px solid rgba(212,175,55,.35);border-radius:14px;background:rgba(212,175,55,.08);color:#eee;text-decoration:none;min-width:260px}
.appnote{margin:0 24px 14px;padding:10px 14px;border-radius:12px;background:rgba(255,255,255,.05);color:#bbb;font-size:.85rem;line-height:1.5;max-width:640px}
.appnote b{color:#eee}
#v-login,#v-home{overflow-y:auto}
.lapps{margin-top:18px;text-align:left}
.lapps h3{text-align:center;margin:0 0 8px}
.lapps .appdls,.lapps .appnote,.lapps .appwarn{margin-left:0;margin-right:0}
.lapps .appdl{min-width:0;width:100%;box-sizing:border-box}
.appwarn{margin:4px 24px 12px;padding:10px 14px;border-radius:12px;border:1px solid rgba(224,100,100,.45);background:rgba(224,100,100,.08);color:#ddd;font-size:.9rem;line-height:1.5;max-width:640px}
a.appdl i{font-style:normal;font-size:1.8rem}
a.appdl b{display:block;color:#d4af37}
a.appdl small{color:#aaa}
.acct{margin:10px 24px 14px;padding:16px;border-radius:18px;border:1px solid rgba(212,175,55,.35);background:linear-gradient(160deg,rgba(212,175,55,.12),rgba(255,255,255,.03));box-shadow:0 6px 18px rgba(0,0,0,.35)}
.ac-head{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.ac-av{width:46px;height:46px;border-radius:50%;background:#d4af37;color:#1a1306;font-weight:800;font-size:1.3rem;display:flex;align-items:center;justify-content:center}
.ac-who{flex:1;min-width:0}
.ac-who small{display:block;color:#9a9a9a;font-size:.75rem}
.ac-who b{font-size:1.1rem;color:#fff;word-break:break-all}
.ac-badge{padding:4px 12px;border-radius:99px;font-size:.78rem;font-weight:700}
.ac-badge.ok{background:rgba(61,220,132,.18);color:#3ddc84}
.ac-badge.warn{background:rgba(255,170,0,.18);color:#ffaa00}
.ac-badge.bad{background:rgba(224,100,100,.2);color:#ff7a7a}
.ac-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}
.acb{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;background:rgba(255,255,255,.05)}
.acb i{font-style:normal;font-size:1.3rem}
.acb small{display:block;color:#9a9a9a;font-size:.72rem}
.acb b{color:#eee;font-size:.92rem;word-break:break-all}
.ac-sup{margin-top:10px;color:#c4c4c4;font-size:.85rem}
.appsec{margin:10px 24px 18px}
.appsec h3{margin:0 0 4px;font-size:1.2rem}
.appsub{margin:0 0 12px;color:#9a9a9a;font-size:.9rem}
.appsec .appwarn{margin:0 0 14px;max-width:none}
.apcs{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}
.apc{position:relative;display:flex;flex-direction:column;gap:10px;padding:16px;border-radius:18px;border:1px solid rgba(255,255,255,.09);background:linear-gradient(160deg,rgba(255,255,255,.07),rgba(255,255,255,.02));box-shadow:0 6px 18px rgba(0,0,0,.35);overflow:hidden}
.apc::before{content:"";position:absolute;left:0;top:0;right:0;height:3px;background:linear-gradient(90deg,var(--c1),var(--c2))}
.apc.me{border-color:rgba(212,175,55,.6);box-shadow:0 6px 22px rgba(212,175,55,.18)}
.apc.soon{opacity:.75}
.apc-me{position:absolute;right:10px;top:12px;padding:2px 9px;border-radius:99px;background:#d4af37;color:#1a1306;font-size:.68rem;font-weight:700}
.apc-top{display:flex;align-items:center;gap:12px}
.apc-ic{width:52px;height:52px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:1.7rem;background:linear-gradient(135deg,var(--c1),var(--c2));box-shadow:0 4px 10px rgba(0,0,0,.4)}
.apc-t{font-weight:700;font-size:1.05rem;color:#fff}
.apc-s{font-size:.78rem;color:#9a9a9a}
.apc-d{margin:0;color:#c4c4c4;font-size:.86rem;line-height:1.45;flex:1}
.apc-m{display:flex;gap:6px;flex-wrap:wrap}
.apc-chip{padding:2px 9px;border-radius:99px;background:rgba(255,255,255,.08);color:#ddd;font-size:.72rem}
.apc-chip.soon{background:rgba(212,175,55,.15);color:#d4af37}
.apc-btn{display:block;text-align:center;padding:10px 14px;border-radius:12px;background:#d4af37;color:#1a1306;font-weight:700;text-decoration:none}
.apc-btn.off{background:rgba(255,255,255,.08);color:#999}
.apc-how{font-size:.82rem;color:#bbb}
.apc-how summary{cursor:pointer;color:#d4af37}
.apc-how div{margin-top:6px;line-height:1.5}
.apc-how b{color:#eee}
.lapps .appsec{margin:0}
.lapps .apcs{grid-template-columns:1fr}
a.dl{display:inline-block;padding:9px 16px;border-radius:10px;background:#d4af37;color:#1a1306;font-weight:700;text-decoration:none}
