* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Noto Sans KR', sans-serif;
  transition: background 0.5s;
}

/* 히어로 영상 배경 */
.video-bg-wrap {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.video-bg-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

/* 띠배너 */
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  padding: 10px 0;
  display: flex;
  position: relative;
  z-index: 10;
}
.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker linear infinite;
}
.ticker-track span { padding: 0 8px; font-size: 13px; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* 메인 컨테이너 */
.container {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 20px 60px;
  position: relative;
  z-index: 10;
}

/* 프로필 */
.profile-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.profile-img-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(0,0,0,0.1);
}
.profile-title {
  font-size: 22px;
  font-weight: 500;
  color: #111;
  text-align: center;
  margin-top: 4px;
}
.profile-title.on-video { color: #fff; }
.profile-desc {
  font-size: 14px;
  color: #555;
  text-align: center;
  margin-top: -4px;
}
.profile-desc.on-video { color: rgba(255,255,255,0.85); }

/* 쿠폰 */
.coupon-wrap {
  width: 100%;
  border-radius: 14px;
  padding: 18px 20px;
  text-align: center;
}
.coupon-title { font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.coupon-desc { font-size: 13px; opacity: 0.75; margin-bottom: 12px; }
.coupon-code-wrap { display: flex; align-items: center; justify-content: center; gap: 8px; }
.coupon-code { font-size: 20px; font-weight: 600; letter-spacing: 3px; padding: 8px 20px; background: rgba(255,255,255,0.2); border-radius: 8px; }
.coupon-copy { padding: 8px 14px; border: none; border-radius: 8px; background: rgba(255,255,255,0.25); cursor: pointer; font-size: 13px; font-family: inherit; }
.coupon-copy:hover { background: rgba(255,255,255,0.4); }

/* 컬러칩 */
.colors-wrap { width: 100%; }
.colors-title { font-size: 13px; color: #666; margin-bottom: 10px; text-align: center; }
.colors-title.on-video { color: rgba(255,255,255,0.8); }
.colors-list { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.color-chip { display: flex; flex-direction: column; align-items: center; gap: 5px; text-decoration: none; }
.color-chip-circle { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(0,0,0,0.08); transition: transform 0.15s; }
.color-chip:hover .color-chip-circle { transform: scale(1.12); }
.color-chip-name { font-size: 10px; color: #666; text-align: center; max-width: 52px; }
.color-chip-name.on-video { color: rgba(255,255,255,0.8); }

/* 링크 */
.links-wrap { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.link-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 14px 20px;
  background: rgba(255,255,255,0.85);
  border-radius: 12px;
  text-decoration: none;
  color: #111;
  font-size: 15px;
  font-weight: 400;
  transition: transform 0.15s, background 0.15s;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0,0,0,0.07);
  gap: 14px;
}
.link-btn:hover { transform: scale(1.02); background: rgba(255,255,255,0.95); }
.link-btn img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.link-btn-title { flex: 1; text-align: center; }
.link-btn.has-img .link-btn-title { text-align: left; }

/* 유튜브 */
.youtube-wrap { width: 100%; }
.section-title { font-size: 13px; color: #666; margin-bottom: 10px; text-align: center; }
.section-title.on-video { color: rgba(255,255,255,0.8); }
.youtube-embed { width: 100%; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; }
.youtube-embed iframe { width: 100%; height: 100%; border: none; }

/* 인스타 피드 */
.insta-wrap { width: 100%; }
.insta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border-radius: 12px; overflow: hidden; }
.insta-cell { aspect-ratio: 1; overflow: hidden; }
.insta-cell a { display: block; width: 100%; height: 100%; }
.insta-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s; }
.insta-cell img:hover { transform: scale(1.05); }

/* 소셜 */
.socials-wrap { display: flex; gap: 16px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  color: #333;
  text-decoration: none;
  transition: transform 0.15s;
}
.social-link.on-video { background: rgba(255,255,255,0.2); color: #fff; }
.social-link:hover { transform: scale(1.15); }
.social-link svg { width: 20px; height: 20px; }

/* 팝업 */
.popup-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.popup-backdrop.open { display: flex; }
.popup-box { border-radius: 20px; padding: 36px 28px; max-width: 360px; width: 100%; text-align: center; position: relative; }
.popup-close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 20px; cursor: pointer; opacity: 0.5; }
.popup-close:hover { opacity: 1; }
.popup-title { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.popup-desc { font-size: 14px; opacity: 0.8; margin-bottom: 20px; line-height: 1.6; }
.popup-btn { display: inline-block; padding: 12px 28px; border-radius: 24px; text-decoration: none; font-size: 15px; font-weight: 500; background: rgba(255,255,255,0.2); }
.popup-btn:hover { background: rgba(255,255,255,0.35); }
.popup-skip { margin-top: 14px; font-size: 12px; opacity: 0.5; cursor: pointer; }
.popup-skip:hover { opacity: 0.8; }
