* {
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0c0c0c, #1a1a2e, #16213e);
    background-attachment: fixed;
    margin: 0;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    text-align: center;
    padding: 90px 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    font-size: clamp(1.8em, 5vw, 2.5em);
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff;
    margin-bottom: 30px;
}

.search-box {
    margin: 30px 0;
    display: flex;
    justify-content: center;
}

input {
    padding: 14px 20px;
    width: 100%;
    max-width: 420px;
    border-radius: 10px;
    border: 2px solid #00ffff;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    outline: none;
    font-size: 16px;
    transition: 0.3s;
}

.read-section {
    margin: 0 auto 20px;
    max-width: 700px;
    text-align: center;
    color: #d4f0ff;
}

.read-section p {
    margin: 0 0 12px;
    font-size: 1rem;
    color: #fff;
}

.read-button {
    display: inline-block;
    padding: 12px 24px;
    background: #00ffff;
    color: #000;
    font-weight: 700;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.read-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.55);
}

.corner-btn {
    position: absolute;
    top: 20px;
    padding: 10px 16px;
    border-radius: 8px;
    background: rgba(0, 255, 255, 0.9);
    color: #000;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 10;
}

.left-btn {
    left: 15px;
}

.right-btn {
    right: 15px;
}

.corner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.55);
}

@media (max-width: 768px) {
    .corner-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .left-btn,
    .right-btn {
        top: 12px;
    }

    .container {
        padding-top: 84px;
    }

    .notice-text {
        font-size: 0.95rem;
    }

    .read-section {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .corner-btn {
        padding: 7px 10px;
        font-size: 0.8rem;
    }

    .left-btn,
    .right-btn {
        top: 10px;
    }

    .container {
        padding-top: 70px;
    }

    .notice-text {
        font-size: 0.9rem;
    }

    .read-section {
        padding: 0 8px;
    }
}

.notice-bar {
    margin: 0 auto 20px;
    overflow: hidden;
    max-width: 800px;
    border: 1px solid rgba(0, 255, 255, 0.4);
    border-radius: 999px;
    background: rgba(0, 255, 255, 0.08);
    padding: 10px 0;
}

.notice-text {
    display: inline-block;
    white-space: nowrap;
    color: #00ffff;
    font-weight: 600;
    animation: scrollNotice 12s linear infinite;
}

@keyframes scrollNotice {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

input::placeholder {
    color: #a0a0a0;
}

.anime-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
}

.card {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #ff00ff;
    border-radius: 10px;
    box-shadow: 0 0 10px #ff00ff;
    padding: 15px;
    transition: 0.3s;
    overflow: hidden;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px #ff00ff;
}

.card-image {
    width: 100%;
    height: 220px;
    max-height: 260px;
    border-radius: 10px;
    object-fit: contain;
    object-position: center;
    margin-bottom: 12px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.3);
    display: block;
    background-color: rgba(0, 0, 0, 0.3);
}

.card h3 {
    color: #00ffff;
    margin: 12px 0 8px;
    font-size: 1.3em;
}

.card p {
    font-size: 14px;
    color: #e0e0e0;
    margin: 0;
}

@media (max-width: 768px) {
    .container {
        padding: 25px 15px;
    }

    h1 {
        font-size: 1.8em;
    }

    input {
        padding: 12px 16px;
        max-width: 100%;
    }

    .anime-list {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .card {
        padding: 12px;
    }

    .card-image {
        height: 160px;
        max-height: 180px;
        object-fit: contain;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 12px;
    }

    h1 {
        font-size: 1.5em;
    }

    .search-box {
        margin: 20px 0;
    }

    .anime-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .card {
        padding: 10px;
    }

    .card-image {
        height: 130px;
        max-height: 150px;
        object-fit: contain;
    }

    .card h3 {
        font-size: 1.1em;
    }

    .card p {
        font-size: 13px;
    }
}