/* Reset & base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #f5f7fa;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #172f50 0%, #2c5282 55%, #3d68a0 100%);
    color: white;
    padding: 42px 0;
    text-align: center;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Intro */
.intro {
    background: white;
    padding: 24px;
    margin: 30px 0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.intro p {
    margin-bottom: 10px;
}

.updated {
    font-size: 0.9rem;
    color: #666;
}

/* Ranking cards */
.ranking {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 40px;
}

.card {
    min-height: 270px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: stretch;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.rank-1 {
    border: 2px solid #f6ad55;
}

.rank-badge {
    background: #2c5282;
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
    flex: 0 0 68px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rank-1 .rank-badge {
    background: linear-gradient(135deg, #f6ad55, #ed8936);
}

.card-media {
    position: relative;
    flex: 0 0 250px;
    min-width: 0;
    overflow: hidden;
    background: #101827;
}

.card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset -18px 0 24px -24px rgba(0, 0, 0, 0.5);
}

.card-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.35s ease;
}

.card:hover .card-media img {
    transform: scale(1.025);
}

.card-media img.media-landscape {
    object-position: 52% center;
}

.card-media img.media-wide {
    object-position: 50% center;
}

.card-media img.media-contain {
    object-fit: contain;
    padding: 12px;
    background: #090b10;
}

.card-content {
    padding: 22px 26px;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.card-content h2 {
    font-size: 1.45rem;
    margin-bottom: 4px;
    color: #1a202c;
}

.tagline {
    color: #4a5568;
    font-size: 0.96rem;
    margin-bottom: 12px;
}

.features {
    list-style: none;
    margin-bottom: 18px;
    flex: 1;
}

.features li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 4px;
    font-size: 0.95rem;
    color: #2d3748;
}

.features li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #3182ce;
    font-weight: bold;
}

.meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.score {
    font-weight: 700;
    font-size: 1.1rem;
    color: #2b6cb0;
}

.btn {
    display: inline-block;
    background: #3182ce;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
    background: #2b6cb0;
    transform: translateY(-1px);
}

.btn:focus-visible {
    outline: 3px solid rgba(49, 130, 206, 0.28);
    outline-offset: 3px;
}

/* Disclaimer */
.disclaimer {
    background: #edf2f7;
    padding: 20px 24px;
    border-radius: 12px;
    margin-bottom: 40px;
    font-size: 0.9rem;
    color: #4a5568;
}

.disclaimer h3 {
    margin-bottom: 8px;
    color: #2d3748;
}

/* Footer */
footer {
    background: #1a202c;
    color: #a0aec0;
    text-align: center;
    padding: 24px 0;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 820px) {
    .container {
        padding: 0 16px;
    }

    .card-media {
        flex-basis: 220px;
    }

    .card-content {
        padding: 20px;
    }
}

@media (max-width: 680px) {
    header h1 {
        font-size: 1.5rem;
    }

    .card {
        min-height: 0;
        flex-direction: column;
    }

    .rank-badge {
        flex: none;
        min-width: 100%;
        padding: 8px 0;
        font-size: 1.25rem;
    }

    .card-media {
        flex: none;
        width: 100%;
        height: 280px;
    }

    .card-media::after {
        box-shadow: inset 0 -18px 24px -24px rgba(0, 0, 0, 0.5);
    }

    .card-content {
        padding: 20px;
    }

    .meta {
        align-items: center;
    }
}

@media (max-width: 420px) {
    .card-media {
        height: 245px;
    }

    .meta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        text-align: center;
    }
}
