.card-anime {
    background:#141414;
    border:1px solid #222;
    border-radius:10px;
    overflow:hidden;
    transition:all .25s ease-in-out;
}
.card-anime:hover {
    transform:translateY(-5px);
    box-shadow:0 6px 20px rgba(0,0,0,0.4);
    border-color:#0d6efd;
}
.card-anime img {
    width:100%;
    height:230px;
    object-fit:cover;
}
.card-body {
    padding:10px;
}
.card-title {
    font-size:14px;
    font-weight:600;
    line-height:1.2em;
    height:34px;
    overflow:hidden;
}
.slug {
    font-size:11px;
    opacity:0.6;
}
.badge-ep {
    position:absolute;
    top:8px;
    right:8px;
    background:#0d6efd;
    color:#fff;
    padding:3px 7px;
    font-size:11px;
    border-radius:6px;
}
.box-link {
    text-decoration:none;
    color:inherit;
}

.animelist{
    background:#111;
    padding:10px 15px;
    color:#fff;
    font-size:14px;
}

.animelist-title{
    font-size:18px;
    font-weight:bold;
    margin-bottom:8px;
}

.animelist-nav{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    margin-bottom:10px;
}

.animelist-nav a{
    padding:2px 8px;
    border:1px solid #0099cc;
    border-radius:3px;
    text-decoration:none;
    color:#fff;
    font-size:13px;
}

.animelist-nav a:hover{
    background:#0099cc;
    color:#000;
}

.letter-title{
    font-size:20px;
    padding:6px 0;
    border-bottom:2px solid #0080ff;
    margin-top:18px;
    margin-bottom:8px;
}

.letter-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(350px,1fr));
    gap:3px;
}

.item{
    padding-left:12px;
    position:relative;
}

.item::before{
    content:"•";
    color:#00aaff;
    position:absolute;
    left:0;
    top:1px;
    font-size:15px;
}


.item a{
    text-decoration:none;
    color:white;
}

.item a:hover{
    color:#00d9ff;
}

.empty-letter{
    opacity:0.6;
    padding-left:10px;
}

.jadwal-title{
    font-size:22px;
    font-weight:bold;
    text-align:center;
    margin-top:10px;
}

.jadwal-note{
    font-size:13px;
    text-align:center;
    margin-bottom:15px;
    opacity:.7;
}

.jadwal-container{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:12px;
    padding:10px;
}

.jadwal-col{
    background:#111;
    border:1px solid #ddd;
}

.jadwal-hari{
    background:#2764ff;
    padding:6px;
    font-weight:bold;
    text-align:center;
    color:white;
    border-bottom:1px solid #eee;
}

/* LIST BOXES */
.jadwal-item{
    display:block;
    padding:6px 8px;
    text-decoration:none;
    color:white;
    background:#efefef;
    color:#000;
    font-weight:500;
    border-bottom:1px solid #ccc;
    text-align:center;
}

.jadwal-item:nth-child(odd){
    background:#d9d9d9;
}
.jadwal-item:nth-child(even){
    background:#f4f4f4;
}

.jadwal-item:hover{
    background:#00c9ff;
    color:#fff;
}

.pagination{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:6px;
    margin:18px 0 25px;
}

.page-btn{
    display:inline-block;
    padding:6px 10px;
    background:#0b6cff;
    color:#fff;
    border-radius:4px;
    font-size:14px;
    text-decoration:none;
}

.page-btn:hover{
    background:#009fff;
}

.page-info{
    color:#fff;
    font-size:14px;
}

/* Top bar */
.topbar{
    background:#000;
    color:#fff;
}
.toplink{
    color:#ccc;
    text-decoration:none;
}
.toplink:hover{
    color:#fff;
}
.btn-linkhead{
    padding:2px 6px;
    background:#555;
    color:white;
    font-size:12px;
    border-radius:3px;
    text-decoration:none;
}
.btn-linkhead:hover{
    background:#777;
}

/* Mid header logo */
.midheader{
    background:#242424;
}
.brand-logo{
    color:white;
    text-align:center;
    text-decoration:none;
}
.logo-main{
    font-size:32px;
    font-weight:bold;
    color:#4ab3ff;
}
.logo-subtitle{
    display:block;
    margin-top:-5px;
    font-size:12px;
    color:#ccc;
}

.menubar{
    background:#1c1c1c;
    border-bottom:3px solid #00a8ff;
    padding:0;
}

/* =========================
   MENU WRAPPER
========================= */
.menu-nav{
    list-style:none;
    padding:0;
    margin:0;
    display:grid;
    grid-template-columns:1fr 1fr; /* 2 kolom */
    width:100%;
    background:#1c1c1c;
}

/* =========================
   MENU ITEM
========================= */
.menu-item{
    display:flex;
    justify-content:center;
    align-items:center;
    height:55px;
    padding:0;
    margin:0;
    font-weight:bold;
    color:white;
    text-decoration:none;
    border-bottom:1px solid #2a2a2a;
    text-align:center;
    font-size:14px;
    background:#1c1c1c;
}

.menu-item:hover{
    background:#009dff;
}

.menu-item.active{
    background:#00a8ff;
    color:white;
}

/* =========================
   SEARCH BOX UNDER MENU
========================= */
.search-wrap{
    width:100%;
    padding:10px;
}
.searchbox{
    width:100%;
    padding:10px;
    background:#101010;
    border:1px solid #333;
    border-radius:4px;
    color:white;
}
.searchbox::placeholder{
    color:#aaa;
}

.genre-detail-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:20px;
    margin-top:20px;
}

.genre-card{
    background:#f9f9f9;
    border:1px solid #cbd4e1;
    border-radius:3px;
    padding:10px;
    color:#000;
}

.genre-title{
    text-align:center;
    font-size:18px;
    font-weight:bold;
    color:#007bff;
    margin-bottom:10px;
}

.genre-meta{
    display:flex;
    justify-content:space-between;
    font-size:13px;
    color:#444;
    margin-bottom:5px;
}

.genre-tags{
    text-align:center;
    font-size:13px;
    color:#337ab7;
    margin-bottom:12px;
}

.genre-content{
    display:flex;
    gap:10px;
}

.genre-content img{
    width:100px;
    border:1px solid #ccc;
    border-radius:2px;
}

.genre-text{
    font-size:13px;
    color:#222;
}

.genre-text p{
    height:120px;
    overflow:auto;
    margin:0;
}

.genre-bottom{
    display:flex;
    justify-content:space-between;
    margin-top:8px;
    font-size:13px;
}

.download-btn{
    background:#007bff;
    padding:3px 8px;
    border-radius:3px;
    text-decoration:none;
    color:#fff;
    font-size:13px;
}
.download-btn:hover{
    background:#00a3ff;
}

.synopsis-box {
    max-height: 140px;       /* batas tinggi */
    overflow-y: auto;        /* scroll vertikal */
    padding-right: 6px;      /* biar scrollbar tidak nabrak teks */
    font-size: 13px;
    line-height: 1.4;
    color: #ccc;
}

/* Scrollbar style biar ga jelek */
.synopsis-box::-webkit-scrollbar {
    width: 6px;
}

.synopsis-box::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

.synopsis-box::-webkit-scrollbar-track {
    background: #1b1b1b;
}


/* MOBILE */
@media(max-width:768px){
    .genre-detail-grid{
        grid-template-columns:1fr;
    }
    .genre-content{
        flex-direction:column;
    }
    .genre-content img{
        width:100%;
    }
}


/* =========================
   DESKTOP MODE OVERRIDE
========================= */
@media(min-width:992px){
    .menu-nav{
        display:flex;
        grid-template-columns:none;
    }
    .menu-item{
        height:auto;
        padding:10px 18px;
        border-bottom:none;
        width:auto;
    }
    .search-wrap{
        width:auto;
        padding-left:20px;
    }
    .searchbox{
        width:180px;
        background:#eef4ff;
        border:1px solid #ccc;
        color:black;
    }
}


.genre-grid{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    background:#000;
    border:1px solid #333;
    border-bottom:none;
}

.genre-box{
    padding:12px 10px;
    text-align:center;
    background:#fff;
    color:#000;
    font-weight:bold;
    border-bottom:1px solid #333;
    border-right:1px solid #333;
    text-decoration:none;
}

.genre-box:nth-child(4n){
    border-right:none; /* kolom terakhir */
}

.genre-box:hover{
    background:#00aaff;
    color:#fff;
}

/* Tablet: 3 kolom */
@media(max-width:992px){
    .genre-grid{
        grid-template-columns:repeat(3, 1fr);
    }
}

/* Mobile: 2 kolom */
@media(max-width:576px){
    .genre-grid{
        grid-template-columns:repeat(2, 1fr);
    }
}



@media(max-width:576px){
    .jadwal-container{
        grid-template-columns:repeat(2,1fr);
    }
}



@media (max-width: 768px){
    .poster-center {
        display: flex;
        justify-content: center;
        margin-bottom: 12px;
    }
}
@media(max-width:576px){
    .col-5-grid{
        width:25% !important;
        flex:0 0 25%;
        max-width:25%;
    }
}

/* kotak image (square) */
.card-anime{
    width:100%;
    aspect-ratio:1/1;
    background:#000;
    border-radius:6px;
    overflow:hidden;
    position:relative;
}

/* gambar tidak crop */
.card-anime img{
    width:100%;
    height:139%;
    object-fit:contain;
    background:#111;
}

/* badge bawah gambar */
.badge-ep{
    position:relative !important;
    top:auto !important;
    right:auto !important;
    margin-top:4px;
    text-align:center;
    font-size:11px;
    color:#ffde4d;
    font-weight:600;
    display:block;
}


/* judul bawah */
.anime-title{
    font-size:12px;
    margin-top:2px;
    color:white;
    white-space:nowrap;
    text-overflow:ellipsis;
    overflow:hidden;
}



