:root {
  --ink: #101315;
  --paper: #f6f3ec;
  --panel: #fffdf7;
  --line: rgba(16, 19, 21, 0.16);
  --red: #d43f2f;
  --gold: #d6a13a;
  --teal: #087f8c;
  --green: #16895d;
  --blue: #385f96;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(8, 127, 140, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(8, 127, 140, 0.08) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
a {
  font: inherit;
}

.app {
  width: min(1440px, 100%);
  margin: 0 auto;
}

.stage {
  min-height: 78vh;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(340px, 0.7fr);
  border-bottom: 1px solid var(--line);
}

.visual-panel {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  padding: 28px;
  background: #dfe9e7;
}

.ticker {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  padding: 10px 14px;
  border: 1px solid rgba(16, 19, 21, 0.2);
  background: rgba(255, 253, 247, 0.88);
  backdrop-filter: blur(12px);
}

.ticker span {
  padding: 4px 8px;
  color: #fff;
  background: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.ticker strong {
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.city-scene {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(214, 161, 58, 0.24), transparent 24%),
    linear-gradient(180deg, #dfe9e7 0%, #f6f3ec 70%);
}

.tower {
  position: absolute;
  bottom: 0;
  border: 1px solid rgba(16, 19, 21, 0.28);
  background:
    repeating-linear-gradient(0deg, transparent 0 24px, rgba(255, 253, 247, 0.48) 24px 28px),
    linear-gradient(135deg, rgba(8, 127, 140, 0.78), rgba(56, 95, 150, 0.82));
  box-shadow: 0 24px 60px rgba(16, 19, 21, 0.2);
}

.tower-a {
  left: 9%;
  width: 18%;
  height: 74%;
}

.tower-b {
  left: 35%;
  width: 24%;
  height: 92%;
  background:
    repeating-linear-gradient(90deg, transparent 0 30px, rgba(255, 253, 247, 0.44) 30px 35px),
    linear-gradient(150deg, rgba(212, 63, 47, 0.82), rgba(214, 161, 58, 0.78));
}

.tower-c {
  right: 9%;
  width: 19%;
  height: 66%;
  background:
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(255, 253, 247, 0.5) 18px 22px),
    linear-gradient(140deg, rgba(22, 137, 93, 0.76), rgba(8, 127, 140, 0.74));
}

.street-grid {
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  background:
    linear-gradient(140deg, transparent 0 44%, rgba(16, 19, 21, 0.22) 44% 45%, transparent 45%),
    repeating-linear-gradient(90deg, rgba(16, 19, 21, 0.18) 0 1px, transparent 1px 72px),
    rgba(255, 253, 247, 0.8);
  transform: skewY(-4deg);
  transform-origin: bottom left;
}

.signal {
  position: absolute;
  width: 180px;
  height: 180px;
  border: 2px solid rgba(212, 63, 47, 0.55);
  animation: pulse 3s ease-in-out infinite;
}

.signal-one {
  top: 12%;
  right: 20%;
}

.signal-two {
  top: 31%;
  left: 17%;
  border-color: rgba(8, 127, 140, 0.55);
  animation-delay: 1.2s;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(0.82);
    opacity: 0.32;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.72;
  }
}

.headline-wrap {
  position: absolute;
  z-index: 3;
  left: clamp(24px, 5vw, 72px);
  right: clamp(24px, 8vw, 96px);
  bottom: clamp(28px, 7vw, 90px);
  max-width: 860px;
}

.source-label {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(54px, 8vw, 118px);
  line-height: 0.92;
  letter-spacing: 0;
}

.dek {
  max-width: 760px;
  margin: 22px 0 0;
  font-size: clamp(20px, 2.5vw, 34px);
  line-height: 1.18;
  font-weight: 650;
}

.control-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  background: var(--panel);
  border-left: 1px solid var(--line);
}

.brand {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.brand span {
  color: var(--teal);
  font-weight: 900;
}

.brand strong {
  font-size: 14px;
}

.voice-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.voice-btn,
.play-btn,
.source-link {
  min-height: 48px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.voice-btn.active,
.play-btn {
  background: var(--ink);
  color: var(--panel);
}

.voice-status {
  margin: -8px 0 0;
  color: rgba(16, 19, 21, 0.64);
  font-size: 12px;
  line-height: 1.35;
}

.speed-control {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
  color: rgba(16, 19, 21, 0.76);
  font-size: 13px;
  font-weight: 800;
}

.speed-control strong {
  min-width: 24px;
  text-align: right;
  color: var(--red);
  font-size: 18px;
}

.speed-control input {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: var(--red);
}

.play-btn {
  min-height: 58px;
}

.progress-shell {
  height: 10px;
  border: 1px solid var(--ink);
  background: #e9e1d1;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--teal));
  transition: width 280ms ease;
}

.subtitle-box {
  flex: 1;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--ink);
  background: #101315;
  color: #fffdf7;
}

.subtitle-en {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.16;
  font-weight: 850;
}

.subtitle-zh {
  margin: 0;
  color: #f1d087;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.35;
  font-weight: 700;
}

.source-link {
  background: #fffdf7;
}

.news-strip,
.eight-heroes {
  padding: 28px;
  background: var(--paper);
}

.news-status {
  margin: 0 0 14px;
  color: rgba(16, 19, 21, 0.64);
  font-size: 13px;
  font-weight: 800;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 12px;
}

.news-card {
  min-height: 188px;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.72);
  cursor: pointer;
}

.news-card.active {
  border-color: var(--ink);
  background: #fffdf7;
  box-shadow: inset 0 -5px 0 var(--gold);
}

.news-card span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.news-card h2 {
  margin: 10px 0 8px;
  font-size: 17px;
  line-height: 1.15;
  letter-spacing: 0;
}

.news-card p {
  margin: 0;
  color: rgba(16, 19, 21, 0.72);
  font-size: 13px;
  line-height: 1.35;
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-title span {
  color: var(--red);
  font-size: 24px;
  font-weight: 950;
}

.section-title strong {
  color: rgba(16, 19, 21, 0.64);
}

.hero-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 1fr);
  gap: 14px;
  overflow: hidden;
}

.hero-card {
  min-height: 312px;
  border: 1px solid var(--line);
  background: #fffdf7;
  animation: drift 24s linear infinite;
}

.hero-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  border-bottom: 1px solid var(--line);
}

.hero-card div {
  padding: 12px 14px;
}

.hero-card h3 {
  margin: 0 0 5px;
  font-size: 18px;
  letter-spacing: 0;
}

.hero-card p {
  margin: 0;
  color: rgba(16, 19, 21, 0.68);
  font-size: 13px;
  line-height: 1.35;
}

@keyframes drift {
  0%, 8% {
    transform: translateX(0);
  }
  50%, 58% {
    transform: translateX(-46px);
  }
  100% {
    transform: translateX(0);
  }
}

@media (max-width: 980px) {
  .stage {
    grid-template-columns: 1fr;
  }

  .visual-panel {
    min-height: 58vh;
  }

  .control-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .news-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .visual-panel,
  .control-panel,
  .news-strip,
  .eight-heroes {
    padding: 18px;
  }

  .news-list {
    grid-template-columns: 1fr;
  }

  .section-title {
    display: block;
  }

  .hero-carousel {
    grid-auto-columns: 78%;
    overflow-x: auto;
  }
}
