/* On+ Play — webplayer */
:root {
    --bg: #0a0d14;
    --bg-2: #0f1420;
    --surface: #151b29;
    --surface-2: #1c2435;
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .14);
    --text: #eef1f7;
    --text-2: #b8c0d0;
    --muted: #7d879b;
    --brand: #ff7a1a;
    --brand-2: #ff9a3d;
    --brand-soft: rgba(255, 122, 26, .14);
    --ok: #22c55e;
    --danger: #ef4444;
    --radius: 14px;
    --head-h: 64px;
    color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); }
body { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 15px; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brand-2); }
img { display: block; }
.hide { display: none !important; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2a3347; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- login ---------- */
.login {
    min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
    background:
        radial-gradient(900px 500px at 15% 10%, rgba(255, 122, 26, .16), transparent 60%),
        radial-gradient(800px 500px at 90% 90%, rgba(56, 97, 251, .14), transparent 60%),
        var(--bg);
}
.login-card { width: 100%; max-width: 400px; }
.login-logo { position: relative; width: 220px; max-width: 70%; aspect-ratio: 1715 / 512; margin: 0 auto 6px; }
.login-logo img { width: 100%; height: 100%; }
.login-tag { text-align: center; color: var(--muted); font-size: .8rem; letter-spacing: .32em; text-transform: uppercase; margin-bottom: 28px; }
.login-box { background: rgba(21, 27, 41, .85); border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); backdrop-filter: blur(10px); }
.login-box h1 { font-size: 1.35rem; margin: 0 0 4px; }
.login-box p.sub { color: var(--muted); margin: 0 0 22px; font-size: .9rem; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.input-wrap { position: relative; }
.input {
    width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px;
    outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.input-wrap .input { padding-right: 46px; }
.eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); padding: 8px; border-radius: 8px; line-height: 0; }
.eye:hover { color: var(--text); }
.check { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: .88rem; margin: 6px 0 18px; user-select: none; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px;
    padding: 12px 18px; font-weight: 700; background: var(--surface-2); color: var(--text); transition: background .15s, transform .05s, opacity .15s;
}
.btn:active { transform: translateY(1px); }
.btn-brand { background: linear-gradient(135deg, var(--brand) 0%, #ff5e3a 100%); color: #fff; box-shadow: 0 8px 24px rgba(255, 106, 26, .28); }
.btn-brand:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; border: 1px solid var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .05); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; }
.msg { border-radius: 12px; padding: 10px 12px; font-size: .88rem; margin-bottom: 14px; }
.msg-err { background: rgba(239, 68, 68, .12); border: 1px solid rgba(239, 68, 68, .35); color: #fecaca; }
.login-foot { text-align: center; color: var(--muted); font-size: .82rem; margin-top: 18px; line-height: 1.5; }
.spin { width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- topo ---------- */
.head {
    position: sticky; top: 0; z-index: 40; height: var(--head-h); display: flex; align-items: center; gap: 18px; padding: 0 22px;
    background: rgba(10, 13, 20, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.head-logo { height: 30px; width: auto; flex: 0 0 auto; }
.tabs { display: flex; gap: 4px; }
.tab { border: 0; background: none; color: var(--text-2); font-weight: 600; padding: 9px 14px; border-radius: 10px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.tab:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.tab.on { color: #fff; background: var(--brand-soft); box-shadow: inset 0 0 0 1px rgba(255, 122, 26, .35); }
.tab svg { width: 18px; height: 18px; }
.head-search { margin-left: auto; position: relative; width: min(340px, 34vw); }
.head-search input { width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 14px 9px 38px; outline: none; }
.head-search input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.head-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.user { position: relative; }
.user-btn { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 12px 4px 4px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), #ff5e3a); color: #fff; font-weight: 800; font-size: .78rem; }
.user-name { font-weight: 600; font-size: .88rem; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); width: 260px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 8px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.menu-info { padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; font-size: .84rem; color: var(--text-2); line-height: 1.6; }
.menu-info b { color: var(--text); }
.menu-item { width: 100%; text-align: left; border: 0; background: none; padding: 10px; border-radius: 10px; display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.menu-item:hover { background: rgba(255, 255, 255, .06); }
.menu-item.danger { color: #fca5a5; }

/* ---------- area principal ---------- */
.main { padding: 22px; max-width: 1680px; margin: 0 auto; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: thin; }
.chip { flex: 0 0 auto; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); border-radius: 999px; padding: 7px 14px; font-size: .86rem; font-weight: 600; white-space: nowrap; }
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, .25); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.section-title { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 14px; }
.section-title h2 { margin: 0; font-size: 1.25rem; letter-spacing: -.01em; }
.section-title span { color: var(--muted); font-size: .86rem; }
.empty { text-align: center; color: var(--muted); padding: 60px 16px; }
.loading { display: flex; justify-content: center; padding: 50px; }
.loading .spin { width: 28px; height: 28px; border-width: 3px; border-color: rgba(255, 255, 255, .15); border-top-color: var(--brand); }

/* grade de capas */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 14px; }
.card { border: 0; background: none; padding: 0; text-align: left; color: inherit; }
.poster { position: relative; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: 0 8px 20px rgba(0, 0, 0, .35); transition: transform .18s, box-shadow .18s; }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .poster, .card:focus-visible .poster { transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 32px rgba(0, 0, 0, .55), 0 0 0 2px var(--brand); }
.poster .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.8rem; font-weight: 800; color: #3a4560; text-align: center; padding: 10px; }
.badge-rate { position: absolute; top: 8px; right: 8px; background: rgba(0, 0, 0, .7); color: #fde68a; font-size: .72rem; font-weight: 700; padding: 3px 7px; border-radius: 8px; }
.prog { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .15); }
.prog i { display: block; height: 100%; background: var(--brand); }
.card-title { margin-top: 8px; font-weight: 600; font-size: .88rem; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-sub { color: var(--muted); font-size: .76rem; margin-top: 2px; }
.more { display: flex; justify-content: center; padding: 26px 0 8px; }
.row-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 14px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 18px; }

/* ---------- ao vivo ---------- */
.live { display: grid; grid-template-columns: 230px 340px 1fr; gap: 16px; height: calc(100vh - var(--head-h) - 44px); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-height: 0; }
.panel-h { padding: 12px 14px; font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.panel-b { overflow-y: auto; flex: 1; padding: 6px; }
.cat { width: 100%; text-align: left; border: 0; background: none; padding: 9px 10px; border-radius: 10px; color: var(--text-2); font-size: .88rem; font-weight: 500; display: flex; justify-content: space-between; gap: 8px; }
.cat:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.cat.on { background: var(--brand-soft); color: #fff; }
.cat small { color: var(--muted); font-variant-numeric: tabular-nums; }
.ch { width: 100%; display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 8px; border-radius: 12px; text-align: left; }
.ch:hover { background: rgba(255, 255, 255, .05); }
.ch.on { background: var(--brand-soft); box-shadow: inset 0 0 0 1px rgba(255, 122, 26, .4); }
.ch-logo { width: 58px; height: 40px; flex: 0 0 auto; border-radius: 8px; background: #0b0f18; display: grid; place-items: center; overflow: hidden; }
.ch-logo img { max-width: 50px; max-height: 32px; object-fit: contain; }
.ch-logo .ph { font-size: .72rem; font-weight: 800; color: #4b5671; }
.ch-name { flex: 1; min-width: 0; font-size: .88rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-num { color: var(--muted); font-size: .72rem; font-variant-numeric: tabular-nums; width: 28px; text-align: right; }
.star { border: 0; background: none; color: #4b5671; padding: 6px; line-height: 0; border-radius: 8px; }
.star:hover { color: #fde68a; }
.star.on { color: #fbbf24; }
.star svg { width: 16px; height: 16px; }
.stage { display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow-y: auto; }
.screen { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--line); flex: 0 0 auto; }
.screen video { width: 100%; height: 100%; background: #000; display: block; }
.screen-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; color: var(--text-2); background: radial-gradient(circle at center, #121826 0%, #000 75%); }
.screen-msg b { display: block; color: var(--text); font-size: 1.05rem; margin-bottom: 6px; }
.now { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.now-top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.now-top .ch-logo { width: 72px; height: 48px; }
.now-top h3 { margin: 0; font-size: 1.1rem; }
.now-top span { color: var(--muted); font-size: .84rem; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; color: #fca5a5; font-weight: 700; font-size: .72rem; letter-spacing: .08em; }
.live-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 4px rgba(239, 68, 68, .2); }
.epg { display: grid; gap: 8px; }
.epg-item { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); }
.epg-item.on { background: var(--brand-soft); box-shadow: inset 0 0 0 1px rgba(255, 122, 26, .3); }
.epg-time { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.epg-title { font-weight: 600; font-size: .9rem; }
.epg-desc { color: var(--text-2); font-size: .8rem; margin-top: 3px; line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.epg-bar { height: 4px; background: rgba(255, 255, 255, .1); border-radius: 4px; margin-top: 8px; overflow: hidden; }
.epg-bar i { display: block; height: 100%; background: var(--brand); }

/* ---------- detalhes (filme / serie) ---------- */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .72); backdrop-filter: blur(6px); display: grid; place-items: start center; overflow-y: auto; padding: 40px 16px; }
.sheet { width: 100%; max-width: 980px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 20px; overflow: hidden; box-shadow: 0 40px 100px rgba(0, 0, 0, .6); }
.hero { position: relative; min-height: 300px; background-size: cover; background-position: center top; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 20, 32, .25) 0%, rgba(15, 20, 32, .75) 55%, var(--bg-2) 100%); }
.hero-in { position: relative; z-index: 1; display: flex; gap: 22px; padding: 26px; align-items: flex-end; min-height: 300px; }
.hero-poster { width: 160px; flex: 0 0 auto; border-radius: 12px; overflow: hidden; box-shadow: 0 16px 40px rgba(0, 0, 0, .6); aspect-ratio: 2 / 3; background: var(--surface); }
.hero-poster img { width: 100%; height: 100%; object-fit: cover; }
.hero h2 { margin: 0 0 8px; font-size: 1.8rem; line-height: 1.15; letter-spacing: -.02em; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--text-2); font-size: .86rem; margin-bottom: 14px; }
.meta .rate { color: #fde68a; font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sheet-body { padding: 4px 26px 26px; }
.plot { color: var(--text-2); line-height: 1.65; margin: 0 0 14px; }
.credits { color: var(--muted); font-size: .86rem; line-height: 1.6; }
.credits b { color: var(--text-2); font-weight: 600; }
.close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; }
.close:hover { background: rgba(0, 0, 0, .8); }
.seasons { display: flex; gap: 8px; overflow-x: auto; margin: 18px 0 12px; padding-bottom: 4px; }
.eps { display: grid; gap: 10px; }
.ep { display: grid; grid-template-columns: 150px 1fr auto; gap: 14px; align-items: center; padding: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-align: left; width: 100%; color: inherit; }
.ep:hover { border-color: rgba(255, 122, 26, .5); }
.ep-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #0b0f18; }
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep-thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; color: #3a4560; font-weight: 800; }
.ep h4 { margin: 0 0 4px; font-size: .95rem; }
.ep p { margin: 0; color: var(--text-2); font-size: .82rem; line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ep-dur { color: var(--muted); font-size: .8rem; white-space: nowrap; }

/* ---------- player em tela cheia (filme / episodio) ---------- */
.player { position: fixed; inset: 0; z-index: 80; background: #000; display: flex; flex-direction: column; }
.player-top { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: linear-gradient(180deg, rgba(0, 0, 0, .8), transparent); transition: opacity .3s; }
.player.idle .player-top { opacity: 0; }
.player-top h3 { margin: 0; font-size: 1rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player video { flex: 1; width: 100%; height: 100%; background: #000; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; flex: 0 0 auto; }
.icon-btn:hover { background: rgba(255, 255, 255, .22); }
.icon-btn svg { width: 20px; height: 20px; }
.next-ep { position: absolute; right: 18px; bottom: 90px; z-index: 2; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; background: var(--surface-2); border: 1px solid var(--line-2); padding: 12px 16px; border-radius: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); font-size: .9rem; max-width: calc(100% - 32px); }

/* ---------- celular / tablet ---------- */
.search-toggle { display: none !important; }
@media (max-width: 1180px) {
    .live { grid-template-columns: 300px 1fr; grid-template-rows: auto 1fr; height: auto; }
    .live .cats { grid-column: 1 / -1; }
    .live .cats .panel-b { display: flex; gap: 6px; overflow-x: auto; padding: 8px; }
    .live .cats .panel-h { display: none; }
    .live .cats .cat { width: auto; flex: 0 0 auto; border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px; white-space: nowrap; }
    .live .chans { max-height: 70vh; }
}
@media (max-width: 760px) {
    :root { --head-h: 112px; }
    .head { flex-wrap: wrap; height: auto; padding: 10px 14px; gap: 10px; }
    .head-logo { height: 26px; }
    .tabs { order: 3; width: 100%; justify-content: space-between; }
    .tab { flex: 1; justify-content: center; padding: 8px 6px; font-size: .85rem; }
    .head-search { order: 4; width: 100%; display: none; }
    .head-search.open { display: block; }
    .user { margin-left: auto; }
    .user-name { display: none; }
    .user-btn { padding: 3px; }
    .search-toggle { display: grid !important; }
    .main { padding: 14px; }
    .live { display: flex; flex-direction: column; }
    .live .stage { order: -1; }
    .live .chans { max-height: none; }
    .grid { grid-template-columns: repeat(3, 1fr); gap: 14px 10px; }
    .card-title { font-size: .8rem; }
    .hero-in { flex-direction: column; align-items: flex-start; padding: 18px; }
    .hero-poster { width: 120px; }
    .hero h2 { font-size: 1.4rem; }
    .sheet-body { padding: 4px 18px 20px; }
    .modal { padding: 0; }
    .sheet { border-radius: 0; min-height: 100vh; }
    .ep { grid-template-columns: 110px 1fr; }
    .ep-dur { display: none; }
    .epg-item { grid-template-columns: 80px 1fr; }
}
@media (max-width: 420px) { .grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- marca d'agua + logo animado (carregando) ---------- */
.wm { position: absolute; top: 14px; left: 16px;  /* no ao vivo o logo do canal costuma ficar a direita */ z-index: 3; width: clamp(46px, 5vw, 80px); opacity: .3; pointer-events: none; user-select: none; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6)); }
.player .wm { top: auto; left: auto; bottom: 74px; right: 22px; width: clamp(56px, 5.5vw, 96px); }
.screen:fullscreen, .player:fullscreen { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; border: 0; }
.screen:fullscreen video, .player:fullscreen video { width: 100%; height: 100%; object-fit: contain; }
.loader { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; pointer-events: none; background: radial-gradient(circle at center, rgba(10, 13, 20, .55) 0%, rgba(0, 0, 0, .85) 70%); transition: opacity .35s; }
.loader.off { opacity: 0; }
.loader-in { display: grid; justify-items: center; gap: 14px; }
.loader-logo { position: relative; width: clamp(110px, 14vw, 180px); aspect-ratio: 1715 / 512; animation: lg-pulse 1.8s ease-in-out infinite; }
.loader-logo img { width: 100%; height: 100%; }
.loader-logo::after { /* brilho que passa so por dentro do desenho do logo */
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 190, 120, .95) 48%, rgba(255, 255, 255, .9) 50%, transparent 68%);
    background-size: 250% 100%; animation: lg-shine 1.8s ease-in-out infinite;
    -webkit-mask: url(/assets/logo.png) center / contain no-repeat; mask: url(/assets/logo.png) center / contain no-repeat;
}
.loader-bar { width: clamp(80px, 10vw, 120px); height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.loader-bar i { display: block; width: 40%; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--brand), #ffb26b); animation: lg-bar 1.2s ease-in-out infinite; }
.loader-txt { color: var(--text-2); font-size: .86rem; text-align: center; max-width: 80%; }
@keyframes lg-pulse { 0%, 100% { transform: scale(1); opacity: .92; } 50% { transform: scale(1.045); opacity: 1; } }
@keyframes lg-shine { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
@keyframes lg-bar { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
@media (prefers-reduced-motion: reduce) { .loader-logo, .loader-logo::after, .loader-bar i { animation: none; } }
.boot { min-height: 100vh; display: grid; place-items: center; position: relative; }
.boot .loader { background: none; }

/* ---------- animacao da tela de login ---------- */
.login { position: relative; overflow: hidden; isolation: isolate; }
.login-card { position: relative; z-index: 1; }
.login-fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.o1 { width: 520px; height: 520px; left: -140px; top: -160px; background: radial-gradient(circle, rgba(255, 122, 26, .75), transparent 65%); animation: orb1 22s ease-in-out infinite alternate; }
.o2 { width: 600px; height: 600px; right: -200px; bottom: -220px; background: radial-gradient(circle, rgba(56, 97, 251, .6), transparent 65%); animation: orb2 26s ease-in-out infinite alternate; }
.o3 { width: 360px; height: 360px; left: 55%; top: 15%; background: radial-gradient(circle, rgba(255, 94, 58, .35), transparent 65%); animation: orb3 18s ease-in-out infinite alternate; }
@keyframes orb1 { to { transform: translate(180px, 140px) scale(1.15); } }
@keyframes orb2 { to { transform: translate(-200px, -120px) scale(1.1); } }
@keyframes orb3 { 0% { transform: translate(-50%, 0) scale(.9); } 100% { transform: translate(-120%, 120px) scale(1.2); } }
.beam { position: absolute; top: -50%; left: -60%; width: 40%; height: 200%; transform: rotate(18deg);
    background: linear-gradient(90deg, transparent, rgba(255, 170, 100, .07), rgba(255, 255, 255, .06), transparent); animation: beam 9s ease-in-out infinite; }
@keyframes beam { 0% { left: -60%; } 55%, 100% { left: 130%; } }
.grain { position: absolute; inset: 0; opacity: .5;
    background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%); }
.login-logo { animation: logoIn .9s cubic-bezier(.2, .8, .2, 1) both; }
.login-logo::after { content: ''; position: absolute; inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 190, 120, .95) 48%, rgba(255, 255, 255, .95) 50%, transparent 65%);
    background-size: 260% 100%; background-position: 130% 0; animation: logoShine 6s ease-in-out .9s infinite;
    -webkit-mask: url(/assets/logo.png) center / contain no-repeat; mask: url(/assets/logo.png) center / contain no-repeat; }
@keyframes logoIn { from { opacity: 0; transform: translateY(-18px) scale(.94); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes logoShine { 0% { background-position: 130% 0; } 22%, 100% { background-position: -130% 0; } }
.login-tag { animation: tagIn 1.1s ease .35s both; }
@keyframes tagIn { from { opacity: 0; letter-spacing: .8em; } to { opacity: 1; letter-spacing: .32em; } }
.login-box { animation: boxIn .8s cubic-bezier(.2, .8, .2, 1) .25s both; }
@keyframes boxIn { from { opacity: 0; transform: translateY(26px) scale(.98); } to { opacity: 1; transform: none; } }
.login-foot { animation: fadeIn .9s ease .7s both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.btn-brand { position: relative; overflow: hidden; }
.btn-brand::after { content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; transform: skewX(-20deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); transition: left .6s ease; }
.btn-brand:hover::after { left: 130%; }
.msg-err { animation: shake .45s ease; }
@keyframes shake { 0%, 100% { transform: none; } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) {
    .orb, .beam, .login-logo, .login-logo::after, .login-tag, .login-box, .login-foot, .msg-err { animation: none !important; }
}

/* ---------- abertura depois do login ---------- */
.intro { position: fixed; inset: 0; z-index: 200; background: #000; display: grid; place-items: center; transition: opacity .6s ease; }
.intro.out { opacity: 0; }
.intro-logo { position: relative; width: min(420px, 70vw); aspect-ratio: 1715 / 512; animation: introLogo 2.2s cubic-bezier(.2, .7, .2, 1) both; }
.intro-logo img { width: 100%; height: 100%; }
.intro-logo::before { content: ''; position: absolute; inset: -60% -20%; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255, 122, 26, .55), rgba(255, 94, 58, .15) 55%, transparent 75%);
    filter: blur(20px); opacity: 0; animation: introGlow 2.2s ease both; z-index: -1; }
.intro-logo::after { content: ''; position: absolute; inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 200, 140, 1) 48%, #fff 50%, transparent 65%);
    background-size: 260% 100%; background-position: 130% 0; animation: introShine 1.2s ease-in-out .55s both;
    -webkit-mask: url(/assets/logo.png) center / contain no-repeat; mask: url(/assets/logo.png) center / contain no-repeat; }
@keyframes introLogo { 0% { opacity: 0; transform: scale(.82); filter: blur(8px); } 22% { opacity: 1; transform: scale(1); filter: none; }
    70% { transform: scale(1.05); } 100% { transform: scale(2.6); opacity: 0; filter: blur(3px); } }
@keyframes introGlow { 0% { opacity: 0; } 30% { opacity: .9; } 70% { opacity: 1; } 100% { opacity: 0; } }
@keyframes introShine { from { background-position: 130% 0; } to { background-position: -130% 0; } }
