/* ===== CSS Variables & Design Tokens ===== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a24;
    --bg-elevated: #22222e;
    --bg-glass: rgba(18, 18, 26, 0.85);
    --surface-1: #1e1e28;
    --surface-2: #252532;
    --surface-3: #2d2d3d;
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b0;
    --text-tertiary: #707080;
    --text-muted: #505060;
    --accent-primary: #f97316;
    --accent-primary-hover: #fb923c;
    --accent-primary-glow: rgba(249, 115, 22, 0.3);
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #06b6d4;
    --success: #22c55e;
    --warning: #eab308;
    --error: #ef4444;
    --info: #3b82f6;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-default: rgba(255, 255, 255, 0.1);
    --gradient-primary: linear-gradient(135deg, #f97316 0%, #fb923c 50%, #fbbf24 100%);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 40px var(--accent-primary-glow);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --z-base: 1;
    --z-elevated: 10;
    --z-overlay: 100;
    --z-modal: 1000;
    --z-toast: 2000;
}

[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --surface-1: #ffffff;
    --surface-2: #f8fafc;
    --surface-3: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    --border-subtle: rgba(0, 0, 0, 0.04);
    --border-default: rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

.app-container::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(249, 115, 22, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(139, 92, 246, 0.1), transparent);
    pointer-events: none;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: var(--z-elevated);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    color: white;
    box-shadow: var(--shadow-glow);
}

.logo-icon svg {
    width: 20px;
    height: 20px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-badge {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 3px 8px;
    background: var(--surface-2);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md), 0 0 20px var(--accent-primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 30px var(--accent-primary-glow);
}

.btn-primary svg {
    width: 18px;
    height: 18px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 18px;
    background: var(--surface-2);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-secondary:hover {
    background: var(--surface-3);
    border-color: var(--accent-primary);
}

.btn-secondary svg {
    width: 16px;
    height: 16px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    color: var(--text-secondary);
}

.btn-icon:hover {
    background: var(--surface-3);
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.btn-icon svg {
    width: 20px;
    height: 20px;
}

.btn-icon .icon-moon {
    display: none;
}

[data-theme="light"] .btn-icon .icon-sun {
    display: none;
}

[data-theme="light"] .btn-icon .icon-moon {
    display: block;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: var(--z-base);
}

.url-section {
    margin-bottom: 2rem;
}

.url-input-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-tertiary);
    pointer-events: none;
}

.input-icon svg {
    width: 20px;
    height: 20px;
}

.url-input {
    width: 100%;
    padding: 14px 44px;
    font-size: 0.95rem;
    font-family: var(--font-sans);
    background: var(--surface-1);
    color: var(--text-primary);
    border: 2px solid var(--border-default);
    border-radius: var(--radius-lg);
    outline: none;
    transition: all var(--transition-normal);
}

.url-input::placeholder {
    color: var(--text-tertiary);
}

.url-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px var(--accent-primary-glow);
}

.btn-clear {
    position: absolute;
    right: 12px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    opacity: 0;
}

.url-input:not(:placeholder-shown)+.btn-clear {
    opacity: 1;
}

.btn-clear:hover {
    background: var(--surface-3);
    color: var(--text-primary);
}

.btn-clear svg {
    width: 16px;
    height: 16px;
}

.mode-toggle {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.mode-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: var(--surface-1);
    border: 2px solid var(--border-default);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.mode-option:hover {
    border-color: var(--accent-primary);
    background: var(--surface-2);
}

.mode-option input {
    display: none;
}

.mode-option input:checked+.mode-label {
    color: var(--accent-primary);
}

.mode-option:has(input:checked) {
    border-color: var(--accent-primary);
    background: rgba(249, 115, 22, 0.05);
    box-shadow: 0 0 20px var(--accent-primary-glow);
}

.mode-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.mode-label svg {
    width: 18px;
    height: 18px;
}

.mode-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding-left: 26px;
}

.url-info {
    display: flex;
    gap: 1rem;
}

.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    background: var(--surface-2);
    border: 1px solid var(--border-subtle);
}

.info-badge svg {
    width: 14px;
    height: 14px;
}

.info-badge.cloudflare {
    color: var(--accent-primary);
    border-color: rgba(249, 115, 22, 0.2);
}

.info-badge.secure {
    color: var(--success);
    border-color: rgba(34, 197, 94, 0.2);
}

.player-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.player-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--surface-1);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-default);
    box-shadow: var(--shadow-xl);
}

.player-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--surface-1) 0%, var(--surface-2) 100%);
}

.placeholder-content {
    text-align: center;
    padding: 2rem;
}

.placeholder-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-3);
    border-radius: var(--radius-xl);
    color: var(--text-tertiary);
}

.placeholder-icon svg {
    width: 60px;
    height: 60px;
}

.placeholder-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.placeholder-content p {
    color: var(--text-secondary);
    max-width: 400px;
}

.player-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.player-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    z-index: 5;
}

.loading-spinner {
    position: relative;
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
}

.spinner-ring {
    position: absolute;
    inset: 0;
    border: 3px solid transparent;
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-ring:nth-child(2) {
    inset: 8px;
    border-top-color: var(--accent-secondary);
    animation-duration: 0.8s;
    animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
    inset: 16px;
    border-top-color: var(--accent-tertiary);
    animation-duration: 0.6s;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.player-loading p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.loading-status {
    font-size: 0.8rem;
    color: var(--accent-primary);
    font-weight: 500;
}

.player-frame {
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--surface-1);
    border-radius: var(--radius-lg);
    margin-top: 1rem;
    border: 1px solid var(--border-subtle);
}

.control-group {
    display: flex;
    gap: 0.5rem;
}

.control-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.control-btn:hover {
    background: var(--surface-3);
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.control-btn svg {
    width: 20px;
    height: 20px;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 14px;
    background: var(--surface-2);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-tertiary);
}

.connection-status.connected .status-dot {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
    animation: pulse 2s infinite;
}

.connection-status.connecting .status-dot {
    background: var(--warning);
    animation: pulse 0.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.devtools-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 320px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-default);
    transform: translateY(100%);
    transition: transform var(--transition-normal);
    z-index: var(--z-overlay);
    display: flex;
    flex-direction: column;
}

.devtools-panel.open {
    transform: translateY(0);
}

.devtools-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    height: 44px;
    background: var(--surface-1);
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.devtools-tabs {
    display: flex;
    gap: 2px;
}

.devtools-tab {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 10px 16px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: var(--radius-sm);
}

.devtools-tab:hover {
    color: var(--text-primary);
    background: var(--surface-2);
}

.devtools-tab.active {
    color: var(--accent-primary);
    background: rgba(249, 115, 22, 0.1);
}

.devtools-tab svg {
    width: 14px;
    height: 14px;
}

.devtools-actions {
    display: flex;
    gap: 0.25rem;
}

.devtools-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.devtools-btn:hover {
    background: var(--surface-2);
    color: var(--text-primary);
}

.devtools-btn svg {
    width: 16px;
    height: 16px;
}

.devtools-content {
    display: none;
    flex: 1;
    overflow: auto;
}

.devtools-content.active {
    display: flex;
    flex-direction: column;
}

.network-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background: var(--surface-1);
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.filter-group {
    display: flex;
    gap: 2px;
}

.filter-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    background: transparent;
    color: var(--text-tertiary);
    border: none;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    color: var(--text-primary);
    background: var(--surface-2);
}

.filter-btn.active {
    color: var(--accent-primary);
    background: rgba(249, 115, 22, 0.1);
}

.search-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 6px 12px;
    background: var(--surface-2);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.search-filter svg {
    width: 14px;
    height: 14px;
    color: var(--text-tertiary);
}

.search-filter input {
    width: 200px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.8rem;
    color: var(--text-primary);
}

.search-filter input::placeholder {
    color: var(--text-tertiary);
}

.network-table-container {
    flex: 1;
    overflow: auto;
}

.network-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.network-table th {
    position: sticky;
    top: 0;
    background: var(--surface-1);
    padding: 10px 12px;
    text-align: left;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
}

.network-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.network-table tr:hover td {
    background: var(--surface-2);
}

.network-table tr.selected td {
    background: rgba(249, 115, 22, 0.1);
}

.col-status {
    width: 60px;
}

.col-method {
    width: 70px;
}

.col-type {
    width: 80px;
}

.col-size {
    width: 80px;
    text-align: right;
}

.col-time {
    width: 80px;
    text-align: right;
}

.status-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.status-badge.success {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.status-badge.redirect {
    background: rgba(234, 179, 8, 0.15);
    color: var(--warning);
}

.status-badge.error {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
}

.status-badge.pending {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
}

.method-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-tertiary);
}

.type-badge {
    display: inline-block;
    padding: 2px 6px;
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    background: var(--surface-3);
    color: var(--text-secondary);
}

.type-badge.xhr {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-secondary);
}

.type-badge.js {
    background: rgba(234, 179, 8, 0.15);
    color: var(--warning);
}

.type-badge.css {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
}

.type-badge.media {
    background: rgba(249, 115, 22, 0.15);
    color: var(--accent-primary);
}

.empty-row td {
    padding: 2rem;
}

.empty-state {
    text-align: center;
    color: var(--text-tertiary);
}

.empty-state svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.empty-state span {
    font-size: 0.8rem;
}

.network-summary {
    display: flex;
    gap: 1.5rem;
    padding: 0.5rem 1rem;
    background: var(--surface-1);
    border-top: 1px solid var(--border-subtle);
    font-size: 0.75rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.console-output {
    flex: 1;
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    overflow: auto;
}

.console-welcome,
.console-entry {
    display: flex;
    gap: 1rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.console-timestamp {
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.console-message {
    color: var(--text-primary);
    word-break: break-word;
}

.console-entry.error .console-message {
    color: var(--error);
}

.console-entry.warn .console-message {
    color: var(--warning);
}

.headers-panel {
    flex: 1;
    padding: 1rem;
    overflow: auto;
}

.headers-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-tertiary);
    text-align: center;
}

.headers-empty svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.headers-section {
    margin-bottom: 1.5rem;
}

.headers-section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--border-subtle);
}

.headers-list {
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.header-row {
    display: flex;
    padding: 4px 0;
}

.header-name {
    color: var(--accent-secondary);
    min-width: 200px;
}

.header-value {
    color: var(--text-primary);
    word-break: break-all;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-default);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform var(--transition-normal);
}

.modal-overlay.open .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--surface-1);
    border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--surface-2);
    color: var(--text-primary);
}

.modal-close svg {
    width: 18px;
    height: 18px;
}

.modal-body {
    padding: 1.5rem;
    overflow: auto;
    max-height: calc(80vh - 60px);
}

.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: var(--z-toast);
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 16px;
    background: var(--surface-1);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

.toast.success {
    border-left: 3px solid var(--success);
}

.toast.error {
    border-left: 3px solid var(--error);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

body.devtools-open .main-content {
    padding-bottom: 340px;
}

@media (max-width: 768px) {
    .header {
        padding: 0.5rem 1rem;
    }

    .main-content {
        padding: 1rem;
    }

    .url-input-container {
        flex-direction: column;
    }

    .devtools-panel {
        height: 280px;
    }

    .search-filter input {
        width: 120px;
    }
}