@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --bg-dark: #0a0a0f;
    --text: #e5e5e5;
    --bg-card: #151521;
    --bg-hover: #1f1f2e;
    --accent: #7f5af0;
    --accent2: #4cc9f0;
    --text-light: #b5b5b5;
    --danger: #ff4d6d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: var(--bg-dark);
    color: var(--text);
    padding: 20px;
}

#header {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 0 25px rgba(127, 90, 240, 0.2);
}

button:hover {
    background: var(--accent2);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 32px;
    font-weight: 700;
    text-decoration: none;
    color: var(--accent);
    transition: 0.2s ease;
}

.logo:hover {
    color: var(--accent2);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    transition: 0.2s;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 16px;
}

.nav-links li a:hover {
    color: var(--accent2);
    text-shadow: 0 0 8px rgba(76, 201, 240, 0.5);
}

.search-header {
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent2);
    margin-bottom: 5px;
}

.search-header .subtitle {
    color: var(--text-light);
    font-size: 15px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 28px;
}

.anime-card {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
    transition: 0.2s;
}

.anime-card:hover {
    transform: scale(1.05);
    background: var(--bg-hover);
    box-shadow: 0 0 18px rgba(76, 201, 240, 0.2);
}

.card-link {
    text-decoration: none;
    color: inherit;
}

.card-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

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

.card-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--accent2);
    margin-bottom: 5px;
    min-height: 42px;
}

.card-rating {
    font-size: 14px;
    color: var(--text-light);
}

.no-results {
    text-align: center;
    margin-top: 60px;
}

.no-results p {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--accent);
}

.block-hero {
    background: linear-gradient(90deg, var(--bg-hover), var(--bg-card));
    padding: 40px 20px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 35px;
    box-shadow: 0 0 20px rgba(76,201,240,0.1);
}

.anime-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--accent2);
    text-shadow: 0 0 15px rgba(76,201,240,0.35);
}

.details-container {
    display: flex;
    gap: 35px;
    margin-top: 20px;
}

.left-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cover {
    width: 300px;
    border-radius: 14px;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.35);
}

.add-watchlist {
    padding: 14px 20px;
    font-size: 16px;
    background: var(--accent);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.add-watchlist:hover {
    background: var(--accent2);
    transform: translateY(-2px);
}

.right-panel {
    flex: 1;
}

.info p {
    margin-bottom: 8px;
    font-size: 16px;
}

.genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.tag {
    background: var(--bg-hover);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 14px;
    color: var(--accent2);
    border: 1px solid rgba(76, 201, 240, 0.3);
}

.section-title {
    margin: 20px 0 8px;
    font-size: 26px;
    color: var(--accent2);
}

.synopsis {
    line-height: 1.6;
    color: var(--text-light);
}

.quote-box {
    margin-top: 12px;
    padding: 18px 22px;
    border-left: 4px solid var(--accent);
    background: rgba(255, 255, 255, 0.03);
    /* border-radius: 10px; */
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.quote-author {
    display: block;
    margin-top: 8px;
    color: var(--accent2);
    font-size: 15px;
    font-weight: 600;
}

#footer {
    text-align: center;
    margin-top: 50px;
    padding: 25px 0;
    color: var(--text-light);
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.home-hero {
    text-align: center;
    margin-top: 60px;
    padding: 60px 20px;
}

.home-title {
    font-size: 34px;
    font-weight: 700;
    color: var(--accent2);
    text-shadow: 0 0 15px rgba(76, 201, 240, 0.4);
    margin-bottom: 10px;
}

.home-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.home-search input {
    width: 320px;
    padding: 12px 14px;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    background: var(--bg-hover);
    color: var(--text);
}

.home-search button {
    padding: 12px 18px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    background: var(--accent);
    color: white;
    cursor: pointer;
    font-weight: 600;
}

.watchlist-header {
    margin-bottom: 30px;
    text-align: center;
}

.watchlist-header h1 {
    font-size: 40px;
    color: var(--accent2);
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(76,201,240,0.3);
}

.watchlist-subtitle {
    font-size: 16px;
    color: var(--text-light);
}

.watchlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 28px;
}

.watchlist-card {
    background: var(--bg-card);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    transition: 0.25s ease;
    box-shadow: 0 0 12px rgba(0,0,0,0.25);
}

.watchlist-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 18px rgba(76,201,240,0.25);
}

.card-image-link img {
    width: 100%;
    height: 270px;
    object-fit: cover;
}

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

.card-title {
    color: var(--accent2);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.remove-btn {
    background: var(--danger);
    border: none;
    padding: 8px 14px;
    color: #fff;
    border-radius: 6px;
    margin-top: 10px;
    cursor: pointer;
    font-size: 14px;
}

.empty-state {
    text-align: center;
    margin-top: 60px;
}

.empty-state h2 {
    font-size: 26px;
    color: var(--accent2);
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 18px;
}

.btn {
    background: var(--accent);
    padding: 10px 18px;
    border-radius: 8px;
    color:white;
    text-decoration: none;
    font-weight: 600;
}

.back-btn {
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 18px;
    font-size: 15px;
    color: var(--accent2);
    border: 1px solid rgba(76, 201, 240, 0.5);
    border-radius: 8px;
    text-decoration: none;
    transition: 0.25s ease;
}

.back-btn:hover {
    background: var(--accent2);
    color: #000;
    box-shadow: 0 0 12px rgba(76, 201, 240, 0.4);
}