/* =========================================================
   TURBO TV+ — portal público
   Preto profundo, vermelho metálico, cinza-carvão, branco.
   Sem fontes externas: pilha do sistema (rápido e compatível com a CSP).
   ========================================================= */

:root {
    --bg: #090605;
    --surface: #110b09;
    --raise: #1b120f;
    --line: #2b1d17;
    --line-hi: #40291e;

    /* Paleta da logo: amarelo -> laranja -> laranja-avermelhado */
    --yellow: #ffd60a;
    --amber: #ffa000;
    --orange: #ff6a00;
    --flame: #f04400;
    --accent: #ff7a00;
    --accent-hi: #ffb020;
    --accent-lo: #b53a00;
    --on-accent: #1d0700;

    /* Degradês */
    --grad-v: linear-gradient(180deg, #ffd60a 0%, #ffa000 38%, #ff6a00 72%, #f04400 100%);
    --grad-h: linear-gradient(90deg, #ffc21a 0%, #ff8a00 52%, #f04400 100%);
    --grad-soft: linear-gradient(135deg, rgba(255, 190, 20, .22), rgba(240, 68, 0, .10));

    --text: #fff6ee;
    --mute: #ad9d93;
    --dim: #7d6d64;
    --ok: #35c46f;
    --danger: #ff5a4d;

    --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
    --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;

    --r-lg: 14px;
    --r-md: 10px;
    --r-sm: 7px;

    --top-h: 72px;
    --side-w: 236px;
    --max: none;   /* sem limite: o site ocupa a tela inteira */
    --gap: clamp(14px, 1.6vw, 22px);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 16px); }
body {
    margin: 0;
    background:
        radial-gradient(70% 42% at 88% -6%, rgba(255, 110, 0, .12), transparent 70%),
        radial-gradient(50% 36% at 0% 100%, rgba(240, 68, 0, .09), transparent 70%),
        var(--bg);
    background-repeat: no-repeat;
    color: var(--text);
    font: 400 15px/1.55 var(--font);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--grad-h); color: var(--on-accent); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700; transition: top .15s; }
.skip-link:focus { top: 12px; }

.ico { width: 20px; height: 20px; flex: none; }
.ico--sm { width: 14px; height: 14px; }

/* ---------------------------------------------------------
   Botões
   --------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 42px; padding: 0 20px;
    border: 1px solid transparent; border-radius: var(--r-sm);
    font-weight: 750; font-size: 15px; line-height: 1; letter-spacing: .01em;
    transition: background-color .15s, border-color .15s, box-shadow .2s, transform .1s;
    -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
    color: var(--on-accent);
    background: linear-gradient(180deg, #ffd60a 0%, #ffab00 34%, #ff7300 70%, #f04a00 100%);
    border-color: #ffe27a;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 0 rgba(120, 20, 0, .28), 0 8px 22px -8px rgba(255, 106, 0, .85);
}
.btn--primary:hover { filter: brightness(1.08) saturate(1.05); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 0 rgba(120, 20, 0, .28), 0 10px 28px -8px rgba(255, 138, 0, .95); }
.btn--ghost { background: var(--raise); border-color: var(--line-hi); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); background: #241814; }
.btn--ghost[aria-disabled="true"] { color: var(--dim); border-style: dashed; cursor: not-allowed; }
.btn--ghost[aria-disabled="true"]:hover { border-color: var(--line-hi); background: var(--raise); }
.btn--block { width: 100%; }
.btn--lg { min-height: 54px; font-size: 16px; letter-spacing: .04em; }
.btn--sm { min-height: 34px; padding: 0 12px; font-size: 13px; }

.icon-btn {
    display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none;
    background: transparent; border: 1px solid var(--line); border-radius: var(--r-sm);
    transition: border-color .15s, background-color .15s;
}
.icon-btn:hover { border-color: var(--accent); background: var(--raise); }

/* ---------------------------------------------------------
   Topo
   --------------------------------------------------------- */
.topbar {
    position: sticky; top: 0; z-index: 100; height: var(--top-h);
    background: rgba(9, 6, 5, .92); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.topbar::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
    background: linear-gradient(90deg, transparent, #b53a00 12%, #ff6a00 34%, #ffc21a 50%, #ff6a00 66%, #b53a00 88%, transparent);
    opacity: .85;
}
.topbar__inner { height: 100%; max-width: var(--max); margin-inline: auto; display: flex; align-items: center; gap: 24px; padding: 0 max(clamp(14px, 2.4vw, 32px), env(safe-area-inset-right)) 0 max(clamp(14px, 2.4vw, 32px), env(safe-area-inset-left)); }
.topbar__menu { display: none; }
.brand { flex: none; display: flex; align-items: center; }
.brand img { height: 50px; width: auto; max-width: none; }

.search { position: relative; flex: 1 1 auto; max-width: 620px; margin-inline: auto 0; }
.search input {
    width: 100%; height: 46px; padding: 0 18px 0 48px;
    background: var(--surface); border: 1px solid var(--line-hi); border-radius: 999px;
    color: var(--text); outline: none;
    transition: border-color .15s, box-shadow .2s, background-color .15s;
}
.search input::placeholder { color: var(--mute); }
.search input::-webkit-search-cancel-button { filter: invert(1); opacity: .6; }
.search input:focus { border-color: var(--accent); background: #160f0c; box-shadow: 0 0 0 4px rgba(255, 122, 0, .16); }
.search__icon { position: absolute; left: 16px; top: 13px; width: 20px; height: 20px; color: var(--mute); pointer-events: none; }

.search__panel {
    position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 120;
    background: var(--surface); border: 1px solid var(--line-hi); border-radius: var(--r-md);
    box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .9); overflow: hidden;
}
.sugg { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.sugg:last-child { border-bottom: 0; }
.sugg:hover, .sugg.is-hot { background: var(--raise); }
.sugg__img { width: 44px; height: 44px; border-radius: 9px; background: var(--raise); object-fit: cover; flex: none; }
.sugg__img--mark { padding: 6px; object-fit: contain; }
.sugg__text { min-width: 0; flex: 1; }
.sugg__text strong { display: block; font-size: 14px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sugg__text small { display: block; color: var(--mute); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sugg--all { justify-content: center; color: var(--accent-hi); font-weight: 650; font-size: 14px; }
.sugg--none { color: var(--mute); justify-content: center; font-size: 14px; }

.topbar__actions { flex: none; display: flex; align-items: center; gap: 10px; }
.topbar__search-toggle { display: none; }
.topbar__link {
    display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 16px;
    border: 1px solid var(--line-hi); border-radius: var(--r-sm); background: var(--surface);
    font-weight: 600; font-size: 14px; transition: border-color .15s, background-color .15s;
}
.topbar__link:hover { border-color: var(--accent); background: var(--raise); }
.topbar__link .ico { color: var(--accent-hi); width: 18px; height: 18px; }

/* ---------------------------------------------------------
   Estrutura
   --------------------------------------------------------- */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); align-items: start; max-width: var(--max); margin-inline: auto; }
.main { min-width: 0; padding: clamp(14px, 1.8vw, 24px) max(clamp(14px, 2.4vw, 32px), env(safe-area-inset-right)) 48px clamp(14px, 2.4vw, 32px); outline: none; }

.sidebar {
    position: sticky; top: var(--top-h); align-self: start;
    height: calc(100vh - var(--top-h)); overflow-y: auto;
    display: flex; flex-direction: column;
    padding: 26px 16px 20px; border-right: 1px solid var(--line);
    background:
        radial-gradient(120% 40% at 0% 100%, rgba(255, 122, 0, .22), transparent 70%),
        linear-gradient(180deg, var(--bg), #0c0807);
}
.sidebar__head { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 14px; }
.sidebar__title { font-size: 12.5px; font-weight: 700; color: var(--mute); letter-spacing: .06em; }
.sidebar__close { display: none; }
.side-nav { display: grid; gap: 8px; }
.side-link {
    display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 8px 14px; line-height: 1.25;
    background: var(--surface); border: 1px solid var(--line); border-radius: 23px;
    font-size: 14.5px; font-weight: 550; color: #f1e4da;
    transition: border-color .15s, background-color .15s, color .15s;
}
.side-link__icon { color: var(--mute); transition: color .15s; }
.side-link span { min-width: 0; overflow-wrap: anywhere; }
.side-link:hover { border-color: var(--line-hi); background: var(--raise); }
.side-link:hover .side-link__icon { color: var(--accent-hi); }
.side-link.is-active {
    color: #fff; border-color: var(--accent);
    background: linear-gradient(90deg, rgba(255, 176, 32, .28), rgba(240, 68, 0, .08));
    box-shadow: inset 3px 0 0 var(--accent);
}
.side-link.is-active .side-link__icon { color: var(--accent-hi); }
.sidebar__tagline {
    margin-top: auto; padding: 36px 6px 8px;
    font-size: 18px; line-height: 1.15; font-weight: 850; font-style: italic; letter-spacing: -.005em;
    text-transform: uppercase;
    background: var(--grad-v); -webkit-background-clip: text; background-clip: text; color: transparent;
    -webkit-text-fill-color: transparent;
}
.sidebar__tagline::after { content: ""; display: block; width: 48px; height: 3px; margin-top: 14px; background: var(--grad-h); border-radius: 2px; }
.scrim { position: fixed; inset: 0; z-index: 140; background: rgba(0, 0, 0, .7); }

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero {
    position: relative; overflow: hidden; isolation: isolate;
    border: 1px solid var(--line-hi); border-radius: var(--r-lg);
    background: #0c0d10; height: clamp(250px, 26vw, 340px);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 30px 60px -30px rgba(255, 122, 0, .35);
}
.hero__track { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s .6s; }
.hero__slide.is-active { opacity: 1; visibility: visible; transition: opacity .6s var(--ease), visibility 0s; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9, 6, 5, .88) 0%, rgba(9, 6, 5, .55) 42%, rgba(9, 6, 5, 0) 75%); }
.hero__art {
    position: absolute; inset: 0; overflow: hidden;
    background:
        linear-gradient(115deg, transparent 50%, rgba(255, 176, 32, .55) 50.4%, rgba(255, 106, 0, .10) 58%, transparent 58.5%),
        linear-gradient(115deg, transparent 63%, rgba(240, 68, 0, .40) 63.3%, transparent 73%),
        radial-gradient(60% 95% at 86% 50%, rgba(255, 110, 0, .55), transparent 70%),
        radial-gradient(50% 80% at 0% 0%, #3a1204, transparent 70%),
        #0b0605;
}
.hero__mark { position: absolute; right: clamp(20px, 6%, 90px); top: 50%; width: clamp(200px, 31vw, 400px); height: auto; transform: translateY(-50%); filter: drop-shadow(0 18px 36px rgba(255, 106, 0, .5)); }
.hero__content {
    position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px;
    padding: clamp(20px, 4vw, 56px); max-width: min(680px, 78%);
}
.hero__title {
    font-size: clamp(28px, 4.4vw, 56px); line-height: 1.02; font-weight: 900; font-style: italic; letter-spacing: -.02em;
    padding-right: .08em;
    background: linear-gradient(180deg, #fff2a8 0%, #ffd60a 22%, #ffa000 52%, #ff6a00 80%, #f04400 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 3px 0 rgba(60, 10, 0, .85)) drop-shadow(0 8px 26px rgba(255, 106, 0, .35));
}
.hero__subtitle { font-size: clamp(15px, 1.7vw, 22px); font-weight: 750; line-height: 1.2; color: #ffc24a; text-shadow: 0 2px 16px rgba(0, 0, 0, .8); }
.hero__text { color: #e9dbd1; max-width: 46ch; font-size: clamp(13.5px, 1.2vw, 15.5px); text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
.hero__btn { margin-top: 8px; }
/* banner padrão (com mascote à direita): texto não invade o desenho */
.hero__art + .hero__content { max-width: min(600px, 56%); }
.hero__nav {
    position: absolute; top: 50%; z-index: 3; width: 40px; height: 40px; transform: translateY(-50%);
    display: grid; place-items: center; border-radius: 50%;
    background: rgba(9, 6, 5, .6); border: 1px solid var(--line-hi); backdrop-filter: blur(4px);
    opacity: 0; transition: opacity .2s, border-color .15s;
}
.hero:hover .hero__nav, .hero:focus-within .hero__nav { opacity: 1; }
.hero__nav:hover { border-color: var(--accent); }
.hero__nav--prev { left: 12px; }
.hero__nav--next { right: 12px; }
.hero__dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.hero__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .35); transition: width .25s var(--ease), background-color .2s; }
.hero__dots button:hover { background: rgba(255, 255, 255, .7); }
.hero__dots button.is-active { width: 24px; background: var(--grad-h); }
@media (hover: none) { .hero__nav { opacity: .85; } }

/* ---------------------------------------------------------
   Seções
   --------------------------------------------------------- */
.section { margin-top: clamp(26px, 3.4vw, 40px); }
.section__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.section__head h2 { position: relative; padding-left: 14px; font-size: 21px; font-weight: 700; letter-spacing: -.005em; }
.section__head h2::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 2px; background: var(--grad-v); box-shadow: 0 0 14px rgba(255, 138, 0, .7); }
.section__more { margin-left: auto; min-height: 40px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; color: var(--accent-hi); font-weight: 600; font-size: 14px; }
.section__more:hover { color: #ffd08a; }
.section__count { margin-left: auto; color: var(--mute); font-size: 14px; white-space: nowrap; }

.grid-featured { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); }
.grid-featured > .card--v { grid-column: span 2; }
.grid-featured > .card--h, .grid-featured > .card--half { grid-column: span 3; }
.grid-featured > .card--full { grid-column: span 6; }
.grid-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--gap); }

/* ---------------------------------------------------------
   Card de aplicativo
   --------------------------------------------------------- */
.card {
    position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
    background: linear-gradient(180deg, #160f0c, #0e0908);
    border: 1px solid var(--line); border-radius: var(--r-lg);
    transition: border-color .2s, box-shadow .25s;
}
.card:hover { border-color: #7a3a14; box-shadow: 0 0 0 1px rgba(255, 122, 0, .25), 0 18px 40px -20px rgba(255, 122, 0, .5); }
.card__media { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0c0807; border-bottom: 1px solid var(--line); }
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 16px; flex: 1; }
.card__title { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; line-height: 1.25; }
.card__title a { min-width: 0; overflow-wrap: anywhere; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__title a:focus-visible { outline: none; }
.card__title a:focus-visible::after { outline: 2px solid var(--accent-hi); outline-offset: -2px; border-radius: var(--r-lg); }
.card .btn { position: relative; z-index: 2; }
.card__title a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.card__icon { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; flex: none; }
.card__desc { color: #dccdc3; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .btn { margin-top: 0; }
.card .dl { margin-top: auto; }
.card__body > .tags + .btn, .card__body > .card__desc + .btn { margin-top: auto; }
.card__body > .tags { margin-bottom: 4px; }

.card--h, .card--half, .card--full { flex-direction: row; }
.card--h .card__media, .card--half .card__media, .card--full .card__media { flex: 0 0 34%; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); min-height: 100%; }
.card--h .card__body, .card--half .card__body, .card--full .card__body { padding: 16px 18px; justify-content: center; }
.card--h .card__desc, .card--half .card__desc, .card--full .card__desc { -webkit-line-clamp: 2; }

.thumb-fallback {
    width: 100%; height: 100%; min-height: 100%;
    display: flex; align-items: center; justify-content: center; gap: 14px; padding: 12px;
    background:
        linear-gradient(115deg, transparent 55%, rgba(255, 122, 0, .35) 55.4%, transparent 62%),
        radial-gradient(70% 120% at 15% 50%, rgba(255, 122, 0, .4), transparent 70%),
        #0e0908;
}
.thumb-fallback img { width: auto; height: 64px; flex: none; filter: drop-shadow(0 8px 18px rgba(255, 106, 0, .5)); }
.thumb-fallback b { font-size: clamp(14px, 1.5vw, 18px); line-height: 1.1; font-weight: 900; font-style: italic; letter-spacing: -.01em; max-width: 12ch; min-width: 0; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
.thumb-fallback--lg { min-height: 340px; gap: 24px; }
.thumb-fallback--lg img { width: auto; height: 130px; }
.thumb-fallback--lg b { font-size: 36px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
    display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 8px;
    border: 1px solid var(--line-hi); border-radius: 999px; background: rgba(255, 255, 255, .03);
    font-size: 12px; font-weight: 550; color: #e9dbd1; white-space: nowrap;
}
.tag__icon { width: 13px; height: 13px; color: var(--mute); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; background: rgba(255, 122, 0, .14); border: 1px solid rgba(255, 122, 0, .5); color: #ffc27a; font-size: 12.5px; font-weight: 600; }

/* ---------------------------------------------------------
   Categorias (home)
   --------------------------------------------------------- */
.grid-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.cat-tile {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; align-items: center; gap: 14px; min-height: 74px; padding: 14px 16px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
    transition: border-color .2s, background-color .2s;
}
.cat-tile:hover { border-color: var(--accent); background: var(--raise); }
.cat-tile__img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.cat-tile__icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 10px; background: var(--grad-soft); color: var(--accent-hi); border: 1px solid rgba(255, 122, 0, .35); }
.cat-tile__text strong { display: block; font-size: 15px; font-weight: 650; line-height: 1.2; }
.cat-tile__text small { color: var(--mute); font-size: 12.5px; }

/* ---------------------------------------------------------
   Páginas internas
   --------------------------------------------------------- */
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; font-size: 13.5px; color: var(--mute); }
.crumbs a:hover { color: var(--text); }
.crumbs span { color: var(--text); overflow-wrap: anywhere; }
.crumbs a { display: inline-flex; align-items: center; min-height: 32px; padding-inline: 4px; margin-inline: -4px; }
.page-head { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.page-head h1 { overflow-wrap: anywhere; font-size: clamp(24px, 3vw, 34px); font-weight: 850; font-style: italic; letter-spacing: -.015em; line-height: 1.1; }
.page-head p { color: var(--mute); margin-top: 4px; max-width: 60ch; overflow-wrap: anywhere; }
.page-head > div { min-width: 0; }
.page-head__icon { display: grid; place-items: center; width: 54px; height: 54px; flex: none; border-radius: 14px; background: var(--grad-soft); border: 1px solid rgba(255, 122, 0, .45); color: var(--accent-hi); }
.page-head__icon .ico { width: 26px; height: 26px; }
.page-head .section__count { align-self: flex-start; padding-top: 6px; }

.empty { padding: 44px 20px; text-align: center; color: var(--mute); border: 1px dashed var(--line-hi); border-radius: var(--r-lg); background: rgba(255, 255, 255, .015); }
.empty > * + * { margin-top: 10px; }
.empty__title { color: var(--text); font-size: 17px; font-weight: 650; }
.empty__code { font-size: 72px; line-height: 1; font-weight: 900; font-style: italic; background: var(--grad-v); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; filter: drop-shadow(0 6px 30px rgba(255, 106, 0, .45)); }
.empty--page { margin-top: 8vh; border: 0; background: none; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 30px; }
.pager__item, .pager__gap { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--r-sm); font-weight: 600; }
.pager__item { border: 1px solid var(--line-hi); background: var(--surface); transition: border-color .15s; }
.pager__item:hover { border-color: var(--accent); }
.pager__item.is-current { background: var(--grad-v); border-color: #ffe27a; color: var(--on-accent); }
.pager__gap { color: var(--dim); }

/* Detalhe do aplicativo */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--gap); align-items: start; }
.detail__media { overflow: hidden; border: 1px solid var(--line-hi); border-radius: var(--r-lg); background: #0c0807; box-shadow: 0 30px 60px -36px rgba(255, 122, 0, .5); }
.detail__panel { display: flex; flex-direction: column; gap: 16px; padding: 22px; background: linear-gradient(180deg, #191110, #0f0a08); border: 1px solid var(--line-hi); border-radius: var(--r-lg); }
.detail__title { display: flex; align-items: center; gap: 14px; }
.detail__title > img { width: 56px; height: 56px; border-radius: 13px; object-fit: cover; border: 1px solid var(--line-hi); }
.detail__title h1 { overflow-wrap: anywhere; font-size: 24px; font-weight: 850; font-style: italic; line-height: 1.12; letter-spacing: -.01em; margin-bottom: 6px; }
.detail__lead { color: #e9dbd1; overflow-wrap: anywhere; }
.info { display: grid; gap: 0; margin: 4px 0 0; border-top: 1px solid var(--line); }
.info > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.info dt { color: var(--mute); }
.info dd { margin: 0; text-align: right; font-weight: 550; overflow-wrap: anywhere; }
.detail__media { grid-column: 1; grid-row: 1; }
.detail__panel { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: calc(var(--top-h) + 16px); }
.detail__body { grid-column: 1; grid-row: 2; display: grid; gap: var(--gap); min-width: 0; }

.code-box { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 20px 22px; border: 1px solid rgba(255, 122, 0, .5); border-radius: var(--r-lg); background: linear-gradient(90deg, rgba(255, 122, 0, .16), rgba(255, 122, 0, .04)); }
.code-box h2 { font-size: 17px; font-weight: 700; }
.code-box p { color: #e9dbd1; font-size: 14px; margin-top: 2px; max-width: 44ch; }
.code-box__row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-width: 0; max-width: 100%; }
.code-box code { font: 700 clamp(17px, 5.2vw, 30px)/1.15 var(--mono); letter-spacing: .08em; padding: 12px 16px; min-width: 0; overflow-wrap: anywhere; word-break: break-all; border-radius: var(--r-sm); background: #070504; border: 1px solid var(--line-hi); color: #fff; user-select: all; }
.prose { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); max-width: 100%; }
.prose h2 { font-size: 18px; margin-bottom: 10px; }
.prose p { color: #e9dbd1; max-width: 72ch; overflow-wrap: anywhere; }
.prose p + p { margin-top: 12px; }

/* ---------------------------------------------------------
   Rodapé
   --------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); background: linear-gradient(180deg, #0a0b0d, #050506); position: relative; }
.perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: var(--max); margin: 0 auto; padding: 22px clamp(14px, 2.4vw, 32px); }
.perks li { display: flex; align-items: center; gap: 14px; padding: 6px 18px; }
.perks li + li { border-left: 1px solid var(--line-hi); }
.perks__icon { width: 30px; height: 30px; color: var(--accent-hi); flex: none; }
.perks strong { display: block; font-size: 14px; font-weight: 650; line-height: 1.25; }
.perks span { color: var(--mute); font-size: 12.5px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; max-width: var(--max); margin: 0 auto; padding: 20px clamp(14px, 2.4vw, 32px); border-top: 1px solid var(--line); }
.footer__about { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer__about img { height: 36px; width: auto; }
.footer__about p { color: var(--mute); font-size: 13.5px; max-width: 60ch; }
.footer__social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer__social a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid var(--line-hi); border-radius: 999px; font-size: 13.5px; color: #eadfd6; transition: border-color .15s, color .15s; }
.footer__social a:hover { border-color: var(--accent); color: #fff; }
.footer__social .ico { width: 17px; height: 17px; color: var(--accent-hi); }
.footer__copy { text-align: center; padding: 14px 16px calc(22px + env(safe-area-inset-bottom)); color: var(--dim); font-size: 12.5px; }

/* Páginas simples (500, manutenção) */
.plain-page { display: grid; place-items: center; min-height: 100vh; padding: 24px; text-align: center; background: radial-gradient(60% 60% at 50% 0%, rgba(255, 122, 0, .25), transparent 70%), var(--bg); }
.plain-page__box { max-width: 460px; display: grid; gap: 14px; justify-items: center; }
.plain-page__box h1 { font-size: 30px; font-weight: 850; font-style: italic; }
.plain-page__box p { color: var(--mute); }
.plain-page__debug { max-width: 90vw; overflow: auto; text-align: left; font: 12px/1.5 var(--mono); padding: 14px; background: var(--surface); border: 1px solid var(--line-hi); border-radius: var(--r-sm); color: #ffb3b8; }

/* ---------------------------------------------------------
   Responsivo
   Faixas: >=1280 desktop · 1000-1279 notebook · 761-999 tablet
           (menu só com ícones) · <=760 celular (menu retrátil)
   --------------------------------------------------------- */

/* Alinha a logo do topo com os botões do menu lateral */
@media (min-width: 761px) {
    .topbar__inner { padding-left: max(16px, env(safe-area-inset-left)); }
}

/* Telas muito grandes: texto um pouco maior, mais colunas, imagens dos cards sem esticar demais */
@media (min-width: 1800px) {
    body { font-size: 16px; }
    .grid-apps { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
    .hero { height: clamp(300px, 20vw, 420px); }
    .card--v .card__media { max-height: 300px; }
}
@media (min-width: 2400px) {
    .grid-apps { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
    .card--v .card__media { max-height: 320px; }
}

/* Notebook: menu lateral mais estreito, destaques em 2 colunas */
@media (min-width: 1000px) and (max-width: 1279px) {
    :root { --side-w: 212px; }
    .topbar__inner { gap: 18px; }
    .sidebar { padding: 22px 12px 18px; }
    .side-link { font-size: 14px; padding-inline: 12px; }
    .sidebar__tagline { font-size: 15.5px; }
}
@media (max-width: 1279px) {
    .grid-featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-featured > .card--v, .grid-featured > .card--h, .grid-featured > .card--half { grid-column: span 1; }
    .grid-featured > .card--full { grid-column: span 2; }
    .card--h, .card--half, .card--full { flex-direction: column; }
    .card--h .card__media, .card--half .card__media, .card--full .card__media { flex: none; aspect-ratio: 16 / 10; border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; }
    .card--h .card__body, .card--half .card__body, .card--full .card__body { padding: 16px; justify-content: flex-start; }
}
@media (max-width: 1100px) {
    .detail { grid-template-columns: minmax(0, 1fr) 320px; }
    .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 0; }
    .perks li:nth-child(3) { border-left: 0; }
}

/* Tablet: menu lateral só com ícones */
@media (min-width: 761px) and (max-width: 999px) {
    :root { --side-w: 76px; }
    .sidebar { padding: 22px 12px; align-items: center; }
    .sidebar__head { display: none; }
    .side-nav { justify-items: center; }
    .side-link { width: 50px; height: 50px; min-height: 0; padding: 0; justify-content: center; border-radius: 14px; }
    .side-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .side-link.is-active { box-shadow: none; }
    .sidebar__tagline { display: none; }
}
@media (max-width: 999px) {
    .topbar__link span { display: none; }
    .topbar__link { width: 42px; padding: 0; justify-content: center; }
    .hero__content { max-width: 66%; }
    .hero__art + .hero__content { max-width: 58%; }
}

/* Celular: menu retrátil, 1 coluna, alvos de toque de 44 px */
@media (max-width: 760px) {
    :root { --top-h: 62px; --side-w: 0px; }
    .shell { grid-template-columns: minmax(0, 1fr); }
    .topbar__inner { gap: 8px; }
    .topbar__menu { display: inline-grid; }
    .brand { margin-right: auto; min-width: 0; min-height: 44px; }
    .crumbs a { min-height: 40px; }
    .brand img { height: clamp(26px, 8.4vw, 40px); max-width: 100%; object-fit: contain; }
    .topbar__search-toggle { display: inline-grid; }
    .icon-btn, .topbar__link { width: 44px; height: 44px; }
    .search { position: absolute; left: 0; right: 0; top: 100%; max-width: none; padding: 10px 14px; background: rgba(9, 6, 5, .98); border-bottom: 1px solid var(--line); display: none; }
    .search.is-open { display: block; }
    .search__icon { left: 30px; top: 23px; }
    .search input { height: 46px; font-size: 16px; }
    .search__panel { left: 14px; right: 14px; top: calc(100% - 2px); max-height: 60vh; overflow-y: auto; }

    .sidebar {
        position: fixed; z-index: 150; top: 0; left: 0; bottom: 0; width: min(300px, 86vw); height: 100vh; height: 100dvh;
        padding: max(18px, env(safe-area-inset-top)) 16px 22px; align-items: stretch; background: #0b0706;
        transform: translateX(-102%); visibility: hidden;
        transition: transform .28s var(--ease), visibility 0s .28s; box-shadow: 30px 0 60px rgba(0, 0, 0, .7);
    }
    .sidebar.is-open { transform: none; visibility: visible; transition: transform .28s var(--ease), visibility 0s; }
    .sidebar__head { display: flex; }
    .sidebar__close { display: inline-grid; }
    .side-nav { justify-items: stretch; }
    .side-link { min-height: 50px; padding: 8px 16px; }
    .sidebar__tagline { display: block; }

    .hero { height: auto; min-height: 0; }
    .hero__mark { right: 14px; top: auto; bottom: 10px; transform: none; width: 150px; opacity: .6; }
    .hero__slide { position: relative; inset: auto; display: none; }
    .hero__slide.is-active { display: block; }
    .hero__track { position: relative; inset: auto; }
    .hero__content, .hero__art + .hero__content { position: relative; inset: auto; max-width: 100%; justify-content: flex-start; padding: 26px 20px 30px; min-height: 250px; }
    .hero__dots { bottom: 8px; }
    .hero__nav { display: none; }
    .section__head h2 { font-size: 18px; }
    .grid-featured, .grid-apps { grid-template-columns: minmax(0, 1fr); }
    .grid-featured > .card--v, .grid-featured > .card--h, .grid-featured > .card--half, .grid-featured > .card--full { grid-column: auto; }
    .grid-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cat-tile { flex-direction: column; align-items: flex-start; gap: 10px; }
    .page-head { flex-wrap: wrap; }
    .page-head .section__count { width: 100%; padding: 0; }
    .detail { grid-template-columns: minmax(0, 1fr); }
    .detail__media, .detail__panel, .detail__body { grid-column: 1; grid-row: auto; position: static; }
    .detail__panel { padding: 18px; }
    .thumb-fallback--lg { min-height: 220px; }
    .thumb-fallback--lg b { font-size: 24px; }
    .thumb-fallback--lg img { height: 96px; }
    .code-box { padding: 16px; }
    .code-box__row { width: 100%; }
    .code-box__row code { flex: 1 1 100%; text-align: center; }
    .code-box__row .btn { flex: 1 1 100%; min-height: 44px; }
    .btn { min-height: 46px; }
    .btn--sm { min-height: 44px; }
    .pager__item, .pager__gap { min-width: 44px; height: 44px; }
    .perks { grid-template-columns: minmax(0, 1fr); }
    .perks li { border-left: 0 !important; padding: 8px 4px; }
    .footer__about, .footer__inner { flex-direction: column; align-items: flex-start; }
    .footer__social a { height: 44px; }
}

/* Celulares pequenos (320-400 px) */
@media (max-width: 400px) {
    .topbar__inner { gap: 6px; padding-inline: max(10px, env(safe-area-inset-left)) max(10px, env(safe-area-inset-right)); }
    .icon-btn, .topbar__link { width: 40px; height: 40px; }
    .main { padding-inline: 12px; }
    .hero__content { padding: 22px 16px 26px; }
    .hero__btn { width: 100%; }
    .grid-cats { gap: 8px; }
    .cat-tile { padding: 12px; }
    .detail__panel { padding: 16px; }
    .detail__title h1 { font-size: 21px; }
    .page-head__icon { width: 46px; height: 46px; }
    .empty__code { font-size: 56px; }
}

/* Celular deitado / telas baixas: cabeçalho não fica fixo (sobra mais espaço) */
@media (max-height: 480px) and (orientation: landscape) {
    .topbar { position: static; }
    .sidebar { top: 0; }
    .hero__content { min-height: 200px; }
    html { scroll-padding-top: 16px; }
}

@media (min-width: 761px) { .scrim { display: none; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------------------------------------------------------
   Links de download (cards e página do aplicativo)
   --------------------------------------------------------- */
.dl { display: grid; gap: 8px; min-width: 0; }
.card .dl { position: relative; z-index: 2; }
.dl__title { font-size: 12px; font-weight: 700; color: var(--mute); }
.dl__code { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 7px 8px 7px 12px; border: 1px dashed rgba(255, 122, 0, .55); border-radius: var(--r-sm); background: rgba(255, 122, 0, .07); }
.dl__code-label { flex: none; font-size: 12px; color: var(--mute); }
.dl__code code { flex: 1; min-width: 0; text-align: right; font: 700 15px/1.2 var(--mono); letter-spacing: .06em; color: #fff; overflow-wrap: anywhere; user-select: all; }
.dl__copy { flex: none; width: 34px; height: 34px; }
.dl__copy.is-copied { border-color: var(--ok); color: var(--ok); }
.dl__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.dl .btn .ico { width: 17px; height: 17px; }
.dl--lg { gap: 10px; }
.dl--lg .dl__title { font-size: 13px; }
.dl--lg .dl__row { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 760px) { .dl__copy { width: 40px; height: 40px; } }

.plain-page__ref { font-size: 13px; color: var(--dim); }
.plain-page__ref b { color: var(--mute); font-family: var(--mono); letter-spacing: .06em; }

/* ---------------------------------------------------------
   Imagens dos aplicativos: sempre inteiras, sem cortar,
   sobre fundo desfocado; várias imagens trocam sozinhas.
   --------------------------------------------------------- */
.slide { position: absolute; inset: 0; display: block; overflow: hidden; opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility 0s .7s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .7s var(--ease), visibility 0s; }
.slide__bg { position: absolute; left: -12%; top: -12%; width: 124%; height: 124%; max-width: none; object-fit: cover; filter: blur(26px) brightness(.5) saturate(1.25); }
.slide__img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; }
.slider__dots { position: absolute; left: 0; right: 0; bottom: 8px; z-index: 2; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.slider__dots i { width: 6px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .4); transition: width .25s var(--ease), background-color .2s; }
.slider__dots i.is-active { width: 18px; background: var(--grad-h); }

.gallery { display: flex; flex-direction: column; }
.gallery__stage { position: relative; aspect-ratio: 16 / 9; max-height: min(600px, 68vh); width: 100%; background: #0c0807; overflow: hidden; }
.gallery__nav { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(9, 6, 5, .62); border: 1px solid var(--line-hi); backdrop-filter: blur(4px); opacity: 0; transition: opacity .2s, border-color .15s; }
.gallery__stage:hover .gallery__nav, .gallery__nav:focus-visible { opacity: 1; }
.gallery__nav:hover { border-color: var(--accent); }
.gallery__nav--prev { left: 12px; }
.gallery__nav--next { right: 12px; }
@media (hover: none) { .gallery__nav { opacity: .85; } }
.gallery__thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; border-top: 1px solid var(--line); background: rgba(0, 0, 0, .25); scrollbar-width: thin; }
.gallery__thumb { flex: 0 0 auto; width: 96px; aspect-ratio: 16 / 9; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 8px; background: #0c0807; opacity: .62; transition: opacity .2s, border-color .2s; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumb:hover { opacity: 1; }
.gallery__thumb.is-active { opacity: 1; border-color: var(--accent-hi); }
@media (max-width: 760px) { .gallery__stage { aspect-ratio: 4 / 3; } .gallery__thumb { width: 78px; } }
@media (prefers-reduced-motion: reduce) { .slide, .slide.is-active { transition: none; } }

/* cards com várias imagens: reserva uma faixa embaixo para os pontinhos (nada cobre a imagem) */
.card__media[data-slider] .slide__img { height: calc(100% - 22px); }
.card__media[data-slider] .slider__dots { bottom: 8px; }

/* cards horizontais: a imagem-padrão mostra só o mascote (o nome já está ao lado) */
.card--h .thumb-fallback b, .card--half .thumb-fallback b, .card--full .thumb-fallback b { display: none; }
.card--h .thumb-fallback, .card--half .thumb-fallback, .card--full .thumb-fallback { justify-content: center; }
@media (max-width: 1279px) {
    .card--h .thumb-fallback b, .card--half .thumb-fallback b, .card--full .thumb-fallback b { display: -webkit-box; }
}

/* descrição completa dentro do card (abre e fecha sem sair da página) */
.card__more { position: relative; z-index: 2; font-size: 13.5px; }
.card__more summary { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; cursor: pointer; list-style: none; color: var(--accent-hi); font-weight: 650; }
.card__more summary::-webkit-details-marker { display: none; }
.card__more summary::after { content: ""; width: 7px; height: 7px; margin-top: -3px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s var(--ease), margin .2s; }
.card__more[open] summary::after { margin-top: 3px; transform: rotate(-135deg); }
.card__more summary:hover { color: #ffd08a; }
.card__more-close, .card__more[open] .card__more-open { display: none; }
.card__more[open] .card__more-close { display: inline; }
.card__more-body { margin-top: 6px; padding: 12px 14px; max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r-sm); background: rgba(255, 255, 255, .03); color: #e9dbd1; line-height: 1.55; overflow-wrap: anywhere; scrollbar-width: thin; }
.card__more-body p + p { margin-top: 8px; }
@media (max-width: 760px) { .card__more summary { min-height: 44px; } }

/* botão "Código parceiro": toca e copia */
.dl__partner { justify-content: flex-start; gap: 8px; border-color: rgba(255, 122, 0, .55); background: rgba(255, 122, 0, .08); }
.dl__partner:hover { border-color: var(--accent-hi); background: rgba(255, 122, 0, .16); }
.dl__partner span { flex: none; font-weight: 700; }
.dl__partner b { flex: 1; min-width: 0; text-align: right; font: 700 14px/1.2 var(--mono); letter-spacing: .05em; color: #fff; overflow-wrap: anywhere; }
.dl--lg .dl__partner { min-height: 54px; }

/* app sem link de download: card sem clique e sem reação de "botão" */
.card--static:hover { border-color: var(--line); box-shadow: none; }
.card--static .card__title span { min-width: 0; overflow-wrap: anywhere; }
.sugg--static { cursor: default; }
.sugg--static:hover { background: transparent; }
