:root {
  color-scheme: dark;
  --bg: #050b12;
  --panel: rgba(6, 14, 24, 0.62);
  --panel-strong: rgba(7, 18, 30, 0.82);
  --line: rgba(182, 223, 255, 0.15);
  --text: #f6fbff;
  --muted: rgba(232, 242, 255, 0.7);
  --accent: #77f2cf;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 20% 0%, rgba(88, 194, 255, 0.12), transparent 30%),
    radial-gradient(circle at 100% 10%, rgba(119, 242, 207, 0.1), transparent 26%),
    linear-gradient(180deg, #08111b 0%, #03070d 100%);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
  overflow: hidden;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  padding: 16px;
}

.status-bar,
.hud-card,
.hud-spotlight {
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.status-bar {
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  max-width: min(100%, 620px);
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(6, 14, 24, 0.58);
}

.status-badge {
  flex: none;
  padding: 9px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(119, 242, 207, 0.18), rgba(95, 168, 255, 0.14));
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.status-copy {
  min-width: 0;
}

.status-title,
.status-text,
.hud-label,
.hud-value,
.hud-source,
.hud-title,
.hud-meta-item,
.empty-tag,
.empty-state h2,
.empty-state p {
  margin: 0;
}

.status-title {
  font-size: 15px;
  font-weight: 700;
}

.status-text {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.stage {
  position: relative;
  overflow: hidden;
  min-height: 0;
  border-radius: 34px;
  background: #07111b;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 9, 16, 0.18) 0%, rgba(3, 9, 16, 0.32) 100%),
    radial-gradient(circle at top left, rgba(119, 242, 207, 0.08), transparent 30%);
  pointer-events: none;
  z-index: 2;
}

.slide-layer,
.empty-state,
.slide-backdrop,
.slide-shade,
.slide-media {
  position: absolute;
  inset: 0;
}

.slide-layer {
  opacity: 0;
  transition: opacity 0.75s ease;
}

.slide-layer.is-active {
  opacity: 1;
}

.slide-backdrop {
  overflow: hidden;
}

.slide-backdrop-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  filter: blur(40px) saturate(1.16) brightness(0.5);
  opacity: 0.92;
}

.slide-shade {
  background:
    linear-gradient(180deg, rgba(3, 9, 16, 0.16) 0%, rgba(3, 9, 16, 0.48) 100%),
    radial-gradient(circle at center, transparent 40%, rgba(4, 8, 15, 0.38) 100%),
    linear-gradient(90deg, rgba(3, 8, 14, 0.26) 0%, transparent 28%, transparent 72%, rgba(3, 8, 14, 0.26) 100%);
}

.slide-media {
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8vh 7vw;
}

.slide-frame {
  position: relative;
  padding: 14px;
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.slide-frame::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.slide-image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(68vw, 1120px);
  max-height: min(76vh, 860px);
  border-radius: 24px;
  object-fit: contain;
  background: rgba(4, 9, 15, 0.42);
  user-select: none;
  -webkit-user-drag: none;
}

.empty-state {
  z-index: 6;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 32px;
}

.empty-state.is-hidden {
  display: none;
}

.empty-tag {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(119, 242, 207, 0.12);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.empty-state h2 {
  margin-top: 18px;
  font-size: clamp(28px, 3vw, 44px);
}

.empty-state p {
  margin-top: 12px;
  max-width: 640px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.hud {
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
}

.hud-spotlight {
  flex: 1 1 420px;
  min-width: 280px;
  padding: 14px 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(6, 14, 24, 0.58);
}

.hud-source {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.hud-title {
  margin-top: 8px;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.12;
  word-break: break-word;
}

.hud-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 10px;
}

.hud-meta-item {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.hud-side {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.hud-card {
  min-width: 168px;
  padding: 11px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(6, 14, 24, 0.58);
}

.hud-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hud-value {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 700;
}

@media (max-width: 960px) {
  .app-shell {
    padding: 12px;
  }

  .status-bar {
    width: 100%;
    border-radius: 22px;
  }

  .stage {
    border-radius: 24px;
  }

  .slide-media {
    align-items: flex-start;
    padding: 72px 16px 180px;
  }

  .slide-frame {
    padding: 10px;
    border-radius: 24px;
  }

  .slide-frame::after {
    inset: 10px;
    border-radius: 18px;
  }

  .slide-image {
    max-width: calc(100vw - 56px);
    max-height: 58vh;
    border-radius: 18px;
  }

  .hud {
    justify-content: stretch;
  }

  .hud-spotlight,
  .hud-side {
    width: 100%;
  }

  .hud-side {
    justify-content: stretch;
  }

  .hud-card {
    flex: 1 1 0;
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .status-bar {
    gap: 10px;
    padding: 10px 12px;
  }

  .status-badge {
    padding: 8px 10px;
    font-size: 11px;
  }

  .status-title {
    font-size: 14px;
  }

  .status-text,
  .hud-label,
  .hud-value,
  .hud-meta-item,
  .empty-state p {
    font-size: 13px;
  }
}
