/* --- Play Details Page (Obra) --- */

.obra-layout {
    background-color: #050505;
    color: var(--text-color);
}

/* --- Hero --- */
.obra-hero {
    height: 60vh;
    height: 60svh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.obra-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.obra-hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40%;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0) 0%, #050505 100%);
    z-index: 10;
    pointer-events: none;
}

.obra-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: brightness(0.7);
}

.obra-hero-content {
    position: relative;
    z-index: 20;
    text-align: center;
}

.obra-category {
    display: block;
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-size: 0.9rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.obra-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
    margin: 0;
    color: #ffffff;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 1);
    opacity: 1;
}

/* --- Content Section --- */
.obra-main-content {
    padding: 100px 0;
    position: relative;
}

.obra-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: start;
}

.obra-poster-side {
    position: sticky;
    top: 120px;
}

.obra-poster-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8);
    aspect-ratio: 2 / 3;
}

.obra-poster-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.obra-info-side h3 {
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.obra-synopsis {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 50px;
}

.obra-specs {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.spec-item {
    margin-bottom: 20px;
}

.spec-item:last-child { margin-bottom: 0; }

.spec-label {
    display: block;
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.spec-value {
    font-size: 1.1rem;
    color: var(--text-color);
}

/* --- Video Section --- */
.obra-video-section {
    padding: 80px 0;
    background: #0a0a0a;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    background: #000; /* Fondo negro por si tarda en cargar */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Gallery Section --- */
.obra-gallery-section {
    padding: 100px 0 150px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(180, 140, 255, 0.2);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .obra-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .obra-poster-side {
        position: static;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .obra-main-content {
        padding: 60px 0;
    }

    .obra-specs {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
