@charset "UTF-8";

/* ========== 쇼츠 리스트 */
.short-list-section {
	margin: 99px auto 120px
}
.shorts-title {
	margin-bottom: 40px;
	display:flex;
	align-items:center;
	gap: 8px;
	color: var(--On-Color-Black-High-Emphasis, #1A1E27);
	font-size: 26px;
	font-weight: 600;
	line-height: 28px; /* 107.692% */
}

.feed-container {
    max-width: 100%;
    margin: 0 auto 128px;
}
.feed {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px 14px;
    background-color: var(--color-border);
    max-width: 100%;
}

.post {
    aspect-ratio: 1;
    background: white;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.4s ease-out;
}
.feed-item {
	width: 100%
}
.post-image {
    /* width: 100%;
    height: 100%; */
    aspect-ratio: 9/16;
    background: #eee;
    border-radius: 12px;
    overflow: hidden;
}
.post-image a,
.post-image img{
	display:block;
	width: 100%;
	height: 100%;
}
.shorts-item-title {
	margin: 6px 0;
	overflow: hidden;
	color: var(--Black-800, #353941);
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 18px;
	font-weight: 500;
	line-height: 125%; /* 22.5px */
}
/* ========== //쇼츠 리스트 끝 */


/* ========== 쇼츠 상세 */
.shorts-detail-section {
	position:relative;
	margin-bottom: 100px
}
#shorts-detail-wrapper {
	display:flex;
	justify-content:center;
	/* width: 412px; */
	margin: 0px auto 0;
	padding-top: 32px;
	position: relative;
	height: calc(100vh - 59px);
	overflow-y: scroll;
	scroll-snap-type: y mandatory; /* 세로 방향 자석 스크롤 활성화 */
	scroll-padding-top: 32px;
	scrollbar-width: none;
}
#shorts-video-container{
	/* visibility: hidden; */
	height: 100%;
	opacity: 0;
    transition: opacity 0.15s ease;
}
.shorts-btn-box {
	position:absolute;
	left:50%;
	top: 12px;
	transform:translateX(-50%);
	z-index: 999;
	display:flex;
	align-items:center;
	justify-content: space-between;
	width:412px;
	padding: 12px;
	box-sizing: border-box;
}
.btn-shorts {
	display:flex;
	align-items:center; 
	justify-content:center;
	width: 48px;
	height: 48px;
	border-radius: 9999px;
	background: rgba(26, 30, 39, 0.22);
	backdrop-filter: blur(3px);
	border: none;
	box-sizing: border-box;
}
.shorts-section {
	position:relative;
	width: 100%;
	height: calc(100% - 126px); /* 각 섹션은 화면을 꽉 채움 */
	margin-bottom: 32px;
	scroll-snap-align: start; /* 스크롤이 끝날 때 섹션의 시작점에 고정 */
	scroll-snap-stop: always;  /* 스크롤 한 번에 한 섹션씩 넘어가도록 유도 */
	/* display: flex;
    justify-content: center;
    align-items: center; */
}
.video-placeholder {
	position:relative;
	width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.shorts-thumbnail {
    position: absolute;
    left: 0;
    top: 0;
    object-fit: cover;
    border: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 12px;
    opacity: 1;
    transition: opacity 0.3s ease;
}
video {
    /* width: 100%; */
    height: 100%; 
    max-width:100%;
    object-fit: cover; /* 영상이 화면에 꽉 차게 */
    aspect-ratio: 9/16;
    border-radius: 12px;
    overflow: hidden;
}
.shorts-fixed-info {
	position: absolute;
	left: 12px;
	right:12px;
	bottom:28px;
	max-width: 100%;
}

.shorts-fixed-info .shorts-user-name {
	margin:0 0 10px;
	display: flex;
	align-items:center;
	gap:10px;
	color: var(--On-Color-White-White, #FFF);
	font-size: 15px;
	font-weight: 700;
	line-height: 125%; /* 18.75px */
}
.shorts-user-name .shorts-user-img-box{
	display: flex;
	width: 26px;
	height: 26px;
	padding: 4px;
	justify-content: center;
	align-items: center;
	aspect-ratio: 1/1;
	border-radius: 9999px;
	background: #FFF;
	box-sizing:border-box
}
.shorts-fixed-info .shorts-detail-title {
	margin:0;
	overflow: hidden;
	color: var(--On-Color-White-White, #FFF);
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 18px;
	font-weight: 500;
	line-height: 120%;
}
.shorts-right-menu {
	display:flex;
	flex-direction: column;
	align-items:center;
	justify-content: center;
	gap:20px;
	position:absolute;
	left:calc(100% + 12px);
	bottom: 0;
	width: 48px
}
.shorts-menu:hover,
.shorts-menu:focus {
	text-decoration: none;
}
.shorts-menu:hover .shorts-menu-icon-box {
	background-color:#ebebeb
} 
.shorts-menu-icon-box {
	display: flex;
	width: 48px;
	height: 48px;
	justify-content: center;
	align-items: center;
	border-radius: 9999px;
	background: var(--Black-50, #F5F6F8);
	transition:background .3s
}
.shorts-menu img{
	max-width: 100%;
}
.shorts-menu .shorts-menu-name{
	margin-top: 6px;
	display: block;
	text-align:center;
	color: var(--On-Color-White-White, #353941);
	font-size: 13px;
	font-weight: 600;
	line-height: 125%; /* 16.25px */
	width:100%
}
.benefit-cont {
	margin-top: 12px
}
.benefit-cont a {
	padding: 10px 25px 10px 10px;
	display:flex;
	align-items:center;
	gap: 10px;
	border-radius: 12px;
	background: url('/img/icon/icon-arrow-right-w.svg') rgba(81, 84, 91, 0.62) no-repeat;
	background-size: 6px 12px;
	background-position: calc(100% - 10px) center;
}
.benefit-cont  a:hover,
.benefit-cont  a:focus{
	text-decoration: none
}
.benefit-cont  a img{width: 110px}
.benefit-cont .benefit-desc {
	margin:0;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	line-height: 130%;
} 
/* ========== //쇼츠 상세 끝 */

/* 로딩바 */
.load-indicator {
    text-align: center;
    padding: 48px;
    grid-column: 1 / -1;
    display: none;
}

.load-indicator.active {
    display: block;
}

.spinner {
    display: inline-block;
    width: 60px;
    height: 60px;
    border: 6px solid #DBDBDB;
    border-top-color: #0095F6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* footer */
.shorts-footer .footer-new {
	padding-left:0;
	padding-right:0;
}