/* ======= FUNDO VISUAL ======= */
body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background: radial-gradient(circle at center, #1893d6 0%, #1463ad 100%);
    overflow-x: hidden;
    position: relative;
    color: #fff;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: conic-gradient(
            from 0deg,
            #22a7f2 0deg 10deg,
            transparent 10deg 20deg,
            #22a7f2 20deg 30deg,
            transparent 30deg 40deg,
            #22a7f2 40deg 50deg,
            transparent 50deg 60deg,
            #22a7f2 60deg 70deg,
            transparent 70deg 80deg,
            #22a7f2 80deg 90deg,
            transparent 90deg 100deg,
            #22a7f2 100deg 110deg,
            transparent 110deg 120deg,
            #22a7f2 120deg 130deg,
            transparent 130deg 140deg,
            #22a7f2 140deg 150deg,
            transparent 150deg 160deg,
            #22a7f2 160deg 170deg,
            transparent 170deg 180deg,
            #22a7f2 180deg 190deg,
            transparent 190deg 200deg,
            #22a7f2 200deg 210deg,
            transparent 210deg 220deg,
            #22a7f2 220deg 230deg,
            transparent 230deg 240deg,
            #22a7f2 240deg 250deg,
            transparent 250deg 260deg,
            #22a7f2 260deg 270deg,
            transparent 270deg 280deg,
            #22a7f2 280deg 290deg,
            transparent 290deg 300deg,
            #22a7f2 300deg 310deg,
            transparent 310deg 320deg,
            #22a7f2 320deg 330deg,
            transparent 330deg 340deg,
            #22a7f2 340deg 350deg,
            transparent 350deg 360deg
    );
    opacity: 0.4;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.10) 2px, transparent 5px) 10% 20%,
    radial-gradient(circle, rgba(0, 0, 0, 0.15) 3px, transparent 8px) 40% 60%,
    radial-gradient(circle, rgba(0, 0, 0, 0.12) 1.5px, transparent 4px) 60% 30%,
    radial-gradient(circle, rgba(0, 0, 0, 0.10) 2.5px, transparent 5px) 80% 80%,
    radial-gradient(circle, rgba(0, 0, 0, 0.08) 2px, transparent 6px) 70% 50%,
    radial-gradient(circle, rgba(0, 0, 0, 0.14) 2px, transparent 5px) 30% 75%,
    radial-gradient(circle, rgba(0, 0, 0, 0.12) 2.5px, transparent 8px) 90% 15%;
    background-repeat: no-repeat;
}

/* ======= CONTAINER ======= */
.container {
    position: relative;
    z-index: 2;
    padding: 2rem;
    text-align: center;
}

@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }
}

/* ======= LOGO ======= */
.logo {
    width: 100px;
    margin-bottom: 1rem;
}

/* ==== LOGO CONTAINER ==== */
.logo-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    gap: 10px;
}

/* === BADGE DE INSCRITOS === */
.subscribers-badge {
    background: #156b9d;
    color: white;
    font-size: 13px;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    margin-top: -30px;
    transition: transform 0.3s;
}

.subscribers-badge:hover {
    transform: scale(1.05);
    cursor: default;
}

/* ===== BOTÃO INSCREVER ===== */
.botao-inscrever {
    display: inline-block;
    margin-top: 6px;
    padding: 10px 18px;
    background-color: #cc0000;
    color: #fff;
    font-weight: bold;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.botao-inscrever:hover {
    background-color: #e60000;
}

/* ======= BUSCA ======= */
.busca {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.busca input {
    padding: 0.6rem;
    font-size: 1rem;
    width: 300px;
    border-radius: 8px 0 0 8px;
    border: none;
}

.busca button {
    padding: 0.6rem 1rem;
    border: none;
    background-color: #1463ad;
    color: white;
    font-size: 1rem;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.busca button:hover {
    background-color: #0c4a7e;
}

/* ===== REDES SOCIAIS ==== */
.top-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 12px 0;
    background-color: rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
}

.top-social a img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease, opacity 0.3s;
}

.top-social a:hover img {
    transform: scale(1.2);
    opacity: 0.8;
}

/* ======= GRID ======= */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

/* ======= CARD DE VÍDEO ======= */
.video-card {
    width: 280px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: 16px;
    padding-bottom: 12px;
    border: 2px solid transparent;
    position: relative;
    text-decoration: none !important;
    transform: scale(1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.video-card:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    border-color: #22a7f2;
    cursor: pointer;
}

.video-card img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid #eee;
}

.video-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: #0d2c40;
    text-align: center;
    margin: 14px 10px 6px;
    padding: 0;
    line-height: 1.3;
    text-decoration: none;
}

.video-card h3 a {
    text-decoration: none;
    color: inherit;
}

.video-card h3 a:hover {
    color: #0077cc;
}

.video-card p {
    font-size: 14px;
    color: #555;
    text-align: center;
    padding: 0 14px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.video-stats {
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: #555;
}

@media (max-width: 768px) {
    .video-card {
        width: 90%;
    }
}

/* ======= PAGINAÇÃO ======= */
.paginacao {
    text-align: center;
    margin-top: 20px;
}

.paginacao button {
    background: #fff;
    border: 1px solid #22a7f2;
    color: #1463ad;
    font-weight: bold;
    margin: 0 4px;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.paginacao button:hover {
    background-color: #22a7f2;
    color: #fff;
}

.paginacao button.ativo {
    background-color: #1463ad;
    color: #fff;
    border-color: #0d4c85;
}

/* ======= MODAL ======= */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

.modal-content .close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    background: transparent;
    color: #fff;
    border: none;
    cursor: pointer;
    z-index: 10;
}


/* ======= LOADING ======= */
.loading p {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ==== NEWSLETTER ==== */
.newsletter {
    margin-top: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #fff;
    text-align: center;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.newsletter h2 {
    margin-bottom: 12px;
    font-size: 1.4rem;
}

#newsletterForm {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

#newsletterForm input[type="email"] {
    padding: 10px;
    font-size: 1rem;
    border-radius: 8px;
    border: none;
    flex: 1 1 250px;
    max-width: 300px;
}

#newsletterForm button {
    padding: 10px 18px;
    background-color: #1463ad;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#newsletterForm button:hover {
    background-color: #0c4a7e;
}

.site-footer {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    text-align: center;
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-size: 0.95rem;
    margin-top: 40px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.footer-container a {
    color: #ffffff;
    text-decoration: underline;
    margin: 0 8px;
    transition: color 0.3s;
}

.footer-container a:hover {
    color: #22a7f2;
    text-decoration: none;
}

.footer-container small {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
}

.footer-social {
    margin-top: 20px;
}
.footer-social a{
    text-decoration: none;
}

.top-social {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.top-social.loaded {
    opacity: 1;
}