@charset "UTF-8";

/* ===== 쇼츠 리스트 */
.shorts-title-area {
	margin-top: 98px;
	padding: 48px 32px;
	
}
.shorts-title {
	color: var(--Black-800, #353941);
	font-size: 38px;
	font-weight: 600;
	line-height: 135%;
}
.shorts-title img{
	display: block;
	margin-bottom: 16px;
}
.shorts-title .point {
	color:#1EB99D;
	font-size:inherit;
	font-weight: inherit;
}
.feed-container {
    max-width: 100%;
    margin: 0 auto 128px;
}
.feed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    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;
}

.post-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 9/16;
    background: #eee;
}
.post-image a,
.post-image img{
	width: 100%;
	height: 100%;
}
.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); }
}


/* ===== 쇼츠 상세 */
#shorts-video-container{
	/* visibility: hidden; */
	height: 100vh;
	opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

#shorts-detail-wrapper {
	position: relative;
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory; /* 세로 방향 자석 스크롤 활성화 */
    -webkit-overflow-scrolling: touch;
    background:#000;
}
.btn-shorts {
	position:fixed;
	top: 16px;
	z-index: 99;
	display:flex;
	align-items:center; 
	justify-content:center;
	width: 96px;
	height: 96px;
	border-radius: 9999px;
	background: rgba(26, 30, 39, 0.22);
	backdrop-filter: blur(3px);
	border: none;
	box-sizing: border-box;
}
.btn-shorts.btn-shorts-prev {
	left: 24px;
}
.btn-shorts.btn-shorts-sound {
	right: 24px;
}
.shorts-section {
	position:relative;
    width: 100%;
    height: 100vh; /* 각 섹션은 화면을 꽉 채움 */
    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
}
.benefit-active .video-placeholder {
	height: calc(100vh - 224px);
}
video {
    /* width: 100%; */
    height: 100%; 
    max-width:100%;
    /* object-fit: cover; 영상이 화면에 꽉 차게 */
    aspect-ratio: 9/16;
}
.benefit-active video {
	/* width: unset; */
}
.shorts-fixed-info {
	position: absolute;
	left: 24px;
	bottom:56px;
	width:634px;
	max-width: 100%;
}
.benefit-active .shorts-fixed-info {
	bottom: 0
}
.shorts-fixed-info .shorts-user-name {
	margin:0 0 20px;
	display: flex;
	align-items:center;
	gap:8px;
	color: var(--On-Color-White-White, #FFF);
	font-size: 30px;
	font-weight: 700;
	line-height: 125%; 
}
.shorts-user-name .shorts-user-img-box{
	display: flex;
	width: 52px;
	height: 52px;
	padding: 8px;
	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: 30px;
	font-weight: 500;
	line-height: 125%;
}
.shorts-right-menu {
	display:flex;
	flex-direction: column;
	align-items:center;
	justify-content: center;
	gap:40px;
	position:absolute;
	right:24px;
	bottom: 56px;
	width: 70px
}
.shorts-right-menu.benefit-active {
	bottom:0;
}
.shorts-menu {
	width: 100%;
	font-size:0;
}
.shorts-menu:hover,
.shorts-menu:focus {
	text-decoration: none;
}
.shorts-menu img{
	display:block;
	margin: 0 auto;
}
.shorts-menu .shorts-menu-name{
	margin-top: 6px;
	display: block;
	text-align:center;
	color: var(--On-Color-White-White, #FFF);
	font-size: 26px;
	font-weight: 600;
	line-height: 125%;
	white-space: nowrap;
	width:100%
}
.benefit-cont  a {
	margin: 24px 24px 56px;
	padding: 20px 64px 20px 20px;
	display:flex;
	align-items:center;
	gap: 20px;
	border-radius: 12px;
	background: url('/img/icon/icon-arrow-right-w.svg') rgba(81, 84, 91, 0.62) no-repeat;
	background-size: 12px 24px;
	background-position: calc(100% - 28px) center;
}
.benefit-cont  a:hover,
.benefit-cont  a:focus{
	text-decoration: none
}
.benefit-cont .benefit-desc {
	margin:0;
	color: #fff;
	font-size: 28px;
	font-weight: 500;
	line-height: 130%;
} 

/* 토스트 메시지 */
.copy-toast {
	position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    color: #262626;
    padding: 12px 20px;
    border-radius: 9999px;
    z-index: 9999;
    font-size: 28px;
}