/* 이전 웹앱의 CSS 그대로 */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    width: 80%;
    max-width: 1200px;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    align-items: center;
    cursor: grab;
    user-select: none;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.card-list {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 20px;
}

.card {
    min-width: 200px;
    height: 300px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 모달 스타일 추가 */
.modal {
  display: none;
  position: fixed;
  inset: 0;               /* top:0; right:0; bottom:0; left:0; */
  z-index: 1000;
  background: rgba(0,0,0,0.85);  /* 진한 오버레이 */
  backdrop-filter: blur(8px);    /* 블러 효과 (지원 브라우저 많음) */
}

.modal-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.poster-full {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;     /* 비율 유지하면서 최대 크기 */
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  transition: transform 0.4s ease;
}

/* 포스터 블러 상태 */
.poster-full.blurred {
    filter: blur(12px);             /* 강도 조절 가능 (8~15px 추천) */
    -webkit-filter: blur(12px);     /* Safari 호환 */
    transition: filter 0.6s ease;
}

.modal-info {
    position: absolute;
    inset: 0;                       /* top/right/bottom/left: 0 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.4);    /* 약간 투명 배경 */
    -webkit-backdrop-filter: blur(4px);  /* frosted glass 효과 (약하게) */
    backdrop-filter: blur(4px);
    color: white;
    padding: 40px 20px;
    opacity: 0;
    pointer-events: none;           /* 초기엔 클릭 무시 */
    transition: opacity 0.6s ease;
    text-align: center;
}

.modal-info.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-info h2 {
    font-size: 2.5rem;
    margin: 0 0 1.2rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.modal-info p {
    font-size: 1.3rem;
    margin: 0.8rem 0;
    max-width: 80%;
}

/* 모바일에서 텍스트 크기/패딩 조정 */
@media (max-width: 768px) {
    .modal-info h2 { font-size: 2rem; }
    .modal-info p  { font-size: 1.1rem; }
    .modal-info    { padding: 30px 16px; }
}

.close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  text-shadow: 0 2px 10px black;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
