/* DUNA GO · layout "side" (menu lateral). Tudo sob html.side: com o layout de abas do Space nada daqui vale. Medidas do app Android (960x540 dp):
   menu 150 dp, item 36 dp, ícone 28 dp, texto 12 sp, logo 38 dp. Cores vêm do tema da marca (--bg, --pri, --tx… definidas pelo app.js). */
html.side { --sw: 27.8vh; --pw: 86vh; --ph: 48.4vh; --pr: 2vw; }

/* entrada: o fundo ilustrado da marca, só nas telas de entrada */
html.side .scr.login { background: var(--bgimg, none) center / cover no-repeat; }
html.side .login img.logo { height: 15vh; width: auto; max-width: 64vh; border-radius: 0; }
html.side .btn { background: rgba(255, 255, 255, .14); }
html.side .btn.pri { background: var(--pri); color: var(--bg); font-weight: 700; }
html.side .f.on { box-shadow: 0 0 0 .4vh var(--ring); }
html.side .btn.f.on { background-color: var(--pri) !important; color: var(--bg); }
html.side .field input { color: var(--tx); }

/* ---------- menu lateral ---------- */
.sb { position: absolute; left: 0; top: 0; bottom: 0; width: var(--sw); background: var(--menu, #3D2F2A); border-right: .2vh solid var(--sf, #523F39); z-index: 4; }
.sb-logo { position: absolute; left: 1.6vh; top: 2.6vh; width: calc(var(--sw) - 3.2vh); height: 8vh; object-fit: contain; object-position: center; }   /* logotipo largo da marca, centralizado no topo do menu */
.sb-items { position: absolute; left: 1.7vh; right: 0; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; }
html.side .sb-item { display: flex; align-items: center; height: 6.7vh; margin: .2vh 0; padding: 0 .6vh 0 .4vh; border-radius: .75vh 0 0 .75vh; background: transparent; color: rgba(255, 255, 255, .6); font-size: 2.2vh; font-weight: 400; letter-spacing: 0; }
html.side .sb-item .mi { flex: none; width: 5.2vh; height: 5.2vh; position: relative; color: #9698A3; }
html.side .sb-item .mi img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: none; }
html.side .sb-item .mi img.n { display: block; }
html.side .sb-item .mi svg { width: 100%; height: 100%; display: block; }
html.side .sb-item .lb { margin-left: 1.1vh; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.side .sb-item.cur { background: rgba(238, 166, 125, .2); color: var(--pri); font-weight: 400; }
html.side .sb-item.cur .mi img.n { display: none; }
html.side .sb-item.cur .mi img.se { display: block; }
html.side .sb-item.cur .mi { color: #fff; }
html.side .sb-item.f.on { background: var(--pri) !important; box-shadow: none; color: var(--bg); }
html.side .sb-item.f.on .mi img.n, html.side .sb-item.f.on .mi img.se { display: none; }
html.side .sb-item.f.on .mi img.fo { display: block; }
html.side .sb-item.f.on .mi { color: var(--bg); }
.sb-ver { position: absolute; left: 0; right: 0; bottom: 1.4vh; text-align: center; font-size: 2vh; color: var(--tx2); }

/* área ao lado do menu */
html.side #tabbody { left: var(--sw); top: 0; }
html.side .lcol { left: 2vw; width: calc(100vw - var(--sw) - var(--pw) - var(--pr) - 5vw); min-width: 0; }
html.side .rcol { top: 2.4vh; }
html.side .lcol { top: 2.4vh; }
html.side .rinfo h2 { font-size: 3.6vh; }
html.side .rinfo p { font-size: 2.5vh; }
html.side .ph { border-color: var(--pri); }
html.side .row.cur .nm, html.side .rinfo p b { color: var(--pri); }
html.side .row .bd, html.side .q.on { background: var(--pri2); border-color: var(--pri2); color: #fff; }
html.side .q { border-color: var(--tx2); color: var(--tx2); }

/* ---------- cartões: Perfil, Renovação, Ajuda ---------- */
.dcard { position: absolute; left: 3vw; right: 4vw; top: 6vh; max-height: 88vh; overflow: hidden; padding: 4vh 4.4vh; border-radius: 1.6vh; background: var(--sf, #523F39); }
.dcard h1 { margin: 0 0 2.6vh; font-size: 4.4vh; font-weight: 600; }
.dcard .kv { display: flex; margin: 1.1vh 0; font-size: 2.8vh; }
.dcard .kv small { width: 26vh; color: var(--tx2); font-size: 2.3vh; text-transform: uppercase; letter-spacing: .1vh; padding-top: .5vh; }
.dcard .btns { margin-top: 3vh; display: flex; flex-wrap: wrap; }
.dcard .btns .btn { margin-left: 0; }
.dcard .txt { margin: 2vh 0 0; font-size: 2.4vh; line-height: 1.5; color: var(--tx); }
.dcard .txt b { color: var(--pri); }
.dcard .txt.sup { color: var(--pri); }
.dcard .plan { display: flex; flex-direction: column; padding: 2.4vh 3vh; border-radius: 1.2vh; background: rgba(0, 0, 0, .22); }
.dcard .plan small { color: var(--tx2); font-size: 2.1vh; letter-spacing: .15vh; }
.dcard .plan b { font-size: 4.6vh; color: var(--pri); margin: .6vh 0; }
.dcard .plan span { font-size: 2.6vh; }

/* ---------- Filmes & Séries: abas de texto ---------- */
.fs-tabs { position: absolute; left: 3vw; top: 1.6vh; height: 7vh; display: flex; align-items: center; z-index: 2; }
.fs-tab { padding: .8vh 2.4vh; margin-right: 1vh; border-radius: 1vh; font-size: 3.2vh; color: var(--tx2); }
.fs-tab.cur { color: var(--pri); font-weight: 700; box-shadow: inset 0 -.5vh 0 var(--pri); border-radius: 0; }
html.side .fs-tab.f.on { color: var(--bg); background: var(--pri) !important; box-shadow: none; border-radius: 1vh; }
#subbody { position: absolute; left: 0; right: 0; top: 9vh; bottom: 0; }

/* ---------- Pesquisar ---------- */
.sr-left { position: absolute; left: 2.4vw; top: 2.4vh; width: 52vh; }
.sr-q { height: 8vh; display: flex; align-items: center; padding: 0 2.2vh; border-radius: 1.2vh; background: rgba(0, 0, 0, .28); font-size: 3.4vh; white-space: nowrap; overflow: hidden; text-transform: uppercase; }
.sr-q.empty { color: var(--tx2); text-transform: none; }
.skeys { display: flex; flex-wrap: wrap; margin-top: 1.6vh; }
.skey { width: 7.8vh; height: 7.2vh; margin: 0 .5vh .5vh 0; border-radius: 1vh; background: rgba(255, 255, 255, .12); display: flex; align-items: center; justify-content: center; font-size: 3vh; }
.skey.wide { width: 24vh; font-size: 2.6vh; }
html.side .skey.f.on { background-color: var(--pri) !important; color: var(--bg); box-shadow: none; }
.sr-right { position: absolute; left: calc(2.4vw + 54vh); right: 1.6vw; top: 2.4vh; bottom: 1vh; overflow: hidden; }
.sr-msg { margin: 6vh 2vh; font-size: 3vh; color: var(--tx2); }
.sr-t { font-size: 3vh; font-weight: 700; margin: 1vh 0 1vh 1vh; }
.sr-row { display: flex; flex-wrap: wrap; margin-bottom: 1vh; }
.sr-ch { display: flex; align-items: center; width: 33vh; height: 7vh; margin: 0 1vh 1vh 0; padding: 0 1.4vh; border-radius: 1vh; background: rgba(255, 255, 255, .1); overflow: hidden; }
.sr-ch .lg { width: 6vh; height: 5vh; margin-right: 1.2vh; flex: none; display: flex; align-items: center; justify-content: center; }
.sr-ch .lg img { max-width: 100%; max-height: 100%; }
.sr-ch .nm { font-size: 2.4vh; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Início (igual ao do Android; 1 dp = .1852 vh) ---------- */
.hm { position: absolute; left: 0; right: 0; top: 0; bottom: 0; overflow: hidden; }
.hh { position: relative; height: 40.7vh; background: var(--bg); overflow: hidden; }
.hh-img { position: absolute; left: 0; top: 0; right: 0; bottom: 0; background-size: cover; background-position: center right; }
.hh-g1 { position: absolute; left: 0; top: 0; right: 0; bottom: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(61, 47, 42, .92) 28%, rgba(61, 47, 42, 0) 72%); }
.hh-g2 { position: absolute; left: 0; right: 0; bottom: 0; height: 17.8vh; background: linear-gradient(to top, var(--bg), rgba(61, 47, 42, 0)); }
.hh-tx { position: absolute; left: 4.4vh; top: 4.8vh; width: 77.8vh; }
.hh-t { font-size: 3.5vh; font-weight: 500; line-height: 1.2; max-height: 8.4vh; overflow: hidden; }
.hh-p { margin-top: 1.1vh; font-size: 2.04vh; line-height: 1.4; color: rgba(255, 255, 255, .7); max-height: 11.6vh; overflow: hidden; }
.hh-play { position: absolute; left: 4.4vh; bottom: 7.4vh; width: 52.8vh; height: 7.4vh; border-radius: 1vh; background: var(--pri); color: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 2.8vh; font-weight: 700; }
.hh-play svg { width: 3.5vh; height: 3.5vh; fill: currentColor; margin-right: 1.5vh; }
html.side .hh-play.f.on { background-color: var(--pri) !important; box-shadow: 0 0 0 .5vh #fff; }
.hh-lbl { position: absolute; left: 4.4vh; bottom: 1.5vh; font-size: 3.7vh; font-weight: 700; }
.hl { margin: 0 2.2vh 0 4.26vh; }
.hlt { margin: 2.6vh 0 1.5vh 0; font-size: 3.7vh; font-weight: 700; }
.hh + .hl .hlt { display: none; }
.hh + .hl { margin-top: 0; }
.hpanel { display: flex; padding: 2.6vh; border-radius: 1.5vh; background: var(--sf, #523F39); margin-bottom: 2.6vh; }
.hp-prev { flex: none; width: 68.5vh; height: 38.5vh; border: 0; border-radius: 0; background: #000; }
.hlist { flex: 1; min-width: 0; height: 38.5vh; margin-left: 2.2vh; overflow: hidden; position: relative; }
.hrow { display: flex; align-items: center; height: 9.6vh; padding: 0 1.85vh; border-radius: .75vh; color: var(--tx); }
.hrow .pl { width: 2.6vh; height: 2.6vh; fill: var(--pri); visibility: hidden; flex: none; }
.hrow.cur .pl { visibility: visible; }
.hrow .no { margin-left: .75vh; font-size: 2.4vh; color: var(--tx2); min-width: 4.4vh; }
.hrow .lg { margin-left: 1.1vh; width: 11.9vh; height: 6.3vh; flex: none; display: flex; align-items: center; justify-content: center; }
.hrow .lg img { max-width: 100%; max-height: 100%; }
.hrow .nm { margin-left: 2.2vh; flex: 1; min-width: 0; font-size: 2.4vh; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hrow.cur .nm { color: var(--pri); }
html.side .hrow.f.on { background-color: var(--pri) !important; box-shadow: none; color: var(--bg); }
html.side .hrow.f.on .nm, html.side .hrow.f.on .no { color: var(--bg); }
html.side .hrow.f.on .pl { fill: var(--bg); }
.hmsg { margin: 3vh 4vh; font-size: 2.6vh; color: var(--tx2); }
.hr { padding-bottom: .4vh; }
.hrt { margin: 2.6vh 0 1.5vh 4.4vh; font-size: 2.8vh; font-weight: 700; }
.hstrip { display: flex; overflow: hidden; padding: .8vh 4.4vh; white-space: nowrap; }
.hc { flex: none; width: 21.5vh; margin-right: 1.85vh; margin-bottom: 3vh; transition: transform .12s; }
html.side .hc.f.on { background-color: transparent !important; box-shadow: none; transform: scale(1.05); }
.hf { position: relative; width: 21.5vh; height: 32.2vh; background: var(--sf, #523F39) center / cover no-repeat; border-radius: .5vh; overflow: hidden; }
html.side .hc.f.on .hf { box-shadow: 0 0 0 .5vh var(--pri); }
.hb { position: absolute; right: 0; top: 0; height: 4vh; padding: 0 .9vh 0 1.3vh; display: flex; align-items: center; background: var(--acc, #00B69D); color: #fff; font-size: 2.2vh; border-bottom-left-radius: 1vh; }
.hb::before { content: "★ "; margin-right: .4vh; }
.hp { position: absolute; left: 0; right: 0; bottom: 0; height: .55vh; background: rgba(255, 255, 255, .3); }
.hp i { display: block; height: 100%; background: var(--pri); }
.ht { margin-top: 1.5vh; font-size: 2.1vh; color: rgba(255, 255, 255, .9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs { font-size: 1.85vh; color: var(--tx2); white-space: nowrap; }

/* ---------- favoritos e listas ---------- */
.lhint { margin: 1vh 4.4vh 0; font-size: 2.1vh; color: var(--tx2); }
.lchs { padding: .8vh 4.4vh; }
.row .fv, .sr-ch .fv { flex: none; margin-left: 1vh; color: var(--pri); font-size: 2.6vh; }
html.side .row.f.on .fv { color: var(--bg); }

/* ---------- Filmes e Séries (igual ao do Android; 1 dp = .1852 vh) ---------- */
.mv { position: absolute; left: 0; right: 0; top: 0; bottom: 0; overflow: hidden; }
.mv-cats { position: absolute; left: 0; top: 0; bottom: 0; width: 28.9vh; padding: 1vh 1.1vh 3vh 2.2vh; box-sizing: border-box; overflow: hidden; }
.mv-cat { height: 7vh; margin-bottom: .4vh; padding: 0 1.1vh 0 1.5vh; display: flex; align-items: center; border-radius: .75vh; font-size: 2.8vh; color: var(--tx); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background-color: transparent; }
.mv-cat.cur { background-color: rgba(238, 166, 125, .2); color: var(--pri); }
html.side .mv-cat.f.on { background-color: var(--pri) !important; box-shadow: none; color: var(--bg); }
.mv-main { position: absolute; left: 28.9vh; right: 0; top: 0; bottom: 0; padding-left: 5.6vh; }
.mv-filter { height: 4.8vh; margin: 3vh 3vh .75vh 0; padding: 0 1.5vh 0 1.1vh; display: flex; align-items: center; border-radius: .75vh; font-size: 2.04vh; color: var(--tx); background-color: transparent; }
.mv-filter svg { width: 2.4vh; height: 2.4vh; fill: currentColor; flex: none; }
.mv-filter .lb { flex: 1; margin-left: 1.1vh; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.side .mv-filter.f.on { background-color: var(--pri) !important; box-shadow: none; color: var(--bg); }
.mv-grid { position: absolute; left: 0; right: 0; top: 9.2vh; bottom: 0; overflow: hidden; padding: 1vh 0 3.7vh 0; display: flex; flex-wrap: wrap; align-content: flex-start; }
.mv-grid .hc { margin-bottom: 1.9vh; }
.mv-main .hmsg { position: absolute; left: 0; top: 12vh; margin: 0; }
.mv-panel { display: none; position: absolute; left: 0; top: 8.4vh; width: 70.4vh; padding: 2.6vh; box-sizing: border-box; z-index: 6; background: #3D2F2A; border: .2vh solid rgba(255, 255, 255, .2); border-radius: 2.6vh; }
.mv-panel.open { display: block; }
.mv-pt { font-size: 3.5vh; font-weight: 700; }
.mv-pl { margin-top: 1.9vh; font-size: 2.04vh; color: var(--tx2); }
.mv-row { display: flex; margin-top: 1.1vh; }
.mv-chip { height: 5.2vh; margin-right: 1vh; padding: 0 2.2vh; display: flex; align-items: center; border-radius: 3vh; font-size: 2.2vh; font-weight: 700; color: var(--tx); background-color: rgba(255, 255, 255, .14); }
.mv-chip.sel { background-color: rgba(238, 166, 125, .2); box-shadow: inset 0 0 0 .2vh var(--pri); color: var(--pri); }
html.side .mv-chip.f.on { background-color: var(--pri) !important; box-shadow: none; color: var(--bg); }
