@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.video-grid-wrapper {
    font-family: 'Sora', sans-serif;
    color: #e0e0e0;
    margin: 40px 0;
    background: #151515;
}

/* FILTROS */
.video-grid-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
    padding: 24px;
    background: #1e1e1e;
    border-radius: 16px;
    border: 1px solid #2a2a2a;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    align-items: center;
}

.filter-group { flex: 1; min-width: 220px; }

.video-search-input,
.video-filter-select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #333;
    border-radius: 12px;
    background: #222;
    color: #e0e0e0;
    font-size: 15px;
    transition: all 0.3s ease;
}

.video-search-input::placeholder { color: #777; }

.video-search-input:focus,
.video-filter-select:focus {
    border-color: #B90808;
    box-shadow: 0 0 0 4px rgba(185,8,8,0.2);
    background: #282828;
}

.video-filter-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B90808' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    padding-right: 48px;
}

.video-filter-button {
    padding: 14px 36px;
    background: #B90808;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(185,8,8,0.4);
}

.video-filter-button:hover {
    background: #d00a0a;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(185,8,8,0.6);
}

/* TABLA */
.video-grid-table-container {
    overflow-x: auto;
    margin-bottom: 40px;
    border-radius: 16px;
    background: #1a1a1a;
    box-shadow: 0 10px 40px rgba(0,0,0,0.7);
    border: 1px solid #252525;
}

.video-grid-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #151515;
}

.video-grid-table thead {
    background: linear-gradient(135deg, #1f1f1f, #2a2a2a);
    position: sticky;
    top: 0;
    z-index: 10;
}

.video-grid-table th {
    padding: 18px 24px;
    text-align: left;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 2px solid #B90808;
}

.video-grid-table tbody tr {
    transition: all 0.3s ease;
    background: #151515;
}

.video-grid-table tbody tr:hover {
    background: #222;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(185,8,8,0.2);
}

.video-grid-table td {
    padding: 18px 24px;
    font-size: 15px;
    vertical-align: middle;
    border-bottom: 1px solid #252525;
}

/* Género pill */
.video-grid-table td:nth-child(6) { text-align: center; }
.video-grid-table td:nth-child(6) span {
    background: rgba(185,8,8,0.2);
    color: #ff7777;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    border: 1px solid rgba(185,8,8,0.4);
    transition: all 0.3s;
}

.video-grid-table td:nth-child(6) span:hover {
    background: rgba(185,8,8,0.4);
    transform: scale(1.08);
}

/* Play botón en tabla - forzado redondo */
.video-play-btn,
.video-play-track {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    background: #B90808 !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(185,8,8,0.4) !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.video-play-btn:hover,
.video-play-track:hover {
    background: #d00a0a !important;
    transform: scale(1.15) !important;
    box-shadow: 0 8px 20px rgba(185,8,8,0.6) !important;
}

.video-play-btn:disabled {
    background: #444 !important;
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

.video-play-btn svg,
.video-play-track svg {
    width: 22px !important;
    height: 22px !important;
    fill: white !important;
}

/* PAGINACIÓN */
.video-grid-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    padding: 16px 0;
    background: #1a1a1a;
    border-radius: 16px;
    border: 1px solid #252525;
}

.video-pagination-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #aaa;
}

.video-page-number {
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    background: transparent;
    color: #aaa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-page-number:hover {
    background: rgba(185, 8, 8, 0.15);
    color: #fff;
}

.video-page-number.active {
    background: #B90808;
    color: white;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(185, 8, 8, 0.4);
}

.video-pagination-arrow {
    width: 36px;
    height: 36px;
    background: #B90808;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(185, 8, 8, 0.3);
}

.video-pagination-arrow:hover:not(.disabled) {
    background: #d00a0a;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(185, 8, 8, 0.5);
}

.video-pagination-arrow.disabled {
    background: #444;
    opacity: 0.6;
    cursor: not-allowed;
}

.video-ellipsis {
    color: #666;
    font-size: 14px;
    padding: 0 8px;
}

/* RESPONSIVE - MÓVIL (tabla compacta) */
@media (max-width: 768px) {
    .video-grid-pagination {
        gap: 8px;
        padding: 12px 0;
        overflow-x: auto;
        justify-content: center;
    }

    .video-page-number {
        width: 28px;
        height: 28px;
        line-height: 28px;
        font-size: 13px;
    }

    .video-pagination-arrow {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .video-ellipsis {
        font-size: 12px;
        padding: 0 6px;
    }

    /* Ocultar columnas innecesarias en móvil */
    .video-grid-table th:nth-child(1),
    .video-grid-table th:nth-child(4),
    .video-grid-table th:nth-child(5),
    .video-grid-table th:nth-child(6),
    .video-grid-table th:nth-child(7),
    .video-grid-table td:nth-child(1),
    .video-grid-table td:nth-child(4),
    .video-grid-table td:nth-child(5),
    .video-grid-table td:nth-child(6),
    .video-grid-table td:nth-child(7) {
        display: none !important;
    }

    .video-grid-table th:nth-child(2), .video-grid-table td:nth-child(2) { 
        width: 70px !important; 
        text-align: center !important; 
        padding: 10px 15px 10px 10px !important;
    }

    .video-grid-table th:nth-child(3), .video-grid-table td:nth-child(3) { 
        width: 55% !important; 
        padding: 10px !important;
    }

    .video-grid-table th:nth-child(8), .video-grid-table td:nth-child(8) { 
        width: 30% !important; 
        text-align: center !important;
        padding: 10px !important;
    }

    .video-grid-table th,
    .video-grid-table td {
        padding: 10px 8px !important;
        font-size: 13px !important;
    }
}

/* ========== POPUP VIDEO - OPTIMIZADO PARA 1280x768 ========== */
#video-popup {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75); /* menos oscuro como querías */
    z-index: 999999;
    padding: 20px;
    backdrop-filter: blur(8px);
}

.video-popup-content {
    position: relative;
    width: 90vw;
    max-width: 600px; /* un poco más ancho para 1280px base */
    background: #0a0a0a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(185, 8, 8, 0.4);
    border: 1px solid rgba(185, 8, 8, 0.15);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 60%;          /* ← 768/1280 = 0.6 → 60% para aspecto exacto 1280x768 */
    height: 0;
    background: #000;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

#video-popup-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;          /* mantiene todo visible sin cortar */
    background: #000;
    object-position: center;
}

/* Overlay anti-hover */
.video-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 5;
    pointer-events: auto;
}

/* Close */
.video-popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 44px;
    color: white;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s;
}

.video-popup-close:hover {
    color: #B90808;
    transform: scale(1.2);
}

/* Barra y tiempo */
.video-player-progress {
    height: 8px;
    background: #111;
    cursor: pointer;
    margin: 12px 16px 8px;
    border-radius: 4px;
    overflow: hidden;
}

.video-player-bar {
    width: 0%;
    height: 100%;
    background: #B90808;
    transition: width 0.4s ease;
    box-shadow: 0 0 10px rgba(185, 8, 8, 0.8);
}

.video-player-time {
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 12px;
}

/* Responsive móvil */
@media (max-width: 768px) {
    .video-popup-content {
        width: 96vw;
        max-width: none;
        border-radius: 0;
    }

    .video-wrapper {
        padding-bottom: 60%; /* mantiene proporción 1280x768 */
    }

    .video-popup-close {
        font-size: 36px;
        top: 10px;
        right: 12px;
    }

    .video-player-progress {
        margin: 10px 12px 6px;
        height: 7px;
    }

    .video-player-time {
        font-size: 13px;
    }
}
/* Botón GET ACCESS */
.edd-all-access-btn,
.edd-aa-custom-btn-wrapper a.edd-all-access-btn,
.edd-submit.button.edd-button {
    background-color: #B90808 !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 0px 15px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    box-shadow: 0 4px 12px rgba(185, 8, 8, 0.4) !important;
    transition: all 0.3s ease !important;
    min-width: auto !important;
}

.edd-all-access-btn:hover,
.edd-aa-custom-btn-wrapper a.edd-all-access-btn:hover,
.edd-submit.button.edd-button:hover {
    background-color: #d00a0a !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(185, 8, 8, 0.6) !important;
}

/* Ocultar Log In de EDD All Access */
.edd-aa-login-link {
    display: none !important;
}

#video-popup {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);  /* ← bajado de 0.95 a 0.75, menos oscuro */
    z-index: 999999;
    padding: 20px;
    backdrop-filter: blur(8px);
}