/* ============================================
   OLDWEB - SWF-PLAYER.CSS
   ============================================
   Styles pour le lecteur de fichiers Flash Ruffle
   ============================================ */

#swfModal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#swfModal.visible {
    display: flex;
    opacity: 1;
}

#swfModalCard {
    position: relative;
    background: #111b29;
    border: 1px solid #1f2d3d;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

#swfModal.visible #swfModalCard {
    transform: scale(1);
}

#swfModalHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #0b1118;
    border-bottom: 1px solid #1f2d3d;
}

#swfModalTitle {
    color: #ecf0f1;
    font-family: Verdana, sans-serif;
    font-size: 14px;
    font-weight: bold;
}

#swfModalClose {
    background: none;
    border: none;
    color: #a0b4cc;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

#swfModalClose:hover {
    color: #fff;
}

#swfModalBody {
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    aspect-ratio: 550 / 400;
}

#swfPlayerContainer {
    width: 100%;
    height: 100%;
}

#swfPlayerContainer ruffle-player {
    width: 100%;
    height: 100%;
    display: block;
}

#swfModalFooter {
    text-align: right;
    padding: 4px 8px;
    background: #1a1a1a;
    border-top: 1px solid #333;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

#swfModalFooter button {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

#swfModalFooter button:hover {
    color: #fff;
    background: #333;
}

/* ── Support Plein Écran pour la modal Flash ── */
#swfModalCard:fullscreen {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    border-radius: 0;
    border: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#swfModalCard:fullscreen #swfModalBody {
    flex-grow: 1;
    aspect-ratio: auto;
    height: auto;
    width: 100%;
}

#swfModalCard:fullscreen #swfModalHeader,
#swfModalCard:fullscreen #swfModalFooter {
    border-radius: 0;
}
