/* Latest Changes — matches homepage / profile / achievements glass theme */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    overflow-x: clip;
}

body.latest-changes-page-body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #050505;
    color: #f5f5f5;
    padding: 0;
    min-height: 100vh;
    overflow-x: clip;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.latest-changes-page-body .lc-page button,
body.latest-changes-page-body .lc-page select {
    font: inherit;
}

body.latest-changes-page-body .lc-page {
    position: relative;
    max-width: min(1200px, 100%);
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 32px) clamp(40px, 5vw, 56px);
}

body.latest-changes-page-body #headerContainer {
    width: 100%;
}

.lc-hero {
    position: relative;
    z-index: 1;
    margin: 0 0 clamp(20px, 3vw, 28px);
    padding: clamp(28px, 5vw, 44px) 0 clamp(24px, 4vw, 32px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lc-hero-title {
    margin: 0 0 10px;
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
    line-height: 1.1;
}

.lc-hero-lead {
    margin: 0;
    max-width: 44rem;
    font-size: clamp(15px, 2.2vw, 17px);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.52);
}

.lc-glass-section {
    position: relative;
    z-index: 1;
    margin-bottom: clamp(20px, 3vw, 28px);
    padding: clamp(20px, 3vw, 28px);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.lc-glass-section:last-of-type {
    margin-bottom: 0;
}

.lc-section-title {
    margin: 0 0 6px;
    font-size: clamp(18px, 2.8vw, 22px);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.lc-section-sub {
    margin: 0 0 18px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.5;
}

.lc-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px 24px;
}

.lc-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: min(100%, 280px);
    flex: 1 1 220px;
}

.lc-filter-group label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.lc-filter-group select {
    appearance: none;
    width: 100%;
    padding: 12px 40px 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.35)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a5b4fc' d='M1 1l5 5 5-5'/%3E%3C/svg%3E")
        no-repeat right 14px center;
    color: #f5f5f5;
    font-size: 15px;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lc-filter-group select:hover,
.lc-filter-group select:focus {
    border-color: rgba(129, 140, 248, 0.55);
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.lc-chart-wrap {
    min-height: 260px;
    position: relative;
}

.lc-chart-wrap canvas {
    max-height: 300px;
}

.lc-changes-feed {
    min-height: 200px;
}

.lc-change-card {
    padding: clamp(16px, 2.5vw, 20px);
    margin-bottom: 12px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: border-color 0.18s ease, background 0.18s ease;
}

.lc-change-card:last-child {
    margin-bottom: 0;
}

.lc-change-card:hover {
    border-color: rgba(129, 140, 248, 0.35);
    background: rgba(0, 0, 0, 0.38);
}

.lc-change-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.lc-change-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.lc-change-game {
    font-size: 17px;
    font-weight: 700;
    color: #c7d2fe;
    letter-spacing: -0.02em;
}

.lc-change-time {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.42);
    white-space: nowrap;
}

.lc-change-type {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.lc-change-type.new {
    background: rgba(74, 222, 128, 0.18);
    color: #86efac;
    border: 1px solid rgba(74, 222, 128, 0.35);
}

.lc-change-type.updated {
    background: rgba(251, 191, 36, 0.15);
    color: #fcd34d;
    border: 1px solid rgba(251, 191, 36, 0.32);
}

.lc-change-type.rank_changed {
    background: rgba(96, 165, 250, 0.15);
    color: #93c5fd;
    border: 1px solid rgba(96, 165, 250, 0.32);
}

.lc-change-type.removed {
    background: rgba(248, 113, 113, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(248, 113, 113, 0.32);
}

.lc-change-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px 20px;
}

.lc-change-detail-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 4px;
}

.lc-change-detail-value {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.45;
}

.lc-player-link {
    color: #a5b4fc;
    font-weight: 600;
    text-decoration: none;
}

.lc-player-link:hover {
    color: #c7d2fe;
    text-decoration: underline;
}

.lc-score-comparison {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.lc-score-old {
    color: rgba(255, 255, 255, 0.38);
    text-decoration: line-through;
}

.lc-score-new {
    color: #86efac;
    font-weight: 600;
}

.lc-score-arrow {
    color: rgba(165, 180, 252, 0.75);
    font-size: 14px;
}

.lc-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 48px 20px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 15px;
}

.lc-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #818cf8;
    border-radius: 50%;
    animation: lc-spin 0.75s linear infinite;
}

@keyframes lc-spin {
    to {
        transform: rotate(360deg);
    }
}

.lc-no-more,
.lc-empty-msg {
    text-align: center;
    padding: 20px 16px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 14px;
}

.lc-load-more-trigger {
    height: 1px;
    margin: 0;
    padding: 0;
    border: none;
    visibility: hidden;
}

.lc-page-footer {
    position: relative;
    z-index: 1;
    margin-top: clamp(28px, 4vw, 40px);
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    color: rgba(255, 255, 255, 0.38);
    font-size: 13px;
    line-height: 1.65;
}

.lc-page-footer a {
    color: #a5b4fc;
    text-decoration: none;
}

.lc-page-footer a:hover {
    color: #c7d2fe;
    text-decoration: underline;
}

.lc-page-footer p {
    margin: 8px 0;
}

@media (max-width: 640px) {
    .lc-change-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .lc-change-details {
        grid-template-columns: 1fr;
    }
}
