/* Interactive Video iDevice (OLIVA La Carrasca) */
.iv-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 100%;
    box-sizing: border-box;
}

.iv-player-stage {
    position: relative;
    background: #1a2416;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #c5d9b2;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.iv-aspect {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}

.iv-aspect iframe,
.iv-aspect #iv-yt-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.iv-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    background: #eef4e5;
    border: 1px solid #c5d9b2;
    border-radius: 10px;
}

.iv-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #2d5523;
}

.iv-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #9b8824;
    display: inline-block;
}

.iv-status-dot.is-done {
    background: #2d5523;
}

.iv-btn-primary {
    background: #2d5523;
    color: #ffffff;
    border: 1px solid #2d5523;
    border-radius: 8px;
    padding: 9px 16px;
    font-weight: 600;
    cursor: pointer;
}

.iv-btn-primary:hover {
    background: #1e3b17;
}

.iv-btn-secondary {
    background: #ffffff;
    color: #2d5523;
    border: 1px solid #3d6b2c;
    border-radius: 8px;
    padding: 8px 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.iv-btn-secondary:hover {
    background: #eef4e5;
}

.iv-interaction-card {
    background: #ffffff;
    border: 2px solid #3d6b2c;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(45, 85, 35, 0.14);
}

.iv-interaction-card[hidden] {
    display: none;
}

.iv-interaction-badge {
    display: inline-block;
    background: #fbf8eb;
    color: #6c5d12;
    border: 1px solid #dfd390;
    border-radius: 999px;
    padding: 3px 12px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.iv-question-title {
    color: #1e3b17;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.iv-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.iv-option-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: #f9fbf6;
    border: 1px solid #c5d9b2;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.iv-option-label:hover {
    background: #eef4e5;
    border-color: #3d6b2c;
}

.iv-option-label input[type="radio"] {
    margin-top: 4px;
    accent-color: #2d5523;
}

.iv-feedback {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 8px;
    font-weight: 500;
    line-height: 1.55;
}

.iv-feedback.is-correct {
    background: #e7f4e4;
    border: 1px solid #8ec282;
    color: #1b4415;
}

.iv-feedback.is-incorrect {
    background: #fdf0ef;
    border: 1px solid #e4a9a4;
    color: #7d231f;
}

.iv-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.iv-accessibility-box {
    background: #f4f7ee;
    border: 1px solid #dce6cf;
    border-radius: 8px;
    padding: 12px 16px;
}

.iv-accessibility-box summary {
    cursor: pointer;
    color: #2d5523;
    font-weight: 700;
}

.iv-file-fallback-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    background: linear-gradient(145deg, #243b1c 0%, #172612 100%);
    color: #f6f8f1;
    gap: 12px;
    z-index: 2;
}

.iv-file-fallback-overlay[hidden] {
    display: none;
}

.iv-file-fallback-overlay h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.22rem;
}

.iv-file-fallback-overlay p {
    margin: 0;
    max-width: 560px;
    color: #dce6cf;
    font-size: 0.95rem;
    line-height: 1.5;
}

.iv-file-fallback-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
}

.iv-btn-light {
    background: #ffffff;
    color: #1e3b17 !important;
    border: 1px solid #ffffff;
    border-radius: 8px;
    padding: 9px 16px;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
}

.iv-btn-light:hover {
    background: #eef4e5;
}

.iv-btn-outline-light {
    background: transparent;
    color: #ffffff !important;
    border: 1px solid #c5d9b2;
    border-radius: 8px;
    padding: 9px 16px;
    font-weight: 600;
    cursor: pointer;
}

.iv-btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
}
