/* Inherit base styles from style.css (navbar, body font/color) */
@import url('style.css');

body {
    background: #000;
    color: #e4e4e4;
    min-height: 100vh;
    padding-top: 80px; /* Space for fixed navbar */
}

.content {
    padding: 2rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Header Section --- */
header.anime-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.05); /* Subtle Glass Effect */
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

header.anime-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

header.anime-header h1 img {
    filter: invert(1);
    width: 36px;
    height: 36px;
    margin-right: 10px;
}

.subtitle {
    font-size: 1rem;
    color: #bbb;
    font-weight: 400;
}

/* --- Loading / Error States --- */
.loading, .error {
    text-align: center;
    padding: 60px;
    font-size: 1.2rem;
    color: #9ca3af;
}

.spinner {
    border: 4px solid #1f2937;
    border-top: 4px solid var(--accent-color, #ff6a00); /* Use Corridor accent */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Schedule List Styling --- */

.day-section {
    margin-bottom: 30px;
}

.day-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: #111;
    border-radius: 12px;
    margin-bottom: 15px;
    border-left: 4px solid #7c3aed; /* Purple accent */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.day-header.today {
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.15) 0%, rgba(10, 10, 10, 0.8) 100%);
    border-left-color: #ff6a00; /* Orange accent for today */
}

.day-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.day-date {
    font-size: 0.9rem;
    color: #9ca3af;
    font-weight: 500;
}

/* Vertical List of Cards */
.anime-day-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.anime-card {
    background: #151515;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: flex-start;
    padding: 15px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.anime-card:hover {
    transform: translateY(-3px);
    border-color: #ff6a00;
    box-shadow: 0 8px 25px rgba(255, 106, 0, 0.2);
    background: #181818;
}

.card-left {
    flex-shrink: 0;
    position: relative;
    width: 100px;
    height: 150px;
    margin-right: 15px;
}

.anime-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    background: #1f2937;
}

.anime-time {
    position: absolute;
    top: 5px;
    right: 5px;
    background: linear-gradient(135deg, #667eea, #764ba2); /* Play/Detail button gradient */
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

.anime-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 5px;
}

.anime-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
    line-height: 1.3;
    /* Truncate long titles */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.anime-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.anime-title a:hover {
    color: #ff6a00;
}

.anime-episode {
    color: #9ca3af;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.anime-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.meta-tag {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #1f2937;
    color: #9ca3af;
}

.meta-tag.score {
    background: #10b981;
    color: white;
}

/* Action Buttons (Refined) */
.anime-actions {
    margin-top: auto;
    display: flex;
    gap: 10px; /* spacing between buttons */
    flex-wrap: wrap;
}

.anime-actions .btn {
    /* Override size/padding to fit text, inheriting glass look from style.css .btn */
    height: 40px; 
    padding: 8px 15px; 
    border-radius: 8px; /* Rectangular corners */
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1;
    flex-shrink: 0;
    width: auto;
    color: white; /* Ensure text is white over dark glass */
    
    /* Re-assert core glass look properties to ensure they are high priority */
    border: 2px solid rgba(255, 255, 255, 0.4); 
    background: rgba(0, 0, 0, 0.3); 
    backdrop-filter: blur(4px); 
}

.anime-actions .btn-primary {
    /* Primary overrides border/background/backdrop-filter */
    background: linear-gradient(135deg, #ff6a00, #d35400); /* Corridor Orange (Watch) */
    color: white;
    border: none; 
    backdrop-filter: none;
    box-shadow: 0 4px 10px rgba(255, 106, 0, 0.3); 
}

.anime-actions .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(255, 106, 0, 0.4);
}

.anime-actions .btn-secondary {
    /* Inherit glass look */
}

.anime-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-1px);
    border-color: #fff;
}


@media (max-width: 768px) {
    .content {
        padding: 1rem;
    }
    header.anime-header h1 {
        font-size: 2rem;
    }
    header.anime-header h1 img {
        width: 30px;
        height: 30px;
    }
    .day-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 15px;
    }
    .day-name {
        font-size: 1.3rem;
    }
    .anime-card {
        /* Switch to a more compact horizontal stack on smaller screens */
        align-items: center;
        flex-direction: row; 
    }
    .card-left {
        width: 80px;
        height: 120px;
        aspect-ratio: auto; 
        margin-right: 10px;
        margin-bottom: 0;
    }
    .anime-cover {
        object-fit: cover;
    }
    .anime-content {
        padding-top: 0;
        gap: 4px;
    }
    .anime-actions {
        /* Allow actions to wrap if needed, but keep them compact */
        margin-top: 10px;
    }
    .anime-actions .btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .container {
        max-width: 100%;
    }
    .day-header {
         border-radius: 8px;
    }
    .card-left {
        width: 70px;
        height: 105px;
    }
}