:root {
  --bg: #0a1721;
  --bg-soft: #13334c;
  --panel: rgba(9, 22, 33, 0.78);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #f3f7fb;
  --muted: #afc3d6;
  --accent: #f5b942;
  --accent-strong: #ff8b3d;
  --success: #8ee7bb;
  --shadow: 0 28px 60px rgba(0, 0, 0, 0.3);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-sm: 999px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 139, 61, 0.18), transparent 34%),
    radial-gradient(circle at top right, rgba(245, 185, 66, 0.2), transparent 28%),
    linear-gradient(135deg, #07111a 0%, #10293a 52%, #0b1925 100%);
}

body.is-rtl {
  font-family: "Tajawal", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.topbar,
.hero-layout,
.content-grid {
  display: grid;
  gap: 24px;
}

.topbar {
  align-items: center;
  grid-template-columns: 1fr auto;
  margin-bottom: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #0b1520;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-copy {
  display: grid;
  gap: 4px;
}

.brand-name {
  font-size: 1rem;
  font-weight: 800;
}

.brand-tag {
  color: var(--muted);
  font-size: 0.88rem;
}

.toolbar,
.language-switch,
.hero-actions,
.hero-stats {
  display: flex;
  gap: 12px;
}

.language-switch {
  padding: 6px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lang-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.lang-button.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text);
}

.panel {
  position: relative;
  overflow: hidden;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-layout {
  align-items: stretch;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.hero-card {
  padding: 40px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 700;
}

.hero-title,
.panel h2 {
  margin: 0;
  line-height: 1.05;
}

.hero-title {
  max-width: 12ch;
  font-size: clamp(2.6rem, 7vw, 5.3rem);
  font-weight: 800;
}

.hero-text,
.player-note,
.metadata-note,
.contact-note,
.info-card p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 60ch;
  margin: 18px 0 0;
  font-size: 1.04rem;
}

.hero-actions {
  flex-wrap: wrap;
  margin: 28px 0 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover,
.lang-button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #09131c;
  font-weight: 800;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.button-wide {
  width: 100%;
}

.hero-stats {
  flex-wrap: wrap;
}

.stat {
  min-width: 132px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
}

.stat-label {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.player-column {
  display: grid;
  gap: 24px;
}

.panel-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.panel-header h2 {
  font-size: 1.5rem;
}

.live-pill,
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(142, 231, 187, 0.12);
  color: var(--success);
  font-size: 0.84rem;
  font-weight: 700;
}

.live-pill::before,
.status-dot::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 6px rgba(142, 231, 187, 0.1);
}

.player-card audio {
  width: 100%;
  margin-top: 18px;
  border-radius: 14px;
}

.player-card {
  position: relative;
}

.player-overlay {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  margin-top: 12px;
  margin-bottom: 12px;
}

.player-overlay.is-hidden {
  display: none;
}

.player-overlay.is-loading .overlay-play {
  cursor: progress;
  opacity: 0.72;
  transform: none;
}

.overlay-play {
  width: min(100%, 240px);
  min-height: 240px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 24px;
  cursor: pointer;
  color: #09131c;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: 0 18px 48px rgba(255, 139, 61, 0.35);
  transition: transform 160ms ease, filter 160ms ease;
}

.overlay-play:disabled,
#play-toggle:disabled {
  cursor: progress;
}

.player-secondary-control {
  margin-top: 8px;
}

.player-secondary-control.is-hidden {
  display: none;
}

.overlay-play:hover {
  transform: translateY(-2px) scale(1.01);
  filter: brightness(1.03);
}

.overlay-icon {
  width: 0;
  height: 0;
  border-top: 24px solid transparent;
  border-bottom: 24px solid transparent;
  border-left: 38px solid #09131c;
  margin-left: 8px;
}

.overlay-label {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.player-note,
.metadata-note {
  margin-bottom: 0;
}

.track-grid {
  display: grid;
  gap: 16px;
  margin: 24px 0 18px;
}

.track-field {
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.track-field strong {
  display: block;
  font-size: 1rem;
  line-height: 1.5;
}

.content-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.info-card p:last-child {
  margin-bottom: 0;
}

body.is-rtl {
  direction: rtl;
}

body.is-rtl .topbar {
  grid-template-columns: auto 1fr;
}

body.is-rtl .brand {
  justify-self: end;
}

body.is-rtl .toolbar {
  justify-content: start;
}

@media (max-width: 980px) {
  .hero-layout,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .player-column {
    order: -1;
  }

  .hero-title {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 24px), var(--max-width));
    padding-top: 18px;
  }

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

  .toolbar {
    justify-content: start;
  }

  .hero-card,
  .panel {
    padding: 22px;
  }

  .panel-header {
    flex-direction: column;
  }

  .hero-actions,
  .hero-stats {
    flex-direction: column;
  }

  .overlay-play {
    min-height: 200px;
  }

  .stat {
    width: 100%;
  }
}
