/* =======================================================
   RESET E BASE
   ======================================================= */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

* {
    box-sizing: border-box;
}

:root {
    --bg-color: #141414;
    --card-bg: #1f1f1f;
    --primary: #e50914;
    --text: #ffffff;
    --star-color: #f1c40f;
    --calendar-color: #3498db;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text);
    font-family: 'Roboto', sans-serif;
}

a {
    color: white;
    text-decoration: none;
}

/* =======================================================
   HEADER (GLOBAL)
   ======================================================= */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(0,0,0,0.95);
    position: sticky;
    top: 0;
    z-index: 10000;
    transition: transform 0.3s ease;
    flex-wrap: wrap;
    gap: 15px;
}

.left-area {
    display: flex;
    align-items: center;
}

.logo {
    font-weight: bold;
    font-size: 24px;
    color: #fff;
}

.logo span {
    color: var(--primary);
}

nav {
    margin-left: 30px;
    display: flex;
    gap: 20px;
}

nav a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

nav a:hover {
    color: #fff;
}

/* =======================================================
   SEARCH FORM
   ======================================================= */
.search-form {
    display: flex;
    align-items: center;
    background-color: #333;
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid #444;
}

.search-form input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 5px;
    outline: none;
    width: 200px;
    font-size: 14px;
    margin: 0;
}

.search-form button {
    background: transparent;
    border: none;
    color: #aaa;
    cursor: pointer;
    padding: 5px;
    width: auto;
    transition: color 0.3s;
}

.search-form button:hover {
    color: var(--primary);
}

/* =======================================================
   CONTAINER PRINCIPAL
   ======================================================= */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    width: 100%;
}

/* =======================================================
   CATEGORY BAR - DESKTOP (barra horizontal)
   ======================================================= */
.category-bar-desktop {
    padding: 15px 40px;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    white-space: nowrap;
    overflow-x: auto;
}

.category-bar-desktop::-webkit-scrollbar {
    height: 4px;
}

.category-bar-desktop::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

.cat-link {
    color: #ccc;
    text-decoration: none;
    padding: 6px 15px;
    border: 1px solid #444;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.2s;
    white-space: nowrap;
}

.cat-link:hover {
    border-color: var(--primary);
    color: white;
}

.cat-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}


/* =======================================================
   CATEGORY DROPDOWN MOBILE - CUSTOMIZADO
   ======================================================= */
.category-dropdown-mobile {
    display: none;
    position: relative;
    padding: 15px;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
}

.dropdown-toggle {
    width: 100%;
    padding: 14px 18px;
    background: #252525;
    color: #fff;
    border: 1px solid #444;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.dropdown-toggle:hover,
.dropdown-toggle:focus {
    border-color: var(--primary);
    background: #2a2a2a;
    outline: none;
}

.dropdown-toggle i:first-child {
    color: var(--primary);
    font-size: 16px;
}

.dropdown-label {
    flex: 1;
    text-align: left;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    font-size: 12px;
    color: #888;
}

.dropdown-toggle.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Menu Dropdown */
.dropdown-menu {
    position: absolute;
    top: calc(100% - 5px);
    left: 15px;
    right: 15px;
    background: #1f1f1f;
    border: 1px solid #444;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown-menu.show {
    max-height: 400px;
    overflow-y: auto;
    opacity: 1;
    margin-top: 10px;
}

.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    color: #ccc;
    text-decoration: none;
    border-bottom: 1px solid #333;
    transition: all 0.2s ease;
    font-size: 15px;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: #2a2a2a;
    color: #fff;
    padding-left: 22px;
}

.dropdown-item.active {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}

.dropdown-item i {
    font-size: 14px;
    width: 20px;
    text-align: center;
}

/* Responsivo: mostra dropdown apenas no mobile */
@media (max-width: 768px) {
    .category-bar-desktop {
        display: none;
    }
    
    .category-dropdown-mobile {
        display: block;
    }
}


/* =======================================================
   GRID DE FILMES/SÉRIES - PADRONIZADO (6 CARDS)
   ======================================================= */
/* =======================================================
   CONTAINER PRINCIPAL - LARGURA CONTROLADA
   ======================================================= */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    /* 🔥 REMOVIDO: width: 100% (isso estava causando o problema) */
}

/* =======================================================
   GRID DE FILMES/SÉRIES - 6 CARDS FIXOS
   ======================================================= */
.movie-grid, .grid-filmes, .grid-series {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-top: 20px;
    max-width: 1160px; /* 🔥 1200px - 40px de padding */
    margin-left: auto;
    margin-right: auto;
}

/* Card - ocupa 100% da coluna */
.movie-card, .card-filme, .card-serie {
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    display: block;
    width: 100%;
}

.movie-card:hover, .card-filme:hover, .card-serie:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

/* Imagem com proporção fixa 2:3 */
.movie-card img,
.card-filme img,
.card-serie img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
}

/* Card info */
.card-info {
    padding: 10px;
    text-align: center;
}

.card-info h3 {
    margin: 0;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

/* Badges */
.movie-rating, .imdb-badge, .ano-badge {
    position: absolute;
    background: rgba(0,0,0,0.85);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 4px;
}

.movie-rating {
    top: 8px;
    right: 8px; /* Canto Superior Direito */
    color: #f1c40f;
}

.imdb-badge {
    bottom: 40px;
    right: 8px; /* Canto Superior Direito */
    color: #f1c40f;
}

.ano-badge {
    bottom: 40px;
    left: 8px; /* Canto Superior Esquerdo (CORRIGIDO) */
    color: #fff;
}

/* Poster com overlay */
.poster {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.poster img {
    display: block;
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
}

.info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 12px;
    box-sizing: border-box;
    color: #fff;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.95) 0%,
        rgba(0,0,0,0.7) 50%,
        rgba(0,0,0,0.5) 70%,
        transparent 100%
    );
}

.info h3 {
    margin: 0;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 5px;
}

.info span {
    font-size: 12px;
    opacity: 0.85;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.poster:hover .overlay {
    opacity: 1;
}

.overlay i {
    font-size: 40px;
    color: #fff;
}

/* =======================================================
   RESPONSIVIDADE
   ======================================================= */
@media (max-width: 1400px) {
    .movie-grid, .grid-filmes, .grid-series {
        grid-template-columns: repeat(5, 1fr);
        max-width: 960px; /* 5 cards */
    }
}

@media (max-width: 1200px) {
    .movie-grid, .grid-filmes, .grid-series {
        grid-template-columns: repeat(4, 1fr);
        max-width: 760px; /* 4 cards */
    }
}

@media (max-width: 992px) {
    .movie-grid, .grid-filmes, .grid-series {
        grid-template-columns: repeat(3, 1fr);
        max-width: 560px; /* 3 cards */
    }
}

@media (max-width: 768px) {
    .movie-grid, .grid-filmes, .grid-series {
        grid-template-columns: repeat(2, 1fr);
        max-width: 360px; /* 2 cards */
        gap: 12px;
    }
    
    .card-info h3, .info h3 {
        font-size: 13px;
    }
}


/* =======================================================
   PAGINAÇÃO
   ======================================================= */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.page-btn {
    padding: 8px 14px;
    background: #222;
    color: #fff;
    border: 1px solid #444;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.page-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: bold;
    cursor: default;
}

.page-btn.disabled {
    background: #111;
    color: #555;
    cursor: not-allowed;
    border-color: #333;
    pointer-events: none;
}

.page-btn.dots {
    background: transparent;
    border: none;
    color: #888;
    cursor: default;
    padding: 8px 5px;
    font-weight: bold;
}

/* =======================================================
   HERO (ASSISTIR SÉRIE)
   ======================================================= */
.hero {
    position: relative;
    width: 100%;
    min-height: 60vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #111 10%, transparent 90%, rgba(17,17,17,0.8));
}

.hero-serie-content {
    position: relative;
    z-index: 2;
    padding: 200px 40px 40px 40px;
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    align-items: flex-end;
    box-sizing: border-box;
}

.hero-poster-img {
    width: 200px;
    min-width: 200px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.hero-serie-info h1 {
    margin: 0 0 10px;
    font-size: 2.5rem;
}

.hero-serie-info .meta {
    color: #f1c40f;
    margin-bottom: 15px;
    font-size: 0.9rem;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.meta .fa-calendar { 
    color: var(--calendar-color); 
}

.meta .fa-star { 
    color: var(--star-color); 
}

.hero-serie-info .sinopse {
    line-height: 1.6;
    color: #ccc;
    max-width: 800px;
}

.hero-serie-info > div:last-child {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
}

.btn-watch, .btn-trailer {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-watch {
    background: var(--primary);
    color: white;
}

.btn-watch:hover {
    background: #b20710;
}

.btn-trailer {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
}

.btn-trailer:hover {
    background: rgba(255,255,255,0.2);
    border-color: white;
}

/* =======================================================
   PLAYER AREA (ASSISTIR SÉRIE)
   ======================================================= */
.player-area {
    margin: 0 auto 30px auto;
    max-width: 900px;
    width: 100%;
}

.player-menu-bar {
    position: sticky;
    top: 0;
    z-index: 900;
    background: #000;
    border-bottom: 2px solid #e50914;
    padding: 12px 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    box-shadow: 0 4px 12px rgba(0,0,0,0.8);
    border-radius: 8px 8px 0 0;
}

.menu-group {
    display: flex;
    flex-direction: column;
    min-width: 80px;
}

.menu-group--season {
    flex: 0 0 50px;
    max-width: 50px;
}

.menu-group--episode {
    flex: 3;
    min-width: 300px;
}

.menu-group--audio {
    flex: 1;
    min-width: 800px;
}

.menu-group--player {
    flex: 1;
    min-width: 150px;
}

.menu-group label {
    font-size: 11px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 600;
}

.menu-group select {
    background: #1a1a1a;
    color: #fff;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 8px 30px 8px 10px;
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e50914' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
}

.menu-group select:hover,
.menu-group select:focus {
    border-color: #e50914;
    outline: none;
    background-color: #222;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    border: none;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    z-index: 1;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

.video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.2rem;
    background: #000;
}

/* =======================================================
   ASSISTIR FILME - LAYOUT
   ======================================================= */
.backdrop-area {
    background-size: cover;
    background-position: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 230px 40px 40px 40px;
    width: 100%;
    z-index: 2;
    position: relative;
    box-sizing: border-box;
}

.poster-detail img {
    width: 250px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
}

.text-detail h1 {
    font-size: 2.8rem;
    margin: 0 0 10px;
}

.text-detail .original-title {
    color: #aaa;
    margin: 0 0 15px;
    font-size: 1rem;
}

.text-detail .genres {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.text-detail .tag {
    background: #333;
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 4px;
    color: #ddd;
    text-decoration: none;
    transition: background 0.2s;
}

.text-detail .tag:hover {
    background: var(--primary);
    color: #fff;
}

.text-detail .sinopse {
    line-height: 1.6;
    color: #ddd;
    max-width: 700px;
    margin: 20px 0;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.player-section {
    background: #111;
    padding: 30px 20px;
}

.player-layout {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
}

.video-box {
    flex: 3;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    border: none;
}

.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.sidebar-players {
    flex: 1;
    background: #1a1a1a;
    border-radius: 8px;
    padding: 20px;
    height: fit-content;
}

.sidebar-players h3 {
    margin: 0 0 15px;
    font-size: 16px;
    color: #fff;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.audio-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn-audio {
    flex: 1;
    min-width: 90px;
    background: #333;
    border: none;
    color: #aaa;
    padding: 10px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    transition: 0.2s;
    font-size: 13px;
}

.btn-audio:hover {
    background: #444;
    color: white;
}

.btn-audio.active {
    background: var(--primary);
    color: white;
}

.btn-server {
    display: block;
    width: 100%;
    background: #252525;
    border: 1px solid #333;
    color: #ddd;
    padding: 12px;
    text-align: left;
    margin-bottom: 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.2s;
}

.btn-server:hover {
    background: #333;
    padding-left: 15px;
}

.btn-server.active-server {
    background: #333;
    border-left: 4px solid var(--primary);
    color: white;
}

/* Modal Trailer */
.modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    margin: 5% auto;
    width: 90%;
    max-width: 800px;
    background: #000;
    border-radius: 8px;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

/* =======================================================
   RESPONSIVIDADE MOBILE
   ======================================================= */
@media (max-width: 768px) {
    /* Header Mobile */
    header {
        flex-direction: column;
        align-items: center;
        padding: 15px;
        gap: 15px;
    }
    
    .left-area {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }
    
    .logo {
        margin: 0;
        text-align: center;
    }
    
    nav {
        margin-left: 0;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        align-items: center;
    }
    
    nav a {
        padding: 12px 20px;
        font-size: 16px;
        width: 100%;
        max-width: 300px;
        text-align: center;
        border-radius: 8px;
        background: rgba(255,255,255,0.05);
    }
    
    .search-form {
        width: 100%;
        max-width: 400px;
        margin: 0;
    }
    
    .search-form input {
        flex: 1;
        padding: 10px 15px;
        font-size: 16px;
    }
    
    .search-form button {
        padding: 10px 15px;
        font-size: 16px;
    }
    
    /* Category Bar Mobile */
    .category-bar-desktop {
        display: none;
    }
    
    .category-bar-mobile {
        display: block;
    }
    
    /* Grid Mobile */
    .movie-grid, .grid-filmes, .grid-series {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    /* Container Mobile */
    .container {
        padding: 0 15px;
        margin: 20px auto;
    }
    
    /* Hero Mobile */
    .hero-serie-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 120px 20px 30px 20px;
    }
    
    .hero-poster-img {
        width: 160px;
        min-width: 160px;
    }
    
    .hero-serie-info h1 {
        font-size: 1.8rem;
    }
    
    .hero-serie-info .meta {
        justify-content: center;
    }
    
    .hero-serie-info > div:last-child {
        flex-direction: column;
        align-items: center;
        width: 100%;
        justify-content: center;
    }
    
    .btn-watch, .btn-trailer {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    /* Player Mobile */
    .player-area {
        max-width: 100%;
        margin: 0 auto 20px auto;
    }
    
    .player-menu-bar {
        gap: 8px;
        padding: 10px;
    }
    
    .menu-group {
        min-width: calc(50% - 8px);
        flex: 1 1 calc(50% - 8px);
    }
    
    .menu-group select {
        font-size: 13px;
        padding: 7px 28px 7px 8px;
    }
    
    /* Assistir Filme Mobile */
    .content-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 120px 20px 30px 20px;
        gap: 25px;
    }
    
    .poster-detail img {
        width: 180px;
    }
    
    .text-detail h1 {
        font-size: 1.8rem;
    }
    
    .text-detail .genres {
        justify-content: center;
    }
    
    .action-buttons {
        justify-content: center;
        width: 100%;
        flex-direction: column;
        align-items: center;
    }
    
    .action-buttons .btn-watch,
    .action-buttons .btn-trailer {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .player-layout {
        flex-direction: column;
    }
    
    .sidebar-players {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .text-detail h1 {
        font-size: 1.5rem;
    }
    
    .btn-audio {
        font-size: 12px;
        padding: 8px;
    }
}


/* =======================================================
   PAINEL ADMIN (Restaurado e Corrigido)
   ======================================================= */
.admin-container { 
    max-width: 600px; 
    margin: 50px auto; 
    background: var(--card-bg); 
    padding: 30px; 
    border-radius: 8px; 
}

.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; color: #ccc; font-weight: bold; font-size: 14px; }

.admin-container input, 
.admin-container select, 
.admin-container textarea { 
    width: 100%; 
    padding: 10px; 
    background: #333; 
    border: 1px solid #444; 
    color: white; 
    margin-top: 5px; 
    border-radius: 4px; 
    box-sizing: border-box; 
}

.admin-container button { 
    width: 100%; 
    padding: 12px; 
    background: var(--primary); 
    color: white; 
    border: none; 
    cursor: pointer; 
    font-weight: bold; 
    border-radius: 4px; 
    transition: background 0.2s;
}

.admin-container button:hover { background: #b20710; }

.success { background: #2ecc71; padding: 10px; margin-bottom: 10px; color: black; border-radius: 4px; font-weight: bold; }
.error { background: #e74c3c; padding: 10px; margin-bottom: 10px; border-radius: 4px; font-weight: bold; }

/* Botões de Ação na Lista (Editar / Excluir) */
.btn-edit {
    background: #f39c12;
    color: white;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    margin-right: 5px;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    transition: background 0.2s;
}
.btn-edit:hover { background: #d35400; }

.btn-delete {
    background: #e74c3c;
    color: white;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    transition: background 0.2s;
}
.btn-delete:hover { background: #c0392b; }

/* Modal Admin (Edição) */
.modal-admin {
    display: none; 
    position: fixed; 
    z-index: 99999; /* 🔥 Maior que o header (10000) para aparecer por cima */
    left: 0; top: 0; 
    width: 100%; height: 100%; 
    background-color: rgba(0,0,0,0.85); 
    align-items: center;
    justify-content: center;
}

.modal-admin-content {
    background-color: #222;
    margin: 5vh auto;
    padding: 25px;
    border: 1px solid #444;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    color: white;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.close-modal-admin {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}
.close-modal-admin:hover { color: white; }

/* Responsivo para o Admin */
@media (max-width: 768px) {
    .admin-container {
        margin: 20px 15px;
        padding: 20px;
    }
    .modal-admin-content {
        width: 95%;
        margin: 10vh auto;
    }
}



/* ==================== COMPARTILHAMENTO E COMENTÁRIOS ==================== */
.social-share-section, .comments-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    color: #fff;
}

.social-share-section h3, .comments-section h3 {
    font-size: 24px;
    margin-bottom: 25px;
    border-left: 5px solid #e50914;
    padding-left: 15px;
    font-weight: bold;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 8px;
    color: #fff !important;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    min-width: 140px;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.6);
    opacity: 0.95;
}

/* Cores Oficiais das Redes */
.share-btn.facebook  { background-color: #1877F2; }
.share-btn.twitter   { background-color: #000000; } /* X / Twitter */
.share-btn.whatsapp  { background-color: #25D366; }
.share-btn.pinterest { background-color: #E60023; }
.share-btn.telegram  { background-color: #0088cc; }

/* Força o tema escuro no plugin do Facebook */
.fb-comments, .fb-comments * {
    color-scheme: dark;
}


.playbox-gate {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    z-index: 10;
    display: flex;
    justify-content: center;      
    align-items: center;          
    cursor: pointer;
    transition: opacity 0.4s ease;
    user-select: none;
}

.playbox-gate .fake-play {
    width: 70px;                 
    height: 70px;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 50%;
    display: flex;
    justify-content: center;      
    align-items: center;          
    transition: transform 0.25s ease, background 0.25s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.playbox-gate .fake-play i {
    color: #fff;
    font-size: 35px;
    margin-left: 8px;             
    margin-top: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.playbox-gate .fake-play:hover {
    transform: scale(1.12);
    background: rgba(229, 9, 20, 0.95);
}

.playbox-gate.hidden {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 600px) {
    .playbox-gate .fake-play {
        width: 80px;
        height: 80px;
    }
    .playbox-gate .fake-play i {
        font-size: 34px;
        margin-left: 5px;
    }
}