
body {
      margin: 0;
      padding: 0;
      height:100%;
      font-family: 'Helvetica Neue', sans-serif;
      background: #fdfdfd;
      color: #333;
      display: flex;
      height: 100vh;
      overflow: hidden;
    }

    aside {
    position: relative;
    margin-top: 30px;
    width: 120px;
    background: #ffffff;
    border-right: 0.5px solid #ebebeb;
    padding: 2rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 50;
    overflow: visible;
    }

    .avatar {
      width: 64px;
      height: 64px;
      border-radius: 50%;
      object-fit: cover;
      cursor: pointer;
      border: 2px solid transparent;
      transition: border 0.3s ease;
      z-index: 50;
    }

    .avatar:hover {
      border-color: #ed766b;
    }

    .avatar.active{
      border-color:#ed766b;
    }


    main {
      flex: 1;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
    }

      #main-visual-wrapper{
      height: 100vh;
      width: 100vw;
      margin: 0 auto;
      display: flex;
      overflow: hidden;
      text-align: center;
      justify-content: center;
      align-items: center;
      position: relative;
      overflow: hidden;
      background-color: #ffffff;

    }

    #main-visual-container{
      position: absolute;
      top:50%;
      left:50%;
      transform: translate(-50%, -50%) scale(1.3);
      transform-origin: center center;
      z-index: 20;
      transition: transform 0.3s ease-in-out;
    }

    #main-visual{
        max-width: 100%;
        max-height: 100%;
        pointer-events: none;
        object-fit: contain;
        margin:0 auto;
        z-index: 20;
        transition:opacity 0.4s ease-in-out;
    }

    #main-visual.fullheight {
        height: 100vh;
        width: auto;
        object-fit: contain;
    }

    #main-visual.fade-out {
        opacity: 0;
    }

#main-visual.fade-in {
        opacity: 1;
    }

    #background-image {
       top:50%;
       left: 50%;
       opacity: 20%;
       transform: translate(-50%, -50%);
       height: 100%;
       width: auto;
       display: block;
       position: absolute;
       object-fit: cover;
       margin:0 auto;
       z-index: 0;
       pointer-events: none;
    }

   #info-wrapper{
     display: flex;
     position: fixed;
     top: 30px;
     left: 130px;
     flex-direction: column;
     line-height: 1.8;
     gap:0.5rem;
     z-index: 30;
   }

   #info{
     font-size: clamp(7px, 1vw, 28px);
     font-family:  "VT323", monospace;
   }


   .char-meta{
    display:flex;
    max-width: 30vw;
    position: fixed;
    bottom:10%;
    left:130px;
    flex-direction: column;
    gap:0.1rem;
    z-index:30;
   }

   #character-description{
    font-size: clamp(1px,0.7vw,7px);
    letter-spacing: 1px;
    font-family: "ocr-b-std", monospace;
   }

   #character-name{
    font-size: clamp(15px,3vw,45px);
    font-family: "bc-vajgar", sans-serif;
   }


    #zoom-controls {
        position: fixed;
        display: flex;
        left: 130px;
        top:50%;
        transform:translateY(-50%) ;
        flex-direction: column;
        gap: 10px;
        padding: 0.5rem;
        z-index: 35;
    }
    #zoom-controls button {
         font-size: 0.6rem;
         font-family:  "VT323", monospace;
         padding:4px 6px;;
         border: none;
         background: rgba(0, 0, 0, 0.2);
         cursor: pointer;
         transition: background 0.2s;
         border-radius: 0.5rem;
    }

    #zoom-controls button:hover {
        background: #dddddd;
    }

 
     .wheel-wrapper {
    position: absolute;
    top: 50%;
    left: -130px;
    width: 260px;
    height: 260px;
    transform: translateY(-50%);
    overflow: hidden;
    pointer-events: none;
    z-index: 30;
    border-radius: 50%;
    box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.3);
    }

    #wheel{
    width:100%;
    height: auto;
    transition:transform 0.3s ease;
    border-radius: 50%;
    }

.auxiliary{
  position: absolute;
  right: 1rem;
  top:2.5rem;
  background:transparent;
  object-fit:contain;

  display: inline-flex;
  flex-direction: column;
  flex-wrap: nowrap;              /* 单列纵向滚动 */
  max-height: 80vh;
  overflow: auto;

  width:20vh;
  padding: 8px 0.3rem 12px;       /* 顶部留出 8px 呼吸区 */
  gap: 0.5rem;
  cursor: pointer;
  z-index: 25;
}

.auxiliary img{
  width:19vh; height:19vh;
  object-fit:cover;
  object-position: center 35%; 
  display:block;
  border:1px solid #ccc;
  border-top:1px solid #ccc;
  background-color: #ffffff;
  box-sizing:border-box;              /* ← 防止加粗顶边把内容顶走 */
  transition: transform .3s, border-color .2s, border-top-width .2s;
}

.auxiliary img:hover{
  transform: scale(1.02);
  box-shadow: 0 6px 6px -2px rgba(237,118,107,.9);
}

.auxiliary img.active{
  border-top-color:#ed766b;
  border-top-width:3px;               /* ← 变粗才醒目 */
}


   /* DEBUG：把按钮强制显示成大红圆，压到最上层 */
    #aux-prev, #aux-next{
    position: fixed !important;
    left: auto !important;              /* 先放到左上角，绝不会在屏外 */
    right: 25vh !important;
    width: 30px;
    height:30px;
    display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #d5d5d5 !important;     
  color: #fff !important;
  border-radius: 50% !;
  z-index: 50;      
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  cursor: pointer;
}
#aux-prev{ top: 3rem !important; }
#aux-next{ top: 5rem !important; }

/* 防止任何 disabled 规则把它禁用 */
#aux-prev.disabled, #aux-next.disabled{
  opacity: 1 !important;
  pointer-events: auto !important;
}



.header-nav a {
  text-decoration: none;
  color: #111;
  transition: border-bottom 0.2s ease;
}

.header-nav a:hover {
  border-bottom: 0.5px solid #999;
}

#page-header{
    position: fixed;
    top: 0;
    left:0;
    width: 100%;
    background: linear-gradient(to bottom, rgba(255, 108, 108, 0.3), rgba(255, 255, 255, 0));
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter:blur(6px);
    text-align: center;
    padding: 0.3rem rem;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 120;
    pointer-events: none;
}

.header-content {
  display: flex;
  flex-wrap: wrap; 
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  align-items: center;
  position: relative;
}


#page-header.visible {
  opacity: 1;
  pointer-events: auto;
}

#logo-container {
  position: fixed;
  top:30px;
  left: 55%;
  width: 45vw;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  z-index: 5;
}

.stretch-text {
  font-family: "copperplate", serif;
  font-weight: 400;
  font-size: clamp(1px, 0.5vw, 15px);
  white-space: nowrap;
  display: inline-block;
  overflow: hidden;
  width: 45%;
  text-align: center;
  letter-spacing: normal;
}

.logo-img {
  width:clamp(2px, 2vw, 30px);
  height: auto;
}


.header-title {
  position: relative;
  display: flex;
  align-items: center;
  font-family: "Codystar", sans-serif;
  font-size: 1rem;
  color: #111;
}

.header-nav{
  display: flex;
  gap: 1.5rem;
}

.header-nav a{
  margin-left: 1rem;
  color: #111;
  font-family:  "Codystar", sans-serif;
  font-size: 1rem;
}

.button-wrapper{
display: flex;
position: fixed;
flex-direction: column;
right: 1rem;
bottom:1rem;
z-index: 35;
gap: 1rem;
  }

.button-wrapper div {
  background: transparent;
  padding: 0;
  margin: 0;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
}
 
#music-button img,
#full-screen-button img {
  width: 15px;
  
}