:root {
  --accent: #8e4bff;
  --accent2: #4df2ff;
  --glass-core: rgba(18,14,28,0.22);
  --glass-glow: rgba(140,90,255,0.18);
  --glass-bg: rgba(255,255,255,0.22);
  --glass-border: rgba(255,255,255,0.20);
  --glass-shadow:
    0 12px 45px rgba(0,0,0,0.35),
    0 0 30px rgba(150,100,255,0.35),
    inset 0 0 20px rgba(255,255,255,0.12);
  --glass-blur: blur(38px) saturate(132%);

}
.glass-bg {
  background:
    radial-gradient(
      circle at 30% 20%,
      rgba(140,90,255,0.16),
      transparent 65%
    ),
    rgba(18,14,28,0.24);
}

#site-loader {
  position: fixed;
  inset: 0;
  background: #050508;
  z-index: 9999;
  overflow: hidden;
}

#site-loader .glitch {
  position: absolute;
  inset: -20px;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.03),
      rgba(255,255,255,0.03) 1px,
      transparent 1px,
      transparent 3px
    );
  animation: glitchMove 0.25s infinite steps(2);
  mix-blend-mode: screen;
}

@keyframes glitchMove {
  0%   { transform: translate(0,0); }
  25%  { transform: translate(-12px, 6px); }
  50%  { transform: translate(10px, -8px); }
  75%  { transform: translate(-6px, -4px); }
  100% { transform: translate(0,0); }
}

#site-loader.hide {
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s ease;
}



.page,
.glass-card,
.tracklist-card,
.comment-card {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.22, .61, .36, 1);
  position: relative;
}

.page.loaded,
.glass-card.loaded,
.tracklist-card.loaded,
.comment-card.loaded {
  opacity: 1;
  transform: translateY(0);
}






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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}


/* =========================================================
   BACKGROUND
========================================================= */
body {
  background:
    radial-gradient(at 80% 20%, rgba(255,190,120,0.28), transparent 60%),
    radial-gradient(at 10% 80%, rgba(150,80,255,0.30), transparent 50%),
    linear-gradient(110deg, rgba(5,0,20,0.85), rgba(255,240,240,0.55)),
    url("assets/circle.jpg");

  background-size: 160%;
  background-blend-mode: soft-light, soft-light, normal;
  background-attachment: fixed;
  background-position: center;
}

/* 배경 캔버스에만 적용 */
#bgCanvas {
  position: fixed;
  inset: 0;
  z-index: -3;
}

#cornerFxCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;              /* blur-mask(-2) 위 */
  mix-blend-mode: screen;   /* 밝게 섞기 */
}




/* =========================================================
   MAIN SLIDER
========================================================= */
#viewport { width: 100vw; overflow: hidden; }

#slider {
  display: flex;
  width: calc(100vw * var(--page-count));
  transition: transform .6s cubic-bezier(.25,.8,.25,1);
}


.page {
  width: 100vw;
  min-height: 100svh;   
  height: auto;

  overflow-x: hidden;
  overflow-y: visible;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}




/* =========================================================
   GLASS CARD
========================================================= */
.glass-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 45px;

  background:
    radial-gradient(
      circle at 30% 20%,
      rgba(140,90,255,0.16),
      transparent 65%
    ),
    rgba(18,14,28,0.24);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 26px;

  border: none;
  outline: none;
  box-shadow: 0 32px 96px rgba(0,0,0,0.5);

  color: #fff;
  text-align: center;
  position: relative;
  animation: cardGlow 6s ease-in-out infinite;
}
@keyframes cardGlow {
  0%, 100% {
    box-shadow:
      0 22px 60px rgba(0,0,0,0.5),
      0 0 40px rgba(140,90,255,0.45);
  }
  50% {
    box-shadow:
      0 22px 60px rgba(0,0,0,0.5),
      0 0 40px rgba(140,90,255,0.45);
  }
}

@keyframes slowDrift {
  from { transform: translate(0,0); }
  to   { transform: translate(40px, 30px); }
}


/* =========================================================
   OVERVIEW PAGE
========================================================= */
.center { max-width: 400px; text-align: center; }

.album-cover {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.7);
}

.album-title {
  font-size: 32px;
  background: linear-gradient(100deg, #ff61ff, var(--accent2));
  -webkit-background-clip: text;
  color: transparent;
  margin-top: 25px;
  text-shadow: 0 0 20px rgba(255,255,255,0.45);
}

.album-sub {
  color: #fff;
  opacity: .9;
}
.bandcamp-icon-btn {
  width: 68px;
  height: 68px;
  margin-top: 28px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  text-decoration: none;

  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.3);

  backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    0 10px 28px rgba(0,0,0,0.55),
    0 0 40px rgba(160,120,255,0.6),
    inset 0 0 14px rgba(255,255,255,0.1);

  transition: 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* 내부 은은한 빛 */
.bandcamp-icon-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255,255,255,0.35),
    transparent 60%
  );
  opacity: 0;
  transition: 0.3s;
}

/* hover */
.bandcamp-icon-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow:
    0 16px 38px rgba(0,0,0,0.65),
    0 0 55px rgba(180,140,255,0.95),
    inset 0 0 18px rgba(255,255,255,0.18);
}

.bandcamp-icon-btn:hover::before {
  opacity: 1;
}

.bandcamp-icon-btn:active {
  transform: scale(0.95);
}

.bc-icon {
  width: 30px;
  height: 30px;

  background: currentColor;
  color: #ffffff;

  mask: url("assets/icons/bandcamp.svg") no-repeat center;
  -webkit-mask: url("assets/icons/bandcamp.svg") no-repeat center;
  mask-size: contain;
  -webkit-mask-size: contain;

  opacity: 0.9;
}


/* 화살표 기둥 */
.dl-icon::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  
  width: 3px;
  height: 12px;
  background: #ffffff;
  border-radius: 2px;
}

/* 아래 삼각형 (정확히 ↓ 모양) */
.dl-icon::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  
  width: 8px;
  height: 8px;
  border-left: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;
  transform: translateX(-50%) rotate(-45deg);   /* ↓ 방향 */
}

/* 바닥선 */
.dl-line {
  content: "";
}

.side-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;

  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.25);

  opacity: 0.35;
  cursor: pointer;
  transition: opacity .25s, transform .25s, box-shadow .25s;
  z-index: 20;
}

.side-arrow:hover {
  opacity: 0.85;
  box-shadow: 0 0 18px rgba(150,90,255,0.6);
}

.side-arrow.left { left: 18px; }
.side-arrow.right { right: 18px; }

/* 화살표 아이콘 */
.side-arrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  display: block;
  margin: auto;
}

.side-arrow.left::before {
  transform: rotate(-135deg);
}

.side-arrow.right::before {
  transform: rotate(45deg);
}



/* =========================================================
   TRACKS PAGE - LAYOUT
========================================================= */
.track-section {
  display: flex;
  gap: 40px;

  width: 100%;
  max-width: 1400px;   /* ← 핵심 */
  margin: 0 auto;      /* ← 중앙 정렬 */

  padding: 20px 40px;

  justify-content: center;
  align-items: center;
}



.tracklist-card{
  flex: 0 0 300px;
  max-width: 320px;
  min-height: auto;
  height: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 40px 45px;
  border-radius: 26px;

  background:
    radial-gradient(
      circle at 30% 20%,
      rgba(140,90,255,0.16),
      transparent 65%
    ),
    linear-gradient(
      to bottom,
      rgba(10, 8, 18, 0.22),
      rgba(10, 8, 18, 0.22)
    ),
    rgba(18,14,28,0.24);

  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);

  border: none;
  box-shadow: 0 32px 96px rgba(0,0,0,0.5);

  color: #fff;
  position: relative; 
}



.comment-card {
  flex: 1;
  max-width: 840px;
  display: flex;
  flex-direction: column;

  padding: 40px 45px;
  border-radius: 26px;

  background:
    radial-gradient(
      circle at 30% 20%,
      rgba(140,90,255,0.16),
      transparent 65%
    ),
    rgba(18,14,28,0.24);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);

  border: none;
  box-shadow: 0 32px 96px rgba(0,0,0,0.5);
  color: #fff;
  position: relative; 
}


.comment-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

/* 텍스트/코멘트 영역 */
.comment-body {
  flex: 1;
}

/* 아래쪽 플레이어 + 비주얼라이저 영역 */
.comment-footer {
  display: flex;
  align-items: center;
  justify-content: space-between; /* 왼쪽: 버튼, 오른쪽: 비주얼라이저 */
  gap: 16px;
  margin-top: 24px;
}

/* 비주얼라이저는 그냥 일반 블록 요소 */
#visualizer {
  width: 260px;
  height: 60px;
  background: transparent;
  pointer-events: none;
}



/* =========================================================
   DISC TABS
========================================================= */
.disc-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.disc-btn {
  flex: 1;
  padding: 10px 0;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  cursor: pointer;
  color: #eee;
  transition: .25s;
}

.disc-btn.active {
  background: linear-gradient(120deg, #9f6bff, #6bf0ff);
  color: #1d0030;
  font-weight: 600;
}


/* =========================================================
   TRACK LIST
========================================================= */
.tracklist-inner::-webkit-scrollbar { display: none; }
.tracklist-inner {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 5px;
  scrollbar-width: none;
}

.track-item {
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(14px) brightness(1.1);
  margin: 8px 0;
  cursor: pointer;
  transition: transform .3s cubic-bezier(.22, .61, .36, 1),
              background .25s ease,
              box-shadow .3s ease;
}

.track-item:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.24);
  box-shadow:
    0 10px 20px rgba(0,0,0,0.3),
    0 0 15px rgba(150, 90, 255, 0.45);
}
.track-item.active {
  border: 1px solid rgba(150,100,255,0.9);
  background: rgba(255,255,255,0.25);
  box-shadow: 0 0 15px rgba(150, 100, 255, 0.6);
}
.track-item.active::after {
  content: "";
  width: 6px;
  height: 6px;
  background: #9f6bff;
  border-radius: 50%;
}

.track-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.t-composer {
  font-size: 13px;
  opacity: 0.72;
  margin-top: 2px;
  color: #e7e7e7;
  text-shadow:
    0 1px 2px rgba(0,0,0,0.4),
    0 0 4px rgba(255,255,255,0.2);
  pointer-events: none;
}


.t-name { font-size: 18px; font-weight: 500; }
.t-time { opacity: .8; }

.mini-player {
  margin-top: 18px;
  display: flex;
  gap: 10px;
}

.mp-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.27);
  backdrop-filter: blur(14px);
  cursor: pointer;
  font-size: 16px;
  transition: .25s;
}

.mp-btn:hover {
  background: rgba(255,255,255,0.45);
}


/* =========================================================
   COMMENT PANEL (RIGHT)
========================================================= */
.comment-header { margin-bottom: 25px; }

.comment-header h3 {
  font-size: 28px;
  font-weight: 600;
  background: linear-gradient(120deg, #ff8cff, #6bf0ff);
  -webkit-background-clip: text;
  color: transparent;
}

.comment-underline {
  width: 70px; height: 3px;
  background: linear-gradient(90deg, #a073ff, #6bf0ff);
  border-radius: 30px;
  margin-top: 6px;
}

/* 제목류 개선 */
.album-title,
.comment-header h3,
.credits-title {
  text-shadow:
    0 0 18px rgba(255,255,255,0.25),
    0 2px 6px rgba(0,0,0,0.55);
}

/* 일반 본문 텍스트 */
.comment-card p,
.t-name,
.track-item span,
.credit-item .name {
  text-shadow:
    0 1px 3px rgba(0,0,0,0.55);
}




/* =========================================================
   COMMENT PLAYER + VOLUME SLIDER
========================================================= */
.comment-player {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* 버튼 */
.c-btn {
  font-size: 24px;          /* ← 문자 렌더링 완전 차단 */
  line-height: 1;
  overflow: hidden;
  color: #fff;    
  width: 44px;
  height: 44px;
  border-radius: 50%;

  background: transparent;
  border: none;

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: background 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.c-btn:hover {
  background: rgba(255,255,255,0.18);
}
.c-btn:active {
  background: rgba(255,255,255,0.28);
}
.c-btn.prev::before {
  content: "";
  width: 10px;
  height: 10px;
  border-top: 2px solid rgba(255,255,255,0.9);
  border-left: 2px solid rgba(255,255,255,0.9);
  transform: rotate(-45deg);
}
.c-btn.next::before {
  content: "";
  width: 10px;
  height: 10px;
  border-top: 2px solid rgba(255,255,255,0.9);
  border-right: 2px solid rgba(255,255,255,0.9);
  transform: rotate(45deg);
}




/* 볼륨바 */
.volume-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.volume-icon {
  width: 22px;
  height: 22px;
  background: #fff;
  opacity: 0.85;
  mask: url('assets/icons/volume-mid.svg') no-repeat center; 
  -webkit-mask: url('assets/icons/volume-mid.svg') no-repeat center;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

.volume-icon:hover { opacity: 1; }

.volume-slider {
  width: 120px;
  height: 6px;
  border-radius: 4px;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  -webkit-appearance: none;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: linear-gradient(120deg, #a573ff, #6bf0ff);
  box-shadow: 0 0 10px rgba(150,100,255,0.9);
}


.volume-slider::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: linear-gradient(120deg, #a573ff, #6bf0ff);
}

.seek-container {
  width: 100%;
  margin-top: 16px;
  padding: 0 4px;
}

#seekBar {
  width: 100%;
  -webkit-appearance: none;
  height: 6px;
  background: rgba(255,255,255,0.25);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

#seekBar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(120deg, #a573ff, #6bf0ff);
  box-shadow: 0 0 8px rgba(150,100,255,0.8);
}

.time-info {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 14px;
  opacity: 0.85;
}


/* =========================================================
   BOTTOM NAV
========================================================= */
.bottom-nav {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;

}

.nav-btn {
  padding: 12px 34px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.25);
  color: #f3f4ff;

  box-shadow:
    0 4px 14px rgba(0,0,0,0.45),
    inset 0 0 8px rgba(255,255,255,0.12);
  margin: 0 8px;
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition: .25s;
}

.nav-btn.active {
  background: linear-gradient(
    135deg,
    #9f6bff,
    #6bf0ff
  );
  color: #14001f;
  font-weight: 600;

  box-shadow:
    0 0 22px rgba(150,90,255,0.95),
    0 0 40px rgba(100,200,255,0.55);
}



/* =========================================================
   BACKGROUND LAYERS
========================================================= */
.noise-layer,
.bloom-layer,
.light-beams,
.blur-mask,
.mist-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

.noise-layer { background: url('assets/noise.png'); opacity: .12; }
.bloom-layer { background: radial-gradient(circle, rgba(255,200,150,0.25), transparent 60%); filter: blur(70px); }
.blur-mask { backdrop-filter: blur(18px); }
.mist-layer { background: url("assets/mist.png"); opacity:.12; filter:blur(12px); }

.particle-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 12px;
  height: 12px;

  background: radial-gradient(circle, rgba(255,255,255,0.9), rgba(255,255,255,0) 70%);
  border-radius: 50%;
  opacity: 0.8;

  animation: floatUp linear infinite;
}

/* 파티클 움직임 */
@keyframes floatUp {
  from { transform: translateY(0); opacity: 0.9; }
  to   { transform: translateY(-240px); opacity: 0; }
}

.hidden {
    display: none !important;
}

@media (min-width: 1800px) {
  .t-name { font-size: 20px; }
  .comment-card p { font-size: 18px; }
  .comment-header h3 { font-size: 32px; }

  .tracklist-card,
  .comment-card {
    
    padding: 40px 45px;
    background:
    radial-gradient(
      circle at 30% 20%,
      rgba(140,90,255,0.16),
      transparent 65%
    ),
    rgba(18,14,28,0.24);
  }
}

.tracklist-card::before,
.comment-card::before {
  border-radius: inherit;      
}


.credits-card {
  max-width: 680px;
  padding: 50px 60px;
  text-align: left;
}

/* ================================
   CREDITS PAGE STYLES (REVISED)
================================ */

/* 카드 기본 */
.credits-card {
  max-width: 680px;
  padding: 50px 60px;
  text-align: left;
}

/* 큰 제목 */
.credits-title {
  text-align: center;
  margin-bottom: 26px;
  font-size: 30px;
  font-weight: 700;

  background: linear-gradient(120deg, #ff8cff, #6bf0ff);
  -webkit-background-clip: text;
  color: transparent;

  text-shadow: 0 1px 5px rgba(0,0,0,0.4);
}

/* 섹션 제목 */
.credit-section-title {
  margin-top: 26px;
  margin-bottom: 6px;
  font-size: 19px;
  font-weight: 700;

  background: linear-gradient(120deg, #ff9dff, #6bf0ff);
  -webkit-background-clip: text;
  color: transparent;
}

/* 항목 */
.credit-item {
  padding: 8px 0;
  font-size: 18px;
  display: flex;
  align-items: center;
}

/* 이름 */
.credit-item .name {
  font-weight: 600;
  color: #fff;
  text-shadow:
    0 1px 2px rgba(0,0,0,0.35),
    0 0 6px rgba(255,255,255,0.35);
}
/* 링크 */
.credit-item a:first-of-type {
  margin-left: auto;
}

/* X 링크 */
.x-link {
  display: inline-flex;
  align-items: center;
  opacity: 0.65;
  color: #cfe6ff; /* 아이콘 색 */
  transition: 0.25s;
  transform: translateY(1px);
}

.x-link:hover {
  opacity: 1;
  transform: scale(1.13);
}

.x-link::before {
  content: "";
  width: 20px;
  height: 20px;
  background: currentColor;
  mask: url("assets/icons/x.svg") no-repeat center;
  -webkit-mask: url("assets/icons/x.svg") no-repeat center;
  mask-size: contain;
  -webkit-mask-size: contain;
}

/* SoundCloud 링크 */
.sc-link {
  display: inline-flex;
  align-items: center;
  opacity: 0.65;
  color: #ff7a18;
  transition: 0.25s;
  transform: translateY(1px);
}

.sc-link:hover {
  opacity: 1;
  transform: scale(1.13);
}

.sc-link::before {
  content: "";
  width: 20px;
  height: 20px;
  background: currentColor;
  mask: url("assets/icons/sc-logo.svg") no-repeat center;
  -webkit-mask: url("assets/icons/sc-logo.svg") no-repeat center;
  mask-size: contain;
  -webkit-mask-size: contain;
}

/* YouTube 링크 */
.yt-link {
  margin-left: 10px;
  display: inline-flex;
  align-items: center;
  opacity: 0.65;
  color: #ff0000;
  transition: 0.25s;
  transform: translateY(1px);
}

.yt-link:hover {
  opacity: 1;
  transform: scale(1.13);
}

.yt-link::before {
  content: "";
  width: 20px;
  height: 20px;
  background: currentColor;
  mask: url("assets/icons/youtube.svg") no-repeat center;
  -webkit-mask: url("assets/icons/youtube.svg") no-repeat center;
  mask-size: contain;
  -webkit-mask-size: contain;
}

.x-link,
.sc-link,
.yt-link {
  display: inline-flex;
  align-items: center;
  opacity: 0.65;
  transition: 0.25s;
  transform: translateY(1px);
}


.disc-description {
  margin-top: 12px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.45;
  opacity: 0.85;

  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  backdrop-filter: blur(12px);
}

/* 모바일 환경 */
@media (max-width: 768px) {
  body {
    background-attachment: scroll;
    background-size: cover;
    background-position: center;
  }
  
  body::before {
    content: "";
    position: fixed;
    inset: -20%;
    pointer-events: none;
    z-index: -4;

    background:
      radial-gradient(
        circle at 50% 45%,
        rgba(255,255,255,0.55),
        rgba(255,255,255,0.25) 22%,
        rgba(255,255,255,0.12) 34%,
        transparent 55%
      );

    filter: blur(18px);
  }

  #bgCanvas,
  #cornerFxCanvas {
    opacity: 0.45;
  }

  .page {
    justify-content: center;
    min-height: 100svh;
    overflow-y: auto;
    padding-bottom: 110px;
  }

  .track-section {
    flex-direction: column;
    height: auto;                 
    align-items: center;
    gap: 18px;
    padding: 0 16px;
  }

  .tracklist-card {
    max-height: none;
  }

  .track-item {
    margin: 6px 0;
    padding: 12px 14px;
    min-height: 56px;
  }
  /* 오른쪽 카드(코멘트)도 전체 폭 사용 */
  .comment-card {
    flex: none;
    width: 100%;
    max-width: 100%;
    min-height: 360px;
  }
  .comment-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .comment-player {
    order: 1;
    justify-content: center;
 }
  /* 카드 안의 텍스트 크기 축소 */
  .t-name {
    font-size: 16px;
  }
  .t-composer {
    font-size: 12px;
  }
  .glass-card p,
  .comment-card p {
    font-size: 14px;
    line-height: 1.4;
  }

  .glass-card h2,
  .glass-card h3 {
    line-height: 1.25;
    margin-bottom: 8px;
  }

  /* 재생 버튼 크기 축소 */
  .c-btn {
    width: 38px;
    height: 38px;
  }
  .volume-slider {
    width: 95px;
  }

  /* 세로 길이를 덜 차지하게 */
  #visualizer {
    order: 2;
    width: 100%;
    height: 42px;
    margin-top: 8px;
  }

  /* 하단 네비게이션 버튼 축소 */
  .bottom-nav {
    display: flex;
    gap: 10px;
  }

  .nav-btn {
    margin: 0;
    padding: 10px 18px;
    min-width: 90px;
    text-align: center;
  }

  /* Overview 카드도 모바일 최적화 */
  .glass-card {
    padding: 28px 26px;
    max-width: 80%;
  }
  .album-title {
    font-size: 26px;
  }
  .download-btn {
    padding: 14px 26px;
    font-size: 16px;
  }
  .comment-header h3 {
    font-size: 22px;
    margin-bottom: 6px;
  }
  .glass-card,
  .tracklist-card,
  .comment-card {
    width: 92vw;
    max-width: 92vw;
    padding: 14px 14px;
    border-radius: 18px;
  }

  .side-arrow {
    display: none;
  }

}

@media (max-width: 375px) and (max-height: 700px) {
  html, body {
    height: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .page[data-page="0"] {
    justify-content: flex-start;
    padding-top: 32px;
  }

  .page[data-page="1"] {
    justify-content: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    padding-top: 24px;
    padding-bottom: 150px; /* bottom-nav + 여유 */
  }

  .page[data-page="2"] {
    justify-content: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: 32px;
    padding-bottom: 140px; /* bottom-nav 공간 */
  }
  
  .tracks-page {
    justify-content: flex-start;
  }

  .track-section {
    flex-direction: column;
    align-items: center;
    gap: 18px;

    height: auto;
    min-height: unset;
    padding-bottom: 0;
  }

  /* 카드 간 여백 늘려서 숨통 트기 */
  .tracklist-card,
  .comment-card {
    margin-bottom: 18px;
  }

  .comment-card {
    min-height: unset;      /* 고정 높이 제거 */
    height: auto;
    padding-bottom: 32px;  /* 내부 여유 */
  }

  .comment-footer {
    margin-top: 12px;
  }

  .seek-container {
    margin-bottom: 12px;
  } .credits-page {
    overflow-y: auto;
    justify-content: flex-start;
  }

  .credits-card {
    width: 92vw;
    max-width: 92vw;
    padding: 24px 20px;
  }

  .credit-item {
    font-size: 15px;
  }

  .credits-title {
    font-size: 24px;
  }

  
}


@media (min-width: 900px) and (max-height: 700px) and (hover: none) {
  .page {
    justify-content: center;
    overflow: hidden;
  }
  .credits-card {
    max-height: 520px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}




