/**
 * HMVIP Player - Industrial Styles
 *
 * @version 2.0.0
 * @package hmvip-player
 */

/* Player Wrapper */
.hmvip-player-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

/* Loading State */
.hmvip-player-loading {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hmvip-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Spinner Animation */
.hmvip-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: hmvip-spin 0.8s linear infinite;
}

@keyframes hmvip-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Video Element */
.hmvip-video {
    width: 100%;
    max-width: 100%;
    display: block;
    background: #000;
}

/* Ready State */
.hmvip-player-ready .hmvip-video {
    border-radius: 8px;
}

/* Error State */
.hmvip-player-error {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.hmvip-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #ff6b6b;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-align: center;
    padding: 20px;
}

.hmvip-error-icon {
    font-size: 32px;
}

/* Fallback Video */
.hmvip-fallback {
    opacity: 0.9;
}

/* Ads Container */
.hmvip-ads-container {
    position: relative;
    width: 100%;
    min-height: 50px;
    background: rgba(0, 0, 0, 0.8);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hmvip-player-wrapper {
        border-radius: 0;
    }

    .hmvip-player-ready .hmvip-video {
        border-radius: 0;
    }

    .hmvip-loading {
        font-size: 13px;
    }

    .hmvip-spinner {
        width: 24px;
        height: 24px;
    }
}

/* BuddyBoss Activity Integration */
.activity-inner .hmvip-player-wrapper,
.bb-activity-media-wrap .hmvip-player-wrapper {
    margin: 10px 0;
}

/* Theatre Mode Support */
.bb-theatre-mode .hmvip-player-wrapper {
    border-radius: 0;
    height: 100%;
}

.bb-theatre-mode .hmvip-video {
    height: 100%;
    object-fit: contain;
}
