/* ===== 剧本评测展示 ===== */
.omni-script-review-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  height: 100%;
  padding: clamp(14px, 2vw, 24px);
  justify-content: center;
}

/* Hero */
.omni-script-review-hero {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.omni-script-review-score-row {
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.omni-script-review-num {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -2px;
}

.omni-script-review-total {
  font-size: 14px;
  color: rgb(255 255 255 / 30%);
  font-weight: 400;
  margin-bottom: 6px;
}

.omni-script-review-grade {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 12px;
  margin-bottom: 8px;
  padding: 2px 10px;
  border-radius: 4px;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.2);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

.omni-script-review-grade-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: omni-sr-pulse 2s ease infinite;
}

@keyframes omni-sr-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.omni-script-review-bar {
  width: 100%;
  max-width: 320px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.omni-script-review-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
  transition: width 1.4s ease;
}

.omni-script-review-beat {
  font-size: 11px;
  color: rgb(255 255 255 / 30%);
}

.omni-script-review-beat b {
  color: var(--accent);
  font-weight: 600;
}

/* Chart */
.omni-script-review-chart {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 0;
}

.omni-script-review-chart-bars {
  display: flex;
  gap: 10px;
  flex: 1;
  align-items: flex-end;
  min-height: 0;
}

.omni-script-review-bcol {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  min-height: 0;
}

.omni-script-review-bbar-area {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  min-height: 0;
  position: relative;
}

.omni-script-review-bseg {
  width: 70%;
  min-height: 0;
  transition: height 1s cubic-bezier(0.4, 0, 0.2, 1), filter 0.25s, opacity 0.25s;
}

.omni-script-review-bseg.is-score {
  background: linear-gradient(180deg, #33ffaa, var(--accent) 40%, #00cc6a);
  border-radius: 5px 5px 2px 2px;
  position: relative;
  overflow: hidden;
}

.omni-script-review-bseg.is-score::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 50%;
  bottom: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent);
  border-radius: 5px 0 0 0;
  pointer-events: none;
}

.omni-script-review-bseg.is-perfect {
  border-radius: 5px;
}

.omni-script-review-bseg.is-loss {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-bottom: none;
  border-radius: 2px 2px 0 0;
}

.omni-script-review-bcol:hover .omni-script-review-bseg.is-score {
  filter: brightness(1.15);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.15);
}

.omni-script-review-bcol.is-active .omni-script-review-bseg.is-score {
  filter: brightness(1.25);
  box-shadow: 0 0 14px rgba(0, 255, 136, 0.25);
}

.omni-script-review-bcol.is-dimmed .omni-script-review-bseg {
  opacity: 0.2;
}

.omni-script-review-blabel {
  text-align: center;
}

.omni-script-review-blabel span {
  font-size: clamp(8px, 0.9vw, 10px);
  font-weight: 600;
  color: rgb(255 255 255 / 55%);
  white-space: nowrap;
}

.omni-script-review-bcol:hover .omni-script-review-blabel span,
.omni-script-review-bcol.is-active .omni-script-review-blabel span {
  color: var(--accent);
}

.omni-script-review-diminfo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  animation: omni-sr-fadeUp 0.25s ease;
}

@keyframes omni-sr-fadeUp {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.omni-script-review-diminfo-name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.omni-script-review-diminfo-score {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.omni-script-review-diminfo-score small {
  font-size: 12px;
  color: rgb(255 255 255 / 30%);
  font-weight: 400;
}

.omni-script-review-legend {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  font-size: 9px;
  color: rgb(255 255 255 / 30%);
}

.omni-script-review-legend-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 2px;
}

.omni-script-review-legend-dot.is-score {
  background: var(--accent);
}

.omni-script-review-legend-dot.is-loss {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.15);
}

@media (max-width: 560px) {
  .omni-script-review-chart-bars {
    gap: 6px;
  }

  .omni-script-review-bseg {
    width: 80%;
  }
}
