.resource-section {
  position: relative;
  padding: clamp(2.4rem, 4vw, 3.6rem);
  border: 1px solid rgb(135 168 255 / 35%);
  border-radius: 24px;
  background: var(--bg-panel);
  box-shadow: 0 22px 70px rgb(6 0 35 / 45%);
  margin-bottom: clamp(2.6rem, 5vw, 4.6rem);
  overflow: hidden;
}

.resource-section::before {
  position: absolute;
  background: var(--bg-glow);
  content: "";
  filter: blur(18px);
  inset: -25% -12% auto;
  opacity: .55;
  pointer-events: none;
}

.resource-header h2 {
  color: var(--accent-gold);
  font-size: clamp(2.3rem, 3.4vw, 3.1rem);
  font-family: Cinzel, serif;
  letter-spacing: .24rem;
  text-transform: uppercase;
}

.resource-header p {
  color: var(--text-secondary);
  font-size: 1.5rem;
  margin-top: .8rem;
}

.audio-player {
  display: grid;
  padding: 2.4rem;
  border: 1px solid rgb(135 168 255 / 35%);
  border-radius: 22px;
  background: rgb(18 23 40 / 80%);
  color: var(--text-primary);
  box-shadow: inset 0 0 36px rgb(6 0 35 / 40%);
  gap: 2rem;
  margin-top: 2.4rem;
}

.audio-player audio {
  width: 100%;
  border-radius: 12px;
  background: rgb(135 168 255 / 8%);
}

.audio-player__track {
  color: var(--accent-azure);
  font-size: 1.8rem;
  letter-spacing: .08rem;
}

.audio-player__meta {
  color: var(--text-secondary);
  font-size: 1.3rem;
}

.audio-player__playlist {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 1rem;
  list-style: none;
}

.audio-player__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.6rem;
  border: 1px solid rgb(135 168 255 / 20%);
  border-radius: 18px;
  background: rgb(18 23 40 / 60%);
  transition: transform var(--transition-standard),
    border-color var(--transition-standard),
    box-shadow var(--transition-standard);
  cursor: pointer;
  gap: 1.2rem;
}

.audio-player__item.is-active {
  border-color: rgb(230 200 139 / 55%);
  box-shadow: 0 12px 32px rgb(7 5 35 / 45%);
}

.audio-player__item:hover,
.audio-player__item:focus-visible {
  border-color: rgb(135 168 255 / 55%);
  transform: translateY(-2px);
}

.audio-player__item-info {
  display: grid;
  gap: .4rem;
}

.audio-player__item-title {
  font-size: 1.4rem;
}

.audio-player__item-meta {
  color: var(--text-secondary);
  font-size: 1.2rem;
}

.audio-player__item-mood {
  color: var(--accent-pink);
  font-size: 1.1rem;
  letter-spacing: .12rem;
  text-transform: uppercase;
}

.video-showcase {
  border: 1px solid rgb(135 168 255 / 35%);
  border-radius: 22px;
  box-shadow: 0 20px 60px rgb(6 0 35 / 42%);
  margin-top: 2.4rem;
  overflow: hidden;
}

.video-showcase video {
  display: block;
  width: 100%;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr));
  gap: 2rem;
  margin-top: 2.4rem;
}

.doc-card {
  display: grid;
  padding: 2rem;
  border: 1px solid rgb(135 168 255 / 35%);
  border-radius: 20px;
  background: rgb(18 23 40 / 78%);
  color: var(--text-primary);
  box-shadow: 0 18px 46px rgb(6 0 35 / 38%);
  gap: 1.2rem;
}

.doc-card h3 {
  color: var(--accent-gold);
  font-size: 1.5rem;
  letter-spacing: .08rem;
}

.doc-card p {
  color: var(--text-secondary);
  font-size: 1.2rem;
  line-height: 1.6;
}

.doc-card__meta {
  color: var(--accent-azure);
  font-size: 1.1rem;
  letter-spacing: .08rem;
  text-transform: uppercase;
}

.doc-card a {
  padding: 1rem 1.6rem;
  border: 1px solid rgb(135 168 255 / 35%);
  border-radius: 16px;
  color: var(--accent-azure);
  transition: transform var(--transition-standard),
    border-color var(--transition-standard),
    color var(--transition-standard);
  align-self: flex-start;
  letter-spacing: .08rem;
  text-decoration: none;
}

.doc-card a:hover,
.doc-card a:focus-visible {
  border-color: rgb(230 200 139 / 55%);
  color: var(--accent-gold);
  transform: translateY(-2px);
}

/* 流媒体缓冲指示器 */
.buffer-indicator {
  padding: 1rem;
  border-radius: 12px;
  background: rgb(18 23 40 / 50%);
  margin-top: 1.2rem;
}

.buffer-indicator__track {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: rgb(135 168 255 / 15%);
  overflow: hidden;
}

.buffer-indicator__buffered {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 3px;
  background: rgb(135 168 255 / 40%);
  transition: width  .3s ease;
}

.buffer-indicator__progress {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  height: 100%;
  border-radius: 3px;
  background: var(--accent-azure);
  transition: width  .1s linear;
}

.buffer-indicator__status {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  font-size: 1.2rem;
  gap: .6rem;
  margin-top: .8rem;
}

.buffer-indicator__spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}
