* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    font-family: Arial, Helvetica, sans-serif;
}

.video-stage {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.video-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
    opacity: 0;
    transition: opacity 0.18s linear;
    pointer-events: none;
}

.video-layer.active {
    opacity: 1;
}

.status-message {
    position: fixed;
    z-index: 20;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 18px 24px;
    border-radius: 12px;
    text-align: center;
    font-size: 18px;
    max-width: 90%;
    line-height: 1.4;
}

.start-button {
    position: fixed;
    z-index: 30;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 14px 28px;
    font-size: 16px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: 0.2s ease;
}

.start-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hidden {
    display: none !important;
}

.video-controls {
    position: fixed;
    z-index: 35;
    right: 20px;
    bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.video-control-btn {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 12px 18px;
    font-size: 15px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: 0.2s ease;
}

.video-control-btn:hover {
    background: rgba(255, 255, 255, 0.22);
}

.video-control-btn:active {
    transform: scale(0.98);
}

.video-control-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.tv-prompt-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
}

.tv-prompt-box {
    width: 100%;
    max-width: 420px;
    background: rgba(10, 10, 10, 0.88);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    padding: 28px 22px;
    text-align: center;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

.tv-prompt-box h2 {
    font-size: 28px;
    margin-bottom: 12px;
}

.tv-prompt-box p {
    font-size: 17px;
    line-height: 1.5;
    opacity: 0.95;
    margin-bottom: 20px;
}

.tv-prompt-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.tv-btn {
    min-width: 130px;
    border: none;
    border-radius: 999px;
    padding: 13px 22px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s ease;
}

.tv-btn.primary {
    background: #ffffff;
    color: #000;
}

.tv-btn.primary:hover {
    background: #e9e9e9;
}

.tv-btn.secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.tv-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.20);
}

.open-tv-button {
    position: fixed;
    z-index: 40;
    right: 20px;
    bottom: 20px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 999px;
    padding: 12px 20px;
    font-size: 15px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: 0.2s ease;
}

.open-tv-button:hover {
    background: rgba(255, 255, 255, 0.20);
}

@media (max-width: 768px) {
    .status-message {
        font-size: 16px;
        padding: 16px 18px;
    }

    .start-button {
        bottom: 84px;
        padding: 12px 22px;
        font-size: 15px;
    }

    .video-controls {
        left: 50%;
        right: auto;
        bottom: 18px;
        transform: translateX(-50%);
        justify-content: center;
        width: calc(100% - 24px);
    }

    .video-control-btn {
        flex: 1 1 auto;
        min-width: 135px;
        font-size: 14px;
        padding: 12px 16px;
    }

    .tv-prompt-box {
        padding: 24px 18px;
        border-radius: 16px;
    }

    .tv-prompt-box h2 {
        font-size: 24px;
    }

    .tv-prompt-box p {
        font-size: 16px;
    }

    .open-tv-button {
        right: 12px;
        bottom: 16px;
        font-size: 14px;
        padding: 11px 16px;
    }
}