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

:root {
    --primary-color: #e50914;
    --secondary-color: #141414;
    --text-color: #ffffff;
    --text-secondary: #b3b3b3;
    --background: #000000;
    --card-background: #1a1a1a;
    --hover-color: #2a2a2a;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--background);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* SEO H1 - Visible and prominent */
.page-h1 {
    text-align: center;
    font-size: 2.5rem;
    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: fadeInUp 0.8s ease-out;
}

.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, #000000 0%, #1a0000 50%, #000000 100%);
    overflow-x: hidden;
    overflow-y: auto;
}

.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(229, 9, 20, 0.1), 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: 1.5rem;
}

.landing-logo-img {
    width: 100px;
    height: 100px;
    filter: drop-shadow(0 0 30px rgba(229, 9, 20, 0.6));
}

.landing-title {
    font-size: 2.5rem;
    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.8rem;
    animation: slideInUp 0.8s ease-out 0.3s backwards;
    line-height: 1.2;
}

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

.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: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    background: rgba(229, 9, 20, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(229, 9, 20, 0.3);
}

.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: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), #f40612);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: var(--transition);
    box-shadow: 0 8px 30px rgba(229, 9, 20, 0.4);
    animation: slideInUp 0.8s ease-out 0.7s backwards;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    margin-bottom: 1.5rem;
}

.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(-5px) scale(1.05);
    box-shadow: 0 15px 50px rgba(229, 9, 20, 0.7);
}

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

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

.secondary-btn {
    padding: 0.8rem 2rem;
    background: transparent;
    color: white;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    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;
}

.secondary-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(229, 9, 20, 0.3);
}

.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.85rem;
    color: #4ade80;
    font-weight: 500;
}

/* 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: rgba(255,255,255,0.03);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.seo-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.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: rgba(229, 9, 20, 0.05);
    border: 1px solid rgba(229, 9, 20, 0.2);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
}

.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: 800;
    background: linear-gradient(135deg, var(--primary-color), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.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(--primary-color);
    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(--primary-color);
    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;
}

@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);
}

.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(229, 9, 20, 0.2), 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: rgba(229, 9, 20, 0.9);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    animation: bounceIn 0.8s ease-out 0.3s backwards;
}

@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(--primary-color);
    color: var(--text-color);
}

.btn-primary:hover {
    background: #f40612;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.5);
}

.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(--primary-color);
    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(229, 9, 20, 0.3), 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(229, 9, 20, 0.2), transparent);
    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(229, 9, 20, 0.4);
}

.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(--primary-color);
    transform: scale(1.2);
}

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

.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: 2rem;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    z-index: 1;
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-color);
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background: rgba(229, 9, 20, 0.8);
    transform: rotate(90deg);
}

.modal-body {
    position: relative;
}

.modal-backdrop {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.modal-details {
    padding: 2rem;
}

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

.modal-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

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

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

.modal-overview {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

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

.info-item {
    background: var(--card-background);
    padding: 1rem;
    border-radius: var(--border-radius);
}

.info-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 600;
}

.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;
}

.cast-photo {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
    background: var(--card-background);
}

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

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

/* 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(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    animation: slideInRight 0.3s ease-out;
}

@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(--primary-color);
    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(229, 9, 20, 0.4);
}

.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(229, 9, 20, 0.6);
}

/* 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;
}

