/* Photo Player Styles */
.rw-system-photo-container {
    max-width: 1200px;
    margin: 0 auto;
}

.photo-player-container {
    width: 100%;
    aspect-ratio: 140 / 67;
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background: #f8f9fa;
    box-shadow: 5px 2rem 2.5rem rgb(67 66 66 / 45%);
}

.photo-player-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.photo-player-photo-container {
    width: 100%;
    height: 100%;
    position: relative;
    transform-origin: center center;
    transition: transform 1.5s ease-in-out;
}

.photo-player-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.photo-player-cursor {
    position: absolute;
    width: 2rem;
    height: 2rem;
    pointer-events: none;
    opacity: 0;
    z-index: 10;
    transition: opacity 0.3s ease-in;
}

.photo-player-textbox {
    position: absolute;
    background: rgba(67, 97, 238, 0.95);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    opacity: 0;
    z-index: 11;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease-in;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-width: 400px;
}

.photo-player-step-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03125rem;
    text-transform: uppercase;
    opacity: 0.9;
    line-height: 1;
}

.photo-player-text-content {
    font-size: 1rem;
    font-weight: 600;
    white-space: normal;
    line-height: 1.4;
}

.photo-player-textbox::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 1.25rem;
    width: 0;
    height: 0;
    border-left: 0.5rem solid transparent;
    border-right: 0.5rem solid transparent;
    border-top: 0.5rem solid rgba(67, 97, 238, 0.95);
}

/* Cover Page Overlay */
.photo-player-cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 5;
    transition: opacity 0.8s ease-in-out;
}

.photo-player-cover-title {
    font-size: 3rem;
    font-weight: 900;
    color: #1a1a1a;
    text-align: center;
    padding: 2rem;
    max-width: 90%;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Replay Button */
.photo-player-replay-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    background: #10b981;
    border: none;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 21;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.photo-player-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 19;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-player-wrapper.show-replay::after {
    opacity: 1;
}

.photo-player-replay-button:hover {
    background: #059669;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.5);
}

.photo-player-replay-button svg {
    color: white;
    transition: all 0.3s ease;
}

.photo-player-replay-button:hover svg {
    color: white;
}

.photo-player-replay-button span {
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.photo-player-replay-button:hover span {
    color: white;
}

/* Tablet and smaller screens */
@media (max-width: 1024px) {
    
    .photo-player-textbox {
        padding: 0.625rem 1rem;
        max-width: 400px
    }
    
    .photo-player-step-label {
        font-size: 0.6875rem;
    }
    
    .photo-player-text-content {
        font-size: 0.9375rem;
    }
    
    .photo-player-cover-title {
        font-size: 2.5rem;
    }
}

/* Mobile screens */
@media (max-width: 768px) {
    .rw-system-photo-container {
        padding: 0;
        max-width: 350px;
    }
    
    .photo-player-container {
        border-radius: 0.75rem;
                aspect-ratio: 16/10;
    }
    
    .photo-player-textbox {
        font-size: 0.875rem;
        padding: 0.5rem 0.875rem;
        max-width: 35%;
    }
    
    .photo-player-step-label {
        font-size: 0.35rem;
    }
    
    .photo-player-text-content {
        font-size: 0.7rem;
    }
    
    .photo-player-cursor {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .photo-player-textbox::after {
        bottom: -0.375rem;
        left: 1rem;
        border-left: 0.375rem solid transparent;
        border-right: 0.375rem solid transparent;
        border-top: 0.375rem solid rgba(67, 238, 104, 0.95);
    }
    
    .photo-player-cover-title {
        font-size: 2rem;
        padding: 1.5rem;
    }
    
    .photo-player-replay-button {
        width: 100px;
        height: 100px;
        padding: 1.25rem;
    }
    
    .photo-player-replay-button svg {
        width: 36px;
        height: 36px;
    }
    
    .photo-player-replay-button span {
        font-size: 0.75rem;
    }
}

/* Small mobile screens */
@media (max-width: 480px) {
    .rw-system-photo-container {
        padding: 0;
    }
    

    
    .photo-player-cover-title {
        font-size: 1.5rem;
        padding: 1rem;
    }
    
    .photo-player-replay-button {
        width: 90px;
        height: 90px;
        padding: 1rem;
    }
    
    .photo-player-replay-button svg {
        width: 32px;
        height: 32px;
    }
    
    .photo-player-replay-button span {
        font-size: 0.7rem;
    }
}
