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

body {
    font-family: 'Poppins', sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
    color: #fff;
}

.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at top left, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(236, 72, 153, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at center, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.container {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
    padding: 40px 20px;
}

.logo-container {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    max-width: 320px;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(139, 92, 246, 0.3));
}

.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px;
    backdrop-filter: blur(20px);
    margin-bottom: 24px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon.token { background: linear-gradient(135deg, #8b5cf6, #6366f1); }
.card-icon.track { background: linear-gradient(135deg, #ec4899, #f43f5e); }

.card-icon .icon {
    width: 20px;
    height: 20px;
    fill: white;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
}

.card-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.input-wrapper {
    position: relative;
}

input[type="text"] {
    width: 100%;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #fff;
    transition: all 0.3s ease;
}

input[type="text"]:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.token-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding: 0 4px;
}

.status-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.timer-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.timer-valid { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
.timer-warning { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }
.timer-expired { background: rgba(239, 68, 68, 0.2); color: #ef4444; }

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
}

.btn {
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn .icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.btn-primary {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 18px 24px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.result-card {
    background: rgba(34, 197, 94, 0.05);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin-top: 24px;
    display: none;
}

.result-card.show { display: block; }
.result-card.error {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.2);
}

.result-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.result-header .icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.result-title {
    font-size: 14px;
    font-weight: 600;
    color: #22c55e;
}

.result-card.error .result-title { color: #ef4444; }

.result-meta {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.result-meta .icon {
    width: 14px;
    height: 14px;
    fill: rgba(255, 255, 255, 0.6);
}

.result-link {
    background: rgba(0, 0, 0, 0.3);
    padding: 14px 16px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #a5f3fc;
    word-break: break-all;
    margin-bottom: 16px;
}

.result-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-result {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-result .icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.btn-copy { background: #22c55e; color: #fff; }
.btn-play { background: #8b5cf6; color: #fff; }
.btn-download { background: #3b82f6; color: #fff; }

.btn-result:hover { transform: scale(1.05); }

.audio-container {
    margin-top: 20px;
    display: none;
}

.audio-container.show { display: block; }

.custom-player {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.5);
}

.play-btn .icon {
    width: 20px;
    height: 20px;
    fill: white;
}

.player-track {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 23px;
    padding-left: 11px;
}

.progress-container {
    position: relative;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    cursor: pointer;
    overflow: visible;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #ec4899);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
    position: relative;
}

.progress-container:hover .progress-bar {
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.progress-thumb {
    position: absolute;
    top: 50%;
    right: -7px;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.progress-container:hover .progress-thumb,
.progress-bar .progress-thumb {
    opacity: 1;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

.volume-btn .icon {
    width: 18px;
    height: 18px;
    fill: rgba(255, 255, 255, 0.6);
    transition: fill 0.2s ease;
}

.volume-btn:hover .icon {
    fill: white;
}

.volume-slider {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

audio {
    display: none;
}

.loading {
    text-align: center;
    padding: 32px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(139, 92, 246, 0.2);
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

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

.loading-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.progress-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 8px;
}

.info-section {
    margin-top: 32px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.info-title {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-steps {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
}

.info-steps strong {
    color: rgba(255, 255, 255, 0.8);
}

.footer {
    text-align: center;
    margin-top: 32px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
}

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #22c55e;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
