@charset "utf-8";

/* 기본 초기화 */
* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}
ul, ol, li {
  list-style: none;
}
a {
  text-decoration: none;
  outline: 0;
}

/* 전체 프레임 (figure) */
figure {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
  background: linear-gradient(25deg, violet, pink);
}

/* 좌측 상단 로고 (h1) */
figure h1 {
  position: absolute;
  top: 7vh;
  left: 4vw;
  font-size: 0;
}
figure h1 strong {
  font-size: 36px;
  font-family: "arial", sans-serif;
  color: #fff;
  line-height: 1.4;
  letter-spacing: 1px;
}
figure h1 span {
  font-size: 12px;
  font-family: "arial", sans-serif;
  color: #fff;
  opacity: 0.8;
  letter-spacing: 1px;
}

/* 우측 상단 언어 전환 버튼 (.lang-switch) */
figure .lang-switch {
  position: absolute;
  top: 7.8vh;
  right: 7.2vw;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  color: #fff;
  font: bold 12px/1 "arial", sans-serif;
  letter-spacing: 1px;
  z-index: 10;
  transition: all 0.25s ease;
}
figure .lang-switch:hover {
  background: #fff;
  color: #222;
  transform: translateY(-1px);
}

/* 우측 상단 메뉴 아이콘 (.menu) */
figure .menu {
  position: absolute;
  top: 8vh;
  right: 4vw;
  font-size: 24px;
  color: #fff;
  z-index: 10;
  transition: transform 0.3s, opacity 0.3s;
}
figure .menu:hover {
  transform: scale(1.15);
  opacity: 0.9;
}

/* 우측 상단 5개 카테고리 메뉴 (.categoryMenu) */
figure .categoryMenu {
  position: absolute;
  top: 13vh;
  right: 4vw;
  width: 200px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  padding: 10px 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 9;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}
figure .categoryMenu.on {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
figure .categoryMenu ul li a {
  display: block;
  padding: 12px 20px;
  font: bold 13px/1 "arial", sans-serif;
  color: #fff;
  letter-spacing: 1px;
  transition: background 0.3s, padding-left 0.3s, color 0.3s;
}
figure .categoryMenu ul li a:hover {
  background: rgba(255, 255, 255, 0.25);
  padding-left: 26px;
}
figure .categoryMenu ul li.on a {
  background: rgba(255, 255, 255, 0.35);
  color: #4a154b;
}

/* 하단 제작 정보 (figure > p) */
figure > p {
  position: absolute;
  bottom: 7vh;
  left: 50%;
  transform: translateX(-50%);
  font: 12px/1 "arial", sans-serif;
  color: #fff;
  letter-spacing: 2px;
  opacity: 0.8;
}

/* 음악 플레이어 패널 그룹 (section) */
figure section {
  width: 20vw;
  height: 65vh;
  position: absolute;
  left: 50%;
  top: 140%;
  margin-top: -25vh;
  margin-left: -10vw;
  transition: 1s;
  counter-reset: panel-num;
}

/* 개별 음악 플레이어 패널 (article) */
figure section article {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0px;
  left: 0px;
  counter-increment: panel-num;
}
figure section article .inner {
  width: 100%;
  height: 100%;
  background: #f0f7ff;
  padding: 5vh 2.5vw 8vh;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-content: space-between;
  flex-wrap: wrap;
  border-radius: 10px;
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.1);
  opacity: 0.6;
  transform: scale(0.8);
  transition: opacity 1s, transform 1s;
  position: relative;
}
figure section article .inner::before {
  content: "NO. " counter(panel-num) " / 100";
  position: absolute;
  top: 1.6vh;
  left: 50%;
  transform: translateX(-50%);
  font: bold 11px/1 "arial", sans-serif;
  color: #6c5ce7;
  background: rgba(108, 92, 231, 0.12);
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 1px;
  z-index: 4;
}

/* 활성화된 패널 (article.on) */
figure section article.on .inner {
  opacity: 0.9;
  transform: scale(1.1);
}

/* 앨범 커버 이미지 영역 (.pic) */
figure section article .inner .pic {
  width: 15vw;
  height: 15vw;
  margin: 0px auto;
  border-radius: 50%;
  background-repeat: no-repeat;
  background-position: 200%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
figure section article .inner .pic::before,
figure section article .inner .pic::after {
  content: "";
  display: block;
  width: inherit;
  height: inherit;
  border-radius: inherit;
  position: absolute;
  top: 0px;
  left: 0px;
  background-image: inherit;
  background-position: center;
  background-repeat: inherit;
  background-size: cover;
  transform-origin: center center;
}
figure section article .inner .pic::before {
  transform: translateY(10%);
  filter: blur(20px) brightness(1.6);
}
figure section article .inner .pic .dot {
  width: 3vw;
  height: 3vw;
  border-radius: 50%;
  background: #e4f1ff;
  position: relative;
  z-index: 3;
  box-shadow: inset 5px 5px 10px rgba(0, 0, 0, 0.1);
}

/* 100개 패널 공통 로고 영역 인터랙션 및 .dot 숨김 */
figure section article .inner .pic {
  cursor: pointer;
  transition: transform 0.3s ease;
}
figure section article .inner .pic:hover {
  transform: scale(1.04);
}
figure section article .inner .pic .dot {
  display: none;
}
figure section article .inner .pic.real-logo::before,
figure section article .inner .pic.real-logo::after {
  background-size: 44% 44%, cover;
}

/* 1번(AAPL), 2번(NVDA) 및 100개 패널별 기업 로고 배경 이미지 */
figure section article:nth-of-type(1) .inner .pic {
  background-image: url(../img/apple.svg);
}
figure section article:nth-of-type(2) .inner .pic {
  background-image: url(../img/nvidia.svg);
}

/* 1~100번 패널 주식 가격 팝업/배지 스타일 */
.stock-box {
  margin: -1vh auto 2vh;
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1c1c1e, #2c2c2e);
  color: #fff;
  font-family: "arial", sans-serif;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  text-align: center;
  animation: stockFadeIn 0.3s ease;
}
.stock-box .stock-header {
  font-size: 11px;
  color: #a1a1a6;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}
.stock-box .stock-price {
  font-size: 20px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 3px;
}
.stock-box .stock-change {
  font-size: 12px;
  font-weight: bold;
}
.stock-box .stock-change.up {
  color: #30d158;
}
.stock-box .stock-change.down {
  color: #ff453a;
}
.stock-box .stock-dividend {
  margin-top: 6px;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(255, 214, 10, 0.14);
  border: 1px solid rgba(255, 214, 10, 0.3);
  color: #ffd60a;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.3px;
}
.stock-box .stock-meta {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 10px;
  color: #d1d1d6;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
@keyframes stockFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 음악 정보와 컨트롤 메뉴 텍스트 영역 (.txt) */
figure section article .inner .txt {
  text-align: center;
  position: relative;
  z-index: 3;
}
figure section article .inner .txt h2 {
  font-size: 20px;
  font-family: "arial", sans-serif;
  color: #222;
  margin-bottom: 2vh;
}
figure section article .inner .txt p {
  font-size: 12px;
  margin-bottom: 3vh;
  color: #777;
}
figure section article .inner .txt ul {
  display: flex;
  justify-content: space-around;
}
figure section article .inner .txt ul li {
  cursor: pointer;
  opacity: 0.6;
  transition: 0.5s;
}
figure section article .inner .txt ul li.play {
  transform: scale(1.5);
  opacity: 0.9;
}
figure section article .inner .txt ul li:hover {
  transform: scale(1.5);
  opacity: 0.8;
}
figure section article .inner .txt ul li.play:hover {
  transform: scale(2);
  opacity: 1;
}

/* 앨범 커버 회전 애니메이션 */
@keyframes ani {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes ani2 {
  0% {
    transform: translateY(10%) rotate(0deg);
  }
  100% {
    transform: translateY(10%) rotate(360deg);
  }
}
figure section article .inner .pic.on::after {
  animation: ani 4s linear infinite;
}
figure section article .inner .pic.on::before {
  animation: ani2 4s linear infinite;
}

/* 좌우 회전 버튼 (.btnPrev, .btnNext) */
figure .btnPrev {
  width: 60px;
  height: 60px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-20vw, -50%);
  display: flex;
  align-items: center;
  text-align: left;
  cursor: pointer;
}
figure .btnPrev span {
  font: 11px/1 "arial", sans-serif;
  color: #fff;
  opacity: 1;
  transform: translateX(30%);
  transition: 0.5s;
}
figure .btnPrev::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: #fff;
  position: absolute;
  top: 50%;
  left: 0px;
  transform-origin: left center;
  transform: rotate(-180deg);
  transition: 0.5s;
}
figure .btnPrev::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: #fff;
  position: absolute;
  bottom: 50%;
  left: 0px;
  transform-origin: left center;
  transform: rotate(180deg);
  transition: 0.5s;
}
figure .btnPrev:hover span {
  opacity: 0;
  transform: translateX(100%);
}
figure .btnPrev:hover::before {
  transform: rotate(-30deg);
}
figure .btnPrev:hover::after {
  transform: rotate(30deg);
}

figure .btnNext {
  width: 60px;
  height: 60px;
  position: absolute;
  top: 50%;
  right: 50%;
  transform: translate(20vw, -50%);
  display: flex;
  align-items: center;
  text-align: right;
  cursor: pointer;
}
figure .btnNext span {
  font: 11px/1 "arial", sans-serif;
  color: #fff;
  opacity: 1;
  transform: translateX(-30%);
  transition: 0.5s;
}
figure .btnNext::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: #fff;
  position: absolute;
  top: 50%;
  left: 0px;
  transform-origin: right center;
  transform: rotate(180deg);
  transition: 0.5s;
}
figure .btnNext::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: #fff;
  position: absolute;
  bottom: 50%;
  left: 0px;
  transform-origin: right center;
  transform: rotate(-180deg);
  transition: 0.5s;
}
figure .btnNext:hover span {
  opacity: 0;
  transform: translateX(-100%);
}
figure .btnNext:hover::before {
  transform: rotate(30deg);
}
figure .btnNext:hover::after {
  transform: rotate(-30deg);
}

