/* Program Schedule Pro - Modern UI (Bootstrap 5 friendly) */
.psp-wrap { margin: 24px 0; }
.psp-container{
  max-width:1100px;
  margin:0 auto;
  padding: 18px;
  background:#fff;
}
@media(min-width:768px){
  .psp-container{ padding: 22px; }
}

.psp-title{ font-weight:800; letter-spacing:-0.02em; }
.psp-subtitle{ font-size: 0.95rem; }

.psp-days-sticky{
  position: sticky;
  top: 12px;
  z-index: 20;
  margin-top: 14px;
}
.psp-days-mask{
  position: relative;
  padding: 10px 0;
  overflow: hidden;
}
/* fade edges for horizontal scroll */
.psp-days-mask:before,
.psp-days-mask:after{
  content:"";
  position:absolute;
  top:0; bottom:0;
  width: 28px;
  pointer-events:none;
  z-index:2;
}
.psp-days-mask:before{
  left:0;
  background: linear-gradient(to right, #fff 20%, rgba(255,255,255,0));
}
.psp-days-mask:after{
  right:0;
  background: linear-gradient(to left, #fff 20%, rgba(255,255,255,0));
}

.psp-days{
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling: touch;
  padding: 2px 32px; /* allow fade edges */
  margin:0;
  scrollbar-width: none;
}
.psp-days::-webkit-scrollbar{ display:none; }

.psp-day-pill{
  background: #f1f5f9 !important;
  color:#0f172a !important;
  border: 1px solid rgba(15,23,42,.08);
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  white-space: nowrap;
}
.psp-day-pill:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(2,6,23,.08);
}
.psp-day-pill.active{
  color:#fff !important;
  border-color: transparent !important;
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 55%, #10b981 100%) !important;
  box-shadow: 0 10px 26px rgba(16,185,129,.25);
}

.psp-today-badge{
  font-size: 0.7rem;
  vertical-align: middle;
}

/* Now Card */
.psp-now-card{
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}
.psp-badge{
  font-weight: 700;
  letter-spacing: .02em;
  padding: 8px 12px;
}
.psp-badge-on{
  background: #dcfce7;
  color:#14532d;
  border: 1px solid rgba(20,83,45,.12);
  position: relative;
}
.psp-badge-on.psp-pulse:after{
  content:"";
  position:absolute;
  inset:-6px;
  border-radius: 999px;
  border: 2px solid rgba(34,197,94,.45);
  animation: pspPulse 1.6s infinite;
}
@keyframes pspPulse{
  0%{ transform: scale(.95); opacity: .9; }
  70%{ transform: scale(1.05); opacity: 0; }
  100%{ transform: scale(1.05); opacity: 0; }
}
.psp-badge-off{
  background:#f1f5f9;
  color:#0f172a;
  border: 1px solid rgba(15,23,42,.10);
}

.psp-chip{
  display:inline-flex;
  gap:6px;
  align-items:center;
  padding: 7px 10px;
  border-radius: 999px;
  background:#f8fafc;
  border:1px solid rgba(15,23,42,.08);
  font-size: 0.85rem;
}

.psp-progress{
  height: 8px;
  border-radius: 999px;
  background: #eef2f7;
}
.psp-progress-bar{
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e 0%, #10b981 100%);
}

/* Tools */
.psp-search{
  border-radius: 14px;
}
.psp-tools .btn-group .btn{
  border-radius: 14px !important;
}
.psp-switch .form-check-input{
  cursor:pointer;
}
.psp-switch .form-check-label{
  cursor:pointer;
  user-select:none;
}

/* Table */
.psp-table{
  border-collapse: separate;
  border-spacing: 0;
}
.psp-col-time{
  width: 170px;
}
.psp-col-duration{
  width: 110px;
}
.psp-col-presenter{
  width: 240px;
}
@media(max-width:768px){
  .psp-col-presenter{ display:none; }
}

.psp-table tbody tr td:first-child{
  background: #f8fafc;
  font-weight: 600;
}
.psp-row-current{
  background: rgba(34,197,94,.06) !important;
  box-shadow: inset 4px 0 0 rgba(34,197,94,.9);
}
.psp-live-dot{
  width: 9px; height: 9px; border-radius: 50%;
  background: #22c55e;
  display:inline-block;
  margin-right:8px;
  box-shadow: 0 0 0 6px rgba(34,197,94,.15);
}

/* Timeline */
.psp-timeline-wrap{
  padding: 8px 0;
}
.psp-timeline-card{
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 16px;
  padding: 12px 14px;
  background:#fff;
  transition: transform .15s ease, box-shadow .15s ease, opacity .2s ease;
}
.psp-timeline-card:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(2,6,23,.08);
}
.psp-timeline-time{
  font-size: .85rem;
  color:#64748b;
}
.psp-timeline-title{
  font-weight: 800;
  letter-spacing:-0.01em;
}
.psp-timeline-presenter{
  color:#64748b;
}
.psp-duration-chip{
  font-size: .8rem;
  padding: 7px 10px;
  border-radius: 999px;
  background:#f1f5f9;
  border: 1px solid rgba(15,23,42,.08);
  font-weight: 700;
}
.psp-timeline-past{
  opacity: .55;
}
.psp-timeline-current{
  position: relative;
  border-color: rgba(16,185,129,.35);
  background: linear-gradient(180deg, rgba(16,185,129,.10), rgba(255,255,255,1));
  overflow: hidden;
}
.psp-timeline-current:before{
  content:"";
  position:absolute;
  left:-40%;
  top:0; bottom:0;
  width: 40%;
  background: linear-gradient(90deg, rgba(34,197,94,0), rgba(34,197,94,.25), rgba(34,197,94,0));
  animation: pspShine 2.2s infinite;
}
@keyframes pspShine{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(380%); }
}

/* "Now" marker for today timeline */
.psp-now-marker{
  position:absolute;
  top:0;
  bottom:0;
  width: 2px;
  background: rgba(34,197,94,.55);
  left: 18px;
  border-radius: 999px;
}

/* Entrance animation (CSS only) */
.psp-anim-in{
  animation: pspIn .45s ease both;
}
@keyframes pspIn{
  from{ opacity:0; transform: translateY(8px); }
  to{ opacity:1; transform: translateY(0); }
}

/* Pane visibility */
.psp-pane{ display:none; }
.psp-pane.is-active{ display:block; }
