@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Poppins:wght@300;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: radial-gradient(circle at top, #0a0f1f, #000);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    transition: background 0.5s, color 0.5s;
}

.light-mode {
    background: #f4f4f4;
    color: #222;
}

header {
    text-align: center;
    padding: 30px 15px;
}

header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.8rem;
    color: #0ff;
    text-shadow: 0 0 10px #0ff, 0 0 20px #00f6ff;
}

header span {
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff5fff;
}

header p {
    font-size: 1rem;
    color: #ccc;
    margin-top: 5px;
}

.controls {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.controls input {
    padding: 8px 12px;
    border-radius: 6px;
    border: none;
    font-size: 1rem;
}

.controls button {
    background: #0ff;
    color: #000;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.controls button:hover {
    background: #ff00ff;
    color: #fff;
}

.character-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 40px;
}

.character-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.character-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.6), 0 0 15px rgba(255, 0, 255, 0.4);
}

.character-card img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease;
}

.character-card:hover img {
    transform: scale(1.1);
}

.character-info {
    padding: 15px;
}

.character-info h2 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #0ff;
    text-shadow: 0 0 5px #0ff;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #fff;
}

.status-Alive {
    background: linear-gradient(90deg, #00ff87, #0cebeb);
    box-shadow: 0 0 10px #00ff87;
}

.status-Dead {
    background: linear-gradient(90deg, #ff4b2b, #ff416c);
    box-shadow: 0 0 10px #ff4b2b;
}

.status-unknown {
    background: linear-gradient(90deg, #666, #999);
    box-shadow: 0 0 10px #888;
}

.video-section {
    text-align: center;
    padding: 30px;
}

.video-section h2 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 15px;
    color: #0ff;
    text-shadow: 0 0 5px #0ff;
}

footer {
    text-align: center;
    padding: 15px;
    font-size: 0.9rem;
    background: rgba(0,0,0,0.5);
    color: #888;
}

footer a {
    color: #0ff;
    text-decoration: none;
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.light-mode header h1,
.light-mode header span {
    text-shadow: none;
}

.light-mode .character-card {
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.light-mode .character-info h2 {
    color: #333;
    text-shadow: none;
}
