:root {
    --primary: #ff5e8e;
    --secondary: #5d6cff;
    --accent: #ffffff;
    --dark: #0f0f1a;
    --darker: #0a0a13;
    --light: #f0f0f5;
    --gray: #a0a0b0;
    --card-bg: #1a1a2e;
    --header-height: 70px;
    --sidebar-width: 280px;
    --glow: 0 0 15px rgba(255, 94, 142, 0.7);
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--darker) !important;
    color: var(--accent);
    font-family: 'Poppins', 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ============================================
   CRITICAL FIX: COMPLETELY REMOVE ALL BLUE LINES
   ============================================ */
.section-title h2::after,
.section-title h2::before,
h2::after,
h2::before,
h3::after,
h3::before,
.card-content h3::after,
.card-content h3::before,
.featured-overlay h3::after,
.featured-overlay h3::before,
.content-card::after,
.content-card::before,
.featured-card::after,
.featured-card::before,
.card-content::after,
.card-content::before,
[class*="title"]::after,
[class*="title"]::before,
[class*="card"]::after,
[class*="card"]::before {
    content: none !important;
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

/* Remove any text decoration that might look like lines */
.card-content h3,
.featured-overlay h3,
.content-card h3,
.section-title h2 {
    text-decoration: none !important;
    border-bottom: none !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* CRITICAL FIX: Ensure no white background anywhere */
body, html, .container, main, .card-grid, .featured-scroll,
.content-section, .featured-section {
    background: var(--darker) !important;
}

/* CRITICAL FIX: Ensure proper header background */
header {
    background: rgba(15, 15, 26, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    padding: 10px 0 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    border-bottom: 1px solid rgba(106, 90, 205, 0.3) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5) !important;
    height: var(--header-height) !important;
}

/* Enhanced Search Bar */
.search-container {
    position: relative;
    width: 500px;
    max-width: 90%;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.search-box {
    display: flex;
    align-items: center;
    position: relative;
    background: rgba(30, 30, 46, 0.9);
    border: 1px solid rgba(106, 90, 205, 0.4);
    border-radius: 30px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-box.focused {
    border-color: var(--secondary);
    box-shadow: 0 0 15px rgba(93, 108, 255, 0.5);
}

.search-container input {
    background: transparent;
    border: none;
    padding: 12px 20px;
    color: var(--accent);
    width: 100%;
    font-size: 16px;
    outline: none;
}

.search-container input::placeholder {
    color: var(--gray);
}

.search-btn {
    background: rgba(93, 108, 255, 0.3);
    border: none;
    padding: 12px 20px;
    color: var(--accent);
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--secondary);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(30, 30, 46, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 0 0 15px 15px;
    padding: 15px;
    margin-top: 5px;
    display: none;
    z-index: 100;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(106, 90, 205, 0.4);
    border-top: none;
    max-height: 300px;
    overflow-y: auto;
}

.search-suggestions.visible {
    display: block;
    animation: fadeIn 0.3s ease;
}

.suggestion-item {
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.suggestion-item:hover {
    background: rgba(93, 108, 255, 0.2);
}

.suggestion-item i {
    margin-right: 10px;
    color: var(--primary);
    font-size: 14px;
}

.suggestion-item span {
    font-size: 14px;
}

.suggestion-item .match {
    color: var(--primary);
    font-weight: 600;
}

.search-clear {
    display: none;
    background: transparent;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 0 10px;
    font-size: 16px;
    transition: all 0.3s;
}

.search-clear.visible {
    display: block;
}

.search-clear:hover {
    color: var(--accent);
}

/* Mobile Search Toggle */
.mobile-search-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--accent);
    font-size: 20px;
    cursor: pointer;
    margin-left: 15px;
    transition: all 0.3s;
}

.mobile-search-toggle:hover {
    color: var(--secondary);
}

.mobile-search-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--darker);
    z-index: 1001;
    padding: 10px 15px;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.mobile-search-container.active {
    display: flex;
}

.mobile-search-box {
    display: flex;
    align-items: center;
    flex: 1;
    background: rgba(30, 30, 46, 0.9);
    border: 1px solid rgba(106, 90, 205, 0.4);
    border-radius: 30px;
    overflow: hidden;
    padding-right: 10px;
}

.mobile-search-box input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 15px;
    color: var(--accent);
    font-size: 16px;
    outline: none;
}

.mobile-search-close {
    background: transparent;
    border: none;
    color: var(--accent);
    font-size: 20px;
    cursor: pointer;
    margin-left: 10px;
}

/* Mobile search suggestions */
.mobile-search-suggestions {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 26, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
    display: none;
}

.mobile-search-suggestions.visible {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* CRITICAL FIX: Card Image with proper background */
.card-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #2a2a4a, #1a1a2e);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 14px;
    border-radius: 8px;
}

.card-image-placeholder i {
    font-size: 40px;
    margin-bottom: 10px;
    color: var(--primary);
    opacity: 0.7;
}

.card-image-placeholder span {
    text-align: center;
    padding: 0 10px;
}

/* Anime-themed background elements */
.anime-bg-element {
    position: absolute;
    z-index: -1;
    opacity: 0.1;
    pointer-events: none;
}

.sakura-1 {
    top: 10%;
    left: 5%;
    font-size: 3rem;
    animation: float 15s infinite linear;
    color: var(--primary);
}

.sakura-2 {
    top: 30%;
    right: 8%;
    font-size: 2.5rem;
    animation: float 18s infinite linear reverse;
    color: var(--primary);
}

.sakura-3 {
    bottom: 20%;
    left: 12%;
    font-size: 2rem;
    animation: float 12s infinite linear;
    color: var(--primary);
}

.sakura-4 {
    bottom: 40%;
    right: 15%;
    font-size: 2.8rem;
    animation: float 16s infinite linear reverse;
    color: var(--primary);
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); opacity: 0.1; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 0.15; }
    100% { transform: translateY(0) rotate(360deg); opacity: 0.1; }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    background: transparent !important;
}

/* Header Styles */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    letter-spacing: -0.5px;
    position: relative;
}

.logo i {
    margin-right: 10px;
    color: var(--primary);
    animation: pulse-logo 2s infinite;
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 18px;
}

.nav-links a {
    color: var(--accent);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
    opacity: 0.9;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--secondary);
    opacity: 1;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

/* Genre Filter */
.genre-filter {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 15px 0 30px;
    margin-bottom: 30px;
    scrollbar-width: none;
}

.genre-filter::-webkit-scrollbar {
    display: none;
}

.genre-btn {
    padding: 8px 20px;
    border-radius: 20px;
    background: rgba(30, 30, 46, 0.5);
    color: var(--accent);
    border: 1px solid rgba(106, 90, 205, 0.2);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    opacity: 0.8;
    display: flex;
    align-items: center;
}

.genre-btn i {
    margin-right: 8px;
    font-size: 16px;
    flex-shrink: 0;
}

.genre-btn:hover, .genre-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    opacity: 1;
    box-shadow: var(--glow);
}

/* Featured Scroll Section */
.featured-section {
    padding: 20px 0 10px;
    position: relative;
    margin-top: 10px;
    overflow: hidden;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

/* CRITICAL FIX: Section title without blue line */
.section-title h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    padding-bottom: 10px;
    position: relative;
    border-bottom: none !important;
    background: none !important;
    text-shadow: none !important;
}

/* REMOVED: The blue line pseudo-element completely */
.section-title h2::after,
.section-title h2::before {
    display: none !important;
}

.view-all {
    color: var(--accent);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    opacity: 0.8;
}

.view-all:hover {
    color: var(--secondary);
    opacity: 1;
}

.view-all i {
    margin-left: 5px;
    font-size: 12px;
}

.featured-scroll {
    display: flex;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #222;
    padding: 10px 5px 25px;
    gap: 20px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    will-change: transform;
    -webkit-overflow-scrolling: touch;
}

.featured-scroll::-webkit-scrollbar {
    height: 6px;
}

.featured-scroll::-webkit-scrollbar-track {
    background: #1a1a2e;
    border-radius: 3px;
}

.featured-scroll::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

/* Auto-scroll controls */
.scroll-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.scroll-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(30, 30, 46, 0.7);
    border: 1px solid rgba(106, 90, 205, 0.3);
    color: var(--accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.scroll-btn:hover {
    background: var(--primary);
    color: white;
    box-shadow: var(--glow);
}

/* Smaller Featured Cards */
.featured-card {
    min-width: 180px;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    border: 1px solid rgba(106, 90, 205, 0.2);
    scroll-snap-align: start;
    background: linear-gradient(145deg, #1a1a2e, #0f0f1a);
    transform-style: preserve-3d;
    perspective: 1000px;
    animation: floatCard 4s infinite ease-in-out;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

@keyframes floatCard {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.featured-card:hover {
    animation: none;
    transform: translateY(-10px) scale(1.03) rotateY(5deg);
    z-index: 2;
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 94, 142, 0.7);
    cursor: pointer;
}

/* CRITICAL FIX: Image loading with proper background */
.featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    background: linear-gradient(145deg, #2a2a4a, #1a1a2e) !important;
    loading: lazy;
}

.featured-card:hover img {
    transform: scale(1.1);
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    z-index: 2;
}

/* CRITICAL FIX: Remove blue lines from featured card titles */
.featured-overlay h3 {
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    border-bottom: none !important;
    text-decoration: none !important;
    background: none !important;
    box-shadow: none !important;
}

.featured-overlay .rating {
    display: flex;
    align-items: center;
    font-size: 12px;
    margin-bottom: 8px;
}

.featured-overlay .rating i {
    color: gold;
    margin-right: 5px;
}

.featured-overlay .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.featured-overlay .tag {
    background: rgba(255, 94, 142, 0.2);
    color: #ffa0c0;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid rgba(255, 94, 142, 0.3);
}

.featured-card .episode-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(93, 108, 255, 0.9);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.featured-card .hd-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 215, 0, 0.9);
    color: #333;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Play Button Overlay */
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.featured-card:hover .play-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.6);
}

.play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
    transform: scale(0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.featured-card:hover .play-btn {
    transform: scale(1);
    background: rgba(255, 94, 142, 0.7);
}

.play-btn:hover {
    background: var(--primary);
    transform: scale(1.1);
}

/* Content Sections */
.content-section {
    margin: 60px 0;
    background: transparent !important;
}

/* Smaller Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
    background: transparent !important;
    will-change: transform;
    contain: layout style paint;
}

.content-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid rgba(106, 90, 205, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
    perspective: 1000px;
    animation: fadeIn 0.6s ease-out;
    animation-fill-mode: backwards;
    cursor: pointer;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-card:hover {
    transform: translateY(-8px) rotateY(3deg);
    z-index: 2;
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 94, 142, 0.5);
}

/* CRITICAL FIX: Card image with proper background */
.card-image {
    height: 170px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #2a2a4a, #1a1a2e) !important;
}

.content-card:hover .card-image img {
    transform: scale(1.1);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    background: linear-gradient(145deg, #2a2a4a, #1a1a2e) !important;
    loading: lazy;
}

.card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    z-index: 1;
    backdrop-filter: blur(5px);
}

.card-badge.new {
    background: rgba(255, 94, 142, 0.8);
}

.card-badge.hd {
    background: rgba(93, 108, 255, 0.8);
}

.card-content {
    padding: 10px;
    background: var(--card-bg) !important;
    border-radius: 0 0 10px 10px;
}

/* CRITICAL FIX: Remove blue lines from card titles */
.card-content h3 {
    font-size: 13px;
    margin-bottom: 5px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    border-bottom: none !important;
    text-decoration: none !important;
    background: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.card-content .meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--gray);
    margin-bottom: 8px;
}

.card-content .rating {
    color: var(--secondary);
    font-weight: 500;
}

/* Streaming Platforms */
.platforms {
    display: flex;
    gap: 5px;
}

.platform-icon {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: #fff;
    background: #333;
    transition: transform 0.3s ease;
}

.content-card:hover .platform-icon {
    transform: scale(1.1);
}

.crunchyroll { background: #f47521; }
.funimation { background: #5a0f8c; }
.netflix { background: #e50914; }
.hulu { background: #1ce783; color: #000; }
.hidive { background: #00a1f1; }
.disney { background: #113ccf; }

/* New Navigation Buttons - Smaller */
.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 50px;
    background: rgba(30, 30, 46, 0.7);
    color: var(--accent);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(106, 90, 205, 0.3);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.nav-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--glow);
    transform: translateY(-2px);
}

.nav-btn i {
    transition: transform 0.3s ease;
}

.nav-btn:hover i {
    transform: translateX(5px);
}

.nav-btn.prev i {
    margin-right: 8px;
}

.nav-btn.next i {
    margin-left: 8px;
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 26, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loader {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-block;
    border-top: 4px solid var(--primary);
    border-right: 4px solid transparent;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    position: relative;
}

.loader::after {
    content: '';  
    box-sizing: border-box;
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border-bottom: 4px solid var(--secondary);
    border-left: 4px solid transparent;
    animation: rotation 0.5s linear infinite reverse;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   FIXED FOOTER SECTION - PROPERLY STYLED
   ============================================ */
footer {
    background: rgba(15, 15, 26, 0.95) !important;
    padding: 50px 0 20px !important;
    margin-top: 50px !important;
    border-top: 1px solid rgba(106, 90, 205, 0.3) !important;
    backdrop-filter: blur(5px) !important;
    text-align: center !important;
    position: relative !important;
    z-index: 100 !important;
}

.footer-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 30px !important;
    margin-bottom: 30px !important;
    width: 100% !important;
}

.footer-logo {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: var(--accent) !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 15px !important;
    animation: pulse-logo 2s infinite !important;
}

.footer-logo i {
    margin-right: 10px !important;
    color: var(--primary) !important;
    font-size: 24px !important;
}

.footer-logo span {
    color: var(--secondary) !important;
}

.footer-social {
    display: flex !important;
    gap: 15px !important;
    margin-bottom: 25px !important;
}

.footer-social a {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--secondary) !important;
    font-size: 18px !important;
    transition: all 0.3s ease !important;
}

.footer-social a:hover {
    background: var(--secondary) !important;
    color: #fff !important;
    transform: translateY(-5px) !important;
    box-shadow: var(--glow) !important;
}

.footer-links {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 20px !important;
    margin-bottom: 25px !important;
}

.footer-links a {
    color: var(--accent) !important;
    text-decoration: none !important;
    transition: all 0.3s !important;
    font-size: 15px !important;
    opacity: 0.8 !important;
    flex-shrink: 0 !important;
}

.footer-links a:hover {
    color: var(--secondary) !important;
    opacity: 1 !important;
}

.copyright {
    padding-top: 30px !important;
    border-top: 1px solid rgba(106, 90, 205, 0.3) !important;
    color: var(--accent) !important;
    font-size: 14px !important;
    opacity: 0.7 !important;
    line-height: 1.6 !important;
    width: 100% !important;
}

/* New Sidebar Menu */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--accent);
    font-size: 24px;
    cursor: pointer;
    margin-right: 15px;
    transition: all 0.3s;
    z-index: 1001;
}

.menu-toggle:hover {
    color: var(--secondary);
}

.sidebar-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: var(--sidebar-width);
    height: 100vh;
    background: rgba(15, 15, 26, 0.98);
    backdrop-filter: blur(10px);
    z-index: 2000;
    overflow-y: auto;
    transition: left 0.4s ease;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    border-right: 1px solid rgba(106, 90, 205, 0.3);
}

.sidebar-menu.active {
    left: 0;
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from { left: -100%; }
    to { left: 0; }
}

.sidebar-header {
    padding: 25px 20px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(106, 90, 205, 0.3);
}

.sidebar-logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    margin-left: 10px;
    margin-bottom: 10px;
}

.sidebar-logo i {
    margin-right: 10px;
    color: var(--primary);
    flex-shrink: 0;
}

.close-menu {
    background: transparent;
    border: none;
    color: var(--accent);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
}

.close-menu:hover {
    color: var(--secondary);
    transform: rotate(90deg);
}

.sidebar-nav {
    padding: 20px;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 10px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--accent);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    background: rgba(93, 108, 255, 0.2);
    color: var(--secondary);
}

.sidebar-nav i {
    margin-right: 15px;
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* Dark overlay for mobile menu */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Accessibility improvements */
a:focus, button:focus, input:focus {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

/* Custom scrollbar for the whole site */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Logo Animation */
@keyframes pulse-logo {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ============================================
   ULTIMATE BLUE LINE REMOVAL - COMPREHENSIVE FIX
   ============================================ */
/* Remove any potential blue lines from ALL elements */
*::after,
*::before {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Specific fixes for card titles that might have blue lines */
.card-content h3::after,
.card-content h3::before,
.featured-overlay h3::after,
.featured-overlay h3::before,
.content-card h3::after,
.content-card h3::before {
    all: unset !important;
}

/* Remove any text decoration that might appear as lines */
a, h1, h2, h3, h4, h5, h6, p, span, div {
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-decoration-color: transparent !important;
    text-decoration-style: none !important;
    text-decoration-thickness: 0 !important;
}

/* Performance optimizations */
.header-content,
.nav-links,
.search-container {
    will-change: transform;
}

/* Critical CSS for above-the-fold content */
.header-content,
.logo,
.search-container,
.featured-section {
    opacity: 1 !important;
    visibility: visible !important;
}

/* ============================================
   BUG FIXES FOR ALL SECTIONS
   ============================================ */
/* Fix for main container spacing */
main.container {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Fix for content sections spacing */
.content-section:last-of-type {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Fix for navigation buttons spacing */
.nav-buttons {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Ensure proper stacking context */
main, section, footer {
    position: relative;
    z-index: 1;
}

/* Fix for any overflow issues */
body, html {
    overflow-x: hidden;
}

/* Fix for broken image paths */
.card-image img {
    display: block;
    min-height: 170px;
}

/* Image error handling */
.card-image img[src*="Animeflix/image/"] {
    background: linear-gradient(145deg, #2a2a4a, #1a1a2e);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .search-container {
        width: 400px;
    }
}

@media (max-width: 992px) {
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .search-container {
        width: 300px;
    }
    
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .search-container {
        display: none;
    }
    
    .mobile-search-toggle {
        display: block;
    }
    
    .featured-card {
        min-width: 160px;
        height: 220px;
    }
    
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .nav-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Mobile footer fixes */
    footer {
        padding: 40px 0 20px !important;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .featured-card {
        min-width: 140px;
        height: 200px;
    }
    
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .genre-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .genre-btn i {
        margin-right: 5px;
        font-size: 14px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-social {
        gap: 10px;
    }
    
    .footer-social a {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .footer-logo {
        font-size: 24px !important;
    }
}

@media (max-width: 400px) {
    .featured-card {
        min-width: 120px;
        height: 180px;
    }
    
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }
    
    .card-image {
        height: 150px;
    }
    
    .section-title h2 {
        font-size: 22px;
    }
    
    .footer-logo {
        font-size: 22px !important;
    }
}

/* ============================================
   FINAL NUCLEAR OPTION FOR BLUE LINES
   ============================================ */
/* This will remove ANY potential line from ANY element */
h1, h2, h3, h4, h5, h6 {
    border-bottom: none !important;
    text-decoration: none !important;
}

.card-content h3,
.featured-overlay h3 {
    border-bottom: 0 !important;
    text-decoration: none !important;
    background-image: none !important;
    box-shadow: none !important;
}

/* Ensure no background issues */
* {
    background-color: transparent !important;
}

body, html, main, .container, section, div[class*="card"], 
div[class*="grid"], div[class*="scroll"] {
    background: var(--darker) !important;
}

/* Fix for image loading issues */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(145deg, #2a2a4a, #1a1a2e);
}

/* Image fallback for broken images */
.card-image img:before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(145deg, #2a2a4a, #1a1a2e);
    border-radius: 8px;
}

.card-image img:after {
    content: "Image not available";
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--gray);
    font-size: 12px;
    text-align: center;
}