/* VARIÁVEIS GERAIS (Para fácil manutenção) */
:root {
    --primary-color: #ed254e; /* Vermelho neon mais vivo e profissional */
    --primary-glow: rgba(237, 37, 78, 0.4);
    --bg-dark: #0a0a0a;
    --border-color: rgba(255, 255, 255, 0.08);
    --text-muted: #b0b0b0;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ESTILO GERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    background: var(--bg-dark);
    /* Ambient Glow no fundo para um aspecto cinematográfico de portfólio de vídeo */
    background-image:
        radial-gradient(circle at 15% 15%, rgba(237, 37, 78, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(237, 37, 78, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, #141414 0%, #0a0a0a 60%, #050505 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
}

.interface {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 4%;
}

.flex {
    display: flex;
}

/* Foco visível para navegação por teclado (acessibilidade) */
a:focus-visible,
button:focus-visible,
.video-container:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

/* BARRA DE PROGRESSO DE LEITURA */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color));
    width: 0%;
    z-index: 10000;
    box-shadow: 0 0 12px var(--primary-color);
    transition: width 0.1s ease-out;
}

/* TÍTULOS GERAIS */
h2.title, .txt-sobre h2, .titulo-footer h3 {
    color: #fff;
    font-size: 52px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -1.5px;
}

h2.title span, .txt-sobre h2 span, .titulo-footer h3 span {
    color: var(--primary-color);
    text-shadow: 0 0 20px var(--primary-glow);
}

/* CABEÇALHO COM GLASSMORPHISM */
header {
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 9999;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

header.scrolled {
    padding: 12px 0;
    background-color: rgba(10, 10, 10, 0.92);
    border-bottom: 1px solid rgba(237, 37, 78, 0.15);
}

header.hide {
    transform: translateY(-100%);
}

header > .interface {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 4%;
}

.logo img {
    width: 60px;
    height: auto;
    border-radius: 50%;
    display: block;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
}

.logo img:hover {
    border-color: var(--primary-color);
}

header nav.menu-desktop {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

header nav ul li {
    display: inline-block;
    padding: 0 20px;
}

header nav ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
    padding: 5px 0;
}

header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

header nav ul li a:hover {
    color: #fff;
}

header nav ul li a:hover::after {
    transform: scaleX(1);
}

/* BOTÃO DE CONTATO */
.btn-contato .btn-link {
    display: inline-block;
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background-color: transparent;
    color: #fff;
    text-decoration: none;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-contato .btn-link:hover {
    background-color: var(--primary-color);
    box-shadow: 0px 0px 25px var(--primary-glow);
    transform: translateY(-2px);
}

/* TOPO DO SITE (HERO SECTION) */
section.topo-do-site {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0;
    position: relative;
    overflow: hidden;
    background: transparent;

    /* Máscara que desvanece a seção inteira antes de terminar */
    -webkit-mask-image: linear-gradient(to bottom,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 1) 75%,
        rgba(0, 0, 0, 0) 100%
    );
    mask-image: linear-gradient(to bottom,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 1) 75%,
        rgba(0, 0, 0, 0) 100%
    );
}

/* Máscara extra de rodapé anexada diretamente à seção para apagar linhas secas */
section.topo-do-site::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25vh;
    background: linear-gradient(to bottom, transparent, #0a0a0a);
    z-index: 1;
    pointer-events: none;
}

/* Estilização do vídeo de fundo */
.bg-video-capa {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

/* Efeito Feather Suavizado */
.capa-feather-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
        rgba(10, 10, 10, 0.6) 0%,
        rgba(10, 10, 10, 0.35) 40%,
        rgba(10, 10, 10, 0.7) 100%
    );
    z-index: 1;
}

/* Garante que os textos e a imagem fiquem ACIMA do vídeo e da película */
.topo-do-site .interface {
    position: relative;
    z-index: 2;
    width: 100%;
}

.topo-do-site .flex {
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    width: 100%;
}

.topo-do-site h1 {
    font-size: 74px;
    font-weight: 900;
    line-height: 1.05;
    color: #fff;
    letter-spacing: -2px;
}

.topo-do-site h1 span {
    color: var(--primary-color);
    text-shadow: 0 0 30px var(--primary-glow);
}

.topo-do-site p {
    color: #e0e0e0;
    margin: 25px 0;
    font-size: 18px;
    line-height: 1.6;
    max-width: 550px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.img-topo-site img {
    width: 100%;
    max-width: 480px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    animation: flutuar 2s ease-in-out infinite alternate;
}

/* INDICADOR DE SCROLL */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 26px;
    color: var(--primary-color);
    animation: bounce 2s infinite;
    text-shadow: 0 0 10px var(--primary-glow);
    cursor: pointer;
    z-index: 2;
    display: inline-block;
    line-height: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-12px) translateX(-50%); }
    60% { transform: translateY(-6px) translateX(-50%); }
}

@keyframes flutuar {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
    }
    100% {
        transform: translateY(-15px) scale(1.02) rotate(1deg);
        box-shadow: 0 30px 60px rgba(237, 37, 78, 0.1);
    }
}

/* SEÇÃO DE EXPERIÊNCIAS */
section.especialidades {
    padding: 120px 0;
}

/* ABAS DE FILTRO POR CATEGORIA */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
}

.filter-tab {
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--text-muted);
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-tab:hover {
    color: #fff;
    border-color: rgba(237, 37, 78, 0.4);
}

.filter-tab.active {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-glow);
}

/* GRID DE VÍDEOS (só thumbnails) */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

/* CONTAINER DO VÍDEO (thumbnail) */
.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container.hidden-card {
    display: none;
}

.video-container:hover {
    transform: translateY(-8px);
    border-color: rgba(237, 37, 78, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(237, 37, 78, 0.15);
}

.video-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.5s ease;
}

.video-container:hover img {
    transform: scale(1.05);
    filter: brightness(0.6);
}

/* Botão de Play Customizado */
.play-overlay {
    position: absolute;
    font-size: 60px;
    color: #fff;
    opacity: 0.95;
    transition: all 0.3s ease;
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.45));
    pointer-events: none;
}

.video-container:hover .play-overlay,
.video-container:focus-visible .play-overlay {
    transform: scale(1.2);
    color: var(--primary-color);
}

/* MODAL / LIGHTBOX DO VÍDEO */
body.modal-open {
    overflow: hidden;
}

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.open {
    opacity: 1;
    visibility: visible;
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.video-modal-content {
    position: relative;
    width: 100%;
    max-width: 960px;
    transform: scale(0.92);
    transition: transform 0.3s ease;
}

.video-modal.open .video-modal-content {
    transform: scale(1);
}

.video-modal-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7), 0 0 60px rgba(237, 37, 78, 0.12);
    border: 1px solid var(--border-color);
}

.video-modal-player iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.video-modal-close:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: rotate(90deg);
}

/* SOBRE */
section.sobre {
    padding: 120px 0;
}

section.sobre .flex {
    align-items: center;
    justify-content: center;
    gap: 100px;
}

.sobre .txt-sobre {
    text-align: left;
}

.sobre .txt-sobre h2 {
    text-align: left;
    margin-bottom: 25px;
}

.sobre .txt-sobre p {
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.sobre .img-sobre img {
    width: 100%;
    max-width: 380px;
    border-radius: 50%;
    border: 3px solid var(--border-color);
    box-shadow: 0 0 40px rgba(237, 37, 78, 0.1);
    transition: var(--transition-smooth);
}

.sobre .img-sobre img:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 50px var(--primary-glow);
    transform: scale(1.03);
}

/* RODAPÉ (FOOTER) */
footer.social-footer {
    padding: 80px 0 40px 0;
    background: rgba(8, 8, 8, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.social-icons {
    margin: 35px 0;
}

.social-icons a {
    text-decoration: none;
    display: inline-block;
    margin: 0 12px;
}

.social-icons i {
    color: var(--primary-color);
    font-size: 22px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 30%;
    transition: var(--transition-smooth);
}

.social-icons i:hover {
    color: #fff;
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 10px 20px var(--primary-glow);
}

.social-icons a[href*="discord"] i:hover {
    background: #5865F2;
    border-color: #5865F2;
    box-shadow: 0 10px 20px rgba(88, 101, 242, 0.4);
}

.txt-footer p {
    color: #666;
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* RESPONSIVIDADE */
@media screen and (max-width: 1200px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 992px) {
    .topo-do-site h1 { font-size: 56px; }
    section.sobre .flex { gap: 50px; }
    h2.title, .txt-sobre h2, .titulo-footer h3 { font-size: 42px; }
}

@media screen and (max-width: 768px) {
    header nav.menu-desktop, .btn-contato, .scroll-indicator { display: none; }
    header > .interface { justify-content: center; }

    section.topo-do-site { height: auto; padding: 160px 0 80px 0; }
    .topo-do-site .flex { flex-direction: column-reverse; text-align: center; gap: 40px; width: 100%; }
    .topo-do-site h1 { font-size: 42px; }
    .topo-do-site p { margin: 20px auto; }
    .img-topo-site img { max-width: 320px; }

    .bg-video-capa { display: none; }
    .capa-feather-overlay {
        background: linear-gradient(to bottom, rgba(10, 10, 10, 0.8), #0a0a0a);
    }

    .filter-tabs {
        gap: 8px;
        margin-bottom: 35px;
    }

    .filter-tab {
        padding: 8px 16px;
        font-size: 13px;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .video-modal-close {
        top: -46px;
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    section.sobre .flex { flex-direction: column-reverse; text-align: center; gap: 40px; }
    .sobre .txt-sobre h2 { text-align: center; }
    .sobre .img-sobre img { max-width: 280px; }
}

/* Estado inicial do Fade In */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

/* Estado final do Fade In */
.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}


/* =====================================================================
   ESTÉTICA GLITCH / TINTA (vermelho sobre preto)
   Tudo daqui pra baixo é só "efeito": se quiser tirar, apague este bloco
   e os elementos .fx-* e <svg> de filtros no HTML.
   ===================================================================== */
:root {
    --hot: #ff1a3c;   /* vermelho mais "aceso" pros glitches (pode trocar por #ff1a1a) */
    --deep: #6b0016;  /* vermelho escuro pras sombras */
}

main,
footer.social-footer {
    position: relative;
    z-index: 2;
}

/* ---------- Camadas globais: grão, scanlines e vinheta ---------- */
.fx-noise {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: 9000;
    pointer-events: none;
    opacity: 0.1;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    animation: grain 0.8s steps(6) infinite;
}

@keyframes grain {
    0%   { transform: translate(0, 0); }
    20%  { transform: translate(-3%, 2%); }
    40%  { transform: translate(2%, -3%); }
    60%  { transform: translate(-2%, -1%); }
    80%  { transform: translate(3%, 3%); }
    100% { transform: translate(0, 0); }
}

.fx-scan {
    position: fixed;
    inset: 0;
    z-index: 9001;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px);
}

.fx-vignette {
    position: fixed;
    inset: 0;
    z-index: 9002;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.7) 100%);
}

/* ---------- Fundo estilo grafite (estilhaços, meio-tom, pinceladas, brilhos) ---------- */
.fx-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.fx-bg > * {
    position: absolute;
    display: block;
}

/* estilhaços angulares */
.shard { background: #1b1b1b; }
.shard.g1 { top: 4%;  left: -8%;  width: 55vw; height: 38vw; background: #2a2a2a; clip-path: polygon(0 40%, 62% 0, 100% 34%, 70% 58%, 88% 100%, 20% 76%); }
.shard.g2 { top: 22%; right: -10%; width: 60vw; height: 30vw; background: #303030; clip-path: polygon(10% 0, 100% 22%, 78% 100%, 36% 64%, 0 88%); }
.shard.g3 { top: 40%; left: -6%;  width: 50vw; height: 34vw; background: #282828; clip-path: polygon(0 20%, 48% 0, 100% 46%, 56% 100%, 14% 70%); }
.shard.g4 { top: 62%; right: -8%; width: 58vw; height: 32vw; background: #2e2e2e; clip-path: polygon(0 52%, 40% 0, 100% 30%, 74% 100%, 30% 82%); }
.shard.g5 { top: 82%; left: 4%;   width: 62vw; height: 30vw; background: #2b2b2b; clip-path: polygon(8% 30%, 70% 0, 100% 56%, 46% 100%, 0 80%); }

.shard.r1 { top: 9%;  right: -4%; width: 42vw; height: 9vw;  background: linear-gradient(90deg, var(--deep), var(--primary-color)); opacity: 0.8; clip-path: polygon(0 100%, 78% 0, 100% 30%, 22% 100%); }
.shard.r2 { top: 30%; left: -3%;  width: 36vw; height: 7vw;  background: linear-gradient(90deg, var(--primary-color), var(--hot)); opacity: 0.7; clip-path: polygon(0 20%, 100% 0, 84% 100%, 12% 80%); }
.shard.r3 { top: 49%; right: 2%;  width: 30vw; height: 12vw; background: var(--primary-color); opacity: 0.6; clip-path: polygon(30% 0, 100% 40%, 62% 100%, 0 62%); }
.shard.r4 { top: 68%; left: 0;    width: 44vw; height: 8vw;  background: linear-gradient(90deg, var(--hot), var(--deep)); opacity: 0.7; clip-path: polygon(0 60%, 70% 0, 100% 44%, 20% 100%); }
.shard.r5 { top: 88%; right: 0;   width: 38vw; height: 11vw; background: var(--primary-color); opacity: 0.6;  clip-path: polygon(0 30%, 80% 0, 100% 70%, 28% 100%); animation: shardFlick 9s steps(1) infinite; }

@keyframes shardFlick {
    0%, 100% { opacity: 0.4; }
    55%      { opacity: 0.4; }
    56%      { opacity: 0.12; }
    58%      { opacity: 0.55; }
}

/* meio-tom (pontinhos de revista) */
.halftone {
    background: radial-gradient(circle, var(--primary-color) 1.6px, transparent 2.2px) 0 0 / 11px 11px;
    opacity: 0.7;
}
.halftone.h1 { top: 14%; left: 2%;   width: 38vw; height: 22vw; transform: rotate(-18deg); -webkit-mask-image: linear-gradient(120deg, #000 0%, transparent 75%); mask-image: linear-gradient(120deg, #000 0%, transparent 75%); }
.halftone.h2 { top: 54%; right: 0;   width: 40vw; height: 24vw; transform: rotate(14deg);  -webkit-mask-image: linear-gradient(240deg, #000 0%, transparent 75%); mask-image: linear-gradient(240deg, #000 0%, transparent 75%); }
.halftone.h3 { top: 78%; left: 0;    width: 34vw; height: 20vw; transform: rotate(-10deg); -webkit-mask-image: linear-gradient(100deg, #000 0%, transparent 70%); mask-image: linear-gradient(100deg, #000 0%, transparent 70%); }

/* pinceladas de tinta */
.brush {
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(90deg, transparent 0%, #000 15%, #000 80%, transparent 100%);
    box-shadow: 0 0 0 1px rgba(237, 37, 78, 0.18);
    filter: url(#splat);
    opacity: 0.9;
}
.brush.b1 { top: 17%; left: -5%;  width: 55vw; transform: rotate(-16deg); }
.brush.b2 { top: 58%; right: -6%; width: 50vw; transform: rotate(12deg); background: linear-gradient(90deg, transparent 0%, var(--deep) 20%, var(--primary-color) 70%, transparent 100%); opacity: 0.5; }
.brush.b3 { top: 92%; left: 10%;  width: 45vw; transform: rotate(-8deg); }

/* retângulos de mangá (só contorno) */
.manga {
    border: 3px solid var(--primary-color);
    opacity: 0.55;
}
.manga.m1 { top: 11%; left: 8%;   width: 7vw;  height: 2.2vw; transform: rotate(-24deg) skewX(-18deg); }
.manga.m2 { top: 45%; right: 9%;  width: 9vw;  height: 2.6vw; transform: rotate(32deg)  skewX(-14deg); }
.manga.m3 { top: 74%; left: 12%;  width: 6vw;  height: 2vw;   transform: rotate(-38deg) skewX(-16deg); }

/* brilhos de 4 pontas */
.sparkle {
    width: clamp(36px, 5vw, 80px);
    height: clamp(36px, 5vw, 80px);
    fill: #fff;
    opacity: 0.7;
    animation: twinkle 3.2s ease-in-out infinite;
}
.sparkle svg { width: 100%; height: 100%; display: block; }
.sparkle.k1 { top: 8%;  left: 46%;  animation-delay: 0s; }
.sparkle.k2 { top: 31%; right: 8%;  fill: var(--primary-color); animation-delay: 0.8s; }
.sparkle.k3 { top: 52%; left: 7%;   animation-delay: 1.6s; }
.sparkle.k4 { top: 71%; right: 14%; fill: var(--primary-color); animation-delay: 2.2s; }
.sparkle.k5 { top: 90%; left: 40%;  animation-delay: 1.1s; }

@keyframes twinkle {
    0%, 100% { scale: 0.7; opacity: 0.25; }
    50%      { scale: 1.1; opacity: 0.85; }
}

/* ---------- Riscos de "tinta/pincel" na capa ---------- */
.fx-slash {
    position: absolute;
    z-index: 1;
    height: 26px;
    border-radius: 50%;
    pointer-events: none;
    background: linear-gradient(90deg, transparent 0%, var(--primary-color) 18%, var(--hot) 50%, var(--deep) 82%, transparent 100%);
    filter: url(#splat) blur(0.6px);
    transform-origin: left center;
    opacity: 0.92;
    animation: slashIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) both, slashFlick 7s steps(1) infinite 1.5s;
}

.fx-slash.s1 { top: 22%; left: -10%; width: 70%; transform: rotate(-24deg); }
.fx-slash.s2 { top: 62%; right: -15%; width: 65%; transform: rotate(18deg); animation-delay: 0.25s, 2s; }
.fx-slash.s3 { top: 40%; left: 20%; width: 45%; height: 14px; transform: rotate(-52deg); animation-delay: 0.5s, 3s; }

@keyframes slashIn {
    from { clip-path: inset(0 100% 0 0); opacity: 0; }
    to   { clip-path: inset(0 0 0 0); opacity: 0.92; }
}

@keyframes slashFlick {
    0%, 100% { opacity: 0.92; }
    60%      { opacity: 0.92; }
    61%      { opacity: 0.2; }
    63%      { opacity: 0.9; }
}

/* ---------- Título com glitch (RGB split em rajadas) ---------- */
.glitch {
    position: relative;
    text-transform: uppercase;
    text-shadow: 0 0 30px var(--primary-glow);
    animation: jolt 6s steps(1) infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    pointer-events: none;
    clip-path: inset(0 0 100% 0);
}

.glitch::before {
    color: var(--hot);
    transform: translate(-4px, 0);
    mix-blend-mode: screen;
    animation: gl1 3.4s steps(1) infinite;
}

.glitch::after {
    color: var(--deep);
    transform: translate(4px, 0);
    animation: gl2 2.9s steps(1) infinite;
}

@keyframes gl1 {
    0%, 100% { clip-path: inset(0 0 100% 0); }
    8%       { clip-path: inset(12% 0 68% 0); }
    10%      { clip-path: inset(46% 0 30% 0); }
    12%      { clip-path: inset(0 0 100% 0); }
    58%      { clip-path: inset(70% 0 8% 0); }
    60%      { clip-path: inset(30% 0 52% 0); }
    62%      { clip-path: inset(0 0 100% 0); }
}

@keyframes gl2 {
    0%, 100% { clip-path: inset(0 0 100% 0); }
    22%      { clip-path: inset(60% 0 14% 0); }
    24%      { clip-path: inset(8% 0 76% 0); }
    26%      { clip-path: inset(0 0 100% 0); }
    75%      { clip-path: inset(38% 0 40% 0); }
    77%      { clip-path: inset(0 0 100% 0); }
}

@keyframes jolt {
    0%, 92%, 100% { transform: none; }
    93%           { transform: translate(-3px, 1px) skewX(-4deg); }
    95%           { transform: translate(3px, -1px) skewX(3deg); }
    97%           { transform: translate(-1px, 0); }
}

/* ---------- Títulos de seção com borda "rasgada" ---------- */
h2.title span,
.txt-sobre h2 span,
.titulo-footer h3 span {
    display: inline-block;
}

h2.title,
.txt-sobre h2,
.titulo-footer h3 {
    text-transform: uppercase;
}

/* ---------- Abas mais agressivas ---------- */
.filter-tab {
    border-radius: 6px;
    text-transform: none;
    letter-spacing: 0.3px;
    transform: none;
}

/* ---------- Mobile e acessibilidade ---------- */
@media screen and (max-width: 768px) {
    .halftone.h3, .manga.m3, .sparkle.k5 { display: none; }
    .fx-noise { opacity: 0.07; }
    .fx-slash { height: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .fx-noise,
    .shard,
    .sparkle,
    .fx-slash,
    .glitch,
    .glitch::before,
    .glitch::after {
        animation: none !important;
    }
    .glitch::before,
    .glitch::after { display: none; }
}

/* o fundo grafite rola junto com a página */
body { position: relative; }

/* ---------- Botão "View all videos" ---------- */
.view-all-wrap {
    display: flex;
    justify-content: center;
    margin-top: 55px;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 34px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #fff;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.view-all-btn[hidden] {
    display: none;
}

.view-all-btn i {
    transition: transform 0.4s ease;
}

.view-all-btn[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.view-all-btn:hover {
    background: var(--primary-color);
    box-shadow: 0 0 25px var(--primary-glow);
    transform: translateY(-2px);
}

/* ---------- Shorts (vídeos verticais) ---------- */
.video-grid.shorts-mode {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.video-container.vertical {
    aspect-ratio: 9 / 16;
    width: 260px;
    max-width: 100%;
}

.video-modal-content.vertical {
    max-width: min(405px, 90vw);
}

.video-modal-content.vertical .video-modal-player {
    aspect-ratio: 9 / 16;
    max-height: 85vh;
}

@media screen and (max-width: 768px) {
    .video-grid.shorts-mode { gap: 22px; }
    .video-container.vertical { width: 220px; }
}

/* ---------- Troca de aba sem "pulos" ---------- */
.video-grid {
    transition: opacity 0.18s ease;
}

.video-grid.swapping {
    opacity: 0;
    pointer-events: none;
}

.video-grid.swapping .video-container {
    transition: none;
}

/* evita que o navegador reposicione a rolagem sozinho ao expandir/recolher */
.video-grid, .view-all-wrap { overflow-anchor: none; }