:root {
    --ink: #101214;
    --muted: #68707d;
    --line: #dfe4ec;
    --paper: #ffffff;
    --mist: #f3f6fa;
    --blue: #0047bb;
    --red: #d71920;
    --gold: #f2b705;
    --green: #0c8f55;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.champager {
    margin: 0;
    min-height: 100vh;
    background: var(--mist);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
}

.cp-top {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(16, 18, 20, 0.1);
    backdrop-filter: blur(18px);
}
.cp-top-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.cp-brand img {
    width: 152px;
    height: 54px;
    object-fit: contain;
}
.cp-nav-shell {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex: 1 1 auto;
    min-width: 0;
}
.cp-nav {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    overflow-x: auto;
    min-width: 0;
}
.cp-nav a {
    color: #384152;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    border-radius: 999px;
    padding: 0.5rem 0.78rem;
    white-space: nowrap;
}
.cp-nav a:hover,
.cp-nav a.active {
    color: var(--blue);
    background: #edf4ff;
}
.cp-top-actions {
    position: relative;
    flex: 0 0 auto;
}
.cp-login-menu {
    position: relative;
}
.cp-login-menu summary {
    list-style: none;
}
.cp-login-menu summary::-webkit-details-marker {
    display: none;
}
.cp-top-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 40px;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(16, 18, 20, 0.14);
    background: #fff;
    color: #182230;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 900;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    cursor: pointer;
}
.cp-top-link:hover,
.cp-login-menu[open] > .cp-top-link {
    background: #f7f9fc;
    border-color: rgba(0, 71, 187, 0.22);
    color: var(--blue);
}
.cp-top-link.admin {
    background: #101214;
    border-color: #101214;
    color: #fff;
}
.cp-top-link.admin:hover,
.cp-login-menu[open] > .cp-top-link.admin {
    background: #2a2f37;
    border-color: #2a2f37;
    color: #fff;
}
.cp-login-pop {
    position: absolute;
    right: 0;
    top: calc(100% + 0.45rem);
    min-width: 220px;
    padding: 0.45rem;
    border: 1px solid rgba(16, 18, 20, 0.12);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 20px 48px rgba(16, 18, 20, 0.15);
    display: grid;
    gap: 0.3rem;
}
.cp-login-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 44px;
    padding: 0.7rem 0.8rem;
    border-radius: 10px;
    color: #182230;
    text-decoration: none;
    font-weight: 800;
}
.cp-login-item:hover {
    background: #f5f8fc;
    color: var(--blue);
}

.cp-live {
    display: none;
    position: sticky;
    top: 76px;
    z-index: 999;
    background: #111;
    color: #fff;
    border-bottom: 5px solid var(--gold);
}
.cp-live.show { display: block; }
.cp-live-inner {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.cp-live-dot {
    width: 10px;
    height: 10px;
    display: inline-block;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 6px rgba(215, 25, 32, 0.18);
}
.cp-live-float {
    display: none;
    position: fixed;
    right: 18px;
    top: 44%;
    z-index: 1001;
    border: 0;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-weight: 900;
    padding: 0.72rem 1rem;
    box-shadow: 0 16px 34px rgba(16, 18, 20, 0.25);
}
.cp-live-float.show {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

#publicContent {
    min-height: 60vh;
}
.cp-shell-loading {
    min-height: 42vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}
.cp-shell-loading .cp-panel {
    width: min(520px, 100%);
}

.cp-spotlight {
    padding: 2rem 0 3rem;
    background: #fff;
}
.cp-carousel {
    max-width: 1120px;
    margin: 0 auto;
}
.cp-slide {
    min-height: 430px;
    display: flex;
    align-items: end;
    border-radius: 8px;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.84)),
        var(--slide-image, url("../../assets/img/full.jpg")) center / cover no-repeat;
    box-shadow: 0 24px 60px rgba(16,18,20,0.16);
}
.cp-slide-body {
    width: 100%;
    padding: clamp(1rem, 4vw, 2rem);
}
.cp-slide h2 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(2rem, 5vw, 4.8rem);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: 0;
}
.cp-slide p {
    max-width: 680px;
    color: rgba(255,255,255,0.78);
    margin: 0.85rem 0 0;
}
.cp-slide-type {
    display: inline-flex;
    margin-bottom: 0.8rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
    padding: 0.28rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.cp-carousel .carousel-control-prev,
.cp-carousel .carousel-control-next {
    width: 8%;
}
.cp-carousel-indicators {
    margin-bottom: 1rem;
    gap: 0.45rem;
}
.cp-carousel-indicators [data-bs-target] {
    width: 34px;
    height: 4px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    opacity: 1;
}
.cp-carousel-indicators .active {
    background: #ffffff;
}

.cp-band {
    padding: 4rem 0;
}
.cp-band.white {
    background: #fff;
}
.cp-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}
.cp-kicker {
    color: var(--red);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;
}
.cp-copy,
.cp-meta,
.cp-history-row span,
.cp-history-row strong {
    color: var(--muted);
}
.cp-title {
    margin: 0;
    font-weight: 900;
    color: #182230;
}
.cp-grid,
.cp-games,
.cp-stack {
    display: grid;
    gap: 1rem;
}
.cp-games {
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
}
.cp-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.cp-panel,
.cp-game-feature,
.cp-athlete,
.cp-team,
.cp-profile {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}
.cp-panel-body,
.cp-game-feature-body,
.cp-athlete-body,
.cp-team-body,
.cp-profile-body {
    padding: 1.1rem;
}
.cp-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.9rem;
}
.cp-pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0.35rem 0.72rem;
    border-radius: 999px;
    background: #eef3fb;
    color: #28415f;
    font-weight: 800;
    font-size: 0.82rem;
}
.cp-medals {
    display: inline-flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}
.cp-medal {
    min-width: 38px;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 0.7rem;
    font-weight: 900;
    color: #182230;
    background: #eaeef5;
}
.cp-medal.gold { background: #ffe083; }
.cp-medal.silver { background: #dce2ea; }
.cp-medal.bronze { background: #e7b48a; }
.cp-medal.total { background: #dfe9ff; color: #09337c; }
.cp-portrait {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    background: #eef2f7;
}
.cp-portrait.male { background: linear-gradient(180deg, #e7f0ff, #d3e5ff); }
.cp-portrait.female { background: linear-gradient(180deg, #ffe7f1, #ffd9e8); }
.cp-portrait.neutral { background: linear-gradient(180deg, #eef2f7, #dde5ef); }
.cp-team-mark {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #edf3ff;
    color: var(--blue);
    font-size: 1.5rem;
    font-weight: 900;
}
.cp-search {
    margin-bottom: 1rem;
}
.cp-detail {
    display: none;
    margin-bottom: 1rem;
}
.cp-detail.show {
    display: block;
}
.cp-detail-layout {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}
.cp-history {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}
.cp-history-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
}
.cp-foot {
    padding: 1rem 0 2rem;
    color: var(--muted);
}
.cp-construction {
    min-height: 68vh;
    display: flex;
    align-items: center;
    background: #fff;
}

@media (max-width: 991px) {
    .cp-top-inner,
    .cp-head,
    .cp-games,
    .cp-detail-layout,
    .cp-live-inner {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }
    .cp-nav-shell {
        flex-direction: column;
        align-items: stretch;
    }
    .cp-top-actions {
        align-self: flex-end;
    }
}

@media (max-width: 767px) {
    .cp-band,
    .cp-spotlight {
        padding: 2rem 0;
    }
    .cp-slide {
        min-height: 320px;
    }
    .cp-grid {
        grid-template-columns: 1fr;
    }
}
.cp-skeleton-card {
    position: relative;
    overflow: hidden;
    border-color: #d6dee8;
    background: #fcfdff;
}
.cp-skeleton-card .cp-panel-body,
.cp-skeleton-card .cp-profile-body,
.cp-skeleton-card .cp-athlete-body,
.cp-skeleton-card .cp-team-body {
    position: relative;
}
.cp-loading-badge {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 28px;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(16, 18, 20, 0.78);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.cp-loading-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f2b705;
    box-shadow: 0 0 0 0 rgba(242, 183, 5, 0.45);
    animation: cp-loading-pulse 1.2s ease-in-out infinite;
}
.cp-skeleton-block,
.cp-skeleton-line,
.cp-skeleton-pill,
.cp-skeleton-chip {
    display: block;
    background: linear-gradient(90deg, #d8e1ec 0%, #f8fbff 50%, #d8e1ec 100%);
    background-size: 220% 100%;
    animation: cp-skeleton-wave 1.35s ease-in-out infinite;
}
.cp-skeleton-line {
    height: 12px;
    border-radius: 999px;
    margin-bottom: 0.75rem;
    width: 72%;
}
.cp-skeleton-line.wide {
    width: 92%;
}
.cp-skeleton-line.hero {
    height: 18px;
    width: 60%;
}
.cp-skeleton-block {
    border-radius: 8px;
    min-height: 160px;
}
.cp-skeleton-pill {
    width: 82px;
    height: 30px;
    border-radius: 999px;
}
.cp-skeleton-pill.short {
    width: 56px;
}
.cp-skeleton-chip {
    width: 110px;
    height: 28px;
    border-radius: 999px;
    margin-bottom: 0.9rem;
}
.cp-slide-skeleton {
    background: linear-gradient(180deg, rgba(16,18,20,0.18), rgba(16,18,20,0.42));
}
.cp-slide-skeleton .cp-skeleton-line,
.cp-slide-skeleton .cp-skeleton-chip {
    background: linear-gradient(90deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.34) 50%, rgba(255,255,255,0.18) 100%);
}
.cp-team-skeleton {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
}
.cp-team-skeleton .cp-team-mark {
    flex: 0 0 auto;
}
.cp-team-skeleton-copy {
    min-width: 0;
}
@keyframes cp-skeleton-wave {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
@keyframes cp-loading-pulse {
    0% { box-shadow: 0 0 0 0 rgba(242, 183, 5, 0.45); opacity: 0.9; }
    70% { box-shadow: 0 0 0 8px rgba(242, 183, 5, 0); opacity: 1; }
    100% { box-shadow: 0 0 0 0 rgba(242, 183, 5, 0); opacity: 0.9; }
}

.cp-selected-game {
    border-color: rgba(0, 71, 187, 0.42);
    box-shadow: 0 0 0 3px rgba(0, 71, 187, 0.08);
}
.cp-hub {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}
.cp-hub-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem;
    border-bottom: 1px solid var(--line);
    background: #fbfcff;
}
.cp-tabs {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--line);
    background: #fff;
}
.cp-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 38px;
    padding: 0.45rem 0.72rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: #384152;
    font-weight: 850;
    white-space: nowrap;
}
.cp-tab:hover,
.cp-tab.active {
    background: #edf4ff;
    color: var(--blue);
    border-color: rgba(0, 71, 187, 0.16);
}
.cp-hub-body {
    padding: 1rem;
}
.cp-hub-overview {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(280px, 1.25fr);
    gap: 1rem;
}
.cp-tools {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}
.cp-tools .form-control,
.cp-tools .form-select {
    max-width: 520px;
}
.cp-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}
.cp-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}
.cp-table th,
.cp-table td {
    padding: 0.78rem 0.85rem;
    border-bottom: 1px solid #edf1f6;
    vertical-align: middle;
}
.cp-table th {
    background: #f7f9fc;
    color: #667085;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.cp-table tbody tr {
    transition: background 0.12s ease;
}
.cp-table tbody tr:hover {
    background: #f8fbff;
}
.cp-table tbody tr:last-child td {
    border-bottom: 0;
}
.cp-table-link {
    border: 0;
    background: transparent;
    padding: 0;
    color: #182230;
    font-weight: 900;
    text-align: left;
}
.cp-table-link:hover {
    color: var(--blue);
    text-decoration: underline;
}
.cp-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    padding: 0.25rem 0.62rem;
    background: #eef2f7;
    color: #475467;
    font-size: 0.78rem;
    font-weight: 850;
    white-space: nowrap;
}
.cp-status.complete {
    background: #e8f7ef;
    color: #0c6b3e;
}
.cp-status.live {
    background: #fff2d1;
    color: #875600;
}
.cp-status.ready {
    background: #edf4ff;
    color: var(--blue);
}
.cp-mini-list {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.85rem;
}
.cp-mini-list button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 0.65rem 0.75rem;
    text-align: left;
}
.cp-mini-list button:hover {
    border-color: rgba(0, 71, 187, 0.24);
    background: #f8fbff;
}
.cp-mini-list span {
    font-weight: 800;
    color: #182230;
}
.cp-mini-list b {
    color: var(--blue);
    white-space: nowrap;
}
.cp-bracket {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 1fr);
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}
.cp-round {
    display: grid;
    align-content: start;
    gap: 0.75rem;
}
.cp-round-title {
    color: #667085;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.cp-match {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 0.75rem;
    box-shadow: 0 10px 24px rgba(16, 18, 20, 0.05);
}
.cp-match-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
    color: #667085;
    font-size: 0.78rem;
    font-weight: 850;
}
.cp-fighter {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    border: 1px solid #edf1f6;
    border-radius: 8px;
    padding: 0.55rem 0.6rem;
    margin-bottom: 0.42rem;
    background: #fbfcff;
}
.cp-fighter strong,
.cp-fighter span {
    display: block;
}
.cp-fighter span {
    color: var(--muted);
    font-size: 0.78rem;
}
.cp-fighter b {
    font-size: 1rem;
}
.cp-fighter.winner {
    border-color: rgba(12, 143, 85, 0.28);
    background: #f0fbf5;
}
.cp-fighter.winner b,
.cp-fighter.winner strong {
    color: #0c6b3e;
}

@media (max-width: 991px) {
    .cp-hub-top,
    .cp-hub-overview {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
    .cp-bracket {
        grid-auto-columns: minmax(240px, 88vw);
    }
}
.cp-medals {
    gap: 0.45rem;
}
.cp-medal {
    min-width: 74px;
    min-height: 36px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.05rem;
    padding: 0.34rem 0.62rem;
    line-height: 1.05;
}
.cp-medal-label {
    display: block;
    font-size: 0.62rem;
    font-weight: 850;
    color: rgba(24, 34, 48, 0.68);
    text-transform: uppercase;
}
.cp-medal strong {
    font-size: 0.95rem;
}
.cp-medal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #667085;
    font-size: 0.82rem;
    font-weight: 800;
}
.cp-medal-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.cp-medal-legend i {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}
.cp-medal-legend .gold { background: #ffe083; }
.cp-medal-legend .silver { background: #dce2ea; }
.cp-medal-legend .bronze { background: #e7b48a; }
.cp-medal-legend .total { background: #dfe9ff; }
.cp-tools-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(140px, 180px));
    align-items: end;
}
.cp-filter {
    display: grid;
    gap: 0.25rem;
}
.cp-filter span {
    color: #667085;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.cp-bracket-shell {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}
.cp-bracket-title {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--line);
    background: #f7f9fc;
}
.cp-bracket-title span {
    color: var(--muted);
    font-weight: 800;
    white-space: nowrap;
}
.cp-bracket-canvas {
    overflow: auto;
    padding: 0.75rem;
    background: #fff;
}
.cp-bracket-canvas svg {
    display: block;
    max-width: none;
}

@media (max-width: 991px) {
    .cp-tools-grid {
        grid-template-columns: 1fr 1fr;
    }
    .cp-medal {
        min-width: 66px;
    }
}

@media (max-width: 640px) {
    .cp-tools-grid {
        grid-template-columns: 1fr;
    }
    .cp-bracket-title {
        align-items: flex-start;
        flex-direction: column;
    }
}
.cp-card-button {
    width: 100%;
    border: 1px solid var(--line);
    text-align: left;
    color: inherit;
    cursor: pointer;
}
.cp-card-button:hover,
.cp-card-button:focus-visible,
.cp-athlete[data-key]:hover,
.cp-team[data-key]:hover {
    border-color: rgba(14, 91, 193, 0.45);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
    transform: translateY(-1px);
}
.cp-card-button .cp-athlete-body,
.cp-card-button .cp-team-body {
    display: grid;
    gap: 0.35rem;
}
.cp-athlete,
.cp-team {
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.cp-athlete .cp-title,
.cp-team .cp-title {
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.18;
}
.cp-athlete .cp-meta,
.cp-team .cp-meta {
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
}
.cp-modal[hidden] {
    display: none;
}
.cp-modal {
    position: fixed;
    inset: 0;
    z-index: 1055;
    display: grid;
    place-items: center;
    padding: 1rem;
}
.cp-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 16, 30, 0.54);
}
.cp-modal-card {
    position: relative;
    width: min(940px, 100%);
    max-height: min(82vh, 760px);
    overflow: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(8, 16, 30, 0.28);
}
.cp-modal-close {
    position: sticky;
    top: 0;
    float: right;
    z-index: 1;
    width: 42px;
    height: 42px;
    border: 0;
    background: #182230;
    color: #fff;
    font-size: 1.45rem;
    line-height: 1;
}
.cp-medal-note {
    margin-bottom: 0.75rem;
    color: #667085;
    font-size: 0.88rem;
    font-weight: 700;
}
.cp-medal-cell {
    display: inline-grid;
    min-width: 72px;
    gap: 0.1rem;
    padding: 0.42rem 0.62rem;
    border-radius: 8px;
    background: #eef3fb;
    color: #182230;
}
.cp-medal-cell span {
    font-size: 0.68rem;
    font-weight: 900;
    color: rgba(24, 34, 48, 0.68);
    text-transform: uppercase;
}
.cp-medal-cell strong {
    font-size: 1rem;
    font-weight: 950;
}
.cp-medal-cell.gold { background: #fff2b8; }
.cp-medal-cell.silver { background: #eef1f5; }
.cp-medal-cell.bronze { background: #f6d8bd; }
.cp-medal-cell.total { background: #e5edff; }
@media (max-width: 640px) {
    .cp-grid {
        grid-template-columns: 1fr;
    }
    .cp-modal {
        align-items: end;
        padding: 0;
    }
    .cp-modal-card {
        width: 100%;
        max-height: 88vh;
        border-radius: 8px 8px 0 0;
    }
}
.cp-news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 1.5rem;
    align-items: start;
}
.cp-news-article,
.cp-news-rail {
    min-width: 0;
}
.cp-news-rail-head {
    margin-bottom: 1rem;
}
.cp-news-list {
    display: grid;
    gap: 0.85rem;
}
.cp-news-card {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    text-align: left;
    display: grid;
    gap: 0.4rem;
}
.cp-news-card.active {
    border-color: #d14b36;
    box-shadow: inset 0 0 0 1px #d14b36;
}
.cp-news-card-kicker,
.cp-news-card-meta,
.cp-news-card-copy {
    color: var(--muted);
}
.cp-news-card-kicker {
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--red);
}
.cp-news-card-title {
    color: #182230;
    font-size: 1rem;
    line-height: 1.35;
}
.cp-news-card-meta,
.cp-news-story-meta {
    font-size: 0.88rem;
}
.cp-news-card-copy {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cp-news-story {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}
.cp-news-story-head,
.cp-news-story-body {
    padding: 1.5rem;
}
.cp-news-story-title {
    margin: 0.25rem 0 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
    color: #101828;
    font-weight: 900;
}
.cp-news-story-summary {
    margin: 1rem 0 0;
    font-size: 1.08rem;
    line-height: 1.6;
    color: #475467;
    max-width: 72ch;
}
.cp-news-story-cover {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #eef3f8;
}
.cp-news-story-cover img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    display: block;
}
.cp-news-story-body {
    font-size: 1rem;
    line-height: 1.75;
    color: #243041;
}
.cp-news-story-body h2,
.cp-news-story-body h3,
.cp-news-story-body h4 {
    margin: 1.6rem 0 0.75rem;
    color: #101828;
    font-weight: 900;
}
.cp-news-story-body p {
    margin: 0 0 1rem;
}
.cp-news-story-body img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.25rem 0;
    display: block;
}
.cp-news-story-body ul,
.cp-news-story-body ol {
    padding-left: 1.4rem;
    margin: 0 0 1rem;
}
.cp-news-story-body blockquote {
    border-left: 4px solid #d0d9e7;
    padding-left: 1rem;
    margin: 1.25rem 0;
    color: #475467;
}
@media (max-width: 980px) {
    .cp-news-layout {
        grid-template-columns: 1fr;
    }
    .cp-news-story-title {
        font-size: 2rem;
    }
}
