
    @import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Montserrat:wght@400;700&family=Open+Sans:wght@400;700&family=Poppins:wght@400;600;700&family=Roboto:wght@400;700&display=swap');
    
    :root {
        --primary-bg: linear-gradient(135deg, #141E30, #243B55);
        --accent-color: #ff0055;
        --text-color: #ffffff;
        --card-bg: rgba(20, 20, 20, 0.8);
        --font-main: 'Open Sans', sans-serif;
    }
    
    body {
        margin: 0;
        padding: 0;
        font-family: var(--font-main);
        background: var(--primary-bg);
        background-attachment: fixed;
        color: var(--text-color);
        min-height: 100vh;
        overflow-x: hidden;
    }

    /* HEADER */
    header {
        padding: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: rgba(0,0,0,0.6);
        backdrop-filter: blur(15px);
        position: sticky;
        top: 0;
        z-index: 1000;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .logo { font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: 1px; }
    .logo span { color: var(--accent-color); }
    
    a { text-decoration: none; color: inherit; transition: 0.3s; }
    a:hover { color: var(--accent-color); }

    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
    }

    /* HERO SECTION */
    .hero-section {
        position: relative;
        height: 500px;
        width: 100%;
        display: flex;
        align-items: flex-end;
        background-size: cover;
        background-position: center top;
        margin-bottom: 40px;
    }
    
    .hero-overlay {
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.4) 100%);
    }

    .hero-content {
        position: relative;
        z-index: 2;
        padding: 40px;
        max-width: 800px;
    }

    .hero-badge {
        background: var(--accent-color);
        color: #000;
        padding: 5px 10px;
        font-weight: bold;
        font-size: 0.8rem;
        border-radius: 4px;
        text-transform: uppercase;
    }

    .hero-title {
        font-size: 3rem;
        margin: 10px 0;
        line-height: 1.1;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    }

    .hero-desc {
        font-size: 1rem;
        opacity: 0.9;
        margin-bottom: 20px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        max-width: 600px;
    }

    .hero-btn {
        background: #fff;
        color: #000;
        padding: 12px 30px;
        font-weight: bold;
        border-radius: 30px;
        display: inline-block;
        transition: transform 0.2s;
    }
    .hero-btn:hover { transform: scale(1.05); background: var(--accent-color); }

    /* SECTION TITLES */
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
        border-left: 5px solid var(--accent-color);
        padding-left: 15px;
        font-weight: 700;
    }

    /* GRID LAYOUT */
    .anime-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
        padding-bottom: 40px;
    }

    .anime-card {
        background: var(--card-bg);
        border-radius: 8px;
        overflow: hidden;
        transition: transform 0.3s ease;
        position: relative;
        border: 1px solid rgba(255,255,255,0.05);
    }

    .anime-card:hover {
        transform: translateY(-7px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    }

    .anime-poster {
        width: 100%;
        height: 260px;
        object-fit: cover;
    }

    .card-info { padding: 12px; }

    .card-title {
        font-size: 0.95rem;
        font-weight: 600;
        margin-bottom: 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: #fff;
    }

    .card-meta {
        font-size: 0.75rem;
        color: #ccc;
        display: flex;
        justify-content: space-between;
    }

    /* PAGINATION */
    .pagination {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 30px;
        padding: 20px;
    }

    .page-btn {
        background: rgba(255,255,255,0.1);
        padding: 10px 20px;
        border-radius: 5px;
        border: 1px solid rgba(255,255,255,0.1);
        color: #fff;
    }
    
    .page-btn.active, .page-btn:hover {
        background: var(--accent-color);
        color: #000;
        border-color: var(--accent-color);
    }

    /* PLAYER & DETAILS */
    .player-container {
        position: relative;
        width: 100%;
        padding-top: 56.25%; 
        background: #000;
        margin-bottom: 30px;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 0 30px rgba(0,0,0,0.5);
    }

    .player-overlay {
        position: absolute;
        top: 0; left: 0; width: 100%; height: 100%;
        background-size: cover; background-position: center;
        display: flex; justify-content: center; align-items: center;
        cursor: pointer;
    }
    .player-overlay::before {
        content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.4);
    }
    .play-button {
        width: 70px; height: 70px; background: var(--accent-color);
        border-radius: 50%; z-index: 2; display: flex;
        justify-content: center; align-items: center;
        animation: pulse 2s infinite;
    }
    .play-button svg { width: 25px; fill: #000; margin-left: 4px; }
    @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255, 0.4); } 70% { box-shadow: 0 0 0 20px rgba(255,255,255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255, 0); } }

    .anime-detail-header { margin-bottom: 30px; }
    .detail-flex { display: flex; gap: 30px; flex-wrap: wrap; }
    .detail-poster { width: 250px; border-radius: 10px; }
    .detail-info { flex: 1; min-width: 300px; }
    
    .episode-grid {
        display: grid; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 8px; max-height: 250px; overflow-y: auto;
        background: rgba(0,0,0,0.2); padding: 15px; border-radius: 8px;
    }
    .ep-btn {
        background: rgba(255,255,255,0.05); text-align: center; padding: 8px 0;
        border-radius: 4px; font-size: 0.85rem; border: 1px solid rgba(255,255,255,0.1);
        color: #fff;
    }
    .ep-btn:hover { background: var(--accent-color); color: #000; }

    footer {
        text-align: center; padding: 40px; margin-top: 50px;
        font-size: 0.9rem; border-top: 1px solid rgba(255,255,255,0.1);
    }

    @media (max-width: 768px) {
        .hero-title { font-size: 2rem; }
        .hero-section { height: 400px; }
        .detail-poster { width: 100%; max-width: 250px; margin: 0 auto; display: block; }
    }
    