@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #8b5cf6;
    --primary-dark: #7c3aed;
    --primary-light: #a78bfa;
    --secondary: #ec4899;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --bg-primary: #0c0c16;
    --bg-secondary: #151522;
    --bg-card: rgba(22, 22, 38, 0.85);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --radius: 24px;
    --radius-sm: 16px;
    --radius-xs: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    top: -150px;
    left: -150px;
    pointer-events: none;
    z-index: 0;
    animation: float 20s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    bottom: -100px;
    right: -100px;
    pointer-events: none;
    z-index: 0;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.9); }
    75% { transform: translate(20px, 30px) scale(1.05); }
}

/* Header */
.app-header {
    background: rgba(22, 22, 38, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-content {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.header-text h1 {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-text p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

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

/* Platform Selector */
.platform-selector {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 16px;
    margin-bottom: 24px;
    scrollbar-width: none;
    background: rgba(22, 22, 38, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.platform-selector::-webkit-scrollbar {
    display: none;
}

.platform-btn {
    background: rgba(22, 22, 38, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    min-width: fit-content;
}

.platform-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.platform-btn:hover::before {
    width: 300px;
    height: 300px;
}

.platform-btn:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: var(--primary);
    color: var(--text-primary);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.platform-btn.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(124, 58, 237, 0.95));
    backdrop-filter: blur(10px);
    border-color: rgba(139, 92, 246, 0.8);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.5), 0 0 0 2px rgba(139, 92, 246, 0.3);
}

.platform-btn.active::before {
    display: none;
}

.platform-btn svg,
.platform-btn img {
    flex-shrink: 0;
    border-radius: 6px;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Input Section */
.input-section {
    background: rgba(22, 22, 38, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(139, 92, 246, 0.1);
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

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

.input-wrapper {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.input-wrapper input {
    flex: 1;
    background: rgba(22, 22, 38, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2), 0 4px 12px rgba(139, 92, 246, 0.15);
    transform: translateY(-1px);
}

.input-wrapper input::placeholder {
    color: rgba(148, 163, 184, 0.6);
}

.paste-btn {
    background: rgba(22, 22, 38, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.paste-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s;
}

.paste-btn:hover::before {
    opacity: 0.2;
}

.paste-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 16px rgba(139, 92, 246, 0.3);
}

.paste-btn:active {
    transform: scale(0.95) rotate(0deg);
}

.paste-btn svg {
    position: relative;
    z-index: 1;
}

.download-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.download-btn::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;
}

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

.download-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.5);
}

.download-btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

/* Loading */
.loading {
    background: rgba(22, 22, 38, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: var(--radius);
    padding: 48px 24px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(139, 92, 246, 0.1);
    animation: fadeInUp 0.3s ease-out;
}

.spinner {
    width: 56px;
    height: 56px;
    border: 4px solid rgba(139, 92, 246, 0.2);
    border-top-color: var(--primary);
    border-right-color: var(--secondary);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 0.8s linear infinite, pulse 2s ease-in-out infinite;
    position: relative;
}

.spinner::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: var(--primary);
    animation: spin 1.5s linear infinite reverse;
}

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

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(139, 92, 246, 0);
    }
}

.loading p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Result Section */
.result-section {
    background: rgba(22, 22, 38, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(139, 92, 246, 0.1);
    animation: fadeInUp 0.5s ease-out;
}

/* TikTok Card */
.tiktok-card {
    margin-bottom: 20px;
}

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

.tiktok-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
}

.tiktok-user-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.tiktok-user-info p {
    font-size: 13px;
    color: var(--text-secondary);
}

.tiktok-video-container {
    position: relative;
    width: 100%;
    max-height: 600px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #000;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.tiktok-video-container:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.3);
}

.tiktok-video-container video {
    width: 100%;
    height: 100%;
    max-height: 600px;
    object-fit: contain;
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.video-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-btn {
    background: rgba(139, 92, 246, 0.9);
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.5);
    animation: playPulse 2s ease-in-out infinite;
}

.play-btn:hover {
    background: rgba(139, 92, 246, 1);
    transform: scale(1.15);
    box-shadow: 0 12px 48px rgba(139, 92, 246, 0.7);
}

.play-btn:active {
    transform: scale(0.95);
}

@keyframes playPulse {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(139, 92, 246, 0.5);
    }
    50% {
        box-shadow: 0 8px 48px rgba(139, 92, 246, 0.7);
    }
}

/* TikTok Image Slider Styles */
.tiktok-image-slider {
    width: 100%;
    aspect-ratio: 9/16;
    max-height: 600px;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-secondary);
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--bg-secondary);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    z-index: 10;
    transition: var(--transition);
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 12px;
}

.slider-btn.next {
    right: 12px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

.tiktok-caption {
    margin-bottom: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
}

.tiktok-caption p {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.7;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.tiktok-stats {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.stat-item svg {
    color: var(--primary-light);
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    min-width: 18px;
}

.stat-item span {
    color: var(--text-primary);
}

.tiktok-published {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.tiktok-published svg {
    color: var(--text-muted);
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    min-width: 18px;
}

.tiktok-published span {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    flex: 1;
}

.tiktok-music {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.tiktok-music svg {
    color: var(--primary-light);
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    min-width: 18px;
}

.tiktok-music span {
    font-size: 13px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.video-preview {
    display: flex;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
}

.video-preview img {
    width: 120px;
    height: 90px;
    border-radius: var(--radius-xs);
    object-fit: cover;
    background: var(--bg-secondary);
}

.preview-info {
    flex: 1;
    min-width: 0;
}

.preview-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.preview-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.preview-stats {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Download Options */
.download-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-option {
    background: rgba(22, 22, 38, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.download-option::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s;
}

.download-option:hover::before {
    opacity: 0.1;
}

.download-option:hover {
    border-color: var(--primary);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.2);
}

.option-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.option-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.option-text h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.option-text p {
    font-size: 12px;
    color: var(--text-muted);
}

.option-download-btn {
    background: var(--primary);
    border: none;
    border-radius: var(--radius-xs);
    padding: 8px 16px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.option-download-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.option-download-btn:hover::before {
    width: 300px;
    height: 300px;
}

.option-download-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.option-download-btn:active {
    transform: scale(0.95);
}

/* Supported Platforms */
.supported-platforms {
    background: rgba(22, 22, 38, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: var(--radius);
    padding: 28px 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(139, 92, 246, 0.1);
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.supported-platforms h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.platform-item {
    background: rgba(22, 22, 38, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 14px 12px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    position: relative;
    overflow: hidden;
}

.platform-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s;
}

.platform-item:hover::before {
    opacity: 0.15;
}

.platform-item:hover {
    border-color: var(--primary);
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 12px 24px rgba(139, 92, 246, 0.3);
}

.platform-item:active {
    transform: translateY(-2px) scale(1.02);
}

.platform-item svg {
    margin-bottom: 8px;
    color: var(--primary-light);
    flex-shrink: 0;
}

.platform-item .platform-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 10px;
    filter: drop-shadow(0 2px 8px rgba(139, 92, 246, 0.2));
    transition: all 0.3s ease;
}

.platform-item:hover .platform-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 12px rgba(139, 92, 246, 0.4));
}

.platform-item span {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* How to Use */
.how-to-use {
    background: rgba(22, 22, 38, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: var(--radius);
    padding: 28px 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(139, 92, 246, 0.1);
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.how-to-use h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step {
    display: flex;
    gap: 16px;
    animation: fadeInLeft 0.5s ease-out both;
}

.step:nth-child(1) { animation-delay: 0.5s; }
.step:nth-child(2) { animation-delay: 0.6s; }
.step:nth-child(3) { animation-delay: 0.7s; }

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

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
    transition: all 0.3s ease;
}

.step:hover .step-number {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

.step-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.step-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Footer */
.footer {
    text-align: center;
    padding: 32px 20px;
    color: var(--text-secondary);
    font-size: 13px;
}

.footer p {
    margin-bottom: 8px;
}

.footer strong {
    color: var(--primary-light);
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.footer-links a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 600px) {
    .platform-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .header-text h1 {
        font-size: 20px;
    }
    
    .logo {
        width: 40px;
        height: 40px;
    }
    
    .tiktok-stats {
        gap: 12px;
        padding: 12px;
    }
    
    .stat-item {
        font-size: 12px;
        min-width: calc(50% - 6px);
    }
    
    .tiktok-published,
    .tiktok-music {
        padding: 12px;
        gap: 8px;
    }
    
    .input-section {
        padding: 16px;
    }
    
    .container {
        padding: 16px;
    }
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.05) 25%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(255, 255, 255, 0.05) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-header {
    width: 100%;
    height: 60px;
    margin-bottom: 16px;
}

.skeleton-video {
    width: 100%;
    aspect-ratio: 9/16;
    max-height: 600px;
    margin-bottom: 16px;
}

.skeleton-text {
    width: 100%;
    height: 60px;
    margin-bottom: 12px;
}

.skeleton-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.skeleton-stat {
    flex: 1;
    height: 40px;
}

/* Audio Player for YouTube MP3 */
.audio-player-container {
    width: 100%;
    background: rgba(139, 92, 246, 0.1);
    border-radius: var(--radius-sm);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.audio-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-xs);
    overflow: hidden;
}

.audio-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.audio-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(139, 92, 246, 0.9);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.4);
}

.audio-player-container audio {
    width: 100%;
    height: 40px;
    border-radius: var(--radius-xs);
    outline: none;
}

.audio-player-container audio::-webkit-media-controls-panel {
    background: rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-xs);
}

