.ranking-intro {
    margin-bottom: 18px;
}

.ranking-intro-content {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 14px;
    background: #fffce8;
}

.ranking-panel {
    margin-bottom: 18px;
    overflow-x: auto;
    border: 1px solid #555;
    background: #f6f6f6;
}

.ranking-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    table-layout: fixed;
}

.ranking-table th,
.ranking-table td {
    border: 1px solid #555;
    vertical-align: middle;
}

.ranking-table thead th {
    padding: 8px 6px;
    background: #e8e8e8;
    text-align: center;
    font-weight: 700;
}

.ranking-table small {
    font-size: 11px;
    font-weight: 400;
}

.ranking-col-rank {
    width: 54px;
}

.ranking-col-hits {
    width: 78px;
}

.ranking-rank {
    padding: 8px 5px;
    background: #f1f1f1;
    text-align: center;
    font-weight: 700;
}

.ranking-site {
    padding: 7px;
    background: #fafafa;
    text-align: center;
}

.ranking-site-name {
    display: block;
    margin-bottom: 6px;
    color: #a00000;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.ranking-site-name:hover {
    text-decoration: underline;
}

.ranking-banner-link {
    display: inline-block;
    max-width: 100%;
}

.ranking-banner {
    width: 468px;
    max-width: 100%;
    height: auto;
    min-height: 60px;
    display: block;
    margin: 0 auto;
    border: 1px solid #777;
    object-fit: contain;
    background: #fff;
}

.ranking-banner-placeholder {
    width: 468px;
    max-width: 100%;
    min-height: 60px;
    display: grid;
    place-items: center;
    margin: 0 auto;
    padding: 8px;
    border: 1px solid #777;
    color: #a00000;
    background:
        repeating-linear-gradient(
            -25deg,
            #eaffff,
            #eaffff 8px,
            #fff 8px,
            #fff 16px
        );
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
}

.ranking-description {
    margin-top: 5px;
    line-height: 1.35;
}

.ranking-category {
    margin-top: 4px;
    color: #555;
    font-size: 11px;
}

.ranking-hits {
    padding: 7px 4px;
    background: #fafafa;
    text-align: center;
}

.ranking-hits strong,
.ranking-hits small {
    display: block;
}

.ranking-hits strong {
    font-size: 15px;
}

.ranking-free-row td {
    padding-top: 5px;
    padding-bottom: 5px;
}

.ranking-free {
    padding: 5px 8px;
    background: #f7f7f7;
    text-align: center;
}

.ranking-free a {
    color: #111;
    text-decoration: none;
}

.ranking-free a:hover {
    color: #a00000;
    text-decoration: underline;
}

.ranking-empty {
    padding: 30px 15px;
    background: #fffce8;
    text-align: center;
    font-weight: 700;
}

.ranking-summary {
    margin-bottom: 18px;
}

.ranking-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #777;
}

.ranking-summary-grid span {
    padding: 10px 8px;
    background: #fafafa;
    text-align: center;
}

.ranking-summary-grid strong {
    display: block;
    color: #a00000;
    font-size: 17px;
}

.ranking-bottom-nav {
    margin-top: 0;
}

@media (max-width: 700px) {
    .ranking-intro-content {
        flex-direction: column;
        gap: 4px;
    }

    .ranking-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
