* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #1a1a1a;
  background-image: url('/images/runner-taipei.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  color: #fff;
}

a {
  color: #d8fbff;
}

.detail-shell {
  max-width: 900px;
  margin: 0 auto;
  background-color: rgba(26, 26, 26, 0.9);
  border-radius: 12px;
  padding: 1px 20px 20px;
}

.site-header {
  text-align: center;
  margin-bottom: 12px;
  padding-top: 15px;
  position: relative;
}

.logo {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.logo-link {
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

.logo-link:focus-visible,
.utility-link:focus-visible,
.crumb-link:focus-visible,
.site-footer a:focus-visible,
.related-list li a:focus-visible,
.button:focus-visible,
.feedback-trigger:focus-visible,
.feedback-reason:focus-visible,
.feedback-target-select:focus-visible {
  outline: 2px solid #00e5ff;
  outline-offset: 3px;
  border-radius: 6px;
}

.logo-char {
  display: inline-block;
  text-align: center;
}

.char-zh {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.1;
  display: block;
  color: #ffffff;
}

.char-en {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  color: #cccccc;
}

.accent-color {
  color: #00e5ff;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  position: absolute;
  right: 0;
  top: 18px;
}

.utility-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f5fbff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.utility-link:hover {
  background: rgba(0, 229, 255, 0.14);
  border-color: rgba(0, 229, 255, 0.36);
  color: #00e5ff;
}

.detail-header {
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.crumb-link,
.crumb-current {
  color: #d8fbff;
  font-weight: 600;
}

.crumb-link {
  text-decoration: none;
}

.crumb-link:hover {
  text-decoration: underline;
}

.crumb-sep {
  color: #8fb0b9;
  margin: 0 8px;
}

.detail-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero,
section,
.info-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}

.hero {
  padding: 24px 20px;
}

section {
  padding: 18px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  background: transparent;
  border: 0;
}

.info-card {
  padding: 16px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #00e5ff;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.2;
  color: #ffffff;
}

h2 {
  margin-top: 8px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: #cccccc;
  font-weight: 500;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.05rem;
  color: #ffffff;
}

p {
  color: #f0f0f0;
  line-height: 1.6;
}

.muted,
.edition-date-en,
.edition-location-en,
.feedback-target-note {
  color: #c7d6db;
}

.hero-actions,
.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.button,
.feedback-trigger,
.feedback-reason {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.button:hover,
.feedback-trigger:hover,
.feedback-reason:hover {
  transform: translateY(-1px);
}

.button.primary,
.feedback-trigger {
  background: #00a6bd;
  color: #ffffff;
  padding: 12px 18px;
}

.button.primary:hover,
.feedback-trigger:hover {
  background: #0094aa;
}

.button.secondary {
  background: rgba(0, 229, 255, 0.14);
  border-color: rgba(0, 229, 255, 0.22);
  color: #d8fbff;
  padding: 10px 16px;
}

.button.secondary:hover {
  background: rgba(0, 229, 255, 0.22);
}

.button.disabled {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #9fb0b6;
  cursor: default;
  padding: 10px 16px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 20px;
  background-color: #e7f3ff;
  color: #007bff;
  padding: 5px 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

.edition-list,
.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.edition-item,
.related-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.edition-main,
.related-list li {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.edition-date,
.edition-date-en {
  font-weight: 600;
}

.related-list li a {
  font-weight: 700;
  text-decoration: none;
  color: #ffffff;
}

.related-list li a:hover {
  text-decoration: underline;
}

.feedback-panel {
  border: 1px solid rgba(0, 229, 255, 0.2);
}

.feedback-target {
  margin-top: 14px;
}

.feedback-target-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #ffffff;
}

.feedback-target-select {
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  font: inherit;
  color: #ffffff;
}

.feedback-trigger.report,
.feedback-reason {
  background: rgba(255, 255, 255, 0.08);
  color: #d8fbff;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.feedback-trigger.report:hover,
.feedback-reason:hover {
  background: rgba(0, 229, 255, 0.16);
  border-color: rgba(0, 229, 255, 0.3);
}

.feedback-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.feedback-reason {
  padding: 10px 14px;
}

.feedback-status {
  min-height: 1.5em;
  margin-top: 14px;
  color: #d8fbff;
  font-weight: 600;
}

.en-block {
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
}

.site-footer {
  margin-top: 18px;
  padding: 8px 0 6px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer a {
  color: #d8fbff;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  body {
    padding: 12px;
  }

  .detail-shell {
    padding: 1px 14px 18px;
    background-color: rgba(26, 26, 26, 0.92);
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .edition-item,
  .related-list li,
  .site-footer {
    flex-direction: column;
  }

  .site-footer {
    align-items: center;
    gap: 10px;
  }

  .header-actions {
    top: 12px;
    right: 2px;
  }
}
