/* Badge Top Trending */
.trending-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: linear-gradient(135deg, rgba(255,214,0,0.82), rgba(255,153,0,0.78));
  color: #1f1600;
  font-size: 10.5px;
  font-weight: 800;
  border-radius: 999px;
  padding: 2px 9px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.22);
  letter-spacing: 0.4px;
  border: 1px solid rgba(255,255,255,0.55);
  text-transform: uppercase;
  font-family: 'Roboto', Arial, sans-serif;
  backdrop-filter: blur(6px);
}
.trending-img-wrap img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
  margin-left: 0;
}
/* Dubbing Indonesia portrait grid and card */
.dubbed-list-portrait {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px 60px;
  margin-bottom: 24px;
  padding: 0 16px;
}
.dubbed-card-portrait {
  background: #23272f;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.13);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.18s, transform 0.15s;
  min-width: 0;
  padding: 0;
}
.dubbed-card-portrait:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.dubbed-img-portrait-wrap {
  width: 100%;
  aspect-ratio: 3/4.2;
  background: #181a20;
  position: relative;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}
.dubbed-img-portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px 12px 0 0;
}
.dubbed-label-portrait {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #e05297;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  padding: 2px 8px;
  z-index: 2;
}
.dubbed-info-portrait {
  width: 100%;
  padding: 8px 8px 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}
.dubbed-title-portrait {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}
.dubbed-episode-portrait {
  font-size: 12px;
  color: #ffd86b;
  font-weight: 500;
}
@media (max-width: 600px) {
  .dubbed-list-portrait {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 6px;
  }
  .dubbed-card-portrait {
    border-radius: 10px;
  }
  .dubbed-img-portrait-wrap, .dubbed-img-portrait-wrap img {
    border-radius: 10px 10px 0 0;
  }
  .dubbed-info-portrait {
    padding: 7px 6px 8px 6px;
  }
  .dubbed-title-portrait {
    font-size: 12px;
  }
  .dubbed-episode-portrait {
    font-size: 11px;
  }
}
/* Dubbing Indonesia grid style */
.dubbed-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 18px 14px;
  margin-bottom: 24px;
}
.dubbed-card-grid {
  background: #23272f;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.13);
  overflow: hidden;
  transition: box-shadow 0.18s;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}
.dubbed-card-grid a {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  width: 100%;
  height: 100%;
}
.dubbed-img-wrap-grid {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #181a20;
  flex-shrink: 0;
}
.dubbed-img-wrap-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
}
.dubbed-label {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  border-radius: 8px;
  z-index: 2;
  box-shadow: 0 1px 4px rgba(0,0,0,0.13);
}
.dubbed-info-grid {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 10px 12px 12px 12px;
  flex: 1;
  min-width: 0;
}
.dubbed-title-grid {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dubbed-episode-grid {
  font-size: 0.82rem;
  color: #ffb86c;
  font-weight: 500;
  margin-bottom: 2px;
}
.dubbed-genre-grid {
  font-size: 0.78rem;
  color: #b0b3b8;
  font-weight: 400;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 600px) {
  .dubbed-list-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dubbed-img-wrap-grid { height: 120px; }
}
@media (max-width: 400px) {
  .dubbed-list-grid {
    grid-template-columns: 1fr;
  }
  .dubbed-img-wrap-grid { height: 90px; }
}
/* Dubbing Indonesia vertical list style */
.dubbed-list-vertical {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.dubbed-card-vertical {
  display: flex;
  background: #23272f;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.13);
  overflow: hidden;
  transition: box-shadow 0.18s;
  min-height: 120px;
}
.dubbed-card-vertical a {
  display: flex;
  color: inherit;
  text-decoration: none;
  width: 100%;
}
.dubbed-img-wrap {
  position: relative;
  min-width: 90px;
  max-width: 90px;
  height: 120px;
  overflow: hidden;
  border-radius: 16px 0 0 16px;
  background: #181a20;
  flex-shrink: 0;
}
.dubbed-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px 0 0 16px;
}
.dubbed-label {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  border-radius: 8px;
  z-index: 2;
  box-shadow: 0 1px 4px rgba(0,0,0,0.13);
}
.dubbed-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 16px 12px 14px;
  flex: 1;
  min-width: 0;
}
.dubbed-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dubbed-episode {
  font-size: 0.82rem;
  color: #ffb86c;
  font-weight: 500;
  margin-bottom: 2px;
}
.dubbed-genre {
  font-size: 0.78rem;
  color: #b0b3b8;
  font-weight: 400;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.drama-title-small {
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 5px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
}
.drama-episode-small {
  font-size: 0.72rem;
  color: #ffb86c;
  font-weight: 500;
  margin-bottom: 3px;
  line-height: 1.1;
}
.drama-category-small {
  font-size: 0.72rem;
  color: #b0b3b8;
  font-weight: 400;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 400px) {
  .card-img-top { height: 90px; }
  .card-title { font-size: 1rem; }
  .btn-primary { padding: 6px 10px; font-size: 0.95rem; }
  .bottom-nav { height: 60px; padding: 0 8px; }
  .bottom-nav .nav-label { font-size: 0.65rem; }
  .bottom-nav .nav-btn { font-size: 1.2rem; min-height: 55px; }
  .bottom-nav .vip-btn { width: 55px; height: 55px; margin-top: -18px; }
  .bottom-nav .vip-btn .vip-icon { font-size: 1.8rem; }
}


body {
  background: #181a20;
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
  color: #fff;
  margin: 0;
  padding-bottom: 70px;
}

.navbar {
  border-radius: 0;
  box-shadow: none;
  background: #23272f !important;
  position: sticky;
  top: 0;
  z-index: 100;
}

.container {
  padding-left: 0;
  padding-right: 0;
  max-width: 100vw;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 18px 16px 8px 16px;
  color: #fff;
}

.drama-list {
  display: flex;
  overflow-x: auto;
  gap: 6px;
  padding: 0 8px 8px 8px;
  scroll-snap-type: x mandatory;
}
.drama-list::-webkit-scrollbar {
  display: none;
}

.drama-card {
  min-width: 160px;
  max-width: 200px;
  background: #23272f;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.16);
  overflow: hidden;
  flex: 0 0 auto;
  scroll-snap-align: start;
  margin-bottom: 10px;
  margin-right: 10px;
  border: none;
  transition: transform 0.15s;
}
/* Card body padding dan layout lebih rapi */
.drama-card .card-body {
  padding: 13px 13px 13px 13px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Fullscreen loader overlay used when opening/playing video */
.loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,10,12,0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}
.loader-box {
  text-align: center;
  color: #fff;
  max-width: 420px;
  width: 86%;
}
.loader-percent {
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -1px;
}
.loader-sub {
  color: #cfd3d8;
  font-size: 14px;
  margin-bottom: 12px;
}
.loader-bar {
  height: 8px;
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
  overflow: hidden;
}
.loader-bar > i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg,#6dd3ff,#6ee7b7);
  transition: width 220ms linear;
}
.loader-note {
  font-size: 12px;
  color: #9aa0a6;
  margin-top: 10px;
}
.loading { opacity: 0.8; }
.drama-card:hover {
  transform: translateY(-4px) scale(1.03);
}
.drama-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px 14px 0 0;
}
  /* Hilangkan padding/margin default pada link agar card lebih rapat */
  .drama-card a {
    display: block;
    color: inherit;
    text-decoration: none;
    padding: 0;
    margin: 0;
  }
  padding: 8px 10px 10px 10px;
}
.drama-card .card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.drama-card .card-text {
  font-size: 0.78rem;
  color: #b0b3b8;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.1em;
  line-height: 1.2;
}
.btn-primary {
  background: linear-gradient(90deg, #ff5b5b 60%, #ffb86c 100%);
  border: none;
  border-radius: 10px;
  font-weight: 500;
  padding: 6px 14px;
  font-size: 0.95rem;
}

.bottom-nav {
  background: linear-gradient(135deg, #1a1a2e 0%, #0d1117 100%);
  border-radius: 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(0, 188, 212, 0.15);
}
.bottom-nav a {
  color: rgba(255, 255, 255, 0.5);
}
.bottom-nav a.active, .bottom-nav a:focus {
  color: #00bcd4;
}
.bottom-nav .nav-label {
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 576px) {
  .drama-card img { height: 100%; }
  .section-title { font-size: 1.1rem; margin: 0px 8px 6px 8px; }
  .drama-card { min-width: 100px; max-width: 110px; }
}

.navbar {
  border-radius: 0 0 18px 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.container {
  padding-left: 8px;
  padding-right: 8px;
}

.card {
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border: none;
  margin-bottom: 18px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
}
.card-img-top {
  object-fit: cover;
  height: 180px;
  border-radius: 18px 18px 0 0;
}
.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0d6efd;
}
.card-text {
  font-size: 0.97rem;
  color: #444;
}
.btn-primary {
  background: linear-gradient(90deg, #0d6efd 60%, #4f8cff 100%);
  border: none;
  border-radius: 12px;
  font-weight: 500;
  padding: 7px 18px;
}
.nav-tabs {
  border-bottom: none;
  justify-content: space-between;
}
.nav-tabs .nav-link {
  border-radius: 12px 12px 0 0;
  margin-right: 4px;
  color: #0d6efd;
  background: #eaf1ff;
  border: none;
  font-weight: 500;
}
.nav-tabs .nav-link.active {
  background: #0d6efd;
  color: #fff;
}
.alert-warning {
  border-radius: 12px;
}

/* Bottom navigation bar - Modern Elevated Design */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 65px;
  background: linear-gradient(135deg, #1a1a2e 0%, #0d1117 100%);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-radius: 20px 20px 0 0;
  padding: 0 15px;
  border-top: 1px solid rgba(0, 188, 212, 0.15);
  backdrop-filter: blur(10px);
}

/* Fullscreen stream page */
.stream-body {
  background: #000;
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
  width: 100vw;
}

.stream-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.stream-video-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.stream-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  display: block;
}

.stream-error {
  color: #ff6b6b;
  font-size: 18px;
  padding: 20px;
  text-align: center;
}

/* Video Progress Bar */
.video-progress-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  padding: 8px 16px 12px 16px;
  z-index: 1000;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.video-progress-container:hover {
  background: rgba(0, 0, 0, 0.85);
}

.video-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  margin-bottom: 6px;
}

.video-progress-bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, #00bcd4, #00e676);
  width: var(--progress, 0%);
  border-radius: 3px;
  transition: width 0.1s linear;
}

.video-progress-time {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* Navigation buttons (up/down) */
.stream-nav-buttons {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1001;
}

.stream-nav-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: all 0.2s ease;
  opacity: 0.3;
}

.stream-nav-btn:hover:not(:disabled) {
  background: rgba(0,0,0,0.8);
  border-color: rgba(255,255,255,0.6);
  opacity: 1;
  transform: scale(1.1);
}

.stream-nav-btn:disabled {
  opacity: 0.15;
  cursor: not-allowed;
}

.stream-nav-btn .material-icons {
  font-size: 28px;
}

/* Mute/Unmute toggle button */
.mute-toggle {
  position: fixed;
  bottom: 100px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  opacity: 0.8;
  z-index: 1001;
}

.mute-toggle:hover {
  background: rgba(0,0,0,0.8);
  border-color: rgba(255,255,255,0.6);
  opacity: 1;
  transform: scale(1.1);
}

.mute-toggle .material-icons {
  font-size: 20px;
}

/* Fullscreen toggle button */
.fullscreen-toggle {
  position: fixed;
  bottom: 160px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  opacity: 0.8;
  z-index: 1001;
}

.fullscreen-toggle:hover {
  background: rgba(0,0,0,0.8);
  border-color: rgba(255,255,255,0.6);
  opacity: 1;
  transform: scale(1.1);
}

.fullscreen-toggle .material-icons {
  font-size: 20px;
}

/* Episode menu toggle button */
.stream-menu-toggle {
  position: fixed;
  bottom: 55px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  transition: all 0.2s ease;
  opacity: 0.3;
}

.stream-menu-toggle:hover {
  background: rgba(0,0,0,0.8);
  border-color: rgba(255,255,255,0.6);
  opacity: 1;
  transform: scale(1.1);
}

.stream-menu-toggle .material-icons {
  font-size: 22px;
}

/* Episode panel (bottom slide-up) */
.stream-episode-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(12,13,16,0.98);
  backdrop-filter: blur(8px);
  height: 85vh;
  border-radius: 20px 20px 0 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  z-index: 1002;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.5);
  overflow: hidden;
}

.stream-episode-panel.active {
  transform: translateY(0);
}

.stream-episode-header {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.stream-panel-close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s;
}

.stream-panel-close:hover {
  background: rgba(255,255,255,0.1);
}

.stream-panel-close .material-icons {
  font-size: 24px;
}

/* Drama info section */
.stream-drama-info {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(30,32,36,0.8);
  flex-shrink: 0;
  min-height: 140px;
}

.stream-drama-cover {
  width: 100px;
  height: 140px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.stream-drama-cover-placeholder {
  width: 100px;
  height: 140px;
  border-radius: 10px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
}

.stream-drama-cover-placeholder .material-icons {
  font-size: 40px;
}

.stream-drama-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: flex-start;
}

.stream-drama-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.stream-drama-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.stream-episode-count {
  font-size: 12px;
  color: #9aa0a6;
  background: rgba(255,255,255,0.06);
  padding: 4px 10px;
  border-radius: 6px;
}

.stream-drama-category {
  font-size: 12px;
  color: #6dd3ff;
  background: rgba(109,211,255,0.1);
  padding: 4px 10px;
  border-radius: 6px;
}

.stream-drama-synopsis {
  font-size: 12px;
  color: #b0b3b8;
  margin: 0;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.stream-drama-category {
  font-size: 11px;
  background: rgba(0, 188, 212, 0.3);
  color: #00bcd4;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0, 188, 212, 0.5);
  display: inline-block;
  margin-top: 4px;
  text-transform: capitalize;
}

/* Episodes section */
.stream-episodes-section {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.stream-episodes-title {
  font-size: 13px;
  font-weight: 600;
  color: #9aa0a6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Episode list grid */
.stream-episode-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 10px;
}

.stream-ep-btn {
  padding: 12px;
  border: 1.5px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.stream-ep-btn:hover {
  background: rgba(109,211,255,0.2);
  border-color: rgba(109,211,255,0.5);
  transform: translateY(-2px);
}

.stream-ep-btn.active {
  background: linear-gradient(135deg, #6dd3ff, #6ee7b7);
  border-color: transparent;
  color: #000;
  font-weight: 600;
}

/* Scrollbar untuk episode list */
.stream-episode-list::-webkit-scrollbar {
  width: 6px;
}

.stream-episode-list::-webkit-scrollbar-track {
  background: transparent;
}

.stream-episode-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
}

.stream-episode-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.3);
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  .stream-nav-buttons {
    right: 12px;
  }

  .stream-nav-btn {
    width: 48px;
    height: 48px;
  }

  .stream-nav-btn .material-icons {
    font-size: 24px;
  }

  .mute-toggle {
    width: 40px;
    height: 40px;
    bottom: 96px;
    right: 12px;
  }

  .mute-toggle .material-icons {
    font-size: 18px;
  }

  .fullscreen-toggle {
    width: 40px;
    height: 40px;
    bottom: 156px;
    right: 12px;
  }

  .fullscreen-toggle .material-icons {
    font-size: 18px;
  }

  .video-progress-container {
    padding: 6px 12px 10px 12px;
  }

  .video-progress-bar {
    height: 5px;
    margin-bottom: 4px;
  }

  .video-progress-time {
    font-size: 11px;
  }

  .stream-menu-toggle {
    width: 40px;
    height: 40px;
    bottom: 50px;
    right: 12px;
  }

  .stream-menu-toggle .material-icons {
    font-size: 20px;
  }

  .stream-episode-header {
    padding: 14px 12px;
  }

  .stream-drama-info {
    gap: 12px;
    padding: 12px;
  }

  .stream-drama-cover {
    width: 80px;
    height: 110px;
  }

  .stream-drama-title {
    font-size: 14px;
  }

  .stream-drama-synopsis {
    font-size: 11px;
  }

  .stream-episodes-title {
    padding: 10px 12px;
  }

  .stream-episode-count {
    font-size: 12px;
  }

  .stream-episode-list {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 8px;
    padding: 10px 12px;
  }

  .stream-ep-btn {
    font-size: 12px;
    padding: 10px;
    min-height: 40px;
  }
}
/* Bottom nav modern style - Elegant Design */
.bottom-nav .nav-btn {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 8px 4px;
  border-radius: 16px;
  position: relative;
  min-height: 60px;
}

.bottom-nav .nav-btn ion-icon {
  transition: all 0.3s ease;
}

.bottom-nav .nav-btn:hover, .bottom-nav .nav-btn:focus {
  color: #00bcd4;
  background: rgba(0, 188, 212, 0.1);
  transform: translateY(-2px);
}

.bottom-nav .nav-btn:hover ion-icon {
  color: #00bcd4;
}

.bottom-nav .nav-btn.active {
  color: #00bcd4;
  background: rgba(0, 188, 212, 0.15);
}

.bottom-nav .nav-btn.active ion-icon {
  color: #00bcd4;
}

.bottom-nav .nav-btn.active .nav-label {
  color: #00bcd4;
  font-weight: 600;
}

.bottom-nav .nav-label {
  font-size: 0.7rem;
  margin-top: 4px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

/* VIP Button - Same as regular nav buttons */
.bottom-nav .vip-btn {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 8px 4px;
  border-radius: 16px;
  position: relative;
  min-height: 60px;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  margin-top: 0 !important;
  width: auto !important;
  height: auto !important;
}

.bottom-nav .vip-btn img.vip-icon {
  width: 24px !important;
  height: 24px !important;
  filter: none;
  transition: all 0.3s ease;
}

.bottom-nav .vip-btn:hover, .bottom-nav .vip-btn:focus {
  color: #00bcd4;
  background: rgba(0, 188, 212, 0.1) !important;
  transform: translateY(-2px);
}

.bottom-nav .vip-btn:hover img.vip-icon {
  filter: brightness(1.3);
  transform: none;
}

.bottom-nav .vip-btn.active {
  color: #00bcd4;
  background: rgba(0, 188, 212, 0.15) !important;
}

.bottom-nav .vip-btn.active img.vip-icon {
  filter: brightness(1.3);
}

.bottom-nav .vip-btn .nav-label {
  font-size: 0.7rem;
  margin-top: 4px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

/* Pause overlay */
.stream-pause-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
  cursor: pointer;
  pointer-events: all;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.stream-pause-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  text-align: center;
}

.stream-pause-icon {
  font-size: 64px;
  color: rgba(255,255,255,0.9);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.stream-pause-text {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
}

/* Category Modal Styling */
.kategori-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: flex-end;
  z-index: 9999;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.kategori-modal.show {
  animation: slideUp 0.3s ease-out forwards;
}

.kategori-modal-content {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  animation: contentSlide 0.3s ease-out;
}

@keyframes contentSlide {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.kategori-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(0, 188, 212, 0.2);
  position: sticky;
  top: 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  z-index: 10;
}

.kategori-modal-header h5 {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.kategori-modal-close {
  background: none;
  border: none;
  color: #00bcd4;
  font-size: 32px;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border-radius: 50%;
}

.kategori-modal-close:hover {
  background: rgba(0, 188, 212, 0.2);
  color: #00e5ff;
  transform: rotate(90deg);
}

.kategori-modal-body {
  padding: 15px 10px 30px 10px;
}

.kategori-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 15px;
  padding: 15px;
}

.kategori-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 12px;
  background: rgba(0, 188, 212, 0.08);
  border: 2px solid rgba(0, 188, 212, 0.3);
  border-radius: 16px;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.kategori-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 188, 212, 0.2), transparent);
  transition: left 0.5s ease;
}

.kategori-item:hover::before {
  left: 100%;
}

.kategori-item:hover {
  background: rgba(0, 188, 212, 0.15);
  border-color: rgba(0, 188, 212, 0.6);
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 188, 212, 0.3);
}

.kategori-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #00bcd4, #0097a7);
  border-radius: 12px;
  color: #fff;
  transition: all 0.3s ease;
}

.kategori-item:hover .kategori-icon {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 4px 16px rgba(0, 188, 212, 0.4);
}

.kategori-icon .material-icons {
  font-size: 28px;
}

.kategori-name {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.3s ease;
}

.kategori-item:hover .kategori-name {
  color: #00e5ff;
}

/* Scrollbar styling */
.kategori-modal-content::-webkit-scrollbar {
  width: 6px;
}

.kategori-modal-content::-webkit-scrollbar-track {
  background: rgba(0, 188, 212, 0.1);
}

.kategori-modal-content::-webkit-scrollbar-thumb {
  background: rgba(0, 188, 212, 0.4);
  border-radius: 3px;
}

.kategori-modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 188, 212, 0.6);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .kategori-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 12px;
    padding: 12px;
  }
  
  .kategori-item {
    padding: 14px 10px;
    gap: 8px;
  }
  
  .kategori-icon {
    width: 48px;
    height: 48px;
  }
  
  .kategori-icon .material-icons {
    font-size: 26px;
  }
  
  .kategori-name {
    font-size: 11px;
  }
  
  .kategori-modal-header h5 {
    font-size: 18px;
  }
}