:root {
  --bg: #0c1022;
  --card: rgba(255, 255, 255, 0.9);
  --ink: #14213d;
  --muted: #667085;
  --line: rgba(20, 33, 61, 0.1);
  --glow: rgba(104, 117, 245, 0.28);
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(126, 87, 194, 0.55), transparent 28rem),
    radial-gradient(circle at top right, rgba(0, 188, 212, 0.45), transparent 28rem),
    linear-gradient(135deg, #0c1022 0%, #151a34 48%, #111827 100%);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
}

.hero-card, .news-panel, .script-panel {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 32px;
  background: var(--card);
  backdrop-filter: blur(24px);
}

.hero-card {
  padding: clamp(28px, 5vw, 58px);
  overflow: hidden;
  position: relative;
}

.hero-card::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -80px;
  top: -90px;
  background: var(--glow);
  border-radius: 999px;
  filter: blur(4px);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #111827;
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5.8rem);
  line-height: 0.92;
  font-weight: 850;
  letter-spacing: -0.07em;
}

.lead {
  max-width: 680px;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(20, 33, 61, 0.08);
  font-weight: 700;
  font-size: 0.9rem;
}

.player-card {
  position: relative;
  z-index: 2;
  border-radius: 28px;
  padding: 28px;
  background: #111827;
  color: white;
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.36);
}

.player-card h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
}

.player-help {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.tts-controls .btn {
  border-radius: 999px;
  padding: 10px 16px;
}

.tts-controls .form-select {
  border: 0;
  border-radius: 16px;
  padding: 12px 14px;
}

.pulse-dot {
  width: 16px;
  height: 16px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.8);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 18px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 24px;
}

.news-panel, .script-panel {
  padding: 28px;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
}

.panel-heading h2, .script-panel h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 850;
}

.panel-heading p, .script-panel p {
  margin: 0;
  color: var(--muted);
}

.story-list {
  display: grid;
  gap: 14px;
}

.story-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.story-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.09);
}

.story-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: #111827;
  color: white;
  font-weight: 850;
}

.story-meta {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.story-card h3 {
  margin: 4px 0 7px;
  font-size: 1.06rem;
  font-weight: 800;
  line-height: 1.25;
}

.story-card a {
  color: var(--ink);
  text-decoration: none;
}

.story-card a:hover { text-decoration: underline; }

.story-card p {
  margin: 0;
  color: #475467;
  line-height: 1.55;
}

.script-panel pre {
  max-height: 690px;
  overflow: auto;
  margin: 18px 0 0;
  padding: 18px;
  border-radius: 22px;
  background: #111827;
  color: #e5e7eb;
  white-space: pre-wrap;
  font-size: 0.9rem;
  line-height: 1.55;
}

.empty-state {
  padding: 34px;
  border: 1px dashed var(--line);
  border-radius: 24px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.55);
}

@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; }
  .panel-heading { display: block; }
  .panel-heading p { margin-top: 6px; }
}

.voice-picker {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.voice-picker .form-label {
  color: rgba(255, 255, 255, 0.82);
}

.voice-picker .form-select,
.voice-picker .form-control {
  border: 0;
  border-radius: 12px;
}

.voice-picker {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 14px;
}

.voice-preview-box {
  background: rgba(0,0,0,0.20);
  border: 1px dashed rgba(255,255,255,0.20);
  border-radius: 14px;
  padding: 10px;
}
