/* PSC 메인 팝업 — 왼쪽 큰 이미지 + 오른쪽 이벤트명 목록(여러 개일 때) + 아래 오늘 하루 안보기.
   테마 색(--psc-*)이 있으면 그 색을 씁니다. */
.psc-pop { --pop-ease: cubic-bezier(.16, 1, .3, 1); --pop-side: 300px; position: fixed; inset: 0; z-index: 450; display: flex; align-items: center; justify-content: center; padding: 24px; }
.psc-pop[hidden] { display: none; }
html.psc-pop-open { overflow: hidden; }
.psc-pop__backdrop { position: absolute; inset: 0; background: rgba(12, 12, 11, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .45s; }
.psc-pop.is-open .psc-pop__backdrop { opacity: 1; }
.psc-pop__box {
	position: relative; display: grid; grid-template-columns: minmax(0, 1fr); width: min(960px, 100%); background: #141413; color: #fff;
	box-shadow: 0 40px 100px rgba(0, 0, 0, .45); overflow: hidden; opacity: 0; transform: translateY(26px) scale(.985); transition: opacity .55s var(--pop-ease), transform .7s var(--pop-ease);
}
.psc-pop.is-open .psc-pop__box { opacity: 1; transform: none; }
.psc-pop.is-multi .psc-pop__box { width: min(1260px, 100%); }
@media (min-width: 900px) { .psc-pop.is-multi .psc-pop__box { grid-template-columns: minmax(0, 1fr) var(--pop-side); } }

.psc-pop__stage { position: relative; aspect-ratio: 16 / 9; max-height: calc(100svh - 140px); overflow: hidden; background: #0d0d0c; }
.psc-pop__slide { position: absolute; inset: 0; visibility: hidden; z-index: 0; }
.psc-pop__slide a, .psc-pop__slide img { display: block; width: 100%; height: 100%; }
.psc-pop__slide img { object-fit: cover; }
.psc-pop__slide.is-active { visibility: visible; z-index: 2; animation: psc-pop-in .9s var(--pop-ease) both; }
.psc-pop__slide.is-leaving { visibility: visible; z-index: 1; }
.psc-pop__slide.is-active img { animation: psc-pop-zoom 6s ease-out both; }
@keyframes psc-pop-in { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes psc-pop-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }

.psc-pop__side { display: flex; flex-direction: column; min-width: 0; background: #1b1b19; border-top: 1px solid rgba(255, 255, 255, .08); }
@media (min-width: 900px) { .psc-pop__side { border-top: 0; border-left: 1px solid rgba(255, 255, 255, .08); max-height: calc(100svh - 140px); } }
.psc-pop__eyebrow { display: none; margin: 0; padding: 26px 26px 14px; font-family: var(--psc-serif, Georgia, serif); font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.psc-pop__eyebrow span { float: right; letter-spacing: .04em; font-variant-numeric: lining-nums tabular-nums; }
.psc-pop__eyebrow b { color: #fff; font-weight: 500; }
@media (min-width: 900px) { .psc-pop__eyebrow { display: block; } }
.psc-pop__list { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; scrollbar-width: none; }
.psc-pop__list::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .psc-pop__list { display: block; overflow-x: hidden; overflow-y: auto; padding: 0 12px 16px; flex: 1; } }
.psc-pop__list li { flex: 0 0 auto; opacity: 0; transform: translateX(24px); transition: opacity .6s var(--pop-ease), transform .8s var(--pop-ease); transition-delay: calc(.35s + var(--i, 0) * 80ms); }
.psc-pop.is-open .psc-pop__list li { opacity: 1; transform: none; }
.psc-pop__tab {
	position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: baseline; gap: 2px 8px; width: 100%; min-width: 190px; max-width: 260px;
	padding: 16px 18px 18px; background: none; border: 0; border-radius: 10px; color: rgba(255, 255, 255, .42); font: inherit; text-align: left; cursor: pointer; transition: color .3s, background .3s;
}
@media (min-width: 900px) { .psc-pop__tab { max-width: none; padding: 18px 14px 20px; } }
.psc-pop__tab:hover { color: rgba(255, 255, 255, .8); }
.psc-pop__tab.is-active { color: #fff; background: rgba(255, 255, 255, .06); }
.psc-pop__no { font-family: var(--psc-serif, Georgia, serif); font-size: 14px; letter-spacing: .04em; font-variant-numeric: lining-nums tabular-nums; }
.psc-pop__tab.is-active .psc-pop__no { color: color-mix(in srgb, var(--psc-accent, #7b9187) 60%, #fff); }
.psc-pop__txt { display: grid; gap: 4px; min-width: 0; }
.psc-pop__name { font-size: 15.5px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 900px) { .psc-pop__name { font-size: 17px; white-space: normal; } }
.psc-pop__sub { font-size: 12.5px; color: rgba(255, 255, 255, .45); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.psc-pop__tab.is-active .psc-pop__sub { color: rgba(255, 255, 255, .65); }
.psc-pop__bar { position: absolute; left: 18px; right: 18px; bottom: 8px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; opacity: 0; transition: opacity .3s; }
@media (min-width: 900px) { .psc-pop__bar { left: 14px; right: 14px; } }
.psc-pop__bar::after { content: ""; position: absolute; inset: 0; background: var(--psc-accent, #7b9187); transform: scaleX(0); transform-origin: left; }
.psc-pop__tab.is-active .psc-pop__bar { opacity: 1; }
.psc-pop.is-playing .psc-pop__tab.is-active .psc-pop__bar::after { animation: psc-pop-bar var(--pop-delay, 4.5s) linear forwards; }
.psc-pop.is-paused .psc-pop__tab.is-active .psc-pop__bar::after { animation-play-state: paused; }
@keyframes psc-pop-bar { to { transform: scaleX(1); } }

.psc-pop__foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 10px 0 20px; height: 54px; background: #0d0d0c; border-top: 1px solid rgba(255, 255, 255, .08); }
.psc-pop__today { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; color: rgba(255, 255, 255, .8); cursor: pointer; user-select: none; }
.psc-pop__today input { width: 16px; height: 16px; margin: 0; accent-color: var(--psc-accent, #7b9187); cursor: pointer; }
.psc-pop__x { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: none; border: 0; border-radius: 50%; color: #fff; cursor: pointer; transition: background .25s, transform .4s var(--pop-ease); }
.psc-pop__x:hover { background: rgba(255, 255, 255, .1); transform: rotate(90deg); }
@media (max-width: 559px) { .psc-pop { padding: 14px; } }
@media (prefers-reduced-motion: reduce) {
	.psc-pop__box, .psc-pop__list li, .psc-pop__backdrop { transition: none; }
	.psc-pop__slide.is-active, .psc-pop__slide.is-active img { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
	.psc-m__bg, .psc-m__box, .psc-m--side .psc-m__box { animation: none; }
}
