﻿    /* =============================================
       LEADERBOARD - STYLES BARU (RAPIH)
       ============================================= */
    .leaderboard-box {
        width: 100%;
        position: relative;
    }

    /* Ribbon baru: bagian atas card, tidak absolute */
    .ribbon {
        background-color: #0a75ad;
        border-radius: 10px 10px 0 0;
        padding: 0.65rem 1.25rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 0;
    }

    .ribbon-title {
        font-family: "Rubik", sans-serif;
        font-size: 0.9rem;
        font-weight: 600;
        color: #ffffff;
    }

    .ribbon-badge {
        background: rgba(255, 255, 255, 0.2);
        color: #ffffff;
        font-size: 0.68rem;
        font-weight: 500;
        padding: 2px 10px;
        border-radius: 99px;
        letter-spacing: 0.04em;
    }

    /* Card pembungkus tabel */
    .lb-card {
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 2px 12px rgba(10, 117, 173, 0.1);
        border: 1px solid #e5eaf3;
        background: #fff;
    }

    /* Tabel */
    .lb-card table {
        width: 100%;
        border-collapse: collapse;
        table-layout: fixed;
        color: #141a39;
        cursor: default;
    }

    .lb-card tr {
        transition: background 0.15s ease;
        background-color: #fff;
        border-bottom: 1px solid #f1f3f8;
    }

    .lb-card tr:last-child {
        border-bottom: none;
    }

    .lb-card tr:hover {
        background-color: #f7f9fd;
    }

    .lb-card td {
        height: 4.5rem;
        font-family: "Rubik", sans-serif;
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
        vertical-align: middle;
    }

    .lb-card .number {
        width: 2rem;
        font-size: 1.1rem;
        font-weight: 700;
        text-align: center;
        color: #9ca3af;
    }

    .lb-card .number.rank-1 { color: #f1c40f; }
    .lb-card .number.rank-2 { color: #b0bec5; }
    .lb-card .number.rank-3 { color: #cd7f32; }

    .lb-card .name {
        text-align: left;
        font-size: 0.88rem;
    }

    .lb-card .points {
        font-weight: 600;
        font-size: 0.9rem;
        text-align: right;
        padding-right: 1rem;
        color: #6b7280;
        white-space: nowrap;
    }

    .lb-card .points.top {
        color: #e6a800;
    }

    .name-container {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .leaderboard-img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
        border: 1.5px solid #e5eaf3;
        flex-shrink: 0;
        cursor: pointer;
        transition: transform 0.15s ease, box-shadow 0.15s ease;
    }

    .leaderboard-img:hover {
        transform: scale(1.1);
        box-shadow: 0 0 0 3px rgba(10, 117, 173, 0.35);
    }

    /* Modal foto */
    #lb-photo-modal {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 9999;
        background: rgba(0, 0, 0, 0.75);
        align-items: center;
        justify-content: center;
        padding: 1.5rem;
    }

    #lb-photo-modal.open {
        display: flex;
    }

    #lb-photo-modal .modal-inner {
        background: #fff;
        border-radius: 14px;
        overflow: hidden;
        max-width: 340px;
        width: 100%;
        box-shadow: 0 8px 40px rgba(0,0,0,0.35);
        position: relative;
        text-align: center;
    }

    #lb-photo-modal .modal-inner img {
        width: 100%;
        max-height: 400px;
        object-fit: cover;
        display: block;
    }

    #lb-photo-modal .modal-caption {
        padding: 0.75rem 1rem;
        font-family: "Rubik", sans-serif;
        font-size: 0.95rem;
        font-weight: 600;
        color: #141a39;
    }

    #lb-photo-modal .modal-close {
        position: absolute;
        top: 0.5rem;
        right: 0.65rem;
        background: rgba(0,0,0,0.45);
        color: #fff;
        border: none;
        border-radius: 50%;
        width: 28px;
        height: 28px;
        font-size: 1rem;
        line-height: 28px;
        cursor: pointer;
        z-index: 1;
    }

    /* Grid leaderboard */
    .lb-row-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .lb-col {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .lb-col-full {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1.25rem;
    }

    .lb-section-label {
        font-family: "Rubik", sans-serif;
        font-size: 0.75rem;
        font-weight: 500;
        color: #6b7280;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        margin-bottom: 0.3rem;
    }

    .lb-stage-head {
        background: linear-gradient(135deg, #0a75ad 0%, #1d4ed8 100%);
        border-radius: 12px;
        padding: 1rem 1rem;
        color: #fff;
        text-align: center;
        box-shadow: 0 8px 24px rgba(10, 117, 173, 0.28);
    }

    .lb-stage-head .lb-stage-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        margin-bottom: 0.4rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.94);
        font-size: 1.1rem;
    }

    .lb-stage-head h4 {
        margin: 0;
        font-family: "Rubik", sans-serif;
        font-size: 1.28rem;
        font-weight: 600;
        line-height: 1.32;
        color: #fff;
        white-space: normal;
        word-break: break-word;
    }

    .lb-podium {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
        align-items: end;
        margin-top: 1rem;
        position: relative;
        z-index: 2;
        width: 100%;
        overflow: hidden;
    }

    .lb-podium-wrap {
        position: relative;
        padding-bottom: 0.9rem;
        margin-top: 0.4rem;
    }

    .lb-podium-wrap::before {
        content: "";
        position: absolute;
        left: 2.5%;
        right: 2.5%;
        bottom: 0;
        height: 5px;
        border-radius: 999px;
        background: linear-gradient(90deg, #38bdf8 0%, #0a75ad 52%, #38bdf8 100%);
        opacity: 0.85;
    }

    .lb-podium-item {
        background: #fff;
        border: 3px solid #0a75ad;
        border-radius: 20px 20px 0 0;
        padding: 0.8rem 0.7rem 0.9rem;
        text-align: center;
        min-height: 230px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        position: relative;
        box-shadow: 0 7px 20px rgba(0, 0, 0, 0.08);
        min-width: 0;
        overflow: hidden;
    }

    .lb-podium-item::after {
        content: "";
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: -18px;
        width: 4px;
        height: 18px;
        border-radius: 3px;
        background: #0a75ad;
    }

    .lb-podium-item.rank-1 {
        min-height: 280px;
        transform: translateY(-12px);
        border-radius: 24px 24px 0 0;
        border-width: 3px;
        box-shadow: 0 12px 28px rgba(10, 117, 173, 0.2);
    }

    .lb-podium-item.rank-1::after {
        height: 26px;
        bottom: -26px;
    }

    .lb-podium-item.rank-2,
    .lb-podium-item.rank-3 {
        min-height: 230px;
    }

    .lb-crown {
        font-size: 2.55rem;
        line-height: 1;
        margin-bottom: 0.35rem;
    }

    .lb-crown.rank-1 { color: #f3b900; }
    .lb-crown.rank-2 { color: #bfc6d1; }
    .lb-crown.rank-3 { color: #c27c48; }

    .lb-podium-photo {
        width: 100%;
        max-width: 108px;
        height: 128px;
        object-fit: cover;
        object-position: 50% 22%;
        border-radius: 14px;
        margin: 0 auto 0.45rem;
        border: 2px solid #e4e9f1;
        cursor: pointer;
        display: block;
    }

    .lb-podium-item.rank-1 .lb-podium-photo {
        width: 100%;
        max-width: 120px;
        height: 142px;
    }

    .lb-rank-badge {
        width: 36px;
        height: 36px;
        border-radius: 999px;
        font-family: "Rubik", sans-serif;
        font-weight: 700;
        font-size: 1.05rem;
        line-height: 36px;
        color: #fff;
        margin: -0.2rem auto 0.5rem;
    }

    .lb-rank-badge.rank-1 { background: #f3b900; }
    .lb-rank-badge.rank-2 { background: #bfc6d1; }
    .lb-rank-badge.rank-3 { background: #c27c48; }

    .lb-podium-name {
        font-family: "Rubik", sans-serif;
        color: #111827;
        font-weight: 700;
        font-size: 0.95rem;
        line-height: 1.3;
        margin: 0;
        min-height: 2.5em;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .lb-podium-votes {
        margin-top: auto;
        font-family: "Rubik", sans-serif;
        color: #0a75ad;
        font-size: 2rem;
        font-weight: 800;
        line-height: 1;
    }

    .lb-empty {
        text-align: center;
        padding: 1.1rem;
        border: 1px dashed #d3d8e2;
        border-radius: 10px;
        color: #6b7280;
        background: #fff;
    }

    .lb-extended {
        margin-top: 0.7rem;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.7rem;
    }

    .lb-extended-item {
        display: flex;
        align-items: center;
        gap: 0.7rem;
        padding: 0.65rem 0.75rem;
        border: 1px solid #d9e6f5;
        border-radius: 16px;
        background: #f8fbff;
        font-family: "Rubik", sans-serif;
        box-shadow: 0 6px 18px rgba(10, 117, 173, 0.08);
        min-width: 0;
        min-height: 86px;
    }

    .lb-extended-rank {
        width: 28px;
        height: 28px;
        border-radius: 999px;
        background: #e2e8f0;
        color: #334155;
        font-size: 0.85rem;
        font-weight: 700;
        line-height: 28px;
        text-align: center;
        flex: 0 0 28px;
    }

    .lb-extended-photo {
        width: 56px;
        height: 68px;
        object-fit: cover;
        object-position: 50% 22%;
        border-radius: 12px;
        border: 2px solid #e4e9f1;
        cursor: pointer;
        flex: 0 0 56px;
    }

    .lb-extended-body {
        min-width: 0;
        flex: 1 1 auto;
        align-self: stretch;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .lb-extended-name {
        display: block;
        color: #0f172a;
        font-size: 0.88rem;
        font-weight: 600;
        line-height: 1.3;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .lb-extended-votes {
        display: block;
        color: #0a75ad;
        font-size: 1rem;
        font-weight: 700;
        margin-top: 0.25rem;
    }

    .js-lb-reveal .lb-stage-head,
    .js-lb-reveal .lb-podium-item,
    .js-lb-reveal .lb-empty {
        opacity: 0;
        transform: translateY(22px);
        transition: opacity 0.55s ease, transform 0.55s ease;
    }

    .js-lb-reveal.in-view .lb-stage-head,
    .js-lb-reveal.in-view .lb-podium-item,
    .js-lb-reveal.in-view .lb-empty {
        opacity: 1;
        transform: translateY(0);
    }

    .js-lb-reveal.in-view .lb-podium-item.rank-1 {
        transform: translateY(-12px);
        transition-delay: 0.12s;
    }

    .js-lb-reveal.in-view .lb-podium-item.rank-2 {
        transition-delay: 0.06s;
    }

    .js-lb-reveal.in-view .lb-podium-item.rank-3 {
        transition-delay: 0.18s;
    }

    /* Voting buttons */
    .voting-btn-wrap {
        display: grid;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
        grid-template-columns: repeat(var(--voting-cols, 1), minmax(0, 1fr));
    }

    .voting-btn-wrap .button {
        display: block;
        width: 100%;
        text-align: center;
        font-size: 0.9rem !important;
        min-height: 48px;
        line-height: 1.25;
        white-space: normal;
        padding: 0.7rem 0.85rem;
    }

    .home-section-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        flex-wrap: wrap;
        margin-bottom: 1rem;
    }

    .home-section-head h3.border {
        margin-bottom: 0;
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .home-section-head .button {
        margin-top: 0;
        padding: 0.5rem 0.85rem;
        font-size: 0.76rem;
        letter-spacing: 0.04em;
    }

    #models .ombre-carousel,
    #models2 .ombre-carousel {
        display: flex;
        flex-direction: column;
        min-height: 390px;
    }

    #models .ombre-carousel img,
    #models2 .ombre-carousel img {
        width: 100%;
        height: 280px;
        object-fit: cover;
    }

    /* Fallback framing so faces are less likely to be cut before JS face-focus runs */
    #models .ombre-carousel img.js-face-focus {
        object-position: 50% 18%;
    }

    #models2 .ombre-carousel img.js-face-focus {
        object-position: 50% 18%;
    }

    #models .ombre-carousel figcaption,
    #models2 .ombre-carousel figcaption {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        min-height: 92px;
    }

    #models .ombre-carousel figcaption h5,
    #models .ombre-carousel figcaption p,
    #models2 .ombre-carousel figcaption p {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: break-word;
    }

    #models .ombre-carousel figcaption h5 {
        -webkit-line-clamp: 2;
        margin-bottom: 0.35rem;
    }

    #models .ombre-carousel figcaption p,
    #models2 .ombre-carousel figcaption p {
        -webkit-line-clamp: 2;
        line-height: 1.4;
        margin-bottom: 0;
    }

    .home-news-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }

    .home-news-card {
        background: #fff;
        border: 1px solid rgba(0,0,0,0.08);
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    }

    .home-news-card-link {
        display: block;
        color: inherit;
        text-decoration: none;
    }

    .home-news-card img {
        width: 100%;
        height: 170px;
        object-fit: cover;
        display: block;
    }

    .home-news-card-body {
        padding: 0.75rem 0.85rem 0.95rem;
    }

    .news-kategori {
        display: inline-block;
        margin-bottom: 0.35rem;
        padding: 0.15rem 0.5rem;
        border-radius: 999px;
        background: #e7f5fb;
        color: #0a75ad;
        font-size: 0.7rem;
        font-weight: 600;
    }

    .home-news-card-body h5 {
        margin: 0 0 0.35rem;
        font-size: 0.95rem;
        color: #1f2937;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .home-news-card-body p {
        margin: 0;
        font-size: 0.8rem;
        color: #666;
        line-height: 1.45;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Responsive */
    @media (max-width: 640px) {
        .voting-btn-wrap {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .lb-stage-head h4 {
            font-size: 1.02rem;
        }

        .lb-podium-wrap {
            padding-bottom: 0.7rem;
            overflow: visible;
        }

        .lb-podium {
            gap: 0.5rem;
            min-width: 0;
            width: 100%;
        }

        .lb-podium-item {
            min-height: 200px;
            border-width: 2px;
            padding: 0.65rem 0.45rem 0.8rem;
        }

        .lb-podium-item.rank-1 {
            min-height: 232px;
            transform: translateY(-8px);
            border-radius: 20px 20px 0 0;
        }

        .js-lb-reveal.in-view .lb-podium-item.rank-1 {
            transform: translateY(-8px);
        }

        .lb-podium-photo {
            width: 100%;
            max-width: 86px;
            height: 104px;
        }

        .lb-podium-item.rank-1 .lb-podium-photo {
            width: 100%;
            max-width: 94px;
            height: 116px;
        }

        .lb-rank-badge {
            width: 30px;
            height: 30px;
            line-height: 30px;
            font-size: 0.9rem;
        }

        .lb-podium-name {
            font-size: 0.78rem;
        }

        .lb-podium-votes {
            font-size: 1.55rem;
        }

        .lb-extended {
            grid-template-columns: 1fr;
            gap: 0.55rem;
        }

        .lb-extended-item {
            padding: 0.5rem 0.55rem;
            gap: 0.55rem;
        }

        .lb-extended-photo {
            width: 50px;
            height: 60px;
            flex-basis: 50px;
        }

        .lb-extended-name {
            font-size: 0.78rem;
        }

        .lb-extended-votes {
            font-size: 0.82rem;
        }

        .home-section-head {
            align-items: flex-start;
        }

        .home-section-head h3.border {
            font-size: 1.35rem;
        }

        .home-section-head .button {
            font-size: 0.72rem;
            padding: 0.45rem 0.7rem;
        }

        #models .ombre-carousel,
        #models2 .ombre-carousel {
            min-height: 340px;
        }

        .home-news-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        #models .ombre-carousel img,
        #models2 .ombre-carousel img {
            height: 220px;
        }

        .lb-row-grid {
            grid-template-columns: 1fr;
        }

        .lb-card td {
            padding: 0.5rem 0.75rem;
        }

        .lb-card .name {
            font-size: 0.82rem;
        }

        .lb-card .points {
            font-size: 0.82rem;
        }

        .leaderboard-img {
            width: 34px;
            height: 34px;
        }
    }

    @media (max-width: 400px) {
        .voting-btn-wrap {
            grid-template-columns: 1fr;
        }

        .lb-podium {
            grid-template-columns: repeat(3, minmax(0, 1fr));
            align-items: end;
            min-width: 0;
            width: 100%;
        }

        .lb-podium-wrap {
            overflow: visible;
            padding-bottom: 0.55rem;
        }

        .lb-podium-item {
            min-height: 184px;
            padding: 0.55rem 0.35rem 0.7rem;
        }

        .lb-podium-item.rank-1 {
            min-height: 210px;
            transform: translateY(-7px);
            border-radius: 18px 18px 0 0;
        }

        .js-lb-reveal.in-view .lb-podium-item.rank-1 {
            transform: translateY(-7px);
        }

        .lb-podium-photo {
            width: 100%;
            max-width: 72px;
            height: 88px;
            border-radius: 10px;
        }

        .lb-podium-item.rank-1 .lb-podium-photo {
            width: 100%;
            max-width: 78px;
            height: 96px;
        }

        .lb-crown {
            font-size: 1.85rem;
            margin-bottom: 0.2rem;
        }

        .lb-podium-name {
            font-size: 0.72rem;
            min-height: 2.35em;
        }

        .lb-podium-votes {
            font-size: 1.25rem;
        }

        .lb-extended-item {
            grid-template-columns: 26px 1fr auto;
            gap: 0.45rem;
            padding: 0.42rem 0.45rem;
        }

        .lb-extended-rank {
            width: 24px;
            height: 24px;
            line-height: 24px;
            font-size: 0.74rem;
        }

        .lb-extended-name {
            font-size: 0.72rem;
        }

        .lb-extended-votes {
            font-size: 0.74rem;
        }

        .home-news-grid {
            grid-template-columns: 1fr;
        }

        .lb-card td {
            padding: 0.45rem 0.6rem;
        }

        .lb-card .number {
            font-size: 0.9rem;
            width: 1.5rem;
        }

        .lb-card .name {
            font-size: 0.78rem;
        }
    }
