/*
 Theme Name: MofuTV
 Theme URI: https://mofulyrics.com/tv
 Author: Admin
 Author URI: http://example.com
 Description: Tema khusus untuk situs TV di jaringan Mofulyrics.
 Version: 1.0
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: mofutv
*/

*,
*::before,
*::after,
html {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  scroll-behavior: smooth;
  line-height: 1.15;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
  margin: 0;
  font-family: SF Pro, Roboto, Noto Sans, sans-serif;
  background-color: rgb(17, 19, 25);
  color: #e5e7eb;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

a {
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

ul, ol {
  list-style: none;
}

svg {
  overflow: hidden;
  vertical-align: middle;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  font-weight: 700;
}
/* ------------------------------------
               HEADER
------------------------------------- */
.header-container {
  position: sticky;
  top: 0;
  z-index: 1001;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 55px;
  background-color: #1a1c22;
  flex-wrap: wrap;
  gap: 10px;
}

.header-logo {
  order: 1;
}

.header-nav {
  order: 2;
  display: flex;
  gap: 4px;
}

.header-nav li {
  padding: 4px;
  border-radius: 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}

.header-search {
  order: 3;
}

.search-form {
  background-color: #1f2128;
  border-radius: 10px;
  display: flex;
  padding: 5px 8px;
  width: 350px;
}

.search-field {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 14px;
  outline: none;
  width: 100%;
}

.search-field:focus {
  background: transparent;
}

.search-form .search-field::placeholder {
  color: #9ca3af;
}

.search-form .search-submit {
  background: none;
  border: none;
  cursor: pointer;
}

.search-form .search-submit:hover {
  color: #fff;
}
@media (max-width: 992px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    padding: 10px 16px;
  }

  .header-nav {
    order: 3;
    width: 100%;
    margin-top: 10px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .header-nav li {
    padding: 4px 12px;
    background-color: #26292e;
    font-weight: 500;
  }

  .search-form {
    width: 100%;
  }

  .current-menu-item {
    background-color: #FFFFFF !important;
    color: #121212;
  }
}

/* SINGLE ALBUM */
.body-album {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 16px 16px;
}

.trailer-container {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 600px) minmax(0, 100%);
  margin: 0 auto;
  overflow: hidden;
}

.trailer-text {
  margin: auto 0;
  padding: 16px 0;
}

.title-serial {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.2;
}

.detail-container {
  margin: 10px 0;
  font-size: 16px;
}

.genre-container {
  display: flex;
  margin: 10px 0 6px;
  flex-wrap: wrap;
}

.genre-tag {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 16px;
  margin-right: 4px;
  margin-bottom: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.sinop-container {
  font-size: 16px;
}
  
.show-more,
.show-less {
  color: rgb(28, 199, 73);
  cursor: pointer;
  margin-top: 8px;
  display: inline-block;
}

.show-more:hover,
.show-less:hover {
  color: rgb(22, 163, 59);
}

.broken-line{
  width: 2px;
  height: 10px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0px 8px;
  display: inline-block;
}

.action-button {
  margin-top: 32px;
}

.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgb(28, 199, 73);
  padding: 7px 18px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #e5e7eb;
}

.play-button:hover {
  background: rgb(22, 163, 59);
}

.trailer-video-container {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  align-items: center;
  display: flex;
  justify-content: center;
  background: #222;
  pointer-events: none;
  user-select: none;
}

#player {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
}

.trailer-video-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(17, 19, 25, 1) 0%, rgba(17, 19, 25, 0) 25%),
    linear-gradient(to top, rgba(17, 19, 25, 1) 0%, rgba(17, 19, 25, 0) 25%),
    linear-gradient(to left, rgba(17, 19, 25, 1) 0%, rgba(17, 19, 25, 0) 30%),
    linear-gradient(to right, rgba(17, 19, 25, 1) 0%, rgba(17, 19, 25, 0) 30%);
  z-index: 5;
  pointer-events: none;
}

.thumbnail-overlay {
  display:none;
  width:100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.mute-btn {
  position:absolute;
  bottom:20px;
  right:60px;
  z-index:10;
  padding:6px;
  border-radius:50%;
  background:rgba(0,0,0,0.5);
  border:1px solid #ccc;
  cursor:pointer;
  pointer-events: all;
}

.icon-mute,
.icon-unmute {
  display: none;
}

.mute-btn[data-state="mute"] .icon-mute,
.mute-btn[data-state="unmute"] .icon-unmute {
  display: block;
}

/* playlist-container */
.playlist-tap {
  border-bottom: 1px solid #26292e;
  margin-bottom: 24px;
}

.tap-item {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  padding: 0 15px 10px;
  border-bottom: 4px solid rgb(28, 199, 73);
}

.episode-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.episode-item {
  display: flex;
}

.episode-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.episode-thumb {
  width: 227px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.episode-title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  position: relative;
}

/* shimmer effect */
.shimmer-thumb,
.shimmer-text {
  display: block;
  position: relative;
  background: #2a2d33;
  overflow: hidden;
  border-radius: 4px;
  width: 100%;
  height: 100%;
  z-index: 20;
}

.shimmer-text {
  display: inline-block;
  height: 20px;
  color: transparent;
}

/* shimmer effect */
.shimmer-thumb::before,
.shimmer-text::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150px;
  width: 150px;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.1) 50%,
    rgba(255,255,255,0) 100%
  );
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  100% {
    left: 100%;
  }
}

@media (max-width: 992px) {
  .body-album {
    padding: 0 0 16px;
  }
  
  .trailer-container {
    display: flex;
    flex-direction: column-reverse;
  }
  
  .trailer-text {
    padding: 16px;
  }
  
  .title-serial {
    font-size: 20px;
  }
  
  .detail-container {
    font-size: 14px;
  }
  
  .sinop-replace {
    display: flex;
    flex-direction: column-reverse;
  }
  
  .sinop-container {
    font-size: 14px;
  }
  
  .show-more,
  .show-less {
    font-weight: 600;
  }
  
  .action-button {
    display: flex;
    margin: 4px 0 10px;
  }
  
  .play-button {
    flex: 1;
  }
  
  .trailer-video-container {
    border-radius: 0;
  }
  
  .trailer-video-container::before {
    background:
      linear-gradient(to bottom, rgba(17, 19, 25, 1) 0%, rgba(17, 19, 25, 0) 25%),
      linear-gradient(to top, rgba(17, 19, 25, 1) 0%, rgba(17, 19, 25, 0) 25%);
  }
  
  .mute-btn {
    right: 25px;
  }
  
  .episode-list {
    padding: 0 16px;
  }
  
  .episode-card {
    gap: 10px;
  }
  
  .episode-thumb {
    width: 154px;
  }
  
  .episode-title {
    font-size: 14px;
  }
}

.body-container {
  display: grid;
  grid-template-columns: minmax(0, 1010px) minmax(0, 400px);
  gap: 20px;
  padding: 1.875rem 1rem 0;
  max-width: 1463px;
  margin: 0 auto;
}

.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #2a2d33;
}

.video-container iframe {
  border: none;
}

#yt-player {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
}

.video-thumb {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.video-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3); /* efek gelap */
}

.play-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background: rgba(255,255,255,0.85);
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='black' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/contain no-repeat;
  border-radius: 50%;
}

.episode-container {
  background: #1a1c22;
  border-radius: 12px;
  overflow: hidden;
}

.comments-container {
  margin: 24px 0 0;
}

.episode-wrapper {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #444 #222;
  padding: 0 0 8px;
  max-height: 510px;
}

.episode-label-container,
.comments-label-container,
.next-ep-label-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.episode-label-container {
  background: #1a1c22;
  padding: 16px;
}

.comments-label-container {
  margin: 0 0 24px;
}

.episode-label,
.comments-count {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.close-button {
  display: none;
}

.now-playing-label {
  position: absolute;
  bottom: 6px;
  right: 6px;
  font-size: 11px;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  padding: 2px 6px;
  border-radius: 3px;
}

.episode-item.active {
  background: #26292e;
}

.next-ep-container {
  display: none;
}

.showAllep-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  padding: 6px;
  background: transparent;
  color: #BBBBBB;
  border: 2px solid #BBBBBB;
  font-size: 14px;
  font-weight: 600;
  margin-top: 10px;
}

.actBtn-container {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.showComments-btn {
  display: none;
}

.shareContainer-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 4px;
  color: #f5f8ff;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
}

#shareContainer {
  width: 100%;
  height: 100%;
  max-height: 100%;
  z-index: 99999999;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#shareContainer.open {
  opacity: 1;
  visibility: visible;
}

.share-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 999;
}

.share-container {
  width: auto;
  background: #18191c;
  padding: 16px;
  margin: 0 16px;
  border-radius: 12px;
  max-width: 502px;
}

.close-share-container {
  display: flex;
  justify-content: right;
}

.close-share {
  background: transparent;
  border: none;
  color: #fff;
  padding: 0;
  cursor: pointer;
}

.shareLabelMedsos-container {
  padding: 20px;
}

.share-label {
  text-align: center;
  border-bottom: 1px solid;
  padding-bottom: 12px;
  font-size: 24px;
  margin: 0;
}

.share-medsos-container {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  margin: 36px 0;
  flex-wrap: wrap;
}

.share-item {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 8px;
}

.share-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 65px;
  border-radius: 50%;
}

.share-svg-size {
  width: 40px;
}

.icon-wa,
.icon-fb,
.icon-x,
.icon-line,
.icon-tele {
  color: #FFFFFF;
}

.icon-wa {
  background: #25D366;
}

.icon-fb {
  background: #1877F2;
}

.icon-x {
  background: #000000;
}

.icon-line {
  background: #00B900;
}

.icon-tele {
  background: #0088CC;
}

.share-to {
  font-size: 14px;
}

.share-label-copy {
  font-size: 16px;
  font-weight: 600;
}

.shareLink-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.copyLink-wrapper {
  padding: 8px 16px;
  border: 1px solid #525861;
  border-radius: 8px;
  font-size: 14px;
  flex: 1;
}

.copyLink-btn {
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  background: rgb(28, 199, 73);
  color: #e5e7eb;
  cursor: pointer;
}

@media (max-width: 992px) {
  .body-container {
    grid-template-columns: 100%;
    grid-template-rows: auto auto;
    padding: 0;
  }

  .body-content,
  .body-sidebar {
    max-width: 100%;
  }
  
  .video-container,
  #yt-player {
    border-radius: 0;
  }
  
  .comments-container {
    display: block;
    margin: 0;
  }

  .episode-wrapper,
  .comments-area {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #444 #222;
    padding: 0 0 8px;
    max-height: calc(100% - 60px);
  }
  
  #episodeContainer,
  #commentsContainer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: 100%;
    background: #0c0d0f;
    z-index: 99999999;
    border-radius: 12px 12px 0 0;
    transform: translateY(100%);
    transition: transform 0.35s ease-in-out;
  }

  #episodeContainer.open,
  #commentsContainer.open {
    transform: translateY(0);
  }
  
  .close-button {
    display: block;
    background: none;
    border: none;
    color: #fff;
    padding: 0;
  }
  
  .comments-label-container {
    background: #1a1c22;
    padding: 16px;
    margin: 0;
  }
  
  .episode-label,
  .comments-count {
    font-size: 18px;
    font-weight: 600;
  }
  
  .next-ep-container {
    display: flex;
    flex-direction: column;
  }
  
  .next-ep-label {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
  }
  
  .showComments-btn,
  .shareContainer-btn {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    background: transparent;
    border: none;
    color: #f5f8ff;
    font-size: 11px;
    font-weight: 600;
    padding: 0;
  }
  
  .actBtn-container {
    margin-top: 16px;
    gap: 16px;
  }
  
  .shareLabelMedsos-container {
    padding: 20px 8px;
  }
}
/* Semua balasan selain depth-1 disembunyikan default */
.comment[class*="depth-"]:not(.depth-1) {
  display: none;
}

/* Tombol toggle */
.toggle-replies {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: rgb(28, 199, 73);
  cursor: pointer;
}

.grouping-container {
  max-width: 1248px;
  margin: 20px auto;
  padding: 0 16px;
}