:root {
  --theme-Primary: #0099db;
  --theme-Primary-light: #00D1FF;
  --theme-Secondary: #032d54;
  --theme-Bg: #deecf1;
  --theme-text: #013b71;
  --theme-muted: #676c72;
  --theme-white: #ffffff;
  --theme-card: #ffffff;
  --theme-soft: #F3FCFF;
  --theme-line: #C8D3D6;
  --theme-selected: linear-gradient(180deg, #0099DB 0%, #0D90BC 100%);
  --theme-circles: #E7FAFF;
  --theme-inactive-color: #2881AD80;
  --theme-Side-linear: linear-gradient(180deg, rgba(239, 253, 253, 0.00) -0.05%, rgba(19, 168, 215, 0.09) 56.71%, rgba(19, 168, 215, 0.25) 96.13%);
  --aside-width: 6.5rem;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(3, 45, 84, 0.08);
  --font: "Almarai", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--theme-text);
  background:
    radial-gradient(circle at 10% 0%, rgba(0, 209, 255, 0.18), transparent 35%),
    radial-gradient(circle at 90% 10%, rgba(0, 153, 219, 0.14), transparent 30%),
    linear-gradient(180deg, #f3fbff 0%, var(--theme-Bg) 45%, #d7ebf2 100%);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.structure {
  display: flex;
  min-height: 100vh;
  width: 100%;
}
.site-aside {
  position: sticky;
  top: 0;
  z-index: 30;
  width: var(--aside-width);
  flex: 0 0 var(--aside-width);
  height: 100vh;
  background: var(--theme-Side-linear), url("../images/nav/sideNav.svg");
  background-color: #fff;
  background-size: contain;
  background-position: bottom;
  background-repeat: no-repeat;
  box-shadow: 0 0 5px var(--theme-Bg);
}
.side-nav {
  list-style: none;
  margin: 0;
  padding: 2rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.25rem;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}
.side-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: var(--theme-inactive-color);
  text-align: center;
  width: 100%;
}
.side-link .label {
  font-size: 0.875rem;
  font-weight: 700;
}
.side-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
}
.side-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}
.side-icon .icon-active { display: none; }
.side-icon .icon-idle { display: block; }
.side-link.active .icon-idle { display: none; }
.side-link.active .icon-active { display: block; }
.side-link.active .label { color: var(--theme-Secondary); }
.side-brand img {
  width: 40px;
  height: auto;
}
.side-brand .label {
  color: var(--theme-Secondary);
  font-weight: 800;
}
.structure-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  width: calc(100% - var(--aside-width));
}
.site-main { flex: 1; padding: 0.85rem 0 3rem; }
body.has-player .site-main { padding-bottom: 6.5rem; }

.episode-card .card-media { position: relative; }
.card-media-actions {
  position: absolute;
  inset: auto 0.55rem 0.55rem auto;
  display: flex;
  gap: 0.35rem;
  align-items: center;
}
.card-fav,
.level-fav {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: #b7c4cc;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(3, 45, 84, 0.18);
}
.card-fav.is-on,
.level-fav.is-on { color: #e6a700; }
.card-fav:hover,
.level-fav:hover { color: #e6a700; }
.level-fav {
  background: transparent;
  box-shadow: none;
  width: 34px;
  height: 34px;
}
.play-trigger {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--theme-selected);
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(3, 45, 84, 0.25);
  display: grid;
  place-items: center;
  transition: transform 0.15s ease;
}
.play-trigger:hover { transform: scale(1.06); }
.episode-play-btn { margin-top: 1rem; }

.sc-player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: linear-gradient(180deg, #0a2740 0%, #032d54 100%);
  color: #fff;
  border-top: 1px solid rgba(0, 209, 255, 0.25);
  box-shadow: 0 -10px 30px rgba(3, 45, 84, 0.28);
}
.sc-player[hidden] { display: none !important; }
.sc-player-inner {
  width: min(1200px, calc(100% - 1.25rem));
  margin: 0 auto;
  padding: 0.7rem 0;
  display: grid;
  grid-template-columns: auto minmax(120px, 1.2fr) auto minmax(180px, 2fr) auto auto;
  gap: 0.75rem 1rem;
  align-items: center;
}
.sc-cover {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.sc-cover img { width: 100%; height: 100%; object-fit: cover; }
.sc-meta { min-width: 0; }
.sc-title {
  display: block;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-sub { color: rgba(231, 250, 255, 0.7); font-size: 0.82rem; margin-top: 0.15rem; }
.sc-controls { display: flex; align-items: center; gap: 0.35rem; }
.sc-btn {
  border: 0;
  background: transparent;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: grid;
  place-items: center;
}
.sc-btn:hover { background: rgba(255,255,255,0.1); }
.sc-btn-main {
  width: 44px;
  height: 44px;
  background: var(--theme-selected);
  font-size: 0.95rem;
}
.sc-progress-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.5rem;
  align-items: center;
  min-width: 0;
}
.sc-time { font-size: 0.78rem; color: rgba(231, 250, 255, 0.75); font-variant-numeric: tabular-nums; }
.sc-seek, .sc-volume {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 99px;
  background: rgba(255,255,255,0.22);
  outline: none;
}
.sc-seek::-webkit-slider-thumb, .sc-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #00D1FF;
  cursor: pointer;
}
.sc-volume-wrap { display: flex; align-items: center; gap: 0.3rem; }
.sc-volume { width: 80px; }
.sc-close { opacity: 0.8; }

@media (max-width: 900px) {
  .sc-player-inner {
    grid-template-columns: auto 1fr auto auto;
    grid-template-areas:
      "cover meta controls close"
      "progress progress progress progress";
  }
  .sc-cover { grid-area: cover; }
  .sc-meta { grid-area: meta; }
  .sc-controls { grid-area: controls; }
  .sc-close { grid-area: close; }
  .sc-progress-wrap { grid-area: progress; }
  .sc-volume-wrap { display: none; }
  body.has-player .site-main { padding-bottom: 7.5rem; }
  .site-aside { padding-bottom: 0; }
}

.page-intro h1 { margin: 0 0 0.4rem; color: var(--theme-Secondary); }
.page-intro p { margin: 0 0 1.25rem; color: var(--theme-muted); line-height: 1.7; }
.empty-state {
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--theme-line);
  border-radius: 20px;
  padding: 1.5rem;
  max-width: 520px;
}
.empty-state p { color: var(--theme-muted); line-height: 1.7; margin: 0 0 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(243, 252, 255, 0.82);
  border-bottom: 1px solid rgba(200, 211, 214, 0.7);
}
.site-header .container {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: 1rem;
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 0;
}
.header-auth {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.header-auth-link {
  color: var(--theme-Secondary);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.35rem 0.5rem;
}
.header-auth-btn {
  border: 1px solid var(--theme-line);
  background: #fff;
  color: var(--theme-Secondary);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
}
.header-auth-cta {
  padding: 0.4rem 0.8rem !important;
  font-size: 0.85rem !important;
}
.header-find {
  background: linear-gradient(160deg, rgba(255,255,255,0.95), rgba(231,250,255,0.9));
  border: 1px solid rgba(142, 186, 205, 0.4);
  border-radius: 14px;
  padding: 0.45rem 0.85rem;
  min-width: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.header-find strong {
  display: block;
  font-size: 0.78rem;
  color: var(--theme-Secondary);
  margin-bottom: 0.2rem;
}
.header-find-stats {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: center;
}
.header-find-stats span {
  font-size: 0.75rem;
  color: var(--theme-muted);
  white-space: nowrap;
}
.header-find-stats b {
  color: var(--theme-Primary);
  font-size: 0.9rem;
  margin-inline-end: 0.15rem;
}
.hero-simple {
  grid-template-columns: 1fr;
  min-height: 0;
  padding: 0.35rem 0 0;
  gap: 0;
}
.hero-simple .hero-copy {
  max-width: none;
}
.hero-simple .hero-copy h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.35;
}
.hero-simple .hero-copy p {
  margin: 0;
  font-size: 0.95rem;
  max-width: none;
  white-space: nowrap;
}
.hero-simple + .section {
  margin-top: 1.1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--theme-Secondary);
}
.main-nav {
  display: flex;
  justify-content: flex-start;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-inline-end: auto;
}
.main-nav a {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  color: var(--theme-Secondary);
  transition: 0.2s ease;
  font-size: 0.95rem;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  background: var(--theme-selected);
  color: #fff;
}
.header-search {
  display: flex;
  gap: 0.4rem;
  background: #fff;
  border: 1px solid var(--theme-line);
  border-radius: 999px;
  padding: 0.25rem;
}
.header-search input {
  border: 0;
  outline: 0;
  background: transparent;
  min-width: 160px;
  padding: 0.45rem 0.8rem;
}
.header-search button {
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  background: var(--theme-selected);
  color: #fff;
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem 0 1.5rem;
}
.hero-copy h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.25;
  color: var(--theme-Secondary);
}
.hero-copy p {
  margin: 0 0 1.25rem;
  color: var(--theme-muted);
  font-size: 1.05rem;
  max-width: 36rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: 0.2s ease;
}
.btn-primary {
  background: var(--theme-selected);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-secondary {
  background: rgba(255,255,255,0.8);
  color: var(--theme-Secondary);
  border: 1px solid var(--theme-line);
}
.hero-panel {
  background: linear-gradient(160deg, rgba(255,255,255,0.9), rgba(231,250,255,0.85));
  border: 1px solid rgba(142, 186, 205, 0.35);
  border-radius: 28px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
  min-height: 220px;
}
.hero-panel strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}
.stat-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
}
.stat {
  flex: 1 1 0;
  min-width: 0;
  background: var(--theme-circles);
  border-radius: 16px;
  padding: 0.9rem;
  text-align: center;
}
.stat b { display: block; font-size: 1.35rem; color: var(--theme-Primary); }
.stat span { color: var(--theme-muted); font-size: 0.85rem; }

/* Audio-content homepage — brand + ماذا ستجد + 5 paths */
.audio-home { padding-bottom: 2.5rem; }
.audio-hero { padding: 1.75rem 0 0.5rem; }
.audio-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  min-height: min(72vh, 620px);
}
.audio-hero-copy { position: relative; }
.audio-wave {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 28px;
  margin-bottom: 1rem;
  opacity: 0.85;
}
.audio-wave span {
  width: 4px;
  border-radius: 99px;
  background: linear-gradient(180deg, #00D1FF, #0099DB);
  animation: wavePulse 1.4s ease-in-out infinite;
}
.audio-wave span:nth-child(1) { height: 10px; animation-delay: 0s; }
.audio-wave span:nth-child(2) { height: 18px; animation-delay: .1s; }
.audio-wave span:nth-child(3) { height: 26px; animation-delay: .2s; }
.audio-wave span:nth-child(4) { height: 14px; animation-delay: .3s; }
.audio-wave span:nth-child(5) { height: 22px; animation-delay: .15s; }
.audio-wave span:nth-child(6) { height: 12px; animation-delay: .25s; }
.audio-wave span:nth-child(7) { height: 24px; animation-delay: .05s; }
.audio-wave span:nth-child(8) { height: 16px; animation-delay: .2s; }
.audio-wave span:nth-child(9) { height: 20px; animation-delay: .35s; }
.audio-wave span:nth-child(10) { height: 11px; animation-delay: .12s; }
@keyframes wavePulse {
  0%, 100% { transform: scaleY(0.55); opacity: 0.65; }
  50% { transform: scaleY(1); opacity: 1; }
}
.audio-logo { margin-bottom: 0.55rem; }
.audio-brand {
  margin: 0 0 0.5rem;
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 800;
  color: var(--theme-Secondary);
  line-height: 0.95;
}
.audio-hero-copy h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.4rem, 2.6vw, 1.95rem);
  line-height: 1.45;
  color: var(--theme-text);
  max-width: 22ch;
  font-weight: 700;
}
.audio-lead {
  margin: 0 0 1.4rem;
  color: var(--theme-muted);
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 34rem;
}

/* Restored & elevated ماذا ستجد box */
.find-box {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,0.96), rgba(231,250,255,0.9));
  border: 1px solid rgba(142, 186, 205, 0.4);
  border-radius: 28px;
  padding: 1.5rem 1.4rem 1.25rem;
  box-shadow: 0 18px 40px rgba(3, 45, 84, 0.1);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  animation: panelIn 0.7s ease both;
}
.find-box-glow {
  position: absolute;
  inset: auto -20% -35% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,209,255,0.28), transparent 70%);
  pointer-events: none;
}
.find-box-title {
  position: relative;
  font-size: 1.35rem;
  color: var(--theme-Secondary);
}
.find-box .stat-row { position: relative; }
.find-box .stat {
  background: var(--theme-circles);
  border-radius: 16px;
  padding: 1rem 0.7rem;
  text-align: center;
  transition: transform 0.2s ease;
}
.find-box:hover .stat { transform: translateY(-2px); }
.find-box-note {
  position: relative;
  margin: 0;
  color: var(--theme-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.audio-paths { padding: 2.75rem 0 1rem; }
.paths-head {
  margin-bottom: 1.25rem;
  max-width: 36rem;
}
.paths-head h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  color: var(--theme-Secondary);
}
.paths-head p {
  margin: 0;
  color: var(--theme-muted);
  line-height: 1.65;
}
.path-list {
  display: grid;
  gap: 0.75rem;
}
.path-card {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1.05rem 1.2rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(200, 211, 214, 0.7);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.path-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 153, 219, 0.45);
  box-shadow: 0 16px 34px rgba(3, 45, 84, 0.12);
}
.path-num {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: var(--theme-selected);
  font-size: 0.95rem;
}
.path-card.tone-b .path-num { background: linear-gradient(180deg, #0D90BC, #032d54); }
.path-card.tone-c .path-num { background: linear-gradient(180deg, #00C2FF, #0099DB); }
.path-card.tone-d .path-num { background: linear-gradient(180deg, #13A8D7, #0782AA); }
.path-card.tone-e .path-num { background: linear-gradient(180deg, #4D769C, #032d54); }
.path-title {
  display: block;
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--theme-Secondary);
  margin-bottom: 0.2rem;
}
.path-desc {
  display: block;
  color: var(--theme-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
.path-meta {
  color: var(--theme-Primary);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}
.path-go {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--theme-circles);
  color: var(--theme-Secondary);
  font-size: 1.1rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.path-card:hover .path-go {
  background: var(--theme-selected);
  color: #fff;
}

/* legacy focused-home leftovers kept harmless */
.home-page { padding-bottom: 2rem; }

.section { margin-top: 2.5rem; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}
.section-head h2 {
  margin: 0;
  font-size: 1.55rem;
  color: var(--theme-Secondary);
}
.section-head p {
  margin: 0.35rem 0 0;
  color: var(--theme-muted);
}
.section-head a { color: var(--theme-Primary); font-weight: 700; }
.home-subhead {
  margin: 1.35rem 0 0.75rem;
  font-size: 1.05rem;
  color: var(--theme-Secondary);
}
.home-block { padding-bottom: 0.5rem; }
.level-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.level-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(200, 211, 214, 0.65);
  border-radius: 14px;
  padding: 0.65rem 0.85rem;
  box-shadow: 0 6px 16px rgba(3, 45, 84, 0.05);
  transition: transform 0.15s ease, border-color 0.15s ease;
  min-width: 0;
}
.level-row:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 153, 219, 0.45);
}
.level-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--theme-circles);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}
.level-logo img {
  width: 28px;
  height: auto;
  object-fit: contain;
}
.level-name {
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--theme-Secondary);
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-height: 1.35;
  min-width: 0;
  flex: 1;
}
.level-row-play { padding-inline-end: 0.55rem; }
.level-play {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--theme-selected);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
}
.level-play:hover { transform: scale(1.05); }

.play-all-wrap {
  margin: 0 0 0.85rem;
}
.play-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-weight: 800;
  color: #fff !important;
}
.play-all-btn:hover { filter: brightness(1.05); }
.track-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.track-row {
  display: grid;
  grid-template-columns: 48px 1fr auto auto;
  gap: 0.55rem;
  align-items: center;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(200, 211, 214, 0.65);
  border-radius: 12px;
  padding: 0.45rem 0.55rem 0.45rem 0.45rem;
  transition: border-color 0.15s ease;
}
.track-row:hover { border-color: rgba(0, 153, 219, 0.45); }
.track-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--theme-circles);
  display: grid;
  place-items: center;
}
.track-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.track-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.track-copy strong {
  font-size: 0.98rem;
  color: var(--theme-Secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-copy span {
  font-size: 0.82rem;
  color: var(--theme-muted);
}
.track-play {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--theme-selected);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  margin-inline-end: 0.15rem;
}
.track-play:hover { transform: scale(1.05); }
.track-fav {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #b7c4cc;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  text-decoration: none;
}
.track-fav.is-on { color: #e6a700; }
.track-fav:hover { color: #e6a700; }
.episode-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
  align-items: center;
}
.episode-play-btn { margin-top: 0; }
.fav-btn.is-on {
  background: rgba(230, 167, 0, 0.15);
  border-color: rgba(230, 167, 0, 0.45);
  color: #8a6500;
}
.auth-card {
  max-width: 420px;
  margin: 1rem auto 2rem;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--theme-line);
  border-radius: 20px;
  padding: 1.4rem 1.35rem;
  box-shadow: var(--shadow);
}
.auth-card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  color: var(--theme-Secondary);
}
.auth-lead {
  margin: 0 0 1rem;
  color: var(--theme-muted);
  line-height: 1.6;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--theme-Secondary);
  font-size: 0.92rem;
}
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  border: 1px solid var(--theme-line);
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  background: #fff;
}
.auth-check {
  flex-direction: row !important;
  align-items: center;
  gap: 0.45rem !important;
  font-weight: 600 !important;
  color: var(--theme-muted) !important;
}
.auth-error {
  background: #fff1f1;
  border: 1px solid #f0c2c2;
  color: #a33;
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  margin-bottom: 0.75rem;
}
.auth-switch {
  margin: 1rem 0 0;
  color: var(--theme-muted);
}
.auth-switch a { color: var(--theme-Primary); font-weight: 700; }
.library-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .level-list { grid-template-columns: 1fr; }
  .hero-simple .hero-copy p { white-space: normal; }
}
.empty {
  background: rgba(255,255,255,0.65);
  border: 1px dashed var(--theme-line);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  color: var(--theme-muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--theme-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(200, 211, 214, 0.65);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(3, 45, 84, 0.12);
}
.card-media {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(180deg, rgba(1,59,113,0.05), rgba(0,153,219,0.25)),
    var(--theme-circles);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-body { padding: 0.95rem 1rem 1.1rem; }
.card-body h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--theme-Secondary);
}
.card-meta {
  color: var(--theme-muted);
  font-size: 0.86rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
  color: var(--theme-muted);
  font-size: 0.92rem;
}
.breadcrumbs a { color: var(--theme-Primary); }
.page-title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--theme-Secondary);
}
.page-desc {
  margin: 0 0 1.5rem;
  color: var(--theme-muted);
  max-width: 48rem;
}

.player-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1.25rem;
}
.player-card, .side-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(200,211,214,0.7);
  border-radius: 24px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.player-card audio {
  width: 100%;
  margin-top: 1rem;
}
.player-cover {
  border-radius: 18px;
  overflow: hidden;
  background: var(--theme-circles);
  aspect-ratio: 16 / 9;
  margin-bottom: 1rem;
}
.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.related-list {
  display: grid;
  gap: 0.75rem;
}
.related-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.75rem;
  padding: 0.55rem;
  border-radius: 14px;
  background: var(--theme-soft);
}
.related-item:hover { background: var(--theme-circles); }
.related-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: #cfe6ef;
}
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-item strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--theme-Secondary);
}

/* Compact episode page */
.episode-page { padding-bottom: 1rem; }
.episode-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.75fr);
  gap: 1rem;
  align-items: start;
}
.episode-main,
.episode-side {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(200,211,214,0.7);
  border-radius: 16px;
  padding: 1rem;
}
.episode-head {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.episode-thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--theme-circles);
  flex: 0 0 72px;
  display: grid;
  place-items: center;
}
.episode-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.episode-head-copy { min-width: 0; flex: 1; }
.episode-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.35;
  color: var(--theme-Secondary);
}
.episode-meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--theme-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
}
.episode-meta a { color: var(--theme-Primary); font-weight: 700; }
.episode-desc {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(200,211,214,0.65);
  line-height: 1.75;
  color: var(--theme-muted);
  font-size: 0.95rem;
}
.episode-side-head {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.75rem;
}
.episode-side-head strong {
  color: var(--theme-Secondary);
  font-size: 1rem;
}
.episode-side-head a {
  color: var(--theme-Primary);
  font-size: 0.85rem;
  font-weight: 700;
}
.episode-toc {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-height: min(70vh, 560px);
  overflow: auto;
}
.episode-toc-item {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: 0.45rem;
  align-items: start;
  padding: 0.45rem 0.5rem;
  border-radius: 10px;
  color: inherit;
}
.episode-toc-item:hover { background: var(--theme-circles); }
.episode-toc-item.is-current {
  background: rgba(0, 153, 219, 0.12);
  outline: 1px solid rgba(0, 153, 219, 0.35);
}
.episode-toc-num {
  font-weight: 800;
  color: var(--theme-Primary);
  font-size: 0.85rem;
  line-height: 1.4;
}
.episode-toc-title {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--theme-Secondary);
  font-weight: 700;
}
.episode-toc-item.is-current .episode-toc-title { color: var(--theme-Primary); }

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  min-width: 2.2rem;
  height: 2.2rem;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--theme-line);
  padding: 0 0.55rem;
}
.pagination .active {
  background: var(--theme-selected);
  color: #fff;
  border-color: transparent;
}

.empty {
  background: rgba(255,255,255,0.75);
  border: 1px dashed var(--theme-line);
  border-radius: 18px;
  padding: 2rem;
  text-align: center;
  color: var(--theme-muted);
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid rgba(200,211,214,0.7);
  background: rgba(255,255,255,0.55);
  padding: 1.5rem 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.footer-brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.footer-brand p {
  margin: 0.2rem 0 0;
  color: var(--theme-muted);
  font-size: 0.92rem;
}
.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-links a { color: var(--theme-Primary); font-weight: 700; }

@media (max-width: 960px) {
  .site-aside { display: none; }
  .structure-main { width: 100%; }
  .header-inner {
    justify-content: stretch;
  }
  .main-nav {
    justify-content: flex-start;
    margin-inline-end: 0;
    width: 100%;
  }
  .hero, .player-layout, .episode-layout, .home-hero-inner, .audio-hero-grid { grid-template-columns: 1fr; }
  .home-hero-inner, .audio-hero-grid { min-height: 0; }
  .grid, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .path-card {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "num body"
      "meta go";
  }
  .path-num { grid-area: num; }
  .path-body { grid-area: body; }
  .path-meta { grid-area: meta; padding-inline-start: 64px; }
  .path-go { grid-area: go; justify-self: end; }
}
@media (max-width: 640px) {
  .grid, .grid-3 { grid-template-columns: 1fr; }
  .stat-row { flex-wrap: nowrap; gap: 0.45rem; }
  .stat { padding: 0.65rem 0.35rem; }
  .stat b { font-size: 1.1rem; }
  .stat span { font-size: 0.72rem; }
  .find-grid { grid-template-columns: 1fr; }
  .header-search input { min-width: 0; width: 100%; }
  .home-brand-name, .audio-brand { font-size: 2.35rem; }
  .find-box .stat-row { display: flex; }
}

/* Month events — Hijri picker */
.month-hero {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.25rem;
}
.month-kicker {
  margin: 0 0 0.35rem;
  color: var(--theme-Primary);
  font-weight: 700;
  font-size: 0.92rem;
}
.month-hero-badge {
  background: var(--theme-selected);
  color: #fff;
  border-radius: 22px;
  padding: 1rem 1.25rem;
  text-align: center;
  min-width: 120px;
  box-shadow: var(--shadow);
}
.month-badge-day {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}
.month-badge-name {
  display: block;
  margin-top: 0.35rem;
  font-weight: 700;
}
.month-badge-year {
  display: block;
  margin-top: 0.2rem;
  opacity: 0.9;
  font-size: 0.85rem;
}
.month-chips-wrap {
  margin: 0 -1rem;
  padding: 0 1rem;
}
.month-chips {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.35rem 0.15rem 0.75rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.month-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--theme-line);
  color: var(--theme-Secondary);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}
.month-chip.is-today {
  border-color: rgba(0, 153, 219, 0.55);
  background: var(--theme-soft);
}
.month-chip.is-active {
  background: var(--theme-selected);
  color: #fff;
  border-color: transparent;
}
.month-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--theme-Primary-light);
  box-shadow: 0 0 0 3px rgba(0, 209, 255, 0.25);
}
.month-chip.is-active .month-chip-dot {
  background: #fff;
  box-shadow: none;
}

@media (max-width: 960px) {
  .month-hero { grid-template-columns: 1fr; }
  .month-hero-badge {
    justify-self: start;
    display: inline-grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    column-gap: 0.75rem;
    align-items: center;
    text-align: right;
    padding: 0.85rem 1.1rem;
  }
  .month-badge-day {
    grid-row: 1 / span 2;
    font-size: 1.75rem;
  }
}
@media (max-width: 640px) {
  .month-chips-wrap { margin-inline: -0.5rem; }
  .main-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }
}

/* Hadith hierarchy — books first, then hadiths */
.hadith-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 0.5rem;
}
.hadith-kicker {
  margin: 0 0 0.35rem;
  color: var(--theme-Primary);
  font-weight: 700;
  font-size: 0.95rem;
}
.hadith-hero-stat {
  background: var(--theme-selected);
  color: #fff;
  border-radius: 22px;
  padding: 1rem 1.25rem;
  text-align: center;
  min-width: 110px;
  box-shadow: var(--shadow);
}
.hadith-hero-stat b {
  display: block;
  font-size: 1.8rem;
  line-height: 1.1;
}
.hadith-hero-stat span {
  font-size: 0.9rem;
  opacity: 0.95;
}
.hadith-books {
  display: grid;
  gap: 1rem;
}
.hadith-book {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1rem;
  align-items: stretch;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(200,211,214,0.75);
  border-radius: 20px;
  padding: 0.85rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hadith-book:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(3, 45, 84, 0.12);
}
.hadith-book-spine {
  background: linear-gradient(180deg, #0099db 0%, #032d54 100%);
  color: #fff;
  border-radius: 10px 4px 4px 10px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: grid;
  place-items: center;
  padding: 0.75rem 0.35rem;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  box-shadow: inset -4px 0 0 rgba(0,0,0,0.12);
}
.hadith-book-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.25rem 0.35rem;
}
.hadith-book-body h3 {
  margin: 0;
  color: var(--theme-Secondary);
  font-size: 1.15rem;
  line-height: 1.45;
}
.hadith-book-meta {
  margin: 0;
  color: var(--theme-muted);
  font-size: 0.92rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.hadith-book-cta {
  color: var(--theme-Primary);
  font-weight: 700;
  font-size: 0.92rem;
  margin-top: 0.2rem;
}
.hadith-chapter-list {
  display: grid;
  gap: 0.75rem;
}
.hadith-chapter {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(200,211,214,0.75);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}
.hadith-chapter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.hadith-chapter-head h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  color: var(--theme-Secondary);
  line-height: 1.45;
}
.hadith-chapter-head h3 a:hover { color: var(--theme-Primary); }
.hadith-chapter-link {
  flex-shrink: 0;
  white-space: nowrap;
}
.hadith-audio-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.hadith-audio-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 0.85rem;
  align-items: center;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(200,211,214,0.75);
  border-radius: 16px;
  padding: 0.8rem 0.95rem;
  box-shadow: var(--shadow);
  transition: background 0.2s ease, transform 0.2s ease;
}
.hadith-audio-item:hover {
  background: var(--theme-soft);
  transform: translateY(-1px);
}
.hadith-audio-index {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--theme-circles);
  color: var(--theme-Secondary);
  font-weight: 800;
}
.hadith-audio-copy {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}
.hadith-audio-copy strong {
  color: var(--theme-Secondary);
  font-size: 1rem;
  line-height: 1.4;
}
.hadith-audio-play {
  color: var(--theme-Primary);
  font-weight: 700;
  font-size: 0.92rem;
}
@media (max-width: 960px) {
  .hadith-hero { grid-template-columns: 1fr; }
  .hadith-hero-stat { justify-self: start; }
}
@media (max-width: 640px) {
  .hadith-book { grid-template-columns: 56px 1fr; }
  .hadith-chapter-head {
    flex-direction: column;
    align-items: stretch;
  }
  .hadith-chapter-link { text-align: center; }
  .hadith-audio-item {
    grid-template-columns: 36px 1fr;
  }
  .hadith-audio-play {
    grid-column: 2;
    justify-self: start;
  }
  .hadith-audio-index {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }
}

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}
.error-card {
  width: min(420px, 100%);
  text-align: center;
  background: #fff;
  border-radius: 22px;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
}
.error-card img {
  margin: 0 auto 0.75rem;
}
.error-code {
  margin: 0;
  font-size: 3rem;
  font-weight: 800;
  color: var(--theme-Primary);
  line-height: 1;
}
.error-card h1 {
  margin: 0.5rem 0 0.75rem;
  color: var(--theme-Secondary);
  font-size: 1.45rem;
}
.error-card p {
  margin: 0 0 1.25rem;
  color: var(--theme-muted);
  line-height: 1.7;
}
.error-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.error-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--theme-line);
  background: #fff;
  color: var(--theme-Secondary);
  font-weight: 700;
}
.error-actions .btn-primary {
  background: var(--theme-Primary);
  border-color: var(--theme-Primary);
  color: #fff;
}

.side-icon-text {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  font-size: 1.15rem;
  line-height: 1;
}
.contact-page { margin-bottom: 0.5rem; }
.contact-form {
  max-width: 560px;
  margin: 0 auto 2rem;
}
.contact-form label {
  display: block;
  margin: 0.85rem 0 0.35rem;
  font-weight: 700;
}
.contact-form input[type="text"],
.contact-form input[type="email"] {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--theme-line);
  background: #fff;
}
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--theme-line);
  background: #fff;
  resize: vertical;
  min-height: 120px;
}
.contact-form .hint-inline {
  color: var(--theme-muted);
  font-weight: 400;
  font-size: 0.85rem;
}
.contact-flash {
  max-width: 560px;
  margin: 0 auto 1rem;
  background: #E7FAFF;
  border: 1px solid #8ebacd;
  padding: 0.85rem 1rem;
  border-radius: 12px;
}
.captcha-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  margin: 1rem 0 0.5rem;
  padding: 0.85rem;
  border: 1px dashed #9ec7d8;
  border-radius: 14px;
  background: #f3fbff;
}
.captcha-code {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.35em;
  color: var(--theme-Secondary);
  background: #fff;
  border: 2px solid var(--theme-Primary);
  border-radius: 12px;
  padding: 0.55rem 0.85rem 0.55rem 1.1rem;
  min-width: 7.5rem;
  text-align: center;
  user-select: none;
  font-variant-numeric: tabular-nums;
}
.captcha-fields label { margin-top: 0; }
.captcha-refresh {
  display: inline-block;
  margin-top: 0.45rem;
  background: none;
  border: 0;
  padding: 0;
  color: var(--theme-Primary);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}
.contact-submit {
  width: 100%;
  margin-top: 1rem;
}
@media (max-width: 640px) {
  .captcha-box { grid-template-columns: 1fr; }
}
