.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 .chat-log{
  background:#0f2f22;
}

.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: 0.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: white;
}


.live-indicator {
    background: rgba(255, 0, 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,0.1);
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: 0.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 white;
    margin-left: 5px;
}

.live-title {
    font-size: 28px;
    margin: 0;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.live-subtitle {
    font-size: 14px;
    opacity: 0.8;
}

/* Efek Hover */
.live-card:hover .play-circle {
    transform: scale(1.15);
    background: #ffffff;
}

.live-card:hover .play-triangle {
    border-left-color: #1e40af;
}

.live-card:hover .live-title {
    color: #fbbf24;
}

/* Animasi */
@keyframes pulseRed {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.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 white;
        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:#000;

  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);
  }
}
