/**
 * AIMM-style Homepage CSS - AIMangaMaker.com
 * Modern streaming platform design for manga/manhwa/novel discovery
 */

/* ===== RESET AND BASE ===== */
.AIMM-body {
    background-color: #141414;
    color: #fff;
    font-family: 'AIMM Sans', 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ===== HEADER ===== */
.AIMM-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 100%);
    transition: background-color 0.3s ease;
    padding: 0 60px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    margin-right: 12px;
    transition: color 0.3s ease;
}

.mobile-menu-toggle:hover {
    color: #e50914;
}

.mobile-menu-toggle i {
    display: block;
}

.AIMM-header.scrolled {
    background-color: #141414;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.AIMM-header .logo img {
    height: 32px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    color: #e5e5e5;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: #fff;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #e50914;
    border-radius: 2px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-container {
    position: relative;
}

.search-input {
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    padding: 10px 40px 10px 16px;
    width: 240px;
    transition: all 0.3s ease;
}

.search-input:focus {
    background: rgba(0, 0, 0, 0.9);
    border-color: #fff;
    outline: none;
}

.search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-color);
    cursor: pointer;
}

.auth-buttons {
    display: flex;
    gap: 16px;
}

.btn-auth {
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-auth:not(.btn-primary) {
    color: #fff;
    background: transparent;
}

.btn-auth.btn-primary {
    background: #e50914;
    color: #fff;
}

.btn-auth:hover {
    opacity: 0.8;
}

.user-menu {
    position: relative;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid #333;
    border-radius: 4px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.user-menu:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 16px;
    color: #e5e5e5;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.dropdown-menu a:hover {
    color: #fff;
}

.dropdown-separator {
    border-top: 1px solid #333;
    margin: 8px 0;
}

/* ===== HERO BILLBOARD ===== */
.hero-billboard {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    margin-top: 68px;
}

/* ===== HERO CAROUSEL ===== */
.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 1;
    z-index: 1;
    pointer-events: none; /* Allow clicks to pass through slide container */
}

/* ===== HERO CAROUSEL PROGRESS BAR ===== */
.carousel-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 20;
    overflow: hidden;
}

.progress-fill {
    height: 100% !important;
    width: 0%;
    background: linear-gradient(90deg, #e50914 0%, #ff1f2f 100%) !important;
    transition: width linear;
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.5) !important;
    transform: translateZ(0) !important; /* Force hardware acceleration */
    animation: none !important; /* Override any animation from main.css */
}

.progress-fill.paused {
    animation-play-state: paused;
}

/* Remove blurred background - showing all projects simultaneously */

/* All project images displayed horizontally */
.hero-slide img {
    position: absolute;
    top: 50%;
    width: auto;
    height: 70%;
    max-width: 20%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    transition: all 1s ease-in-out;
    opacity: 0.3;
    transform: translateY(-50%) scale(0.6);
    pointer-events: auto; /* Enable pointer events for images */
    cursor: pointer;
}

/* Carousel positions with size scaling - biggest in center, smaller on sides */
.hero-slide.position-0 { z-index: 10; }
.hero-slide.position-0 img { 
    left: 40%; 
    opacity: 1 !important; 
    transform: translateY(-50%) scale(1) !important; 
    z-index: 10; 
    max-width: 35% !important;
    height: 85% !important;
} /* Center - Biggest */

.hero-slide.position-1 { z-index: 8; }
.hero-slide.position-1 img { 
    left: 58%; 
    opacity: 0.7;
    transform: translateY(-50%) scale(0.8);
    max-width: 28%;
    height: 75%;
} /* Right 1 - Medium */

.hero-slide.position-4 { z-index: 8; }
.hero-slide.position-4 img { 
    left: 22%; 
    opacity: 0.7;
    transform: translateY(-50%) scale(0.8);
    max-width: 28%;
    height: 75%;
} /* Left 1 - Medium */

.hero-slide.position-2 { z-index: 5; }
.hero-slide.position-2 img { 
    left: 75%; 
    opacity: 0.4;
    transform: translateY(-50%) scale(0.6);
    max-width: 22%;
    height: 65%;
} /* Right 2 - Small */

.hero-slide.position-3 { z-index: 5; }
.hero-slide.position-3 img { 
    left: 3%; 
    opacity: 0.4;
    transform: translateY(-50%) scale(0.6);
    max-width: 22%;
    height: 65%;
} /* Left 2 - Small */

/* ===== HERO CAROUSEL CONTROLS ===== */
.carousel-controls {
    position: absolute;
    bottom: 30px;
    left: 60px;
    z-index: 4;
    display: none;
}

.pause-btn {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.pause-btn:hover {
    background: rgba(229, 9, 20, 0.8);
    border-color: #e50914;
    transform: scale(1.1);
}

.pause-btn.paused {
    background: rgba(229, 9, 20, 0.9);
    border-color: #e50914;
}

/* ===== HERO CAROUSEL INDICATORS ===== */
.hero-indicators {
    position: absolute;
    bottom: 30px;
    right: 60px;
    display: flex;
    gap: 8px;
    z-index: 4;
}

.hero-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-indicators .indicator.active {
    background: #e50914;
    transform: scale(1.2);
}

.hero-indicators .indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none; /* Allow clicks to pass through gradient */
    z-index: 10; /* Keep above slides but allow clicks through */
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 0 60px 80px;
    max-width: 50%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 16px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    line-height: 1.1;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 16px;
    font-weight: 500;
}

.content-type {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.rating {
    color: #f5c518;
}

.hero-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 32px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    justify-content: center;
}

.btn-hero.btn-primary {
    background: #fff;
    color: #000;
}

.btn-hero.btn-primary:hover {
    background: #e5e5e5;
}

.btn-hero.btn-secondary {
    background: rgba(109, 109, 110, 0.7);
    color: #fff;
}

.btn-hero.btn-secondary:hover {
    background: rgba(109, 109, 110, 0.9);
}

/* ===== MAIN CONTENT ===== */
.AIMM-main {
    padding: 40px 60px;
}

/* ===== CONTENT ROWS ===== */
.content-row {
    margin-bottom: 60px;
}

.row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.row-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #e5e5e5;
}

.view-all {
    color: #54b9c5;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.view-all:hover {
    color: #46a2ad;
}

/* ===== CONTENT SLIDER ===== */
.content-slider {
    position: relative;
    overflow: hidden;
}

.slider-track {
    display: flex;
    gap: 8px;
    scroll-behavior: smooth;
    transition: transform 0.5s ease;
}

.content-card {
    min-width: 250px;
    height: 350px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.content-card:hover {
    z-index: 10;
}

.card-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.content-card:hover .card-image img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.9) 0%,
        rgba(0,0,0,0.3) 50%,
        rgba(0,0,0,0) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
}

.content-card:hover .card-overlay {
    opacity: 1;
}

.card-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.btn-card {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    font-size: 16px;
    cursor: pointer;
}

.btn-card.btn-primary {
    background: var(--gray-200);
    color: #000;
    border-color: #fff;
}

.btn-card.btn-primary:hover {
    background: var(--gray-300);
}

.btn-card.btn-secondary {
    background: rgba(42, 42, 42, 0.8);
}

.btn-card.btn-secondary:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.card-info h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: #ccc;
}

.card-meta .rating {
    color: #f5c518;
}

/* ===== TRENDING CARDS ===== */
.trending-card {
    position: relative;
}

.trending-number {
    position: absolute;
    top: -10px;
    left: -10px;
    background: #e50914;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    z-index: 11;
    border: 3px solid #141414;
}

/* ===== SLIDER CONTROLS ===== */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(229, 9, 20, 0.9);
    border: none;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 20;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.content-slider:hover .slider-btn {
    opacity: 1;
}

.slider-btn:hover {
    background: rgba(229, 9, 20, 1);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 5px;
}

.slider-btn.next {
    right: 5px;
}

/* ===== GENRES GRID ===== */
.genres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.genre-card {
    background: linear-gradient(135deg, #232323, #1a1a1a);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 24px;
    text-decoration: none;
    color: #fff !important;
    transition: all 0.3s ease;
    text-align: center;
}

.genre-card * {
    color: #fff !important;
}

.genre-card:hover {
    background: linear-gradient(135deg, #333, #232323);
    border-color: var(--light-color);
    transform: translateY(-4px);
}

.genre-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    color: #e50914;
}

.genre-card h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff !important;
}

/* ===== CREATOR CTA ===== */
.creator-cta {
    background: linear-gradient(135deg, #e50914, #b81e25);
    border-radius: 12px;
    padding: 60px;
    text-align: center;
    margin: 80px 0;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin: 0 0 16px;
    font-weight: 700;
}

.cta-content p {
    font-size: 18px;
    margin: 0 0 32px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta {
    padding: 16px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 160px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-cta.btn-primary {
    background: #fff;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.btn-cta.btn-primary:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.btn-cta.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-cta.btn-secondary:hover {
    background: var(--gray-200);
    color: #e50914;
}

/* ===== FOOTER ===== */
.AIMM-footer {
    background: #000;
    color: var(--light-color);
    padding: 60px 60px 40px;
    margin-top: 80px;
}

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

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: var(--light-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #333;
    flex-wrap: wrap;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: var(--light-color);
    font-size: 20px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #fff;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
    color: var(--light-color);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .AIMM-header {
        padding: 0 40px;
    }

    .AIMM-main {
        padding: 40px 40px;
    }

    .hero-content {
        padding: 0 40px 60px;
        max-width: 60%;
    }

    .AIMM-footer {
        padding: 40px 40px 30px;
    }
}

@media (max-width: 768px) {
    .AIMM-header {
        padding: 0 20px;
        height: 60px;
    }

    .header-left {
        gap: 16px;
    }


    .main-nav ul {
        gap: 12px;
    }

    .main-nav a {
        font-size: 12px;
    }

    .search-container {
        display: none;
    }

    .AIMM-main {
        padding: 20px;
    }

    /* Hero carousel - mobile optimization */
    .hero-billboard {
        height: 75vh;
        margin-top: 60px;
    }

    /* Mobile: Show only active slide as full background */
    .hero-carousel {
        background-color: #000;
    }

    .hero-slide {
        opacity: 0;
        transition: opacity 0.5s ease;
    }

    .hero-slide.position-0 {
        opacity: 1;
    }

    .hero-slide img {
        position: absolute;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        object-fit: cover;
        object-position: top center;
        opacity: 0.6;
        transform: none !important;
        filter: blur(0);
        border-radius: 0;
        transition: opacity 0.5s ease !important;
    }

    .hero-slide.position-0 img {
        opacity: 1 !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        object-position: top center;
        transform: none !important;
    }

    /* Hide all non-active slides on mobile */
    .hero-slide.position-1,
    .hero-slide.position-2,
    .hero-slide.position-3,
    .hero-slide.position-4 {
        display: none;
    }

    .hero-gradient {
        background: linear-gradient(
            to top,
            rgba(0,0,0,0.9) 0%,
            rgba(0,0,0,0.4) 40%,
            rgba(0,0,0,0.1) 70%,
            rgba(0,0,0,0.0) 100%
        );
    }

    .hero-content {
        padding: 0 20px 40px;
        max-width: 100%;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-meta {
        gap: 8px;
        font-size: 12px;
    }

    .hero-meta span {
        font-size: 12px;
    }

    .content-type {
        font-size: 11px;
        padding: 3px 8px;
    }

    .hero-description {
        display: none;
    }

    .hero-actions {
        gap: 12px;
    }

    .btn-hero {
        padding: 12px 20px;
        font-size: 14px;
        min-width: 120px;
    }

    .carousel-controls {
        bottom: 20px;
        left: 20px;
    }

    .pause-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .hero-indicators {
        bottom: 20px;
        right: 20px;
        gap: 6px;
    }

    .hero-indicators .indicator {
        width: 8px;
        height: 8px;
    }

    /* Content sliders - mobile touch friendly */
    .content-row {
        margin-bottom: 40px;
    }

    .row-header h2 {
        font-size: 1.2rem;
    }

    .slider-track {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .slider-track::-webkit-scrollbar {
        display: none;
    }

    .content-card {
        min-width: 180px;
        height: 260px;
        scroll-snap-align: start;
    }

    .slider-btn {
        display: none;
    }

    .genres-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 12px;
    }

    .genre-card {
        padding: 20px;
    }

    .genre-icon {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .genre-card h3 {
        font-size: 14px;
    }

    .creator-cta {
        padding: 40px 20px;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-content p {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .btn-cta {
        padding: 12px 24px;
        font-size: 14px;
        min-width: 140px;
    }

    .AIMM-footer {
        padding: 40px 20px 30px;
    }

    .footer-links {
        
        display: flex;
    }

    .footer-column h3 {
        font-size: 14px;
    }

    .footer-column a {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .AIMM-header {
        padding: 0 16px;
        height: 56px;
    }

    .header-left {
        gap: 0;
        position: relative;
    }

    /* Show hamburger menu on mobile */
    .mobile-menu-toggle {
        display: block;
    }

    /* Hide desktop nav, show as dropdown on mobile */
    .main-nav {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.98);
        border-bottom: 2px solid #e50914;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 999;
    }

    .main-nav.mobile-menu-open {
        max-height: 400px;
    }

    .main-nav ul {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 8px 0;
    }

    .main-nav li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav li:last-child {
        border-bottom: none;
    }

    .main-nav a {
        display: block;
        padding: 16px 20px;
        font-size: 14px;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    .main-nav a:hover {
        background: rgba(229, 9, 20, 0.1);
    }

    .main-nav a.active {
        background: rgba(229, 9, 20, 0.2);
        color: #e50914;
    }

    .main-nav a.active::after {
        display: none;
    }

    .auth-buttons {
        gap: 8px;
    }

    .btn-auth {
        padding: 6px 12px;
        font-size: 12px;
    }

    /* Mobile hero carousel - full background style */
    .hero-billboard {
        height: 65vh;
        margin-top: 56px;
    }

    .hero-slide img {
        opacity: 0.5 !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        transition: opacity 0.5s ease !important;
    }

    .hero-slide.position-0 img {
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
    }

    .hero-content {
        padding: 0 16px 30px;
        max-width: 100%;
    }

    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .hero-meta {
        flex-wrap: wrap;
        gap: 6px;
    }

    .hero-description {
        display: none;
    }

    .hero-actions {
        width: 100%;
    }

    .btn-hero {
        flex: 1;
        padding: 10px 16px;
        font-size: 13px;
        min-width: auto;
    }

    .carousel-controls {
        bottom: 16px;
        left: 16px;
    }

    .pause-btn {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }

    .hero-indicators {
        bottom: 16px;
        right: 16px;
    }

    .AIMM-main {
        padding: 16px;
    }

    .content-row {
        margin-bottom: 32px;
    }

    .row-header {
        margin-bottom: 16px;
    }

    .row-header h2 {
        font-size: 1.1rem;
    }

    .view-all {
        font-size: 12px;
    }

    .content-card {
        min-width: 140px;
        height: 200px;
    }

    .card-info h3 {
        font-size: 13px;
    }

    .card-meta {
        font-size: 10px;
    }

    .trending-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
        border-width: 2px;
    }

    .slider-track {
        gap: 8px;
    }

    .genres-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .genre-card {
        padding: 16px;
    }

    .genre-icon {
        font-size: 1.3rem;
    }

    .genre-card h3 {
        font-size: 12px;
    }

    .creator-cta {
        padding: 32px 16px;
        margin: 40px 0;
    }

    .cta-content h2 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .cta-content p {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }


    .btn-cta {
        width: 100%; 
        padding: 12px 20px;
    }

    .footer-links { 
        display: flex;
 
    }

    .footer-column h3 {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .footer-column li {
        margin-bottom: 8px;
    }

    .footer-column a {
        font-size: 11px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .social-links a {
        font-size: 18px;
    }

    .footer-bottom p {
        font-size: 11px;
    }
}

/* Mobile landscape optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-billboard {
        height: 90vh;
    }

    .hero-content {
        padding-bottom: 60px;
    }
}

/* ===== ANIMATION KEYFRAMES ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* ===== UTILITY CLASSES ===== */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}

/* ===== CONTINUE READING SIDEBAR ===== */
.main-with-sidebar {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.main-content {
    flex: 1;
    min-width: 0; /* Allows flexbox to shrink below content size */
}

.continue-reading-sidebar {
    width: 340px;
    flex-shrink: 0;
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 108px);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.continue-reading-sidebar .sidebar-header {
    padding: 14px 16px;
    background: rgba(30, 30, 30, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.continue-reading-sidebar .sidebar-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.continue-reading-sidebar .sidebar-header h3 i {
    font-size: 14px;
    color: #e50914;
}

.continue-reading-sidebar .sidebar-content {
    padding: 8px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.continue-reading-sidebar .sidebar-content::-webkit-scrollbar {
    width: 4px;
}

.continue-reading-sidebar .sidebar-content::-webkit-scrollbar-track {
    background: transparent;
}

.continue-reading-sidebar .sidebar-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.continue-reading-card {
    background: rgba(35, 35, 35, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
    transition: all 0.25s ease;
}

.continue-reading-card:hover {
    background: rgba(40, 40, 40, 0.8);
    border-color: rgba(229, 9, 20, 0.5);
    transform: translateX(2px);
}

.continue-reading-card:last-child {
    margin-bottom: 0;
}

.continue-reading-card .card-link {
    display: flex;
    gap: 12px;
    padding: 10px;
    text-decoration: none;
    color: inherit;
}

.continue-reading-card .card-cover {
    position: relative;
    width: 80px;
    height: 110px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
    background: #1a1a1a;
}

.continue-reading-card .card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.continue-reading-card:hover .card-cover img {
    transform: scale(1.08);
}

.continue-reading-card .card-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.continue-reading-card .project-title {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.continue-reading-card .chapter-info {
    margin: 0;
    font-size: 11px;
    color: #999;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 6px;
}

.continue-reading-card .badge-type {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(229, 9, 20, 0.2);
    color: #e50914;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.continue-reading-card .progress-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 2px;
}

.continue-reading-card .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #e50914, #ff3333);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.continue-reading-card .progress-text {
    font-size: 10px;
    color: #888;
    font-weight: 500;
    margin: 0;
}

.continue-reading-card .last-read {
    margin: 0;
    font-size: 10px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

.continue-reading-card .last-read i {
    font-size: 9px;
}

/* Mobile sidebar responsiveness */
@media (max-width: 1024px) {
    .main-with-sidebar {
        flex-direction: column-reverse;
    }

    .continue-reading-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        max-height: none;
        order: -1; /* Move sidebar above main content on mobile */
        margin-bottom: 32px;
    }

    .continue-reading-sidebar .sidebar-content {
        max-height: 500px;
    }

    .main-content {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .continue-reading-sidebar {
        margin-bottom: 24px;
    }

    .continue-reading-sidebar .sidebar-header {
        padding: 16px;
    }

    .continue-reading-sidebar .sidebar-header h3 {
        font-size: 16px;
    }

    .continue-reading-card .card-cover {
        height: 120px;
    }

    .continue-reading-sidebar .sidebar-content {
        max-height: 400px;
    }
}