/**
 * Demo Player Styles
 * Lazy-load click-to-play demo player for slot reviews
 */

.demo-player-container {
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin: 2rem auto;
}

.demo-player-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #1a1a1a;
    border-radius: 8px;
}

.demo-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.demo-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    transition: background 0.3s ease;
}

.demo-thumbnail:hover::before {
    background: rgba(0, 0, 0, 0.3);
}

.demo-play-button {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    border: none;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.demo-play-button:hover,
.demo-play-button:active {
    background: #fff;
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.demo-disclaimer {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: #fff;
    font-size: 0.75rem;
    text-align: center;
    padding: 0 20px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    max-width: 90%;
}

.demo-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: none;
}

.demo-iframe.loaded {
    display: block;
}

/* Mobile Portrait */
@media (max-width: 768px) {
    .demo-player-wrapper {
        padding-bottom: 0;
        height: calc(100vw * 1.78); /* Mobile portrait: width * (639/359) */
        max-height: 85vh;
    }

    .demo-player-container {
        margin: 1rem 0;
        max-width: 100%;
        padding: 0;
    }

    .demo-play-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .demo-disclaimer {
        font-size: 0.65rem;
        bottom: 10px;
        padding: 0 10px;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) and (orientation: landscape) {
    .demo-player-wrapper {
        padding-bottom: 56.25%;
        height: 0;
        max-height: none;
    }

    .demo-player-container {
        margin: 1rem auto;
    }
}
