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

:root {
    --primary-color: #FF6B6B;
    --primary-color-bright: #FF5252;
    --primary-color-dark: #E74C3C;
    --accent-green: #52C41A;
    --accent-green-bright: #6DD230;
    --accent-red: #FF4444;
    --secondary-color: #1a1a2e;
    --text-color: #ffffff;
    --text-secondary: #b8b8d1;
    --background: #0f0f1e;
    --card-background: #16213e;
    --hover-color: #1f2e4d;
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --tomato-gradient: linear-gradient(135deg, #FF6B6B 0%, #FF5252 50%, #E74C3C 100%);
    --anime-gradient: linear-gradient(135deg, #FF6B6B 0%, #FF5252 50%, #FF4444 100%);
    --leaves-gradient: linear-gradient(135deg, #52C41A 0%, #6DD230 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--background);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(231, 76, 60, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(82, 196, 26, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(192, 57, 43, 0.03) 0%, transparent 50%);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* SEO H1 - Visible and prominent */
.page-h1 {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 900;
    background: var(--anime-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.8s ease-out;
    letter-spacing: -0.5px;
}

.page-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

@media (max-width: 768px) {
    .page-h1 {
        font-size: 1.8rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #000000 0%, #1a0000 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-screen-content {
    text-align: center;
    z-index: 1;
}

.loading-logo {
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
    position: relative;
    animation: logoEntrance 1s ease-out;
}

@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-180deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.loading-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(229, 9, 20, 0.6));
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 30px rgba(229, 9, 20, 0.6));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 50px rgba(229, 9, 20, 1));
    }
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

.loading-text {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    animation: slideUp 0.8s ease-out;
}

.loading-subtext {
    color: var(--text-secondary);
    animation: slideUp 0.8s ease-out 0.2s backwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: float 20s linear infinite;
    opacity: 0.5;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Landing Hero Section */
.landing-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 25%, #16213e 50%, #1a1a2e 75%, #0f0f1e 100%);
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 107, 107, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(82, 196, 26, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 82, 82, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.landing-content-wrapper {
    width: 100%;
    max-width: 100%;
}

.landing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 107, 107, 0.2), transparent 70%);
    animation: pulseOverlay 8s ease-in-out infinite;
}

@keyframes pulseOverlay {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

.landing-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: fadeInScale 1s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.landing-logo-big {
    margin-bottom: 2rem;
}

.landing-logo-compact {
    margin-bottom: 2rem;
    animation: bounceIn 1s ease-out;
}

.tomato-mascot {
    position: relative;
    display: inline-block;
}

.landing-logo-img {
    width: 180px;
    height: 180px;
    filter: drop-shadow(0 10px 40px rgba(255, 107, 107, 0.8)) 
            drop-shadow(0 0 60px rgba(255, 82, 82, 0.6));
    animation: floatMascot 4s ease-in-out infinite;
    transition: var(--transition);
}

.landing-logo-img:hover {
    transform: scale(1.1) rotate(10deg);
    filter: drop-shadow(0 15px 50px rgba(255, 107, 107, 1)) 
            drop-shadow(0 0 80px rgba(255, 82, 82, 0.8));
}

@keyframes floatMascot {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(-3deg);
    }
    50% {
        transform: translateY(-25px) rotate(0deg);
    }
    75% {
        transform: translateY(-15px) rotate(3deg);
    }
}

/* Cute sparkles around mascot */
.tomato-mascot::before,
.tomato-mascot::after {
    content: '✨';
    position: absolute;
    font-size: 2rem;
    animation: sparkle 2s ease-in-out infinite;
    opacity: 0;
}

.tomato-mascot::before {
    top: 10%;
    left: -20%;
    animation-delay: 0s;
}

.tomato-mascot::after {
    top: 20%;
    right: -20%;
    animation-delay: 1s;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
}

.landing-title {
    font-size: 3.2rem;
    font-weight: 900;
    background: var(--tomato-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: slideInUp 0.8s ease-out 0.3s backwards;
    line-height: 1.2;
    text-shadow: none;
    letter-spacing: -1px;
    font-family: 'Inter', 'Comic Sans MS', sans-serif;
}

.landing-tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 2rem;
    animation: slideInUp 0.8s ease-out 0.4s backwards;
    line-height: 1.6;
}

.landing-features-compact {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    animation: slideInUp 0.8s ease-out 0.5s backwards;
}

.feature-compact {
    color: var(--text-color);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.25), rgba(255, 82, 82, 0.2));
    border-radius: 30px;
    border: 2px solid rgba(255, 107, 107, 0.6);
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    transition: var(--transition);
}

.feature-compact:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.6);
    border-color: rgba(255, 107, 107, 0.9);
}

.landing-platforms {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-secondary);
    animation: slideInUp 0.8s ease-out 0.6s backwards;
}

.landing-platforms span {
    white-space: nowrap;
}

.landing-platforms span:not(:nth-child(even)) {
    font-weight: 500;
}

.explore-btn {
    padding: 1.3rem 3.5rem;
    background: var(--tomato-gradient);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: var(--transition);
    box-shadow: 0 10px 40px rgba(255, 107, 107, 0.6),
                0 0 60px rgba(255, 82, 82, 0.3);
    animation: slideInUp 0.8s ease-out 0.7s backwards, glowPulseStrong 2.5s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes glowPulseStrong {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(255, 107, 107, 0.6),
                    0 0 60px rgba(255, 82, 82, 0.3);
    }
    50% {
        box-shadow: 0 10px 50px rgba(255, 107, 107, 0.9),
                    0 0 80px rgba(255, 82, 82, 0.6);
    }
}

.explore-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.explore-btn:hover::before {
    left: 100%;
}

.explore-btn:hover {
    transform: translateY(-8px) scale(1.08);
    box-shadow: 0 15px 60px rgba(255, 107, 107, 1),
                0 0 100px rgba(255, 82, 82, 0.8);
    filter: brightness(1.15);
}

.explore-btn svg {
    transition: transform 0.3s ease;
}

.explore-btn:hover svg {
    transform: translateX(5px);
}

.secondary-btn {
    padding: 1rem 2.5rem;
    background: transparent;
    color: white;
    border: 3px solid var(--primary-color);
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: var(--transition);
    animation: slideInUp 0.8s ease-out 0.8s backwards;
    text-decoration: none;
    margin-top: 1rem;
    backdrop-filter: blur(10px);
    background: rgba(255, 107, 107, 0.15);
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
}

.secondary-btn:hover {
    background: var(--tomato-gradient);
    border-color: transparent;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 35px rgba(255, 107, 107, 0.6);
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: slideInUp 0.8s ease-out 0.8s backwards;
}

.badge {
    font-size: 0.9rem;
    color: var(--accent-green);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(82, 196, 26, 0.5);
}

/* Landing SEO Section - Below the fold */
.landing-seo-section {
    position: relative;
    z-index: 1;
    background: var(--card-background);
    padding: 3rem 2rem;
    width: 100%;
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.seo-card {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.08), rgba(192, 57, 43, 0.06));
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 2px solid rgba(231, 76, 60, 0.25);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.seo-card:hover {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.15), rgba(192, 57, 43, 0.12));
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(231, 76, 60, 0.4);
}

.seo-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.seo-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.seo-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

.seo-card strong {
    color: var(--text-color);
    font-weight: 600;
}

.seo-keywords-footer {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(192, 57, 43, 0.08));
    border: 2px solid rgba(231, 76, 60, 0.35);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.seo-keywords-footer p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.8;
    margin: 0;
}

.seo-keywords-footer strong {
    color: var(--text-color);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Main content */
.main {
    opacity: 1;
    transform: translateY(0);
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: floatShape 20s ease-in-out infinite;
    opacity: 0.1;
}

@keyframes floatShape {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(100px, -100px) scale(1.2);
    }
    66% {
        transform: translate(-50px, 50px) scale(0.8);
    }
}

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

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.8) 100%);
    backdrop-filter: blur(10px);
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header.scrolled {
    background: rgba(0,0,0,0.95);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.logo {
    cursor: pointer;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 900;
    background: var(--anime-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.5px;
}

.logo-img {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(229, 9, 20, 0.6));
    animation: logoFloat 3s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.nav {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    background: transparent;
    color: var(--text-secondary);
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-btn span {
    position: relative;
    z-index: 2;
}

.nav-btn-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(229, 9, 20, 0.3), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.nav-btn:hover .nav-btn-bg {
    width: 200px;
    height: 200px;
}

.nav-btn:hover {
    color: var(--text-color);
    transform: translateY(-2px);
}

.nav-btn.active {
    color: var(--text-color);
}

.nav-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: var(--anime-gradient);
    border-radius: 2px;
    animation: expandWidth 0.3s ease-out;
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 60%;
    }
}

.favorites-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--anime-gradient);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    animation: pop 0.3s ease;
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.6);
}

@keyframes pop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.search-container {
    display: flex;
    align-items: center;
    background: var(--card-background);
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
    transition: var(--transition);
    flex: 1;
    max-width: 400px;
}

.search-container:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.4);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
}

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

.search-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0.25rem;
    transition: var(--transition);
}

.search-btn:hover {
    color: var(--text-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-out;
    transition: background-image 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%),
                linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(231, 76, 60, 0.25), transparent 50%);
    animation: pulseGradient 8s ease-in-out infinite;
}

@keyframes pulseGradient {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    padding: 0 2rem;
    margin-left: 4rem;
    animation: slideInLeft 0.8s ease-out;
}

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

.hero-badge {
    display: inline-block;
    background: var(--anime-gradient);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: bounceIn 0.8s ease-out 0.3s backwards;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    animation: slideInLeft 0.8s ease-out 0.2s backwards;
}

.hero-overview {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    animation: slideInLeft 0.8s ease-out 0.3s backwards;
}

.hero-info {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    animation: slideInLeft 0.8s ease-out 0.4s backwards;
}

.hero-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: slideInLeft 0.8s ease-out 0.5s backwards;
}

.hero-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

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

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

.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    background: linear-gradient(135deg, #C0392B 0%, #E74C3C 50%, #FF6B6B 100%);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.7);
}

.btn-shine {
    position: absolute;
    top: -50%;
    left: -100%;
    width: 30%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-25deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0%, 100% {
        left: -100%;
    }
    50% {
        left: 150%;
    }
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: var(--text-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.btn-icon {
    padding: 0.8rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.btn-icon:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1) rotate(5deg);
}

.btn-icon.favorited {
    background: var(--anime-gradient);
    animation: heartBeat 0.5s ease;
}

.btn-icon.favorited svg {
    fill: white;
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(1.1);
    }
    75% {
        transform: scale(1.2);
    }
}

/* Main Content */
.main {
    padding: 2rem 0 4rem;
}

/* SEO Content Section */
.seo-content {
    background: var(--card-background);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.seo-text h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.seo-text h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.seo-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.seo-text strong {
    color: var(--text-color);
    font-weight: 600;
}

.seo-text ul {
    margin: 1rem 0 1.5rem 0;
    padding-left: 0;
    list-style: none;
}

.seo-text ul li {
    color: var(--text-secondary);
    line-height: 2;
    padding-left: 0;
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .seo-content {
        padding: 1.5rem;
    }
    
    .seo-text h2 {
        font-size: 1.5rem;
    }
    
    .seo-text h3 {
        font-size: 1.2rem;
    }
    
    .seo-text p,
    .seo-text ul li {
        font-size: 1rem;
    }
}

.filter-section {
    margin-bottom: 2rem;
}

.filter-tabs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-tab {
    background: var(--card-background);
    color: var(--text-secondary);
    border: 2px solid transparent;
    padding: 0.7rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.filter-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(231, 76, 60, 0.5), transparent);
    transition: left 0.5s ease;
}

.filter-tab:hover::before {
    left: 100%;
}

.filter-tab:hover {
    color: var(--text-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.filter-tab.active {
    background: var(--primary-color);
    color: var(--text-color);
    border-color: var(--primary-color);
    animation: tabActivate 0.3s ease;
}

@keyframes tabActivate {
    0% {
        transform: scale(0.9);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Genre Filter */
.genre-filter {
    position: relative;
}

.genre-btn {
    background: var(--card-background);
    color: var(--text-color);
    border: 2px solid var(--primary-color);
    padding: 0.7rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.genre-btn:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.genre-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--card-background);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    min-width: 300px;
    display: none;
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
    animation: dropDown 0.3s ease;
}

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

.genre-dropdown.active {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.genre-item {
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.genre-item:hover {
    background: var(--primary-color);
    transform: scale(1.05);
}

.results-section {
    min-height: 400px;
    position: relative;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.content-card {
    background: var(--card-background);
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    animation: fadeInUp 0.5s ease-out backwards;
}

.content-card:nth-child(1) { animation-delay: 0.05s; }
.content-card:nth-child(2) { animation-delay: 0.1s; }
.content-card:nth-child(3) { animation-delay: 0.15s; }
.content-card:nth-child(4) { animation-delay: 0.2s; }
.content-card:nth-child(5) { animation-delay: 0.25s; }
.content-card:nth-child(6) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.35), rgba(192, 57, 43, 0.25));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

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

.content-card:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 15px 40px rgba(231, 76, 60, 0.6);
}

.content-card-poster {
    transition: var(--transition);
}

.content-card:hover .content-card-poster {
    transform: scale(1.1);
}

.favorite-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0,0,0,0.7);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    opacity: 0;
    transform: scale(0);
    transition: var(--transition);
}

.content-card:hover .favorite-btn {
    opacity: 1;
    transform: scale(1);
}

.favorite-btn:hover {
    background: var(--anime-gradient);
    transform: scale(1.2);
}

.favorite-btn.active {
    opacity: 1;
    transform: scale(1);
    background: var(--anime-gradient);
}

.favorite-btn.active svg {
    fill: white;
}

.content-card-poster {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
}

.content-card-info {
    padding: 1rem;
}

.content-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.content-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 600;
}

.rating.high {
    color: #4ade80;
}

.rating.medium {
    color: #fbbf24;
}

.rating.low {
    color: #f87171;
}

/* Loading */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
    gap: 1rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--card-background);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.no-results {
    text-align: center;
    padding: 4rem 0;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.btn-page {
    padding: 0.7rem 1.5rem;
    background: var(--card-background);
    color: var(--text-color);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-page:hover:not(:disabled) {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.btn-page:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-info {
    font-size: 1rem;
    font-weight: 600;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease-out;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--card-background) 100%);
    border-radius: 20px;
    max-width: 1100px;
    width: 100%;
    max-height: 95vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(255, 107, 107, 0.3);
    border: 2px solid rgba(255, 107, 107, 0.2);
    animation: slideUpModal 0.4s ease-out;
}

@keyframes slideUpModal {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(0,0,0,0.9);
    border: 2px solid rgba(255, 107, 107, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-color);
    transition: var(--transition);
    z-index: 100;
    font-size: 1.5rem;
}

.modal-close:hover {
    background: var(--tomato-gradient);
    border-color: transparent;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.6);
}

.modal-body {
    position: relative;
}

.modal-backdrop {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.modal-backdrop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 450px;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 50%, var(--secondary-color) 100%);
    border-radius: 20px 20px 0 0;
}

.modal-hero-actions {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    z-index: 10;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.modal-action-btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-action-btn.primary {
    background: var(--tomato-gradient);
    color: white;
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.6);
}

.modal-action-btn.primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(255, 107, 107, 0.8);
}

.modal-action-btn.secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.modal-action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.modal-action-btn svg {
    width: 24px;
    height: 24px;
}

.modal-details {
    padding: 2.5rem;
}

.modal-header {
    margin-bottom: 2rem;
}

.modal-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: var(--tomato-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.modal-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.modal-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-meta .rating {
    font-size: 1.3rem;
    font-weight: 700;
}

.modal-overview {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.modal-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.info-item {
    background: rgba(255, 107, 107, 0.08);
    padding: 1.5rem;
    border-radius: 15px;
    border: 2px solid rgba(255, 107, 107, 0.2);
    transition: var(--transition);
}

.info-item:hover {
    background: rgba(255, 107, 107, 0.12);
    border-color: rgba(255, 107, 107, 0.4);
    transform: translateY(-3px);
}

.info-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.info-value {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-color);
}

.modal-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 107, 107, 0.15);
}

.modal-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trailer-container {
    margin: 2rem 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.trailer-container iframe {
    width: 100%;
    height: 500px;
    border: none;
}

.modal-cast {
    margin-top: 2rem;
}

.cast-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

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

.cast-item {
    text-align: center;
    transition: var(--transition);
}

.cast-item:hover {
    transform: translateY(-5px);
}

.cast-photo {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    background: var(--card-background);
    border: 2px solid rgba(255, 107, 107, 0.2);
}

.cast-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.cast-character {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Similar Movies Section */
.similar-movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.similar-movie-card {
    cursor: pointer;
    transition: var(--transition);
    border-radius: 12px;
    overflow: hidden;
    background: var(--card-background);
    border: 2px solid rgba(255, 107, 107, 0.15);
}

.similar-movie-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.4);
    border-color: rgba(255, 107, 107, 0.6);
}

.similar-movie-poster {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
}

.similar-movie-info {
    padding: 0.8rem;
}

.similar-movie-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.similar-movie-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Seasons and Episodes Section */
.seasons-section {
    margin-top: 3rem;
    position: relative;
}

.seasons-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.season-card {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.08) 0%, rgba(231, 76, 60, 0.05) 100%);
    border: 3px solid transparent;
    background-clip: padding-box;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.season-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 3px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.4), rgba(231, 76, 60, 0.6), rgba(192, 57, 43, 0.4));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.6;
    transition: var(--transition);
}

.season-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(255, 107, 107, 0.35);
}

.season-card:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, #FF6B6B, #E74C3C, #C0392B);
}

.season-header {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    background: rgba(26, 26, 46, 0.5);
    backdrop-filter: blur(10px);
}

.season-header:hover {
    background: rgba(255, 107, 107, 0.12);
}

.season-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 3px;
    background: var(--tomato-gradient);
    transition: width 0.4s ease;
}

.season-header:hover::after {
    width: 95%;
}

.season-poster {
    width: 140px;
    height: 210px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid rgba(255, 107, 107, 0.4);
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6),
                0 0 30px rgba(255, 107, 107, 0.3);
    transition: all 0.4s ease;
    position: relative;
}

.season-poster::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, #FF6B6B, #E74C3C, #C0392B);
    border-radius: 15px;
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.season-header:hover .season-poster {
    transform: scale(1.05) translateY(-5px);
    border-color: transparent;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7),
                0 0 50px rgba(255, 107, 107, 0.6);
}

.season-header:hover .season-poster::before {
    opacity: 1;
}

.season-info {
    flex: 1;
}

.season-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.8rem;
    background: var(--tomato-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
    text-shadow: 0 0 30px rgba(255, 107, 107, 0.3);
}

.season-meta {
    font-size: 1.15rem;
    color: #FFD700;
    margin-bottom: 0.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.season-meta::before {
    content: '📺';
    font-size: 1.2rem;
}

.season-date {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.season-overview {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.season-toggle-btn {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(231, 76, 60, 0.3));
    border: 3px solid rgba(255, 107, 107, 0.5);
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    color: var(--text-color);
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.4);
    position: relative;
}

.season-toggle-btn::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #FF6B6B, #E74C3C, #C0392B, #FF6B6B);
    opacity: 0;
    transition: var(--transition);
    animation: rotate 3s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.season-toggle-btn:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.4), rgba(231, 76, 60, 0.5));
    border-color: #FF6B6B;
    transform: scale(1.15);
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.7);
}

.season-toggle-btn:hover::before {
    opacity: 0.6;
}

.season-toggle-btn.active {
    background: var(--tomato-gradient);
    border-color: transparent;
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 10px 40px rgba(255, 107, 107, 0.8);
}

.season-toggle-btn.active::before {
    opacity: 1;
}

.season-toggle-btn svg {
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.episodes-container {
    padding: 0 2rem 2rem;
    background: linear-gradient(180deg, rgba(255, 107, 107, 0.03) 0%, transparent 100%);
}

.loading-episodes {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.spinner-small {
    width: 45px;
    height: 45px;
    border: 5px solid rgba(255, 107, 107, 0.2);
    border-top-color: #FF6B6B;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
}

.no-episodes {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-style: italic;
    font-size: 1.1rem;
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.episode-card {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(30, 30, 50, 0.9) 100%);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 107, 107, 0.2);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    position: relative;
}

.episode-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15), transparent);
    opacity: 0;
    transition: var(--transition);
}

.episode-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.4),
                0 0 50px rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.6);
}

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

.episode-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.08), rgba(231, 76, 60, 0.05));
}

.episode-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.episode-card:hover .episode-thumbnail img {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.episode-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.95), rgba(231, 76, 60, 0.95));
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.6);
}

.episode-play-overlay::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: inherit;
    filter: blur(10px);
    opacity: 0.6;
    z-index: -1;
}

.episode-card:hover .episode-play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
}

.episode-number-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.85));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 800;
    border: 2px solid rgba(255, 107, 107, 0.7);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6),
                0 0 20px rgba(255, 107, 107, 0.4);
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.episode-info {
    padding: 1.5rem;
    background: linear-gradient(180deg, rgba(15, 15, 30, 0.8) 0%, rgba(15, 15, 30, 0.95) 100%);
}

.episode-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.episode-card:hover .episode-title {
    color: #FF6B6B;
}

.episode-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.8rem;
}

.episode-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.episode-rating {
    color: #FFD700;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.episode-overview {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Rating Color Classes */
.rating.high {
    color: var(--accent-green);
}

.rating.medium {
    color: #FFD700;
}

.rating.low {
    color: #FF6B6B;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 4rem;
}

.footer-content {
    text-align: center;
    color: var(--text-secondary);
}

.footer-logo {
    margin-bottom: 1rem;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-logo:hover {
    opacity: 1;
}

.footer-logo span {
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo-img {
    height: 45px;
    width: auto;
    filter: grayscale(0.3);
    transition: var(--transition);
    vertical-align: middle;
}

.footer-logo:hover .footer-logo-img {
    filter: grayscale(0);
}

.footer-content p {
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

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

.footer-links span {
    color: var(--text-secondary);
    opacity: 0.5;
}

.tmdb-credit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: stretch;
    }

    .logo h1 {
        font-size: 1.4rem;
        justify-content: center;
    }

    .logo-img {
        height: 50px;
    }

    .search-container {
        max-width: 100%;
    }

    .hero {
        height: 50vh;
        min-height: 400px;
    }

    .hero-content {
        margin-left: 2rem;
        max-width: 90%;
    }

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

    .hero-overview {
        font-size: 1rem;
    }

    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

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

    .modal-details {
        padding: 1.5rem;
    }

    .loading-logo {
        width: 120px;
        height: 120px;
    }

    .toast-container {
        right: 1rem;
        left: 1rem;
    }

    .toast {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .logo-img {
        height: 45px;
    }

    .hero-content {
        margin-left: 1rem;
    }

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

    .loading-logo {
        width: 100px;
        height: 100px;
    }

    .loading-text {
        font-size: 1.5rem;
    }

    .scroll-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 5rem;
    right: 2rem;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toast {
    background: var(--card-background);
    color: var(--text-color);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.4);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    animation: slideInRight 0.3s ease-out;
    backdrop-filter: blur(10px);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.removing {
    animation: slideOutRight 0.3s ease-out forwards;
}

@keyframes slideOutRight {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.toast-icon {
    font-size: 1.5rem;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.toast-message {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--anime-gradient);
    border: none;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: scale(0);
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.6);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.scroll-top:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.9);
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--card-background) 25%, var(--hover-color) 50%, var(--card-background) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

.skeleton-card {
    background: var(--card-background);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.skeleton-poster {
    width: 100%;
    aspect-ratio: 2/3;
    background: linear-gradient(90deg, var(--card-background) 25%, var(--hover-color) 50%, var(--card-background) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-info {
    padding: 1rem;
}

.skeleton-title {
    height: 20px;
    background: linear-gradient(90deg, var(--card-background) 25%, var(--hover-color) 50%, var(--card-background) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.skeleton-meta {
    height: 15px;
    width: 60%;
    background: linear-gradient(90deg, var(--card-background) 25%, var(--hover-color) 50%, var(--card-background) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-color);
}

::-webkit-scrollbar-thumb {
    background: var(--card-background);
    border-radius: 5px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Custom Selection */
::selection {
    background: var(--primary-color);
    color: white;
}

/* Anime-Inspired Decorative Elements */
.landing-logo-img,
.logo-img {
    filter: drop-shadow(0 0 20px rgba(231, 76, 60, 0.7)) drop-shadow(0 0 40px rgba(192, 57, 43, 0.4));
    transition: var(--transition);
}

.landing-logo-img:hover,
.logo-img:hover {
    filter: drop-shadow(0 0 30px rgba(231, 76, 60, 0.9)) drop-shadow(0 0 50px rgba(192, 57, 43, 0.6));
    transform: scale(1.05) rotate(5deg);
}

/* Enhanced Animations */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(231, 76, 60, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(231, 76, 60, 0.7);
    }
}

.explore-btn,
.btn-primary {
    animation: glowPulse 2s ease-in-out infinite;
}

/* Manga Panel Effect */
.content-card {
    border: 2px solid rgba(231, 76, 60, 0.15);
}

.content-card:hover {
    border-color: rgba(231, 76, 60, 0.6);
}

/* Anime Lines Decoration */
.landing-content::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--primary-color), transparent);
    opacity: 0.3;
}

/* Speed Lines Effect on Hover */
@keyframes speedLines {
    0% {
        transform: translateX(-100%) skewX(-20deg);
    }
    100% {
        transform: translateX(100%) skewX(-20deg);
    }
}

.explore-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 20%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: speedLines 3s infinite;
}

/* Responsive Styles for Modal */
@media (max-width: 768px) {
    .modal {
        padding: 0.5rem;
    }
    
    .modal-content {
        max-height: 100vh;
        border-radius: 15px;
    }
    
    .modal-backdrop {
        height: 300px;
    }
    
    .modal-backdrop-overlay {
        height: 300px;
    }
    
    .modal-hero-actions {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        gap: 0.5rem;
    }
    
    .modal-action-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
        flex: 1;
        min-width: 0;
        justify-content: center;
    }
    
    .modal-action-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .modal-details {
        padding: 1.5rem;
    }
    
    .modal-title {
        font-size: 2rem;
    }
    
    .modal-meta {
        gap: 1rem;
        font-size: 0.95rem;
    }
    
    .modal-overview {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .modal-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .modal-section-title {
        font-size: 1.5rem;
    }
    
    .trailer-container iframe {
        height: 250px;
    }
    
    .cast-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.8rem;
    }
    
    .similar-movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 1rem;
    }
    
    .season-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .season-poster {
        width: 100px;
        height: 150px;
    }
    
    .episodes-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .modal-hero-actions {
        flex-direction: column;
    }
    
    .modal-action-btn {
        width: 100%;
        padding: 1rem;
    }
    
    .modal-title {
        font-size: 1.6rem;
    }
    
    .modal-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .trailer-container iframe {
        height: 200px;
    }
    
    .cast-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .similar-movies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .season-toggle-btn {
        width: 40px;
        height: 40px;
    }
    
    .season-title {
        font-size: 1.2rem;
    }
    
    .episode-title {
        font-size: 0.95rem;
    }
    
    .episode-play-overlay {
        width: 50px;
        height: 50px;
    }
    
    .episode-play-overlay svg {
        width: 32px;
        height: 32px;
    }
}
