:root{
  --jadwal-text:#1f2937;
  --jadwal-sub:#4b5563;
}

body.dark{
  --jadwal-text:#e5e7eb;
  --jadwal-sub:#9ca3af;
}

.container{
  max-width:1200px;
  margin:auto;
  padding:40px 16px;
}

.card{
  background:var(--card);
  padding:26px;
  border-radius:20px;
  box-shadow:0 10px 30px rgba(0,0,0,.15);
  margin-bottom:26px;
}

.live iframe{
  width:100%;
  aspect-ratio:16/9;
  border-radius:20px;
  box-shadow:0 20px 40px rgba(0,0,0,.25);
}

.grid{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:28px;
  margin-top:32px;
}

.gallery{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:16px;
}

.gallery a{
  text-decoration:none;
  color:var(--text);
}

.gallery img{
  width:100%;
  border-radius:14px;
  transition:.3s;
}

.gallery img:hover{
  transform:scale(1.05);
}

.chat input,.chat button{
  width:100%;
  padding:10px;
  margin:6px 0;
  border-radius:12px;
  border:1px solid #ccc;
}

.chat-log{
  height:220px;
  overflow:auto;
  background:#c7ffe0;
  border-radius:14px;
  padding:12px;
  margin-top:10px;
}

body.dark .jadwal-card{
  background:#0f2f22;
}

.slide-title{
  margin-top:6px;
  font-weight:600;
  color:#000;
  text-decoration:none;
}

body.dark .slide-title{
  color:#fff;
}

.slide-img{
  width:100%;
  border-radius:16px;
}

.slide-anim{
  text-decoration:none;
}

.playlist iframe{
  width:100%;
  aspect-ratio:16/9;
  border-radius:16px;
}

@media(max-width:900px){
  .grid{
    grid-template-columns:1fr;
  }
}

.live-css-box{
  width:100%;
  aspect-ratio:16/9;
  border-radius:24px;
  overflow:hidden;
  position:relative;
  box-shadow:0 15px 35px rgba(0,0,0,0.3);
}

.live-card{
  display:flex;
  width:100%;
  height:100%;
  text-decoration:none;
  align-items:center;
  justify-content:center;
  position:relative;
  background:#0f172a;
}

.animated-bg{
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:linear-gradient(-45deg,#1e293b,#1e40af,#1e3a8a,#0f172a);
  background-size:400% 400%;
  animation:gradientBG 10s ease infinite;
  opacity:.8;
}

@keyframes gradientBG{
  0%{background-position:0% 50%;}
  50%{background-position:100% 50%;}
  100%{background-position:0% 50%;}
}

.live-content{
  position:relative;
  z-index:2;
  text-align:center;
  color:#fff;
}

.live-indicator{
  background:rgba(255,0,0,.2);
  border:1px solid #ff4444;
  padding:6px 16px;
  border-radius:50px;
  font-size:12px;
  font-weight:800;
  letter-spacing:2px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:20px;
}

.dot{
  width:8px;
  height:8px;
  background:#ff4444;
  border-radius:50%;
  box-shadow:0 0 10px #ff4444;
  animation:pulseRed 1.5s infinite;
}

.play-icon-wrapper{
  margin-bottom:20px;
}

.play-circle{
  width:80px;
  height:80px;
  background:rgba(255,255,255,.1);
  border:2px solid #fff;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto;
  transition:.4s;
  backdrop-filter:blur(5px);
}

.play-triangle{
  width:0;
  height:0;
  border-top:15px solid transparent;
  border-bottom:15px solid transparent;
  border-left:25px solid #fff;
  margin-left:5px;
}

.live-title{
  font-size:28px;
  margin:0;
  text-shadow:0 4px 10px rgba(0,0,0,.5);
}

.live-subtitle{
  font-size:14px;
  opacity:.8;
}

.live-card:hover .play-circle{
  transform:scale(1.15);
  background:#fff;
}

.live-card:hover .play-triangle{
  border-left-color:#1e40af;
}

.live-card:hover .live-title{
  color:#fbbf24;
}

@keyframes pulseRed{
  0%{transform:scale(1);opacity:1;}
  50%{transform:scale(1.5);opacity:.5;}
  100%{transform:scale(1);opacity:1;}
}

@keyframes fadeIn{
  from{opacity:0;transform:translateY(10px);}
  to{opacity:1;transform:translateY(0);}
}

@media(max-width:600px){
  .live-title{
    font-size:18px;
  }
  .live-subtitle{
    font-size:11px;
  }
  .play-circle{
    width:60px;
    height:60px;
  }
  .play-triangle{
    border-top:12px solid transparent;
    border-bottom:12px solid transparent;
    border-left:20px solid #fff;
    margin-left:4px;
  }
  .live-indicator{
    font-size:9px;
    padding:3px 8px;
    gap:4px;
  }
}

#youtubeDocs{
  width:100%;
}

.video-slide{
  width:100%;
}

.video-slide a{
  display:block;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  text-decoration:none;
}

.video-slide img{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  border-radius:14px;
  display:block;
}

.video-title{
  width:100%;
  box-sizing:border-box;
  margin-top:8px;
  font-weight:600;
  font-size:14px;
  line-height:1.5;
  color:var(--jadwal-text);
  white-space:normal;
  word-break:break-word;
  overflow-wrap:break-word;
}

.slide-anim{
  animation:fadeZoom .8s ease;
}

@keyframes fadeZoom{
  from{
    opacity:0;
    transform:scale(1.05) translateY(10px);
  }
  to{
    opacity:1;
    transform:scale(1) translateY(0);
  }
}

.jadwal-card{
  background:var(--card);
  color:var(--jadwal-text);
  border-radius:20px;
  padding:20px;
  box-shadow:0 15px 40px rgba(0,0,0,.25);
  margin-top: 0px;
  margin-bottom: 0px;
}

.jadwal-card h3{
  margin-bottom:15px;
  font-size:18px;
  color:var(--jadwal-text);
}

.jadwal-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.jadwal-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 16px;
  border-radius:12px;
  backdrop-filter:blur(6px);
  transition: all .25s ease;
  background:linear-gradient(135deg,#facc15,#fde047);
  color:#422006;
}

body.dark .jadwal-item{
  background:rgba(255,255,255,.05);
}

body:not(.dark) .jadwal-item{
  background:rgba(0,0,0,.04);
}

.jadwal-item:hover{
  transform:translateY(-2px);
  background:rgba(255,255,255,.1);
}

.jadwal-item span{
  flex:1;
  font-size:15px;
  color:#422006;
  margin-bottom: 0px;
}

.jadwal-item span:first-child{
  text-align:left;
}

.jadwal-item span:last-child{
  text-align:right;
  font-weight:600;
  font-variant-numeric: tabular-nums;
}

.jadwal-item.active{
  background:linear-gradient(135deg,#fde047,#facc15);
  box-shadow:0 5px 20px rgba(250,204,21,0.6);
  font-weight: bold;
  transform: scale(1.05);
  border: 1px solid rgba(255,255,255,0.4);
}

.jadwal-item.passed{
  opacity: 0.5;
  background: rgba(0,0,0,0.04);
  transform: scale(0.97);
  filter: grayscale(0.2);
}

.jadwal-item:hover:not(.active){
  transform: translateY(-2px);
  background: rgba(255,255,255,0.1);
}


body.dark .jadwal-item.passed{
  background: rgba(255,255,255,0.04);
}


.jadwal-item.passed span{
  color: var(--jadwal-sub);
}

@keyframes glow{
  0%{box-shadow:0 0 10px rgba(250,204,21,0.3);}
  50%{box-shadow:0 0 25px rgba(250,204,21,0.6);}
  100%{box-shadow:0 0 10px rgba(250,204,21,0.3);}
}

.jadwal-item.active{
  animation: glow 2s infinite;
}

.next-sholat{
  background:linear-gradient(135deg,#22c55e,#4ade80);
  border-radius:16px;
  padding:16px;
  margin-bottom:16px;
  text-align:center;
  color:#052e16;
  box-shadow:0 10px 30px rgba(34,197,94,.3);
  animation:fadeIn .6s ease;
}

.next-label{
  font-size:12px;
  opacity:.8;
  color:var(--jadwal-sub);
}

#next-name{
  font-size:20px;
  font-weight:bold;
  margin:4px 0;
  color:var(--jadwal-text);
}

#countdown{
  font-size:18px;
  font-weight:600;
  letter-spacing:2px;
  color:var(--jadwal-text);
}

body.dark .next-sholat{
  background:linear-gradient(135deg,#14532d,#166534);
  color:#ecfdf5;
}

body.dark .next-label{
  color:#bbf7d0;
}

body.dark #next-name{
  color:#ecfdf5;
}

body.dark #countdown{
  color:#ecfdf5;
}


body.dark .jadwal-item span{
  color: #f9fafb;
}

body.dark .jadwal-item span:last-child{
  color: #facc15;
}

body.dark .jadwal-item.active span{
  color: #ffffff;
}

body.dark .jadwal-item.passed span{
  color: #9ca3af;
}