/* ===== STYLE UNTUK HALAMAN EPISODE/LENGKAP ANIME ===== */
/* Fix untuk tampilan yang lebih rapi */

/* ===== HIDE UNWANTED ELEMENTS ===== */
.gantol, .tutupx, .tambahan, .iklanpost, .subheading, .alert-info, .sharing, #otakudesu-comments, .play-overlay {
    display: none !important;
}

/* ===== INFO SECTION - RAPIKAN ===== */
.animeinfo {
    background: #141a24;
    border: 1px solid #232b38;
    border-radius: 20px;
    overflow: hidden;
    margin: 1rem 0 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-wrap: wrap;
}

.imganime {
    width: 100%;
}

.imganime img {
    height: auto !important;
}

.animeinfo .kanan {
    width: 30%;
    padding: 1.5rem;
    flex-shrink: 0;
}

.imganime .separator img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.animeinfo .kiri {
    flex: 1;
    width: 70%;
    padding: 1.5rem 1.5rem 1.5rem 0;
}

/* ===== JUDUL UTAMA ===== */
.jdlrx {
    margin-bottom: 0.5rem;
}

.jdlrx h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    margin-top: 30px;
}

/* ===== SUBHEADING ===== */
.subheading {
    margin: 1rem 0;
}

.subheading h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #9ca3af;
    position: relative;
    display: inline-block;
}

.subheading h2 .fa {
    color: #3b82f6;
    margin-right: 8px;
}

/* ===== INFO GRID ===== */
.infos {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: grid;
    width: 80%!important;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    overflow-x: scroll!important;
}

/* Sembunyikan label b dan br asli */
.infos b, .infos br {
    display: none !important;
}

/* Info item styling */
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-right: 45px;
}

.info-label {
    color: #3b82f6;
    font-weight: 600;
    font-size: 0.7rem;
    min-width: 70px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    color: #e5e7eb;
    font-size: 0.8rem;
    flex: 1;
    word-break: break-word;
}

/* Japanese title khusus */
.japanese-item {
    grid-column: span 2;
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid #3b82f6;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.3rem;
}

.japanese-item .info-label {
    color: #9ca3af;
    font-size: 0.65rem;
    min-width: 60px;
}

.japanese-item .info-value {
    font-size: 0.75rem;
    font-style: italic;
    color: #9ca3af;
}

/* ===== GENRE TAGS - HORIZONTAL SCROLL ===== */
.genre-section {
    margin: 1rem 0;
}

.genre-label {
    color: #3b82f6;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.genre-tags {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.6rem;
    padding: 0.3rem 0;
    scrollbar-width: thin;
}

.genre-tags::-webkit-scrollbar {
    height: 3px;
}

.genre-tags::-webkit-scrollbar-track {
    background: #1f2937;
    border-radius: 3px;
}

.genre-tags::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 3px;
}

.genre-tag {
    display: inline-flex;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    padding: 0.25rem 0.9rem;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.genre-tag:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
}

/* ===== RATING BADGE ===== */
.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 0.3rem 1rem;
    border-radius: 30px;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fbbf24;
}

.rating-badge .star {
    font-size: 1rem;
}

/* ===== TOTAL EPISODE SECTION ===== */
.totalepisode {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), transparent);
    border: 1px solid #232b38;
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
}

.totalepisode h5 {
    border-bottom: 0;
    font-weight: bold;
    font-size: 12px;
    text-align: center;
    padding: 3px 0;
    margin-bottom: 1px;
    color: #FFF;
    width: 100%;
    background: transparent!important;
    text-transform: uppercase;
}

.totalepisode .total {
    font-size: 1.8rem;
    font-weight: 800;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.15);
    padding: 0.2rem 1rem;
    border-radius: 40px;
    display: inline-block;
    width: 100%;
}

.totalepisode h6 {
    margin: 0;
    background: transparent!important;
}

.totalepisode h6 a {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-block;
}

.totalepisode h6 a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* ===== DOWNLOAD SECTION ===== */
.download {
    background: #141a24;
    border: 1px solid #232b38;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.download strong {
    background: transparent!important;
}

.download h4 {
    background: linear-gradient(90deg, #1e2636, #141a24)!important;
    padding: 10px!important;
    margin: 0;
    color: #ffffff;
    font-size: 16px!important;
    font-weight: 700;
    border-left: 0px!important;
}


.download ul {
    list-style: none;
    margin: 0;
    padding: 0;
    background: transparent!important;
    border: 0px!important;
}

.download ul li {
    padding: 0.7rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.download ul li:hover {
    background: rgba(59, 130, 246, 0.05);
    padding-left: 1.5rem;
}

.download ul li strong {
    color: #3b82f6;
    font-size: 0.75rem;
    min-width: 55px;
    font-weight: 700;
}

.download ul li a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.7rem;
    padding: 0.2rem 0.7rem;
    background: #1f2937;
    border-radius: 20px;
    transition: all 0.2s ease;
    display: inline-block;
}

.download ul li a:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-1px);
}

.download ul li i {
    color: #6b7280;
    font-size: 0.65rem;
    margin-left: auto;
    font-style: normal;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

/* ===== ALERT INFO ===== */
.alert.alert-info {
    background: linear-gradient(135deg, #1a1f2b, #141a24);
    border: 1px solid #3b82f6;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin: 1.5rem 0;
    color: #9ca3af;
}

.alert.alert-info b {
    color: #3b82f6;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.alert.alert-info li {
    margin: 0.3rem 0;
    list-style: none;
    padding-left: 1.2rem;
    position: relative;
    font-size: 0.8rem;
}

.alert.alert-info li::before {
    content: '•';
    color: #3b82f6;
    position: absolute;
    left: 0;
}

.alert.alert-info a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.alert.alert-info a:hover {
    text-decoration: underline;
}

/* ===== KEYWORD SECTION ===== */
.keyword {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    margin: 1rem 0;
}

.keying {
    color: #6b7280;
    font-size: 0.7rem;
    text-align: center;
    word-break: break-all;
    line-height: 1.5;
}

/* ===== SHARING BUTTONS ===== */
.sharing {
    margin: 1.5rem 0;
}

.sharing ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sharing ul li {
    flex: 1;
    min-width: 100px;
}

.sharing ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #141a24;
    border: 1px solid #232b38;
    border-radius: 40px;
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.75rem;
}

.sharing ul li a:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
}

.sharecount {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.15rem 0.4rem;
    border-radius: 20px;
    font-size: 0.6rem;
}

/* ===== RECOMMENDATION SECTION ===== */
#recommend-anime-series {
    background: #141a24;
    border: 1px solid #232b38;
    border-radius: 16px;
    padding: 1.2rem;
    margin: 1.5rem 0;
}

.judul-recommend-anime-series h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.judul-recommend-anime-series h3::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #3b82f6;
    border-radius: 2px;
}

.isi-recommend-anime-series {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.isi-konten {
    background: #1a1f2b;
    border: 1px solid #232b38;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.isi-konten:hover {
    transform: translateY(-4px);
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.gambar-konten {
    position: relative;
    overflow: hidden;
}

.gambar-konten img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.isi-konten:hover .gambar-konten img {
    transform: scale(1.05);
}

.isi-anime {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    padding: 1rem 0.5rem 0.5rem;
}

.judul-anime a {
    color: white;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
}

.judul-anime a:hover {
    color: #3b82f6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .animeinfo .kanan {
        width: 200px;
        padding: 1rem;
    }
    
    .animeinfo .kiri {
        padding: 1rem 1rem 1rem 0;
    }
    
    .infos {
        grid-template-columns: 1fr;
    }
    
    .isi-recommend-anime-series {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .infos {
        width: 100%!important;
    }
    .data {
        height: auto!important;
        overflow: hidden;
    }
    .totalepisode {
        position: relative!important;
    }
    .animeinfo .kanan {
        float: none;
        width: 100%;
        text-align: center;
        padding: 1rem;
    }
    
    .imganime .separator img {
        max-width: 180px;
        margin: 0 auto;
    }
    
    .animeinfo .kiri {
        margin-left: 0;
        padding: 0 1rem 1rem;
    }
    
    .jdlrx h1 {
        font-size: 1.3rem;
        text-align: center;
    }
    
    .subheading h2 {
        font-size: 1rem;
        text-align: center;
        display: block;
    }
    .download strong {
        margin: 0px!important;
    }
    
    .totalepisode {
        flex-direction: column;
        text-align: center;
    }
    .download ul {
        overflow: overlay;
    }
    .download ul li a {
        line-height: 20px;
        padding: 0px 4px!important;
    }
    .download ul li {
        flex-direction: row!important;
        align-items: flex-start;
        flex-wrap: nowrap!important;
        padding: 0px!important;
    }
    
    .download ul li i {
        margin-left: 0;
    }
    
    .sharing ul li {
        min-width: 100%;
    }
    
    .isi-recommend-anime-series {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }
}

@media (max-width: 576px) {
    .jdlrx h1 {
        font-size: 1.1rem;
    }
    
    .info-label {
        font-size: 0.65rem;
        min-width: 65px;
    }
    
    .info-value {
        font-size: 0.7rem;
    }
    
    .totalepisode .total {
        font-size: 1.3rem;
    }
    
    .totalepisode h6 a {
        font-size: 0.7rem;
        padding: 0.35rem 0.9rem;
    }
    
    .download h4 {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }
    
    .download ul li strong {
        font-size: 0.65rem;
        min-width: 50px;
        width: auto!important;
    }
    
    .download ul li a {
        font-size: 0.6rem;
    }
    
    .genre-tag {
        font-size: 0.6rem;
        padding: 0.2rem 0.7rem;
    }
    
    .isi-recommend-anime-series {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 380px) {
    .isi-recommend-anime-series {
        grid-template-columns: 1fr;
        margin: 0 auto;
    }
}








/* ===== REKOMENDASI ANIME LAINNYA - SAMA SEPERTI HOME ===== */
#recommend-anime-series {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

.judul-recommend-anime-series {
    margin-bottom: 2rem;
}

.judul-recommend-anime-series h3 {
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    color: white !important;
    margin: 0 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    background: linear-gradient(90deg, #1a1f2b, #0f1219);
    border-left: 4px solid #3b82f6;
    padding: 0.8rem 2rem !important;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    width: 100%;
}

.judul-recommend-anime-series h3::after {
    display: none;
}

.isi-recommend-anime-series {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Card style sama seperti .list-movie di home */
.isi-konten {
    background: #141a24;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    height: 100%;
    border: 1px solid #232b38;
    position: relative;
}

/* Hover card - naik dan border biru */
.isi-konten:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px #3b82f6;
}

.gambar-konten {
    position: relative;
    overflow: hidden;
}

.gambar-konten img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Hover image - zoom */
.isi-konten:hover .gambar-konten img {
    transform: scale(1.1);
}

/* Container untuk judul anime */
.isi-anime {
    position: relative;
    padding: 0;
}

/* Judul anime - style sama seperti .thumb h2 di home */
.isi-anime .judul-anime {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent) !important;
    color: white !important;
    padding: 2rem 0.8rem 0.8rem !important;
    margin: 0 !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 2;
    transition: all 0.3s ease;
    pointer-events: none;
}

.isi-anime .judul-anime a {
    color: white !important;
    text-decoration: none;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    pointer-events: auto;
    display: block;
}

/* Hover title - ganti background gradient */
.isi-konten:hover .isi-anime .judul-anime {
    background: linear-gradient(to top, #1e3a8a, transparent) !important;
}

/* Overlay play button - sama seperti di home */
.isi-konten .gambar-konten::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.8);
    color: white;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.isi-konten:hover .gambar-konten::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ===== RESPONSIVE UNTUK REKOMENDASI ===== */
@media (max-width: 992px) {
    .judul-recommend-anime-series h3 {
        font-size: 1.5rem !important;
        padding: 0.7rem 1.5rem !important;
    }
    
    .isi-recommend-anime-series {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .judul-recommend-anime-series h3 {
        font-size: 1.3rem !important;
        padding: 0.6rem 1.2rem !important;
        width: 100%;
        text-align: center;
        border-left: none;
        border-radius: 8px;
    }
    
    .isi-recommend-anime-series {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }
    
    .isi-anime .judul-anime,
    .isi-anime .judul-anime a {
        font-size: 0.8rem !important;
        padding: 1.5rem 0.5rem 0.5rem !important;
    }
    
    .isi-konten .gambar-konten::before {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .isi-recommend-anime-series {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .judul-recommend-anime-series h3 {
        font-size: 1.2rem !important;
    }
    
    .isi-anime .judul-anime,
    .isi-anime .judul-anime a {
        font-size: 0.75rem !important;
        padding: 1.2rem 0.4rem 0.4rem !important;
    }
    
    .isi-konten:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 380px) {
    .isi-recommend-anime-series {
        grid-template-columns: 1fr;
    }
}
/* ===== RATING DENGAN ICON STAR ===== */
.meta-label-item:has(.meta-label-value.rating) {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
}

.meta-label-item:has(.meta-label-value.rating) .meta-label-key {
    color: #fbbf24;
}

.meta-label-value.rating {
    color: #fbbf24 !important;
    font-weight: 700 !important;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

/* Tambah icon star sebelum nilai rating */
.meta-label-value.rating::before {
    content: '★';
    font-size: 1rem;
    color: #fbbf24;
    margin-right: 0.2rem;
    filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.5));
}

/* Untuk mobile */
@media (max-width: 768px) {
    .meta-label-value.rating::before {
        font-size: 0.9rem;
    }
    .isi-recommend-anime-series {
    display: table;!important;
  }
  .isi-konten {
        width: 45% !important;
        float: left;
        margin: 8px;
    }
}

@media (max-width: 576px) {
    .meta-label-value.rating::before {
        font-size: 0.8rem;
    }
}