/* 空玻璃面板：主要调节项集中在此，仅作用于白噪音模块。 */
.break-page-module .break-glass-panel {
  --glass-width: 100%;
  --glass-height: clamp(340px, 32vw, 420px);
  --glass-radius: 28px;
  --glass-blur: 3px;
  --glass-tint: 0.018; /* 0–1，越小越透明 */
  --glass-bevel-size: 12px; /* 磨边向内柔和衰减的范围，不是边框宽度 */
  --glass-edge-strength: 0.65; /* 0–1，统一调节曲面明暗与细轮廓 */
  --glass-shadow-strength: 0.06; /* 0–1，悬浮阴影透明度 */
  --glass-saturation: 1.04;

  position: relative;
  box-sizing: border-box;
  width: var(--glass-width);
  max-width: 100%;
  min-height: var(--glass-height);
  margin: 0 auto clamp(32px, 3vw, 44px);
  border-radius: var(--glass-radius);
  background: rgb(125 183 214 / var(--glass-tint));
  -webkit-user-select: none;
  user-select: none;
  caret-color: transparent;
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  box-shadow:
    0 14px 32px -12px rgb(24 43 62 / var(--glass-shadow-strength)),
    0 3px 7px -3px rgb(24 43 62 / var(--glass-shadow-strength));
}

.break-page-module .break-glass-panel::before,
.break-page-module .break-glass-panel::after {
  content: '';
  position: absolute;
  box-sizing: border-box;
  pointer-events: none;
  inset: 0;
  border-radius: inherit;
  opacity: var(--glass-edge-strength);
}

/* 圆润磨边：不同方向、不同衰减半径的内阴影沿圆角连续弯曲。
   亮肩、冷色暗部向中央自然消失，不裁出有明确内边界的宽环。 */
.break-page-module .break-glass-panel::before {
  background:
    radial-gradient(ellipse calc(var(--glass-bevel-size) * 3) calc(var(--glass-bevel-size) * 1.6)
      at 1% 0%, rgb(235 251 255 / 0.36), transparent 100%),
    radial-gradient(ellipse calc(var(--glass-bevel-size) * 2.4) calc(var(--glass-bevel-size) * 1.4)
      at 99% 100%, rgb(73 110 135 / 0.1), transparent 100%);
  box-shadow:
    inset 0 1px 2px -1px rgb(255 255 255 / 0.48),
    inset 0 -1px 2px rgb(40 65 86 / 0.14),
    inset calc(var(--glass-bevel-size) * 0.22) calc(var(--glass-bevel-size) * 0.28)
      calc(var(--glass-bevel-size) * 0.65) calc(var(--glass-bevel-size) * -0.23)
      rgb(240 253 255 / 0.5),
    inset calc(var(--glass-bevel-size) * 0.3) 0
      calc(var(--glass-bevel-size) * 0.85) calc(var(--glass-bevel-size) * -0.3)
      rgb(112 181 204 / 0.2),
    inset calc(var(--glass-bevel-size) * -0.16) 0
      calc(var(--glass-bevel-size) * 0.7) calc(var(--glass-bevel-size) * -0.2)
      rgb(51 76 94 / 0.09),
    inset 0 calc(var(--glass-bevel-size) * -0.4)
      calc(var(--glass-bevel-size) * 0.55) calc(var(--glass-bevel-size) * -0.3)
      rgb(229 248 255 / 0.34),
    inset 0 calc(var(--glass-bevel-size) * -0.32)
      var(--glass-bevel-size) calc(var(--glass-bevel-size) * -0.25)
      rgb(56 88 112 / 0.24);
  /* 左上入射更明显，右侧减弱，下沿保留厚度的明暗变化。 */
  -webkit-mask-image: linear-gradient(115deg, #000, rgb(0 0 0 / 0.72) 45%, rgb(0 0 0 / 0.38) 80%, rgb(0 0 0 / 0.65));
  mask-image: linear-gradient(115deg, #000, rgb(0 0 0 / 0.72) 45%, rgb(0 0 0 / 0.38) 80%, rgb(0 0 0 / 0.65));
}

/* 最外轮廓保持一像素；只在这一层使用细环遮罩。 */
.break-page-module .break-glass-panel::after {
  padding: 1px;
  background:
    radial-gradient(ellipse at 9% 0%, rgb(255 255 255 / 0.7), transparent 54%),
    radial-gradient(ellipse at 100% 68%, rgb(235 250 255 / 0.18), transparent 22%),
    linear-gradient(155deg, rgb(152 209 226 / 0.18), rgb(66 94 116 / 0.04) 48%, rgb(43 70 94 / 0.22));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

.break-page-module .break-glass-panel { overflow: hidden; }
.white-noise-player { position: relative; z-index: 1; min-height: inherit; padding: 22px 34px 20px; box-sizing: border-box; }
.white-noise-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.white-noise-title { margin: 0; color: #25343e; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.2; font-weight: 750; }
.white-noise-master { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; color: rgb(43 62 72 / .72); background: transparent; cursor: pointer; }
.white-noise-master:hover, .white-noise-master:focus-visible { color: rgb(25 91 61 / .92); background: rgb(255 255 255 / .18); outline: none; }
.white-noise-master-icon { width: 0; height: 0; margin-left: 2px; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid currentColor; }
.white-noise-master.is-playing .white-noise-master-icon { width: 10px; height: 14px; margin-left: 0; border: 0; background: linear-gradient(90deg, currentColor 0 3px, transparent 3px 7px, currentColor 7px 10px); }
.white-noise-carousel { position: relative; }
.white-noise-viewport { overflow: hidden; }
.white-noise-track { width: 200%; display: flex; transition: transform 280ms ease; will-change: transform; }
.white-noise-page { flex: 0 0 50%; min-width: 0; }
.white-noise-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px 10px; }
.white-noise-sound { min-width: 0; padding: 7px 6px 8px; border: 1px solid transparent; border-radius: 15px; display: flex; flex-direction: column; align-items: center; gap: 5px; background: transparent; transition: background-color 160ms ease, border-color 160ms ease; }
.white-noise-sound:hover { border-color: rgb(255 255 255 / .2); background: linear-gradient(145deg, rgb(255 255 255 / .22), rgb(255 255 255 / .08)); }
.white-noise-image { width: clamp(52px, 5.6vw, 76px); height: clamp(52px, 5.6vw, 76px); display: block; object-fit: contain; }
.white-noise-name { min-height: 1.35em; color: #30404a; font-size: clamp(12px, 1vw, 14px); line-height: 1.35; font-weight: 650; text-align: center; white-space: nowrap; }
.white-noise-volume { --white-noise-thumb-color: #9a9aa0; width: min(100%, 76px); height: 16px; margin: 0; padding: 0; appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; }
.white-noise-volume::-webkit-slider-runnable-track { height: 2px; border-radius: 99px; background: rgb(105 116 123 / .32); }
.white-noise-volume::-webkit-slider-thumb { width: 9px; height: 9px; margin-top: -3.5px; border: 0; border-radius: 50%; appearance: none; -webkit-appearance: none; background: var(--white-noise-thumb-color); }
.white-noise-volume::-moz-range-track { height: 2px; border-radius: 99px; background: rgb(105 116 123 / .32); }
.white-noise-volume::-moz-range-thumb { width: 9px; height: 9px; border: 0; border-radius: 50%; background: var(--white-noise-thumb-color); }
.white-noise-volume:focus-visible { outline: 1px solid rgb(37 112 77 / .58); outline-offset: 3px; border-radius: 99px; }
.white-noise-arrow { position: absolute; top: 50%; z-index: 2; width: 22px; height: 32px; padding: 0; border: 0; color: rgb(48 66 77 / .46); background: transparent; font-size: 28px; line-height: 1; cursor: pointer; transform: translateY(-50%); }
.white-noise-arrow:hover, .white-noise-arrow:focus-visible { color: rgb(32 74 56 / .9); outline: none; }
.white-noise-arrow-prev { left: -27px; }
.white-noise-arrow-next { right: -27px; }

@media (max-width: 900px) { .white-noise-player { padding-inline: 28px; } .white-noise-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .white-noise-player { padding: 18px 24px; } .white-noise-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px 6px; } .white-noise-arrow-prev { left: -22px; } .white-noise-arrow-next { right: -22px; } }

/* 播放器内容层：不改变上方 Liquid Glass 材质。 */
.white-noise-player { padding-top: 12px; }
.white-noise-header { position: relative; z-index: 3; height: 50px; justify-content: center; margin: 0 0 2px; pointer-events: auto; }
.white-noise-title { display: none; }
.white-noise-master { position: relative; z-index: 4; width: 48px; height: 48px; color: #31985d; pointer-events: auto; }
.white-noise-master:hover, .white-noise-master:focus-visible { color: #31985d; background: rgb(255 255 255 / .16); }
.white-noise-master-icon { border-top-width: 12px; border-bottom-width: 12px; border-left-width: 19px; }
.white-noise-master.is-playing { color: #d99a32; }
.white-noise-master.is-playing .white-noise-master-icon { width: 17px; height: 24px; background: linear-gradient(90deg, currentColor 0 5px, transparent 5px 12px, currentColor 12px 17px); }
.white-noise-master-hint { position: absolute; top: 50%; right: calc(50% + 40px); color: #30404a; font-size: 13px; font-weight: 400; line-height: 1.3; white-space: nowrap; opacity: 0; pointer-events: none; transform: translateY(-50%); transition: opacity 220ms ease; }
.white-noise-master-hint.is-visible { opacity: 1; }
.white-noise-carousel { z-index: 1; }
.white-noise-viewport { position: relative; z-index: 1; touch-action: pan-y; }
.white-noise-track { position: relative; z-index: 1; width: max-content; display: flex; transition: none; will-change: transform; }
.white-noise-track.is-animated { transition: transform 260ms ease; }
.white-noise-page, .white-noise-grid { display: contents; }
.white-noise-column { width: calc((100vw - 68px) / 7); max-width: calc((1280px - 68px) / 7); min-width: 0; display: grid; grid-template-rows: repeat(2, auto); gap: 12px; }
.white-noise-sound { padding: 7px 6px 8px; }
.white-noise-image-wrap { position: relative; width: clamp(52px, 5.6vw, 76px); height: clamp(52px, 5.6vw, 76px); display: grid; place-items: center; }
.white-noise-image { width: 100%; height: 100%; filter: brightness(1) saturate(1); transition: filter 160ms ease; }
.white-noise-sound.is-playing .white-noise-image { filter: brightness(var(--white-noise-play-brightness, 1.1)) saturate(1.08) drop-shadow(0 1px 4px rgb(47 135 87 / .16)); }
.white-noise-loader { position: absolute; inset: -3px; border: 1.5px solid transparent; border-top-color: rgb(48 144 88 / .8); border-right-color: rgb(48 144 88 / .32); border-radius: 50%; opacity: 0; animation: white-noise-spin 700ms linear infinite; pointer-events: none; }
.white-noise-sound.is-loading .white-noise-loader { opacity: 1; }
.white-noise-arrow { top: 50%; }

body.has-wallpaper .white-noise-name { color: rgb(246 250 252 / .92); text-shadow: 0 1px 2px rgb(14 27 35 / .48); }
body.has-wallpaper .white-noise-arrow { color: rgb(246 250 252 / .62); }
body.has-wallpaper .white-noise-volume::-webkit-slider-runnable-track, body.has-wallpaper .white-noise-volume::-moz-range-track { background: rgb(238 245 248 / .48); }

@keyframes white-noise-spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) { .white-noise-column { width: calc((100vw - 56px) / 4); } }
@media (max-width: 560px) { .white-noise-column { width: calc((100vw - 48px) / 3); } }
