:root {
    --bg: #06142c;
    --bg-soft: #0a1e41;
    --bg-card: rgba(13, 38, 79, .92);
    --bg-card-hover: rgba(17, 50, 102, .98);
    --border: rgba(135, 180, 255, .16);
    --border-strong: rgba(73, 142, 255, .42);
    --text: #f4f8ff;
    --muted: #a8bad8;
    --muted-2: #7186ab;
    --blue: #2d8cff;
    --blue-2: #00b7ff;
    --gold: #f5b027;
    --green: #22d77d;
    --danger: #ff5b6e;
    --shadow: 0 22px 80px rgba(0, 0, 0, .35);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 8%, rgba(45, 140, 255, .22), transparent 30%),
        radial-gradient(circle at 88% 0%, rgba(0, 183, 255, .16), transparent 34%),
        linear-gradient(180deg, #071b3a 0%, #041126 55%, #020b18 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 72%);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: default;
}

img {
    display: block;
    max-width: 100%;
}

.app-shell {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
    padding: 18px 0 56px;
}

.topbar {
    position: sticky;
    top: 10px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    margin-bottom: 18px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(4, 17, 38, .78);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 40px rgba(0,0,0,.22);
}

.brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
}

.brand__logo {
    width: 180px;
    height: 47px;
    object-fit: contain;
}

.brand__text {
    display: grid;
    line-height: 1.08;
}

.brand__text strong {
    font-size: clamp(1rem, 2.4vw, 1.22rem);
    letter-spacing: -.02em;
}

.brand__text small {
    color: var(--muted);
    font-weight: 700;
    font-size: .76rem;
}

.topbar__nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar__nav a,
.admin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-weight: 800;
    background: rgba(255,255,255,.03);
}

.topbar__nav a:hover,
.admin-link:hover {
    color: var(--text);
    border-color: var(--border-strong);
}

.main {
    display: grid;
    gap: 18px;
}

.hero {
    overflow: hidden;
    position: relative;
    padding: clamp(24px, 5vw, 42px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(135deg, rgba(13, 45, 96, .96), rgba(6, 23, 52, .92)),
        radial-gradient(circle at 100% 0%, rgba(245,176,39,.18), transparent 32%);
    box-shadow: var(--shadow);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -55% 35%;
    height: 260px;
    background: radial-gradient(circle, rgba(45,140,255,.28), transparent 68%);
    pointer-events: none;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid rgba(245,176,39,.33);
    border-radius: 999px;
    color: #ffe0a0;
    background: rgba(245,176,39,.12);
    font-size: .84rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.hero h1 {
    max-width: 760px;
    margin: 18px 0 10px;
    font-size: clamp(2rem, 7vw, 4.8rem);
    line-height: .95;
    letter-spacing: -.065em;
}

.hero p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(1rem, 2.5vw, 1.16rem);
    line-height: 1.55;
}

.hero__stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 26px;
}

.hero__stats div {
    display: grid;
    gap: 4px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,.045);
}

.hero__stats strong {
    color: var(--green);
    font-size: 1.45rem;
    line-height: 1;
}

.hero__stats span {
    color: var(--muted);
    font-weight: 800;
    font-size: .8rem;
}

.filters {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 0 6px;
    scrollbar-width: thin;
}

.filter-btn {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255,255,255,.035);
    font-weight: 900;
}

.filter-btn.is-active,
.filter-btn:hover {
    color: #fff;
    border-color: var(--border-strong);
    background: linear-gradient(135deg, rgba(45,140,255,.32), rgba(0,183,255,.13));
}

.calendar {
    display: grid;
    gap: 28px;
}

.day-block.is-hidden {
    display: none;
}

.day-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.day-heading h2 {
    margin: 0;
    color: var(--blue-2);
    font-size: clamp(1.15rem, 4vw, 1.6rem);
    letter-spacing: -.035em;
}

.day-heading span {
    flex: 0 0 auto;
    color: var(--muted-2);
    font-size: .88rem;
    font-weight: 800;
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.match-card {
    min-width: 0;
}

.match-card.is-filter-hidden {
    display: none;
}

.match-card__button {
    width: 100%;
    min-height: 172px;
    display: grid;
    align-content: space-between;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text);
    text-align: left;
    background: var(--bg-card);
    box-shadow: 0 12px 34px rgba(0,0,0,.22);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.match-card--open .match-card__button:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
    background: var(--bg-card-hover);
}

.match-card--final .match-card__button {
    opacity: .88;
}

.match-card__meta,
.match-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: .84rem;
    font-weight: 800;
}

.match-card__meta strong {
    color: var(--green);
    font-size: .78rem;
    letter-spacing: .08em;
}

.match-card__teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.team {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(1rem, 2vw, 1.16rem);
    font-weight: 950;
    letter-spacing: -.03em;
}

.team span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team--away {
    justify-content: flex-end;
    text-align: right;
}

.team img {
    width: 38px;
    height: 26px;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 0 0 1px rgba(255,255,255,.16);
}

.score-pill {
    min-width: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 1.05rem;
    font-weight: 950;
}

.score-pill--final {
    min-width: 84px;
    color: var(--green);
    font-size: clamp(1.5rem, 4vw, 2.05rem);
    letter-spacing: -.04em;
}

.match-card__footer {
    align-items: start;
    font-size: .82rem;
}

.match-card__footer span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,.035);
}

.ranking-card h2 {
    margin: 0 0 6px;
    letter-spacing: -.035em;
}

.ranking-card p {
    margin: 0;
    color: var(--muted);
}



.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.section-eyebrow {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--gold);
    font-size: .78rem;
    font-weight: 950;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0 0 6px;
    font-size: clamp(1.45rem, 4vw, 2rem);
    letter-spacing: -.045em;
}

.section-heading p {
    max-width: 740px;
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.my-predictions-card {
    display: grid;
    gap: 16px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,.035);
}

.my-predictions-form {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto;
    align-items: end;
    gap: 12px;
}

.my-predictions-form .submit-btn {
    min-width: 190px;
    padding: 0 20px;
}

.my-predictions-results {
    display: grid;
    gap: 12px;
}

.empty-state {
    display: grid;
    gap: 4px;
    padding: 16px;
    border: 1px dashed var(--border);
    border-radius: 18px;
    color: var(--muted);
    background: rgba(255,255,255,.028);
}

.empty-state strong {
    color: var(--text);
}

.prediction-item {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg-card);
}

.prediction-item.is-locked,
.prediction-item.is-final {
    opacity: .9;
}

.prediction-item__top,
.prediction-item__footer,
.prediction-item__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 850;
}

.prediction-item__top strong {
    color: var(--green);
    font-size: .74rem;
    letter-spacing: .08em;
}

.prediction-item.is-locked .prediction-item__top strong {
    color: var(--gold);
}

.prediction-item.is-final .prediction-item__top strong {
    color: var(--blue-2);
}

.prediction-item__teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.prediction-item__meta {
    justify-content: flex-start;
    flex-wrap: wrap;
}

.prediction-item__footer span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.delete-prediction-btn,
.prediction-lock {
    flex: 0 0 auto;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 950;
}

.delete-prediction-btn {
    border: 1px solid rgba(255,91,110,.35);
    color: #ffd2d8;
    background: rgba(255,91,110,.12);
}

.delete-prediction-btn:hover {
    border-color: rgba(255,91,110,.62);
    background: rgba(255,91,110,.2);
}

.delete-prediction-btn:disabled {
    opacity: .65;
}

.prediction-lock {
    color: #ffe0a0;
    background: rgba(245,176,39,.12);
    border: 1px solid rgba(245,176,39,.26);
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal.is-open {
    display: flex;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 5, 18, .72);
    backdrop-filter: blur(10px);
}

.modal__panel {
    position: relative;
    width: min(520px, 100%);
    max-height: calc(100vh - 32px);
    overflow: auto;
    padding: 24px;
    border: 1px solid var(--border-strong);
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(10, 31, 70, .98), rgba(5, 15, 34, .98));
    box-shadow: var(--shadow);
}

.modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text);
    background: rgba(255,255,255,.06);
    font-size: 1.5rem;
    line-height: 1;
}

.modal__eyebrow {
    color: var(--gold);
    font-weight: 950;
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.modal h2 {
    margin: 8px 44px 16px 0;
    font-size: 1.8rem;
    letter-spacing: -.05em;
}

.modal-match {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255,255,255,.045);
}

.modal-match > span {
    color: var(--muted);
    font-weight: 950;
}

.modal-team {
    display: grid;
    gap: 8px;
    justify-items: center;
    text-align: center;
    font-size: .92rem;
}

.modal-team img {
    width: 46px;
    height: 32px;
    object-fit: cover;
    border-radius: 5px;
}

.prediction-form {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.field {
    display: grid;
    gap: 8px;
}

.field span,
.favorite-box legend {
    color: var(--muted);
    font-size: .86rem;
    font-weight: 900;
}

.field input {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    outline: none;
    background: rgba(255,255,255,.06);
}

.field input:focus {
    border-color: var(--border-strong);
    box-shadow: 0 0 0 4px rgba(45,140,255,.14);
}

.favorite-box {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
}

.favorite-box legend {
    grid-column: 1 / -1;
    margin-bottom: 2px;
}

.radio-card {
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255,255,255,.045);
    font-weight: 900;
}

.radio-card input {
    accent-color: var(--blue);
}

.score-inputs {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: end;
    gap: 10px;
}

.score-inputs > strong {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    color: var(--muted);
    font-size: 1.6rem;
}

.field--score input {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 950;
}

.submit-btn {
    min-height: 54px;
    border: 0;
    border-radius: 16px;
    color: #021127;
    font-weight: 950;
    background: linear-gradient(135deg, var(--blue-2), var(--blue));
    box-shadow: 0 14px 34px rgba(45,140,255,.32);
}

.submit-btn:disabled {
    opacity: .7;
}

.form-message {
    display: none;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 850;
    font-size: .92rem;
}

.form-message.is-success {
    display: block;
    color: #c6ffdf;
    background: rgba(34,215,125,.13);
    border: 1px solid rgba(34,215,125,.25);
}

.form-message.is-error {
    display: block;
    color: #ffd2d8;
    background: rgba(255,91,110,.13);
    border: 1px solid rgba(255,91,110,.25);
}


.topbar__nav a.is-active {
    color: var(--text);
    border-color: var(--border-strong);
    background: rgba(45,140,255,.16);
}

.hero__content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 320px);
    align-items: center;
    gap: clamp(18px, 4vw, 34px);
}

.hero__copy {
    min-width: 0;
}

.player-points-card {
    display: grid;
    gap: 10px;
    min-height: 190px;
    padding: 26px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,.095), rgba(255,255,255,.045));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.12),
        0 22px 50px rgba(0,0,0,.22);
}

.player-points-card > span,
.ranking-hero__player-card > span {
    color: rgba(244,248,255,.72);
    font-size: .88rem;
    font-weight: 950;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.player-points-card strong {
    display: flex;
    align-items: baseline;
    gap: 10px;
    line-height: .9;
}

.player-points-card b {
    color: var(--text);
    font-size: clamp(4rem, 12vw, 7rem);
    letter-spacing: -.08em;
}

.player-points-card em {
    color: #ffe100;
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    font-style: normal;
    font-weight: 950;
}

.player-points-card small {
    color: var(--muted);
    font-weight: 850;
    line-height: 1.35;
}

.ranking-card__action,
.ranking-board__back {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    color: var(--text);
    font-weight: 950;
    background: rgba(45,140,255,.14);
}

.ranking-card__action:hover,
.ranking-board__back:hover {
    background: rgba(45,140,255,.24);
}

.ranking-page {
    gap: 20px;
}

.ranking-hero {
    overflow: hidden;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
    align-items: center;
    gap: clamp(18px, 4vw, 34px);
    padding: clamp(24px, 5vw, 42px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 90% 0%, rgba(245,176,39,.18), transparent 35%),
        linear-gradient(135deg, rgba(13, 45, 96, .96), rgba(6, 23, 52, .92));
    box-shadow: var(--shadow);
}

.ranking-hero::after {
    content: "";
    position: absolute;
    inset: auto -12% -55% 28%;
    height: 280px;
    background: radial-gradient(circle, rgba(45,140,255,.28), transparent 68%);
    pointer-events: none;
}

.ranking-hero__copy,
.ranking-hero__player-card {
    position: relative;
    z-index: 1;
}

.ranking-hero h1 {
    max-width: 720px;
    margin: 18px 0 10px;
    font-size: clamp(2.2rem, 7vw, 4.8rem);
    line-height: .94;
    letter-spacing: -.065em;
}

.ranking-hero p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(1rem, 2.5vw, 1.16rem);
    line-height: 1.55;
}

.ranking-hero__player-card {
    display: grid;
    gap: 8px;
    min-height: 180px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,.095), rgba(255,255,255,.045));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.12),
        0 22px 50px rgba(0,0,0,.22);
}

.ranking-hero__player-card strong {
    color: #ffe100;
    font-size: clamp(3.4rem, 10vw, 5.4rem);
    line-height: 1;
    letter-spacing: -.07em;
}

.ranking-hero__player-card small {
    color: var(--muted);
    font-weight: 850;
    line-height: 1.35;
}

.ranking-search-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
    align-items: end;
    gap: 18px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,.035);
}

.ranking-search-card h2 {
    margin: 0 0 6px;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    letter-spacing: -.045em;
}

.ranking-search-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.ranking-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px;
}

.ranking-search-form .submit-btn {
    min-width: 160px;
    padding: 0 18px;
}

.ranking-podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    gap: 14px;
}

.podium-card {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 8px;
    padding: 26px 18px;
    border: 1px solid var(--border);
    border-radius: 28px;
    text-align: center;
    background:
        radial-gradient(circle at 65% 0%, rgba(0,183,255,.2), transparent 34%),
        linear-gradient(140deg, rgba(23,58,132,.96), rgba(20,20,116,.92));
    box-shadow: 0 20px 44px rgba(0,0,0,.24);
}

.podium-card::after {
    content: "";
    position: absolute;
    inset: auto -35% -55% -10%;
    height: 170px;
    transform: rotate(-8deg);
    background: rgba(0,183,255,.12);
}

.podium-card--1 {
    min-height: 245px;
    border-color: rgba(255,225,0,.45);
}

.podium-card.is-current-player,
.ranking-row.is-current-player {
    border-color: rgba(255,225,0,.72);
    box-shadow: 0 0 0 3px rgba(255,225,0,.12), 0 20px 44px rgba(0,0,0,.24);
}

.podium-card__position {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    border-radius: 999px;
    color: #031127;
    background: #ffe100;
    font-weight: 950;
}

.podium-card__avatar,
.ranking-row__avatar {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border: 4px solid rgba(255,255,255,.28);
    border-radius: 50%;
    background: #ffe100;
    font-size: 2rem;
}

.podium-card strong,
.podium-card b,
.podium-card small {
    position: relative;
    z-index: 1;
}

.podium-card strong {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.05rem;
}

.podium-card b {
    color: #ffe100;
    font-size: 1.75rem;
    line-height: 1;
}

.podium-card small {
    color: var(--muted);
    font-weight: 850;
}

.ranking-board {
    display: grid;
    gap: 16px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,.035);
}

.ranking-board__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
}

.ranking-board__head h2 {
    margin: 0;
    font-size: clamp(1.35rem, 3vw, 2rem);
    letter-spacing: -.045em;
}

.ranking-list {
    display: grid;
    gap: 10px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 48px 58px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    min-height: 84px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background:
        radial-gradient(circle at 90% 0%, rgba(0,183,255,.14), transparent 32%),
        linear-gradient(135deg, rgba(23,58,132,.94), rgba(12,31,77,.94));
}

.ranking-row__position {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--text);
    background: rgba(255,255,255,.1);
    font-weight: 950;
}

.ranking-row.is-top-player .ranking-row__position,
.ranking-row.is-current-player .ranking-row__position {
    color: #031127;
    background: #ffe100;
}

.ranking-row__avatar {
    width: 52px;
    height: 52px;
    border-width: 3px;
    font-size: 1.45rem;
}

.ranking-row__player {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.ranking-row__player strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1rem;
}

.ranking-row__player span {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 850;
}

.ranking-row__you {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    color: #ffe100;
    background: rgba(255,225,0,.12);
    font-weight: 950;
}

.ranking-row__points {
    display: grid;
    justify-items: center;
    min-width: 64px;
    padding: 9px 10px;
    border-radius: 16px;
    color: #031127;
    background: rgba(244,248,255,.92);
}

.ranking-row.is-current-player .ranking-row__points {
    background: #ffe100;
}

.ranking-row__points strong {
    font-size: 1.2rem;
    line-height: 1;
}

.ranking-row__points span {
    font-size: .65rem;
    font-weight: 950;
}

@media (max-width: 900px) {
    .hero__content,
    .ranking-hero,
    .ranking-search-card {
        grid-template-columns: 1fr;
    }

    .ranking-podium {
        grid-template-columns: 1fr;
    }

    .podium-card,
    .podium-card--1 {
        min-height: 190px;
    }

    .matches-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .app-shell {
        width: min(100% - 20px, 1180px);
        padding: 10px 0 calc(34px + var(--safe-bottom));
    }

    .topbar {
        top: 8px;
        align-items: stretch;
        border-radius: 22px;
    }

    .topbar__nav {
        display: none;
    }

    .brand__logo {
        width: 42px;
        height: 42px;
    }

    .hero {
        padding: 24px 18px;
        border-radius: 24px;
    }

    .player-points-card,
    .ranking-hero__player-card {
        min-height: 150px;
        padding: 20px;
        border-radius: 22px;
    }

    .player-points-card b {
        font-size: 4.4rem;
    }

    .ranking-hero {
        padding: 24px 18px;
        border-radius: 24px;
    }

    .ranking-search-card,
    .ranking-board {
        padding: 18px 14px;
        border-radius: 22px;
    }

    .ranking-search-form {
        grid-template-columns: 1fr;
    }

    .ranking-search-form .submit-btn {
        width: 100%;
        min-width: 0;
    }

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

    .ranking-row {
        grid-template-columns: 40px 48px minmax(0, 1fr) auto;
        gap: 9px;
        min-height: 78px;
        padding: 10px;
        border-radius: 18px;
    }

    .ranking-row__position {
        width: 36px;
        height: 36px;
    }

    .ranking-row__avatar {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .ranking-row__you {
        grid-column: 3 / 4;
        width: fit-content;
        min-height: 26px;
        font-size: .72rem;
    }

    .ranking-row__points {
        grid-column: 4 / 5;
        grid-row: 1 / span 2;
        min-width: 54px;
    }

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

    .day-heading {
        align-items: start;
        flex-direction: column;
        gap: 4px;
    }

    .match-card__button {
        min-height: 162px;
        padding: 14px;
        border-radius: 20px;
    }

    .match-card__teams {
        gap: 9px;
    }

    .team {
        gap: 7px;
        font-size: .98rem;
    }

    .team img {
        width: 34px;
        height: 23px;
    }

    .score-pill--final {
        min-width: 68px;
        font-size: 1.45rem;
    }

    .match-card__meta,
    .match-card__footer {
        font-size: .76rem;
    }

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

    


.modal {
        align-items: end;
        padding: 0;
    }

    .modal__panel {
        width: 100%;
        max-height: 92vh;
        border-radius: 28px 28px 0 0;
        padding: 22px 16px calc(22px + var(--safe-bottom));
    }



    .my-predictions-card {
        padding: 18px 14px;
        border-radius: 22px;
    }

    .my-predictions-form {
        grid-template-columns: 1fr;
    }

    .my-predictions-form .submit-btn {
        width: 100%;
        min-width: 0;
    }

    .prediction-item {
        padding: 14px;
        border-radius: 18px;
    }

    .prediction-item__top,
    .prediction-item__footer {
        align-items: start;
        flex-direction: column;
    }

    .prediction-item__teams {
        gap: 8px;
    }

    .delete-prediction-btn,
    .prediction-lock {
        width: 100%;
    }

    .favorite-box {
        grid-template-columns: 1fr;
    }
}
