/* ============================================
   Twitter GIF Downloader
   Dark Mode Support with Light Mode Default
   Blue Theme for Social Media Tools
   ============================================ */

/* CSS Variables - Light Mode (Default) */
:root {
    --transition-speed: 0.25s;
    
    /* Primary Colors - Blue Theme */
    --primary: #3399cc;
    --primary-light: #e0f2fe;
    --primary-dark: #2980b9;
    --accent: #60a5fa;
    
    /* Status Colors */
    --success: #339966;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #e64e4e;
    --danger-light: #fee2e2;
    
    /* Background Colors */
    --bg: #f0f9ff;
    --bg-elevated: #ffffff;
    --bg-secondary: #e0f2fe;
    --bg-tertiary: #bae6fd;
    
    /* Text Colors */
    --text: #0c4a6e;
    --text-secondary: #075985;
    --text-muted: #6b7280;
    
    /* Border Colors */
    --border: #bae6fd;
    --border-light: #e0f2fe;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-primary: 0 4px 14px rgba(51, 153, 204, 0.25);
    --shadow-primary-hover: 0 6px 20px rgba(51, 153, 204, 0.35);
    
    /* Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Input */
    --input-bg: #ffffff;
    --input-border: #bae6fd;
}

/* Dark Mode Colors */
[data-theme="dark"] {
    --primary: #60a5fa;
    --primary-light: rgba(96, 165, 250, 0.15);
    --primary-dark: #3b82f6;
    --accent: #93c5fd;
    
    --success: #34d399;
    --success-light: rgba(52, 211, 153, 0.15);
    --warning: #fbbf24;
    --warning-light: rgba(251, 191, 36, 0.15);
    --danger: #f87171;
    --danger-light: rgba(248, 113, 113, 0.15);
    
    --bg: #0c1929;
    --bg-elevated: #152238;
    --bg-secondary: #1e3a5f;
    --bg-tertiary: #264a6e;
    
    --text: #e0f2fe;
    --text-secondary: #bae6fd;
    --text-muted: #a8a8b3;
    
    --border: #264a6e;
    --border-light: #1e3a5f;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4);
    --shadow-primary: 0 4px 14px rgba(96, 165, 250, 0.2);
    --shadow-primary-hover: 0 6px 20px rgba(96, 165, 250, 0.3);
    
    --input-bg: #1e3a5f;
    --input-border: #264a6e;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

/* Container */
.tool-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

/* Tool Header */
.tool-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tool-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 0 0 0.75rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.tool-title i {
    color: var(--primary);
}

.tool-description {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.tool-description a {
    color: var(--primary);
    text-decoration: none;
}

.tool-description a:hover {
    text-decoration: underline;
}

/* Input Section */
.input-section {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
}

.input-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text);
    font-weight: 600;
    font-size: 1.1rem;
}

.input-header i {
    color: var(--primary);
}

.url-input-wrapper {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.url-input {
    flex: 1 1 0%;
    width: 0;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    background: var(--input-bg);
    color: var(--text);
    outline: none;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.url-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(51, 153, 204, 0.15);
}

.url-input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.paste-btn {
    flex: 0 0 auto;
    width: 46px;
    height: auto;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    border-radius: var(--radius-md);
    transition: color var(--transition-speed), background var(--transition-speed), border-color var(--transition-speed);
    display: flex;
    align-items: center;
    justify-content: center;
}

.paste-btn:hover {
    color: var(--primary);
    background: var(--primary-light);
    border-color: var(--primary);
}

.paste-btn i {
    width: 18px;
    height: 18px;
}

.input-hints {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.hint-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.hint-item i {
    opacity: 0.6;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: var(--shadow-primary);
    width: 100%;
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-primary-hover);
    transform: translateY(-1px);
}

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

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
}

.btn-download {
    background: var(--success);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(51, 153, 102, 0.25);
}

.btn-download:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

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

.btn-download-gif {
    background: var(--primary);
    color: #ffffff;
    box-shadow: var(--shadow-primary);
}

.btn-download-gif:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-primary-hover);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Download Options */
.download-options {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.download-options .btn {
    flex: 1;
    min-width: 140px;
}

/* GIF Conversion Options */
.gif-options {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.gif-options-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text);
}

.gif-options-header i {
    color: var(--primary);
}

.gif-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.gif-option label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.375rem;
}

.gif-option select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--input-bg);
    color: var(--text);
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    transition: border-color var(--transition-speed);
}

.gif-option select:focus {
    border-color: var(--primary);
}

.gif-options-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.gif-success {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--success-light);
    border-radius: var(--radius-sm);
    color: var(--success);
    font-weight: 500;
}

/* Format Note */
.format-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.format-note i {
    flex-shrink: 0;
    margin-top: 0.125rem;
    color: var(--primary);
}

.format-note a {
    color: var(--primary);
    text-decoration: none;
}

.format-note a:hover {
    text-decoration: underline;
}

/* Supported Formats */
.supported-formats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.formats-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.format-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}

/* Loading State */
.loading-section {
    text-align: center;
    padding: 3rem 1rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

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

.loading-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.25rem;
}

.loading-subtext {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

/* Error Message */
.error-message {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--danger-light);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    color: var(--danger);
    font-size: 0.9rem;
    line-height: 1.5;
}

.error-message i {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.error-message a {
    color: var(--danger);
    font-weight: 600;
}

.error-close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    padding: 0.25rem;
    opacity: 0.7;
    flex-shrink: 0;
}

.error-close:hover {
    opacity: 1;
}

/* Results Section */
.results-section {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.results-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--success);
}

.results-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.meta-badge {
    padding: 0.375rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.tweet-author {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 1.25rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.tweet-author i {
    color: var(--primary);
}

/* Single Result */
.single-result {
    text-align: center;
}

.single-preview {
    max-width: 480px;
    margin: 0 auto 1.25rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-secondary);
}

.single-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.video-preview-wrapper {
    position: relative;
}

.video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    color: white;
}

.single-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.single-info-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.single-info-item i {
    color: var(--primary);
    width: 16px;
    height: 16px;
}

/* Media Grid */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.media-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    background: var(--bg-secondary);
}

.media-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.media-card-preview {
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
}

.media-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-card-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    color: white;
}

.media-card-overlay {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity var(--transition-speed), transform var(--transition-speed);
}

.media-card.selected .media-card-overlay {
    opacity: 1;
    transform: scale(1);
}

.media-card-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0.75rem;
    background: var(--bg-tertiary);
    font-size: 0.75rem;
}

.media-type-badge {
    padding: 0.125rem 0.5rem;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.media-dimensions {
    color: var(--text-muted);
    font-size: 0.7rem;
}

/* Download Bar */
.download-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    gap: 1rem;
    flex-wrap: wrap;
}

.download-bar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.selected-count {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.select-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    background: var(--bg-tertiary);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text);
    cursor: pointer;
    transition: background var(--transition-speed);
}

.select-all-btn:hover {
    background: var(--border);
}

.download-bar-right {
    display: flex;
    gap: 0.5rem;
}

/* Video/GIF Preview Placeholder */
.media-preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    color: var(--text-muted);
    min-height: 150px;
}

/* New URL Button */
.btn-new-url {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text);
    cursor: pointer;
    transition: all var(--transition-speed);
}

.btn-new-url:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Related Tools */
.tgd-related-tools {
    max-width: 1000px;
    margin: 0 auto 2rem;
    padding: 0 2rem;
}

.tgd-related-tools-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.tgd-related-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
}

.tgd-related-label i {
    color: var(--primary);
}

.tgd-related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tgd-related-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    color: var(--text);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all var(--transition-speed);
}

.tgd-related-link:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.tgd-related-link i {
    width: 16px;
    height: 16px;
}

/* Info Sections */
.tgd-info-sections {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}

.tgd-info-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.tgd-info-card h2 {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 1.25rem;
}

.tgd-info-card h2 i {
    color: var(--primary);
}

.tgd-info-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin: 1.5rem 0 0.75rem;
}

.tgd-info-card h3:first-of-type {
    margin-top: 0;
}

.tgd-info-card p,
.tgd-info-card li {
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 0 0.75rem;
}

.tgd-info-card a {
    color: var(--primary);
    text-decoration: none;
}

.tgd-info-card a:hover {
    text-decoration: underline;
}

/* Steps List */
.tgd-steps-list {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.tgd-steps-list li {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.tgd-steps-list li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.tgd-steps-list li strong {
    color: var(--text);
}

.tgd-steps-list a {
    color: var(--primary);
    text-decoration: none;
}

.tgd-steps-list a:hover {
    text-decoration: underline;
}

/* Features Grid */
.tgd-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.tgd-feature-item {
    padding: 1.25rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.tgd-feature-item i {
    color: var(--primary);
    margin-bottom: 0.75rem;
    display: block;
}

.tgd-feature-item h4 {
    margin: 0 0 0.375rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.tgd-feature-item p {
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}

/* Format List */
.tgd-format-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin: 1rem 0;
}

.tgd-format-item {
    padding: 1.25rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.tgd-format-item i {
    color: var(--primary);
    margin-bottom: 0.75rem;
    display: block;
}

.tgd-format-item h4 {
    margin: 0 0 0.375rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.tgd-format-item p {
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}

.tgd-format-item a {
    color: var(--primary);
    text-decoration: none;
}

.tgd-format-item a:hover {
    text-decoration: underline;
}

/* FAQ Section */
.tgd-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tgd-faq-item {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.tgd-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    transition: background-color var(--transition-speed);
}

.tgd-faq-question:hover {
    background: var(--bg-tertiary);
}

.tgd-faq-question i {
    color: var(--text-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.tgd-faq-item.active .tgd-faq-question i {
    transform: rotate(180deg);
}

.tgd-faq-answer {
    display: none;
    padding: 0 1.25rem 1rem;
}

.tgd-faq-item.active .tgd-faq-answer {
    display: block;
}

.tgd-faq-answer p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.tgd-faq-answer a {
    color: var(--primary);
    text-decoration: none;
}

.tgd-faq-answer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .tool-container {
        padding: 1rem;
    }
    
    .tool-title {
        font-size: 1.35rem;
    }
    
    .input-section {
        padding: 1.25rem;
    }
    
    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 0.75rem;
    }
    
    .download-bar {
        flex-direction: column;
        text-align: center;
    }
    
    .download-bar-right {
        width: 100%;
    }
    
    .download-bar-right .btn {
        flex: 1;
    }
    
    .download-options {
        flex-direction: column;
    }
    
    .download-options .btn {
        width: 100%;
    }
    
    .gif-options-grid {
        grid-template-columns: 1fr;
    }
    
    .tgd-features-grid {
        grid-template-columns: 1fr;
    }
    
    .tgd-format-list {
        grid-template-columns: 1fr;
    }
    
    .tgd-related-tools {
        padding: 0 1rem;
    }
    
    .tgd-info-sections {
        padding: 0 1rem 1rem;
    }
    
    .tgd-info-card {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .media-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .single-info {
        gap: 0.75rem;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
