@charset "UTF-8";

.tvcm-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background-color: var(--color-background-placeholder);
    background-position: center;
    background-size: cover;
    cursor: pointer;
}

.tvcm-video::before {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: 80px;
    height: 56px;
    border-radius: 23%;
    background: #f00;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    content: "";
    transform: translate(-50%, -50%);
    transition: background 0.15s;
}

.tvcm-video::after {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 0;
    height: 0;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-left: 22px solid #fff;
    content: "";
    transform: translate(-35%, -50%);
}

.tvcm-video:hover::before {
    background: #e60000;
}

.tvcm-video.playing {
    cursor: default;
}

.tvcm-video.playing::before,
.tvcm-video.playing::after {
    display: none;
}

.tvcm-video iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.cm-block .cm-head {
    margin-bottom: 22px;
    color: var(--color-brand-primary-dark);
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-align: center;
}

.cm-block .tvcm-video {
    max-width: 520px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.1);
}

@media (max-width: 767px) {
    .tvcm-video::before {
        width: 54px;
        height: 38px;
    }

    .tvcm-video::after {
        border-top-width: 9px;
        border-bottom-width: 9px;
        border-left-width: 15px;
    }

    .cm-block .cm-head {
        margin-bottom: 16px;
        font-size: 19px;
    }
}
