/* PC 直播详情页 */
.page-live-detail .pc-main {
  padding: 24px 0 64px;
}

.ld-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}

.ld-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ld-hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
}

.ld-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ld-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35) 0%, transparent 50%);
}

.ld-hero__badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.ld-hero__badge--live {
  background: var(--live);
  color: #fff;
}

.ld-hero__badge--upcoming {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-primary);
}

.ld-hero__badge--ended {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-secondary);
}

.ld-hero__badge--replay {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
}

.ld-hero__play {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition);
}

.ld-hero__play:hover {
  background: rgba(0, 0, 0, 0.32);
}

.ld-hero__play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  font-size: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition);
}

.ld-hero__play-icon i {
  margin-left: 4px;
}

.ld-hero__play:hover .ld-hero__play-icon {
  transform: scale(1.06);
}

.ld-hero__play-text {
  font-size: 15px;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.ld-hero--replay .ld-hero__play-icon {
  color: var(--primary);
}

.ld-summary {
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
}

.ld-title {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
}

.ld-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text-secondary);
}

.ld-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ld-meta .live-dot {
  color: var(--live);
  font-size: 8px;
}

.ld-teacher {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  background: var(--bg-subtle);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background var(--transition);
}

.ld-teacher:hover {
  background: var(--accent-soft);
}

.ld-teacher img,
.ld-teacher__avatar-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.ld-teacher__avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 20px;
}

.ld-teacher__name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.ld-teacher__title {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
}

.ld-teacher > i {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 13px;
}

.ld-desc {
  margin: 0;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.ld-intro {
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
}

.ld-intro__head {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 700;
}

.ld-intro__body p {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.ld-intro__body h3 {
  margin: 20px 0 10px;
  font-size: 16px;
  font-weight: 600;
}

.ld-intro__body ul {
  margin: 0 0 14px;
  padding-left: 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.ld-intro__body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.ld-intro-figure {
  margin: 0 0 16px;
}

.ld-intro-figure img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}

.ld-intro-figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* 侧栏 */
.ld-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.ld-action-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 16px;
}

.ld-action-card__status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
}

.ld-action-card__status--live {
  color: var(--live);
}

.ld-action-card__status--live .live-dot {
  font-size: 10px;
}

.ld-action-card__status--replay {
  color: var(--primary);
}

.ld-replay-info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg-subtle);
  font-size: 13px;
  color: var(--text-secondary);
}

.ld-replay-info span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ld-replay-info strong {
  color: var(--text-primary);
  font-weight: 600;
}

.ld-action-card__hint {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.ld-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity var(--transition), transform var(--transition);
}

.ld-btn--primary {
  background: var(--live);
  color: #fff;
}

.ld-btn--primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.ld-btn--replay {
  background: var(--primary);
  color: #fff;
}

.ld-btn--replay:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.ld-btn--accent {
  background: var(--accent);
  color: #fff;
}

.ld-btn--accent:hover {
  opacity: 0.92;
}

.ld-btn--outline {
  background: var(--bg);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.ld-btn:disabled {
  opacity: 0.65;
  cursor: default;
  transform: none;
}

.ld-booking {
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--border);
}

.ld-booking__time {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.ld-booking__time > i {
  font-size: 28px;
  color: var(--accent);
  margin-top: 2px;
}

.ld-booking__time strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.ld-booking__time span {
  font-size: 13px;
  color: var(--text-muted);
}

.ld-related__title {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
}

.ld-related-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}

.ld-related-item:first-of-type {
  border-top: none;
  padding-top: 0;
}

.ld-related-item__cover {
  width: 96px;
  height: 54px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.ld-related-item__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ld-related-item__tag {
  position: absolute;
  top: 4px;
  left: 4px;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--live);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}

.ld-related-item__tag--replay {
  background: var(--primary);
}

.ld-related-item__title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ld-related-item__meta {
  font-size: 12px;
  color: var(--text-muted);
}

.ld-related-empty {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.ld-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  padding: 10px 20px;
  border-radius: 8px;
  background: rgba(26, 35, 50, 0.92);
  color: #fff;
  font-size: 14px;
  z-index: 300;
}

.ld-toast[hidden] {
  display: none;
}

@media (max-width: 1024px) {
  .ld-layout {
    grid-template-columns: 1fr;
  }

  .ld-sidebar {
    position: static;
    order: -1;
  }
}

@media (max-width: 640px) {
  .ld-title {
    font-size: 22px;
  }
}
