.tiktok-downloader-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

.tiktok-downloader-wrapper {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    padding: 80px 20px;
    color: white;
    text-align: center;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.tiktok-downloader-wrapper h2 {
    margin: 0 0 15px 0;
    font-size: 48px;
    font-weight: 700;
}

.tiktok-downloader-wrapper > p {
    margin: 0 0 40px 0;
    opacity: 0.95;
    font-size: 18px;
    max-width: 600px;
}

.input-group {
    display: flex;
    gap: 15px;
    max-width: 800px;
    width: 100%;
    background: white;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.tiktok-input {
    flex: 1;
    padding: 18px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    color: #333;
}

.tiktok-input::placeholder {
    color: #999;
}

.download-btn {
    padding: 18px 45px;
    background: #10b981;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.download-btn:hover {
    background: #059669;
}

.download-btn:disabled {
    background: #9ca3af;
}

.loading {
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-top: 20px;
    max-width: 800px;
    width: 100%;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.result {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin: 30px auto 0;
    max-width: 800px;
    width: 100%;
    color: #333;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.video-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.video-thumb-small {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
}

.video-info-text {
    flex: 1;
    text-align: left;
}

.video-title-clean {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #1f2937;
}

.video-author {
    font-size: 14px;
    margin: 0;
    color: #6b7280;
}

.quality-table {
    width: 100%;
    border-collapse: collapse;
}

.quality-table thead {
    background: #f9fafb;
}

.quality-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: #6b7280;
    text-transform: uppercase;
    border-bottom: 2px solid #e5e7eb;
}

.quality-row {
    border-bottom: 1px solid #f3f4f6;
}

.quality-row:hover {
    background: #f9fafb;
}

.quality-cell,
.format-cell,
.download-cell {
    padding: 18px 15px;
    font-size: 15px;
}

.quality-cell {
    font-weight: 500;
    color: #1f2937;
}

.format-cell {
    color: #6b7280;
}

.btn-download-table {
    padding: 10px 24px;
    background: #10b981;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn-download-table:hover {
    background: #059669;
}

.error {
    background: #fee2e2;
    border: 2px solid #fca5a5;
    border-radius: 12px;
    padding: 20px;
    margin: 30px auto 0;
    max-width: 800px;
    color: #991b1b;
}

.info-box {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 25px;
    margin-top: 40px;
    max-width: 800px;
    width: 100%;
    text-align: left;
}

.info-box p {
    text-align: left !important;
}

@media (max-width: 768px) {
    .tiktok-downloader-wrapper h2 {
        font-size: 36px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .download-btn {
        width: 100%;
    }
}
