/* 
 * Ninth Art Publishing - Ranking Page Styles
 * Premium Dark Theme with Industrial Aesthetics
 */

.ranking-page {
    padding-top: calc(var(--header-height) - 20px);
    padding-bottom: 60px;
}

/* --- Hero Section --- */
.ranking-hero {
    text-align: left;
    margin-bottom: 4px;
}

.ranking-hero h1 {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 8px;
    color: #ffffff;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: #ffffff;
}

.ranking-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 24px;
}

/* --- Prateleiras (dropdown de ligas, sem caixa) --- */
.top-tiers-label {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-color);
}

.top-tiers-picker {
    position: relative;
    display: inline-flex;
}

/* Painel ancorado à direita para não sair do ecrã */
.top-tiers-picker .top-tiers-panel {
    left: auto;
    right: 0;
}

.top-tiers-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 2px;
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
}

.top-tiers-toggle .chevron-icon {
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

.top-tiers-picker.panel-open .chevron-icon {
    transform: rotate(180deg);
}

.top-tiers-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: min(60vh, 420px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.top-tiers-options::-webkit-scrollbar {
    display: none;
}

.top-tier-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
}

/* Prateleira que "não existe" (cadeia incompleta) fica oculta */
.top-tier-option[hidden] {
    display: none;
}

.top-tier-option .top-tier-name {
    color: var(--text-secondary);
}

.top-tier-option:hover .top-tier-name,
.top-tier-option.active .top-tier-name {
    color: #ffffff;
}

.top-tier-option.active {
    background: rgba(0, 123, 255, 0.12);
}

.top-tier-img {
    -webkit-user-drag: none;
}

.top-tier-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

/* Esconde a imagem do toggle quando "Todas" está selecionado */
.top-tier-img[hidden] {
    display: none;
}

.top-tier-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}

.top-tier-name {
    font-size: 0.74rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
}

/* Mobile adjustments for hero */
@media (max-width: 991px) {
    .ranking-page {
        padding-top: 0;
    }

    .ranking-hero {
        margin-top: 10px;
        margin-bottom: 14px;
    }

    .ranking-hero h1 {
        font-size: 1.25rem;
        letter-spacing: -0.5px;
        margin-bottom: 0;
        flex: 1 1 auto;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ranking-hero-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 10px;
    }

    /* Mobile: só imagem + nome, sem o label azul */
    .top-tiers-label {
        display: none;
    }

    .top-tiers-toggle {
        flex-shrink: 0;
    }

    .top-tier-img {
        width: 26px;
        height: 26px;
    }

    .top-tier-name {
        font-size: 0.68rem;
    }
}

/* --- Navigation & Filters --- */
.ranking-nav-sticky {
    position: sticky;
    top: var(--header-height);
    z-index: 100;
    background: rgba(0, 0, 0, 0.95);
    padding: 12px 0;
    margin-bottom: 16px;
}

.ranking-nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Horizontal Scroll Categories */
.ranking-categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0;
}

.ranking-categories::-webkit-scrollbar {
    display: none;
}

.cat-pill {
    padding: 8px 18px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cat-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.cat-pill.active {
    background: var(--accent-solid, #0069DB);
    border-color: var(--accent-solid, #0069DB);
    color: #fff;
}

/* Region Select */
.region-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.scope-select {
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    color-scheme: dark;
    max-width: 220px;
    transition: all 0.2s ease;
}

.scope-select:hover,
.scope-select:focus {
    color: var(--accent-color);
    outline: none;
}

.scope-sheet-handle {
    display: none;
}
.scope-dropdown-item {
    position: relative;
    display: inline-flex;
    flex-direction: column;
}

.scope-btn-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.chevron-icon {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.scope-dropdown-item.panel-open .chevron-icon {
    transform: rotate(180deg);
}

.scope-dropdown-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 300;
    width: 260px;
    max-width: calc(100vw - 48px);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #111114;
    border: none;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.scope-dropdown-item.active .region-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

    .scope-dropdown-backdrop {
        display: none;
    }

.scope-dropdown-panel[hidden] {
    display: none;
}

.scope-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.scope-search-wrap svg {
    width: 14px;
    height: 14px;
    flex: none;
    color: var(--text-secondary);
}

.scope-search {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.85rem;
}

.scope-search::placeholder {
    color: var(--text-secondary);
}

.scope-options {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 110px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.scope-options::-webkit-scrollbar {
    display: none;
}

.scope-option {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    padding: 8px 10px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.scope-option-flag {
    width: 18px;
    height: 13px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.scope-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.scope-option.active {
    background: rgba(255, 255, 255, 0.06);
    color: var(--accent-color);
}

.scope-option-empty {
    cursor: default;
    opacity: 0.6;
}

.scope-option-empty:hover {
    background: transparent;
    color: var(--text-secondary);
}

.region-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.region-btn svg {
    width: 15px;
    height: 15px;
    stroke-width: 2;
}

.region-btn:hover {
    color: #fff;
}

.region-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

/* Mobile: filtros na mesma linha com scroll horizontal se necessário, painéis 100% largura (bottom sheet) */
@media (max-width: 600px) {
    .region-select-wrap {
        gap: 6px;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 4px;
    }

    .region-select-wrap::-webkit-scrollbar {
        display: none;
    }

    .scope-dropdown-item {
        flex: 0 0 auto;
    }

    .region-btn {
        padding: 6px 10px;
        gap: 4px;
        font-size: 0.78rem;
        white-space: nowrap;
        justify-content: flex-start;
        width: auto;
    }

    .region-btn svg {
        width: 13px;
        height: 13px;
    }

    .scope-dropdown-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.75);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 999998;
    }

    .scope-dropdown-backdrop[hidden] {
        display: none;
    }

    .scope-dropdown-panel {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100vw !important;
        max-width: 100vw !important;
        border-radius: 24px 24px 0 0 !important;
        box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.9) !important;
        padding: 24px 20px 40px 20px !important;
        z-index: 999999 !important;
        box-sizing: border-box !important;
    }

    .scope-sheet-handle {
        display: block;
        width: 36px;
        height: 4px;
        background: rgba(255, 255, 255, 0.25);
        border-radius: 2px;
        margin: 0 auto 12px auto;
    }

    .scope-options {
        max-height: none;
    }

    body.dropdown-modal-open .mobile-nav {
        display: none !important;
    }
}

/* Mobile estreito (<=360px): continua numa linha sem scroll */
@media (max-width: 360px) {
    .region-select-wrap {
        gap: 4px;
    }

    .region-btn {
        padding: 6px 7px;
        font-size: 0.72rem;
    }
}

/* --- The Big Three (Top 3) --- */
.big-three-section {
    margin-bottom: 60px;
}

.big-three-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 24px;
    align-items: flex-end;
}

.top-rank-card {
    position: relative;
    background: #0a0a0c;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    overflow: hidden;
}

.top-rank-card:hover {
    border-color: rgba(0, 123, 255, 0.3);
}

.rank-number {
    position: absolute;
    top: -20px;
    right: -10px;
    font-size: 8rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    z-index: 1;
    pointer-events: none;
    font-style: italic;
}

.top-rank-card.rank-1 {
    min-height: 440px;
    border: 1px solid rgba(255, 193, 7, 0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.top-rank-card.rank-1 .rank-number {
    color: rgba(255, 193, 7, 0.05);
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.badge-angola { background: rgba(255, 193, 7, 0.1); color: #ffc107; }
.badge-africa { background: rgba(0, 123, 255, 0.1); color: #007bff; }
.badge-global { background: rgba(220, 53, 69, 0.1); color: #dc3545; }

.rank-card-image {
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.rank-card-info {
    position: relative;
    z-index: 2;
}

.rank-card-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-card-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.rank-card-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.stat-item i {
    color: var(--accent-color);
}

/* --- Ranking List (Detailed) --- */
.ranking-list-section {
    padding-top: 20px;
}

.section-label {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--accent-color);
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    display: block;
}

.ranking-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
}

.rank-row {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    transition: background 0.2s ease;
    cursor: pointer;
}

.rank-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.rank-cell {
    padding: 16px;
    vertical-align: middle;
}

.rank-cell:first-child { border-radius: 12px 0 0 12px; font-weight: 800; width: 60px; text-align: center; }
.rank-cell:last-child { border-radius: 0 12px 12px 0; text-align: right; }

.rank-work-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rank-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}

.rank-work-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.rank-work-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

/* --- Mobile Adaptivity --- */
@media (max-width: 991px) {
    .big-three-grid {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .top-rank-card.rank-1 {
        min-height: auto;
        order: -1; /* Traz o #1 para o topo no mobile */
    }

    .ranking-nav-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .rank-number {
        font-size: 6rem;
    }

    .ranking-table thead {
        display: none;
    }
}

/* --- Grade de Cards estilo Top Global (Redesenhado para Lista Horizontal) --- */
.ranking-grid-section {
    padding-top: 4px;
}

.ranking-grid-section .container {
    padding-left: 0;
    padding-right: 0;
}

.rk-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rk-empty {
    text-align: center;
    padding: 48px 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: #111114;
    border-radius: 16px;
}

.rk-card {
    display: flex;
    align-items: center;
    background: #111114;
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    min-height: 120px;
    width: 100%;
    transition: background 0.2s ease;
}

.rk-card:hover {
    background: #18181c;
}

.rk-card-overlay {
    display: none;
}

.rk-card-content {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Coluna 1: Rank e Indicador de Tendência
   Largura fixa → todas as capas alinhadas; dígito com a mesma altura da capa;
   seta elevada (expoente) no topo do número */
.rk-rank-column {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 4px;
    width: 184px;
    margin-right: 4px;
    flex-shrink: 0;
}

.rk-rank {
    font-size: 9rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
}

.rk-trend {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
}

.rk-trend svg {
    width: 16px;
    height: 16px;
    stroke-width: 3;
}

.rk-trend-up {
    color: #22c55e;
}

.rk-trend-down {
    color: #ef4444;
}

.rk-trend-same {
    visibility: hidden;
}

/* Zonas do ciclo — PC: cartão INTEIRO tingido na cor (sem linha à esquerda) */
.rk-card.rk-zone-up {
    background: rgba(63, 185, 80, 0.32);
}

.rk-card.rk-zone-down {
    background: rgba(248, 81, 73, 0.32);
}

.rk-card.rk-zone-up:hover {
    background: rgba(63, 185, 80, 0.42);
}

.rk-card.rk-zone-down:hover {
    background: rgba(248, 81, 73, 0.42);
}

/* Coluna 2: Capa da Obra */
.rk-cover-column {
    width: 96px;
    aspect-ratio: 0.76;
    border-radius: 8px;
    overflow: hidden;
    background: #0a0a0c;
    flex-shrink: 0;
    margin-right: 20px;
    position: relative;
    z-index: 3;
}

.rk-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Imagem da prateleira sobre a capa (canto superior direito) */
.rk-cover-shelf {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 2;
    display: block;
    line-height: 0;
    pointer-events: none;
}

.rk-cover-shelf[hidden] {
    display: none;
}

.rk-cover-shelf img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.65));
}

/* Badge de movimento AO VIVO (assets/js/ranking_live.js) — sobre a capa,
   canto inferior esquerdo: posicionamento absoluto → zero CLS, e não
   compete com a seta de tendência (.rk-trend) nem com o número de rank. */
.rk-delta {
    position: absolute;
    left: 4px;
    bottom: 4px;
    z-index: 2;
    display: none;
    align-items: center;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    padding: 2px 6px;
    border-radius: 999px;
    line-height: 1.3;
    white-space: nowrap;
    pointer-events: none;
    background: rgba(10, 10, 12, 0.78);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.rk-delta.is-visible {
    display: inline-flex;
}

.rk-delta.up {
    color: #22c55e;
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.55);
}

.rk-delta.down {
    color: #ef4444;
    box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.55);
}

/* Coluna 3: Informações Completas */
.rk-info-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
    gap: 12px;
}

/* Nome da obra e origem */
.rk-title-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.rk-title-line {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1;
    width: 100%;
}

.rk-work-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rk-bd-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffc107;
    flex-shrink: 0;
}

.rk-bd-badge svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.rk-origin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #aaaaaa;
}

/* Rótulo do episódio (One-shot / Episódio N / Brevemente) — igual ao Top Global */
.rk-ep-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af; /* AA 4.5:1 sobre fundo escuro (era #888, margem curta) */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.rk-origin .fi {
    font-size: 0.9rem;
    border-radius: 2px;
}

.rk-origin .rk-flag-img {
    width: 18px;
    height: 13px;
    object-fit: cover;
    border-radius: 2px;
    vertical-align: -2px;
}

.rk-score {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fbbf24;
    margin-left: 8px;
    white-space: nowrap;
}

.rk-score svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

/* Criadores e Dados do Publicador */
.rk-publisher-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rk-creators {
    display: flex;
    align-items: center;
}

.rk-avatar-wrap {
    position: relative;
    display: inline-flex;
    margin-left: -15px;
}

.rk-avatar-wrap:first-child {
    margin-left: 0;
}

.rk-creator-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #111111;
    display: block;
}

.rk-publisher-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.rk-publisher-name-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rk-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rk-verified {
    color: #007BFF;
}

.rk-user {
    font-size: 0.75rem;
    font-weight: 600;
    color: #bbbbbb;
}

/* Adaptatividade para telas menores (Tablets & Mobiles) */
@media (max-width: 991px) {
    body {
        overflow-x: hidden;
    }

    .ranking-page {
        padding-left: 0;
        padding-right: 0;
    }

    .ranking-grid-section {
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        width: 100vw;
    }

    .ranking-grid-section .container {
        max-width: 100vw;
        padding-left: 0;
        padding-right: 0;
        width: 100%;
    }

    .rk-grid {
        gap: 2px;
    }

    .rk-card {
        padding: 10px 12px;
        min-height: 116px;
        border-radius: 0;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        background-size: cover;
    }

    .rk-card-overlay {
        border-radius: 0;
    }

    /* Mobile: sem tinta no cartão — volta a linha de cor à esquerda */
    .rk-card.rk-zone-up,
    .rk-card.rk-zone-down {
        background: #111114;
    }

    .rk-card.rk-zone-up {
        box-shadow: inset 4px 0 0 #3fb950;
    }

    .rk-card.rk-zone-down {
        box-shadow: inset 4px 0 0 #f85149;
    }

    /* Redução mobile: números, títulos e cards mais compactos */
    .rk-rank-column {
        width: 100px;
        gap: 2px;
        margin-right: 4px;
        justify-content: flex-end;
        align-items: flex-start;
    }

    .rk-rank {
        font-size: 4.5rem;
    }

    .rk-trend {
        margin-top: 6px;
    }

    .rk-trend svg {
        width: 12px;
        height: 12px;
    }

    .rk-cover-column {
        width: 76px;
        margin-right: 12px;
    }

    .rk-cover-shelf {
        top: 3px;
        right: 3px;
    }

    .rk-cover-shelf img {
        width: 20px;
        height: 20px;
    }

    .rk-info-column {
        gap: 6px;
    }

    .rk-work-title {
        font-size: 0.85rem;
    }

    .rk-origin {
        font-size: 0.68rem;
    }

    .rk-origin .fi {
        font-size: 0.75rem;
    }

    .rk-origin .rk-flag-img {
        width: 14px;
        height: 10px;
    }

    /* Mobile: perfil do autor (avatar/nome/utilizador) escondido no cartão */
    .rk-publisher-row {
        display: none;
    }
}

@media (max-width: 576px) {
    .rk-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
