/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Backgrounds */
    --bg-dark: #0A0E1A;
    --bg-navbar: #0D1220;
    --bg-card: #111827;
    --bg-hover: #1A2235;
    --border-color: #1E2A45;

    /* Primary Accent - Gradient from Pink to Purple */
    --primary-color: #FF2D78;
    --primary-end: #B537F2;
    --primary-gradient: linear-gradient(135deg, #FF2D78, #B537F2);

    /* Cyan Glow */
    --cyan-glow: #00F5FF;

    /* Badge/Tag Color */
    --badge-color: #B537F2;

    /* Logo Gradient - Cyan to Pink */
    --logo-gradient: linear-gradient(135deg, #00F5FF, #FF2D78);

    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-body: #E0E0FF;
    --text-muted: #8B9CC8;

    /* Other */
    --success: #10b981;
    --warning: #f59e0b;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--bg-navbar);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 30px;
}

.logo {
    font-size: 32px;
    font-weight: bold;
}

.logo-9 {
    background: var(--logo-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-anime {
    color: var(--text-primary);
}

.main-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-muted);
    font-size: 15px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}

.nav-link:hover {
    color: var(--cyan-glow);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(135deg, #0D1220 0%, #111827 100%);
    border: 1px solid rgba(255, 45, 120, 0.2);
    border-radius: 12px;
    min-width: 550px;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7),
                0 0 0 1px rgba(255, 45, 120, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-height: 500px;
    overflow-y: auto;
}

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

.dropdown-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--text-body);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.dropdown-menu a:hover {
    background: linear-gradient(135deg, rgba(255, 45, 120, 0.15), rgba(181, 55, 242, 0.15));
    color: var(--cyan-glow);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(255, 45, 120, 0.2);
}

.dropdown-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--primary-gradient);
    transform: scaleY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-menu a:hover::before {
    transform: scaleY(1);
}

/* Custom Scrollbar for Dropdown */
.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 10px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #FF2D78, #00F5FF);
}

.genre-count-small {
    font-size: 12px;
    color: var(--text-muted);
    float: right;
    opacity: 0.7;
}

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

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 8px 15px;
    transition: all 0.3s;
}

.search-box:focus-within {
    border-color: var(--cyan-glow);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.2);
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    width: 200px;
    font-size: 14px;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
}

.search-box button:hover {
    color: var(--cyan-glow);
}

.btn-login {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 30px rgba(255, 45, 120, 0.5);
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
}

/* Secondary Nav */
.secondary-nav {
    display: flex;
    gap: 30px;
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
}

.secondary-nav a {
    color: var(--text-muted);
    font-size: 14px;
    transition: color 0.3s;
    position: relative;
}

.secondary-nav a:hover,
.secondary-nav a.active {
    color: var(--cyan-glow);
}

.secondary-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gradient);
}

/* Utility Bar */
.utility-bar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}

.utility-nav {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
}

.utility-link {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    padding: 6px 12px;
    border-radius: 6px;
    position: relative;
}

.utility-link:hover {
    color: var(--cyan-glow);
    background: rgba(0, 245, 255, 0.1);
}

.utility-link:active {
    color: var(--primary-color);
    background: rgba(255, 45, 120, 0.1);
}

/* Hero Banner */
.hero-banner {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-bottom: 50px;
}

.hero-slider {
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s;
}

.hero-slide.active {
    opacity: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://4kwallpapers.com/images/wallpapers/demon-slayer-3840x2160-22988.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(to bottom, transparent, var(--bg-dark));
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 50px 0;
}

.hero-info {
    max-width: 600px;
    z-index: 10;
    position: relative;
}

.hero-badge {
    display: inline-block;
    background: var(--badge-color);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.8);
}

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

.hero-meta span {
    color: var(--text-muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.hero-score .fa-star {
    color: #f59e0b;
}

.hero-description {
    color: var(--text-body);
    margin-bottom: 30px;
    line-height: 1.8;
    font-size: 15px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.hero-poster {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55%;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    display: block;
    mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 70%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 70%, rgba(0,0,0,0) 100%);
}

.btn {
    padding: 12px 30px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(124, 58, 237, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 20;
}

.hero-controls button {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.hero-controls button:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.hero-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.hero-indicator {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s;
}

.hero-indicator.active {
    background: var(--primary-color);
}

/* Content Sections */
.content-section {
    margin-bottom: 50px;
    position: relative;
}

/* Netflix-style scroll arrows */
.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 50px;
    height: 100px;
    cursor: pointer;
    z-index: 50;
    font-size: 24px;
    opacity: 0;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-section:hover .scroll-arrow {
    opacity: 1;
}

.scroll-arrow:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.scroll-arrow.left {
    left: 0;
    border-radius: 0 8px 8px 0;
}

.scroll-arrow.right {
    right: 0;
    border-radius: 8px 0 0 8px;
}

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

.section-title {
    font-size: 28px;
    font-weight: bold;
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 28px;
    background: var(--primary-color);
    border-radius: 2px;
}

.view-all {
    color: var(--primary-color);
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-all:hover {
    gap: 12px;
}

.filter-tabs {
    display: flex;
    gap: 10px;
}

.filter-tab {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Anime Grid - 9anime Style */
.anime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    padding: 0;
}

/* Blog Grid - Better layout for blog cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 0;
}

.blog-grid .anime-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-grid .anime-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    border-color: var(--primary-color);
}

.blog-grid .anime-image {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 0;
}

.blog-grid .anime-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-grid .anime-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    min-height: auto;
}

.blog-grid .anime-meta {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.blog-grid .anime-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.anime-card {
    background: transparent;
    border-radius: 8px;
    overflow: visible;
    cursor: pointer;
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

/* Netflix hover card details */
.anime-card-details {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    padding: 12px;
    border-radius: 0 0 8px 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    z-index: 101;
}

.anime-card-wrapper:hover .anime-card-details {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.anime-card-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.anime-card-actions button {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.play-btn {
    background: white;
    color: black;
}

.play-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

.add-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.add-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.anime-card-info {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.5;
}

.anime-card-genres {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.genre-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    color: var(--text-muted);
}

.anime-card-image {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio for Netflix style */
    overflow: hidden;
    border-radius: 8px;
    background: var(--bg-card);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.anime-card-wrapper:hover .anime-card-image {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8);
    border-radius: 8px 8px 0 0;
}

.anime-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    /* Ensure images are always visible */
    display: block;
    opacity: 1;
}

/* Image loading skeleton effect */
.anime-card-image img[src=""] {
    background: linear-gradient(
        90deg,
        #1a1a1a 0%,
        #2a2a2a 20%,
        #2a2a2a 40%,
        #1a1a1a 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Image loading state - show shimmer effect while loading */
.anime-card-image img:not([src*="data:image"]) {
    background: linear-gradient(
        90deg,
        #1a1a1a 0%,
        #2a2a2a 20%,
        #2a2a2a 40%,
        #1a1a1a 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Stop shimmer once image is fully loaded */
.anime-card-image img.loaded {
    animation: none;
    background: transparent;
}

.anime-card:hover .anime-card-image img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.anime-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255, 45, 120, 0.95);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.anime-score {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.anime-score .fa-star {
    color: #fbbf24;
    font-size: 9px;
}

.anime-ep-count {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Video Preview Styles - Netflix Style */
.video-preview-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease 0.8s, visibility 0.5s ease 0.8s;
    z-index: 5;
    border-radius: 8px;
    overflow: hidden;
}

.anime-card-wrapper:hover .video-preview-container {
    opacity: 1;
    visibility: visible;
}

.video-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Mute button for video preview */
.video-mute-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s;
}

.anime-card-wrapper:hover .video-mute-btn {
    opacity: 1;
}

.video-mute-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

/* Ensure video is above image but below badges */
.anime-card-image .anime-badge,
.anime-card-image .anime-score,
.anime-card-image .anime-ep-count {
    z-index: 15;
}

.anime-card-content {
    padding: 10px 4px 0;
}

.anime-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    min-height: 2.7em;
    color: var(--text-primary);
    transition: color 0.2s;
}

.anime-card:hover .anime-title {
    color: var(--cyan-glow);
}

.anime-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Netflix-Style Horizontal Scrolling Layout */
.anime-cards-grid {
    display: flex;
    gap: 8px;
    padding: 0 50px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    position: relative;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 30px;
    padding-top: 10px;
}

.anime-cards-grid::-webkit-scrollbar {
    display: none;
}

/* Netflix-style card container */
.anime-card-wrapper {
    min-width: 280px;
    max-width: 280px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.anime-card-wrapper:hover {
    transform: scale(1.4) translateY(-10px);
    z-index: 100;
    min-width: 350px;
    max-width: 350px;
}

/* Adjust spacing on hover for neighboring cards */
.anime-card-wrapper:hover ~ .anime-card-wrapper {
    transform: translateX(70px);
}

.anime-cards-grid:has(.anime-card-wrapper:hover) .anime-card-wrapper {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card overlay badges */
.card-quality-badge,
.card-sub-badge {
    position: absolute;
    top: 8px;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 3;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-quality-badge {
    right: 8px;
    background: rgba(16, 185, 129, 0.95);
    color: white;
}

.card-sub-badge {
    left: 8px;
    background: rgba(139, 92, 246, 0.95);
    color: white;
}

.card-episode-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.85);
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    z-index: 3;
}

/* Section title with icons */
.section-title i {
    margin-right: 10px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Skeleton Loading */
.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    width: 100%;
}

.skeleton-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    animation: pulse 1.5s infinite;
}

.skeleton-image {
    padding-top: 140%;
    background: linear-gradient(90deg, #1a1a2e 25%, #252538 50%, #1a1a2e 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-content {
    padding: 12px;
}

.skeleton-title {
    height: 14px;
    background: linear-gradient(90deg, #1a1a2e 25%, #252538 50%, #1a1a2e 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-meta {
    height: 12px;
    background: linear-gradient(90deg, #1a1a2e 25%, #252538 50%, #1a1a2e 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    width: 60%;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Anime Content Article Section */
.anime-content-article {
    background: var(--bg-card);
    padding: 60px 0;
    margin-top: 60px;
}

.anime-article {
    max-width: 1000px;
    margin: 0 auto;
}

.anime-article h2 {
    color: var(--text-primary);
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    background: var(--logo-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.anime-article h3 {
    color: var(--text-primary);
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.article-content {
    font-size: 1.1em;
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 20px;
    color: var(--text-body);
    text-align: justify;
}

.article-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Responsive adjustments for article */
@media (max-width: 768px) {
    .anime-article h2 {
        font-size: 1.8em;
    }

    .anime-article h3 {
        font-size: 1.4em;
    }

    .article-content {
        font-size: 1em;
    }

    .article-content p {
        text-align: left;
    }
}

/* Footer */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 50px 0 30px;
    margin-top: 80px;
}

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

.footer-column h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 18px;
}

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

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

.footer-column ul li a {
    color: var(--text-secondary);
    transition: color 0.3s;
    font-size: 14px;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.footer-column p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.footer-bottom a {
    color: var(--primary-color);
}

.disclaimer {
    margin-top: 15px;
    color: var(--text-muted);
    font-size: 12px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 16px;
    max-width: 450px;
    width: 100%;
    padding: 40px;
    position: relative;
    border: 1px solid var(--border-color);
    animation: modalSlideIn 0.3s;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-content h2 {
    margin-bottom: 30px;
    font-size: 28px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
}

.auth-form input {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.btn-block {
    width: 100%;
    margin-top: 10px;
}

.form-footer {
    margin-top: 25px;
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-footer a {
    color: var(--primary-color);
    transition: color 0.3s;
}

.form-footer a:hover {
    color: var(--primary-dark);
}

/* Responsive */
@media (max-width: 1024px) {
    .anime-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }

    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 24px;
    }

    .anime-cards-grid {
        padding: 0 20px;
    }

    .anime-card-wrapper {
        min-width: 220px;
        max-width: 220px;
    }

    .anime-card-wrapper:hover {
        transform: scale(1.2) translateY(-10px);
        min-width: 260px;
        max-width: 260px;
    }

    .anime-card-wrapper:hover ~ .anime-card-wrapper {
        transform: translateX(40px);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .main-nav {
        display: none;
    }

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

    .search-box input {
        width: 150px;
    }

    .secondary-nav {
        gap: 15px;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .secondary-nav::-webkit-scrollbar {
        height: 3px;
    }

    .secondary-nav::-webkit-scrollbar-track {
        background: var(--bg-darker);
    }

    .secondary-nav::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 2px;
    }

    .hero-banner {
        height: 400px;
    }

    .hero-title {
        font-size: 32px;
    }

    .anime-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .anime-cards-grid {
        padding: 0 10px;
    }

    .anime-card-wrapper {
        min-width: 180px;
        max-width: 180px;
    }

    .anime-card-wrapper:hover {
        transform: scale(1.15) translateY(-5px);
        min-width: 200px;
        max-width: 200px;
    }

    .anime-card-wrapper:hover ~ .anime-card-wrapper {
        transform: translateX(20px);
    }

    .scroll-arrow {
        width: 40px;
        height: 80px;
        font-size: 18px;
    }

    .section-title {
        font-size: 22px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 10px 0;
    }

    .logo {
        font-size: 24px;
    }

    .search-box {
        width: 100%;
        order: 3;
    }

    .search-box input {
        width: 100%;
    }

    .hero-banner {
        height: 300px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-description {
        display: none;
    }

    .anime-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .modal-content {
        padding: 30px 20px;
    }
}

/* Continue Watching Styles */
.continue-watching-card .continue-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 8px;
}

.continue-progress-text {
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
}

.continue-watching-full-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 600px;
    overflow-y: auto;
}

.continue-watching-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.continue-watching-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.continue-watching-poster {
    width: 120px;
    height: 170px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

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

.continue-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.continue-watching-item:hover .continue-play-overlay {
    opacity: 1;
}

.continue-play-overlay i {
    font-size: 36px;
    color: var(--primary-color);
}

.continue-watching-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.continue-watching-info h3 {
    font-size: 18px;
    margin: 0;
    color: var(--text-primary);
}

.continue-watching-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: var(--text-muted);
}

.continue-episode {
    color: var(--primary-color);
    font-weight: 600;
}

.continue-remove-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 59, 92, 0.1);
    border: 1px solid rgba(255, 59, 92, 0.3);
    color: #ff3b5c;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
}

.continue-watching-item:hover .continue-remove-btn {
    opacity: 1;
}

.continue-remove-btn:hover {
    background: rgba(255, 59, 92, 0.2);
    border-color: #ff3b5c;
}

/* Watchlist Styles */
.modal-large {
    max-width: 1200px;
}

.watchlist-container,
.continue-watching-container {
    max-height: 600px;
    overflow-y: auto;
    padding: 10px 0;
}

/* Hover Overlay Effect - 9anime Style */
.anime-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.anime-card:hover .anime-card-image::before {
    opacity: 1;
}

/* Play Button Overlay */
.anime-card-image::after {
    content: '\f04b';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 32px;
    color: white;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.anime-card:hover .anime-card-image::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.9;
}

.watchlist-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 59, 92, 0.95);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.anime-card:hover .watchlist-remove-btn {
    opacity: 1;
}

.watchlist-remove-btn:hover {
    background: #ff1744;
    transform: scale(1.15);
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 80px;
    right: -400px;
    background: rgba(30, 30, 40, 0.98);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    transition: right 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.notification.show {
    right: 20px;
}

.notification i {
    font-size: 20px;
}

.notification-success {
    border-left-color: #4caf50;
}

.notification-success i {
    color: #4caf50;
}

.notification-error {
    border-left-color: #ff3b5c;
}

.notification-error i {
    color: #ff3b5c;
}

.notification-warning {
    border-left-color: #ff9800;
}

.notification-warning i {
    color: #ff9800;
}

.notification-info {
    border-left-color: var(--primary-color);
}

.notification-info i {
    color: var(--primary-color);
}

.notification span {
    flex: 1;
    font-size: 14px;
}

/* User Dropdown Menu */
.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(30, 30, 40, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.user-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-color);
}

.user-dropdown-menu a i {
    width: 20px;
    text-align: center;
}

/* Mobile Responsiveness for New Features */
@media (max-width: 768px) {
    .continue-watching-item {
        flex-direction: column;
        text-align: center;
    }

    .continue-watching-poster {
        width: 100%;
        height: 250px;
    }

    .continue-remove-btn {
        opacity: 1;
    }

    .watchlist-remove-btn {
        opacity: 1;
    }

    .notification {
        min-width: auto;
        max-width: calc(100% - 40px);
    }

    .modal-large {
        max-width: 95%;
    }
}

/* Blog Post Images */
.blog-post-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
    display: block;
}

/* Contact Page Styles */
.utility-page {
    padding: 120px 0 60px;
    min-height: 100vh;
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-header h1 {
    font-size: 3rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.page-header h1 i {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header .subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.contact-info-section h2,
.contact-form-section h2,
.faq-quick-links h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.contact-info-section p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.contact-method {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(255, 45, 120, 0.2);
}

.method-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.method-details h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.method-details p {
    color: var(--text-muted);
    margin-bottom: 10px;
    font-size: 1rem;
}

.response-time {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--warning);
    padding: 5px 12px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.social-links a {
    color: var(--text-primary);
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.social-links a:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    transform: translateY(-2px);
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 45, 120, 0.4);
}

/* Contact Form */
.contact-form-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--bg-dark);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 18px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 45, 120, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group select {
    cursor: pointer;
}

.contact-form button[type="submit"] {
    align-self: flex-start;
    margin-top: 10px;
    padding: 14px 32px;
    font-size: 1.05rem;
}

/* FAQ Quick Links */
.faq-quick-links {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(255, 45, 120, 0.05), rgba(181, 55, 242, 0.05));
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.faq-quick-links h2 {
    margin-bottom: 10px;
}

.faq-quick-links p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.faq-quick-links a:not(.quick-link) {
    color: var(--primary-color);
    text-decoration: underline;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.quick-link {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.quick-link:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 45, 120, 0.2);
}

.quick-link i {
    font-size: 2.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quick-link span {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

/* Mobile Responsiveness for Contact Page */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .page-header .subtitle {
        font-size: 1rem;
    }

    .contact-methods {
        grid-template-columns: 1fr;
    }

    .contact-method {
        flex-direction: column;
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-section {
        padding: 25px;
    }

    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-form button[type="submit"] {
        width: 100%;
    }
}

/* ============================================
   FAQ PAGE STYLES
   ============================================ */

/* FAQ Search Bar */
.faq-search {
    position: relative;
    max-width: 700px;
    margin: 40px auto;
}

.faq-search input {
    width: 100%;
    padding: 18px 24px 18px 56px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.faq-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 45, 120, 0.1),
                0 8px 24px rgba(0, 0, 0, 0.3);
}

.faq-search i {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
    pointer-events: none;
}

/* FAQ Categories */
.faq-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 40px 0;
    padding: 0 20px;
}

.faq-category {
    padding: 12px 28px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.faq-category:hover {
    border-color: var(--primary-color);
    background: rgba(255, 45, 120, 0.1);
    transform: translateY(-2px);
}

.faq-category.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 16px rgba(255, 45, 120, 0.3);
}

/* FAQ Content */
.faq-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* FAQ Sections */
.faq-section {
    margin-bottom: 50px;
}

.faq-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-section h2 i {
    font-size: 1.8rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* FAQ Items */
.faq-item {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(255, 45, 120, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.faq-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 8px 32px rgba(255, 45, 120, 0.2);
}

/* FAQ Question */
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    cursor: pointer;
    user-select: none;
    gap: 20px;
}

.faq-question h3 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin: 0;
    font-weight: 600;
    flex: 1;
    transition: color 0.3s ease;
}

.faq-item.active .faq-question h3 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-question i {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--primary-color);
}

/* FAQ Answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 28px;
    transition: max-height 0.4s ease, padding 0.4s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 28px 28px 28px;
    opacity: 1;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0 0 16px 0;
    font-size: 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    margin: 16px 0;
    padding-left: 24px;
}

.faq-answer li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 10px;
    font-size: 1rem;
}

.faq-answer li:last-child {
    margin-bottom: 0;
}

.faq-answer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.faq-answer a:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

/* FAQ Help Section */
.faq-help-section {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(255, 45, 120, 0.08), rgba(181, 55, 242, 0.08));
    border-radius: 24px;
    border: 2px solid var(--border-color);
    margin-top: 60px;
}

.faq-help-section h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-help-section p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 32px;
}

.help-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.help-buttons .btn {
    padding: 14px 32px;
    font-size: 1.05rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.help-buttons .btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(255, 45, 120, 0.3);
}

.help-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 45, 120, 0.4);
}

.help-buttons .btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.help-buttons .btn-secondary:hover {
    border-color: var(--secondary-color);
    background: rgba(181, 55, 242, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(181, 55, 242, 0.2);
}

/* Mobile Responsiveness for FAQ Page */
@media (max-width: 768px) {
    .faq-search {
        margin: 30px auto;
    }

    .faq-search input {
        padding: 16px 20px 16px 50px;
        font-size: 1rem;
    }

    .faq-categories {
        margin: 30px 0;
        gap: 10px;
    }

    .faq-category {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .faq-section h2 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    .faq-question {
        padding: 20px;
    }

    .faq-question h3 {
        font-size: 1rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 20px 20px 20px;
    }

    .faq-answer p,
    .faq-answer li {
        font-size: 0.95rem;
    }

    .faq-help-section {
        padding: 40px 25px;
        margin-top: 40px;
    }

    .faq-help-section h2 {
        font-size: 1.8rem;
    }

    .faq-help-section p {
        font-size: 1rem;
    }

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

    .help-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Unwatchable Video Modal Styles */
.modal-video {
    max-width: 1000px;
    padding: 0;
    background: #000;
}

.video-player-container {
    position: relative;
    width: 100%;
}

.fake-video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    padding: 40px 20px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}

.fake-play-pause {
    cursor: pointer;
    font-size: 20px;
    transition: color 0.2s;
}

.fake-play-pause:hover {
    color: var(--primary-color);
}

.fake-progress-bar {
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
}

.fake-progress {
    height: 100%;
    width: 0%;
    background: var(--primary-color);
    transition: width 0.3s;
}

.fake-time {
    font-size: 14px;
    font-weight: 600;
    min-width: 100px;
    text-align: center;
}

.fake-volume,
.fake-fullscreen {
    cursor: pointer;
    font-size: 18px;
    transition: color 0.2s;
}

.fake-volume:hover,
.fake-fullscreen:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .modal-video {
        max-width: 95%;
    }

    .fake-video-controls {
        padding: 20px 10px 10px;
        gap: 10px;
    }

    .fake-time {
        font-size: 12px;
        min-width: 80px;
    }
}

/* Poster Cards with Hover Play Buttons */
.poster-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-card);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.poster-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
    z-index: 10;
}

.poster-card-image {
    position: relative;
    padding-top: 150%; /* 2:3 aspect ratio for poster style */
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.poster-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

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

/* Dark overlay on hover */
.poster-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: all 0.3s ease;
    z-index: 1;
}

.poster-card:hover .poster-card-image::before {
    background: rgba(0, 0, 0, 0.5);
}

/* Fake Play Button - Hidden by default */
.fake-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.fake-play-button i {
    font-size: 28px;
    color: #000;
    margin-left: 4px; /* Optical centering */
}

.poster-card:hover .fake-play-button {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.fake-play-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Poster title overlay */
.poster-card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 12px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 70%, transparent 100%);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    z-index: 1;
    transition: all 0.3s ease;
}

.poster-card:hover .poster-card-title {
    padding-bottom: 16px;
}

/* Poster metadata */
.poster-card-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 6px;
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.8;
}

.poster-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.poster-card-meta .fa-star {
    color: #ffd700;
}

/* Badge on poster */
.poster-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 45, 120, 0.95);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Rank badge on poster */
.poster-rank {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255, 215, 0, 0.95);
    color: #1a1a2e;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Poster info below card */
.poster-info {
    padding: 12px 4px 0;
}

.poster-info h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 6px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.poster-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin: 4px 0;
}

.poster-studio {
    font-size: 10px;
    color: var(--primary-color);
    margin: 2px 0 0;
    font-weight: 500;
}

/* Grid layout for poster cards */
.poster-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 0;
}

@media (max-width: 768px) {
    .poster-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .fake-play-button {
        width: 50px;
        height: 50px;
    }

    .fake-play-button i {
        font-size: 20px;
    }

    .poster-card-title {
        font-size: 12px;
        padding: 15px 10px 10px;
    }
}

/* Poster image container for Top 100 page */
.poster-image {
    position: relative;
    padding-top: 150%; /* 2:3 aspect ratio */
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.poster-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

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

/* Poster rank badge */
.poster-rank {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 45, 120, 0.95);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Poster info section */
.poster-info {
    padding: 12px;
    background: var(--bg-card);
}

.poster-info h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 6px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.poster-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

/* Movie Cards Grid */
.movie-cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    padding: 20px 0;
    justify-items: center;
    justify-content: center;
    margin: 0 auto;
}

.movie-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.movie-card::after {
    content: '\f04b';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 64px;
    color: white;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    text-shadow: 0 0 30px rgba(255, 45, 120, 0.8),
                 0 0 60px rgba(181, 55, 242, 0.6),
                 0 4px 20px rgba(0, 0, 0, 0.9);
    pointer-events: none;
    background: linear-gradient(135deg, #FF2D78, #B537F2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(255, 45, 120, 0.8));
}

/* Hide play button for coming soon cards */
.coming-soon-section .movie-card::after {
    display: none;
}

/* Coming soon cards as links */
.coming-soon-section .movie-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.coming-soon-section .movie-card:hover {
    text-decoration: none;
}

.movie-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 40px rgba(255, 45, 120, 0.4),
                0 0 60px rgba(181, 55, 242, 0.3);
    border-color: var(--primary-color);
}

.movie-card:hover::after {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
    animation: pulse-glow 1.5s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(255, 45, 120, 0.8));
    }
    50% {
        filter: drop-shadow(0 0 35px rgba(255, 45, 120, 1))
                drop-shadow(0 0 50px rgba(181, 55, 242, 0.8));
    }
}

.movie-card-poster {
    position: relative;
    width: 100%;
    padding-top: 150%; /* 2:3 aspect ratio for portrait */
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

/* Ensure consistent poster sizing for all cards */
.movie-poster {
    position: relative;
    width: 100%;
    padding-top: 150%; /* 2:3 aspect ratio for portrait */
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.movie-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-card-poster::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: all 0.3s ease;
    z-index: 5;
}

.movie-card:hover .movie-card-poster::before {
    background: rgba(0, 0, 0, 0.5);
}

.movie-card-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.movie-card:hover .movie-card-poster img {
    transform: scale(1.08);
    filter: brightness(0.85);
}

.movie-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    padding: 6px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
    color: white;
    z-index: 2;
}

.movie-rating .fa-star {
    color: #fbbf24;
    font-size: 11px;
}

.movie-year {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(255, 45, 120, 0.95);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    z-index: 2;
}

.movie-card-info {
    padding: 16px;
}

.movie-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.movie-genre-tag {
    background: rgba(255, 45, 120, 0.15);
    color: var(--primary-color);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.movie-card-description {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* Styles for simplified movie cards (Popular/Coming Soon) */
.movie-poster {
    position: relative;
    width: 100%;
    padding-top: 150%; /* 2:3 aspect ratio */
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.movie-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.movie-card:hover .movie-poster img {
    transform: scale(1.08);
    filter: brightness(0.85);
}

.movie-poster::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: all 0.3s ease;
    z-index: 5;
}

.movie-card:hover .movie-poster::before {
    background: rgba(0, 0, 0, 0.5);
}

.movie-title {
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin: 0;
    line-height: 1.4;
}

.movie-date {
    padding: 0 12px 12px 12px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin: 0;
    font-style: italic;
}

@media (max-width: 1200px) {
    .movie-cards-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .movie-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .movie-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .movie-card-info {
        padding: 12px;
    }

    .movie-card-title {
        font-size: 14px;
    }

    .movie-card-description {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }

    .movie-card::after {
        font-size: 32px;
    }
}

/* Genre Page Styles */
.genre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.genre-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 16px 0;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.genre-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.genre-card:hover::before {
    opacity: 1;
}

.genre-card:hover {
    transform: translateX(5px);
}

.genre-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.genre-card:hover .genre-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 24px rgba(255, 45, 120, 0.4);
}

.genre-icon i {
    font-size: 2rem;
    color: white;
}

.genre-info {
    flex: 1;
}

.genre-info h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0 0 6px 0;
    font-weight: 700;
}

.genre-count {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

.genre-arrow {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.genre-card:hover .genre-arrow {
    color: var(--primary-color);
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .genre-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .genre-card {
        padding: 12px 0;
    }

    .genre-icon {
        width: 60px;
        height: 60px;
    }

    .genre-icon i {
        font-size: 1.5rem;
    }

    .genre-info h3 {
        font-size: 1.2rem;
    }

    .genre-count {
        font-size: 0.9rem;
    }
}
