#shorts-container {
    height:100dvh !important;
}

#shorts-container {
    position: relative;
    height: calc(100dvh - 58px);
    overflow: hidden;
    background: #000;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
}

video::-webkit-media-controls {
    display:none !important;
}
video::-webkit-media-controls-enclosure {
    display:none !important;
}
video::-webkit-media-controls-play-button {
    display:none !important;
}

#shorts-container .category {
    position: fixed;
    top: 20px;
    z-index: 2000;
    font-size: 16px;
    width: 100%;
    text-align: center;
    text-shadow:
    0 0 6px rgba(0,0,0,0.8);
}
#shorts-container .category a {
    color: #fff;
    margin-left: 8px;
    margin-right: 8px;
    text-decoration-line: none;
}
#shorts-container .category a.on {
    color: #ed5f5f;
    font-weight: bold;
}

#shorts-overlay {
    position: fixed;
    inset: 0;
    z-index: 2500;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
}
#shorts-overlay .overlay-inner {
    color: #fff;
    font-size: 15px;
    text-align: center;
    padding: 12px 18px;
    border-radius: 10px;
    background: rgba(0,0,0,0.8);
    line-height: 1.6;
}

.short {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: #000;
    overscroll-behavior-y: contain;
}

.short .video_wrap {
    position: relative;
    height: 100%;
    width: 100%;
}

.short .video_wrap video,
.short .video_wrap img.thumb {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
    display: block;
}


.short .video_wrap .title {
    position: absolute;
    left: 8px;
    bottom: 124px;
    z-index: 3000;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
    width: 100%;
}

.short .video_wrap .title a {
    color: #fff;
    font-size: 18px;
    margin-right: 21px;
    display: block;
    width: 66%;
}

.playPauseIcon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    z-index: 3000;
    pointer-events: none;
    display: none;
}
.playPauseIcon img {
    width: 100%;
    height: 100%;
    display: block;
}

.shortActions {
    position: absolute;
    right: 10px;
    bottom: 167px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 3000;
}
.shortBtn {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    font-size: 11px;
}
.shortBtn .icon {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}
.shortBtn .icon img {
    width: 24px;
    height: 24px;
    display: block;
}
.shortBtn .label {
    text-shadow: 0 0 3px rgba(0,0,0,0.7);
}

.customControls {
    position: absolute;
    left: 0;
    bottom: 45px;
    width: 100%;
    z-index: 3000;
    padding: 18px 14px;
    box-sizing: border-box;
}
.customProgressBar {
    width: 100%;
    height: 4px;
    padding: 16px 0px;
    /* background: rgba(255,255,255,0.2); */
    border-radius: 2px;
    overflow: hidden;
}
.customProgressFill {
    width: 0;
    height: 100%;
    background: #ff5252;
}

.customPreview {
    position: absolute;
    bottom: 100%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    width: 103px;
    height: 164px;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
    pointer-events: none;
    z-index: 10;
    border: 1px solid #fff;
}

.customPreview .previewImage {
    width: 100%;
    height: 120px;
    margin-top: 20px;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
}
.customPreview .previewTime {
    margin-top: 2px;
    text-align: center;
    font-size: 18px;
    color: #fff;
    position: absolute;
    text-shadow: 0 0 4px rgba(0, 0, 0, .8);
    bottom: 4px;
    text-align: center;
    width: 100%;
    z-index: 100p;
}

.video_wrap .btn_wrap {
    position: absolute;
    bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    width: 100%;
}
.video_wrap .btn_wrap a img{
    height: 14px;
    margin-right: 4px;
}
.video_wrap .btn_wrap a {
    background-color: #fe2239 !important;
    height: 44px;
    width: 145px;
    line-height: 44px;
    text-align: center;
    border-radius: 5px;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
}

#toastLayer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,.75);
    padding: 16px 24px;
    color: #fff;
    border-radius: 12px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}
#toastLayer .toast-box {
    color: #fff;
}

#toastLayer.show {
    opacity: 1;
}

/* 비디오 로딩 스피너 */
.videoLoader {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #ffffff;
    animation: shortSpin 0.8s linear infinite;
    z-index: 3100;
    display: block;
}
#nowPlayBtn, #HDDownBtn, #HDPlay {
    background-image: unset !important;
    text-decoration: none !important;
    text-indent: unset !important
}


@keyframes shortSpin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}


.customControls,
.customProgressBar,
.customProgressFill,
.customPreview {
    -webkit-user-select: none;      /* iOS Safari 텍스트 선택 금지 */
    user-select: none;
    -webkit-touch-callout: none;    /* 길게 눌렀을 때 "복사" 메뉴 금지 */
    -webkit-tap-highlight-color: rgba(0,0,0,0); /* 탭 하이라이트 제거 */
    touch-action: none;             /* 브라우저 제스처(스크롤/줌) 막기 */
}