.tut-gate-video {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 5;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.tut-gate-video::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 32%, rgba(59, 130, 246, 0.18), transparent 26%),
        linear-gradient(180deg, rgba(6, 10, 20, 0.28) 0%, rgba(2, 6, 23, 0.72) 68%, rgba(2, 6, 23, 0.92) 100%);
    z-index: 1;
    pointer-events: none;
}

.tut-gate-video--active::before,
.tut-gate-video--plain::before {
    display: none;
}

.tut-gate-video iframe,
.tut-gate-video video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

.tut-gate-poster {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    pointer-events: none;
}

.tut-gate-poster-kicker {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tut-gate-poster-title {
    max-width: 78%;
    margin: 0 0 8px;
    color: #fff;
    font-size: 28px;
    line-height: 1.12;
    font-weight: 800;
    text-wrap: balance;
}

.tut-gate-poster-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.tut-gate-poster-chip {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.tut-gate-start {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.08) 0%, rgba(2, 6, 23, 0.42) 60%, rgba(2, 6, 23, 0.62) 100%);
}

.tut-gate-start[hidden] {
    display: none;
}

.tut-gate-play {
    position: relative;
    min-width: 98px;
    min-height: 98px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    cursor: pointer;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(8px);
}

.tut-gate-play::before {
    content: '';
    display: block;
    width: 0;
    height: 0;
    margin: 0 auto 0 40px;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 20px solid #fff;
}

.tut-gate-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 54px;
    padding: 0 18px 12px;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0) 0%, rgba(2, 6, 23, 0.78) 100%);
    pointer-events: none;
}

.tut-gate-controls::before {
    content: '';
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 14px solid rgba(255, 255, 255, 0.92);
}

.tut-gate-controls::after {
    content: '';
    flex: 1 1 auto;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
}

.tut-gate-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 0.04em;
}

.tut-gate-label {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 6;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.64);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tut-gate-loading {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.3) 0%, rgba(2, 6, 23, 0.84) 100%);
}

.tut-gate-spinner {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.12);
    border-top-color: #60a5fa;
    animation: tut-gate-spin 1s linear infinite;
}

.tut-gate-click {
    position: absolute;
    inset: 0;
    z-index: 5;
}

.tut-gate-click[hidden] {
    display: none;
}

.tut-gate-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 7;
    height: 6px;
    background: rgba(255, 255, 255, 0.14);
}

.tut-gate-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #22c55e 100%);
    transition: width 0.25s linear;
}

.tut-gate-restriction {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.3) 0%, rgba(2, 6, 23, 0.88) 100%);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.tut-gate-card {
    width: min(720px, 100%);
    padding: 24px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 16, 28, 0.88);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
    color: #fff;
}

.tut-gate-pill {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.tut-gate-pill.warn {
    background: rgba(245, 158, 11, 0.14);
    color: #fcd34d;
}

.tut-gate-pill.neutral {
    background: rgba(59, 130, 246, 0.16);
    color: #93c5fd;
}

.tut-gate-card h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 30px;
    line-height: 1.15;
}

.tut-gate-card p {
    margin: 0 0 14px;
    color: #cfdbeb;
}

.tut-gate-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.tut-gate-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    text-decoration: none;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.tut-gate-actions .primary {
    background: #3b82f6;
    border-color: transparent;
}

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

@media (max-width: 640px) {
    .tut-gate-play {
        min-width: 78px;
        min-height: 78px;
    }

    .tut-gate-play::before {
        margin-left: 31px;
        border-top-width: 10px;
        border-bottom-width: 10px;
        border-left-width: 16px;
    }

    .tut-gate-controls {
        min-height: 48px;
        padding: 0 14px 10px;
        gap: 10px;
    }

    .tut-gate-poster {
        padding: 16px;
    }

    .tut-gate-poster-title {
        max-width: 100%;
        font-size: 20px;
    }

    .tut-gate-restriction {
        padding: 14px;
        align-items: flex-start;
    }

    .tut-gate-card {
        padding: 16px;
        border-radius: 16px;
    }

    .tut-gate-card h2 {
        font-size: 22px;
    }
}
