:root {
  --primary-50: #fff7ed;
  --primary-100: #ffedd5;
  --primary-400: #fb923c;
  --primary-500: #f97316;
  --primary-600: #ea580c;
  --primary-700: #c2410c;
  --primary-800: #9a3412;
  --primary-900: #7c2d12;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
html, body {
  scroll-behavior: smooth;
  overscroll-behavior: smooth;
}

body {
  font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  background: #f8fafc;
  color: #1e293b;
  line-height: 1.6;
}

body.ltr { font-family: 'Inter', 'Segoe UI', sans-serif; direction: ltr; }
body.rtl { direction: rtl; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* Navbar */
.navbar {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary-800);
}
.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
}
.nav-links { display: flex; gap: 2rem; font-weight: 600; font-size: 0.9rem; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-600); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: 0.2s;
}
.btn-primary { background: var(--primary-600); color: white; }
.btn-primary:hover { background: var(--primary-700); }
.btn-ghost { background: transparent; color: #64748b; }
.btn-ghost:hover { background: #f1f5f9; color: var(--primary-600); }

/* Hero */
.hero {
  background: linear-gradient(135deg, #7c2d12 0%, #c2410c 40%, #f97316 100%);
  color: white;
  padding: 4rem 1rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.hero h1 span { color: #ffedd5; }
.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 640px;
  margin: 0 auto 2rem;
}
.search-box {
  background: white;
  border-radius: 16px;
  padding: 0.4rem;
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.search-box input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.9rem 1.25rem;
  font-size: 1rem;
  font-family: inherit;
  color: #1e293b;
}
.search-box button {
  background: var(--primary-600);
  color: white;
  border: none;
  padding: 0.9rem 1.5rem;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.search-box button:hover { background: var(--primary-700); }
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
  font-size: 0.875rem;
}
.hero-badges span {
  background: rgba(255,255,255,0.2);
  padding: 0.35rem 1rem;
  border-radius: 999px;
}

/* Stats */
.stats {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border-bottom: 1px solid #e2e8f0;
  padding: 1.75rem 1rem 2rem;
}
.stats-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
}
.stat-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(15,23,42,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(15,23,42,0.08);
  border-color: #fed7aa;
}
.stat-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.6rem;
  border-radius: 12px;
  background: var(--primary-50);
  color: var(--primary-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
}
.stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-600);
  line-height: 1.2;
}
.stat-label {
  color: #64748b;
  font-size: 0.85rem;
  margin-top: 0.3rem;
  font-weight: 600;
}

/* Sections */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1rem;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.section-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: #e2e8f0;
  color: #334155;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: 0.2s;
}
.chip:hover, .chip.active {
  background: var(--primary-600);
  color: white;
}
.chip-outline {
  background: white;
  border: 1px solid #e2e8f0;
  color: #334155;
}
.chip-outline:hover, .chip-outline.active {
  border-color: var(--primary-500);
  background: var(--primary-50);
  color: var(--primary-700);
}

/* Grid */
.podcast-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) { .podcast-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .podcast-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .podcast-grid { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: 0.3s;
  display: block;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}
.card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #0f172a;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}
.card:hover .card-thumb img { transform: scale(1.05); }

.card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15,23,42,0.35);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 2;
}
.card-play span {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(249,115,22,0.95);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transform: scale(0.85);
  transition: transform 0.25s ease;
  padding-left: 3px; /* optical center for play triangle */
}
.card:hover .card-play { opacity: 1; }
.card:hover .card-play span { transform: scale(1); }

.card-duration {
  position: absolute;
  bottom: 0.6rem;
  inset-inline-end: 0.6rem;
  background: rgba(0,0,0,0.75);
  color: white;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}
.card-cat {
  position: absolute;
  top: 0.6rem;
  inset-inline-start: 0.6rem;
  background: var(--primary-600);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
}
.card-body { padding: 1rem; }
.card-show {
  font-size: 0.75rem;
  color: var(--primary-600);
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.card-title {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.card:hover .card-title { color: var(--primary-700); }
.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #94a3b8;
}

/* CTA */
.cta {
  background: var(--primary-900);
  color: white;
  text-align: center;
  padding: 4rem 1rem;
}
.cta h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: 0.75rem; }
.cta p { opacity: 0.8; margin-bottom: 1.5rem; }

/* Footer */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 3rem 1rem 1.5rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
}
.footer h4 { color: white; font-weight: 700; margin-bottom: 0.75rem; }
.footer a:hover { color: var(--primary-400); }
.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #1e293b;
  text-align: center;
  font-size: 0.85rem;
}

/* Player page */
.player-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}
.player-box {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.player-box iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
.player-box.fullscreen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  padding-bottom: 0 !important;
  height: 100vh !important;
  border-radius: 0 !important;
}

.player-box:hover 


.info-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  border: 1px solid #f1f5f9;
}
.info-card .badge {
  display: inline-block;
  background: var(--primary-100);
  color: var(--primary-700);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}
.info-card h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.empty {
  text-align: center;
  padding: 4rem 1rem;
  color: #94a3b8;
}

/* Mobile nav */
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: #64748b; }
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: white;
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    gap: 0.75rem;
  }
}

/* ===== Navbar Manhaj-style ===== */
.navbar {
  background: #fff;
  border-bottom: 1px solid #eef2f7;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.nav-inner {
  max-width: 1280px;
  height: 70px;
  gap: 1rem;
}
.logo {
  gap: 0.6rem;
  flex-shrink: 0;
  align-items: center;
}
.logo img.logo-img {
  height: 42px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}
.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f97316, #c2410c);
  font-size: 1.1rem;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-text strong { font-size: 1.05rem; color: #9a3412; }
.logo-text small { font-size: 0.65rem; color: #94a3b8; font-weight: 500; }

.nav-links {
  display: flex;
  gap: 0;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #475569;
  border-bottom: 2px solid transparent;
  transition: 0.2s;
}
.nav-links a:hover { color: #ea580c; }
.nav-links a.active {
  color: #9a3412;
  border-bottom-color: #f97316;
}

.nav-search {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  gap: 0.4rem;
  min-width: 140px;
}
.nav-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.85rem;
  width: 100px;
  font-family: inherit;
  color: #334155;
}
.nav-search span {
  font-size: 0.7rem;
  color: #94a3b8;
  background: #e2e8f0;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.avatar-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  background: #ec4899;
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  transition: 0.2s;
}
.avatar-btn:hover { border-color: #f97316; transform: scale(1.05); }

.avatar-btn img { width: 100%; height: 100%; object-fit: cover; }

/* Avatar dropdown */
.avatar-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.avatar-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  min-width: 260px;
  width: max-content;
  max-width: min(320px, 90vw);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(15,23,42,0.18);
  border: 1px solid #e2e8f0;
  z-index: 400;
  overflow: visible;
  padding: 0.35rem 0;
  white-space: nowrap;
}
body.rtl .avatar-dropdown {
  left: auto;
  right: 0;
  transform: none;
}
body.ltr .avatar-dropdown {
  left: auto;
  right: 0;
  transform: none;
}
.avatar-dropdown.show { display: block; }
.avatar-dd-header {
  padding: 0.9rem 1.15rem 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  white-space: normal;
}
.avatar-dd-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #1e293b;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
}
.avatar-dd-email {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.2rem;
  direction: ltr;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
body.ltr .avatar-dd-email { text-align: left; }
.avatar-dd-item {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: right;
  background: none;
  border: none;
  padding: 0.75rem 1.15rem;
  font-size: 0.92rem;
  font-family: inherit;
  color: #334155;
  cursor: pointer;
  transition: 0.15s;
  white-space: nowrap;
  line-height: 1.4;
}
body.ltr .avatar-dd-item { text-align: left; }
.avatar-dd-item:hover { background: #f8fafc; color: var(--primary-600); }
.avatar-dd-logout {
  color: #dc2626 !important;
  font-weight: 600;
  border-top: 1px solid #f1f5f9;
  margin-top: 0.25rem;
}
.avatar-dd-logout:hover { background: #fef2f2 !important; color: #b91c1c !important; }
.avatar-dd-stats {
  color: #0369a1 !important;
  font-weight: 600;
}
.avatar-dd-stats:hover { background: #f0f9ff !important; }

/* prevent navbar from clipping the dropdown */
.navbar { overflow: visible; }
.nav-inner { overflow: visible; }
.nav-actions { overflow: visible; position: relative; }

/* Stats modal */
.stats-modal { max-width: 420px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.stat-box {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1rem 0.5rem;
  text-align: center;
  border: 1px solid #f1f5f9;
}
.stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-600);
  line-height: 1.2;
}
.stat-label {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 0.35rem;
  line-height: 1.3;
}
.stats-subtitle {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0.5rem 0 0.75rem;
  color: #334155;
}
.stats-countries { display: flex; flex-direction: column; gap: 0.4rem; }
.stat-country {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: #f8fafc;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}
.stat-rank {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-100);
  color: var(--primary-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}


/* Auth modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.5);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.show { display: flex; }
.modal {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}
.modal h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.5rem; }
.modal p { color: #64748b; font-size: 0.9rem; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; color: #334155; }
.form-group input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: 0.2s;
}
.form-group input:focus { border-color: #f97316; box-shadow: 0 0 0 3px rgba(249,115,22,0.15); }
.modal-btns { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.modal-btns .btn { flex: 1; justify-content: center; padding: 0.7rem; }
.btn-outline { background: white; border: 1.5px solid #e2e8f0; color: #334155; }
.btn-outline:hover { background: #f8fafc; }
.auth-switch { text-align: center; margin-top: 1rem; font-size: 0.85rem; color: #64748b; }
.auth-switch a { color: #f97316; font-weight: 600; cursor: pointer; }
.auth-error { color: #dc2626; font-size: 0.85rem; margin-top: 0.5rem; display: none; }

/* Profile page */
.profile-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid #f1f5f9;
  max-width: 480px;
  margin: 0 auto;
}
.profile-avatar-wrap {
  text-align: center;
  margin-bottom: 1.5rem;
}
.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #ec4899;
  color: white;
  font-size: 2.5rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 3px solid #e2e8f0;
  margin-bottom: 0.75rem;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-upload-btn {
  font-size: 0.85rem;
  color: #f97316;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-search { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0; right: 0;
    background: white;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  }
  .nav-links.open a {
    padding: 0.75rem 1.5rem;
    border-bottom: none;
  }
}

/* ===== Modern Hero matching Manhaj style ===== */
.hero-modern {
  background: #ffffff;
  color: #0f172a;
  padding: 2.25rem 1rem 2.5rem;
  position: relative;
  overflow: hidden;
}
.hero-modern::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(249,115,22,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(249,115,22,0.04) 0%, transparent 40%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 1;
}
.hero-visual {
  flex: 1;
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hosts-composition {
  position: relative;
  width: 380px;
  height: 380px;
}
.host-circle {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid white;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  background: #e2e8f0;
}
.host-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* host-back / host-front styles defined in standing hosts section below */
.host-name {
  position: absolute;
  bottom: 12px;
  left: 0; right: 0;
  text-align: center;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 1.5rem 0.5rem 0.6rem;
}
.float-badge {
  position: absolute;
  background: white;
  border-radius: 16px;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 5;
  font-size: 0.8rem;
}
.float-badge strong { display: block; font-size: 1rem; color: #0f172a; }
.float-badge small { color: #64748b; font-size: 0.7rem; }
.badge-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: #f97316;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.badge-icon.green { background: #10b981; }
.badge-top {
  top: 10px;
  left: -10px;
}
.badge-bottom {
  bottom: 30px;
  right: -20px;
}
.float-icon {
  position: absolute;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: white;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 4;
  color: #f97316;
}
.icon-play { top: 80px; left: -30px; }
.icon-award { bottom: 100px; right: -15px; color: #f59e0b; }
.brand-watermark {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.1rem;
  font-weight: 800;
  color: #9a3412;
  opacity: 0.7;
}
.hero-content {
  flex: 1.1;
  text-align: right;
}
.hero-modern h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  color: #0f172a;
}
.hero-modern h1 span {
  color: #ea580c;
}
.hero-modern p {
  font-size: 1.05rem;
  color: #475569;
  max-width: 520px;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}
.modern-search {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 0.35rem;
  display: flex;
  align-items: center;
  max-width: 520px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  margin-bottom: 1.5rem;
}
.modern-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: #1e293b;
  background: transparent;
}
.modern-search button {
  background: #0f172a;
  color: white;
  border: none;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: 0.2s;
}
.modern-search button:hover { background: #1e293b; }
.search-icon {
  color: #94a3b8;
  padding: 0 0.75rem;
  font-size: 1.1rem;
}
.hero-modern .hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0;
  justify-content: flex-start;
}
.hero-modern .hero-badges span {
  background: #f0f9ff;
  color: #c2410c;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column-reverse;
    text-align: center;
  }
  .hero-content { text-align: center; }
  .hero-modern p { margin-left: auto; margin-right: auto; }
  .modern-search { margin-left: auto; margin-right: auto; }
  .hero-modern .hero-badges { justify-content: center; }
  .hero-visual { min-height: 320px; }
}

/* Floating animation ONLY for badges/icons - images stay still */
@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===== Standing hosts - transparent PNGs, facing forward ===== */
.hosts-composition {
  position: relative;
  width: 440px;
  height: 480px;
  animation: none;
}

.glow-circle {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249,115,22,0.10) 0%, rgba(249,115,22,0.03) 50%, transparent 70%);
  border: 1px solid rgba(249,115,22,0.12);
  z-index: 0;
  box-shadow: 0 0 60px rgba(249,115,22,0.06);
}

.host-figure {
  position: absolute;
  overflow: visible;
  background: transparent;
  z-index: 2;
  border-radius: 0;
  box-shadow: none;
}

.host-figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  background: transparent;
  filter: drop-shadow(0 16px 28px rgba(0,0,0,0.18));
}

/* Front: Yasser - larger, centered */
.host-front {
  width: 250px;
  height: 380px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%);
  z-index: 5;
}

/* Back hosts - smaller, offset left/right */
.host-back {
  width: 165px;
  height: 250px;
  opacity: 0.95;
  z-index: 1;
  display: block !important;
}
.host-left {
  top: 75px;
  right: 5px;
  transform: rotate(3deg);
}
.host-right {
  top: 95px;
  left: 5px;
  transform: rotate(-3deg);
}

/* Floating badges (only these move) */
.float-badge {
  position: absolute;
  background: white;
  border-radius: 16px;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 10;
  font-size: 0.8rem;
}
.float-badge strong { display: block; font-size: 1rem; color: #0f172a; }
.float-badge small { color: #64748b; font-size: 0.7rem; }
.badge-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: #f97316;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.badge-icon.green { background: #10b981; }
.badge-top {
  top: 25px;
  left: -15px;
  animation: float-badge 4.5s ease-in-out infinite;
}
.badge-bottom {
  bottom: 55px;
  right: -25px;
  animation: float-badge 5s ease-in-out infinite 0.4s;
}
.float-icon {
  position: absolute;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: white;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 8;
  color: #f97316;
}
.icon-play { 
  top: 110px; 
  left: -40px; 
  animation: float-badge 5.5s ease-in-out infinite 0.2s;
}
.icon-award { 
  bottom: 150px; 
  right: -20px; 
  color: #f59e0b;
  animation: float-badge 5.2s ease-in-out infinite 0.7s;
}
.brand-watermark {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.1rem;
  font-weight: 800;
  color: #9a3412;
  opacity: 0.55;
  z-index: 6;
}


.badge-mid {
  top: 55%;
  left: -35px;
  animation: float-badge 4.8s ease-in-out infinite 0.6s;
}
.badge-icon.blue {
  background: #3b82f6;
}
.icon-users {
  top: 45%;
  right: -35px;
  color: #0ea5e9;
  animation: float-badge 5.8s ease-in-out infinite 1s;
  font-size: 1.05rem;
}
@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 900px) {
  .hosts-composition {
    width: 300px;
    height: 380px;
  }
  .glow-circle {
    width: 250px;
    height: 250px;
  }
  .host-front {
    width: 180px;
    height: 280px;
  }
  .host-back {
    width: 115px;
    height: 175px;
  }
  .host-left { top: 50px; right: 0; }
  .host-right { top: 65px; left: 0; }
  .badge-top { left: -8px; top: 15px; }
  .badge-bottom { right: -12px; bottom: 35px; }
  .icon-play { left: -22px; }
  .icon-award { right: -12px; }
}

/* Bottom bar under video for fullscreen icon */
.player-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 1rem;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s;
}
.player-box:hover .player-bar,
.player-box.fullscreen .player-bar {
  opacity: 1;
}
.fs-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: rgba(255,255,255,0.15);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  backdrop-filter: blur(4px);
}
.fs-icon-btn:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.08);
}
.player-box.fullscreen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  width: 100vw !important;
  height: 100vh !important;
  border-radius: 0 !important;
  max-width: none !important;
}
.player-box.fullscreen iframe {
  height: 100% !important;
}
/* Ensure iframe fills and bar stays on top */
.player-box iframe {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  z-index: 1;
}
.player-bar {
  z-index: 20 !important;
}

/* ===== About Page ===== */
.about-hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1.25rem 3rem;
  text-align: center;
}
.about-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  border-radius: 18px;
  background: #fff7ed;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: #ea580c;
  box-shadow: 0 4px 20px rgba(249,115,22,0.12);
}
.about-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1rem;
}
.about-lead {
  font-size: 1.1rem;
  color: #64748b;
  max-width: 620px;
  margin: 0 auto 3rem;
  line-height: 1.75;
}
.about-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1rem;
}
@media (min-width: 768px) {
  .about-features {
    grid-template-columns: repeat(3, 1fr);
  }
}
.about-card {
  background: white;
  border: 1px solid #f1f5f9;
  border-radius: 20px;
  padding: 1.75rem 1.25rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  transition: 0.25s;
}
.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.about-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin: 0 auto 1rem;
}
.about-card-icon.orange { background: #fff7ed; color: #ea580c; }
.about-card-icon.green { background: #ecfdf5; color: #059669; }
.about-card-icon.blue { background: #eff6ff; color: #2563eb; }
.about-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}
.about-card p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
}

.about-cta {
  max-width: 900px;
  margin: 1rem auto 4rem;
  padding: 3rem 1.5rem;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 28px;
  text-align: center;
  color: white;
}
.about-cta h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  margin-bottom: 0.85rem;
}
.about-cta p {
  opacity: 0.85;
  max-width: 520px;
  margin: 0 auto 1.75rem;
  line-height: 1.7;
  font-size: 1rem;
}
.btn-about-cta {
  display: inline-block;
  background: white;
  color: #0f172a;
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-size: 1rem;
  transition: 0.2s;
}
.btn-about-cta:hover {
  background: #f97316;
  color: white;
  transform: translateY(-2px);
}
/* ===== Google login button & login page ===== */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: white;
  color: #1e293b;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.btn-google:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.auth-google-modal { text-align: center; }
.auth-google-modal h2 { margin-bottom: 0.5rem; }
.auth-google-modal p { margin-bottom: 1.5rem; color: #64748b; font-size: 0.95rem; }
.auth-error {
  display: none;
  background: #fef2f2;
  color: #b91c1c;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  text-align: center;
}
.login-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 50%);
}
.login-card {
  background: white;
  border: 1px solid #f1f5f9;
  border-radius: 24px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.06);
}
.login-logo {
  height: 48px;
  width: auto;
  margin: 0 auto 1.25rem;
  display: block;
}
.login-card h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
}
.login-card p {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}
.login-back {
  display: inline-block;
  margin-top: 1.25rem;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 600;
}
.login-back:hover { color: #ea580c; }

/* ===== حلقاتي - شريط التقدم البرتقالي ===== */
.my-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}
.history-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.history-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.75rem 1rem;
  transition: 0.2s;
  text-decoration: none;
  color: inherit;
}
.history-item:hover {
  border-color: var(--primary-400);
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.12);
  transform: translateY(-1px);
}
.history-thumb {
  position: relative;
  width: 120px;
  min-width: 120px;
  height: 68px;
  border-radius: 10px;
  overflow: hidden;
  background: #f1f5f9;
}
.history-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.history-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-500);
}
.history-thumb 
.card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15,23,42,0.35);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 2;
}
.card-play span {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(249,115,22,0.95);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transform: scale(0.85);
  transition: transform 0.25s ease;
  padding-left: 3px; /* optical center for play triangle */
}
.card:hover .card-play { opacity: 1; }
.card:hover .card-play span { transform: scale(1); }

.card-duration {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 0.65rem;
  padding: 1px 5px;
  border-radius: 4px;
}
.history-body {
  flex: 1;
  min-width: 0;
}
.history-show {
  font-size: 0.75rem;
  color: var(--primary-600);
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.history-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.history-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.history-progress-bar {
  flex: 1;
  height: 8px;
  background: #ffedd5;
  border-radius: 99px;
  overflow: hidden;
}
.history-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f97316, #ea580c);
  border-radius: 99px;
  transition: width 0.35s ease;
  min-width: 0;
}
.history-pct {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-600);
  min-width: 2.5rem;
  text-align: left;
}
body.rtl .history-pct { text-align: right; }

@media (max-width: 560px) {
  .history-thumb { width: 90px; min-width: 90px; height: 52px; }
  .history-title { font-size: 0.85rem; }
  .history-item { padding: 0.6rem; gap: 0.7rem; }
}

/* ===== شاشة التحميل (ملء الشاشة) ===== */
.site-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.site-loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.site-loader video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  background: #0f172a;
}


/* SVG icons inside badges & floats */
.badge-icon svg,
.float-icon svg,
.stat-icon svg,
.search-icon svg {
  display: block;
  flex-shrink: 0;
}
.badge-icon {
  color: #fff;
}
.float-icon {
  color: #f97316;
}
.float-icon.icon-award { color: #f59e0b; }
.float-icon.icon-users { color: #0ea5e9; }
.stat-icon {
  color: var(--primary-600);
}
.search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}
