html {
  scroll-behavior: smooth;
}
/* 1. 폰트 불러오기 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@200;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100;300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nanum+Myeongjo:wght@400;700;800&family=Nanum+Gothic:wght@400;700&family=Noto+Serif+KR:wght@200;400;700&display=swap');

/* 2. 기본 설정 & 스크롤바 */
body {
  background: #050505;
  color: #eaeaea;
  font-family: 'Noto Serif KR', serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 스크롤바 커스텀 */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-thumb { background-color: #444; border-radius: 6px; border: 3px solid #050505; }
::-webkit-scrollbar-track { background-color: #050505; }
::-webkit-scrollbar-thumb:hover { background-color: #777; }

/* 3. 헤더 (Header) */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  box-sizing: border-box;
  z-index: 100;
}

header h1 { font-size: 20px; letter-spacing: 6px; }
header h1 a { color: #eaeaea; text-decoration: none; }
header h1 a:hover { opacity: 0.8; }

nav a {
  color: #eaeaea;
  margin-left: 20px;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 2px;
  opacity: 0.7;
}
nav a:hover { opacity: 1; }

/* 4. 메인 화면 & 인트로 */
.main {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding-top: 80px;
  text-align: center;
  position: relative;
}

/* 타자기 효과 */
@keyframes blink-caret { from, to { border-color: transparent } 50% { border-color: #eaeaea; } }
@keyframes typing { from { width: 0 } to { width: 100% } }

.typing-effect {
  overflow: hidden;
  border-right: 2px solid #eaeaea;
  white-space: nowrap;
  margin: 0 auto;
  letter-spacing: 0.15em;
  animation: typing 3.5s steps(30, end), blink-caret .75s step-end infinite;
  display: inline-block;
}

/* 스크롤 유도 화살표 */
.scroll-indicator { position: absolute; bottom: 50px; left: 50%; transform: translateX(-50%); }
.scroll-indicator span {
  display: block; width: 20px; height: 20px;
  border-bottom: 2px solid #fff; border-right: 2px solid #fff;
  transform: rotate(45deg); margin: -10px;
  animation: scroll-animate 2s infinite;
}
.scroll-indicator span:nth-child(2) { animation-delay: 0.2s; }
.scroll-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes scroll-animate {
  0% { opacity: 0; transform: rotate(45deg) translate(-20px, -20px); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: rotate(45deg) translate(20px, 20px); }
}

/* 5. About 페이지 */
.about-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 16px;
}
.about-tag { font-size: 15px; color: #aaa; margin-top: 20px; }

/* 6. Footer */
footer { text-align: center; padding: 40px 0; color: #aaa; font-size: 12px; }

/* 7. 앨범 슬라이더 (Album Slider) */
.album-slider {
  width: 100%; max-width: 420px; margin: 0 auto; position: relative;
  padding: 120px 0 60px 0; min-height: 80vh;
  display: flex; flex-direction: column; justify-content: center;
}
.slider-container { width: 100%; overflow: hidden; }
.slider-track { display: flex; transition: transform 0.5s ease; }
.album-item { flex: 0 0 100%; box-sizing: border-box; text-align: center; padding: 30px; }
.album-item img {
  width: 100%; height: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  cursor: pointer; transition: transform 0.4s ease, box-shadow 0.4s ease;
}
/* 앨범 커버 Hover 효과 */
.album-item:hover { position: relative; z-index: 50; }
.album-item img:hover {
  transform: scale(1.1); box-shadow: 0 40px 80px rgba(0,0,0,0.8);
  position: relative; z-index: 100;
}
.prev, .next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.6); border: none; color: #fff;
  font-size: 20px; padding: 10px 14px; cursor: pointer;
  border-radius: 50%; z-index: 10;
}
.prev { left: -10px; } .next { right: -10px; }

/* 앨범 트랙 리스트 (글씨 그라데이션) */
.album-item ul { padding: 0; list-style: none; }
.album-item ul li { margin: 8px 0; }
.album-item ul li a {
  color: #ffffff; text-decoration: none; font-size: 14px; transition: all 0.3s ease;
}
.album-item ul li a:hover {
  background: linear-gradient(to right, #ff0000, #ffa500);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; text-shadow: 0px 0px 10px rgba(255, 69, 0, 0.3);
}

/* 8. 앨범 소개 모달(팝업) */
.modal {
  display: none; position: fixed; z-index: 9999;
  left: 0; top: 0; width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.85); backdrop-filter: blur(5px);
  align-items: center; justify-content: center; animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { to { opacity: 1; } }
.modal-content {
  background-color: #111;
  border: 1px solid #333;
  padding: 40px;
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
  position: relative;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);

  /* ▼▼▼ 여기를 추가/수정했습니다 ▼▼▼ */
  max-height: 80vh;  /* 화면 높이의 80%까지만 커지게 제한 */
  overflow-y: auto;  /* 내용이 넘치면 세로 스크롤바 생성 */
}

/* 팝업창 안에 생기는 스크롤바도 예쁘게 꾸미기 */
.modal-content::-webkit-scrollbar {
  width: 8px;
}
.modal-content::-webkit-scrollbar-thumb {
  background-color: #555;
  border-radius: 4px;
}
.modal-content::-webkit-scrollbar-track {
  background-color: transparent;
}
.close-btn {
  position: absolute; top: 15px; right: 20px; color: #aaa;
  font-size: 28px; font-weight: bold; cursor: pointer;
}
#modal-title { margin-top: 0; color: #fff; font-family: 'Noto Serif KR', serif; font-size: 24px; margin-bottom: 20px; }
#modal-text { color: #ddd; font-family: 'Noto Sans KR', sans-serif; font-size: 15px; line-height: 1.8; word-break: keep-all; }

/* 9. Writing (글 목록) */
.writing-section { max-width: 800px; margin: 0 auto; padding: 120px 20px 60px; min-height: 80vh; }
.intro-text { text-align: center; margin-bottom: 60px; }
.writing-card {
  background-color: rgba(255, 255, 255, 0.03); padding: 30px; margin-bottom: 20px;
  border-radius: 4px; border-left: 2px solid transparent;
  cursor: pointer; transition: all 0.3s ease;
}
.writing-card:hover {
  background-color: rgba(255, 255, 255, 0.08); border-left: 2px solid #eaeaea;
  transform: translateX(10px);
}
.writing-card .date { display: block; font-size: 12px; color: #666; margin-bottom: 8px; }
.writing-card h3 { margin: 0 0 15px 0; font-size: 20px; font-weight: normal; }
.writing-card .preview {
  font-size: 14px; color: #aaa; line-height: 1.6; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* 10. Reading (글 읽기) & 좋아요 버튼 */
.read-container { max-width: 700px; margin: 0 auto; padding: 140px 20px 80px; min-height: 80vh; }
.read-header { text-align: center; margin-bottom: 50px; }
.read-date { display: block; font-size: 13px; color: #888; margin-bottom: 10px; }
.read-header h2 { font-size: 28px; font-weight: normal; margin: 0 0 20px 0; }
.line { width: 40px; height: 1px; background: #444; margin: 0 auto; }
.read-content { font-size: 16px; line-height: 1.8; color: #ddd; text-align: justify; }
.read-content p { margin-bottom: 20px; }

.back-btn-area { margin-top: 80px; text-align: center; }
.back-link {
  color: #888; text-decoration: none; font-size: 14px; border: 1px solid #444;
  padding: 10px 20px; border-radius: 30px; transition: all 0.3s;
}
.back-link:hover { border-color: #eaeaea; color: #eaeaea; background: rgba(255,255,255,0.05); }

/* 좋아요 버튼 */
.like-container { text-align: center; margin: 60px 0 40px; }
.like-button {
  background: transparent; border: 1px solid #444; border-radius: 50px;
  padding: 10px 24px; cursor: pointer; display: inline-flex; align-items: center;
  gap: 10px; transition: all 0.3s ease; outline: none;
}
.like-button:hover { border-color: #888; background: rgba(255, 255, 255, 0.05); }
#heart-icon { width: 24px; height: 24px; fill: transparent; stroke: #eaeaea; stroke-width: 2px; transition: all 0.3s ease; }
.like-button.active { border-color: #ff4d4d; background: rgba(255, 77, 77, 0.1); }
.like-button.active #heart-icon { fill: #ff4d4d; stroke: #ff4d4d; animation: heart-beat 0.4s ease-in-out; }
.like-button.active #like-count { color: #ff4d4d; }
#like-count { font-size: 16px; color: #eaeaea; font-family: 'Noto Sans KR', sans-serif; }
.like-text { font-size: 12px; color: #666; margin-top: 10px; }
@keyframes heart-beat { 0% { transform: scale(1); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* 11. 마우스 오라 (PC 전용) */
.cursor-aura {
  width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%; position: fixed; pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%); transition: transform 0.15s ease-out;
  mix-blend-mode: difference;
}

/* =========================================
   MOBILE OPTIMIZATION (모바일 최적화)
   ========================================= */
@media (max-width: 768px) {
  header { padding: 10px 15px; flex-direction: column; gap: 10px; background: rgba(5, 5, 5, 0.9); }
  nav { display: flex; justify-content: center; width: 100%; flex-wrap: wrap; }
  nav a { margin: 0 8px; font-size: 11px; }
  .cursor-aura { display: none !important; }
  .writing-section, .read-container { padding-top: 110px; }
  .read-content { text-align: left; }
  font-weight: 400
  header h1 {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .album-slider { padding: 100px 0 40px 0; max-width: 100%; min-height: 60vh; }
  .album-item { padding: 0; margin-bottom: 20px; }
  .album-item img { width: 85vw; max-width: none; box-shadow: 0 15px 40px rgba(0,0,0,0.5); }
  .prev, .next { padding: 15px 10px; font-size: 18px; background: rgba(0,0,0,0.3); top: 45%; }
  .prev { left: 0; } .next { right: 0; }
  .typing-effect { font-size: 14px; letter-spacing: 0.1em; }
}

/* --- 새로워진 About 페이지 스타일 --- */

.about-section {
  min-height: 80vh; /* 화면 높이 확보 */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 60px; /* 헤더 공간 및 여백 */
}

.about-container {
  max-width: 600px; /* 글이 너무 퍼지지 않게 폭 제한 */
  text-align: center;
  animation: fadeUp 1s ease-out; /* 서서히 떠오르는 효과 */
}

/* 위로 떠오르는 애니메이션 */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.about-title {
  font-size: 24px;
  letter-spacing: 4px;
  margin-bottom: 40px;
  font-weight: normal;
  color: #fff;
}

.text-kr p {
  font-size: 16px;
  line-height: 2; /* 줄 간격 넓게 */
  color: #eaeaea;
  margin-bottom: 20px;
  word-break: keep-all; /* 단어 중간에 끊기지 않게 */
}

.divider {
  width: 40px; 
  height: 1px;
  background-color: #444;
  margin: 40px auto; 
}

.text-en p {
  font-size: 14px;
  line-height: 1.8;
  color: #888; 
  font-style: italic; 
  font-family: 'Noto Serif KR', serif;
  margin-bottom: 15px;
}

.insta-btn {
  display: inline-block;
  margin-top: 40px;
  text-decoration: none;
  color: #aaa;
  border: 1px solid #444;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 13px;
  transition: all 0.3s ease;
}

.insta-btn i {
  margin-right: 5px; 
}

.insta-btn:hover {
  color: #fff;
  border-color: #fff;
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px); 
}

/* --- 홈 화면 비디오 섹션 스타일 --- */

.video-section {
  position: relative;
  width: 100%;
  height: 100vh; /* 화면 꽉 차게 */
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* 영상 위 클릭 방해 금지 */
}

.video-container iframe {
  width: 100vw;
  height: 56.25vw; /* 16:9 비율 유지 */
  min-height: 100vh;
  min-width: 177.77vh; /* 화면을 빈틈없이 채움 */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* 영상 위에 씌우는 어두운 막과 텍스트 */
.video-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  background: rgba(0, 0, 0, 0.4); /* 영상이 너무 밝으면 글씨가 안 보이니 살짝 어둡게 */
  padding: 40px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.video-overlay h2 {
  font-size: 32px;
  letter-spacing: 10px;
  margin-bottom: 10px;
  font-weight: 200;
  color: rgba(255, 255, 255, 0.8);
}

.video-overlay p {
  font-size: 14px;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.5);
}
/* --- 비디오 섹션 전체 수정 --- */
.video-section {
  position: relative;
  width: 100%;
  height: 100vh; /* 화면 꽉 차게 */
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1; /* 메인 콘텐츠와 겹치지 않게 */
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* 텍스트 오버레이보다 뒤로 가야 함 */
}

.video-container iframe {
  width: 100vw;
  height: 100vh;
  /* 영상 비율이 깨지지 않게 화면을 꽉 채우는 마법의 설정 */
  object-fit: cover; 
  pointer-events: none; /* 클릭 방해 금지 */
}

/* 만약 위 코드로도 영상이 작게 나온다면 아래 코드를 사용하세요 */
@media (min-aspect-ratio: 16/9) {
  .video-container iframe { height: 300%; top: -100%; }
}
@media (max-aspect-ratio: 16/9) {
  .video-container iframe { width: 300%; left: -100%; }
}

.video-overlay {
  text-align: center;
  pointer-events: none; /* 오버레이 때문에 스크롤이 막히지 않게 */
}

.video-overlay h2 {
  font-size: clamp(24px, 5vw, 32px); /* 모바일 대응 크기 */
  letter-spacing: 10px;
  color: rgba(255, 255, 255, 0.9);
}

/* --- 직접 삽입 비디오 스타일 --- */
.video-section {
  position: relative;
  width: 100%;
  height: 70vh; /* 높이를 70% 정도로 적당히 조절 (원하시면 100vh로 키우세요) */
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* [중요] 영상 비율을 유지하면서 영역을 꽉 채웁니다 */
  object-fit: cover; 
  z-index: 1;
}

.video-overlay {
  position: relative;
  z-index: 2; /* 영상 위로 글씨가 올라오도록 */
  text-align: center;
  pointer-events: none; /* 글씨가 마우스 클릭을 방해하지 않게 */
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.8); /* 영상 위에서 글씨가 잘 보이게 그림자 추가 */
}

.video-overlay h2 {
  font-size: 32px;
  letter-spacing: 10px;
  color: #fff;
  margin-bottom: 10px;
}
/* --- Store Coming Soon Style --- */
.store-coming-soon {
  height: 80vh; /* 화면 높이 확보 */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
}

.coming-soon-content {
  animation: fadeIn 1.5s ease-in-out;
}

.coming-soon-content h2 {
  font-size: 14px;
  letter-spacing: 10px;
  color: #666;
  margin: 20px 0;
  font-weight: 200;
}

.main-msg {
  font-size: clamp(40px, 8vw, 60px); /* 화면 크기에 따라 조절되는 폰트 */
  letter-spacing: 15px;
  color: #fff;
  margin-bottom: 30px;
  font-weight: 100;
  text-indent: 15px; /* 글자 간격 때문에 치우치는 것 보정 */
}

.sub-msg {
  font-size: 14px;
  line-height: 1.8;
  color: #888;
  margin-bottom: 40px;
  word-break: keep-all;
}

.line-deco {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, #444, transparent);
  margin: 0 auto;
}

/* 업데이트 확인 버튼 */
.notify-btn {
  display: inline-block;
  text-decoration: none;
  color: #aaa;
  border: 1px solid #333;
  padding: 12px 30px;
  border-radius: 2px;
  font-size: 11px;
  letter-spacing: 3px;
  transition: all 0.4s;
}

.notify-btn:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

/* 페이드 인 애니메이션 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 모든 요소에 폰트 적용 및 모바일 폰트 보정 */
* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased; /* 맥/아이폰에서 글씨를 더 부드럽게 */
  -moz-osx-font-smoothing: grayscale;
}

body, h1, h2, h3, h4, h5, h6, p, a, span, button, input {
  /* 명조체를 기본으로 하되, 없을 경우 나눔명조 -> 시스템 명조 순으로 사용 */
  font-family: 'Noto Serif KR', 'Nanum Myeongjo', serif;
}