/* 화면 가운데 정렬용 */
.video-center {
    display: flex;
    justify-content: center;
}

/* 비디오 래퍼 */
.vimeo-wrapper {
    position: relative;
    width: 100%;
    max-width: 1280px;

    aspect-ratio: 16 / 9;
    max-height: 720px;

    background: #000;
    overflow: hidden;
}

/* iframe & 썸네일 공통 */
.vimeo-wrapper iframe,
.vimeo-thumb {
    width: 100%;
    height: 100%;
}

/* 썸네일 */
.vimeo-thumb {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 3;
}

/* iframe */
.vimeo-wrapper iframe {
    position: relative;
    z-index: 1;
}

/* 재생 버튼 */
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 48px;

    background: rgba(0,0,0,0.8);
    border-radius: 14px;
    border: none;

    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: background 0.2s ease;
}

/* hover 효과 */
.play-btn:hover {
    background: rgba(0,0,0,0.9);
}

/* ▶ 아이콘 */
.play-btn::before {
    content: '';
    margin-left: 3px;
    width: 0;
    height: 0;

    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent #fff;
}

/* 우측 하단 버튼 래퍼 */
.corner-controls {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: flex;
    gap: 6px;
    z-index: 20;
}

/* 공통 버튼 스타일 */
.corner-controls button {
    width: 36px;
    height: 30px;
    background: rgba(0,0,0,0.75);
    border-radius: 6px;
    border: none;
    cursor: pointer;
    position: relative;
    transition: background 0.2s ease;
}

.corner-controls button:hover {
    background: rgba(0,0,0,0.9);
}

/* ▶ 작은 창 (PiP) 아이콘 */
.pip-btn::before {
    content: '';
    position: absolute;
    inset: 7px 10px 11px 6px;
    border: 2px solid #fff;
    border-radius: 2px;
}

.pip-btn::after {
    content: '';
    position: absolute;
    right: 7px;
    bottom: 7px;
    width: 8px;
    height: 6px;
    border: 2px solid #fff;
    background: #000;
}

/* ⤢ 전체화면 아이콘 */
.fullscreen-btn::before,
.fullscreen-btn::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border: 2px solid #fff;
}

.fullscreen-btn::before {
    top: 6px;
    left: 6px;
    border-right: none;
    border-bottom: none;
}

.fullscreen-btn::after {
    bottom: 6px;
    right: 6px;
    border-left: none;
    border-top: none;
}

/* 버튼 기본 상태: 숨김 */
.play-btn,
.corner-controls {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.4s ease;
}

.vimeo-wrapper.playing:not(:hover) .play-btn,
.vimeo-wrapper.playing:not(:hover) .corner-controls {
    opacity: 0;
    pointer-events: none;
}

/* 마우스 올리면 표시 */
.vimeo-wrapper:hover .play-btn,
.vimeo-wrapper:hover .corner-controls {
    opacity: 1;
    pointer-events: auto;
}

/* ▶ 재생 아이콘 (기본) */
.play-btn::before {
    content: '';
    margin-left: 3px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent #fff;
}

/* ❚❚ 일시정지 아이콘 (재생 중) */
.vimeo-wrapper.playing .play-btn::before {
    content: '';
    margin-left: 0;
    width: 14px;
    height: 18px;
    background: none;
    border: none;
    position: relative;
}

.vimeo-wrapper.playing .play-btn::before,
.vimeo-wrapper.playing .play-btn::after {
    content: '';
    position: absolute;
    top: 15px;
    width: 4px;
    height: 18px;
    background: #fff;
}

.vimeo-wrapper.playing .play-btn::before {
    left: 22px;
}

.vimeo-wrapper.playing .play-btn::after {
    left: 32px;
}
