/* =========================================================
   1. FONTES
   ========================================================= */
@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/montserrat-latin.woff2") format("woff2");
}

/* =========================================================
   2. VARIÁVEIS (cores, espaçamentos, tipografia)
   ========================================================= */
:root {
    --c-red: #e00000;
    --c-red-dark: #b30000;
    --c-black: #0a0a0a;
    --c-ink: #111418;
    --c-text: #2b2f36;
    --c-muted: #6b7280;
    --c-line: #e5e7eb;
    --c-bg: #f2f3f5;
    --c-card: #ffffff;
    --c-bubble: #f0f2f5;
    --c-fb-blue: #1b74e4;
    --font-display: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-card: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
    --shadow-video: 0 10px 30px rgba(0, 0, 0, .25);

    --page-width: 760px;
    --header-h: 56px;
    --gutter: 16px;
}

/* =========================================================
   3. RESET / BASE
   ========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

a {
    color: inherit;
}

/* =========================================================
   4. COMPONENTES COMPARTILHADOS
   ========================================================= */
.icon-btn {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background-color .2s;
}

.icon-btn:hover,
.icon-btn:focus-visible {
    background: rgba(255, 255, 255, .12);
}

.icon-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-red);
    box-shadow: 0 0 0 0 rgba(224, 0, 0, .6);
    animation: live-pulse 1.6s infinite;
}

@keyframes live-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(224, 0, 0, .55); }
    70%  { box-shadow: 0 0 0 7px rgba(224, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(224, 0, 0, 0); }
}

.card {
    background: var(--c-card);
}

/* =========================================================
   5. HEADER
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--c-black);
    color: #fff;
    padding-top: env(safe-area-inset-top);
}

.site-header__inner {
    max-width: 1120px;
    height: var(--header-h);
    margin: 0 auto;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header__left,
.site-header__right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-header__logo {
    width: 96px;
    height: auto;
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
}

/* =========================================================
   6. TICKER (faixa de notícias)
   ========================================================= */
.ticker {
    background: var(--c-red);
    color: #fff;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    overflow: hidden;
}

.ticker__track {
    display: flex;
    width: max-content;
    padding: 9px 0;
    white-space: nowrap;
    animation: ticker-scroll var(--ticker-duration, 18s) linear infinite;
}

.ticker:hover .ticker__track {
    animation-play-state: paused;
}

.ticker__items {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ticker__items li {
    position: relative;
    padding: 0 20px;
}

.ticker__items li::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -2px;
    width: 4px;
    height: 4px;
    margin-top: -2px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .7);
}

.ticker__items strong {
    font-weight: 800;
}

@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* =========================================================
   7. LAYOUT PRINCIPAL
   ========================================================= */
.page {
    flex: 1;
    width: 100%;
    max-width: var(--page-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* =========================================================
   8. ARTIGO / VSL
   ========================================================= */
.article {
    padding: 20px var(--gutter) 28px;
    text-align: center;
}

.article__header {
    margin-bottom: 18px;
}

.kicker {
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    background: var(--c-red);
    color: #fff;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.headline {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(22px, 6vw, 34px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.01em;
    color: var(--c-ink);
    text-wrap: balance;
}

.headline strong {
    color: var(--c-red);
    font-weight: 800;
}

.article__meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 0;
    font-size: 13px;
    color: var(--c-muted);
}

/* Vídeo */
.video-frame {
    margin: 0 calc(var(--gutter) * -1);
    background: #000;
    overflow: hidden;
}

/* Faixa "ao vivo" colada embaixo do vídeo */
.live-viewers {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    background: linear-gradient(90deg, #141414 0%, #1f1f1f 100%);
    border-top: 1px solid rgba(255, 255, 255, .06);
    color: #fff;
    text-align: left;
}

.live-viewers__badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--c-red);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}

.live-viewers__badge .live-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    animation: live-pulse-white 1.6s infinite;
}

@keyframes live-pulse-white {
    0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); }
    70%  { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.live-viewers__faces {
    flex-shrink: 0;
    display: flex;
}

.live-viewers__faces img {
    width: 24px;
    height: 24px;
    border: 2px solid #1a1a1a;
    border-radius: 50%;
    object-fit: cover;
}

.live-viewers__faces img + img {
    margin-left: -8px;
}

.live-viewers__text {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 0;
    font-size: 14px;
    color: #d4d4d8;
    white-space: nowrap;
}

.live-viewers__trend {
    flex-shrink: 0;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    color: #22c55e;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .25s, transform .25s;
}

.live-viewers__trend.is-visible {
    opacity: 1;
    transform: none;
}
/* Número que rola como um odômetro */
.odometer {
    display: inline-flex;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    font-variant-numeric: tabular-nums;
    line-height: 1.25;
}

.odometer__digit {
    display: inline-block;
    height: 1.25em;
    overflow: hidden;
}

.odometer__strip {
    display: flex;
    flex-direction: column;
    transition: transform .8s cubic-bezier(.2, .9, .25, 1.15);
}

.odometer__strip span {
    height: 1.25em;
    text-align: center;
}

/* Botão CTA configurado na VTurb, abaixo da faixa "watching now" */
.vturb-cta-slot .callaction--outside {
    align-items: stretch;
}

.vturb-cta-slot vturb-custom-html {
    width: 100%;
}

/* Aviso abaixo do vídeo */
.notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 18px auto 0;
    padding: 10px 16px;
    max-width: 480px;
    border-radius: 999px;
    background: #fff4f4;
    color: var(--c-red-dark);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.notice svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Logos "As featured on" */
.featured {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--c-line);
}

.featured__label {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--c-muted);
}

.featured__logos {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

/* =========================================================
   9. COMENTÁRIOS
   ========================================================= */
.comments {
    padding: 20px var(--gutter) 24px;
}

.comments__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.comments__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--c-ink);
}

.comments__sort {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-muted);
}

.comments__sort svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.comments__count {
    margin: 4px 0 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--c-line);
    font-size: 13px;
    color: var(--c-muted);
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.comment {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-family: Helvetica, Arial, sans-serif;
}

.comment__avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--c-line);
}

.comment__body {
    flex: 1;
    min-width: 0;
}

.comment__bubble {
    position: relative;
    display: inline-block;
    max-width: 100%;
    padding: 8px 12px 10px;
    border-radius: 18px;
    background: var(--c-bubble);
}

.comment__author {
    display: block;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    color: #050505;
}

.comment__text {
    margin: 2px 0 0;
    font-size: 14px;
    line-height: 1.4;
    color: #1c1e21;
    overflow-wrap: anywhere;
}

.comment__reactions {
    position: absolute;
    right: 4px;
    bottom: -10px;
    display: inline-flex;
    align-items: center;
    padding: 2px 6px 2px 2px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
    font-size: 12px;
    color: #65676b;
}

.comment__reactions img {
    width: 16px;
    height: 16px;
    border: 1px solid #fff;
    border-radius: 50%;
}

.comment__reactions img + img {
    margin-left: -4px;
}

.comment__reactions-count {
    margin-left: 4px;
}

.comment__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 4px 12px 0;
    font-size: 12px;
    font-weight: 700;
    color: #65676b;
}

.comment__action:hover {
    text-decoration: underline;
}

.comment__action.is-active {
    color: var(--c-fb-blue);
}

.comment__time {
    font-weight: 400;
}

.comment__replies {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
    padding-left: 10px;
    border-left: 2px solid var(--c-line);
}

.comment__replies .comment__avatar {
    width: 28px;
    height: 28px;
}

.comment__text {
    white-space: pre-wrap;
}

.comment__mention {
    margin-right: 4px;
    color: var(--c-fb-blue);
    font-weight: 600;
}

.comment__reactions.is-popping {
    animation: reaction-pop .35s ease-out;
}

.comment.is-new {
    animation: comment-in .35s ease-out;
}

.comment.is-new > .comment__body > .comment__bubble {
    animation: bubble-flash 1.6s ease-out;
}

.comment.is-leaving {
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity .2s, transform .2s;
}

@keyframes reaction-pop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.3); }
    100% { transform: scale(1); }
}

@keyframes comment-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

@keyframes bubble-flash {
    0%   { background: #e7f0fd; }
    100% { background: var(--c-bubble); }
}

/* Avatar padrão do visitante ("You") */
.avatar-default {
    display: grid;
    place-items: end center;
    overflow: hidden;
    background: #c9ccd1;
    color: #fff;
}

.avatar-default svg {
    width: 80%;
    height: 80%;
    fill: currentColor;
}

/* Caixa de comentário */
.composer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 20px;
    font-family: Helvetica, Arial, sans-serif;
}

.composer--reply {
    margin: 0;
    animation: comment-in .25s ease-out;
}

.composer__avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.composer--reply .composer__avatar {
    width: 28px;
    height: 28px;
}

.composer__main {
    flex: 1;
    min-width: 0;
}

.composer__field {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    padding: 2px 4px 2px 14px;
    border: 1px solid transparent;
    border-radius: 20px;
    background: var(--c-bubble);
    transition: border-color .2s, background-color .2s;
}

.composer__field:focus-within {
    border-color: #d0d4d9;
    background: #fff;
}

.composer__input {
    font-family: inherit;
    font-size: 16px; /* 16px evita o zoom automático do iPhone ao focar */
    color: #1c1e21;
    flex: 1;
    min-width: 0;
    min-height: 38px;
    max-height: 160px;
    padding: 8px 0;
    border: 0;
    background: transparent;
    line-height: 1.35;
    resize: none;
    outline: none;
    overflow-y: auto;
}

.composer__input::placeholder {
    color: #8a8d91;
}

.composer__send {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--c-fb-blue);
    transition: background-color .2s, color .2s, transform .15s;
}

.composer__send svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.composer__send:not(:disabled):hover {
    background: #e7f0fd;
}

.composer__send:not(:disabled):active {
    transform: scale(.9);
}

.composer__send:disabled {
    color: #bcc0c4;
    cursor: default;
}

/* =========================================================
   10. FOOTER
   ========================================================= */
.site-footer {
    margin-top: 10px;
    padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom));
    background: var(--c-black);
    color: #a1a1aa;
    text-align: center;
    font-size: 12px;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    margin-bottom: 14px;
}

.site-footer__links a {
    color: #fff;
    font-size: 13px;
    text-decoration: none;
}

.site-footer__links a:hover {
    text-decoration: underline;
}

.site-footer__copy {
    margin: 0;
}

/* =========================================================
   11. RESPONSIVO
   ========================================================= */

/* Celulares pequenos (até 360px) */
@media (max-width: 360px) {
    :root {
        --gutter: 12px;
    }

    .live-pill,
    .live-viewers__faces {
        display: none;
    }

    .notice {
        font-size: 13px;
        border-radius: var(--radius-sm);
    }
}

/* Tablets e desktop (a partir de 640px) */
@media (min-width: 640px) {
    :root {
        --gutter: 32px;
    }

    .site-header__inner {
        padding: 0 16px;
    }

    .site-header__logo {
        width: 120px;
    }

    .page {
        padding: 24px 16px 0;
        gap: 20px;
    }

    .card {
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-card);
    }

    .article {
        padding-top: 32px;
        padding-bottom: 36px;
    }

    .video-frame {
        margin: 0;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-video);
    }

    .comments {
        padding-top: 28px;
        padding-bottom: 32px;
    }

    .comment {
        gap: 10px;
    }

    .comment__avatar {
        width: 40px;
        height: 40px;
    }

    .comment__replies {
        padding-left: 16px;
    }

    .comment__replies .comment__avatar {
        width: 32px;
        height: 32px;
    }

    .composer {
        gap: 10px;
    }

    .composer__avatar {
        width: 40px;
        height: 40px;
    }

    .composer--reply .composer__avatar {
        width: 32px;
        height: 32px;
    }

    .ticker {
        font-size: 13px;
    }

    .site-footer {
        margin-top: 32px;
    }
}

/* =========================================================
   12. ACESSIBILIDADE
   ========================================================= */
[hidden] {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 2px solid var(--c-fb-blue);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
