/* ========== Page Header (dark) ========== */
.page-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 48px 20px 40px; text-align: center; position: relative; overflow: hidden;
}
.page-header::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 500px 250px at 50% 60%, rgba(194,37,92,0.10) 0%, transparent 70%);
    pointer-events: none;
}
.page-header-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.page-header h1 { font-size: 1.7rem; font-weight: 900; color: #fff; margin-bottom: 10px; }
.page-header h1 span { color: #f472b6; }
.page-header .lead { font-size: 0.92rem; color: #94a3b8; line-height: 1.7; }
.page-header .meta-badge {
    display: inline-block; font-size: 0.75rem; font-weight: 600;
    color: #94a3b8; background: rgba(255,255,255,0.06); padding: 4px 14px;
    border-radius: 20px; margin-top: 12px;
}

/* ========== Breadcrumb ========== */
.breadcrumb { font-size: 0.8rem; color: #94a3b8; margin: 16px 0 24px; }
.breadcrumb a { color: #64748b; text-decoration: none; }
.breadcrumb a:hover { color: #c2255c; }
.breadcrumb .sep { margin: 0 6px; }

/* ========== Ranking List ========== */
.ranking-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.ranking-item {
    display: flex; align-items: center; gap: 16px;
    background: #fff; border-radius: 12px; padding: 20px 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06); border: 1px solid #f1f5f9;
    text-decoration: none; color: inherit; transition: all 0.2s;
}
.ranking-item:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1); transform: translateY(-2px);
    text-decoration: none; border-color: #fce7f3;
}

/* Top 3 accent */
.ranking-item--1 { border-left: 4px solid #f59e0b; }
.ranking-item--2 { border-left: 4px solid #94a3b8; }
.ranking-item--3 { border-left: 4px solid #b45309; }

.rank-badge {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; font-weight: 900; flex-shrink: 0;
    background: #f1f5f9; color: #475569;
}
.ranking-item--1 .rank-badge { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; }
.ranking-item--2 .rank-badge { background: linear-gradient(135deg, #cbd5e1, #94a3b8); color: #fff; }
.ranking-item--3 .rank-badge { background: linear-gradient(135deg, #d97706, #b45309); color: #fff; }

.ranking-logo {
    width: 52px; height: 36px; object-fit: contain; flex-shrink: 0;
    background: #f8fafc; border-radius: 8px; padding: 4px;
}
.ranking-body { flex: 1; min-width: 0; }
.ranking-name { font-size: 1rem; font-weight: 700; color: #1e293b; margin-bottom: 4px; }
.ranking-summary { font-size: 0.82rem; color: #64748b; line-height: 1.5; }

.ranking-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.ranking-score {
    font-size: 0.78rem; font-weight: 700; color: #475569;
    background: #f1f5f9; padding: 3px 10px; border-radius: 6px;
}
.ranking-change { font-size: 0.72rem; font-weight: 600; }
.ranking-change--up { color: #16a34a; }
.ranking-change--down { color: #dc2626; }
.ranking-change--same { color: #94a3b8; }

.ranking-arrow { font-size: 1rem; color: #cbd5e1; flex-shrink: 0; }
.ranking-item:hover .ranking-arrow { color: #c2255c; }

/* ========== Score Bar ========== */
.score-bar { width: 80px; height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; }
.score-bar-fill { height: 100%; background: linear-gradient(90deg, #c2255c, #f472b6); border-radius: 3px; }

/* ========== CTA ========== */
.cta-block { text-align: center; padding: 32px 20px; }
.cta-block p { font-size: 0.9rem; color: #64748b; margin-bottom: 16px; }
.cta-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-link {
    display: inline-block; padding: 10px 24px; font-size: 0.88rem; font-weight: 700;
    border-radius: 8px; text-decoration: none; transition: all 0.2s;
}
.cta-link--primary { background: #c2255c; color: #fff; }
.cta-link--primary:hover { background: #a61e4d; text-decoration: none; color: #fff; }
.cta-link--secondary { background: #f1f5f9; color: #475569; }
.cta-link--secondary:hover { background: #e2e8f0; text-decoration: none; color: #1e293b; }

/* ========== Responsive ========== */
@media (max-width: 640px) {
    .page-header h1 { font-size: 1.3rem; }
    .ranking-item { padding: 16px; gap: 12px; }
    .ranking-logo { width: 40px; height: 28px; }
    .score-bar { width: 60px; }
}
