:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --text-main: #222222;
  --text-muted: #666666;
  --border: #e9eaee;
  --shadow: 0 8px 22px rgba(17, 24, 39, 0.07);
  --radius: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: linear-gradient(180deg, #f7f8fb 0%, #f2f4f9 100%);
  color: var(--text-main);
}

.site-header {
  width: min(980px, 92vw);
  margin: 20px auto 12px;
}

.site-header h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.site-header p {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.container {
  width: min(980px, 92vw);
  margin: 0 auto 28px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: row;
  align-items: start;
  gap: 14px;
}

.video-card {
  display: block;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.1);
}

.video-preview {
  width: 100%;
  display: block;
  aspect-ratio: 9 / 16;
  background: #000;
  object-fit: cover;
}

.video-player-area {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #eef2f5;
  overflow: hidden;
}

.video-player-area [hidden] {
  display: none !important;
}

.video-cover {
  position: relative;
  width: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: block;
  height: 100%;
  background: linear-gradient(135deg, #edf3f7 0%, #d8e3eb 100%);
  overflow: hidden;
}

.video-cover-image {
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: transparent;
}

.video-cover.no-poster {
  aspect-ratio: 9 / 16;
  background: linear-gradient(135deg, #edf3f7 0%, #d8e3eb 100%);
}

.video-cover.no-poster .video-cover-image {
  display: none;
}

.video-play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.video-cover-title {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 12px;
  color: #17212b;
  font-size: 18px;
  font-weight: 700;
  text-align: left;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.65);
}

.video-desc {
  margin: 0;
  padding: 10px 12px 14px;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 500;
}

@media (max-width: 680px) {
  .site-header h1 {
    font-size: 20px;
  }

  .video-grid {
    gap: 10px;
  }

  .video-card {
    border-radius: 12px;
  }

  .video-desc {
    font-size: 16px;
    padding: 9px 10px 12px;
  }
}
