
/* Enhanced Theme Variables */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --warning-dark: #d97706;
    --danger: #ef4444;
    --info: #3b82f6;
    --dark: #0f172a;
    --light: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease-out;
}

/* Light Theme */
.light-theme {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --card-gradient: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    --card-hover-gradient: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.2);
}

/* Dark Theme */
.dark-theme {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --shadow-color: rgba(0, 0, 0, 0.4);
    --card-gradient: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    --card-hover-gradient: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    --glass-bg: rgba(15, 23, 42, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: var(--transition);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    background-image: 
        radial-gradient(at 20% 30%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(at 80% 70%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
}

/* Tool Container */
.tool-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: var(--transition);
}

.tool-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.tool-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: linear-gradient(135deg, #000000 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.tool-title::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #000000, var(--accent));
    border-radius: 2px;
}

.updated-badge {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    top: -12px;
    animation: pulse 2s infinite;
}

.tool-description {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Usage Alert */
.usage-alert {
    background: linear-gradient(135deg, var(--info) 0%, var(--primary) 100%);
    color: white;
    padding: 16px 24px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    animation: slideInDown 0.5s ease;
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.alert-content a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.alert-content a:hover {
    opacity: 0.9;
}

/* How to Use Card */
.how-to-use-card {
    background: var(--card-gradient);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.how-to-use-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #000000, var(--accent));
}

.how-to-use-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.how-to-use-header i {
    color: var(--accent);
    font-size: 1.5rem;
}

.how-to-use-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.how-to-use-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #000000 0%, var(--accent) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-content strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* TikTok Downloader Content */
.tiktok-downloader-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Input Section */
.input-card {
    background: var(--card-gradient);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.input-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #000000, var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.input-card:hover::before {
    transform: scaleX(1);
}

.input-card:hover {
    box-shadow: var(--shadow-lg);
    background: var(--card-hover-gradient);
}

.input-header {
    margin-bottom: 24px;
}

.input-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.input-header p {
    color: var(--text-secondary);
    margin-top: 8px;
}

.url-input-group {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.input-with-icon {
    position: relative;
    flex: 1;
}

.input-with-icon i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 1.2rem;
}

.url-input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.url-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.15);
}

.url-input::placeholder {
    color: var(--text-muted);
}

.fetch-btn {
    padding: 16px 32px;
    background: linear-gradient(135deg, #000000 0%, var(--accent) 100%);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.fetch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(236, 72, 153, 0.3);
}

.fetch-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.url-examples {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.examples-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.example-items {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.example-item {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
}

/* Loading Section */
.loading-card {
    background: var(--card-gradient);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: 60px 30px;
    text-align: center;
    box-shadow: var(--shadow);
}

.loading-spinner {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.loading-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.loading-card p {
    color: var(--text-secondary);
    margin: 0;
}

/* Video Preview Section */
.video-preview-card {
    background: var(--card-gradient);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: 30px;
    box-shadow: var(--shadow);
}

.video-preview-header {
    margin-bottom: 24px;
}

.video-preview-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.video-preview-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    align-items: start;
}

.video-thumbnail {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

.video-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.video-thumbnail:hover img {
    transform: scale(1.05);
}

.video-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

.video-thumbnail:hover .video-play-overlay {
    opacity: 1;
}

.video-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.video-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0;
}

.video-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.meta-item i {
    color: var(--accent);
    width: 16px;
}

.video-description {
    color: var(--text-secondary);
    line-height: 1.6;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent);
}

/* Download Options Section */
.download-options-card {
    background: var(--card-gradient);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: 30px;
    box-shadow: var(--shadow);
}

.download-options-header {
    margin-bottom: 24px;
}

.download-options-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.download-options-header p {
    color: var(--text-secondary);
    margin-top: 8px;
}

.download-options-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.format-group {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
}

.format-group-header {
    margin-bottom: 16px;
}

.format-group-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.format-group-title i {
    color: var(--accent);
}

.format-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.format-option {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.format-option:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.format-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.format-quality {
    font-weight: 700;
    color: var(--text-primary);
}

.format-size {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.format-details {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.download-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #000000 0%, var(--accent) 100%);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.download-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.unavailable-message {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    padding: 20px;
}

/* Error Section */
.error-card {
    background: var(--card-gradient);
    border: 1px solid var(--danger);
    border-radius: var(--border-radius-xl);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
}

.error-icon {
    font-size: 3rem;
    color: var(--danger);
    margin-bottom: 20px;
}

.error-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.error-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--card-gradient);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #000000 0%, var(--accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

.feature-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* About Section */
.about-section {
    margin-top: 20px;
}

.about-card {
    background: var(--card-gradient);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: 30px;
    box-shadow: var(--shadow);
}

.about-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.about-header i {
    color: var(--accent);
    font-size: 1.5rem;
}

.about-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.about-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.about-feature i {
    color: var(--accent);
}

.about-feature span {
    font-weight: 600;
    color: var(--text-primary);
}

/* FAQ Section */
.faq-section {
    margin-top: 40px;
}

.faq-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.faq-item {
    background: var(--card-gradient);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.faq-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-item h4::before {
    content: '•';
    color: var(--accent);
    font-size: 1.2rem;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: var(--card-gradient);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--warning) 0%, var(--warning-dark) 100%);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 30px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.modal-body {
    padding: 30px;
    text-align: center;
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--warning) 0%, var(--warning-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.modal-body h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.modal-body p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal-features {
    text-align: left;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--text-primary);
}

.feature-item i {
    color: var(--success);
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 0 30px 30px;
}

.modal-footer .btn-secondary,
.modal-footer .btn-primary {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
}

.btn-primary {
    background: linear-gradient(135deg, #000000 0%, var(--accent) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
    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.2), transparent);
    transition: left 0.6s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(236, 72, 153, 0.4);
}

/* Animations */
@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .tool-container {
        padding: 15px;
    }
    
    .tool-title {
        font-size: 2.2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .how-to-use-steps {
        grid-template-columns: 1fr;
    }
    
    .input-card, .video-preview-card, .download-options-card {
        padding: 20px;
    }
    
    .url-input-group {
        flex-direction: column;
    }
    
    .video-preview-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .video-thumbnail {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .video-meta {
        grid-template-columns: 1fr;
    }
    
    .format-options {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-footer {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .tool-title {
        font-size: 1.8rem;
    }
    
    .tool-description {
        font-size: 1rem;
    }
    
    .video-preview-content {
        gap: 15px;
    }
    
    .video-title {
        font-size: 1.2rem;
    }
}
