.main-header {
    background: linear-gradient(to right, #000, #222);
    /* Override for single.html */
    background: -webkit-linear-gradient(to right, #000, #222);
    background: -moz-linear-gradient(to right, #000, #222);
    background: -o-linear-gradient(to right, #000, #222);
}

.mobile-nav {
    background: rgb(17, 19, 25);
}

.main-header .nav-brand {
    opacity: 1;
    /* Override for single.html */
}

.main-header a {
    opacity: .7;
    /* Override for single.html */
}

.form-search button {
    color: #333;
    opacity: .7;
}

.form-search input {
    border-color: #333;
}

.form-search input::placeholder {
    color: #fafafa;
    opacity: .7;
}

.navbar-nav .dropdown-menu {
    background-color: #333;
    /* Override for single.html */
}

.navbar-nav .dropdown-menu li a {
    color: #fff;
    /* Override for single.html */
}

.navbar-nav li:hover a,
.navbar-nav li:hover>a.dropdown-toggle {
    background-color: #333;
    /* Override for single.html */
    color: #fff;
    /* Override for single.html */
    opacity: 1;
    /* Override for single.html */
}

.navbar-nav li:focus-within>a {
    background-color: #333;
    /* Override for single.html */
    color: #fff;
    /* Override for single.html */
    opacity: 1;
    /* Override for single.html */
}

.navbar-nav .dropdown-menu li a:hover {
    color: #FCBB23;
    /* Override for single.html */
}

.navbar-nav li a.dropdown-more {
    background: #FCBB23;
    /* Override for single.html */
    color: #333;
    /* Override for single.html */
}

.side-widget h2::after {
    border-color: #e5166b;
    /* Override for single.html */
}


/* Movie Details (Single Page) */
.player-area {
    padding: 1rem 0;
}

.player-wrapper {
    display: flex;
    width: 100%;
}

.player-left {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.player-right {
    position: relative;
    color: white;
    display: flex;
    justify-content: center;
    padding-bottom: 1rem;
    width: 25%;
    flex-direction: column;
    background: #222;
    border-bottom-right-radius: 10px;
    -webkit-border-bottom-right-radius: 10px;
    -moz-border-bottom-right-radius: 10px;
    border-top-right-radius: 10px;
    -webkit-border-top-right-radius: 10px;
    -moz-border-top-right-radius: 10px;
}

.main-player {
    position: relative;
    /* 1. Wajib ada position relative */
    padding-bottom: 56.25%;
    /* 2. Ini kuncinya: 9 / 16 = 0.5625 atau 56.25% untuk rasio 16:9 */
    height: 0;
    /* 3. Tingginya kita buat nol */
    overflow: hidden;
    /* 4. Agar tidak ada yang keluar dari wadah */

    /* Kode di bawah ini mungkin sudah ada, biarkan saja */
    display: block;
    /* Ganti dari flex ke block atau biarkan saja */
    background: #000;
}

.main-player iframe {
    position: absolute;
    /* 1. Posisikan secara absolut di dalam .main-player */
    top: 0;
    left: 0;
    width: 100%;
    /* 2. Isi lebar penuh */
    height: 100%;
    /* 3. Isi tinggi penuh */
    border: 0;
    z-index: 6;
    /* aspect-ratio: 16 / 9; <-- Properti ini dihapus */
}

.iframe-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #000;
    z-index: 2;
    padding: 1rem;
    color: #fff;
    font-family: sans-serif;
    font-size: 14px;
    text-align: center;
    /* Semua properti flex dan inset dihapus */
}

/* 2. Tambahkan ini untuk memposisikan teks di tengah */
.iframe-loader .loading-text {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    /* Ambil lebar penuh agar text-align berfungsi */

    /* Trik transform untuk rata tengah sempurna (bekerja di IE9+) */
    -ms-transform: translate(-50%, -50%);
    /* <-- Khusus untuk Internet Explorer 9 */
    -webkit-transform: translate(-50%, -50%);
    /* <-- Khusus untuk Chrome & Safari jadul */
    transform: translate(-50%, -50%);
}

.loading-bar {
    width: 100%;
    height: 4px;
    background-color: #222;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
}

.loading-bar::before {
    content: '';
    position: absolute;
    left: -40%;
    width: 40%;
    height: 100%;
    background: linear-gradient(to right, rgb(221, 255, 0), rgb(255, 0, 0));
    animation: loadingAnim 1s linear infinite;
}

@keyframes loadingAnim {
    0% {
        left: -40%;
    }

    100% {
        left: 100%;
    }
}

.player-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 1rem;
    background: #000;
    color: #999;
    transition: opacity 0.5s ease;
}

.player-action ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.player-action ul li {
    margin-right: 1rem;
}

.player-action ul li:last-child {
    margin: 0;
}

.player-action li a {
    color: white;
    text-decoration: none;
    opacity: .8;
    font-weight: 500;
}

.player-action li a.active {
    color: #FCBB23;
    opacity: 1;
}

.player-action li a:hover {
    opacity: 1;
    color: #FCBB23;
}

.info-nav-eps,
.player-options {
    padding: 10px 1rem;
    background: #222;
    border-bottom-left-radius: 10px;
    -webkit-border-bottom-left-radius: 10px;
    -moz-border-bottom-left-radius: 10px;
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    color: #fff;
    font-weight: 600;
}

.player-options ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    padding-left: 1rem;
}

.player-options li {
    margin-right: 1rem;
}

.player-options li:last-child {
    margin: 0;
}

.player-options li a {
    color: #fff;
    opacity: .7;
}

.player-options li a.active {
    color: #FCBB23;
    opacity: 1;
}

.player-options li a:target {
    background: #FCBB23;
    color: #fff;
    font-weight: bold;
}

.player-options li a:hover {
    color: #FCBB23;
    opacity: 1;
}

.player-options li::after {
    content: "|";
    margin-left: 1rem;
    color: #aaa;
}

.player-options li:last-child::after {
    content: "";
}

/** DRAMA */
.season-list {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem 1rem 1rem;
    box-sizing: border-box;
}

.season-list label {
    opacity: 0.8;
    white-space: nowrap;
    font-weight: 500;
    font-size: 90%;
}

.season-list select {
    padding: .3rem .5rem;
    width: 70%;
    box-sizing: border-box;
    background: #222;
    border: 1px solid #ccc;
    color: #fff;
    border-radius: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    -ms-border-radius: 0;
    -o-border-radius: 0;
}

.episode-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
    list-style: none;
    padding: 0;
    margin: 0;
    opacity: 1;
    transition: opacity 0.3s ease;
    gap: .5rem;
    text-align: justify;
    font-size: 0;
    -ms-text-justify: distribute-all-lines;
    text-justify: distribute-all-lines;
}

.episode-list.fade-out {
    opacity: 0;
}

.episode-list.fade-in {
    opacity: 1;
}

.episode-list:after {
    content: '';
    display: inline-block;
    width: 100%;
    height: 0;
    vertical-align: top;
}

/* 3. Item di dalam list (<li>) */
.episode-list li {
    display: inline-block;
    vertical-align: top;
    font-size: 1rem;
}

/* 4. Link di dalam item (<a>) */
.episode-list li a {
    display: block;
    background-color: #333;
    color: white;
    text-align: center;
    text-decoration: none;
    padding: .5rem;
    min-width: 48px;
    /* Lebar minimum seperti di minmax() */
    box-sizing: border-box;
}

.episode-list li a.active {
    background: #999;
    color: rgb(17, 19, 25);
}

.episode-list li a:hover {
    background-color: #FCBB23;
    color: #333;
}

.related-video-heading {
    /* Renamed from .movie-title */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-transform: uppercase;
    font-weight: bold;
    color: #fff;
    padding: 1rem;
    padding-bottom: .5rem;
    opacity: .8;
}

.related-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    height: 100%;
    scrollbar-width: thin;
    scrollbar-color: #666 transparent;
    position: relative;
}

.related-content h3 {
    color: #fff;
    opacity: .7;
}

.related-content::-webkit-scrollbar {
    width: 8px;
}

.related-content::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
}

.related-content::-webkit-scrollbar-thumb {
    background-color: #666;
    border-radius: 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
}

.video-list-wrapper {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    height: 100%;
    padding: 1rem;
    padding-top: 0;
}

.video-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.video-list li {
    margin-bottom: 1rem;
}

.video-list li a {
    display: flex;
    align-items: center;
    overflow: hidden;
    opacity: .8;
    color: #fff;
}

.video-list li a:hover {
    opacity: 1;
}

.video-list li a:hover img {
    filter: grayscale(0%);
}

.video-list img {
    width: 100px;
    height: 60px;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center;
    object-position: center;
    flex-shrink: 0;
    background-color: #ddd;
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
}

.video-list img:hover {
    -webkit-transition: filter 0.3s ease;
    -moz-transition: filter 0.3s ease;
    -o-transition: filter 0.3s ease;
    transition: filter 0.3s ease;
    -webkit-filter: grayscale(0%);
    filter: none;
}

/* csso:ignore start */
.video-list img {
    -webkit-filter: grayscale(100%);
}
.video-list img:hover {
    -webkit-filter: grayscale(0%);
}
/* csso:ignore end */

.video-info {
    display: flex;
    flex-direction: column;
    padding-left: 10px;
    gap: 4px;
    flex: 1;
}

.video-title {
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 90%;
}

.video-year {
    font-size: 12px;
    color: #777;
}

.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.content-left {
    flex: 0 0 75%;
    max-width: 75%;
    padding: 0 0.5rem;
    box-sizing: border-box;
}

.content-right {
    flex: 0 0 25%;
    padding: 0 0.5rem;
    box-sizing: border-box;
    max-width: 25%;
}

.movie-info {
    padding: 1rem;
    background: #fff;
    margin-bottom: 1rem;
}

.info-tag {
    font-weight: 500;
    font-size: 14px;
}

.info-tag strong {
    color: #e5166b;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: .8rem;
}

.tag-list .tag {
    margin-right: 8px;
    margin-bottom: 3px;
}

.tag-list .tag a {
    display: inline-block;
    background-color: #eee;
    padding: 2px 7px;
    font-size: 12px;
}

.tag-list .tag a:hover {
    background-color: #e5166b;
    color: #fff;
    border-color: #e5166b;
}

.broken-line {
    width: 2px;
    height: 10px;
    border: none;
    background: #ccc;
    margin: 0px 8px;
    display: inline-block;
}

.movie-action {
    margin-bottom: .5rem;
}

.movie-action a {
    margin-right: .3rem;
}

.mob-related-series,
.mob-related-video {
    padding: .5rem 1rem;
    background: #fff;
    margin-bottom: 1rem;
    display: none;
}


.mob-related-series {
    display: block;
}

.mob-related-video .slider-wrapper .scroll-btn,
.mob-related-series .slider-wrapper .scroll-btn {
    font-size: 1.5rem;
}

.mob-related-video .slider-wrapper .scroll-right,
.mob-related-series .slider-wrapper .scroll-right {
    right: -.8rem;
}

.mob-related-video .slider-wrapper .scroll-left,
.mob-related-series .slider-wrapper .scroll-left {
    left: -.8rem;
}

.meta-info span {
    opacity: .5;
}

.meta-info p {
    margin-bottom: 5px;
}
.btn-toggle-expand {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-weight: 500;
    color: #333;
}

.popular-movie-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.popular-movie-list li {
    margin-bottom: 10px;
}

.pop-movie-item a {
    display: flex;
    align-items: flex-start;
    color: #333;
}

.pop-movie-item a:hover {
    color: #e5166b;
}

.pop-movie-item img {
    width: 70px;
    height: 100px;
    -o-object-fit: cover;
    object-fit: cover;
    flex-shrink: 0;
    margin-right: 12px;
}

.pop-movie-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.pop-movie-title {
    margin: 0;
    font-size: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.pop-movie-year {
    margin-top: 4px;
    font-size: 13px;
}

.player-options select {
    flex: 1;
    /* inilah kuncinya: input isi semua ruang tersisa */
    padding: 0;
    border: none;
    min-width: 0;
    width: 100%;
    /* <== wajib! karena select suka ngeyel */
    min-width: 0;
    display: none;
    background: transparent;
    color: #fff;
}

.mob-list-eps {
    padding: 1rem;
    background: #fff;
    margin-bottom: 1rem;
    display: none;
}

.mob-list-eps .season-list {
    box-shadow: none;
    color: #333;
    margin-bottom: 1rem;
    padding: 0;
}

.mob-list-eps .episode-list a:hover,
.mob-list-eps .episode-list a.active {
    background: #FCBB23;
    color: #fff;
}

.mob-list-eps .season-list select {
    color: #333;
    width: auto;
    padding: 8px 10px;
    border: 1px solid #ddd;
    font-weight: 600;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
}

.mob-list-eps.second .season-list select {
    background: #fff;
}

.info-nav-eps,
.mob-nav-eps {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

.mob-nav-eps {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    padding: .5rem 5px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
    z-index: 3;
    line-height: 2;
    align-items: center;
    text-transform: uppercase;
    display: none;
}

.info-nav-eps a {
    color: #fff;
}

.info-nav-eps a:hover {
    color: #FCBB23;
}

.info-nav-eps .col,
.mob-nav-eps .col {
    flex: 0 0 auto;
}

.mob-nav-eps .center {
    flex: 0 1 auto;
    /* ini bikin dia muat sesuai teks */
    text-align: center;
    white-space: nowrap;
    /* supaya ga pecah */
    margin: 0 auto;
}

.info-nav-eps .right,
.mob-nav-eps .right {
    text-align: right;
}

#adContainer {
    z-index: 10;
    background: #000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    position: absolute;
}

#adsLink {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#videoAd {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

#customPlayButton {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

#customPlayButton svg {
    width: 60px;
    height: 60px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

#customPlayButton:hover svg {
    opacity: 1;
}

#skipAds {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    display: none;
    z-index: 3;
}

.main-player.cinema-mode {
    height: auto;
    padding: 0;
}

.cinema-mode {
    z-index: 100;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.cinema-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 11;
    padding: 10px 20px !important;
}