/* ============================================================
mobile.css: the phone and the tablet, loaded after tv2.css.

Nothing here reaches a TV: every rule hangs off html.is-phone or
html.is-tab, and js/device.js only sets those on a touch screen.
The numbers (--pad, --cardw, --arth, --ch, --rowh, --widew,
--wideh, --bar, --top) are written by that same file, so the grid
arithmetic and this file cannot drift apart.

The page is no longer a 1920x1080 stage: the viewport is the
device's own, the tabs move to the bottom, the covers are as wide
as a thumb, and everything the pointer touches is at least 44px.
============================================================ */

/* ---------- 0. numbers, until device.js writes the real ones ---------- */
html.is-phone {
    --pad: 14px; --gap: 10px; --cols: 3;
    --cardw: 110px; --arth: 165px; --ch: 230px; --rowh: 220px; --cw: 120px;
    --widew: 220px; --wideh: 124px; --widerowh: 190px; --smallrowh: 190px;
    --bar: 56px; --top: 42px;
}
html.is-tab {
    --pad: 22px; --gap: 16px; --cols: 5;
    --cardw: 140px; --arth: 210px; --ch: 290px; --rowh: 280px; --cw: 156px;
    --widew: 300px; --wideh: 169px; --widerowh: 240px; --smallrowh: 240px;
    --bar: 62px; --top: 48px;
}

html.is-phone, html.is-tab { -webkit-text-size-adjust: 100%; }
/* a pagina era uma superficie de 1920x1080; aqui ela e a tela do aparelho */
html.is-phone, html.is-tab,
html.is-phone body, html.is-tab body {
    width: 100%; height: 100%; cursor: auto;
}
html.is-phone body, html.is-tab body { overscroll-behavior: none; }

/* the video plane and the screen saver take the whole page, not 1920x1080 */
html.is-phone #av, html.is-tab #av,
html.is-phone .saver, html.is-tab .saver { width: 100vw; height: 100dvh; }

/* a tap is a tap, not a blue flash and not a text selection */
html.is-phone * { -webkit-tap-highlight-color: transparent; }
html.is-phone .view, html.is-tab .view { -webkit-user-select: none; user-select: none; }

/* the app is driven by taps and swipes: these are the pieces the browser
   needs to take the finger itself */
html.is-phone .tabs, html.is-phone .tab, html.is-phone .profile, html.is-phone .cfg,
html.is-tab .tabs, html.is-tab .tab, html.is-tab .profile, html.is-tab .cfg { pointer-events: auto; }

/* ---------- 1. the top: a line of state, the tabs went to the bottom ---------- */
html.is-phone .top, html.is-tab .top { height: var(--top); will-change: auto; }
html.is-phone .top.is-hidden, html.is-tab .top.is-hidden { transform: none; opacity: 1; }

html.is-phone .status, html.is-tab .status {
    top: calc(env(safe-area-inset-top) + 6px); right: 10px; height: 30px; padding: 0 10px 0 4px;
    border-radius: 15px; gap: 0;
}
html.is-phone .status__clock, html.is-tab .status__clock { font-size: 12px; font-weight: 600; }
html.is-phone .profile, html.is-tab .profile { height: 26px; padding: 0 10px 0 2px; margin-left: 8px; gap: 6px; border-radius: 13px; }
html.is-phone .cfg, html.is-tab .cfg { width: 24px; height: 24px; margin-left: 8px; }
html.is-phone .cfg svg, html.is-tab .cfg svg { width: 16px; height: 16px; }
html.is-phone .profile-av, html.is-tab .profile-av { width: 22px; height: 22px; font-size: 11px; }
html.is-phone .profile-name, html.is-tab .profile-name { font-size: 11px; max-width: 72px; overflow: hidden; text-overflow: ellipsis; }

html.is-phone .brand, html.is-tab .brand, html.is-phone .status__stamp, html.is-tab .status__stamp {
    left: var(--pad); top: calc(env(safe-area-inset-top) + 6px); height: 28px;
    gap: 6px; padding: 0 11px; border-radius: 14px; font-size: 9px; letter-spacing: 0.08em;
}
html.is-phone .brand__img, html.is-tab .brand__img { max-height: 20px; max-width: 120px; }
html.is-phone .brand__name, html.is-tab .brand__name { font-size: 11px; }
html.is-phone .tabs {
    position: fixed; top: auto; bottom: 0; left: 0; right: 0; transform: none; border-radius: 0; gap: 2px; z-index: 40;
    padding: 5px 6px calc(5px + env(safe-area-inset-bottom)); justify-content: space-around;
    background: rgba(10, 12, 17, 0.86); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border-top: 1px solid rgba(255,255,255,0.07);
}
html.is-tab .tabs {
    position: fixed; top: auto; bottom: 0; left: 0; right: 0; transform: none; border-radius: 0; gap: 4px; z-index: 40;
    padding: 6px 12px calc(6px + env(safe-area-inset-bottom)); justify-content: center;
    background: rgba(10, 12, 17, 0.86); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border-top: 1px solid rgba(255,255,255,0.07);
}
html.is-phone .tab, html.is-tab .tab {
    flex: 1 1 0; height: var(--bar); min-width: 0; padding: 0; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
}
html.is-tab .tab { flex: 0 1 120px; }
html.is-phone .tab svg, html.is-tab .tab svg { width: 24px; height: 24px; }
html.is-phone .tab.is-focused, html.is-tab .tab.is-focused {
    transform: none; box-shadow: none; background: rgba(255,255,255,0.14); color: #fff;
}
html.is-phone .tab.is-focused svg, html.is-tab .tab.is-focused svg { transform: scale(1.06); }

/* ---------- 2. pages ---------- */
html.is-phone .empty, html.is-tab .empty { top: 34vh; padding: 0 var(--pad); }
html.is-phone .empty__title, html.is-tab .empty__title { font-size: 20px; margin-bottom: 10px; }
html.is-phone .empty__text, html.is-tab .empty__text { font-size: 13px; max-width: none; margin-bottom: 22px; }
html.is-phone .empty .btn, html.is-tab .empty .btn { margin: 0 6px; }

/* ---------- 3. buttons, chips, badges: sized for a thumb ---------- */
html.is-phone .btn, html.is-tab .btn {
    height: 44px; padding: 0 18px; border-radius: 22px; font-size: 14px; gap: 8px;
}
html.is-phone .btn--round, html.is-tab .btn--round { width: 44px; padding: 0; }
html.is-phone .btn svg, html.is-tab .btn svg { width: 18px; height: 18px; }
html.is-phone .chip, html.is-tab .chip {
    height: 34px; padding: 0 14px; border-radius: 17px; font-size: 12.5px; gap: 6px;
}
html.is-phone .chip__n, html.is-tab .chip__n { margin-left: 6px; font-size: 10px; }
html.is-phone .chip svg, html.is-tab .chip svg { width: 14px; height: 14px; }
html.is-phone .imdb, html.is-tab .imdb { height: 20px; font-size: 11px; gap: 4px; padding: 0 6px 0 4px; border-radius: 5px; }
html.is-phone .imdb b, html.is-tab .imdb b { font-size: 9px; padding: 0 4px; border-radius: 3px; }
html.is-phone .badge, html.is-tab .badge { height: 18px; padding: 0 6px; border-radius: 4px; font-size: 9px; border-width: 1px; }
html.is-phone .age, html.is-tab .age { height: 18px; padding: 0 6px; border-radius: 4px; font-size: 10px; border-width: 1px; gap: 3px; }
html.is-phone .age small, html.is-tab .age small { font-size: 8px; }
html.is-phone .dot, html.is-tab .dot { margin: 0 7px; }

/* ---------- 4. covers ---------- */
html.is-phone .card, html.is-tab .card { transition-duration: 200ms; }
html.is-phone .card.is-focused, html.is-tab .card.is-focused { transform: scale(1.04); }
html.is-phone .card--poster, html.is-tab .card--poster,
html.is-phone .vod__gridin .card--poster, html.is-tab .vod__gridin .card--poster { width: var(--cardw); }
html.is-phone .card--poster .card__art, html.is-tab .card--poster .card__art,
html.is-phone .vod__gridin .card--poster .card__art, html.is-tab .vod__gridin .card--poster .card__art {
    width: var(--cardw); height: var(--arth); border-radius: 10px;
}
html.is-phone .card--wide, html.is-tab .card--wide { width: var(--widew); }
html.is-phone .card--wide .card__art, html.is-tab .card--wide .card__art {
    width: var(--widew); height: var(--wideh); border-radius: 10px;
}
html.is-phone .card--channel, html.is-tab .card--channel { width: var(--widew); }
html.is-phone .card--channel .card__art, html.is-tab .card--channel .card__art {
    width: var(--widew); height: calc(var(--widew) * 0.56); border-radius: 10px;
}
html.is-phone .card__cap, html.is-tab .card__cap { margin-top: 6px; font-size: 12px; font-weight: 600; }
html.is-phone .card__sub, html.is-tab .card__sub { margin-top: 1px; font-size: 10.5px; gap: 5px; }
html.is-phone .card__sub .imdb, html.is-tab .card__sub .imdb { height: 15px; font-size: 9px; }
html.is-phone .card__sub .imdb b, html.is-tab .card__sub .imdb b { font-size: 8px; }
html.is-phone .card__rate, html.is-tab .card__rate { top: 6px; right: 6px; }
html.is-phone .card__rate .imdb, html.is-tab .card__rate .imdb { height: 18px; font-size: 10px; }
html.is-phone .card__seen, html.is-tab .card__seen { left: 6px; top: 6px; width: 20px; height: 20px; border-radius: 10px; }
html.is-phone .card__seen svg, html.is-tab .card__seen svg { width: 11px; height: 11px; }
html.is-phone .card__rank, html.is-tab .card__rank { left: 4px; font-size: 44px; letter-spacing: -2px; }
html.is-phone .card__bar, html.is-tab .card__bar { left: 8px; right: 8px; bottom: 8px; height: 3px; }
html.is-phone .card__wtitle, html.is-tab .card__wtitle { font-size: 11px; }
html.is-phone .card__wsub, html.is-tab .card__wsub { font-size: 9px; }
html.is-phone .card__wtxt, html.is-tab .card__wtxt { padding: 26px 8px 10px; }
html.is-phone .card__logo, html.is-tab .card__logo { left: 14px; right: 14px; top: 14px; bottom: 18px; }
html.is-phone .card__logo--txt, html.is-tab .card__logo--txt { font-size: 15px; }
html.is-phone .card__now, html.is-tab .card__now { left: 8px; right: 8px; bottom: 9px; font-size: 9px; }
html.is-phone .card--channel .card__bar, html.is-tab .card--channel .card__bar { left: 14px; right: 14px; bottom: 5px; height: 3px; }
html.is-phone .card__live, html.is-tab .card__live { top: 6px; left: 6px; }

/* ---------- 5. home ---------- */
html.is-phone .home, html.is-tab .home { width: 100%; }
html.is-phone .hero, html.is-tab .hero { height: auto; min-height: 54vh; padding: calc(var(--top) + 26px) var(--pad) 16px; }
html.is-phone .hero__logo, html.is-tab .hero__logo { max-width: 56%; max-height: 52px; margin-bottom: 10px; }
html.is-phone .hero__kicker, html.is-tab .hero__kicker { font-size: 10px; letter-spacing: 1.2px; margin-bottom: 6px; }
html.is-phone .hero__title, html.is-tab .hero__title { font-size: 26px; letter-spacing: -0.6px; margin-bottom: 10px; max-width: 100%; }
html.is-phone .hero__meta, html.is-tab .hero__meta { font-size: 11.5px; margin-bottom: 10px; flex-wrap: wrap; row-gap: 4px; }
html.is-phone .hero__meta > * + *, html.is-tab .hero__meta > * + * { margin-left: 8px; }
html.is-phone .hero__desc, html.is-tab .hero__desc {
    width: auto; font-size: 12.5px; line-height: 1.45; margin-bottom: 16px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
html.is-phone .hero__btns, html.is-tab .hero__btns { gap: 8px; flex-wrap: wrap; }
html.is-phone .hero__dots, html.is-tab .hero__dots { right: var(--pad); bottom: 10px; gap: 6px; }
html.is-phone .hero__dots i, html.is-tab .hero__dots i { width: 6px; height: 6px; border-radius: 3px; }
html.is-phone .hero__dots i.is-on, html.is-tab .hero__dots i.is-on { width: 18px; }

html.is-phone .rows, html.is-tab .rows { padding-bottom: calc(var(--bar) + 26px + env(safe-area-inset-bottom)); }
html.is-phone .row, html.is-tab .row { margin-bottom: 14px; }
html.is-phone .row__title, html.is-tab .row__title {
    padding-left: var(--pad); height: 30px; font-size: 15px; letter-spacing: -0.2px; gap: 8px;
}
html.is-phone .row__title small, html.is-tab .row__title small { font-size: 11px; }
html.is-phone .row__strip, html.is-tab .row__strip { top: 2px; }

/* ---------- 6. movies and series (the grid) ---------- */
html.is-phone .vod__chips, html.is-tab .vod__chips { top: var(--top); height: 52px; }
html.is-phone .vod__chipstrip, html.is-tab .vod__chipstrip { left: var(--pad); top: 10px; gap: var(--gap); }
html.is-phone .vod__grid, html.is-tab .vod__grid {
    top: calc(var(--top) + 56px); bottom: calc(var(--bar) + env(safe-area-inset-bottom));
}
html.is-phone .vod__gridin, html.is-tab .vod__gridin { left: var(--pad); top: 6px; }
html.is-phone .vod__count, html.is-tab .vod__count { right: var(--pad); top: calc(var(--top) + 12px); font-size: 10px; }

/* a Minha Lista vazia: mesmo lugar, na medida do dedo */
html.is-phone .mylist__empty, html.is-tab .mylist__empty {
    left: var(--pad); right: var(--pad); top: calc(var(--top) + 112px); max-width: none;
}
html.is-phone .mylist__ico svg, html.is-tab .mylist__ico svg { width: 52px; height: 52px; }
html.is-phone .mylist__title, html.is-tab .mylist__title { font-size: 21px; letter-spacing: -0.4px; margin-bottom: 8px; }
html.is-phone .mylist__text, html.is-tab .mylist__text { font-size: 13px; line-height: 1.5; margin-bottom: 14px; }
html.is-phone .mylist__hint, html.is-tab .mylist__hint {
    height: auto; min-height: 38px; padding: 9px 13px; border-radius: 12px; font-size: 11.5px; line-height: 1.4;
}

/* ---------- 7. the title page ---------- */
html.is-phone .detail, html.is-tab .detail { background: #0b0e15; }
html.is-phone .detail__in, html.is-tab .detail__in { width: 100%; }
html.is-phone .detail__main, html.is-tab .detail__main {
    min-height: 0; height: auto; padding: calc(var(--top) + 124px) var(--pad) 8px; display: block;
}
html.is-phone .detail__logo, html.is-tab .detail__logo { max-width: 58%; max-height: 56px; margin-bottom: 10px; }
html.is-phone .detail__title, html.is-tab .detail__title { font-size: 25px; letter-spacing: -0.6px; margin-bottom: 10px; -webkit-line-clamp: 3; }
html.is-phone .detail__meta, html.is-tab .detail__meta { font-size: 11.5px; margin-bottom: 8px; row-gap: 5px; }
html.is-phone .detail__meta > *, html.is-tab .detail__meta > * { margin-right: 8px; }
html.is-phone .detail__tagline, html.is-tab .detail__tagline { font-size: 12px; margin-bottom: 8px; }
html.is-phone .detail__desc, html.is-tab .detail__desc {
    width: auto; font-size: 12.5px; line-height: 1.5; margin-bottom: 14px; -webkit-line-clamp: 6;
}
html.is-phone .detail__progress, html.is-tab .detail__progress { font-size: 11px; gap: 8px; margin: -4px 0 12px; }
html.is-phone .detail__progress .bar, html.is-tab .detail__progress .bar { width: 120px; }
html.is-phone .detail__btns, html.is-tab .detail__btns { gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
html.is-phone .detail__people, html.is-tab .detail__people { font-size: 11px; line-height: 1.5; -webkit-line-clamp: 3; margin-bottom: 10px; }
html.is-phone .detail__section, html.is-tab .detail__section {
    padding: 4px var(--pad) calc(var(--bar) + 24px + env(safe-area-inset-bottom));
}
html.is-phone .detail__h, html.is-tab .detail__h { height: 30px; font-size: 15px; margin-bottom: 2px; }
html.is-phone .detail__seasons, html.is-tab .detail__seasons { gap: 8px; height: 40px; margin-bottom: 6px; }
html.is-phone .detail__eps, html.is-tab .detail__eps { height: var(--widerowh); }
html.is-phone .detail__epstrip, html.is-tab .detail__epstrip { top: 2px; }
html.is-phone .ep, html.is-tab .ep { width: var(--widew); }
html.is-phone .ep__art, html.is-tab .ep__art { width: var(--widew); height: var(--wideh); border-radius: 10px; }
html.is-phone .ep__n, html.is-tab .ep__n { margin-top: 6px; font-size: 10px; }
html.is-phone .ep__t, html.is-tab .ep__t { font-size: 12px; }
html.is-phone .ep__d, html.is-tab .ep__d { font-size: 10px; line-height: 1.35; -webkit-line-clamp: 1; }
html.is-phone .ep__seen, html.is-tab .ep__seen { right: 6px; top: 6px; height: 18px; padding: 0 6px; border-radius: 9px; font-size: 9px; }
html.is-phone .detail__cast, html.is-tab .detail__cast { margin-top: 8px; }
html.is-phone .detail__caststrip, html.is-tab .detail__caststrip { height: var(--smallrowh); }
html.is-phone .pcard, html.is-tab .pcard { width: 84px; }
html.is-phone .pcard__photo, html.is-tab .pcard__photo { width: 84px; height: 84px; }
html.is-phone .pcard__name, html.is-tab .pcard__name { margin-top: 6px; font-size: 10.5px; max-width: 84px; }
html.is-phone .pcard__role, html.is-tab .pcard__role { font-size: 9px; max-width: 84px; }
html.is-phone .detail__section .row, html.is-tab .detail__section .row { margin-bottom: 16px; }

/* ---------- 8. a person ---------- */
html.is-phone .person__in, html.is-tab .person__in { width: 100%; }
html.is-phone .person__head, html.is-tab .person__head {
    gap: 14px; padding: calc(var(--top) + 22px) var(--pad) 0; height: auto;
}
html.is-phone .person__photo, html.is-tab .person__photo { width: 92px; height: 92px; }
html.is-phone .person__txt, html.is-tab .person__txt { padding-top: 0; }
html.is-phone .person__name, html.is-tab .person__name { font-size: 22px; letter-spacing: -0.4px; margin-bottom: 6px; }
html.is-phone .person__meta, html.is-tab .person__meta { font-size: 11px; margin-bottom: 8px; min-height: 0; }
html.is-phone .person__bio, html.is-tab .person__bio { font-size: 11.5px; line-height: 1.5; -webkit-line-clamp: 5; }
html.is-phone .person__rows, html.is-tab .person__rows { padding: 14px 0 calc(var(--bar) + 20px); }
html.is-phone .person__empty, html.is-tab .person__empty { padding: 20px var(--pad); font-size: 13px; }

/* ---------- 9. live TV ---------- */
html.is-phone .lv__hero, html.is-tab .lv__hero { left: var(--pad); right: var(--pad); top: calc(var(--top) + 16px); width: auto; }
html.is-phone .lv__brand, html.is-tab .lv__brand { height: 40px; gap: 10px; margin-bottom: 6px; }
html.is-phone .lv__logo, html.is-tab .lv__logo { height: 34px; width: 96px; font-size: 20px; }
html.is-phone .lv__title, html.is-tab .lv__title { font-size: 20px; letter-spacing: -0.4px; margin-bottom: 6px; -webkit-line-clamp: 2; }
html.is-phone .lv__meta, html.is-tab .lv__meta { font-size: 11px; gap: 10px; margin-bottom: 6px; }
html.is-phone .lv__meta .bar, html.is-tab .lv__meta .bar { width: 90px; height: 4px; }
html.is-phone .lv__desc, html.is-tab .lv__desc {
    width: auto; font-size: 11.5px; line-height: 1.45; -webkit-line-clamp: 3;
}
html.is-phone .lv__chips, html.is-tab .lv__chips { top: calc(var(--top) + 178px); height: 44px; }
html.is-phone .lv__chipstrip, html.is-tab .lv__chipstrip { left: var(--pad); top: 6px; gap: 8px; }
html.is-phone .lv__cards, html.is-tab .lv__cards {
    top: calc(var(--top) + 228px); height: var(--widerowh);
}
html.is-phone .lv__cardin, html.is-tab .lv__cardin { left: var(--pad); height: auto; }
html.is-phone .lcard, html.is-tab .lcard { width: var(--widew); top: 4px; }
html.is-phone .lcard__art, html.is-tab .lcard__art { width: var(--widew); height: var(--wideh); border-radius: 12px; }
html.is-phone .lcard__logo, html.is-tab .lcard__logo { left: 18px; right: 18px; top: 12px; bottom: 16px; }
html.is-phone .lcard__num, html.is-tab .lcard__num { left: 8px; top: 6px; font-size: 10px; }
html.is-phone .lcard__q, html.is-tab .lcard__q { right: 8px; top: 6px; font-size: 8px; padding: 0 4px; }
html.is-phone .lcard__t, html.is-tab .lcard__t { margin-top: 6px; font-size: 12px; }
html.is-phone .lcard__p, html.is-tab .lcard__p { font-size: 10px; }
html.is-phone .lv__next, html.is-tab .lv__next { display: none; }
html.is-phone .lv__wait, html.is-tab .lv__wait { top: 40vh; }
html.is-phone .lv__empty, html.is-tab .lv__empty { top: 6px; font-size: 12px; left: 0; }

/* ---------- 10. the guide ---------- */
html.is-phone .guide__top, html.is-tab .guide__top { left: var(--pad); top: calc(var(--top) + 10px); width: auto; right: var(--pad); height: auto; }
html.is-phone .guide__cat, html.is-tab .guide__cat { margin-bottom: 6px; gap: 8px; }
html.is-phone .guide__title, html.is-tab .guide__title { font-size: 18px; margin-bottom: 4px; -webkit-line-clamp: 1; }
html.is-phone .guide__meta, html.is-tab .guide__meta { font-size: 11px; margin-bottom: 4px; gap: 8px; }
html.is-phone .guide__desc, html.is-tab .guide__desc { font-size: 11px; -webkit-line-clamp: 2; }
html.is-phone .guide__grid, html.is-tab .guide__grid {
    left: 0; right: 0; top: calc(var(--top) + 128px); width: auto; bottom: calc(var(--bar) + env(safe-area-inset-bottom));
}
html.is-phone .guide__ruler, html.is-tab .guide__ruler { left: 116px; height: 30px; }
html.is-phone .guide__tick, html.is-tab .guide__tick { font-size: 10px; padding-left: 6px; height: 22px; line-height: 22px; border-left-width: 1px; }
html.is-phone .guide__body, html.is-tab .guide__body { top: 34px; }
html.is-phone .grow, html.is-tab .grow { height: 56px; margin-bottom: 4px; }
html.is-phone .grow__ch, html.is-tab .grow__ch { width: 110px; height: 56px; border-radius: 10px; padding: 0 6px; gap: 6px; }
html.is-phone .grow__num, html.is-tab .grow__num { width: 22px; font-size: 10px; }
html.is-phone .grow__logo, html.is-tab .grow__logo { width: 46px; height: 30px; font-size: 9px; }
html.is-phone .grow__name, html.is-tab .grow__name { display: none; }
html.is-phone .grow__progs, html.is-tab .grow__progs { left: 116px; height: 56px; }
html.is-phone .gcell, html.is-tab .gcell { height: 56px; border-radius: 9px; padding: 0 7px; }
html.is-phone .gcell__t, html.is-tab .gcell__t { font-size: 10.5px; }
html.is-phone .gcell__h, html.is-tab .gcell__h { font-size: 9px; }

/* ---------- 11. search ---------- */
html.is-phone .search__field, html.is-tab .search__field {
    left: var(--pad); right: var(--pad); width: auto; top: calc(var(--top) + 8px); height: 44px;
    padding: 0 16px; border-radius: 22px; font-size: 16px; gap: 10px;
}
html.is-phone .search__field .caret, html.is-tab .search__field .caret { height: 20px; width: 2px; }
html.is-phone .kb, html.is-tab .kb { left: var(--pad); right: var(--pad); width: auto; top: calc(var(--top) + 62px); flex-direction: column; }
html.is-phone .kb__row, html.is-tab .kb__row { width: 100%; display: flex; }
html.is-phone .kb .kb__key, html.is-tab .kb .kb__key {
    width: auto; flex: 1 1 0; min-width: 0; height: 46px; margin: 0 4px 6px 0; border-radius: 10px; font-size: 14px;
}
html.is-phone .kb__row:nth-child(2), html.is-phone .kb__row:nth-child(3) { padding-left: 0; }
html.is-phone .kb .kb__key--alt, html.is-tab .kb .kb__key--alt { flex: 1.6 1 0; font-size: 11px; }
html.is-phone .kb .kb__key--act, html.is-tab .kb .kb__key--act { flex: 2.2 1 0; font-size: 11px; }
html.is-phone .search__results, html.is-tab .search__results { top: 0; padding-top: calc(var(--top) + 330px); }
html.is-phone .is-results .search__field, html.is-tab .is-results .search__field { transform: translateY(-8px); }
html.is-phone .is-results .kb, html.is-tab .is-results .kb { transform: none; }

/* the phone's own keyboard: a real field, the drawn keyboard put away */
.search__input { display: none; }
html.is-phone .search__input, html.is-tab .search__input {
    display: block; width: 100%; height: 44px; box-sizing: border-box;
    border: 0; background: none; color: #fff; font-size: 16px; font-family: inherit;
    outline: none; padding: 0; margin: 0;
    -webkit-appearance: none; appearance: none; border-radius: 0;
}
html.is-phone .search__input::placeholder, html.is-tab .search__input::placeholder { color: rgba(255,255,255,0.42); }
html.is-phone .search__field > svg, html.is-tab .search__field > svg,
html.is-phone .search__field > span, html.is-tab .search__field > span { display: none; }
html.is-phone .kb, html.is-tab .kb { display: none; }
/* sem o teclado desenhado, os resultados começam logo abaixo do campo */
html.is-phone .search__results, html.is-tab .search__results { padding-top: calc(var(--top) + 62px); }

/* ---------- 12. settings, the sheet ---------- */
html.is-phone .sheet__title, html.is-tab .sheet__title { top: calc(var(--top) + 4px); font-size: 20px; }
html.is-phone .sheet__hero, html.is-tab .sheet__hero {
    display: none;
}
html.is-phone .sheet__listwrap, html.is-tab .sheet__listwrap {
    left: 0; right: 0; top: calc(var(--top) + 40px); width: auto; height: auto;
    bottom: calc(var(--bar) + env(safe-area-inset-bottom));
    padding: 6px var(--pad) 0; overflow: hidden;
}
html.is-phone .srow, html.is-tab .srow {
    height: 52px; margin-bottom: 6px; padding: 0 14px; border-radius: 12px; font-size: 14px;
}
html.is-phone .srow__label, html.is-tab .srow__label { gap: 8px; }
html.is-phone .srow__label svg, html.is-tab .srow__label svg { width: 16px; height: 16px; }
html.is-phone .srow__value, html.is-tab .srow__value { margin-left: 10px; font-size: 12px; max-width: 46vw; }
html.is-phone .srow__section, html.is-tab .srow__section { margin: 16px 0 6px 14px; font-size: 10px; }
html.is-phone .qr, html.is-tab .qr { left: 50%; transform: translateX(-50%); top: calc(var(--top) + 60px); width: auto; }
html.is-phone .qr__box, html.is-tab .qr__box { width: 62vw; height: 62vw; max-width: 260px; max-height: 260px; padding: 14px; border-radius: 22px; }
html.is-phone .qr__box canvas, html.is-tab .qr__box canvas { width: 100%; height: 100%; }
html.is-phone .qr__url, html.is-tab .qr__url { font-size: 13px; margin-top: 12px; word-break: break-all; }
html.is-phone .qr__pin, html.is-tab .qr__pin { font-size: 11px; }
html.is-phone .qr__pin--big, html.is-tab .qr__pin--big { font-size: 34px; letter-spacing: 6px; }
html.is-phone .qr__state, html.is-tab .qr__state { font-size: 12px; margin-top: 10px; }
html.is-phone .steps, html.is-tab .steps { left: 0; right: 0; top: calc(var(--top) + 70px); width: auto; padding: 0 var(--pad); }
html.is-phone .step, html.is-tab .step { gap: 12px; margin-bottom: 18px; font-size: 13px; }
html.is-phone .step b, html.is-tab .step b { width: 26px; height: 26px; border-radius: 13px; font-size: 12px; }

/* ---------- 13. menus, alerts, prompts: bottom sheets ---------- */
html.is-phone .menu, html.is-tab .menu { background: rgba(0,0,0,0.55); }
html.is-phone .menu__panel, html.is-tab .menu__panel {
    left: 0; right: 0; top: auto; bottom: 0; min-width: 0; max-width: none;
    border-radius: 22px 22px 0 0; padding: 8px 8px calc(10px + env(safe-area-inset-bottom));
    transform: translateY(14px); max-height: 82vh;
}
html.is-phone .menu.is-open .menu__panel, html.is-tab .menu.is-open .menu__panel { transform: none; }
html.is-phone .menu__title, html.is-tab .menu__title { padding: 10px 16px 8px; font-size: 12px; }
html.is-phone .menu__item, html.is-tab .menu__item { height: 50px; padding: 0 16px; border-radius: 12px; font-size: 15px; gap: 16px; }
html.is-phone .menu__item svg, html.is-tab .menu__item svg { width: 18px; height: 18px; }
html.is-phone .menu__list, html.is-tab .menu__list { max-height: 62vh; }

html.is-phone .alert__box, html.is-tab .alert__box { width: auto; padding: 0 var(--pad); }
html.is-phone .alert__box.setup, html.is-tab .alert__box.setup { width: auto; }
html.is-phone .alert__title, html.is-tab .alert__title { font-size: 20px; margin-bottom: 10px; }
html.is-phone .alert__msg, html.is-tab .alert__msg { font-size: 13px; margin-bottom: 20px; line-height: 1.45; }
html.is-phone .alert__buttons, html.is-tab .alert__buttons { gap: 8px; }
html.is-phone .alert__btn, html.is-tab .alert__btn { width: 100%; max-width: 420px; height: 48px; line-height: 48px; border-radius: 12px; font-size: 15px; }
html.is-phone .alert__qr canvas, html.is-tab .alert__qr canvas { width: 56vw; height: 56vw; max-width: 220px; max-height: 220px; padding: 12px; border-radius: 18px; }
html.is-phone .alert__qrurl, html.is-tab .alert__qrurl { font-size: 12px; }
html.is-phone .alert__field, html.is-tab .alert__field { font-size: 16px; min-height: 46px; padding: 10px 14px; border-radius: 12px; }
html.is-phone .setup__row, html.is-tab .setup__row { padding: 10px 14px; border-radius: 14px; gap: 12px; }
html.is-phone .setup__txt b, html.is-tab .setup__txt b { font-size: 14px; }
html.is-phone .setup__txt small, html.is-tab .setup__txt small { font-size: 11px; }
html.is-phone .setup__row em, html.is-tab .setup__row em { font-size: 13px; }

html.is-phone .toast, html.is-tab .toast {
    left: 50%; right: auto; bottom: calc(var(--bar) + 14px + env(safe-area-inset-bottom));
    max-width: calc(100vw - 28px); padding: 10px 16px; border-radius: 14px; font-size: 12.5px; line-height: 1.4;
    text-align: center;
}

/* ---------- 14. the player ---------- */
html.is-phone .osd__shade, html.is-tab .osd__shade { height: 60vh; }
html.is-phone .osd__bar, html.is-tab .osd__bar {
    left: 10px; right: 10px; bottom: 10px; min-height: 0; border-radius: 18px; padding: 12px 14px; gap: 12px;
}
html.is-phone .osd__logo, html.is-tab .osd__logo { width: 54px; height: 34px; border-radius: 8px; padding: 4px 5px; }
html.is-phone .osd__ch, html.is-tab .osd__ch { font-size: 11px; gap: 6px; margin-bottom: 3px; }
html.is-phone .osd__title, html.is-tab .osd__title { font-size: 15px; margin-bottom: 6px; }
html.is-phone .osd__time, html.is-tab .osd__time { font-size: 10.5px; gap: 8px; }
html.is-phone .osd__next, html.is-tab .osd__next { font-size: 10px; margin-top: 4px; }
html.is-phone .osd__clock, html.is-tab .osd__clock { top: 12px; right: 14px; font-size: 13px; }
html.is-phone .osd__num, html.is-tab .osd__num { top: 12px; left: 14px; height: 40px; min-width: 62px; padding: 0 12px; border-radius: 12px; font-size: 20px; }
html.is-phone .osd__state, html.is-tab .osd__state { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 32px; }
html.is-phone .osd__state--art, html.is-tab .osd__state--art { width: 320px; height: 180px; margin: -90px 0 0 -160px; border-radius: 16px; }
html.is-phone .osd__state--name, html.is-tab .osd__state--name { width: auto; height: auto; margin: 0; border-radius: 0; }
html.is-phone .osd__loadname, html.is-tab .osd__loadname { max-width: 86vw; font-size: 22px !important; line-height: 1.2; }
html.is-phone .pv__plot, html.is-tab .pv__plot { font-size: 12px; line-height: 1.3; margin-top: 4px; max-width: none; }
html.is-phone .osd__spin, html.is-tab .osd__spin { width: 30px; height: 30px; border-width: 3px; }
html.is-phone .osd__err, html.is-tab .osd__err { width: auto; left: 14px; right: 14px; transform: translateY(-50%); top: 50%; padding: 18px 20px; border-radius: 16px; }
html.is-phone .osd__err h3, html.is-tab .osd__err h3 { font-size: 16px; margin-bottom: 6px; }
html.is-phone .osd__err p, html.is-tab .osd__err p { font-size: 12px; }
html.is-phone .osd__list, html.is-tab .osd__list {
    left: 8px; right: 8px; bottom: calc(var(--bar) + 70px); top: auto; width: auto; height: 46vh;
    border-radius: 16px; padding: 10px 8px;
}
html.is-phone .osd__listhead, html.is-tab .osd__listhead { height: 30px; font-size: 12px; padding: 0 6px; }
html.is-phone .osd__listclip, html.is-tab .osd__listclip { left: 8px; right: 8px; top: 40px; bottom: 8px; }
html.is-phone .osd__subs, html.is-tab .osd__subs { left: 10px; right: 10px; bottom: 76px; }
html.is-phone.subSize-s .osd__subs span, html.is-tab.subSize-s .osd__subs span { font-size: 15px; }
html.is-phone.subSize-m .osd__subs span, html.is-tab.subSize-m .osd__subs span { font-size: 17px; }
html.is-phone.subSize-l .osd__subs span, html.is-tab.subSize-l .osd__subs span { font-size: 20px; }
html.is-phone.subSize-xl .osd__subs span, html.is-tab.subSize-xl .osd__subs span { font-size: 24px; }
html.is-phone .osd--vod .osd__shade, html.is-tab .osd--vod .osd__shade { height: 50vh; }
html.is-phone .osd--vod .osd__bar, html.is-tab .osd--vod .osd__bar {
    left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
}
html.is-phone .pv__sub, html.is-tab .pv__sub { font-size: 11px; }
html.is-phone .pv__title, html.is-tab .pv__title { font-size: 17px; max-width: 66vw; }
html.is-phone .pv__icons, html.is-tab .pv__icons { gap: 8px; }
html.is-phone .pv__btn, html.is-tab .pv__btn { width: 34px; height: 34px; border-radius: 17px; }
html.is-phone .pv__btn svg, html.is-tab .pv__btn svg { width: 16px; height: 16px; }
html.is-phone .pv__btn--text, html.is-tab .pv__btn--text { width: auto; padding: 0 12px; font-size: 11px; gap: 6px; }
html.is-phone .pv__times, html.is-tab .pv__times { font-size: 11px; margin-top: 8px; gap: 8px; }
html.is-phone .pv__tabs, html.is-tab .pv__tabs { margin-top: 8px; gap: 6px; }
html.is-phone .pv__tab, html.is-tab .pv__tab { height: 30px; padding: 0 14px; border-radius: 15px; font-size: 11px; }
html.is-phone .osd--vod .osd__seek .bar, html.is-tab .osd--vod .osd__seek .bar { height: 6px; }
html.is-phone .osd__pop, html.is-tab .osd__pop {
    left: 10px; right: 10px; width: auto; bottom: calc(var(--bar) + 60px); border-radius: 16px;
}
/* the "next episode" card and the "skip intro" button live on the phone too */
html.is-phone .osd__nextcard, html.is-tab .osd__nextcard {
    right: 12px; left: 12px; bottom: auto; top: calc(var(--top) + 12px); width: auto; border-radius: 16px;
}
html.is-phone .osd__nextcard.is-on, html.is-tab .osd__nextcard.is-on { display: block; }
html.is-phone .osd__nextart, html.is-tab .osd__nextart { height: 110px; }
html.is-phone .osd__nexttxt, html.is-tab .osd__nexttxt { padding: 10px 14px 12px; }
html.is-phone .osd__nexttxt b, html.is-tab .osd__nexttxt b { font-size: 15px; margin: 2px 0 8px; }
html.is-phone .osd__nextbtn, html.is-tab .osd__nextbtn { height: 38px; padding: 0 18px; border-radius: 19px; font-size: 14px; gap: 7px; }
html.is-phone .osd__skip, html.is-tab .osd__skip { right: 12px; bottom: calc(var(--bar) + 96px); }
html.is-phone .osd__skipbtn, html.is-tab .osd__skipbtn { height: 44px; padding: 0 20px; border-radius: 22px; font-size: 15px; gap: 8px; }
html.is-phone .osd__skipbtn svg, html.is-tab .osd__skipbtn svg { width: 18px; height: 18px; }
html.is-phone .osd__skip small, html.is-tab .osd__skip small { font-size: 11px; margin-top: 6px; }

/* ---------- 15. multi-view and the screen saver ---------- */
html.is-phone .mvui__hint, html.is-tab .mvui__hint { font-size: 10px; }
html.is-phone .mvt__label, html.is-tab .mvt__label { left: 6px; bottom: 6px; padding: 3px 7px; border-radius: 6px; font-size: 9px; }
html.is-phone .mvt__empty, html.is-tab .mvt__empty { gap: 8px; font-size: 11px; }
html.is-phone .mvt__plus, html.is-tab .mvt__plus { width: 38px; height: 38px; border-radius: 19px; }
html.is-phone .saver__time, html.is-tab .saver__time { font-size: 64px; letter-spacing: -2px; }
html.is-phone .saver__date, html.is-tab .saver__date { margin-top: 10px; font-size: 12px; letter-spacing: 2px; }
html.is-phone .saver__title, html.is-tab .saver__title { margin-top: 6px; font-size: 12px; }
html.is-phone .saver__clock, html.is-tab .saver__clock { max-width: 82vw; }
html.is-phone .saver[data-corner] .saver__clock, html.is-tab .saver[data-corner] .saver__clock { left: var(--pad); right: var(--pad); }
html.is-phone .saver[data-corner="bl"] .saver__clock, html.is-tab .saver[data-corner="bl"] .saver__clock { bottom: calc(var(--bar) + 20px); }
html.is-phone .saver[data-corner="tl"] .saver__clock, html.is-tab .saver[data-corner="tl"] .saver__clock { top: calc(var(--top) + 16px); }

/* ---------- 16. the way in: login, profiles ---------- */
html.is-phone .wl, html.is-tab .wl { padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
html.is-phone .wl { overflow-y: auto; align-items: flex-start; }
html.is-phone .wl__stage { width: 100%; padding: 0 var(--pad); gap: 18px; flex-direction: column; justify-content: center; margin: auto 0; }
html.is-phone .wl__hero { flex: none; text-align: center; }
html.is-phone .wl__mark { justify-content: center; }
html.is-phone .wl__card { flex: none; width: 100%; max-width: none; }
html.is-tab .wl__stage { width: 100%; padding: 0 var(--pad); gap: 18px; }
html.is-phone .wl__mark b, html.is-phone .wl__mark span, html.is-tab .wl__mark b, html.is-tab .wl__mark span { font-size: 44px; }
html.is-phone .wl__logo, html.is-tab .wl__logo { width: 44px; height: 44px; border-radius: 13px; }
html.is-phone .wl__tag, html.is-tab .wl__tag { font-size: 13px; margin-top: 8px; }
html.is-phone .wl__steps, html.is-tab .wl__steps { display: none; }
html.is-phone .wl__card, html.is-tab .wl__card { padding: 18px 16px 20px; border-radius: 20px; }
html.is-phone .wl__title, html.is-tab .wl__title { font-size: 24px; letter-spacing: -0.6px; }
html.is-phone .wl__text, html.is-tab .wl__text { font-size: 12.5px; }
html.is-phone .wl__chip, html.is-tab .wl__chip { height: 32px; padding: 0 14px; border-radius: 16px; font-size: 12px; }
html.is-phone .wl__flabel, html.is-tab .wl__flabel { font-size: 10px; }
html.is-phone .wl__fvalue, html.is-tab .wl__fvalue { font-size: 16px; }
html.is-phone .wl__btn, html.is-tab .wl__btn { height: 46px; padding: 0 18px; border-radius: 23px; font-size: 14px; }
html.is-phone .wl__err, html.is-tab .wl__err { font-size: 12px; }
html.is-phone .wl__note, html.is-tab .wl__note { font-size: 11px; }
html.is-phone .wl__version, html.is-tab .wl__version { right: var(--pad); top: calc(env(safe-area-inset-top) + 8px); font-size: 10px; }
html.is-phone .wl__lang, html.is-tab .wl__lang { padding: 10px 12px; border-radius: 14px; }
html.is-phone .wl__lang b, html.is-tab .wl__lang b { font-size: 14px; }
html.is-phone .wl__langtitle, html.is-tab .wl__langtitle { font-size: 24px; }
html.is-phone .wl__pav, html.is-phone .wl__p, html.is-tab .wl__pav, html.is-tab .wl__p { --pav: 76px; }
html.is-phone .wl__avs, html.is-tab .wl__avs { grid-template-columns: repeat(3, 76px); }
html.is-phone .wl__ptitle, html.is-tab .wl__ptitle { font-size: 20px; }
html.is-phone .wl__pname, html.is-tab .wl__pname { font-size: 11px; }
html.is-phone .wl__pindots i, html.is-tab .wl__pindots i { width: 12px; height: 12px; }
html.is-phone .wl__qrbox, html.is-tab .wl__qrbox { width: 52vw; height: 52vw; max-width: 210px; max-height: 210px; }
html.is-phone .wl__qrcode, html.is-tab .wl__qrcode { font-size: 22px; letter-spacing: 4px; }
html.is-phone .wl__kb, html.is-tab .wl__kb { --kb: 46px; }

/* ---------- 17. the boot screen ---------- */
html.is-phone .boot__mark, html.is-phone .boot__tv, html.is-tab .boot__mark, html.is-tab .boot__tv { font-size: 56px; letter-spacing: -2px; }
html.is-phone .boot__msg, html.is-tab .boot__msg { font-size: 12px; }
