/* Jadwal Page - Vertical List (Light & Fast) */

:root {
    --primary-color: #00aaff;
    --secondary-color: #e91e63;
    --bg-dark: #0f0f13;
    --surface: #1e1e24;
    --text-main: #ffffff;
    --text-muted: #b0b0b0;
}

#schedule-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    padding-bottom: 5rem;
}

/* --- Category Tabs (Styled like Search) --- */
.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding: 0 1rem 10px 1rem; /* Add padding for scroll/shadow space */
    scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }

.tab-btn {
    background: #1f2833;
    color: #c5c6c7;
    border: 1px solid #333;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-2px);
}

/* Active State - Sub Indo (Blue) */
.tab-btn[data-category="Sub Indo"].active {
    background: #2196F3;
    border-color: #2196F3;
    color: #fff;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

/* Active State - Donghua (Pink) */
.tab-btn[data-category="Donghua"].active {
    background: #E91E63;
    border-color: #E91E63;
    color: #fff;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
}

.skeleton-animate {
    background: linear-gradient(90deg, #1e1e24 25%, #2a2a32 50%, #1e1e24 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.loading-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skeleton-tabs { /* Diganti jadi Header skeleton */
    width: 150px;
    height: 30px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.skeleton-card {
    border: none !important;
    background: transparent !important;
}

.skeleton-card .poster-container {
    border-radius: 12px;
}

.skeleton-text {
    height: 12px;
    width: 80%;
    margin-top: 10px;
    border-radius: 4px;
}

/* --- Day Sections --- */
.day-section-vertical {
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/* Stagger Animation per hari biar smooth */
.day-section-vertical:nth-child(1) { animation-delay: 0.1s; }
.day-section-vertical:nth-child(2) { animation-delay: 0.2s; }
.day-section-vertical:nth-child(3) { animation-delay: 0.3s; }
.day-section-vertical:nth-child(n+4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header Hari */
.day-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.day-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.day-count {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Penanda Hari Ini */
.day-section-vertical.today .day-title {
    color: var(--primary-color);
}

.today-badge {
    background: rgba(0, 170, 255, 0.15);
    color: var(--primary-color);
    border: 1px solid rgba(0, 170, 255, 0.3);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Grid Anime (Sama kayak sebelumnya) */
.anime-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Fixed 3 kolom */
    gap: 1rem;
}

/* --- Anime Card Premium (Sama) --- */
.anime-card {
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform 0.2s ease; /* Transisi cepat & ringan */
}

.anime-card:hover {
    transform: scale(1.02);
    z-index: 2;
}

/* Gambar */
.poster-container {
    width: 100%;
    aspect-ratio: 2/3; 
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    background: #111;
}

.poster-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.4s ease;
}

.anime-card:hover .poster-container img {
    transform: scale(1.05);
}

/* Badge Tipe (Kiri Atas - Pill Style) */
.type-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 0.6rem;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: white;
    backdrop-filter: blur(4px); /* Blur dikit aja biar ringan */
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 5;
    text-transform: uppercase;
}
.type-badge.anime { 
    background: rgba(0, 170, 255, 0.85); 
}
.type-badge.donghua { 
    background: rgba(233, 30, 99, 0.85); 
}
.type-badge.no-sub { 
    background: rgba(96, 125, 139, 0.9); /* Grey Blue for Raw/No Sub */
}
.type-badge.sub-indo { 
    background: rgba(76, 175, 80, 0.9); /* Green for Sub Indo */
}

/* Info Overlay (Bawah Gambar - Gradient) */
.info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 8px 8px 8px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 10%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0) 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.info-tag {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.65rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,1);
}

/* Judul (Di Luar Gambar) */
.anime-card-content {
    padding: 8px 4px;
    text-align: center;
}

.anime-card-title {
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    transition: color 0.2s;
}

.anime-card:hover .anime-card-title {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 480px) {
    .anime-grid {
        gap: 0.8rem; /* Gap lebih kecil di HP */
    }
    
    .day-header {
        margin-bottom: 1rem;
    }
    
    .day-title {
        font-size: 1.2rem;
    }
}

@media (min-width: 768px) {
    .anime-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .anime-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}