/* ============================================
   Twitter to MP4 Downloader
   Light Mode default, Dark Mode via [data-theme="dark"]
   Blue Theme (#3399cc) - matches Twitter tool family
   Prefix: t2m-
   ============================================ */

:root {
    --transition-speed: 0.25s;

    /* Primary - Blue */
    --primary: #3399cc;
    --primary-light: #e0f2fe;
    --primary-dark: #2980b9;
    --accent: #60a5fa;

    /* Status */
    --success: #339966;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #e64e4e;
    --danger-light: #fee2e2;

    /* Backgrounds */
    --bg: #f0f9ff;
    --bg-elevated: #ffffff;
    --bg-secondary: #e0f2fe;
    --bg-tertiary: #bae6fd;

    /* Text */
    --text: #0c4a6e;
    --text-secondary: #075985;
    --text-muted: #6b7280;

    /* Borders */
    --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-bg: #ffffff;
    --input-border: #bae6fd;
}

[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;
}

* { 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);
}

/* Override custom_styles.css overflow:hidden */
.tool-main {
    overflow: visible !important;
}

.tool-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

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

.t2m-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);
}

.t2m-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 */
.t2m-input-section {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

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

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

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

.t2m-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);
}

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

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

.t2m-paste-btn {
    flex: 0 0 auto;
    width: 46px;
    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;
}

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

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

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

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

.t2m-hint-item i {
    opacity: 0.6;
}

/* Buttons */
.t2m-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);
    text-decoration: none;
}

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

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

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

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

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

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

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

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

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

/* Supported formats */
.t2m-supported-formats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.t2m-formats-label {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text-muted);
    margin-right: 0.25rem;
}

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

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

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

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

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

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

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

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

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

.t2m-results-header h2 i {
    color: var(--success);
}

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

.t2m-meta-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.t2m-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);
}

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

.t2m-tweet-author {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

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

/* Single video result */
.t2m-single-result {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.t2m-single-preview {
    display: flex;
    justify-content: center;
}

.t2m-video-preview-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
}

.t2m-video-preview-wrapper img {
    display: block;
    max-width: 100%;
    max-height: 400px;
}

.t2m-video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    color: #ffffff;
    pointer-events: none;
}

.t2m-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;
    background: var(--bg-secondary);
}

.t2m-single-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.t2m-single-info-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

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

/* Quality picker */
.t2m-quality-picker {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

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

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

.t2m-quality-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.t2m-quality-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-elevated);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-speed);
}

.t2m-quality-option:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.t2m-quality-option.t2m-active {
    border-color: var(--primary);
    background: var(--primary-light);
}

.t2m-quality-radio {
    width: 16px !important;
    height: 16px !important;
    border: 2px solid var(--border) !important;
    background: var(--bg-elevated) !important;
    accent-color: var(--primary) !important;
    margin: 0 !important;
    cursor: pointer !important;
}

.t2m-quality-option.t2m-active .t2m-quality-radio {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

.t2m-quality-label {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.t2m-quality-name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.t2m-quality-dims {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.t2m-quality-bitrate {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.t2m-quality-best-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    background: var(--success-light);
    color: var(--success);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
}

/* Cross-promo card under quality picker */
.t2m-cross-promo {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: var(--primary-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 1rem;
}

.t2m-cross-promo i {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.t2m-cross-promo a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.t2m-cross-promo a:hover {
    text-decoration: underline;
}

/* Gallery (multi-video tweet) */
.t2m-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.t2m-media-card {
    position: relative;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-speed);
    min-width: 0;
}

.t2m-media-card:hover {
    border-color: var(--primary);
}

.t2m-media-card.t2m-selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.t2m-media-card-preview {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--bg-tertiary);
    overflow: hidden;
}

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

.t2m-media-card-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.t2m-media-card-overlay {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.t2m-media-card.t2m-selected .t2m-media-card-overlay {
    opacity: 1;
}

.t2m-media-card-info {
    padding: 0.625rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.t2m-media-type-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background: var(--primary);
    color: #ffffff;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    width: fit-content;
}

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

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

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

.t2m-selected-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.t2m-select-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--text);
    cursor: pointer;
    transition: all var(--transition-speed);
}

.t2m-select-all-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

/* Error */
.t2m-error-message {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 1rem 1.25rem;
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid var(--danger);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.t2m-error-message i {
    flex-shrink: 0;
    margin-top: 2px;
}

.t2m-error-message span {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text);
}

.t2m-error-message a {
    color: var(--primary);
    text-decoration: none;
}

.t2m-error-message a:hover {
    text-decoration: underline;
}

.t2m-error-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.t2m-error-close:hover {
    color: var(--text);
}

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

.t2m-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);
    border: 1px solid var(--border);
}

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

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

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

.t2m-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);
}

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

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

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

.t2m-info-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.t2m-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;
}

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

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

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

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

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

.t2m-info-card ul {
    padding-left: 1.5rem;
    margin: 0 0 1rem;
}

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

.t2m-steps-list li {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.t2m-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;
}

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

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

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

/* Format and Features Grids */
.t2m-features-grid,
.t2m-format-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.t2m-feature-item,
.t2m-format-item {
    padding: 1.25rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

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

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

.t2m-feature-item p,
.t2m-format-item p {
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
    color: var(--text-muted);
}

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

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

/* Spinning loader icon (used inline in buttons) */
.t2m-spin-icon {
    animation: t2m-spin 1s linear infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .tool-container {
        padding: 1rem;
    }

    .t2m-tool-title {
        font-size: 1.35rem;
    }

    .t2m-input-section,
    .t2m-results-section,
    .t2m-loading-section {
        padding: 1.25rem;
    }

    .t2m-media-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 0.75rem;
    }

    .t2m-download-bar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .t2m-download-bar-right {
        width: 100%;
    }

    .t2m-download-bar-right .t2m-btn {
        flex: 1;
    }

    .t2m-features-grid,
    .t2m-format-list {
        grid-template-columns: 1fr;
    }

    .t2m-related-tools {
        padding: 0 1rem;
    }

    .t2m-info-sections {
        padding: 0 1rem 1rem;
    }

    .t2m-info-card {
        padding: 1.25rem;
    }

    .t2m-results-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .t2m-media-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .t2m-single-info {
        gap: 0.75rem;
    }

    .t2m-quality-option {
        flex-wrap: wrap;
    }
}
