/* Video grid (replaces carousel) */
.video-grid-section {
    margin: 3rem 0;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.section-header h2 {
    margin: 0;
}
.view-all-link {
    background: #ff3366;
    border: 2px solid #1a1a1a;
    color: white;
    padding: 0.4rem 1rem;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 3px 3px 0 #1a1a1a;
}
.view-all-link:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}
.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.video-card {
    background: white;
    border: 3px solid #1a1a1a;
    box-shadow: 6px 6px 0 #1a1a1a;
    transition: 0.1s linear;
    cursor: pointer;
}
.video-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0 #1a1a1a;
}
@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}
@media (max-width: 480px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================
   NEO-BRUTALIST DESIGN SYSTEM – CLEAN VERSION
   No conflicts, only essential rules
   ============================================ */
:root {
    --brutal-bg: #f5f5f0;
    --brutal-dark: #1a1a1a;
    --brutal-accent: #ff3366;
    --brutal-accent2: #ffcc00;
    --brutal-border: 3px solid #1a1a1a;
    --brutal-shadow: 6px 6px 0 #1a1a1a;
    --brutal-shadow-sm: 3px 3px 0 #1a1a1a;
    --brutal-radius: 0px;
    --brutal-font: 'Space Mono', 'Courier New', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--brutal-bg);
    font-family: 'Inter', sans-serif;
    color: var(--brutal-dark);
    line-height: 1.5;
}

h1, h2, h3, .logo, .nav-links a, .btn, button {
    font-family: var(--brutal-font);
    font-weight: 700;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ========== NAVIGATION ========== */
.navbar {
    background: var(--brutal-dark);
    border-bottom: var(--brutal-border);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.logo {
    color: var(--brutal-accent);
    background: var(--brutal-dark);
    padding: 0.5rem 1rem;
    border: 2px solid white;
    text-decoration: none;
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
}
.site-logo {
    max-height: 40px;
    width: auto;
}
.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.nav-links a {
    color: white;
    background: var(--brutal-dark);
    border: 2px solid white;
    padding: 0.4rem 1rem;
    text-decoration: none;
    transition: 0.1s;
}
.nav-links a:hover {
    background: white;
    color: var(--brutal-accent) !important;
    transform: translate(-2px, -2px);
    box-shadow: var(--brutal-shadow-sm);
}

/* ========== HERO (fallback) ========== */
.hero {
    background: var(--brutal-accent2);
    border: var(--brutal-border);
    box-shadow: var(--brutal-shadow);
    margin: 1rem;
    padding: 3rem;
    text-align: center;
}
.hero h1, .hero p {
    color: var(--brutal-dark);
}

/* ========== HERO SLIDER ========== */
.hero-slider {
    width: 100%;
    height: 70vh;
    min-height: 450px;
    position: relative;
    overflow: hidden;
}
.swiper-container {
    width: 100%;
    height: 100%;
}
.slide-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.4));
}
.slide-content {
    position: absolute;
    bottom: 30%;
    left: 10%;
    max-width: 500px;
    color: white;
    z-index: 2;
}
.slide-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}
.slide-btn {
    display: inline-block;
    background: var(--brutal-accent);
    color: white;
    padding: 0.8rem 2rem;
    border: 2px solid white;
    text-decoration: none;
    font-weight: bold;
    box-shadow: var(--brutal-shadow-sm);
}
.slide-btn:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}
.swiper-pagination-bullet-active {
    background: var(--brutal-accent) !important;
}
.swiper-button-next, .swiper-button-prev {
    color: white !important;
    background: rgba(0,0,0,0.5);
    width: 44px;
    height: 44px;
    border-radius: 0;
}
@media (max-width: 768px) {
    .hero-slider { height: 50vh; min-height: 350px; }
    .slide-content { bottom: 20%; left: 5%; right: 5%; text-align: center; }
    .slide-content h1 { font-size: 1.5rem; }
    .slide-content p { font-size: 0.9rem; }
}

/* ========== LATEST CHAPTERS GRID ========== */
.latest-chapters {
    margin: 3rem 0;
}
.chapters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}
.chapter-card {
    background: white;
    border: var(--brutal-border);
    box-shadow: var(--brutal-shadow);
    transition: 0.1s linear;
}
.chapter-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0 var(--brutal-dark);
}
.chapter-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}
.chapter-cover {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.chapter-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.chapter-info {
    padding: 1rem;
    text-align: center;
}
.chapter-info h3 {
    font-size: 1rem;
    font-family: var(--brutal-font);
    margin-bottom: 0.25rem;
}
.chapter-info p {
    font-size: 0.85rem;
    font-family: monospace;
}
.read-btn {
    display: inline-block;
    margin-top: 0.75rem;
    background: var(--brutal-accent);
    color: white;
    padding: 0.3rem 1rem;
    border: 2px solid var(--brutal-dark);
    box-shadow: var(--brutal-shadow-sm);
    font-weight: bold;
    font-size: 0.8rem;
}
.read-btn:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}
.view-all-container {
    text-align: center;
    margin-top: 1rem;
}
.view-all-btn {
    display: inline-block;
    background: var(--brutal-dark);
    color: white;
    padding: 0.8rem 2rem;
    border: 2px solid var(--brutal-accent);
    box-shadow: var(--brutal-shadow-sm);
    text-decoration: none;
    font-weight: bold;
    font-family: monospace;
}
.view-all-btn:hover {
    background: var(--brutal-accent);
    transform: translate(-2px, -2px);
    box-shadow: var(--brutal-shadow);
}

/* ========== VIDEO CAROUSEL ========== */
.video-carousel-section {
    margin: 4rem 0;
}
.video-carousel-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.video-card {
    background: white;
    border: var(--brutal-border);
    box-shadow: var(--brutal-shadow);
    transition: 0.1s linear;
    cursor: pointer;
}
.video-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0 var(--brutal-dark);
}
.video-thumb-wrapper {
    position: relative;
    background: #000;
}
.video-thumb-wrapper img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}
.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}
.play-icon-overlay i {
    font-size: 22px;
    color: white;
    margin-left: 3px;
}
.video-card:hover .play-icon-overlay {
    background: var(--brutal-accent);
}
.video-info {
    padding: 1rem;
}
.video-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.watch-btn {
    display: inline-block;
    background: var(--brutal-accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border: 2px solid var(--brutal-dark);
    box-shadow: var(--brutal-shadow-sm);
    font-size: 0.7rem;
}
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.92);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.video-modal .modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background: #000;
    border: var(--brutal-border);
}
.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 32px;
    cursor: pointer;
}
.swiper-pagination-video {
    bottom: -25px !important;
}
.swiper-pagination-video .swiper-pagination-bullet-active {
    background: var(--brutal-accent);
}
.swiper-button-prev-video,
.swiper-button-next-video {
    color: white !important;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
}
@media (max-width: 768px) {
    .video-carousel-section { margin: 2rem 0; }
    .play-icon-overlay { width: 42px; height: 42px; }
    .play-icon-overlay i { font-size: 18px; }
    .swiper-button-prev-video,
    .swiper-button-next-video { display: none; }
}

/* ========== NEWSLETTER SECTION (fully visible) ========== */
.newsletter-section {
    margin: 4rem 0;
}
.newsletter-container {
    background: white;
    border: var(--brutal-border);
    box-shadow: var(--brutal-shadow);
    padding: 2rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}
.newsletter-container h2 {
    font-family: var(--brutal-font);
    margin-bottom: 1rem;
}
.inline-newsletter {
    display: flex;
    gap: 0.5rem;
    margin: 1.5rem 0;
}
.inline-newsletter input {
    flex: 1;
    background: white;
    border: 2px solid var(--brutal-dark);
    padding: 0.6rem;
    font-family: monospace;
}
.inline-newsletter button {
    background: var(--brutal-accent);
    border: 2px solid var(--brutal-dark);
    color: white;
    padding: 0.6rem 1.2rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: var(--brutal-shadow-sm);
}
.inline-newsletter button:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}
.newsletter-container small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.7rem;
}

/* ========== MANGA GRID (popular series) ========== */
.manga-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}
.manga-card {
    background: white;
    border: var(--brutal-border);
    box-shadow: var(--brutal-shadow);
    transition: 0.1s linear;
}
.manga-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0 var(--brutal-dark);
}
.manga-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}
.manga-card img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
}
.manga-card h3, .manga-card h4 {
    padding: 0.6rem;
    font-size: 0.9rem;
    text-align: center;
}
.category {
    display: inline-block;
    background: var(--brutal-accent2);
    color: var(--brutal-dark);
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    margin: 0 0.5rem 0.5rem;
}

/* ========== MANGA DETAIL PAGE ========== */
.manga-detail { padding: 1.5rem 0; }
.manga-header { display: flex; gap: 2rem; margin-bottom: 2rem; flex-wrap: wrap; }
.cover-large img { max-width: 260px; border: var(--brutal-border); box-shadow: var(--brutal-shadow); }
.info h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.meta { font-size: 0.85rem; margin: 0.5rem 0; }
.status.ongoing { color: var(--brutal-accent2); }
.status.completed { color: #4caf50; }
.status.hiatus { color: #ff9800; }
.description { margin: 1rem 0; line-height: 1.6; }
.chapters-list ul { list-style: none; margin-top: 1rem; }
.chapters-list li { background: white; border: var(--brutal-border); margin-bottom: 0.5rem; }
.chapters-list li a { display: block; padding: 0.8rem 1rem; text-decoration: none; color: var(--brutal-dark); font-weight: bold; }
.chapters-list li a:hover { background: var(--brutal-accent); color: white; }

/* ========== READER PAGE ========== */
.reader-container { padding: 1rem; }
.reader-header { margin-bottom: 1.5rem; text-align: center; }
.reader-header h2 { font-size: 1.2rem; }
.reader-nav a { color: var(--brutal-accent); text-decoration: none; }
.pages-viewer { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.page-wrapper img { max-width: 100%; border: var(--brutal-border); box-shadow: var(--brutal-shadow); }

/* ========== FOOTER ========== */
.footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    background: var(--brutal-dark);
    color: white;
    font-size: 0.8rem;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}
.footer-links a {
    color: #ccc;
    text-decoration: none;
}
.footer-links a:hover {
    color: var(--brutal-accent);
}

/* ========== HAMBURGER MENU (mobile) ========== */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}
.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: 0.3s;
}
@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 280px;
        height: 100vh;
        background: var(--brutal-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: 0.3s;
        z-index: 1000;
        border-left: var(--brutal-border);
    }
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1.2rem; margin: 0; background: transparent; border: none; color: white; }
    .nav-links a:hover { background: transparent; color: var(--brutal-accent) !important; transform: none; box-shadow: none; }
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.7);
        z-index: 999;
    }
    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }
    /* grid adjustments */
    .chapters-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .inline-newsletter { flex-direction: column; }
    .manga-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .chapters-grid { grid-template-columns: 1fr; }
}

/* ========== UTILITY PAGES (About, Contact, Legal) ========== */
.about-page, .legal-page, .contact-page, .newsletter-page {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}
.about-banner, .contact-info, .contact-form-container, .newsletter-box {
    background: white;
    border: var(--brutal-border);
    box-shadow: var(--brutal-shadow);
    padding: 2rem;
    border-radius: 0;
}