.rank-list {
    display: grid;
    gap: 16px;
}

.rank-card {
    background: #ffffff;
    border: 1px solid #e6e9ef;
    border-radius: 8px;
    padding: 16px 18px;
    box-shadow: 0 2px 6px rgba(20, 33, 61, 0.06);
}

.rank-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.rank-card-title {
    font-size: 18px;
    margin: 0;
    color: #1f2a37;
}

.rank-card-title a {
    color: inherit;
    text-decoration: none;
}

.rank-card-title a:hover {
    color: var(--primary-color, #2387d8);
}

.rank-card-badge {
    background: rgba(35, 135, 216, 0.12);
    color: var(--primary-color, #2387d8);
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 8px;
    white-space: nowrap;
}

.rank-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: #6b7280;
    font-size: 13px;
}

.rank-card-desc {
    margin-top: 10px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
}

.rank-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.rank-category-list a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f8fafc;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
}

.rank-category-list a.active,
.rank-category-list a:hover {
    background: rgba(35, 135, 216, 0.12);
    color: var(--primary-color, #2387d8);
}

.rank-page .rank-page-hero {
    background: #f8fafc;
    border: 1px solid rgba(214, 221, 230, 1);
    border-radius: 8px;
    padding: 20px 22px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    margin-bottom: 18px;
}

.rank-page .hero-title {
    margin: 0;
    font-size: 26px;
    color: var(--text-color, #333);
}

.rank-page .hero-subtitle {
    margin: 6px 0 0 0;
    color: var(--text-light, #666);
    font-size: 14px;
}

.rank-page .rank-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.rank-page .stat-card {
    background: #ffffff;
    border: 1px solid rgba(35, 135, 216, 0.2);
    border-radius: 8px;
    padding: 10px 12px;
    min-width: 120px;
    box-shadow: 0 2px 6px rgba(20, 33, 61, 0.08);
}

.rank-page .stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-light, #666);
}

.rank-page .stat-value {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color, #2387d8);
    margin-top: 4px;
}

.rank-page .rank-section {
    margin-bottom: 20px;
}

.rank-page .rank-section:last-child {
    margin-bottom: 0;
}

.rank-page .row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
}

.rank-page .col.col-9 {
    flex: 1 1 0%;
    min-width: 0;
}

.rank-page .col.col-3 {
    flex: 0 0 280px;
}

.rank-page .rank-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
}

.rank-page .rank-section {
    background: #ffffff;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 8px;
    padding: 16px;
    box-shadow: var(--shadow, 0 2px 10px rgba(0, 0, 0, 0.08));
}

.rank-page .section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.rank-page .section-header h2 {
    margin: 0;
    font-size: 18px;
    color: var(--primary-color, #2387d8);
}

.rank-page .section-subtitle {
    font-size: 13px;
    color: var(--text-light, #666);
}

.rank-page .category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.rank-page .category-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 8px;
    background: #ffffff;
    text-decoration: none;
    color: var(--text-color, #333);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.rank-page .category-card:hover {
    transform: translateY(-2px);
    border-color: rgba(35, 135, 216, 0.4);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.rank-page .category-card.active {
    border-color: var(--primary-color, #2387d8);
    background: rgba(35, 135, 216, 0.08);
}

.rank-page .category-name {
    font-weight: 600;
    font-size: 15px;
}

.rank-page .category-meta {
    font-size: 12px;
    color: var(--text-light, #666);
}

.rank-page .rank-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.rank-page .rank-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rank-page .rank-card-desc {
    margin-top: 0;
}

.rank-page .rank-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
}

.rank-page .rank-card-link {
    color: var(--primary-color, #2387d8);
    font-size: 13px;
    text-decoration: none;
}

.rank-page .rank-card-link:hover {
    text-decoration: underline;
}

.rank-page .empty-result {
    margin-top: 14px;
    background: #ffffff;
    border: 1px dashed var(--border-color, #ddd);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    color: var(--text-light, #666);
}

@media (max-width: 992px) {
    .rank-page .rank-page-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .rank-page .row {
        flex-direction: column;
    }

    .rank-page .col.col-3 {
        flex: 1 1 auto;
        width: 100%;
    }

    .rank-page .rank-split {
        grid-template-columns: 1fr;
    }

    .rank-page .category-grid,
    .rank-page .rank-list {
        grid-template-columns: 1fr;
    }
}

.rank-detail-header {
    background: #ffffff;
    border: 1px solid #e6e9ef;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(20, 33, 61, 0.06);
}

.rank-detail-header h1 {
    margin: 0 0 8px 0;
    font-size: 22px;
    color: #1f2a37;
}

.rank-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #6b7280;
}

.rank-detail-hero {
    position: relative;
    background: var(--white, #fff);
    border: 1px solid var(--border-color, #e6e9ef);
    border-radius: 8px;
    padding: 28px 26px;
    margin-bottom: 22px;
    box-shadow: var(--shadow, 0 2px 10px rgba(0, 0, 0, 0.08));
    overflow: hidden;
}

.rank-detail-hero::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color, #2387d8), var(--accent-color, #59a9ee));
}

.rank-hero-header {
    padding-left: 6px;
}

.rank-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    color: var(--primary-color, #2387d8);
    background: rgba(35, 135, 216, 0.12);
    border: 1px solid rgba(35, 135, 216, 0.25);
}

.rank-badge.primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color, #2387d8), var(--accent-color, #59a9ee));
    border-color: transparent;
}

.rank-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color, #333);
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.rank-desc {
    font-size: 15px;
    color: var(--text-light, #666);
    line-height: 1.8;
    margin: 0 0 18px 0;
}

.rank-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 18px;
    padding: 16px;
    border-radius: 8px;
    background: var(--bg-light, #f5f5f5);
    border: 1px dashed var(--border-color, #ddd);
}

.rank-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: var(--text-light, #666);
}

.rank-meta-item strong {
    font-size: 14px;
    color: var(--primary-color, #2387d8);
    font-weight: 700;
}

.rank-section {
    background: var(--white, #fff);
    border-radius: 8px;
    border: 1px solid var(--border-color, #e6e9ef);
    box-shadow: var(--shadow, 0 2px 10px rgba(0, 0, 0, 0.08));
    padding: 0 0 10px 0;
}

.rank-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-color, #e6e9ef);
}

.rank-section-title {
    font-size: 20px;
    color: var(--primary-color, #2387d8);
    font-weight: 700;
    margin: 0;
}

.rank-section-sub {
    font-size: 13px;
    color: var(--text-light, #666);
}

.rank-items-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.rank-items-table th,
.rank-items-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #eef2f7;
    text-align: left;
    font-size: 14px;
}

.rank-items-table th {
    background: linear-gradient(135deg, rgba(60, 71, 83, 0.12), rgba(54, 64, 117, 0.12));
    font-weight: 600;
}

.rank-no {
    width: 60px;
    font-weight: 700;
    color: var(--primary-color, #2387d8);
}

.rank-items-table tbody tr:nth-child(even) {
    background: rgba(29, 87, 226, 0.04);
}

.rank-items-table tbody tr:hover {
    background: rgba(29, 87, 226, 0.04);
}

.rank-item-title a {
    color: #1f2a37;
    text-decoration: none;
}

.rank-item-title a:hover {
    color: var(--primary-color, #2387d8);
}

.rank-item-metric,
.rank-item-time {
    color: #4b5563;
}

.empty-note {
    color: #9ca3af;
    font-size: 14px;
}

@media (max-width: 768px) {
    .rank-card-meta,
    .rank-detail-meta {
        flex-direction: column;
        gap: 6px;
    }

    .rank-items-table th:nth-child(4),
    .rank-items-table td:nth-child(4) {
        display: none;
    }
}

.rank-detail-header {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    margin-bottom: 20px;
}

.rank-meta-bar .filter-item {
    gap: 10px;
}

.rank-meta-bar .filter-tag {
    display: inline-block;
  padding: 5px 15px;
  border-radius: 8px;
  font-size: 14px;
  color: rgb(0, 0, 0);
  background-color: rgba(176, 176, 177, 0.1);
}

.rank-detail-desc {
    margin-top: 12px;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
}
