html {
    scroll-behavior: smooth;
}

.proxy-judge-body {
    background: url("/img/bg-lightl-881.webp") repeat #f4f4f4;
}

.proxy-judge-body .nav-count {
    margin-left: 6px;
    color: #007bff;
    font-size: 0.95em;
    font-weight: 700;
}

.proxy-judge-body footer {
    margin-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #777;
}

.proxy-judge-body footer img {
    vertical-align: middle;
}

.proxy-judge-page {
    display: grid;
    gap: 16px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 8px 0 4px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.proxy-judge-hero,
.proxy-judge-section,
.proxy-judge-info-card {
    position: relative;
    border: 3px solid #ddd;
    border-radius: 18px;
    background: #f6f6f6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.proxy-judge-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.92fr);
    gap: 24px;
    padding: 24px;
}

.proxy-judge-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #e8f4fd;
    color: #215f75;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.proxy-judge-hero h1 {
    margin: 0 0 14px;
    color: #1b2a44;
    font-size: clamp(30px, 4.8vw, 40px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.proxy-judge-lead {
    max-width: 68ch;
    margin: 0 0 20px;
    color: #333;
    font-size: 16px;
    line-height: 1.72;
}

.proxy-judge-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.proxy-judge-btn,
.proxy-judge-mini-btn,
.proxy-judge-filter {
    cursor: pointer;
    font: inherit;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.proxy-judge-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid #d0d0d0;
    font-weight: 600;
    text-decoration: none;
}

.proxy-judge-btn.is-primary {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.proxy-judge-btn.is-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.proxy-judge-btn.is-secondary {
    background: #fff;
    color: #333;
}

.proxy-judge-btn.is-secondary:hover,
.proxy-judge-mini-btn:hover,
.proxy-judge-filter:hover {
    background: #f0f6ff;
    border-color: #9cbfe6;
    transform: translateY(-1px);
}

.proxy-judge-hero-side {
    display: grid;
    gap: 14px;
}

.proxy-judge-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.proxy-judge-stat,
.proxy-judge-side-note {
    padding: 16px 14px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #f9f9f9;
}

.proxy-judge-stat__value {
    display: block;
    margin-bottom: 6px;
    color: #1b2a44;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.proxy-judge-stat__label,
.proxy-judge-side-note p,
.proxy-judge-section__head p,
.proxy-judge-note-text,
.proxy-judge-status-meta,
.proxy-judge-browser-hint {
    color: #4e5c72;
    font-size: 14px;
    line-height: 1.6;
}

.proxy-judge-side-note h2,
.proxy-judge-info-card h2,
.proxy-judge-section__head h2 {
    margin: 0 0 12px;
    color: #1b2a44;
    font-size: 22px;
    line-height: 1.2;
}

.proxy-judge-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.proxy-judge-info-card,
.proxy-judge-section {
    padding: 20px;
}

.proxy-judge-info-card p {
    margin: 0;
    color: #333;
    font-size: 15px;
    line-height: 1.7;
}

.proxy-judge-section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.proxy-judge-section__head h2 {
    margin-bottom: 8px;
}

.proxy-judge-toolbar {
    display: grid;
    gap: 14px;
    margin-bottom: 20px;
}

.proxy-judge-search {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font: inherit;
}

.proxy-judge-search:focus {
    outline: none;
    border-color: #0e87e6;
    box-shadow: 0 0 0 3px rgba(14, 135, 230, 0.14);
}

.proxy-judge-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.proxy-judge-filter {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #d0d0d0;
    border-radius: 999px;
    background: #fff;
    color: #333;
    font-weight: 700;
}

.proxy-judge-filter.is-active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.22);
}

.proxy-judge-status-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 10px;
}

.proxy-judge-status-meta {
    margin: 0;
}

.proxy-judge-browser-hint {
    margin: 0 0 14px;
    padding: 10px 12px;
    border: 1px solid #c9dff2;
    border-left: 4px solid #0e87e6;
    border-radius: 8px;
    background: #eef6ff;
}

.proxy-table-container.proxy-judge-table-surface {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 15px;
    max-width: 100%;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    overflow: hidden;
}

.proxy-judge-table-surface .table-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 0;
    background: transparent;
}

.proxy-judge-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    table-layout: fixed;
    text-align: left;
}

.proxy-judge-table th:nth-child(1) {
    width: 250px;
}

.proxy-judge-table th:nth-child(2) {
    width: 130px;
}

.proxy-judge-table th:nth-child(3) {
    width: 120px;
}

.proxy-judge-table th:nth-child(4) {
    width: 100px;
}

.proxy-judge-table th:nth-child(5) {
    width: 170px;
}

.proxy-judge-table th:nth-child(6) {
    width: 164px;
}

.proxy-judge-table th {
    padding: 0;
    background-color: #4caf50;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.proxy-judge-head-static {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 13px;
    color: inherit;
}

.proxy-judge-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #ddd;
    vertical-align: middle;
    background: #fff;
}

.proxy-judge-table tbody tr:nth-child(even) td {
    background: #fcfcfc;
}

.proxy-judge-table tbody tr:hover td {
    background: #f3f8ff;
}

.proxy-judge-url-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.proxy-judge-url-main strong {
    display: block;
    color: #1b2a44;
    font-size: 15px;
    line-height: 1.3;
}

.proxy-judge-url-main a {
    color: inherit;
    text-decoration: none;
}

.proxy-judge-url-main a:hover {
    color: #0e87e6;
}

.proxy-judge-url-sub {
    color: #4e5c72;
    font-size: 13px;
    line-height: 1.55;
    word-break: break-all;
}

.proxy-judge-tag-stack,
.proxy-judge-actions-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.proxy-judge-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef2f6;
    color: #425466;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.proxy-judge-badge.is-https {
    background: #e8f5ea;
    color: #25634a;
}

.proxy-judge-badge.is-http {
    background: #e8f4fd;
    color: #0f6fb7;
}

.proxy-judge-table td.metric-cell {
    text-align: center;
}

.proxy-judge-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.proxy-judge-status.is-up {
    background: rgba(54, 127, 92, 0.12);
    color: #25634a;
}

.proxy-judge-status.is-down {
    background: rgba(191, 61, 72, 0.1);
    color: #ad3240;
}

.proxy-judge-status.is-pending {
    background: rgba(120, 138, 160, 0.14);
    color: #425466;
}

.proxy-judge-status-source {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.proxy-judge-status-source.is-browser {
    color: #0e87e6;
}

.proxy-judge-status-source.is-server {
    color: #6b7280;
}

.proxy-judge-speed {
    color: #1b2a44;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.proxy-judge-uptime {
    display: grid;
    gap: 4px;
    justify-items: center;
}

.proxy-judge-uptime__value {
    color: #15395f;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.proxy-judge-uptime__meta {
    color: #607086;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

.proxy-judge-mini-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid #d0d0d0;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.proxy-judge-empty {
    margin: 10px 0 0;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    color: #4e5c72;
    font-size: 14px;
    line-height: 1.6;
}

.proxy-judge-plain__output {
    width: 100%;
    min-height: 220px;
    padding: 16px;
    border: 1px solid #ddd;
    border-left: 3px solid #4caf50;
    border-radius: 8px;
    background: #fff;
    color: #223244;
    font: 14px/1.7 Consolas, "Courier New", monospace;
    resize: vertical;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

@media (max-width: 980px) {
    .proxy-judge-body .topbar-nav-row,
    .proxy-judge-body .user-info,
    .proxy-judge-body .top-bar.is-overflowing .topbar-nav-row,
    .proxy-judge-body .top-bar.is-overflowing .user-info {
        display: none !important;
    }

    .proxy-judge-body .nav-hamburger-btn,
    .proxy-judge-body .top-bar.is-overflowing .nav-hamburger-btn {
        display: inline-flex !important;
        align-items: center;
    }
}

@media (max-width: 900px) {
    .proxy-judge-hero {
        grid-template-columns: 1fr;
    }

    .proxy-judge-info-grid {
        grid-template-columns: 1fr;
    }

    .proxy-judge-status-row {
        align-items: flex-start;
    }

    .proxy-judge-table {
        min-width: 760px;
    }
}

@media (max-width: 768px) {
    body.proxy-judge-body {
        padding: 0 !important;
    }

    .proxy-judge-body .top-bar,
    .proxy-judge-body .good-proxies-container,
    .proxy-judge-body .proxy-table-container,
    .proxy-judge-body .seo-cross-links {
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .proxy-judge-body .nav-more-menu {
        left: 0 !important;
        right: auto !important;
        transform: none !important;
    }
}

@media (max-width: 640px) {
    .proxy-judge-hero,
    .proxy-judge-section,
    .proxy-judge-info-card {
        padding: 18px;
        border-radius: 14px;
    }

    .proxy-judge-hero h1 {
        font-size: 32px;
    }

    .proxy-judge-section__head h2 {
        font-size: 24px;
    }

    .proxy-judge-stat-grid {
        grid-template-columns: 1fr;
    }

    .proxy-judge-status-row {
        flex-direction: column;
        align-items: stretch;
    }

    .proxy-judge-btn.is-secondary[data-judge-refresh="1"] {
        width: 100%;
    }

    .proxy-judge-table {
        min-width: 680px;
    }

    .proxy-judge-actions-inline {
        flex-direction: column;
    }
}