/* Universal CSS Reset */
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ... (从 #animation_box 到 @keyframes moving 的所有样式保持不变) ... */
#animation_box > div:not(.loader) { display: none !important; }
html, body { margin: 0; padding: 0; overflow: hidden; width: 100%; height: 100%; }
body { background-color: #000; }
#app { position: absolute; width: 100%; height: 100%; top: 0; left: 0; will-change: transform; display: flex; justify-content: center; align-items: center; overflow: hidden; }
#animation_box { position: absolute; width: 100%; height: 100%; top: 50%; left: 50%; transform: translate(-50%, -50%); transform-origin: center center; overflow: hidden; display: flex; justify-content: center; align-items: center; background-color: #EFEFEF; z-index: 10; }
canvas { display: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: #000; outline: none; z-index: 1; }
.loader { display: block; --height-of-loader: 4px; --loader-color: #5DB4D9; width: 90vw; height: var(--height-of-loader); border-radius: 30px; background-color: rgba(0,0,0,0.2); position: absolute; top: 90%; left: 50%; transform: translate(-50%, -50%); z-index: 11; }
.loader::before { content: ""; position: absolute; background: var(--loader-color); top: 0; left: 0; width: 0%; height: 100%; border-radius: 30px; animation: moving 1s ease-in-out infinite; }
@keyframes moving { 50% { width: 100%; } 100% { width: 0; right: 0; left: unset; } }

/* ================================ */
/*       按钮和控制器样式 (已修改)     */
/* ================================ */

button {
 border: none;
 color: #fff;
 background-image: linear-gradient(30deg, #12c8e0, #8dafdb);
 border-radius: 5px;
 background-size: 100% auto;
 font-family: inherit;
 font-size: 17px;
 padding: 0.6em 1.5em;
 cursor: pointer;
}

.controls-container {
  display: none; 
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 100;
  align-items: center;
  gap: 25px; /* 增大间距 */
}

#control-button {
  display: block;
  position: static;
  padding: 0.8em 1.8em;
  font-size: 16px;
  transition: background-image 0.3s ease;
}
#control-button:disabled {
  background-image: linear-gradient(30deg, #555, #888);
  cursor: not-allowed; animation: none; box-shadow: none;
}
#control-button:disabled:hover {
  animation: none; background-size: 100% auto;
}

/* ==================================== */
/* == 播放器样式（尺寸已放大） == */
/* ==================================== */

.animation-player {
  display: none; 
  align-items: center;
  gap: 15px; /* 增大按钮间距 */
  background-color: rgba(40, 40, 40, 0.8);
  padding: 12px 20px; /* 增大内边距 */
  border-radius: 12px; /* 增大圆角 */
  backdrop-filter: blur(5px);
}

.player-btn {
  background: transparent;
  border: none;
  padding: 0;
  width: 36px; /* 增大按钮尺寸 */
  height: 36px; /* 增大按钮尺寸 */
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.player-btn svg {
  width: 30px; /* 增大图标尺寸 */
  height: 30px; /* 增大图标尺寸 */
  fill: #e0e0e0;
  transition: fill 0.2s ease;
}

.player-btn:hover svg {
  fill: #fff;
}

#progress-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 300px; /* 增大滑块宽度 */
  height: 8px; /* 增大滑块高度 */
  background: linear-gradient(to right, #21d4fd 0%, #21d4fd var(--progress-percent, 0%), #555 var(--progress-percent, 0%), #555 100%);
  border-radius: 8px; /* 增大圆角 */
  outline: none;
  transition: background 0.1s linear;
}

#progress-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px; /* 增大拖动点尺寸 */
  height: 20px; /* 增大拖动点尺寸 */
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  margin-top: -6px; /* 调整垂直居中 */
  border: 1px solid #ddd;
}

#progress-slider::-moz-range-thumb {
  width: 18px; /* 增大拖动点尺寸 */
  height: 18px; /* 增大拖动点尺寸 */
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  border: 1px solid #ddd;
}