    :root {
        --bg: #f5f5f5;
        --primary: #e53935;
        --primary-dark: #b71c1c;
        --accent: #f7c948;
        --text: #222;
        --muted: #666;
        --radius-lg: 18px;
        --radius-lgr: 14px;
        --radius-sm: 9px;
        --shadow-soft: 0 14px 35px rgba(0, 0, 0, 0.15);
    }

    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    body {
        margin: 0;
        font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        background: var(--bg);
        color: var(--text);
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }



    .page {
        padding-top: 56px;
        /* espaço da navbar */
        display: flex;
        justify-content: center;
        min-height: 935px;
    }


    .std-textarea {
        width: 100%;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 8px;
        resize: vertical;
    }

    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 14px 26px;
        border-radius: 999px;
        border: none;
        font-weight: 700;
        font-size: 15px;
        text-decoration: none;
        cursor: pointer;
        box-shadow: var(--shadow-soft);
        transition: transform 0.08s ease-out, box-shadow 0.08s ease-out, filter 0.08s;
    }

    .btn-primary {
        background: linear-gradient(to bottom, #ffd54f, #f9a825);
        color: #4e2a00;
    }

    .btn-primary:hover {
        transform: translateY(-1px);
        filter: brightness(1.03);
    }

    .hidden-element {
        display: none !important;
    }

    /* Cards */
    .card {
        background: #fff;
        border-radius: 10px;
        padding: 14px;

        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-soft);
    }

    /* Vídeo responsivo (16:9) */
    .video-wrap {
        width: 100%;
        aspect-ratio: 16 / 9;
        background: #000;
        border-radius: 10px;
        overflow: hidden;
    }

    .video-wrap iframe,
    .video-wrap video {
        width: 100%;
        height: 100%;
        border: 0;
        display: block;
    }

    .title {
        margin-top: 12px;
        font-size: 20px;
        font-weight: 700;
    }

    .meta {
        margin-top: 6px;
        color: #666;
        font-size: 13px;
    }

    .section-title {
        font-weight: 700;
        margin-bottom: 10px;
    }

    .section-subtitle {
        margin-top: 0px;
        font-size: 13px;
        font-weight: 300px;
    }

    .p {
        color: #333;
        line-height: 1.45;
    }

    /* Comentários */
    .comment {
        border-top: 1px solid #eee;
        padding-top: 12px;
        margin-top: 12px;
    }

    .comment .name {
        font-weight: 700;
        font-size: 14px;
    }

    .comment .text {
        margin-top: 4px;
        color: #333;
    }

    /* Relacionados */
    .rel-item {
        display: flex;
        gap: 10px;
        padding: 10px;
        border-radius: 10px;
    }

    .rel-item:hover {
        background: #f2f2f2;
    }

    .thumb {
        width: 140px;
        aspect-ratio: 16 / 9;
        background: #000;
        border-radius: 8px;
        flex: 0 0 auto;
    }

    .rel-info {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .rel-title {
        font-weight: 700;
        font-size: 14px;
    }

    .rel-meta {
        color: #666;
        font-size: 12px;
    }

    /* Mobile: vira uma coluna */
    @media (max-width: 900px) {
        .container {
            grid-template-columns: 1fr;
        }

        .thumb {
            width: 160px;
        }
    }

    .top-bar {
        background: linear-gradient(90deg, #f44336, #d32f2f);
        padding: 2px 10px;
        min-height: 34px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .nav-container {
        width: 100%;
        max-width: 1200px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 10px;
    }

    .nav-left {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .logo img {
        height: 24px;
        display: block;
    }

    .menu {
        display: flex;
        gap: 16px;
    }

    .menu a,
    .nav-right a {
        color: #fff;
        text-decoration: none;
        font-size: 13px;
        line-height: 1;
        font-weight: 500;
    }

    .menu a:hover,
    .nav-right a:hover {
        text-decoration: underline;
    }

    #main-container {
        min-height: 589px;
        display: flex;
        justify-content: center;
        align-items: center;

    }

    /* Container central */
    .container {
        width: 100%;
        max-width: 1200px;
        padding: 16px;
        display: grid;
        grid-template-columns: 4fr 1fr;
        /* main + sidebar */
        gap: 16px;
        align-items: start;
    }

    .container.std {
        grid-template-columns: 3fr 1fr !important;
    }

    #footer {
        background: linear-gradient(180deg, #2d3238, #1f2328);
        color: #e9eef3 !important;
        border-top: 1px solid rgba(255, 255, 255, .12);
        padding: 22px 16px;
        margin-top: 18px;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        /* alinha à borda esquerda da viewport */
        width: 100%;
        /* ocupa toda a viewport */
        box-sizing: border-box;
    }

    #footer strong {
        color: #e9eef3 !important;
    }


    #footer .footer-inner {
        max-width: 1000px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
    }

    #footer .footer-nav a {
        color: #e9eef3 !important;
        opacity: .85;
        text-decoration: none;
        margin-left: 16px;
    }

    #footer .footer-nav a:hover {
        opacity: 1;
        text-decoration: underline;
    }

    #footer .footer-legal {
        max-width: 1000px;
        margin: 14px auto 0;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, .12);
        text-align: center;
        font: 400 .9rem/1.5 system-ui, Arial, sans-serif;
        opacity: .85;
    }

    #footer .footer-legal span {

        color: #e9eef3 !important;
    }

    #footer .footer-legal-info {
        max-width: 1000px;
        margin: 14px auto 0;
        padding-top: 12px;
        text-align: center;
        font: 400 .9rem/1.5 system-ui, Arial, sans-serif;
        opacity: .85;
    }

    #footer .footer-legal-info span {
        color: #e9eef3 !important;
    }

    .badge {
        border: 1px solid rgb(84, 85, 84);
        background: #f3fff3;
        color: #434643;
        padding: 12px;
        border-radius: 10px;

        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 10px;
    }

    .badge img {
        width: 60px;
        height: auto;
        flex: 0 0 auto;
    }

    .badge .badge-text {
        flex: 1;
        /* ocupa o restante */
        min-width: 0;
        /* evita quebra “estranha” em flex */
        text-align: left;
    }

    .badge .badge-text strong {
        white-space: nowrap;
        /* mantém as palavras juntas */
    }

    .badge strong {
        white-space: nowrap;
        display: inline-block;
    }

    .badge.diamond {
        border-color: #000000;
        background: #cacaca;
        color: #313131;
    }

    .badge.diamond strong {
        color: #000000;
    }

    /* GOLD */
    .badge.gold {
        border-color: #b8860b;
        background: #fff3b0;
        color: #3a2a00;
    }

    .badge.gold strong {
        color: #b8860b;
    }

    /* STAR (azul claro / azul escuro) */
    .badge.star {
        border-color: #0b4f8a;
        background: #d8ecff;
        color: #062a4a;
    }

    .badge.star strong {
        color: #0b4f8a;
    }

    /* DANGER (vermelho sangue) */
    .badge.danger {
        border-color: #7a0000;
        background: #ffd6d6;
        color: #3b0000;
    }

    .badge.danger strong {
        color: #7a0000;
    }

    /* TARGET (vermelho sangue) */
    .badge.target {
        border-color: #b90101;
        background: #f8f8f8;
        color: #3b0000;
    }

    .badge.target strong {
        color: #b90101;
    }

    .seq-card {
        border-radius: 16px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 10px 25px rgba(0, 0, 0, .10);
    }

    /* Topbar com título branco */
    .seq-topbar {
        height: 46px;
        background: linear-gradient(90deg, #f44336, #d32f2f);
        display: flex;
        align-items: center;
        padding: 0 14px;
    }

    .seq-topbar-title {
        color: #fff;
        font-weight: 700;
        font-size: 16px;
    }

    /* Corpo */
    .seq-body {
        padding: 14px;
    }

    .seq-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .seq-item {
        display: block;
        text-decoration: none;
        color: inherit;
    }

    /* Thumb grande */
    .seq-thumb {
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 9;
        border-radius: 12px;
        overflow: hidden;
        background: #000;
    }

    /* Imagem */
    .seq-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* Número no topo esquerdo */
    .seq-number {
        position: absolute;
        top: 10px;
        left: 10px;
        padding: 6px 10px;
        border-radius: 10px;
        font-weight: 700;
        font-size: 14px;
        background: rgba(0, 0, 0, .65);
        color: #fff;
    }

    /* Label embaixo por cima da imagem */
    .seq-label {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 10px 12px;
        font-size: 13px;
        color: #fff;
        background: rgba(0, 0, 0, .55);
    }

    /* Destaque do vídeo atual */
    .seq-item.active .seq-thumb {
        outline: 3px solid #f44336;
        box-shadow: 0 10px 25px rgba(244, 67, 54, .35);
    }

    .seq-item.proximo .seq-number {
        background: #f9a825;
    }

    .seq-item.active .seq-number {
        background: rgba(244, 67, 54, .95);
    }

    /* Hover */
    .seq-item:hover .seq-thumb {
        transform: translateY(-1px);
        transition: .15s;
    }

    .seq-thumb.indisponivel .seq-img {
        filter: grayscale(100%) brightness(0.85);
    }

    .seq-thumb.indisponivel::after {
        /* content: "INDISPONÍVEL"; */
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 14px;
        color: #fff;
        background: rgba(0, 0, 0, .45);
        letter-spacing: 1px;
    }

    .video-title-row {
        margin-top: 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }

    .video-title-row .title {
        margin-top: 0;
    }

    .video-title-row .meta {
        margin-top: 6px;
    }

    .video-actions {
        margin-top: 0;
        display: flex;
        gap: 10px;
    }

    .video-actions button {
        width: 44px;
        height: 44px;
        border-radius: 5px;
        border: 1px solid #ddd;
        background: #fff;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .video-actions button:hover {
        box-shadow: var(--shadow-soft);
    }

    .video-actions .icon {
        width: 22px;
        height: 22px;
        fill: #111;
    }

    .video-actions button.active {
        border-color: #111;
        background: #111;
    }

    .video-actions button.active .icon {
        fill: #fff;
    }

    .dislike-btn .icon {
        transform: scale(-1, -1);
        fill: #c20000;
    }

    .like-btn .icon {
        fill: #004488;
    }

    /* ===== MODAL AUTH ===== */
    .modal-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .55);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px;
        z-index: 9999;
    }

    .modal-card {
        width: 100%;
        max-width: 460px;
        background: #fff;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-soft);
        padding: 18px 18px 16px;
        position: relative;
    }

    .modal-close {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        border-radius: 10px;
        border: 1px solid #ddd;
        background: #fff;
        cursor: pointer;
        font-size: 22px;
        line-height: 1;
    }

    .modal-title {
        font-weight: 800;
        font-size: 18px;
        margin: 4px 0 6px;
    }

    .modal-sub {
        color: var(--muted);
        font-size: 14px;
        line-height: 1.4;
        margin: 0 0 14px;
    }

    .modal-actions {
        display: flex;
        gap: 10px;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    /* botão secundário */
    .btn-secondary {
        background: #f3f3f3;
        color: #111;
        box-shadow: var(--shadow-soft);
    }

    .btn-secondary:hover {
        transform: translateY(-1px);
        filter: brightness(1.02);
    }

    /* trava scroll do body quando modal abre */
    body.modal-open {
        overflow: hidden;
    }

    @media (max-width: 420px) {
        .modal-actions {
            justify-content: stretch;
        }

        .modal-actions .btn {
            width: 100%;
        }
    }

    .modal-aviso-card {
        text-align: center;
        max-width: 420px;
    }

    #modalAvisoTexto {
        font-size: 15px;
        margin: 8px 0 18px;
    }

    #modalAviso .modal-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}