.competition-page {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 34px 20px 64px;
  color: #162033;
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.competition-page * {
  box-sizing: border-box;
}

.competition-hero {
  margin-bottom: 22px;
  padding: 22px 0 24px;
  border-top: 1px solid #edf0f5;
  border-bottom: 1px solid #dfe5ee;
}

.competition-eyebrow {
  margin: 0 0 8px;
  color: #e11d48;
  font-size: 13px;
  font-weight: 800;
}

.competition-hero-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.competition-official-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  margin-top: 6px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
}

.competition-official-link:hover {
  color: #e11d48;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.competition-hero h1 {
  margin: 0;
  color: #0f172a;
  font-size: 36px;
  font-weight: 850;
  line-height: 1.22;
}

.competition-hero .competition-participant-title {
  font-size: 30px;
}

.competition-participant-name-en {
  color: #475569;
  font-size: 0.72em;
  font-weight: 750;
}

.competition-participant-nationality {
  margin: 0 0 6px;
  color: #64748b;
  font-size: 15px;
  font-weight: 750;
}

.competition-lead {
  max-width: none;
  margin: 14px 0 0;
  color: #334155;
  font-size: 16px;
  line-height: 1.9;
  white-space: nowrap;
}

.competition-actions,
.participant-links,
.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.competition-button,
.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid #0f172a;
  border-radius: 6px;
  padding: 8px 14px;
  background: #0f172a;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
}

.competition-button:hover,
.share-button:hover {
  background: #e11d48;
  border-color: #e11d48;
  color: #fff;
}

.competition-button.is-secondary,
.share-button.is-secondary {
  background: #fff;
  border-color: #cbd5e1;
  color: #162033;
}

.competition-button.is-secondary:hover,
.share-button.is-secondary:hover {
  background: #fff1f3;
  border-color: #fb7185;
  color: #be123c;
}

.participant-link-button {
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.participant-link-button:hover {
  transform: translateY(-1px);
}

.participant-link-button--x,
.participant-link-button--instagram,
.participant-link-button--youtube {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
}

.participant-link-icon {
  display: block;
  width: 17px;
  height: 17px;
}

.participant-link-button--youtube .participant-link-icon {
  color: #fff;
}

.participant-link-button--x {
  background: #111827;
  color: #fff;
  font-size: 14px;
}

.participant-link-button--x:hover {
  background: #000;
  border-color: transparent;
  color: #fff;
}

.participant-link-button--instagram {
  background: linear-gradient(135deg, #f97316 0%, #e11d48 48%, #7c3aed 100%);
  color: #fff;
}

.participant-link-button--instagram:hover {
  background: linear-gradient(135deg, #fb923c 0%, #f43f5e 48%, #8b5cf6 100%);
  border-color: transparent;
  color: #fff;
}

.participant-link-button--youtube {
  background: #dc2626;
  color: #fff;
}

.participant-link-button--youtube:hover {
  background: #b91c1c;
  border-color: transparent;
  color: #fff;
}

.participant-link-button--official {
  border-color: #cbd5e1;
  background: #fff;
  color: #0f172a;
}

.participant-link-button--official:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.share-button.is-facebook {
  background: #1877f2;
  border-color: #1877f2;
  color: #fff;
}

.share-button.is-facebook:hover {
  background: #0d65d9;
  border-color: #0d65d9;
  color: #fff;
}

.competition-grid,
.participant-grid,
.competition-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.participant-card,
.competition-card,
.summary-card,
.program-piece {
  min-width: 0;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.participant-card,
.competition-card {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  padding: 18px;
}

.participant-empty {
  grid-column: 1 / -1;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  padding: 24px 18px;
  background: #fff;
  color: #526070;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}

.competition-grid--plain .competition-card {
  min-height: 0;
  position: relative;
  overflow: hidden;
  padding: 16px 48px 16px 16px;
  border-color: #dbeafe;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.competition-grid--plain .competition-card:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.competition-card-kicker {
  margin: 0 0 7px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.competition-card-arrow {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 16px;
  font-weight: 900;
}

.participant-card h2,
.competition-card h2,
.competition-card h3 {
  margin: 0 0 4px;
  color: #0f172a;
  font-size: 20px;
  font-weight: 850;
  line-height: 1.35;
}

.participant-card h2 {
  font-size: 18px;
}

.participant-nationality {
  margin: 0 0 5px;
  color: #64748b;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
}

.participant-stars {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  margin: 0 0 8px;
}

.participant-star-icons,
.round-star-mark {
  color: #dc2626;
  font-weight: 900;
  letter-spacing: 0;
}

.participant-star-icons {
  font-size: 18px;
  line-height: 1;
}

.participant-star-note,
.round-star-note {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border-radius: 6px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.participant-card h2 a,
.competition-card h2 a,
.competition-card h3 a {
  color: #1976d2;
  text-decoration: none;
}

.participant-card h2 a:hover,
.competition-card h2 a:hover,
.competition-card h3 a:hover {
  color: #e11d48;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.participant-meta,
.competition-meta,
.program-meta,
.competition-note {
  margin: 4px 0 0;
  color: #526070;
  font-size: 14px;
  line-height: 1.75;
}

.participant-highlight {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #eef2f7;
}

.participant-highlight-label {
  grid-column: 1 / -1;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.participant-highlight-title {
  min-width: 0;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: none;
}

.participant-highlight-title:hover {
  color: #1976d2;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.piece-scores-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.piece-scores-line.badges {
  gap: 6px;
  margin-top: 14px;
}

.piece-scores-line .badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  white-space: nowrap;
}

.piece-scores-line .badge .k {
  opacity: 0.78;
  font-size: 9px;
  letter-spacing: 0.04em;
}

.piece-scores-line .badge .v {
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 900;
}

.piece-scores-line .b-total {
  background: linear-gradient(180deg, #eadcfb 0%, #d9c2f3 100%);
  color: #5d458f;
  border-color: rgba(255,255,255,0.65);
  box-shadow: 0 8px 20px rgba(93,69,143,0.18);
}

.piece-scores-line .b-tech {
  background: linear-gradient(180deg, #f6ddd6 0%, #ecc5ba 100%);
  color: #944534;
  border-color: rgba(255,255,255,0.65);
  box-shadow: 0 8px 20px rgba(148,69,52,0.16);
}

.piece-scores-line .b-exp {
  background: linear-gradient(180deg, #dce9f8 0%, #c6daf0 100%);
  color: #3f6288;
  border-color: rgba(255,255,255,0.65);
  box-shadow: 0 8px 20px rgba(63,98,136,0.16);
}

.piece-scores-line .piece-video-indicator,
.piece-scores-line .piece-rating-indicator,
.piece-scores-line .piece-info-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  line-height: 1;
}

.piece-scores-line .piece-video-indicator {
  color: #ff0000;
}

.piece-scores-line .piece-rating-indicator {
  color: #16a34a;
}

.piece-scores-line .piece-info-indicator {
  color: #2563eb;
}

.piece-scores-line .piece-video-indicator svg,
.piece-scores-line .piece-rating-indicator svg,
.piece-scores-line .piece-info-indicator svg {
  display: block;
  width: 16px;
  height: 16px;
}

.competition-summary-grid {
  margin-bottom: 28px;
}

.summary-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  min-height: 118px;
  padding: 16px 16px 15px;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.summary-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #1976d2;
}

.summary-card:hover {
  border-color: #c8d4e4;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.summary-card--mechanics::before {
  background: #ef4444;
}

.summary-card--expression::before {
  background: #60a5fa;
}

.summary-card--total::before {
  background: #a78bfa;
}

.summary-card-label {
  grid-column: 1 / -1;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.summary-card-title {
  align-self: end;
  min-width: 0;
  color: #0f172a;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.45;
  text-decoration: none;
}

.summary-card-title:hover {
  color: #1976d2;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.summary-card-score {
  align-self: end;
  min-width: 54px;
  border-radius: 999px;
  padding: 6px 10px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.summary-card-empty {
  grid-column: 1 / -1;
  align-self: end;
  color: #94a3b8;
  font-size: 18px;
  font-weight: 800;
}

.round-section {
  margin-top: 30px;
}

.round-section h2 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 22px;
  font-weight: 850;
  line-height: 1.35;
}

.round-star-mark {
  margin-left: 8px;
  font-size: 20px;
}

.round-star-note {
  margin-left: 6px;
  vertical-align: middle;
}

.program-list {
  display: grid;
  gap: 12px;
}

.program-piece {
  padding: 18px;
}

.program-piece-composer {
  margin: 0 0 5px;
  color: #526070;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.program-piece-composer a {
  color: inherit;
  text-decoration: none;
}

.program-piece-composer a:hover {
  color: #e11d48;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.program-piece-title {
  margin: 0 0 4px;
  color: #333;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
}

.program-piece-title a {
  appearance: none;
  -webkit-appearance: none;
  display: inline-block;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: left;
  text-decoration: none;
}

.program-piece-title a:hover {
  color: inherit;
  text-decoration: none;
}

.program-unregistered {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-top: 10px;
  border-radius: 6px;
  padding: 5px 9px;
  background: #f1f5f9;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.competition-disclaimer {
  margin-top: 36px;
  padding: 18px 0 0;
  border-top: 1px solid #dfe5ee;
  color: #526070;
  font-size: 13px;
  line-height: 1.8;
}

.competition-disclaimer p {
  margin: 0 0 8px;
}

.competition-disclaimer a {
  color: #075985;
  font-weight: 800;
  text-decoration: none;
}

.competition-disclaimer a:hover {
  color: #e11d48;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.piabase-piece-search-results {
  margin-top: 6px;
  max-height: 180px;
  overflow: auto;
}

.piabase-piece-search-result,
.piabase-piece-search-empty {
  display: block;
  width: 100%;
  padding: 6px 8px;
  text-align: left;
}

@media (max-width: 700px) {
  .competition-page {
    padding: 22px 14px 48px;
  }

  .competition-hero {
    margin-bottom: 18px;
    padding: 18px 0 20px;
  }

  .competition-hero h1 {
    font-size: 29px;
  }

  .competition-hero .competition-participant-title {
    font-size: 24px;
  }

  .competition-hero-heading {
    display: block;
  }

  .competition-official-link {
    margin-top: 12px;
  }

  .competition-lead {
    font-size: 15px;
    line-height: 1.85;
    white-space: normal;
  }

  .competition-grid,
  .participant-grid,
  .competition-summary-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .summary-card {
    min-height: 104px;
    gap: 7px 10px;
    padding: 14px 14px 13px;
  }

  .summary-card-title {
    font-size: 14px;
  }

  .summary-card-score {
    min-width: 48px;
    padding: 6px 8px;
    font-size: 16px;
  }

  .participant-card,
  .competition-card {
    min-height: 0;
    padding: 15px;
  }

  .participant-card h2,
  .competition-card h2,
  .competition-card h3 {
    font-size: 18px;
  }

  .piece-scores-line {
    gap: 7px;
  }

  .piece-scores-line.badges {
    gap: 6px;
  }

  .piece-scores-line .badge {
    padding: 5px 7px;
    font-size: 12px;
  }

  .piece-scores-line .badge .v {
    font-size: 14px;
  }

  .program-piece {
    padding: 15px;
  }
}
