/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.cf-turnstile {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

/* Animated particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.particle:nth-child(1) {
    width: 80px;
    height: 80px;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 15s;
}

.particle:nth-child(2) {
    width: 120px;
    height: 120px;
    left: 70%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.particle:nth-child(3) {
    width: 60px;
    height: 60px;
    left: 40%;
    animation-delay: 4s;
    animation-duration: 12s;
}

.particle:nth-child(4) {
    width: 100px;
    height: 100px;
    left: 85%;
    animation-delay: 6s;
    animation-duration: 20s;
}

.particle:nth-child(5) {
    width: 90px;
    height: 90px;
    left: 25%;
    animation-delay: 8s;
    animation-duration: 16s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    50% {
        transform: translateY(-100vh) rotate(360deg);
    }
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 1s ease;
}

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

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
}

.logo-y {
    color: #FFDB4D;
    text-shadow: 0 0 20px rgba(255, 219, 77, 0.5);
    animation: pulse 2s ease infinite;
}

.logo-arrow {
    font-size: 40px;
    animation: slideRight 2s ease infinite;
}

.logo-s {
    color: #1DB954;
    text-shadow: 0 0 20px rgba(29, 185, 84, 0.5);
    animation: pulse 2s ease infinite 1s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes slideRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

.title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #FFDB4D, #1DB954);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

/* Glass card */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.card {
    padding: 40px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.3s both;
}

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

.card-header h2 {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
}

/* Input group */
.input-group {
    margin-bottom: 30px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 16px;
}

.input-group input {
    width: 100%;
    padding: 18px 20px;
    font-size: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.input-group input:focus {
    border-color: #1DB954;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(29, 185, 84, 0.3);
    transform: translateY(-2px);
}

.input-hint {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* Button */
.btn-primary {
    width: 100%;
    padding: 18px 30px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #1DB954, #1ED760);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(29, 185, 84, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(29, 185, 84, 0.6);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    font-size: 24px;
}

/* Loading spinner */
.btn-primary.loading .btn-text::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Result area */
.result {
    margin-top: 30px;
    padding: 25px;
    border-radius: 12px;
    animation: slideIn 0.5s ease;
}

.result.hidden {
    display: none;
}

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

.result.success {
    background: rgba(29, 185, 84, 0.2);
    border: 2px solid rgba(29, 185, 84, 0.5);
}

.result.error {
    background: rgba(255, 68, 68, 0.2);
    border: 2px solid rgba(255, 68, 68, 0.5);
}

.result h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

.track-list {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 20px;
}

.track-item {
    padding: 12px 15px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.track-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.track-number {
    min-width: 30px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

.track-info {
    flex: 1;
}

.track-artist {
    font-weight: 600;
}

.track-title {
    color: rgba(255, 255, 255, 0.8);
}

/* Custom scrollbar */
.track-list::-webkit-scrollbar {
    width: 8px;
}

.track-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.track-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.track-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Info cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.info-card {
    padding: 30px 25px;
    text-align: center;
    transition: transform 0.3s ease;
    animation: fadeInUp 1s ease both;
}

.info-card:nth-child(1) {
    animation-delay: 0.5s;
}

.info-card:nth-child(2) {
    animation-delay: 0.7s;
}

.info-card:nth-child(3) {
    animation-delay: 0.9s;
}

.info-card:hover {
    transform: translateY(-10px);
}

.info-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.info-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.info-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    .header {
        margin-bottom: 30px;
    }

    .title {
        font-size: 32px;
    }

    .subtitle {
        font-size: 16px;
    }

    .card {
        padding: 25px 20px;
    }

    .logo {
        font-size: 36px;
        gap: 10px;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }
}
