/* ════════════════════════════════════════════════════════
   إرادة FM — Weather Widget Styles v1.0
════════════════════════════════════════════════════════ */

/* ── TOPBAR WEATHER STRIP ───────────────────────────────── */
#weatherTopbar {
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  flex: 1;
  justify-content: center;
}

.w-city {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  border-right: 1px solid rgba(255,255,255,.08);
  cursor: default;
  transition: background .2s;
  height: 34px;
  font-size: 11.5px;
}
.w-city:hover { background: rgba(255,255,255,.05); }
.w-city:last-child { border-right: none; }

.w-ico { font-size: 13px; }
.w-nm { color: #888; font-weight: 600; }
.w-tmp { color: #F5A623; font-weight: 800; font-size: 12px; }

/* ── FULL WEATHER WIDGET ─────────────────────────────────── */
.weather-widget {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.055);
  margin-bottom: 20px;
  font-family: 'Cairo', 'Tajawal', sans-serif;
}

.ww-head {
  background: linear-gradient(90deg, #071525, #0f3050);
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ww-title {
  font-size: 13.5px;
  font-weight: 900;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ww-title i { color: #F5A623; }
.ww-time {
  font-size: 11px;
  color: rgba(255,255,255,.45);
}

/* Grid of cities */
.ww-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.ww-card {
  padding: 14px 10px;
  text-align: center;
  border-left: 1px solid #f0f2f5;
  border-bottom: 1px solid #f0f2f5;
  cursor: default;
  transition: background .2s, transform .15s;
  position: relative;
}
.ww-card:hover {
  background: linear-gradient(135deg, #E8F4FD, #FFF8E8);
  transform: translateY(-1px);
  z-index: 1;
}
.ww-card:nth-child(4n) { border-left: none; }
.ww-card:nth-child(n+5) { border-bottom: none; }

.ww-city-ico {
  font-size: 18px;
  margin-bottom: 4px;
  line-height: 1.2;
}
.ww-city-name {
  font-size: 11.5px;
  font-weight: 800;
  color: #1B7FC4;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ww-weather-ico {
  font-size: 22px;
  margin-bottom: 4px;
  line-height: 1.3;
}
.ww-temp {
  font-size: 20px;
  font-weight: 900;
  color: #1A1A2E;
  line-height: 1.1;
}
.ww-unit {
  font-size: 12px;
  color: #66788A;
  font-weight: 600;
}
.ww-feels {
  font-size: 10px;
  color: #66788A;
  margin-top: 2px;
}
.ww-cond {
  font-size: 10.5px;
  color: #66788A;
  margin-top: 3px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ww-details {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 5px;
  font-size: 10px;
  color: #8899AA;
}

.ww-err { opacity: .5; }

.ww-footer {
  padding: 9px 18px;
  background: #f9fafb;
  border-top: 1px solid #f0f2f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  color: #99AABB;
}
.ww-refresh {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #E8F4FD;
  border: 1px solid rgba(27,127,196,.2);
  color: #1B7FC4;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.ww-refresh:hover {
  background: #1B7FC4;
  color: #fff;
  transform: rotate(180deg);
}

.ww-loading {
  padding: 28px;
  text-align: center;
  color: #66788A;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.ww-loading i { color: #1B7FC4; }

/* ── PROGRAMME PAGE ─────────────────────────────────────── */
.prog-page-hero {
  background: linear-gradient(135deg, #071525, #0f3050, #0a1f0a);
  padding: 50px 0 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.prog-page-hero::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,.08), transparent 70%);
  top: -80px; right: -80px;
}
.prog-page-hero h1 {
  font-size: 30px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.prog-page-hero p {
  color: rgba(255,255,255,.65);
  font-size: 14px;
  position: relative;
  z-index: 1;
}
.prog-page-hero .live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(245,166,35,.12);
  border: 1px solid rgba(245,166,35,.25);
  color: #F5A623;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 20px;
  margin-top: 14px;
  letter-spacing: .5px;
}

/* Day tabs */
.day-tabs {
  display: flex;
  gap: 0;
  background: #fff;
  border-bottom: 2px solid #DEE2E8;
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: 72px;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.day-tabs::-webkit-scrollbar { display: none; }

.day-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 18px 10px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all .2s;
  flex: 1;
  min-width: 80px;
  font-family: 'Cairo', sans-serif;
}
.day-tab:hover { background: rgba(27,127,196,.04); }
.day-tab.on {
  border-bottom-color: #F5A623;
  background: rgba(245,166,35,.04);
}
.day-tab .dt-name {
  font-size: 13px;
  font-weight: 800;
  color: #1A1A2E;
  transition: color .2s;
}
.day-tab.on .dt-name { color: #D4891A; }
.day-tab .dt-sub {
  font-size: 10.5px;
  color: #66788A;
  margin-top: 2px;
}
.day-tab.today .dt-name { color: #1B7FC4; }
.day-tab.today { background: rgba(27,127,196,.04); }
.today-pill {
  background: #1B7FC4;
  color: #fff;
  font-size: 8.5px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 8px;
  margin-top: 3px;
  letter-spacing: .4px;
}

/* Programme day panel */
.prog-panel { display: none; animation: fadeIn .2s ease; }
.prog-panel.on { display: block; }
@keyframes fadeIn { from{opacity:0;transform:translateY(5px)} to{opacity:1;transform:none} }

.prog-day-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  padding: 28px 0 40px;
  align-items: start;
}

/* Timeline */
.prog-timeline { position: relative; }
.prog-timeline::before {
  content: '';
  position: absolute;
  right: 42px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, #F5A623, #1B7FC4);
  border-radius: 2px;
}

.prog-item {
  display: flex;
  gap: 18px;
  padding: 16px 0;
  position: relative;
  align-items: flex-start;
}

.prog-time-col {
  width: 90px;
  flex-shrink: 0;
  text-align: center;
}
.prog-time-badge {
  background: linear-gradient(135deg, #071525, #0f3050);
  color: #F5A623;
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 8px;
  border-radius: 7px;
  line-height: 1.35;
  display: inline-block;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 8px rgba(7,21,37,.3);
}

.prog-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F5A623, #D4891A);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px rgba(245,166,35,.3);
  flex-shrink: 0;
  margin-top: 5px;
  position: relative;
  z-index: 1;
}

.prog-content {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,.055);
  border-right: 4px solid #F5A623;
  transition: transform .2s, box-shadow .2s;
}
.prog-content:hover {
  transform: translateX(-2px);
  box-shadow: 0 4px 18px rgba(0,0,0,.09);
}
.prog-content.live-now {
  border-right-color: #22c55e;
  background: linear-gradient(135deg, #f0fdf4, #fff);
  box-shadow: 0 2px 14px rgba(34,197,94,.15);
}

.prog-show-name {
  font-size: 15px;
  font-weight: 800;
  color: #1A1A2E;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.live-badge-sm {
  background: #22c55e;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: .5px;
  animation: pulse-live 1.5s ease-in-out infinite;
}
@keyframes pulse-live {
  0%,100% { opacity: 1; }
  50% { opacity: .6; }
}

.prog-host {
  font-size: 13px;
  color: #1B7FC4;
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.prog-host i { color: #F5A623; font-size: 11px; }
.prog-tech {
  font-size: 11.5px;
  color: #66788A;
  display: flex;
  align-items: center;
  gap: 5px;
}
.prog-tech i { color: #DEE2E8; font-size: 10px; }
.prog-recorded {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(245,166,35,.1);
  border: 1px solid rgba(245,166,35,.2);
  color: #D4891A;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
  margin-top: 6px;
}

/* Sidebar program info */
.prog-sidebar-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.055);
  margin-bottom: 16px;
}
.psc-head {
  background: linear-gradient(90deg, #0e3f68, #1B7FC4);
  color: #fff;
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 8px;
}
.psc-head i { color: #F5A623; }
.psc-body { padding: 16px; }

/* Now playing card */
.now-playing-card {
  background: linear-gradient(135deg, #071525, #0f3050);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(7,21,37,.4);
  margin-bottom: 16px;
}
.np-disc {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: conic-gradient(#F5A623 0%, #1B7FC4 35%, #D4891A 65%, #145F95 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin: 0 auto 14px;
  box-shadow: 0 0 24px rgba(245,166,35,.3);
}
.np-disc.spin { animation: disc-spin 4s linear infinite; }
@keyframes disc-spin { to { transform: rotate(360deg); } }
.np-label { font-size: 10px; font-weight: 800; color: rgba(245,166,35,.8); letter-spacing: 1px; margin-bottom: 5px; }
.np-show { font-size: 14px; font-weight: 800; color: #fff; margin-bottom: 3px; }
.np-host { font-size: 12px; color: rgba(255,255,255,.6); margin-bottom: 12px; }
.np-time { font-size: 11px; color: rgba(255,255,255,.4); }

/* Responsive */
@media (max-width: 1100px) {
  .prog-day-layout { grid-template-columns: 1fr; }
  .ww-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 700px) {
  .ww-grid { grid-template-columns: repeat(2, 1fr); }
  .prog-timeline::before { right: 36px; }
  .prog-time-col { width: 75px; }
  .day-tab { padding: 10px 12px; min-width: 65px; }
}
@media (max-width: 480px) {
  #weatherTopbar .w-city:nth-child(n+5) { display: none; }
  .ww-grid { grid-template-columns: repeat(2, 1fr); }
}
