 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
     font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
 }

 /* ── Custom scrollbar (global) ───────────────────────────── */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(233, 69, 96, 0.3) transparent;
}

*::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: rgba(233, 69, 96, 0.3);
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(233, 69, 96, 0.6);
}

 body {
     background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
     color: #fff;
     min-height: 100vh;
     display: flex;
     flex-direction: column;
 }

 header {
     padding: 20px 40px;
     display: flex;
     justify-content: space-between;
     align-items: center;
     background-color: rgba(0, 0, 0, 0.3);
     backdrop-filter: blur(10px);
     position: sticky;
     top: 0;
     z-index: 100;
 }

 .logo {
     display: flex;
     align-items: center;
     gap: 10px;
     font-size: 1.8rem;
     font-weight: 700;
     color: #e94560;
 }

 .logo i {
     font-size: 2rem;
 }

nav {
    display: flex;
    gap: 20px;
    align-items: flex-end;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background-color: rgba(233, 69, 96, 0.2);
    color: #e94560;
}

/* Outlined variant — used for Logout / Login */
.nav-link--outline {
    border: 2px solid #e94560;
    color: #e94560;
}

.nav-link--outline:hover {
    background-color: rgba(233, 69, 96, 0.15);
    color: #e94560;
}

/* Filled variant — used for Sign Up only */
.nav-link--filled {
    background: #e94560;
    color: #fff;
}

.nav-link--filled:hover {
    background: #ff6b81;
    color: #fff;
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.4);
}

 .btn-login {
     background: transparent;
     color: #fff;
     border: 2px solid #e94560;
 }

 .btn-signup {
     background: #e94560;
     color: #fff;
 }

 .btn:hover {
     transform: translateY(-3px);
     box-shadow: 0 5px 15px rgba(233, 69, 96, 0.4);
 }

 main {
     flex: 1;
     display: flex;
     flex-direction: column;
     justify-content: center;
     align-items: center;
     padding: 40px 20px;
     text-align: center;
 }

 .hero {
     max-width: 800px;
     margin-bottom: 40px;
 }

 .hero h1 {
     font-size: 3.5rem;
     margin-bottom: 20px;
     background: linear-gradient(to right, #e94560, #0f3460);
     -webkit-background-clip: text;
     background-clip: text;
     color: transparent;
 }

 .hero p {
     font-size: 1.5rem;
     color: #b8b8b8;
     line-height: 1.6;
 }

 .input-container {
     width: 100%;
     max-width: 700px;
     margin: 30px 0;
     position: relative;
 }

 .input-box {
     width: 100%;
     padding: 20px 25px;
     border-radius: 50px;
     border: 2px solid #0f3460;
     background: rgba(255, 255, 255, 0.1);
     backdrop-filter: blur(10px);
     color: #fff;
     font-size: 1.1rem;
     outline: none;
     transition: all 0.3s ease;
 }

 .input-box:focus {
     border-color: #e94560;
     box-shadow: 0 0 20px rgba(233, 69, 96, 0.5);
 }

 .input-box::placeholder {
     color: #a0a0a0;
 }

 .submit-btn {
     position: absolute;
     right: 10px;
     top: 50%;
     transform: translateY(-50%);
     background: #e94560;
     color: white;
     border: none;
     border-radius: 50%;
     width: 50px;
     height: 50px;
     cursor: pointer;
     transition: all 0.3s ease;
     display: flex;
     justify-content: center;
     align-items: center;
 }

 .submit-btn:hover {
     background: #ff6b81;
     transform: translateY(-50%) scale(1.1);
 }

 .anime-list {
     display: block;
     width: 100%;
     max-width: 1200px;
     margin-top: 40px;
     padding: 20px;
 }

 .anime-list h2 {
     font-size: 2.2rem;
     margin-bottom: 30px;
     color: #e94560;
 }

 .anime-grid {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
     gap: 30px;
}
 .anime-card {
     background: rgba(255, 255, 255, 0.05);
     border-radius: 15px;
     overflow: hidden;
     transition: all 0.3s ease;
     box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
     padding: 20px;
     display: flex;
     flex-direction: column;
     min-height: 250px;
}

 .anime-card:hover {
     transform: translateY(-10px);
     box-shadow: 0 15px 30px rgba(233, 69, 96, 0.3);
     background: rgba(255, 255, 255, 0.08);
}

.anime-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

 .anime-details-btn {
     margin-top: auto;
     background: #e94560;
     color: white;
     border: none;
     padding: 12px 20px;
     border-radius: 30px;
     cursor: pointer;
     font-weight: 600;
     transition: all 0.3s ease;
     text-decoration: none;
     display: inline-block;
     text-align: center;
     width: 100%;
}

.anime-details-btn:hover {
    background: #ff6b81;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.4);
}

.anime-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    justify-content: center;
}

 .genre-tag {
     background: rgba(233, 69, 96, 0.2);
     color: #e94560;
     padding: 5px 12px;
     border-radius: 20px;
     font-size: 0.85rem;
     border: 1px solid rgba(233, 69, 96, 0.3);
}

 /* Signup Tip Styles */
.tip {
    text-align: center;
    margin-top: 15px;
    padding: 15px 20px;
    background: rgba(233, 69, 96, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(233, 69, 96, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.tip p {
    color: #fff;
    font-size: 1rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tip i {
    color: #e94560;
    font-size: 1.2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tip p {
        flex-direction: column;
        gap: 8px;
    }
}

 footer {
     text-align: center;
     padding: 20px;
     background-color: rgba(0, 0, 0, 0.3);
     margin-top: auto;
 }

 .loading {
     display: none;
     text-align: center;
     margin: 20px 0;
 }

 .spinner {
     border: 5px solid rgba(255, 255, 255, 0.3);
     border-radius: 50%;
     border-top: 5px solid #e94560;
     width: 50px;
     height: 50px;
     animation: spin 1s linear infinite;
     margin: 0 auto;
 }

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

@media (max-width: 768px) {
    header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

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

@media (max-width: 480px) {
    .anime-grid {
        grid-template-columns: 1fr;
    }

    .logo {
        font-size: 1.5rem;
    }
}