* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #000;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Анимированный звездный фон */
.stars, .twinkling {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.stars {
    background: #000 url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEklEQVQIW2P4//8/AwMDAwMDAC9FAgZOxqTpAAAAAElFTkSuQmCC') repeat top center;
    z-index: 0;
}

.twinkling {
    background: transparent url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAJklEQVQIW2NkQAP/GdH4/xkYGBhhAmAOSBJZDCSJLAaSQJbEoxgAqpoM03xETfIAAAAASUVORK5CYII=') repeat top center;
    z-index: 1;
    animation: move-twink-back 200s linear infinite;
}

@keyframes move-twink-back {
    from {background-position: 0 0;}
    to {background-position: -10000px 5000px;}
}

.container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin: 40px 0 60px;
}

.title {
    font-size: 4rem;
    font-weight: bold;
    letter-spacing: 15px;
    background: linear-gradient(45deg, #FFE81F, #FFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 232, 31, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
    margin-bottom: 10px;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(255, 232, 31, 0.3);
    }
    to {
        text-shadow: 0 0 40px rgba(255, 232, 31, 0.8);
    }
}

.subtitle {
    font-size: 1.2rem;
    color: #FFE81F;
    letter-spacing: 3px;
    opacity: 0.9;
}

.search-section {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #FFE81F;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(255, 232, 31, 0.3);
}

.category-selector {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.category-btn {
    background: rgba(255, 232, 31, 0.1);
    border: 2px solid #FFE81F;
    color: #FFE81F;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.category-btn .icon {
    font-size: 1.5rem;
}

.category-btn:hover {
    background: rgba(255, 232, 31, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 232, 31, 0.4);
}

.category-btn.active {
    background: #FFE81F;
    color: #000;
    box-shadow: 0 0 20px rgba(255, 232, 31, 0.6);
}

.search-box {
    display: flex;
    gap: 15px;
    align-items: center;
}

#searchInput {
    flex: 1;
    padding: 15px 20px;
    font-size: 1.1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #FFE81F;
    border-radius: 10px;
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
}

#searchInput::placeholder {
    color: rgba(255, 232, 31, 0.5);
}

#searchInput:focus {
    box-shadow: 0 0 20px rgba(255, 232, 31, 0.5);
    border-color: #fff;
}

.search-btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    background: #FFE81F;
    color: #000;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #fff;
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 232, 31, 0.6);
}

.search-btn:active {
    transform: scale(0.98);
}

.loader {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 5px solid rgba(255, 232, 31, 0.2);
    border-top: 5px solid #FFE81F;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader p {
    color: #FFE81F;
    font-size: 1.2rem;
}

.hidden {
    display: none !important;
}

.error {
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid #ff4444;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    color: #ff4444;
    text-align: center;
    font-size: 1.1rem;
}

.results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.result-card {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #FFE81F;
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 232, 31, 0.4);
    border-color: #fff;
}

.result-card h3 {
    color: #FFE81F;
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 2px solid rgba(255, 232, 31, 0.3);
    padding-bottom: 10px;
}

.result-card .info {
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 232, 31, 0.1);
}

.result-card .info:last-child {
    border-bottom: none;
}

.result-card .label {
    color: #FFE81F;
    font-weight: bold;
}

.result-card .value {
    color: #fff;
    text-align: right;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #FFE81F;
    border-radius: 15px;
}

.no-results h2 {
    color: #FFE81F;
    font-size: 2rem;
    margin-bottom: 15px;
}

.no-results p {
    color: #fff;
    font-size: 1.1rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
        letter-spacing: 8px;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .category-selector {
        flex-direction: column;
    }
    
    .category-btn {
        width: 100%;
        justify-content: center;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-btn {
        width: 100%;
    }
    
    .results {
        grid-template-columns: 1fr;
    }
}

