/*
 * Mega Filmes HD — SEO, UI e performance 2026
 * CSS leve, mobile-first e carregado após os estilos do DooPlay.
 */
:root {
    --mega-red: #ff253f;
    --mega-red-dark: #d80d29;
    --mega-blue: #1da1f2;
    --mega-violet: #6c5cff;
    --mega-bg: #080a0f;
    --mega-panel: #11151d;
    --mega-panel-2: #171c26;
    --mega-text: #f7f8fb;
    --mega-muted: #aeb5c3;
    --mega-border: rgba(255,255,255,.09);
    --mega-radius: 16px;
    --mega-shadow: 0 18px 55px rgba(0,0,0,.32);
}

html { scroll-behavior: smooth; }
body {
    background: var(--mega-bg) !important;
    color: var(--mega-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }

/* Cabeçalho sem mudanças estruturais críticas. */
header.main {
    background: rgba(7,9,14,.94) !important;
    border-bottom: 1px solid var(--mega-border);
    box-shadow: 0 8px 30px rgba(0,0,0,.2);
}
header.main .logo img { width: auto; max-height: 48px; }
header.main .main-header > li > a { font-weight: 700; letter-spacing: .01em; }
header.main .main-header > li > a:hover { color: var(--mega-red) !important; }

/* Aviso do aplicativo já lançado. */
.mega-app-launch {
    position: relative;
    z-index: 20;
    background:
        radial-gradient(circle at 10% 0%, rgba(255,37,63,.23), transparent 34%),
        radial-gradient(circle at 90% 100%, rgba(108,92,255,.22), transparent 38%),
        linear-gradient(110deg, #10141d 0%, #0b0e15 48%, #121522 100%);
    border-bottom: 1px solid rgba(255,255,255,.1);
    color: #fff;
}
.mega-app-launch__inner {
    width: min(1240px, calc(100% - 28px));
    min-height: 86px;
    margin: 0 auto;
    padding: 14px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
}
.mega-app-launch__copy { min-width: 0; }
.mega-app-launch__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 6px;
    color: #83ffb3;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .13em;
}
.mega-app-launch__copy p {
    margin: 0;
    color: #edf1f7;
    font-size: 14px;
    line-height: 1.55;
}
.mega-app-launch__copy strong { color: #fff; }
.mega-app-launch__highlights { color: #dce1ea; }
.mega-app-launch__highlights em {
    margin: 0 .45em;
    color: #ff8ea0;
    font-style: normal;
}
.mega-app-launch__cta {
    min-height: 56px;
    padding: 8px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.15);
    background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 12px 28px rgba(0,0,0,.25), inset 0 1px rgba(255,255,255,.08);
    transition: transform .2s ease, filter .2s ease, border-color .2s ease;
}
.mega-app-launch__cta:hover { transform: translateY(-2px); filter: brightness(1.06); border-color: rgba(255,255,255,.22); }
.mega-app-launch__playicon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mega-red), var(--mega-violet));
    font-size: 18px;
    box-shadow: 0 8px 18px rgba(255,37,63,.25);
}
.mega-app-launch__ctatext {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.05;
}
.mega-app-launch__ctatext small {
    color: rgba(255,255,255,.75);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
}
.mega-app-launch__ctatext strong {
    margin-top: 4px;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: .01em;
}

/* H1 e copy da home: úteis, limpos e sem keyword stuffing. */
.mega-home-intro {
    margin: 0 0 24px;
    padding: clamp(24px, 4vw, 42px);
    text-align: center;
    border: 1px solid var(--mega-border);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018)),
        radial-gradient(circle at 15% 0%, rgba(255,37,63,.15), transparent 34%);
    box-shadow: var(--mega-shadow);
}
.mega-home-intro__tag {
    display: inline-block;
    margin-bottom: 10px;
    color: #ff9aaa;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .15em;
}
.mega-home-intro h1 {
    max-width: 900px;
    margin: 0 auto 12px;
    color: #fff;
    font-size: clamp(25px, 4vw, 42px);
    line-height: 1.12;
    letter-spacing: -.035em;
}
.mega-home-intro p {
    max-width: 850px;
    margin: 0 auto;
    color: var(--mega-muted);
    font-size: clamp(14px, 1.7vw, 17px);
    line-height: 1.65;
}
.mega-home-intro__topics { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.mega-home-intro__topics span {
    padding: 7px 11px;
    border: 1px solid var(--mega-border);
    border-radius: 999px;
    background: rgba(255,255,255,.04);
    color: #d9dee7;
    font-size: 11px;
    font-weight: 700;
}

/* Cards e módulos: refinamento sem alterar os carrosséis. */
.module .content header h2 { color: #fff; font-weight: 800; letter-spacing: -.02em; }
.items .item { border: 1px solid rgba(255,255,255,.055); border-radius: 14px; overflow: hidden; }
.items .item .poster, .items .item .image { overflow: hidden; border-radius: 13px; background: #0c0f15; }
.items .item img { object-fit: cover; transition: transform .28s ease, filter .28s ease; }
.items .item:hover img { transform: scale(1.035); }
.items .item .data h3 { font-weight: 750 !important; }
.items .item .data h3 a:focus-visible, .items .item a:focus-visible { outline: 2px solid var(--mega-red); outline-offset: 3px; }

/* Rodapé mais enxuto e legível. */
footer.main { background: linear-gradient(180deg, #0c1017, #07090d) !important; border-top: 1px solid var(--mega-border); }
footer.main .fotlogo { align-items: flex-start; }
footer.main .fotlogo .text { max-width: 760px; color: var(--mega-muted); }
footer.main .fotlogo .text h3 { color: #fff; font-size: 18px; margin: 0 0 9px; }
footer.main .fotlogo .text p { margin: 0; line-height: 1.7; }
footer.main .copy { color: #7f8794; }

/* Telegram flutuante no padrão Mega Cinema. */
.mega-telegram-float {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(18px, calc(env(safe-area-inset-bottom) + 12px));
    z-index: 999998;
    width: min(390px, calc(100vw - 28px));
    filter: drop-shadow(0 18px 32px rgba(0,0,0,.42));
}
.mega-telegram-float > a {
    min-height: 64px;
    padding: 10px 48px 10px 12px;
    display: flex;
    align-items: center;
    gap: 11px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 18px;
    background: linear-gradient(135deg, #1da1f2 0%, #2789ef 48%, #6c5cff 100%);
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: inset 0 1px rgba(255,255,255,.18);
    transition: transform .2s ease, filter .2s ease;
}
.mega-telegram-float > a:hover { transform: translateY(-2px); filter: brightness(1.06); }
.mega-telegram-float__icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.17);
}
.mega-telegram-float__icon svg { width: 23px; height: 23px; }
.mega-telegram-float__text { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.mega-telegram-float__text strong { font-size: 13px; font-weight: 900; }
.mega-telegram-float__text small { margin-top: 4px; color: rgba(255,255,255,.78); font-size: 10px; }
.mega-telegram-float__close {
    position: absolute;
    top: 50%;
    right: 10px;
    z-index: 2;
    width: 34px;
    height: 34px;
    padding: 0;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.17);
    border-radius: 50%;
    background: rgba(5,9,18,.42);
    color: #fff;
    font: 800 24px/1 Arial, sans-serif;
    cursor: pointer;
    touch-action: manipulation;
}
.mega-telegram-float.is-hidden { display: none !important; }

/* Player responsivo sem interferir na lógica existente. */
.pframe iframe { display: block; }

@media (max-width: 980px) {
    .mega-app-launch__inner { grid-template-columns: 1fr; }
    .mega-app-launch__cta { justify-self: start; }
}

@media (max-width: 768px) {
    .mega-app-launch__inner { width: min(100% - 20px, 680px); grid-template-columns: 1fr; gap: 12px; padding: 14px 0; text-align: center; }
    .mega-app-launch__copy p { font-size: 12px; }
    .mega-app-launch__highlights em { display: none; }
    .mega-app-launch__highlights { display: inline; }
    .mega-app-launch__cta { width: 100%; min-height: 50px; justify-self: stretch; }
    .mega-app-launch__ctatext { align-items: flex-start; }
    .mega-home-intro { padding: 24px 16px; border-radius: 17px; }
    .mega-home-intro h1 { font-size: 27px; }
    .mega-home-intro p { font-size: 14px; }
    footer.main .fotlogo { text-align: center; align-items: center; }
    .mega-telegram-float { right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); width: calc(100vw - 20px); }
    .mega-telegram-float > a { min-height: 58px; border-radius: 15px; }
    .mega-telegram-float__icon { width: 38px; height: 38px; flex-basis: 38px; }
    .mega-telegram-float__text strong { font-size: 12px; }
    .mega-telegram-float__text small { font-size: 9px; }
}

@media (max-width: 380px) {
    .mega-app-countdown > span { width: 47px; }
    .mega-telegram-float__text small { display: none; }
}

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

/* Correções 3.0.0: logo mobile e aviso do app em todas as telas. */
.mega-app-launch {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    clear: both !important;
    float: none !important;
    margin: 0 0 22px !important;
}

.fixheadresp header.responsive {
    position: relative !important;
    min-height: 58px !important;
}
.fixheadresp header.responsive .logo {
    display: flex !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: auto !important;
    max-width: calc(100% - 112px) !important;
    transform: translate(-50%, -50%) !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 2 !important;
    margin: 0 !important;
}
.fixheadresp header.responsive .logo a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
}
.fixheadresp header.responsive .logo img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 180px !important;
    max-height: 38px !important;
    object-fit: contain !important;
}
.fixheadresp header.responsive .nav,
.fixheadresp header.responsive .search {
    position: relative !important;
    z-index: 4 !important;
}

/* Ajuste 3.1.1: Play Store ao lado do texto, sem seta decorativa. */
.mega-app-launch__action {
    width: 232px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    justify-self: end;
}
.mega-app-launch__click {
    display: block;
    color: rgba(255,255,255,.76);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .16em;
    line-height: 1;
    text-transform: uppercase;
}
.mega-app-launch__cta--playstore {
    width: 100%;
    min-height: 58px;
    padding: 8px 16px;
    border-radius: 13px;
    background: linear-gradient(180deg, #11141c 0%, #080a10 100%);
    border: 1px solid rgba(255,255,255,.20);
    box-shadow: 0 12px 28px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.08);
}
.mega-app-launch__cta--playstore::before,
.mega-app-launch__cta--playstore::after {
    content: none !important;
    display: none !important;
}
.mega-app-launch__cta--playstore .mega-app-launch__playicon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 9px;
    background: linear-gradient(135deg, #21d47b 0%, #25a8ff 44%, #ffd44d 70%, #ff4b55 100%);
    color: #fff;
    box-shadow: none;
}
.mega-app-launch__cta--playstore .mega-app-launch__ctatext small {
    font-size: 8px;
}
.mega-app-launch__cta--playstore .mega-app-launch__ctatext strong {
    font-size: 17px;
}
@media (max-width: 980px) {
    .mega-app-launch__action { justify-self: start; }
}
@media (max-width: 768px) {
    .mega-app-launch__action { width: 100%; justify-self: stretch; }
    .mega-app-launch__click { font-size: 8px; }
    .mega-app-launch__cta--playstore { width: 100%; }
}
