* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    background: #1a1a1a;
    color: #e8e8e8;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.8s ease;
    overflow: hidden;
}

.intro-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.intro-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.intro-content {
    text-align: center;
    color: white;
    max-width: 600px;
    padding: 2rem;
    position: relative;
    z-index: 3;
}

.intro-logo {
    font-size: 5rem;
    font-weight: 200;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    animation: slideUp 1s ease 0.2s both;
}

.intro-tagline {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    opacity: 0.9;
    margin-bottom: 2rem;
    animation: slideUp 1s ease 0.4s both;
}

.intro-description {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.85;
    margin-bottom: 3rem;
    font-weight: 300;
    animation: slideUp 1s ease 0.6s both;
}

.intro-button {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 1rem 3rem;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: slideUp 1s ease 0.8s both;
}

.intro-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-container {
    min-height: 100vh;
    position: relative;
}

.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 50%, #2d2d2d 100%);
    z-index: -1;
}

.glass-header {
    padding: 2rem;
    text-align: center;
}

.logo {
    font-size: 2.5rem;
    font-weight: 200;
    letter-spacing: 0.1em;
    color: #e8e8e8;
}

.main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.glass-card {
    background: rgba(40, 40, 40, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid rgba(80, 80, 80, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    margin-bottom: 1.5rem;
}

.search-card {
    animation: slideUp 0.6s ease;
}

.card-section {
    margin-bottom: 2rem;
}

.card-section:last-child {
    margin-bottom: 0;
}

.card-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #999;
    margin-bottom: 1rem;
    font-weight: 500;
}

.input-group {
    margin-bottom: 1rem;
}

.glass-input {
    width: 100%;
    padding: 1rem;
    background: rgba(60, 60, 60, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(120, 120, 120, 0.2);
    border-radius: 16px;
    color: #e8e8e8;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.glass-input:focus {
    outline: none;
    background: rgba(70, 70, 70, 0.5);
    border-color: rgba(200, 200, 200, 0.4);
    box-shadow: 0 0 0 4px rgba(200, 200, 200, 0.1);
}

.glass-input::placeholder {
    color: #666;
}

.glass-input.small {
    font-size: 0.9rem;
}

textarea.glass-input {
    resize: vertical;
    min-height: 80px;
}

.filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
}

.filter-grid-full {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.upload-section {
    margin-top: 1rem;
}

.upload-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(60, 60, 60, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(120, 120, 120, 0.2);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: #aaa;
}

.upload-label:hover {
    background: rgba(70, 70, 70, 0.5);
    transform: translateY(-2px);
}

.hidden-input {
    display: none;
}

.image-preview-glass {
    margin-top: 1rem;
    max-width: 300px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(120, 120, 120, 0.2);
}

.image-preview-glass img {
    width: 100%;
    height: auto;
    display: block;
}

.search-button-glass {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, #f8f8f8 0%, #e0e0e0 100%);
    color: #1a1a1a;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.search-button-glass:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
}

.search-button-glass:disabled {
    background: rgba(200, 200, 200, 0.5);
    cursor: not-allowed;
    transform: none;
}

.loading {
    text-align: center;
    padding: 3rem;
}

.loading-card {
    display: inline-block;
    padding: 2rem 3rem;
}

.spinner-glass {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    border: 3px solid rgba(200, 200, 200, 0.2);
    border-top-color: #e8e8e8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

.results {
    animation: slideUp 0.6s ease;
}

.summary-card {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #ccc;
}

.summary {
    font-weight: 400;
}

.match-section {
    margin-bottom: 2rem;
}

.match-section h2 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #999;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.match-card {
    background: rgba(40, 40, 40, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(80, 80, 80, 0.3);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.match-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
    border-color: rgba(120, 120, 120, 0.4);
}

.match-image {
    width: 100%;
    height: 200px;
    background: rgba(20, 20, 20, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.9rem;
}

.match-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.match-content {
    padding: 1.25rem;
}

.match-title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: #e8e8e8;
    font-weight: 500;
}

.match-platform {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.35rem 0.75rem;
    background: rgba(200, 200, 200, 0.15);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.match-price {
    font-size: 1.35rem;
    font-weight: 500;
    margin: 0.75rem 0;
    color: #e8e8e8;
}

.match-details {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.75rem;
}

.match-score {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: rgba(200, 200, 200, 0.1);
    border-radius: 12px;
    font-size: 0.75rem;
    color: #aaa;
    margin-top: 0.5rem;
}

.match-reason {
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(120, 120, 120, 0.2);
}

.match-link {
    display: block;
    margin-top: 1rem;
    padding: 0.85rem;
    background: rgba(200, 200, 200, 0.1);
    color: #e8e8e8;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.match-link:hover {
    background: rgba(200, 200, 200, 0.2);
}

.error {
    max-width: 600px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: rgba(239, 68, 68, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 20px;
    color: #dc2626;
}

@media (max-width: 768px) {
    .intro-logo {
        font-size: 3rem;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-grid-full {
        grid-template-columns: 1fr;
    }
    
    .match-grid {
        grid-template-columns: 1fr;
    }
}
