:root {
    --bg-dark: #090b0f;
    --bg-card: #161920;
    --accent-color: #ff3e3e;
    --text-white: #ffffff;
    --text-gray: #8b949e;
    --shadow: 0 8px 24px rgba(0,0,0,0.5);
}

* { box-sizing: border-box; transition: all 0.2s ease; }

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Inter', -apple-system, sans-serif;
    margin: 0;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(9, 11, 15, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #222;
}

.logo { font-size: 1.5rem; font-weight: 800; color: white;}
.logo span { color: var(--accent-color); }

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover { color: red; }

.search-box {
    display: flex;
    background: #1f232d;
    padding: 5px 15px;
    border-radius: 8px;
}

.search-box input {
    background: transparent;
    border: none;
    color: white;
    outline: none;
    width: 150px;
}

/* Hero Carousel */
.hero-carousel {
    padding: 20px 5%;
}

.main-slide {
    height: 450px;
    background: linear-gradient(90deg, rgba(0,0,0,0.9) 20%, transparent), 
                url('https://images8.alphacoders.com/105/1056580.jpg'); /* Example background */
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    display: flex;
    align-items: center;
    padding: 40px;
    box-shadow: var(--shadow);
}

.slide-overlay { max-width: 600px; }
.trending-tag { background: var(--accent-color); padding: 4px 12px; border-radius: 4px; font-weight: bold; font-size: 0.8rem; }
.slide-overlay h1 { font-size: 3.5rem; margin: 15px 0; line-height: 1; }
.slide-overlay p { color: #ccc; margin-bottom: 25px; }

.btn-primary { background: var(--accent-color); border: none; padding: 12px 30px; color: white; border-radius: 6px; font-weight: bold; cursor: pointer; margin-right: 10px; }
.btn-secondary { background: rgba(255,255,255,0.1); border: none; padding: 12px 30px; color: white; border-radius: 6px; font-weight: bold; cursor: pointer; }

/* Grid System */
.container { padding: 40px 5%; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.view-all { color: var(--accent-color); text-decoration: none; font-size: 0.9rem; }

.manga-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
}

/* Small Manga Blocks */
.manga-card {
    cursor: pointer;
}

.poster-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 2/3;
}

.poster-wrapper img { width: 100%; height: 100%; object-fit: cover; }

.manga-card:hover .poster-wrapper img { transform: scale(1.1); }

.rating-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.8);
    padding: 3px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
    color: #ffb800;
}

.chapter-tag {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--accent-color);
    padding: 2px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
    font-weight: bold;
}

.manga-details h3 { font-size: 1rem; margin: 10px 0 5px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.genre { color: var(--text-gray); font-size: 0.8rem; }
/* Categories Page Specific Styles */
/* Filters & Navigation */
.list-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid #333;
    color: white;
    padding: 8px 18px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 5px;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.sort-select select {
    background: var(--bg-card);
    color: white;
    border: 1px solid #333;
    padding: 8px;
    border-radius: 5px;
    outline: none;
}

/* Alphabet Scroll */
.alphabet-nav {
    display: flex;
    justify-content: space-between;
    background: var(--bg-card);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-size: 0.8rem;
    color: var(--text-gray);
    overflow-x: auto;
}

.alphabet-nav span {
    cursor: pointer;
    padding: 0 5px;
}

.alphabet-nav span:hover { color: var(--accent-color); }

/* Status Tags */
.status-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    font-weight: bold;
}
.status-tag.ongoing { background: #2ecc71; }
.status-tag.completed { background: #3498db; }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    gap: 10px;
}

.page-link {
    background: var(--bg-card);
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid #333;
}
.nav-links a.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 5px;
}
.page-link.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
}