/*
 * round-photos.css  —  圆形照片 A/B 测试版
 *
 * 启用：在 base.html 里取消注释：
 *   <link rel="stylesheet" href="{{ url_for('static', filename='css/round-photos.css') }}">
 * 关闭：再加回注释即可，不需要改任何其他文件
 *
 * ── 尺寸调整 ──────────────────────────────────────────────
 *   Jury 照片圆圈          → .jury-photo-wrap     width / height (下方)
 *   Grand Prix 圆圈        → .grandprix-photo      width / height
 *   获奖者列表圆圈          → .winner-row-photo     width / height
 *   Master Class 圆圈      → .teacher-card img     width / height
 *   分类按钮钢琴图标圆圈    → .cat-icon             width / height
 */

/* ── Jury 评委页 ─────────────────────────────────────────── */
.jury-card {
  grid-template-columns: 300px 1fr;
  align-items: top;
}
.jury-photo-wrap {
  width: 280px;   /* ← 调整 Jury 圆圈大小 */
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  margin: 30px auto;
}
.jury-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(25%);
}
.photo-placeholder {
  border-radius: 50%;
}

/* ── Grand Prix card ─────────────────────────────────────── */
.grandprix-card {
  align-items: center;
}
.grandprix-photo {
  width: 180px;   /* ← 调整 Grand Prix 圆圈大小 */
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  margin: 20px auto;
}
.grandprix-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ── Category winners list ───────────────────────────────── */
.winner-row {
  grid-template-columns: 200px 1fr;
  align-items: center;
}
.winner-row-photo {
  width: 180px;   /* ← 调整获奖者圆圈大小 */
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  margin: 16px auto;
}
.winner-row-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;  /* 头像在圆圈内居中 */
  filter: grayscale(20%);
}
.photo-placeholder-sm {
  width: 180px;
  height: 180px;
  min-height: unset;
  border-radius: 50%;
  margin: 16px auto;
}

/* ── Master Class teacher cards ──────────────────────────── */
.teacher-card img {
  width: 180px;   /* ← 调整 Master Class 圆圈大小 */
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  margin: 24px auto 0;
  display: block;
  filter: grayscale(20%);
}

/* ── Category grid 分类按钮（钢琴图标填满圆形） ───────────── */
.cat-icon {
  width: 116px;    /* ← 调整分类按钮图标圆圈大小 */
  height: 116px;
  padding: 0;
  overflow: hidden;
}
.cat-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 860px) {
  .jury-card { grid-template-columns: 1fr; }
  .jury-photo-wrap { width: 180px; height: 180px; margin: 24px auto; }
  .winner-row { grid-template-columns: 120px 1fr; }
  .winner-row-photo { width: 90px; height: 90px; }
  .photo-placeholder-sm { width: 90px; height: 90px; }
  .teacher-card img { width: 130px; height: 130px; }
}

@media (max-width: 500px) {
  .winner-row { grid-template-columns: 1fr; }
  .winner-row-photo { width: 120px; height: 120px; margin: 16px auto; }
}
