html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: url("/sdvx/files/bg/bg07.jpg") center top / cover no-repeat;
  background-color: #000;
  color: #f0f0f0;
  font-family: verdana, sans-serif;
  text-align: left;
  position: relative;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
}

#heightFaderWrap {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: auto;
  padding: 10px 8px 10px 6px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-right: none;
  border-radius: 12px 0 0 12px;
  box-sizing: border-box;
}
.hf-body {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
}
.hf-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  color: #d7f7ff;
  font: 700 18px/1 sans-serif;
  cursor: pointer;
}
.hf-btn:hover { background: rgba(0, 212, 255, 0.25); }
.hf-zoom {
  width: auto;
  min-width: 42px;
  padding: 0 6px;
  font: 700 11px/28px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.hf-scale {
  position: relative;
  width: 42px;
  height: 480px;
}
.hf-tick {
  position: absolute;
  right: 0;
  width: 8px;
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-50%);
}
.hf-tick.major {
  width: 14px;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
}
.hf-tick span {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #d7f7ff;
  white-space: nowrap;
}
#heightFader {
  writing-mode: vertical-lr;
  direction: rtl;
  appearance: slider-vertical;
  width: 18px;
  height: 480px;
  margin: 0;
  accent-color: #00d4ff;
  cursor: pointer;
}

.close-btn {
  position: fixed;
  top: 8px;
  right: 8px;
  z-index: 1000;
  width: 42px;
  height: 42px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
.close-btn:active {
  transform: scale(0.92);
  background: rgba(0, 0, 0, 0.85);
}
.close-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.content {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.img-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: fit-content;
  padding-bottom: 80px;
  transform-origin: 0 0;
}

.score-layers {
  position: relative;
  line-height: 0;
}

.base-img, .overlay-img {
  width: 100%;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  image-rendering: auto;
}
.base-img {
  display: block;
  height: auto;
}
.overlay-img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
}

.header-inline {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  min-height: 150px;
  z-index: 40;
}

.jacket-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  z-index: 60;
}
.song-jacket {
  width: 100px;
  height: 100px;
  object-fit: cover;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.mrr-btn {
  width: 100px;
  cursor: pointer;
  margin-top: 4px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.mrr-btn:active {
  transform: scale(0.96);
}

.song-lv-icon {
  width: 35px;
  height: 35px;
  object-fit: contain;
  margin: 2px -5px auto -5px;
  flex-shrink: 0;
}

.title-cell {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.song-title {
  font-size: 14px;
  line-height: 1.3;
  color: #fff;
  text-shadow: 1px 1px 2px #000;
}
.song-artist {
  font-size: 11px;
  line-height: 1.3;
  color: #ccc;
  text-shadow: 1px 1px 2px #000;
  margin-top: 2px;
}

.song-notes-display {
  font-size: 12px;
  text-shadow: 1px 1px 2px #000;
  margin-top: 2px;
}
.song-notes-display.notes-easy { color: #9eff5e; }
.song-notes-display.notes-normal { color: #66d4ff; }
.song-notes-display.notes-hard { color: #ffc44d; }
.song-notes-display.notes-expert { color: #ff708a; }
.song-notes-display.notes-master { color: #d685ff; }
.song-notes-display.notes-append { color: #ff8ae2; }

.song-credit-line {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 10px;
  line-height: 1.2;
  color: #ff99ff;
  text-shadow: 1px 1px 2px #000;
  margin-top: 4px;
}

.song-spec-line {
  display: flex;
  gap: 8px;
  font-size: 11px;
  text-shadow: 1px 1px 2px #000;
  margin-top: 4px;
}
#specBpm { color: #66ff00; }
#specChain { color: #ffffff; }
#specExscore { color: #ffff00; }

.spec-block, .credit-block {
  margin-top: 2px;
}

.song-logo {
  position: absolute;
  object-fit: contain;
  pointer-events: none;
  z-index: 45;
}

.viewer-yt-container {
  position: absolute;
  top: 65px;
  left: 145px;
  z-index: 50;
  display: flex;
  align-items: center;
  max-width: calc(100% - 150px);
}
.yt-links-wrapper {
  display: flex;
  gap: 6px;
  align-items: center;
}
.viewer-yt-link {
  display: block;
  width: 130px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}
.viewer-yt-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.header-ad-frame {
  position: absolute;
  top: 0;
  left: 500px;
  border: none;
  overflow: hidden;
  z-index: 45;
  width: 100%;
  max-width: 468px;
  max-height: 150px;
  transition: height 0.2s ease;
}

.bottom-ad-frame {
  display: block;
  border: none;
  overflow: hidden;
  z-index: 45;
  margin: 10px auto 10px 0;
  width: 728px;
  height: 200px;
}

.header-ad-frame::-webkit-scrollbar,
.bottom-ad-frame::-webkit-scrollbar {
  display: none;
}

.message {
  padding: 60px 20px;
  font-size: 14px;
  color: #ccc;
  text-align: center;
}