/* Página de Detalle de Obra */
header {
    background: rgba(0, 0, 0, 0.8);
}

.obra-detail {
    padding-top: 70px;
    background: #f5f5f5;
}

.video-container {
    position: relative;
    width: 100vw;
    height: 50vh;
    margin-left: calc(-50vw + 50%);
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-wrapper iframe,
.video-wrapper .plyr,
.video-wrapper .plyr__video-wrapper,
.video-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-wrapper .plyr__video-wrapper iframe {
    object-fit: contain;
}

/* Plyr poster personalizado */
.plyr--youtube .plyr__poster {
    background-size: contain !important;
    background-position: center !important;
    background-color: #000 !important;
}

.plyr__poster {
    background-size: contain !important;
    background-position: center !important;
}

.obra-main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.obra-categorias {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    color: #000;
    font-weight: 700;
}

.categoria-badge {
    /* background: #000; */
    color: #000;
    /* padding: 8px 20px; */
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    /* text-transform: uppercase; */
}

.obra-titulo {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 10px;
    color: #000;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.obra-sinopsis {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
    white-space: pre-line;
    max-width: 80%;
    font-weight: 500;
}

.obra-duracion {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
}

.obra-duracion i {
    font-size: 18px;
}

.obra-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.obra-tag {
    background: transparent;
    color: #000;
    border: 3px solid var(--amarillo);
    padding: 2px 16px;
    /* border-radius: 4px; */
    font-size: 15px;
    font-weight: 700;
}

.obra-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.btn-action {
    background: var(--amarillo);
    color: #000;
    padding: 16px 20px;
    border: none;
    border-radius: 9px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    transition: all 0.3s;
    width: 67%;
    margin: 0 0 0 auto;
}

.btn-action i {
    font-size:12px;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(252, 255, 90, 0.4);
}

/* Galería inline - sin título, sin hover, sin border-radius */
.obra-galeria-inline {
    margin-bottom: 20px;
}

.galeria-grid-inline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.galeria-item-inline {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.galeria-item-inline img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.obra-info-section {
    /* background: #fff; */
    /* padding: 40px; */
    border-radius: 8px;
    margin: 40px 0;
}

.info-section-title {
    /* font-size: 20px; */
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
    text-transform: uppercase;
}

.info-section-content {
    font-size: 16px;
    line-height: 1.4;
    color: #333;
}

.info-row {
    margin-bottom: 15px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-label {
    font-weight: 600;
    color: #000;
    margin-right: 8px;
}

.obra-social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--amarillo);
    color: #000;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .obra-titulo {
        font-size: 32px;
    }
    
    .obra-main-content {
        padding: 40px 20px;
    }
    
    .obra-info-section {
        padding: 30px 20px;
    }
    
    .galeria-grid-inline {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .obra-actions {
        flex-direction: column;
    }
    
    .btn-action {
        text-align: center;
        justify-content: center;
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .obra-titulo {
        font-size: 28px;
    }
    
    .galeria-grid-inline {
        grid-template-columns: 1fr;
    }
}