* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000000;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-x: hidden;
}

.stats-box {
    position: absolute;
    top: 34px;
    left: calc(50% - 600px - 6px);
    width: 427px;
    height: 140px;
    border: 2px solid white;
    border-radius: 46px;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0 30px 20px 30px;
    gap: 15px;
    z-index: 150;
    user-select: none;
    -webkit-user-select: none;
}

.stats-number {
    font-family: 'RockStar', 'Impact', sans-serif;
    font-size: 90px;
    font-weight: 700;
    color: #E2C7FC;
    line-height: 1;
}

.stats-text {
    font-family: 'Play', 'Arial', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: white;
    line-height: 1.3;
    max-width: 120px;
    padding-bottom: 5px;
}

/* Кнопка выбора плана */
.plan-button {
    position: absolute;
    bottom: 46px;
    left: calc(50% - 600px + 9px);
    width: 331px;
    height: 52px;
    background: #CFF745;
    border: none;
    border-radius: 100px;
    font-family: 'RockStar', 'Impact', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #000000;
    cursor: pointer;
    transition: transform 0.2s ease;
    z-index: 150;
    user-select: none;
    -webkit-user-select: none;
}

.plan-button:hover {
    transform: scale(1.02);
}

.plan-button:active {
    transform: scale(0.98);
}

.container {
    position: relative;
    padding: 109px 0 127px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-player {
    position: relative;
    width: 1200px;
    max-width: 1200px;
    height: 736px;
    background: #2a2a2a;
    border-radius: 46px;
    overflow: hidden;
    flex-shrink: 0;
}

.video-player video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-player.locked video {
    filter: blur(20px);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.video-player.playing .video-overlay {
    opacity: 0;
}

.video-player.locked .video-overlay {
    display: none;
}

.play-button {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    cursor: pointer;
    transition: transform 0.3s ease;
    pointer-events: auto;
    color: #333;
    padding-left: 6px;
}

.play-button:hover {
    transform: scale(1.1);
}

.locked-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.video-player.locked .locked-message {
    display: flex;
}

.lock-icon-big {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
}

.locked-message p {
    color: white;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    padding: 0 40px;
    line-height: 1.4;
}

.wheel {
    position: absolute;
    left: calc(50% + 344px);
    top: 50%;
    transform: translateY(-50%);
    width: 231px;
    height: 834px;
    perspective: 1500px;
    flex-shrink: 0;
    z-index: 100;
}

.wheel-item {
    position: absolute;
    width: 231px;
    height: 240px;
    left: 50%;
    top: 50%;
    margin-left: -115.5px;
    margin-top: -120px;
    border-radius: 23px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3), 0 0 20px rgba(255, 255, 255, 0.3);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    user-select: none;
    -webkit-user-select: none;
}

.wheel-item-content {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    transform-style: preserve-3d;
}

.wheel-item.locked .wheel-item-content {
    filter: blur(8px);
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: all 0.4s ease;
}

.wheel-item.dimmed .overlay {
    background: rgba(0, 0, 0, 0.5);
}

.play-icon {
    position: absolute;
    width: 59px;
    height: 59px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 20;
    transition: all 0.3s ease;
}

.play-icon::before {
    content: '▶';
    margin-left: 3px;
    color: #333;
}

.wheel-item.active .play-icon {
    display: flex;
}

.wheel-item.active:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.15);
}

.lock-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 35px;
    display: none;
    z-index: 21;
}

.wheel-item.locked .lock-icon {
    display: block;
}

.wheel-item.locked .play-icon {
    display: none !important;
}

/* Информация о тренировке */
.workout-info {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    width: 90%;
}

.workout-info h3 {
    font-size: 16px;
    margin-bottom: 4px;
    font-weight: 700;
}

.workout-info p {
    font-size: 12px;
    opacity: 0.95;
}

@media (max-width: 768px) {
    body {
        overflow-y: auto;
        overflow-x: hidden;
    }

    .container {
        flex-direction: column;
        padding: 34px 10px;
        width: 100%;
        max-width: 500px;
    }

    .stats-box {
        position: relative;
        top: 0;
        left: 0;
        width: 267px;
        max-width: 267px;
        height: 88px;
        margin: 0 0 20px 0;
        padding: 0 20px 10px 20px;
        align-items: flex-end;
        gap: 10px;
    }

    .stats-number {
        font-size: 56px;
    }

    .stats-text {
        font-size: 8px;
        padding-bottom: 3px;
    }

    .video-player {
        position: relative;
        width: 100%;
        max-width: 373px;
        height: 418px;
        margin: 0 0 20px 0;
        border-radius: 15px;
    }

    .wheel {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        width: 100%;
        height: 140px;
        perspective: 800px;
        display: block;
        overflow: visible;
        padding: 0;
        margin: 0 0 55px 0;
    }

    .wheel-item {
        position: absolute;
        width: 119px;
        height: 123px;
        left: 50%;
        top: 50%;
        margin-left: -59.5px;
        margin-top: -61.5px;
        flex-shrink: 0;
        border-radius: 20px;
        transform-style: preserve-3d;
    }

    .wheel-item.locked .wheel-item-content {
        filter: blur(6px);
    }

    .wheel-item.dimmed .overlay {
        background: rgba(0, 0, 0, 0.4);
    }

    .play-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .play-icon::before {
        margin-left: 2px;
    }

    .lock-icon {
        width: 22px;
        height: 28px;
    }

    .workout-info {
        bottom: 10px;
    }

    .workout-info h3 {
        font-size: 12px;
        margin-bottom: 2px;
    }

    .workout-info p {
        font-size: 10px;
    }

    .plan-button {
        position: relative;
        bottom: 0;
        left: 0;
        width: 100%;
        max-width: 331px;
        margin: 0 auto;
    }
}
