/* ==================== 音轨自定义图标 ==================== */
@font-face {
  font-family: "iconfont";
  src:
    url('webfonts/iconfont.woff2?t=1698768321425') format('woff2'),
    url('webfonts/iconfont.woff?t=1698768321425') format('woff'),
    url('webfonts/iconfont.ttf?t=1698768321425') format('truetype');
}

.iconfont {
  font-family: "iconfont" !important;
  font-size: 16px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-beisi:before { content: "\e6eb"; }
.icon-beisi2:before { content: "\e601"; }
.icon-beisi3:before { content: "\e609"; }
.icon-beisi4:before { content: "\ec7f"; }
.icon-changdi:before { content: "\e607"; }
.icon-dajiyue:before { content: "\e642"; }
.icon-dajiyue2:before { content: "\e671"; }
.icon-dianjita:before { content: "\e60b"; }
.icon-dianjita2:before { content: "\e66f"; }
.icon-dianjita3:before { content: "\ea49"; }
.icon-dizi:before { content: "\e60c"; }
.icon-erhu:before { content: "\e6ec"; }
.icon-feizhougu:before { content: "\e6f1"; }
.icon-Guitar:before { content: "\e66e"; }
.icon-hechengqi:before { content: "\e605"; }
.icon-jiazigu:before { content: "\e6ef"; }
.icon-jiazigu2:before { content: "\e600"; }
.icon-kouqin:before { content: "\e60d"; }
.icon-maikefeng:before { content: "\e608"; }
.icon-MIDI:before { content: "\e670"; }
.icon-mujita:before { content: "\e6ee"; }
.icon-mujita2:before { content: "\e70b"; }
.icon-mujita5:before { content: "\e602"; }
.icon-piano:before { content: "\e6f0"; }
.icon-piano2:before { content: "\e7b6"; }
.icon-piano5:before { content: "\e636"; }
.icon-piano6:before { content: "\ec7e"; }
.icon-piano7:before { content: "\e606"; }
.icon-pipa:before { content: "\e6f3"; }
.icon-pipa1:before { content: "\e604"; }
.icon-sakesi:before { content: "\e603"; }
.icon-shachui:before { content: "\e6e7"; }
.icon-shoufengqin:before { content: "\e66d"; }
.icon-shouling:before { content: "\e6f6"; }
.icon-shudi:before { content: "\e6f4"; }
.icon-xiaohao:before { content: "\e60a"; }
.icon-xiaohao1:before { content: "\e6f5"; }
.icon-xiaohao3:before { content: "\e9bb"; }
.icon-xiaotiqin:before { content: "\e60e"; }

/* ==================== 播放器根容器 ==================== */
.at-wrap.gtp-scope {
  position: relative;
  width: 100%;
  height: calc(100vh * 0.8);
  margin: 10px auto;
  border: 0 solid rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: visible;
  border-radius: 8px;
}

.gtp-scope * {
  box-sizing: border-box;
}

.gtp-content {
  position: relative;
  overflow: hidden;
  flex: 1 1 auto;
  background: #fff; /* 默认亮色 */
  border-radius: 0;
}

.gtp-viewport {
  overflow-y: auto;
  position: absolute;
  top: 0;
  left: 70px;
  right: 0;
  bottom: 0;
  padding-right: 20px;
}

@media (max-width: 768px) {
  .gtp-viewport {
    left: 45px;
  }
}

/* ==================== 顶部公告 ==================== */
.gtp-top {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 40px;
  background-color: #3b6ff5;
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
  padding: 0;
  overflow: hidden;
  text-align: center;
  border-radius: 8px 8px 0 0;
}

@media only screen and (max-width: 599px) {
  .gtp-top {
    height: 35px;
    font-size: 0.7rem;
    word-break: break-word;
    line-height: 1.5;
  }
}

.gtp-top-notice-container {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  word-wrap: break-word;
}

.gtp-top-notice-text {
  display: inline;
  font-weight: inherit;
}

/* ==================== 侧边栏 ==================== */
.gtp-sidebar {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  max-width: 70px;
  width: 45px;
  padding: 0.3%;
  display: flex;
  align-content: stretch;
  z-index: 15;
  overflow: hidden;
  border-left: 1px solid rgba(0, 0, 0, 0.05);
  background: #f7f7f7;
}

.gtp-sidebar:hover {
  max-width: 500px;
  width: auto !important;
  transition: max-width 0.2s;
  overflow-y: auto;
}

.gtp-sidebar-content {
  width: 100%;
}

/* ==================== 音轨 ==================== */
.gtp-track-list {
  width: 100%;
}

.gtp-track {
  display: flex;
  position: relative;
  padding: 5px;
  transition: background 0.2s;
  cursor: pointer;
  height: 60px;
  margin-left: -5px;
  margin-right: -4px;
  margin-bottom: 2px;
}

.gtp-track:hover {
  background: rgba(83, 109, 230, 0.2);
}

.gtp-track > .gtp-track-icon,
.gtp-track > .gtp-track-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 205px;
  line-height: 12px;
}

.gtp-track > .gtp-track-icon {
  flex-shrink: 0;
  font-size: 32px;
  opacity: 0.5;
  transition: opacity 0.2s;
  width: 37px;
  height: 50px;
  margin-right: 5px;
  align-items: center;
}

.gtp-track > .gtp-track-icon > .iconfont {
  font-size: 40px;
}

.gtp-track > .gtp-track-icon > .iconfont:hover {
  color: #000;
}

.gtp-track:hover > .gtp-track-icon {
  opacity: 0.8;
}

.gtp-track.active {
  background: rgba(83, 109, 230, 0.2);
  margin-left: -5px;
  margin-right: -4px;
}

.gtp-track.active > .gtp-track-icon {
  color: #ff435a;
  opacity: 1;
}

.gtp-track-name {
  font-weight: bold;
  margin-bottom: 6px;
  font-size: 12px;
}

.gtp-sidebar:hover .gtp-track > .gtp-track-icon {
  width: 64px !important;
  height: 50px !important;
}

/* ==================== 音轨控制 ==================== */
.gtp-track-controls {
  min-width: 270px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.gtp-control-wrapper {
  display: flex;
  align-items: center;
}

/* 音轨按钮（自包含，不依赖主题 btn） */
.gtp-track-btn {
  width: 40px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: #426d9d;
  background: transparent;
  border: 1px solid #426d9d;
  border-radius: 6px;
  margin-right: 5px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.gtp-track-btn:hover {
  background: rgba(66, 109, 157, 0.1);
}

.gtp-track-btn.gtp-track-mute {
  color: #c9302c;
  border-color: #c9302c;
}

.gtp-track-btn.gtp-track-mute:hover {
  background: rgba(201, 48, 44, 0.1);
}

.gtp-track-btn.checked {
  color: #fff;
}

.gtp-track-solo.checked {
  background: #426d9d;
  border-color: #426d9d;
}

.gtp-track-mute.checked {
  background: #c9302c;
  border-color: #c9302c;
}

.gtp-track-controls input.gtp-track-volume {
  width: 75px;
}

.gtp-track-controls .fa-volume-up {
  margin-right: 5px;
  color: #4a4d59;
}

/* ==================== 底部控制栏 ==================== */
.gtp-controls {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  background: #3b6ff5;
  color: #fff;
  font-size: 13px;
  height: 43px;
  align-items: center;
  position: relative;
  overflow: visible;
  border-radius: 0 0 8px 8px;
  padding: 0 8px;
}

/* 插件自包含按钮：完全不依赖主题 .btn */
.gtp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: #fff;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.gtp-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.gtp-btn.active {
  border-color: #fff;
}

.gtp-btn.disabled {
  border-color: transparent;
  pointer-events: none;
  opacity: 0.5;
}

.gtp-play-btn {
  background-color: red;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;
  padding: 4px;
  box-sizing: border-box;
  color: #fff;
}

.gtp-song-info {
  font-size: 12px;
  font-weight: bold;
  display: inline-block;
  width: 21ch;
  white-space: nowrap;
  overflow: hidden;
  color: #fff;
}

.gtp-song-title {
  font-weight: bold;
}

@media (min-width: 960px) {
  .gtp-controls .gtp-control-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }
  .gtp-controls .gtp-control-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
}

@media (max-width: 960px) {
  .gtp-controls {
    height: auto;
    padding: 3px 6px;
    flex-wrap: wrap;
    justify-content: center !important;
  }
  .gtp-controls .gtp-btn {
    padding: 3px 4px;
    font-size: 1.2em;
  }
  .gtp-controls .gtp-control-left,
  .gtp-controls .gtp-control-right {
    display: flex;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    font-size: 0.8em;
  }
  .gtp-controls .gtp-control-left .gtp-song-position {
    font-size: 0.8em;
  }
  .gtp-controls .gtp-play-btn {
    width: 25px !important;
    height: 25px !important;
    padding: 4px !important;
  }
}

/* ==================== 下拉选择器 ==================== */
.gtp-select {
  position: relative;
  overflow: visible;
}

.gtp-controls .gtp-select:hover {
  background-color: #5588c7;
}

.gtp-select-title {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.gtp-select-arrow {
  font-size: 60%;
}

.gtp-select-menu {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 6px;
  background: #fff;
  border-radius: 8px;
  font-size: 12px;
  padding: 4px 2px;
  z-index: 99999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  width: 90px;
  min-width: 90px;
  overflow: visible;
  color: #000;
}

.gtp-select-menu .gtp-select-item {
  color: #000;
  font-size: 12px;
  width: 100%;
  padding: 5px 6px;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.15s;
  user-select: none;
  white-space: nowrap;
}

.gtp-select-menu .gtp-select-item:hover {
  padding: 5px 6px;
  background-color: #e9ecef;
  border-radius: 4px;
}

.gtp-score-menu,
.gtp-page-menu {
  width: 90px;
}

.gtp-speed-menu {
  width: 70px;
}

/* ==================== 徽章（自包含） ==================== */
.gtp-badge {
  display: inline-block;
  padding: 4px 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 4px;
}

.gtp-badge-danger {
  background-color: #ef4444;
}

.gtp-badge-secondary {
  background-color: #5d616e;
}

.gtp-badge-info {
  background-color: #3b82f6;
}

/* ==================== 滚动公告 ==================== */
.gtp-marquee {
  display: inline-block;
  padding-left: 100%;
  animation: gtp-marquee-pc 12s linear infinite;
}

@keyframes gtp-marquee-pc {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-120%, 0); }
}

@media (max-width: 960px) {
  .gtp-song-info {
    display: inline-block;
    width: 10ch;
    white-space: nowrap;
    overflow: hidden;
  }
  .gtp-marquee {
    display: inline-block;
    padding-left: 100%;
    animation: gtp-marquee 10s linear infinite;
  }
}

@keyframes gtp-marquee {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-120%, 0); }
}

/* ==================== 遮罩层 ==================== */
.gtp-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  font-size: 8px;
  z-index: 88;
  backdrop-filter: blur(3px);
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
}

.gtp-overlay-content {
  margin: auto;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  max-width: 300px;
  font-family: Arial, sans-serif;
  color: #fff;
  font-size: 12px;
}

.gtp-loader {
  width: 40px;
  height: 40px;
  border: 5px solid rgba(0, 0, 0, 0.3);
  border-top: 5px solid #fff;
  border-radius: 50%;
  animation: gtp-spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes gtp-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ==================== alphaTab 光标/选区（保留原生 class） ==================== */
.at-cursor-bar {
  background: rgba(0, 102, 255, 0.15);
}

.at-cursors {
  z-index: 10 !important;
}

.at-cursor-beat {
  background: rgba(64, 64, 255, 0.75);
  width: 3px;
}

.at-selection div {
  background: rgba(255, 64, 64, 0.1);
}

.at-highlight * {
  fill: #ff5b5b;
  stroke: #ff5b5b;
}

/* ==================== 无文件/图片预览（独立重命名，避免冲突） ==================== */
.gtp-no-file-wrap {
  width: 100%;
  position: relative;
  height: auto;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 8px;
}

.gtp-no-file-img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  max-width: 100%;
}

.gtp-no-file-tips {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0 !important;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  padding: 10px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* 允许移动端换行 */
  align-items: center;
}

.gtp-no-file-tips .gtp-pay-tips {
  font-size: 12px;
  opacity: 1;
  margin-right: 0px;
}

/* 按钮包裹容器：不做限制，顺其自然 */
.gtp-pay-buttons {
  margin-right: 10px; /* 按钮之间的右侧间距 */
  margin-left: 5px;
}

@media (min-width: 1024px) {
  .gtp-no-file-tips {
    align-items: center;
  }
}

@media (max-width: 768px) {
  .gtp-no-file-tips {
    flex-wrap: wrap;
    padding: 8px 15px;
  }
  .gtp-pay-buttons {
    margin: 5px auto; /* 移动端居中，上下留一点间距 */
  }
}

/* ==================== 全屏 ==================== */
.gtp-fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 99999 !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.gtp-fullscreen .gtp-controls {
  padding-bottom: 20px;
}

/* ==================== 预览购买提示框 ==================== */
.gtp-preview-box {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(50, 50, 50, 0.65);
  padding: 15px;
  color: #fff;
  border-radius: 8px;
  z-index: 88;
}

.gtp-preview-text {
  font-size: inherit;
}

.gtp-button-container {
  text-align: center;
  font-size: 12px;
}

.gtp-button-container-text {
  color: #ff8c00;
  font-weight: bold;
}

/* ==================== 购买提示按钮（BS5 实心风格，白字不变） ==================== */
.gtp-pay-yl-buttons a.gtp-pay-btn {
  text-decoration: none;
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  color: #fff !important;
  border: 1px solid transparent;
  border-radius: 4px;
  margin-right: 10px;
  cursor: pointer;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

/* VIP用户：橙色 */
.gtp-pay-yl-buttons a.gtp-pay-btn-info-vip {
  background-color: #ffa726;
  border-color: #ffa726;
}
.gtp-pay-yl-buttons a.gtp-pay-btn-info-vip:hover,
.gtp-pay-yl-buttons a.gtp-pay-btn-info-vip:focus,
.gtp-pay-yl-buttons a.gtp-pay-btn-info-vip:active {
  background-color: #e36a0a;
  border-color: #d6630a;
  color: #fff !important;
}

/* SVIP用户：紫色 */
.gtp-pay-yl-buttons a.gtp-pay-btn-info-svip {
  background-color: #ab47bc;
  border-color: #ab47bc;
}
.gtp-pay-yl-buttons a.gtp-pay-btn-info-svip:hover,
.gtp-pay-yl-buttons a.gtp-pay-btn-info-svip:focus,
.gtp-pay-yl-buttons a.gtp-pay-btn-info-svip:active {
  background-color: #5c36a4;
  border-color: #56309b;
  color: #fff !important;
}

/* 升级VIP：红色 */
.gtp-pay-yl-buttons a.gtp-pay-btn-lg {
  background-color: #f44336;
  border-color: #f44336;
}
.gtp-pay-yl-buttons a.gtp-pay-btn-lg:hover,
.gtp-pay-yl-buttons a.gtp-pay-btn-lg:focus,
.gtp-pay-yl-buttons a.gtp-pay-btn-lg:active {
  background-color: #bb2d3b;
  border-color: #b02a37;
  color: #fff !important;
}

/* 立即购买：绿色 */
.gtp-pay-yl-buttons a.gtp-pay-btn-up {
  background-color: #28a745;
  border-color: #28a745;
}
.gtp-pay-yl-buttons a.gtp-pay-btn-up:hover,
.gtp-pay-yl-buttons a.gtp-pay-btn-up:focus,
.gtp-pay-yl-buttons a.gtp-pay-btn-up:active {
  background-color: #157347;
  border-color: #146c43;
  color: #fff !important;
}
@media (max-width: 1024px) {
  .gtp-pay-yl-buttons a.gtp-pay-btn {
    display: block;
    margin-bottom: 10px;
    margin-right: 0;
  }
  .gtp-button-container {
    font-size: 12px;
  }
  .gtp-preview-text {
    font-size: 0.625rem;
  }
}
/* ==================== VIP/SVIP 展示标签（与按钮同尺寸） ==================== */
.gtp-pay-tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  color: #fff;
  border: 1px solid transparent;
  border-radius: 4px;
  margin-right: 10px;
  text-align: center;
  vertical-align: middle;
  cursor: default;
  user-select: none;
  box-sizing: border-box;
  min-height: calc(12px * 1.5 + 8px + 2px); /* 与按钮等高 */
}

.gtp-pay-tag-vip {
  background-color: #fd7e14;
  border-color: #fd7e14;
}

.gtp-pay-tag-svip {
  background-color: #6f42c1;
  border-color: #6f42c1;
}

/* 移动端与按钮同步换行/尺寸 */
@media (max-width: 960px) {
  .gtp-pay-tag {
    display: block;
    margin-bottom: 10px;
    margin-right: 0;
  }
}

/* 无文件预览区按钮（统一白字不变） */
.gtp-pay-buttons .gtp-pay-btn {
  color: #fff !important;
  text-decoration: none !important;
  display: inline-block;
  padding: 0px 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}
.gtp-pay-buttons {
  margin: 0 5px; /* 按钮外侧间距 */
}
.gtp-pay-buttons .gtp-pay-btn {
  margin: 0 !important; /* 清除之前可能设置的 margin */
}
.gtp-pay-buttons .gtp-pay-btn-lg {
  background-color: #dc3545;
  border-color: #dc3545;
}
.gtp-pay-buttons .gtp-pay-btn-lg:hover,
.gtp-pay-buttons .gtp-pay-btn-lg:focus,
.gtp-pay-buttons .gtp-pay-btn-lg:active {
  background-color: #bb2d3b;
  border-color: #b02a37;
  color: #fff !important;
}

.gtp-pay-buttons .gtp-pay-btn-up {
  background-color: #198754;
  border-color: #198754;
}
.gtp-pay-buttons .gtp-pay-btn-up:hover,
.gtp-pay-buttons .gtp-pay-btn-up:focus,
.gtp-pay-buttons .gtp-pay-btn-up:active {
  background-color: #157347;
  border-color: #146c43;
  color: #fff !important;
}

/* ==================== 隐藏文件输入 ==================== */
input#isFile {
  display: none;
}

/* ==================== SweetAlert 弹窗内样式 ==================== */
.gtp-alert {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid transparent;
  margin-bottom: 10px;
  line-height: 1.6;
}

.gtp-alert-info {
  background-color: #cff4fc;
  border-color: #b6effb;
  color: #055160;
}

.gtp-alert-light {
  background-color: #fefefe;
  border-color: #dee2e6;
  color: #636464;
}

.gtp-alert-warning {
  background-color: #fff3cd;
  border-color: #ffecb5;
  color: #664d03;
}

/* ==================== 加载转圈（PDF处理中） ==================== */
.gtp-spinner {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: gtp-spin 0.6s linear infinite;
  margin-right: 4px;
  vertical-align: middle;
}

/* ==================== 移动端侧边栏 ==================== */
@media (max-width: 960px) {
  .gtp-track {
    height: 42px;
    width: 210px;
    align-items: center;
    padding: 4px;
    margin-bottom: 2px;
  }
  .gtp-track-icon,
  .gtp-track-name,
  .gtp-track-btn {
    font-size: 10px;
    margin-bottom: 3px;
  }
  .gtp-track-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 10px;
    height: 100%;
    line-height: 19px;
    max-width: 190px !important;
  }
  .gtp-track-icon {
    width: 31px !important;
  }
  .gtp-track-controls {
    gap: 5px;
    flex-wrap: wrap;
  }
  .gtp-track-btn {
    width: 20px;
    height: 20px;
    padding: 4px;
  }
  .gtp-track .gtp-track-icon > .iconfont {
    font-size: 30px;
  }
  .gtp-track > .gtp-track-icon {
    margin-right: 1px;
  }
  .gtp-sidebar {
    width: 32px;
  }
  .gtp-sidebar:hover {
    max-width: 240px;
    width: auto !important;
    transition: max-width 0.2s;
    overflow-y: auto;
  }
  .gtp-sidebar:hover .gtp-track > .gtp-track-icon {
    width: 30px !important;
  }
}

/* ==================== 兜底：强制消除容器裁切 ==================== */
.gtp-scope,
.gtp-content,
.gtp-controls,
.gtp-select {
  overflow: visible;
}

.gtp-content {
  overflow: hidden;
}

/* ==================== 播放器暗黑模式适配 ==================== */
/* 暗黑模式下的容器背景 */
[data-bs-theme=dark] .gtp-content {
  background: #1a1d24; /* V5 暗黑模式的标准底色 */
}

/* 侧边栏在暗黑模式下也跟随变暗 */
[data-bs-theme=dark] .gtp-sidebar {
  background: #21242b;
  border-left-color: rgba(255, 255, 255, 0.06);
}

/* 1. 播放器主容器背景 */
[data-bs-theme=dark] .gtp-content {
  background: #1a1d24; /* V5 暗黑模式标准底色 */
}

/* 2. 顶部公告栏 & 底部控制栏 颜色调整 */
[data-bs-theme=dark] .gtp-top,
[data-bs-theme=dark] .gtp-controls {
  /* 改为深暗蓝色，既保留主题感，又不会和深灰背景融为一体 */
  background-color: #23366b !important; 
  color: #e2e8f0; /* 文字用非常浅的灰白色，保证高对比度 */
  border-color: rgba(255, 255, 255, 0.08); 
}

/* 3. 侧边栏背景调整 */
[data-bs-theme=dark] .gtp-sidebar {
  background: #21242b; /* 深色背景 */
  border-left-color: rgba(255, 255, 255, 0.06);
}

/* 4. 下拉菜单背景调整 */
[data-bs-theme=dark] .gtp-select-menu {
  background: #2a2d36; /* 深色弹窗背景 */
  color: #b0b5bd;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5); /* 加深阴影，增加层次感 */
}

[data-bs-theme=dark] .gtp-select-menu .gtp-select-item {
  color: #b0b5bd;
}

[data-bs-theme=dark] .gtp-select-menu .gtp-select-item:hover {
  background-color: #3b6ff5; /* 悬浮时显示主题蓝 */
  color: #fff;
}

/* 5. 底部按钮和音轨悬浮状态微调 */
[data-bs-theme=dark] .gtp-track:hover {
  background: rgba(255, 255, 255, 0.08);
}

[data-bs-theme=dark] .gtp-track.active {
  background: rgba(255, 255, 255, 0.12);
}

[data-bs-theme=dark] .gtp-controls .gtp-select:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* 6. 播放按钮的红色微微调暗，防刺眼 */
[data-bs-theme=dark] .gtp-play-btn {
  background-color: #c9302c !important;
}
/* ==================== SweetAlert2 弹窗暗黑模式终极适配 ==================== */

/* 1. 强行干掉默认的白色背景 */
[data-bs-theme=dark] .swal2-popup,
[data-bs-theme=dark] .gtp-swal-popup {
    background-color: #21242b !important;
    color: #b0b5bd !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important; /* 加个微弱的边框增加质感 */
}

/* 2. 修正弹窗标题和内容的颜色，覆盖内联样式 */
[data-bs-theme=dark] .swal2-title,
[data-bs-theme=dark] .gtp-swal-title {
    color: #e5e9f0 !important;
}
[data-bs-theme=dark] .swal2-html-container,
[data-bs-theme=dark] .gtp-swal-html {
    color: #b0b5bd !important;
}

/* 强制修正弹窗内的写死文字颜色（防止看不清） */
[data-bs-theme=dark] .swal2-html-container p,
[data-bs-theme=dark] .swal2-html-container .text-muted,
[data-bs-theme=dark] .swal2-html-container div[style*="color: #6c757d"] {
    color: #9499a5 !important; /* 统一换成浅灰色 */
}

/* 3. 修复你代码里的 gtp-alert 提示框（亮色背景在暗黑下太刺眼） */
[data-bs-theme=dark] .gtp-alert-light {
    background-color: #2a2d36 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #b0b5bd !important;
}
[data-bs-theme=dark] .gtp-alert-info {
    background-color: rgba(59, 130, 246, 0.15) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    color: #89a9f9 !important;
}
[data-bs-theme=dark] .gtp-alert-warning {
    background-color: rgba(245, 158, 11, 0.15) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
    color: #f9c56d !important;
}
