/* Grid de videos */
.yvm-videos-grid {
    display: grid;
    gap: 30px;
    margin: 30px 0;
}

.yvm-columns-1 { grid-template-columns: 1fr; }
.yvm-columns-2 { grid-template-columns: repeat(2, 1fr); }
.yvm-columns-3 { grid-template-columns: repeat(3, 1fr); }
.yvm-columns-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1200px) {
    .yvm-columns-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
    .yvm-columns-3,
    .yvm-columns-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .yvm-columns-2,
    .yvm-columns-3,
    .yvm-columns-4 { grid-template-columns: 1fr; }
}

/* Estilos para cada video */
.yvm-video-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.yvm-video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.yvm-video-thumbnail {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    background: #000;
}

.yvm-video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.yvm-video-item:hover .yvm-video-thumbnail img {
    transform: scale(1.05);
}

.yvm-play-button {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #fff;
    text-decoration: none;
}

.yvm-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255,0,0,0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.yvm-play-button:hover .yvm-play-icon {
    background: #ff0000;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.yvm-video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

.yvm-video-info {
    padding: 20px;
}

.yvm-video-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.4;
}

.yvm-video-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.yvm-video-title a:hover {
    color: #0073aa;
}

.yvm-video-excerpt {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.yvm-video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 12px;
    color: #999;
}

.yvm-video-date {
    display: inline-flex;
    align-items: center;
}

.yvm-video-date:before {
    content: "📅";
    margin-right: 5px;
}

.yvm-category-tag {
    background: #f0f0f0;
    color: #666;
    padding: 3px 8px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 11px;
    transition: all 0.3s ease;
}

.yvm-category-tag:hover {
    background: #0073aa;
    color: #fff;
}

.yvm-video-actions {
    margin-top: 15px;
}

.yvm-youtube-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #ff0000;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.yvm-youtube-link:hover {
    background: #cc0000;
    color: #fff;
    transform: translateY(-2px);
}

.yvm-youtube-link:before {
    content: "▶";
    margin-right: 8px;
    font-size: 12px;
}

/* Video individual */
.yvm-single-video-container {
    margin: 30px 0;
}

.yvm-video-embed {
    max-width: 100%;
    margin: 0 auto;
}

.yvm-video-wrapper {
    position: relative;
    width: 100%;
}

.yvm-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
}

/* Paginación */
.yvm-pagination {
    margin-top: 40px;
    text-align: center;
}

.yvm-pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 2px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.yvm-pagination .page-numbers.current {
    background: #0073aa;
    color: #fff;
}

.yvm-pagination .page-numbers:hover:not(.current) {
    background: #e0e0e0;
    color: #333;
}

/* Widget */
.yvm-widget-videos {
    list-style: none;
    padding: 0;
    margin: 0;
}

.yvm-widget-video-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.yvm-widget-video-item:last-child {
    margin-bottom: 0;
    border-bottom: 0;
    padding-bottom: 0;
}

.yvm-widget-video-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.yvm-widget-video-link:hover {
    color: #0073aa;
}

.yvm-widget-thumbnail {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 10px;
    flex-shrink: 0;
}

.yvm-widget-title {
    font-size: 14px;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 480px) {
    .yvm-video-info {
        padding: 15px;
    }
    
    .yvm-video-title {
        font-size: 16px;
    }
    
    .yvm-youtube-link {
        width: 100%;
        justify-content: center;
    }
}

/* ============ MODAL DE VIDEO ============ */
.yvm-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: yvmFadeIn 0.3s ease;
}

@keyframes yvmFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.yvm-modal-content {
    position: relative;
    background: #fff;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 900px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    animation: yvmSlideIn 0.3s ease;
}

@keyframes yvmSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.yvm-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.yvm-modal-close:hover {
    background: rgba(0,0,0,0.8);
    transform: scale(1.1);
}

.yvm-modal-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    background: #000;
}

.yvm-modal-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.yvm-modal-info {
    padding: 20px;
}

.yvm-modal-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #333;
}

.yvm-modal-description {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* ============ REPRODUCTOR INLINE ============ */
.yvm-inline-player {
    margin-top: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    animation: yvmSlideDown 0.3s ease;
}

@keyframes yvmSlideDown {
    from { max-height: 0; opacity: 0; }
    to { max-height: 500px; opacity: 1; }
}

.yvm-close-inline {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.yvm-close-inline:hover {
    background: rgba(0,0,0,0.9);
    transform: scale(1.1);
}

.yvm-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    background: #000;
}

.yvm-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ============ BOTONES MEJORADOS ============ */
.yvm-play-now-button {
    display: inline-block;
    padding: 8px 15px;
    background: #ff0000;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.yvm-play-now-button:hover {
    background: #cc0000;
    transform: translateY(-2px);
}

.yvm-page-link {
    display: inline-block;
    padding: 8px 15px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.yvm-page-link:hover {
    background: #005a87;
    color: white;
    transform: translateY(-2px);
}

.yvm-youtube-link {
    display: inline-block;
    padding: 8px 15px;
    background: #ff0000;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.yvm-youtube-link:hover {
    background: #cc0000;
    color: white;
    transform: translateY(-2px);
}

.yvm-video-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .yvm-modal-content {
        margin: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
    
    .yvm-modal-video-container {
        height: 60vh;
        padding-bottom: 0;
    }
    
    .yvm-video-actions {
        flex-direction: column;
    }
    
    .yvm-play-now-button,
    .yvm-page-link,
    .yvm-youtube-link {
        width: 100%;
        text-align: center;
        margin-right: 0;
        margin-bottom: 5px;
    }
}

/* ============ EFECTOS DE HOVER MEJORADOS ============ */
.yvm-play-button:hover .yvm-thumbnail-img {
    transform: scale(1.1);
    filter: brightness(0.8);
}

.yvm-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255,0,0,0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    opacity: 0.9;
    color: white;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.yvm-play-button:hover .yvm-play-icon {
    background: rgba(255,0,0,1);
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}
/* ============ ESTADO MODAL ABIERTO ============ */
body.yvm-modal-open {
    overflow: hidden;
}

body.yvm-modal-open::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    pointer-events: none;
}

/* ============ BOTONES CORREGIDOS ============ */
.yvm-play-now-button,
.yvm-page-link,
.yvm-youtube-link {
    display: inline-block;
    padding: 8px 15px;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-right: 10px;
}

.yvm-play-now-button {
    background: #ff0000;
}

.yvm-play-now-button:hover {
    background: #cc0000;
    transform: translateY(-2px);
    color: white;
}

.yvm-page-link {
    background: #0073aa;
}

.yvm-page-link:hover {
    background: #005a87;
    color: white;
    transform: translateY(-2px);
}

.yvm-youtube-link {
    background: #ff0000;
}

.yvm-youtube-link:hover {
    background: #cc0000;
    color: white;
    transform: translateY(-2px);
}

.yvm-video-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

/* ============ RESPONSIVE MEJORADO ============ */
@media (max-width: 768px) {
    .yvm-modal-content {
        margin: 0;
        width: 100%;
        height: 100vh;
        border-radius: 0;
        max-width: none;
    }
    
    .yvm-modal-video-container {
        height: 40vh;
        padding-bottom: 0;
    }
    
    .yvm-modal-info {
        padding: 15px;
    }
    
    .yvm-modal-title {
        font-size: 20px;
    }
    
    .yvm-modal-description {
        font-size: 14px;
    }
    
    .yvm-video-actions {
        flex-direction: column;
    }
    
    .yvm-play-now-button,
    .yvm-page-link,
    .yvm-youtube-link {
        width: 100%;
        text-align: center;
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .yvm-inline-player {
        margin: 10px 0;
    }
    
    .yvm-video-container iframe {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .yvm-modal-video-container {
        height: 35vh;
    }
    
    .yvm-modal-title {
        font-size: 18px;
    }
    
    .yvm-modal-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
}

/* ============ CLASE PARA IMAGENES ============ */
.yvm-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============ MEJORAS DE ACCESIBILIDAD ============ */
.yvm-play-button:focus,
.yvm-play-now-button:focus,
.yvm-modal-close:focus,
.yvm-close-inline:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.yvm-modal:focus {
    outline: none;
}

/* ============ ANIMACIONES INLINE ============ */
.yvm-inline-player {
    animation: yvmSlideDown 0.3s ease-out;
    position: relative;
    background: #fff;
}

@keyframes yvmSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
    }
}

/* ============ CLASES DE DATOS ============ */
[data-video-id] {
    cursor: pointer;
}

/* frontend.css - Agregar al final del archivo */

/* ============ BOTONES DE BORRADO ============ */
.yvm-delete-button {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.yvm-delete-button:hover:not(:disabled) {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.yvm-delete-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.yvm-delete-button .spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============ ESTADO VACÍO ============ */
.yvm-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
    margin: 20px 0;
}

.yvm-empty-state h3 {
    color: #6c757d;
    margin-bottom: 10px;
}

.yvm-empty-state p {
    color: #adb5bd;
    margin-bottom: 20px;
}

/* ============ ALERTAS AJAX ============ */
.yvm-ajax-message {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    max-width: 400px;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    animation: slideInRight 0.3s ease-out;
    cursor: pointer;
}

.yvm-ajax-message:hover {
    opacity: 0.9;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============ ESPACIADO PARA BOTONES EN GRID ============ */
.yvm-video-item .yvm-video-actions {
    margin-top: 15px;
    display: flex;
    gap: 8px;
}

.yvm-video-item .yvm-delete-button {
    margin-top: 10px;
    width: 100%;
    justify-content: center;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .yvm-ajax-message {
        left: 20px;
        right: 20px;
        max-width: none;
        animation: slideInTop 0.3s ease-out;
    }
    
    @keyframes slideInTop {
        from {
            transform: translateY(-100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
}

/* ============ FORMULARIO FRONTEND - Paleta Rojo + Negro ============ */
.yvm-frontend-form-container {
    --yvm-red: #d7263d;
    --yvm-red-dark: #a31d2b;
    --yvm-black: #0e0e0e;
    --yvm-gray: #1b1b1b;
    --yvm-text: #f5f5f5;
    --yvm-muted: #c9ccd3;
    --yvm-surface-0: #0e0e0e;
    --yvm-surface-1: #1b1b1b;
    --yvm-surface-2: #141414;
    --yvm-border: #2a2a2a;
    --yvm-shadow: 0 10px 26px rgba(0,0,0,.55);
    
    max-width: 1180px;
    margin: 28px auto;
    padding: 0 18px;
    color: var(--yvm-text);
}

/* Alertas */
.yvm-alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 22px;
    font-size: 15px;
    border: 1px solid;
    box-shadow: var(--yvm-shadow);
}

.yvm-alert-success {
    background: #123015;
    color: #b9ffbf;
    border-color: #2e7d32;
}

.yvm-alert-error {
    background: #3d1212;
    color: #ffb9b9;
    border-color: #7d2e2e;
}

/* Wrapper principal */
.yvm-form-wrapper {
    display: grid;
    grid-template-columns: 1.4fr .6fr;
    gap: 22px;
    align-items: start;
}

/* Sección principal del formulario */
.yvm-form-main {
    background: var(--yvm-gray);
    border: 1px solid var(--yvm-red-dark);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--yvm-shadow);
}

.yvm-form-title {
    margin: 0 0 24px 0;
    font-size: clamp(1.6rem, 2.2vw, 2rem);
    color: var(--yvm-red);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Formulario */
.yvm-video-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.yvm-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.yvm-form-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--yvm-text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.yvm-form-input,
.yvm-form-input[type="url"],
.yvm-form-input[type="text"] {
    background: var(--yvm-black);
    border: 1px solid var(--yvm-border);
    color: var(--yvm-text);
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.yvm-form-input:focus {
    outline: none;
    border-color: var(--yvm-red);
    box-shadow: 0 0 0 3px rgba(215, 38, 61, 0.15);
}

.yvm-form-input::placeholder {
    color: var(--yvm-muted);
    opacity: 0.6;
}

/* Select específico */
select.yvm-form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d7263d' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

select.yvm-form-input option {
    background: var(--yvm-black);
    color: var(--yvm-text);
    padding: 10px;
}

/* Botón submit */
.yvm-submit-button {
    background: var(--yvm-red);
    color: #fff;
    border: 1px solid var(--yvm-red-dark);
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 8px 18px rgba(215, 38, 61, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.yvm-submit-button:hover {
    background: var(--yvm-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(215, 38, 61, 0.35);
}

.yvm-submit-button:active {
    transform: translateY(0);
}

/* Gestión de videos del usuario */
.yvm-manage-section {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--yvm-border);
}

.yvm-manage-section h3 {
    color: var(--yvm-red);
    margin: 0 0 16px 0;
    font-size: 1.3rem;
}

.yvm-videos-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.yvm-video-manage-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: var(--yvm-surface-2);
    border: 1px dashed var(--yvm-border);
    border-radius: 10px;
    padding: 14px 16px;
    transition: all 0.2s ease;
}

.yvm-video-manage-item:hover {
    border-color: var(--yvm-red);
    background: var(--yvm-black);
}

.yvm-video-manage-item strong {
    color: var(--yvm-text);
    font-size: 15px;
}

.yvm-video-manage-item .yvm-delete-button {
    background: var(--yvm-red);
    color: #fff;
    border: 1px solid var(--yvm-red-dark);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.yvm-video-manage-item .yvm-delete-button:hover {
    background: var(--yvm-red-dark);
    transform: translateY(-1px);
}

.yvm-video-manage-item .yvm-delete-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Sidebar */
.yvm-form-sidebar {
    background: var(--yvm-gray);
    border: 1px solid var(--yvm-red-dark);
    border-radius: 12px;
    padding: 28px;
    box-shadow: var(--yvm-shadow);
    position: sticky;
    top: 20px;
}

.yvm-form-sidebar h3 {
    color: var(--yvm-red);
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.yvm-form-sidebar > div > div {
    text-align: center;
    padding: 24px;
    background: var(--yvm-black);
    border: 1px solid var(--yvm-border);
    border-radius: 12px;
}

.yvm-form-sidebar > div > div > div:first-child {
    font-size: 40px;
    font-weight: bold;
    color: var(--yvm-red);
    line-height: 1;
}

.yvm-form-sidebar > div > div > div:last-child {
    font-size: 14px;
    color: var(--yvm-muted);
    margin-top: 8px;
}

/* Mensajes de restricción */
.yvm-form-restricted {
    background: var(--yvm-gray);
    border: 1px solid var(--yvm-red-dark);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    box-shadow: var(--yvm-shadow);
    max-width: 600px;
    margin: 40px auto;
}

.yvm-form-restricted p {
    color: var(--yvm-text);
    font-size: 16px;
    margin: 10px 0;
}

.yvm-form-restricted a {
    color: var(--yvm-red);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.yvm-form-restricted a:hover {
    color: var(--yvm-red-dark);
    text-decoration: underline;
}

.yvm-form-restricted h3 {
    color: var(--yvm-red);
    margin: 0 0 15px 0;
}

/* Responsive */
@media (max-width: 1000px) {
    .yvm-form-wrapper {
        grid-template-columns: 1fr;
    }
    
    .yvm-form-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .yvm-frontend-form-container {
        padding: 0 12px;
        margin: 16px auto;
    }
    
    .yvm-form-main,
    .yvm-form-sidebar {
        padding: 18px;
    }
    
    .yvm-video-manage-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .yvm-video-manage-item .yvm-delete-button {
        width: 100%;
    }
}
/* === Tabs Navigation === */
.yvm-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
    overflow-x: auto;
}

.yvm-tab-btn {
    padding: 1rem 2rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    bottom: -2px;
}

.yvm-tab-btn:hover {
    color: var(--yvm-red);
    background: rgba(220, 20, 60, 0.05);
}

.yvm-tab-btn.active {
    color: var(--yvm-red);
    border-bottom-color: var(--yvm-red);
    background: rgba(220, 20, 60, 0.08);
}

.yvm-tab-content {
    display: none;
}

.yvm-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .yvm-tab-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
}
/* Manage Content Section */
.yvm-manage-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.yvm-manage-section h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.yvm-manage-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.yvm-content-list {
    margin-bottom: 2rem;
}

/* Items Grid */
.yvm-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.yvm-manage-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.yvm-manage-item:hover {
    border-color: #dc143c;
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.15);
    transform: translateY(-2px);
}

.yvm-item-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    overflow: hidden;
}

.yvm-item-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yvm-item-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(220, 20, 60, 0.95);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.yvm-item-details {
    padding: 1rem;
    flex: 1;
}

.yvm-item-title {
    display: block;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.yvm-item-date {
    font-size: 0.85rem;
    color: #666;
}

.yvm-item-actions {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.yvm-edit-button,
.yvm-delete-button {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.yvm-edit-button {
    background: #0073aa;
    color: #fff;
}

.yvm-edit-button:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.3);
}

.yvm-delete-button {
    background: #dc143c;
    color: #fff;
}

.yvm-delete-button:hover {
    background: #a00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 20, 60, 0.3);
}

/* Alert Styles */
.yvm-alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.yvm-alert-info {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    color: #0d47a1;
}

.yvm-alert-info a {
    color: #d32f2f;
    text-decoration: none;
    font-weight: 600;
}

.yvm-alert-info a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .yvm-items-grid {
        grid-template-columns: 1fr;
    }

    .yvm-item-actions {
        flex-direction: column;
    }

    .yvm-edit-button,
    .yvm-delete-button {
        width: 100%;
    }
}