:root {
    --black: #050505;
    --panel: #0f0c06;
    --panel-soft: #171107;
    --gold: #d6a83a;
    --gold-bright: #ffdc75;
    --line: rgba(255, 220, 117, 0.2);
    --white: #fff9ea;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 10%, rgba(255, 220, 117, 0.13), transparent 28%),
        linear-gradient(180deg, #070707, #110d06 48%, #040404);
    color: var(--white);
    font-family: 'Montserrat', Arial, sans-serif;
}

body.modal-open {
    overflow: hidden;
}

body.menu-open {
    overflow: hidden;
}

button,
input,
select {
    font: inherit;
}

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

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

.ml-page {
    width: min(1480px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 56px;
}

.topbar {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    min-width: 128px;
}

.brand-lockup img {
    width: clamp(104px, 12vw, 156px);
    filter:
        drop-shadow(0 10px 24px rgba(0, 0, 0, 0.6))
        drop-shadow(0 0 16px rgba(255, 220, 117, 0.32));
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(5, 5, 5, 0.68);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(16px);
}

.main-nav a {
    padding: 10px 16px;
    border-radius: 999px;
    color: rgba(255, 249, 234, 0.78);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    background: rgba(214, 168, 58, 0.18);
    color: var(--gold-bright);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    border: 1px solid rgba(255, 220, 117, 0.32);
    border-radius: 14px;
    background: rgba(5, 5, 5, 0.72);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: var(--gold-bright);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.ml-hero,
.panel {
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255, 220, 117, 0.10), transparent 34%),
        rgba(8, 7, 4, 0.86);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.46),
        inset 0 0 42px rgba(255, 220, 117, 0.04);
}

.ml-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    min-height: 280px;
    padding: clamp(28px, 5vw, 58px);
    overflow: hidden;
    position: relative;
}

.ml-hero::after {
    content: "";
    position: absolute;
    inset: auto -12% -36% 42%;
    height: 260px;
    border-radius: 999px;
    background: rgba(255, 220, 117, 0.16);
    filter: blur(48px);
    pointer-events: none;
}

.hero-brand-row {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 220, 117, 0.18);
    border-radius: 18px;
    background: rgba(5, 5, 5, 0.46);
}

.hero-brand-row img {
    width: auto;
    height: clamp(42px, 5vw, 72px);
    max-width: 150px;
    object-fit: contain;
}

.hero-brand-row img:first-child {
    max-width: 92px;
}

.hero-brand-row span {
    width: 1px;
    align-self: stretch;
    background: rgba(255, 220, 117, 0.22);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--gold-bright);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2.8px;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    text-transform: uppercase;
}

h1 {
    max-width: 820px;
    font-size: clamp(42px, 7vw, 88px);
    line-height: 0.92;
    font-weight: 900;
    text-shadow: 0 0 28px rgba(255, 220, 117, 0.18);
}

h2 {
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1;
}

h3 {
    color: var(--gold-bright);
    font-size: 15px;
    letter-spacing: 1.8px;
}

.hero-copy {
    max-width: 720px;
    margin: 20px 0 0;
    color: rgba(255, 249, 234, 0.76);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.7;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(110px, 1fr));
    gap: 12px;
    position: relative;
    z-index: 1;
}

.hero-stats div {
    min-width: 118px;
    padding: 18px;
    border: 1px solid rgba(255, 220, 117, 0.18);
    border-radius: 18px;
    background: rgba(5, 5, 5, 0.66);
}

.hero-stats strong {
    display: block;
    color: #fff;
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
}

.hero-stats span {
    display: block;
    margin-top: 8px;
    color: var(--gold-bright);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.notice {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 16px;
    font-weight: 800;
}

.notice.success {
    border: 1px solid rgba(128, 255, 170, 0.32);
    background: rgba(29, 156, 82, 0.18);
    color: #b8ffd0;
}

.notice.error {
    border: 1px solid rgba(255, 110, 110, 0.38);
    background: rgba(255, 69, 69, 0.14);
    color: #ffc9c9;
}

.panel {
    margin-top: 22px;
    padding: clamp(20px, 3vw, 34px);
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.panel-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.panel-actions form {
    margin: 0;
}

.ghost-button,
.match-count {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    border: 1px solid rgba(255, 220, 117, 0.24);
    border-radius: 999px;
    padding: 0 16px;
    color: var(--gold-bright);
    background: rgba(255, 220, 117, 0.06);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.danger-button {
    border-color: rgba(255, 92, 92, 0.32);
    color: #ffb3b3;
    background: rgba(255, 59, 59, 0.10);
    cursor: pointer;
}

.danger-button:hover,
.danger-button:focus-visible {
    border-color: rgba(255, 92, 92, 0.56);
    color: #ffe0e0;
    background: rgba(255, 59, 59, 0.17);
    outline: none;
}

.dsport-page .hero-brand-row img:last-child {
    max-width: 92px;
    filter:
        drop-shadow(0 0 14px rgba(255, 220, 117, 0.28))
        drop-shadow(0 10px 18px rgba(0, 0, 0, 0.50));
}

.dsport-slot-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dsport-slot-card {
    min-height: 190px;
}

.dsport-slot-emblem {
    border: 1px solid rgba(var(--dept-rgb), 0.34);
    border-radius: 22px;
    background:
        radial-gradient(circle at 50% 22%, rgba(var(--dept-rgb), 0.26), transparent 48%),
        rgba(0, 0, 0, 0.36);
}

.dsport-page .team-card label {
    position: relative;
    z-index: 1;
}

.dsport-bracket {
    grid-template-columns: 1.5fr 1.15fr 1fr 1fr;
}

.dsport-bracket .round {
    min-width: 280px;
}

.dsport-bracket .dsport-round-final-stack {
    position: relative;
    align-content: center;
    gap: 12px;
}

.dsport-final-block {
    display: grid;
    gap: 12px;
}

.dsport-final-block h3 {
    margin-bottom: 0;
}

.dsport-final-block.is-third-place {
    position: absolute;
    top: calc(50% + clamp(138px, 18vh, 190px));
    right: 0;
    left: 0;
    padding-top: 0;
}

.dsport-bracket .match-team-copy .slot-avatar {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    font-size: 11px;
}

.dsport-public-player-grid .team-card {
    min-height: 0;
}

.mobile-schedule-vs .slot-avatar {
    width: 64px;
    height: 64px;
    font-size: 18px;
}

.dsport-match-modal .match-detail-stage {
    grid-template-rows: auto minmax(0, 1fr);
}

.dsport-match-modal .match-detail-rosters,
.dsport-match-modal .match-team-photo {
    display: none;
}

.dsport-match-modal .match-detail-team {
    justify-content: center;
    gap: 18px;
    min-height: 360px;
    padding: clamp(18px, 2.2vw, 28px);
}

.dsport-match-modal .match-team-logo {
    position: relative;
    width: clamp(118px, 10vw, 156px);
    height: clamp(118px, 10vw, 156px);
    border-radius: 999px;
    border-color: rgba(var(--modal-team-rgb), 0.48);
    background:
        radial-gradient(circle at 50% 28%, rgba(var(--modal-team-rgb), 0.22), transparent 50%),
        rgba(0, 0, 0, 0.48);
    box-shadow:
        inset 0 0 28px rgba(var(--modal-team-rgb), 0.11),
        0 18px 34px rgba(0, 0, 0, 0.36);
}

.dsport-match-modal .match-team-logo img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.match-player-avatar-figure {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.18), transparent 20%),
        radial-gradient(circle at 50% 42%, rgba(var(--modal-team-rgb), 0.36), transparent 42%),
        linear-gradient(145deg, rgba(var(--modal-team-rgb), 0.18), rgba(0, 0, 0, 0.72));
}

.match-player-avatar-figure::before {
    content: "";
    position: absolute;
    top: 24%;
    left: 50%;
    width: 32%;
    aspect-ratio: 1;
    border-radius: 999px;
    background: linear-gradient(145deg, rgba(255, 249, 234, 0.92), rgba(var(--modal-team-rgb), 0.72));
    box-shadow: 0 0 18px rgba(var(--modal-team-rgb), 0.34);
    transform: translateX(-50%);
}

.match-player-avatar-figure::after {
    content: "";
    position: absolute;
    right: 19%;
    bottom: 14%;
    left: 19%;
    height: 36%;
    border-radius: 999px 999px 34px 34px;
    background: linear-gradient(145deg, rgba(var(--modal-team-rgb), 0.92), rgba(255, 249, 234, 0.52));
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.22);
}

.match-player-initial-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(var(--modal-team-rgb), 0.54);
    border-radius: 999px;
    background:
        radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.22), transparent 42%),
        #090806;
    color: var(--modal-team-color);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.6px;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.36);
}

.department-legend {
    display: none;
    flex-wrap: wrap;
    gap: 10px;
    margin: -8px 0 22px;
}

.department-legend span {
    --dept-color: var(--gold);
    --dept-rgb: 214, 168, 58;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    border: 1px solid rgba(var(--dept-rgb), 0.32);
    border-radius: 999px;
    background: rgba(var(--dept-rgb), 0.10);
    color: var(--dept-color);
    padding: 0 12px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.department-legend span::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 999px;
    background: var(--dept-color);
    box-shadow: 0 0 12px rgba(var(--dept-rgb), 0.46);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.team-card,
.match-card {
    border: 1px solid rgba(255, 220, 117, 0.16);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(255, 220, 117, 0.08), transparent 36%),
        rgba(6, 5, 3, 0.78);
}

.team-card {
    --dept-color: var(--gold);
    --dept-rgb: 214, 168, 58;
    position: relative;
    overflow: hidden;
    padding: 16px;
    border-color: rgba(var(--dept-rgb), 0.34);
    box-shadow:
        inset 4px 0 0 rgba(var(--dept-rgb), 0.82),
        0 18px 38px rgba(0, 0, 0, 0.24);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.team-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(var(--dept-rgb), 0.07), transparent 42%);
    opacity: 0.58;
}

.team-card.is-empty-team {
    border-color: rgba(255, 249, 234, 0.10);
    box-shadow:
        inset 4px 0 0 rgba(255, 249, 234, 0.16),
        0 18px 38px rgba(0, 0, 0, 0.18);
}

.team-card.is-empty-team::before {
    opacity: 0.12;
}

.team-card.is-empty-team .team-emblem,
.team-card.is-empty-team .team-name-input,
.team-card.is-empty-team select {
    border-color: rgba(255, 249, 234, 0.12);
}

.team-card.is-empty-team .team-emblem strong,
.team-card.is-empty-team .team-number {
    color: rgba(255, 249, 234, 0.38);
}

.public-team-card {
    min-height: 100%;
}

.public-team-name {
    margin: 0;
    color: #fff;
    font-size: 20px;
    line-height: 1.05;
}

.public-team-dept {
    margin: 7px 0 0;
    color: var(--dept-color);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.team-top {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}

.team-identity {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

.team-emblem {
    width: 126px;
    height: 126px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.team-emblem strong {
    color: var(--dept-color);
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
}

.team-emblem img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter:
        drop-shadow(0 10px 16px rgba(0, 0, 0, 0.50))
        drop-shadow(0 0 12px rgba(var(--dept-rgb), 0.20));
}

.efootball-page .team-identity {
    grid-template-columns: 92px minmax(0, 1fr);
}

.efootball-page .team-emblem {
    width: 92px;
    height: 92px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.16), transparent 34%),
        linear-gradient(145deg, rgba(var(--dept-rgb), 0.16), rgba(0, 0, 0, 0.34));
    box-shadow:
        inset 0 0 22px rgba(var(--dept-rgb), 0.12),
        0 12px 26px rgba(0, 0, 0, 0.24);
}

.efootball-page .team-emblem strong {
    max-width: 100%;
    padding: 0 8px;
    overflow: hidden;
    color: var(--dept-color);
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.efootball-page .match-flag-icon {
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 0;
}

.team-name-wrap {
    min-width: 0;
}

.team-number {
    display: block;
    margin-bottom: 8px;
    color: var(--dept-color);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.team-name-input,
.team-card select {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(var(--dept-rgb), 0.28);
    border-radius: 12px;
    background: #090806;
    color: var(--white);
    padding: 0 12px;
    font-weight: 800;
    outline: none;
}

.team-card label {
    color: rgba(255, 249, 234, 0.72);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.team-card select {
    margin-top: 7px;
}

.slot-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
}

.slot-label {
    display: block;
    margin-bottom: 7px;
    color: rgba(255, 249, 234, 0.62);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.slot-control {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: end;
    gap: 10px;
}

.slot-avatar {
    --avatar-color: var(--dept-color);
    --avatar-rgb: var(--dept-rgb);
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(var(--avatar-rgb), 0.5);
    border-radius: 999px;
    background: rgba(5, 5, 5, 0.78);
    color: var(--avatar-color);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.slot-control.is-empty-slot .slot-avatar {
    border-color: rgba(255, 249, 234, 0.14);
    color: rgba(255, 249, 234, 0.30);
}

.slot-control.is-empty-slot select {
    color: rgba(255, 249, 234, 0.48);
    border-color: rgba(255, 249, 234, 0.12);
}

.public-member-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
}

.public-member-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 50px;
    border: 1px solid rgba(var(--dept-rgb), 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px;
}

.public-member-row strong,
.public-member-row small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-member-row strong {
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.public-member-row small {
    margin-top: 4px;
    color: rgba(255, 249, 234, 0.58);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.public-member-row.is-empty-slot {
    border-color: rgba(255, 249, 234, 0.08);
    opacity: 0.58;
}

.form-actions,
.schedule-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

.form-actions button,
.schedule-actions button {
    min-height: 52px;
    border: 0;
    border-radius: 14px;
    padding: 0 24px;
    background: linear-gradient(135deg, #c98c1d, #ffdc77 48%, #986412);
    color: #120c02;
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    box-shadow: 0 18px 38px rgba(214, 168, 58, 0.18);
}

.bracket {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.round {
    min-width: 260px;
    display: grid;
    align-content: center;
    gap: 12px;
}

.round h3 {
    margin-bottom: 4px;
}

.match-card {
    padding: 14px;
}

.match-trigger-card,
.schedule-trigger-row {
    cursor: pointer;
}

.match-trigger-card {
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.match-trigger-card:hover,
.match-trigger-card:focus-visible {
    border-color: rgba(255, 220, 117, 0.36);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
    transform: translateY(-2px);
    outline: none;
}

.schedule-trigger-row:hover td,
.schedule-trigger-row:focus-visible td {
    background: rgba(255, 220, 117, 0.055);
    outline: none;
}

.match-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--gold-bright);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.match-meta time {
    color: rgba(255, 249, 234, 0.58);
    white-space: nowrap;
}

.match-team {
    --match-color: var(--gold);
    --match-rgb: 214, 168, 58;
    position: relative;
    overflow: hidden;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(var(--match-rgb), 0.28);
    border-left: 4px solid rgba(var(--match-rgb), 0.82);
    border-radius: 12px;
    padding: 2px 10px;
    background:
        linear-gradient(90deg, rgba(var(--match-rgb), 0.11), transparent 58%),
        rgba(255, 255, 255, 0.035);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.match-team.is-bracket-winner {
    border-color: rgba(var(--match-rgb), 0.62);
    background:
        radial-gradient(circle at 12% 50%, rgba(var(--match-rgb), 0.22), transparent 42%),
        linear-gradient(90deg, rgba(var(--match-rgb), 0.18), transparent 62%),
        rgba(255, 255, 255, 0.045);
    box-shadow:
        0 0 0 1px rgba(var(--match-rgb), 0.16),
        0 0 22px rgba(var(--match-rgb), 0.20);
    animation: bracketWinnerPop 0.66s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.match-team.is-bracket-winner::before {
    content: "";
    position: absolute;
    inset: -60% -80%;
    z-index: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.30) 50%, rgba(var(--match-rgb), 0.26) 56%, transparent 68%);
    animation: bracketWinnerSweep 1s ease-out 0.08s both;
    pointer-events: none;
}

.match-team.is-bracket-loser {
    animation: bracketLoserDim 0.42s ease 0.85s forwards;
}

.match-team.is-bracket-winner > *,
.match-team.is-bracket-loser > * {
    position: relative;
    z-index: 1;
}

.match-team-copy {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
}

.match-team-copy img {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    object-fit: contain;
    filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.42));
}

.match-flag-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.28);
    font-size: 28px;
    line-height: 1;
    box-shadow: inset 0 0 16px rgba(var(--match-rgb), 0.10);
}

.match-team-text {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.match-team-text b,
.match-team-text small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-team-text b {
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.05;
}

.match-team-text small {
    color: var(--match-color);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.8px;
    line-height: 1;
}

.match-team strong {
    flex: 0 0 auto;
    color: var(--match-color);
    font-size: 18px;
    line-height: 1;
}

.match-team.is-empty-match-team {
    --match-color: rgba(255, 249, 234, 0.34);
    --match-rgb: 255, 249, 234;
    border-color: rgba(255, 249, 234, 0.10);
    border-left-color: rgba(255, 249, 234, 0.18);
    background: rgba(255, 255, 255, 0.025);
    color: rgba(255, 249, 234, 0.42);
}

.match-team.is-empty-match-team strong {
    color: rgba(255, 249, 234, 0.30);
}

.score-edit-link,
.score-waiting,
.table-action-link,
.table-muted {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-radius: 999px;
    padding: 0 12px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.score-edit-link,
.table-action-link {
    width: 100%;
    margin-top: 12px;
    background: linear-gradient(135deg, #c98c1d, #ffdc77 48%, #986412);
    color: #120c02;
}

.table-action-link {
    width: auto;
    margin-top: 0;
}

.score-waiting,
.table-muted {
    width: 100%;
    margin-top: 12px;
    border: 1px solid rgba(255, 220, 117, 0.16);
    color: rgba(255, 249, 234, 0.56);
}

.table-muted {
    width: auto;
    margin-top: 0;
}

.versus {
    margin: 7px 0;
    color: var(--gold-bright);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.6px;
    text-align: center;
}

.schedule-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(255, 220, 117, 0.16);
    border-radius: 18px;
}

.schedule-table {
    width: 100%;
    min-width: 880px;
    border-collapse: collapse;
}

.schedule-table th,
.schedule-table td {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 220, 117, 0.10);
    text-align: left;
}

.schedule-table th {
    color: var(--gold-bright);
    background: rgba(255, 220, 117, 0.08);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.schedule-table td {
    color: rgba(255, 249, 234, 0.82);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.schedule-table input,
.schedule-table select {
    width: 100%;
    min-height: 40px;
    border: 1px solid rgba(255, 220, 117, 0.22);
    border-radius: 10px;
    background: #090806;
    color: var(--white);
    padding: 0 10px;
    font-size: 12px;
    font-weight: 800;
    outline: none;
}

.schedule-actions {
    margin-top: 16px;
}

.schedule-table tr:last-child td {
    border-bottom: 0;
}

.public-schedule-table {
    min-width: 960px;
}

.mobile-schedule-gallery {
    display: none;
}

.match-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.match-detail-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.match-detail-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 28%, rgba(255, 220, 117, 0.16), transparent 34%),
        rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(10px);
}

.match-detail-dialog {
    width: min(1100px, 100%);
    height: min(760px, calc(100vh - 32px));
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 220, 117, 0.28);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255, 220, 117, 0.12), transparent 35%),
        linear-gradient(180deg, rgba(17, 13, 6, 0.98), rgba(4, 4, 4, 0.98));
    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.72),
        inset 0 0 64px rgba(255, 220, 117, 0.06);
    transform: translateY(14px) scale(0.98);
    transition: transform 0.25s ease;
}

.match-detail-modal.is-open .match-detail-dialog {
    transform: translateY(0) scale(1);
}

.match-detail-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 220, 117, 0.22);
    border-radius: 999px;
    background: rgba(5, 5, 5, 0.72);
    color: var(--gold-bright);
    cursor: pointer;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}

.match-detail-stage {
    position: relative;
    overflow: hidden;
    height: 100%;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    padding: clamp(18px, 3vw, 34px);
}

.match-detail-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(115deg, transparent 0 38%, rgba(255, 220, 117, 0.12) 46%, transparent 54%),
        repeating-linear-gradient(110deg, transparent 0 88px, rgba(255, 220, 117, 0.055) 89px, transparent 91px);
    opacity: 0.55;
}

.match-detail-top,
.match-detail-versus,
.match-detail-rosters {
    position: relative;
    z-index: 1;
}

.match-detail-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.match-detail-top img {
    width: min(132px, 24vw);
    max-height: 72px;
    object-fit: contain;
}

.match-detail-top p {
    margin: 0 0 8px;
    color: var(--gold-bright);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.match-detail-top h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(28px, 4.4vw, 52px);
    line-height: 0.94;
}

.match-detail-top > span {
    border: 1px solid rgba(255, 220, 117, 0.24);
    border-radius: 999px;
    background: rgba(255, 220, 117, 0.08);
    color: var(--gold-bright);
    padding: 10px 14px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.match-detail-versus {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(190px, 18vw, 260px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(12px, 2.4vw, 26px);
    min-height: 0;
}

.match-detail-team {
    --modal-team-color: var(--gold);
    --modal-team-rgb: 214, 168, 58;
    position: relative;
    overflow: hidden;
    min-height: clamp(220px, 33vh, 268px);
    display: grid;
    align-content: end;
    justify-items: center;
    border: 1px solid rgba(var(--modal-team-rgb), 0.26);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(var(--modal-team-rgb), 0.13), transparent 45%),
        rgba(5, 5, 5, 0.54);
    padding: 16px 12px;
    text-align: center;
}

.match-detail-team.has-winner:not(.is-winner):not(.is-loser) {
    opacity: 1;
}

.match-detail-team.is-loser {
    opacity: 0.48;
    filter: saturate(0.45) brightness(0.70);
    transform: scale(0.985);
    transition: opacity 0.42s ease, filter 0.42s ease, transform 0.42s ease;
}

.match-detail-team.is-winner {
    border-color: rgba(var(--modal-team-rgb), 0.72);
    background:
        radial-gradient(circle at 50% 18%, rgba(var(--modal-team-rgb), 0.34), transparent 38%),
        linear-gradient(180deg, rgba(var(--modal-team-rgb), 0.20), transparent 48%),
        rgba(5, 5, 5, 0.62);
    box-shadow:
        0 0 0 1px rgba(var(--modal-team-rgb), 0.26),
        0 0 42px rgba(var(--modal-team-rgb), 0.30),
        inset 0 0 48px rgba(var(--modal-team-rgb), 0.10);
    animation: winnerCardPop 0.72s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.match-detail-team.is-winner::before {
    content: "";
    position: absolute;
    inset: -30% -70%;
    z-index: 0;
    background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.34) 49%, rgba(var(--modal-team-rgb), 0.28) 54%, transparent 66%);
    transform: translateX(-45%) rotate(8deg);
    animation: winnerSweep 1.05s ease-out 0.08s both;
    pointer-events: none;
}

.match-detail-team.is-winner::after {
    content: "WINNER";
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    border: 1px solid rgba(var(--modal-team-rgb), 0.48);
    border-radius: 999px;
    padding: 7px 10px;
    color: #080603;
    background: linear-gradient(135deg, var(--modal-team-color), #fff0a6 55%, var(--modal-team-color));
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.2px;
    box-shadow: 0 10px 22px rgba(var(--modal-team-rgb), 0.18);
    animation: winnerBadgeIn 0.58s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
}

.match-detail-team.is-winner > * {
    position: relative;
    z-index: 1;
}

.match-detail-team.is-winner .match-team-logo {
    animation: winnerLogoPop 0.82s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

.match-detail-team.is-winner .modal-player-avatar {
    box-shadow: 0 0 18px rgba(var(--modal-team-rgb), 0.24);
}

.match-team-logo {
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(var(--modal-team-rgb), 0.44);
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.34);
}

.match-team-logo strong {
    color: var(--modal-team-color);
    font-size: 44px;
    font-weight: 900;
    line-height: 1;
}

.match-team-logo img {
    width: 96%;
    height: 96%;
    object-fit: contain;
    filter:
        drop-shadow(0 10px 16px rgba(0, 0, 0, 0.50))
        drop-shadow(0 0 10px rgba(var(--modal-team-rgb), 0.18));
}

.match-team-photo {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 18px 0 16px;
}

.modal-player-avatar {
    --avatar-color: var(--gold);
    --avatar-rgb: 214, 168, 58;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(var(--avatar-rgb), 0.44);
    border-radius: 999px;
    background: rgba(5, 5, 5, 0.82);
    color: var(--avatar-color);
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.match-team-photo .modal-player-avatar {
    width: clamp(40px, 4.2vw, 58px);
    height: clamp(40px, 4.2vw, 58px);
    margin-left: -8px;
}

.match-team-photo .modal-player-avatar:first-child {
    margin-left: 0;
}

.modal-player-avatar.is-empty {
    opacity: 0.44;
}

.match-detail-team h3 {
    max-width: 100%;
    margin: 0;
    color: #fff;
    font-size: clamp(24px, 3.3vw, 38px);
    line-height: 0.96;
    overflow-wrap: anywhere;
}

.match-detail-team p {
    margin: 9px 0 0;
    color: var(--modal-team-color);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.match-detail-center {
    display: grid;
    justify-items: center;
    align-content: center;
    align-self: center;
    min-height: 164px;
    border: 1px solid rgba(255, 220, 117, 0.18);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 220, 117, 0.08), transparent 62%),
        rgba(0, 0, 0, 0.42);
    padding: 14px;
}

.match-detail-center time {
    color: rgba(255, 249, 234, 0.72);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.match-detail-center strong {
    margin: 10px 0 8px;
    color: var(--gold-bright);
    font-size: clamp(40px, 5vw, 64px);
    line-height: 0.9;
    white-space: nowrap;
}

.match-detail-center span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    min-height: 46px;
    border: 1px solid rgba(255, 220, 117, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: clamp(24px, 3.6vw, 38px);
    font-weight: 900;
    line-height: 1;
}

.match-detail-rosters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    min-height: 0;
    margin-top: 14px;
}

.match-detail-rosters > div {
    min-height: 0;
    border: 1px solid rgba(255, 220, 117, 0.14);
    border-radius: 18px;
    background: rgba(5, 5, 5, 0.42);
    padding: 12px;
}

.match-detail-rosters h4 {
    margin: 0 0 9px;
    color: var(--gold-bright);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.match-detail-rosters ul {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    min-height: 0;
}

.match-detail-rosters li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    min-height: 38px;
}

.match-detail-rosters li .modal-player-avatar {
    width: 34px;
    height: 34px;
    font-size: 10px;
}

.match-detail-rosters li strong,
.match-detail-rosters li small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-detail-rosters li strong {
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.match-detail-rosters li small {
    margin-top: 2px;
    color: rgba(255, 249, 234, 0.58);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.match-detail-rosters li.is-empty {
    display: block;
    color: rgba(255, 249, 234, 0.48);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

@keyframes winnerCardPop {
    0% {
        transform: translateY(12px) scale(0.96);
        filter: brightness(0.82);
    }
    60% {
        transform: translateY(-4px) scale(1.015);
        filter: brightness(1.18);
    }
    100% {
        transform: translateY(0) scale(1);
        filter: brightness(1);
    }
}

@keyframes winnerSweep {
    0% {
        opacity: 0;
        transform: translateX(-48%) rotate(8deg);
    }
    22% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(48%) rotate(8deg);
    }
}

@keyframes winnerBadgeIn {
    0% {
        opacity: 0;
        transform: translateY(-8px) scale(0.86);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes winnerLogoPop {
    0% {
        transform: scale(0.72) rotate(-4deg);
        filter: brightness(0.75);
    }
    68% {
        transform: scale(1.12) rotate(2deg);
        filter: brightness(1.2);
    }
    100% {
        transform: scale(1) rotate(0);
        filter: brightness(1);
    }
}

@keyframes bracketWinnerPop {
    0% {
        transform: translateY(7px) scale(0.97);
        filter: brightness(0.82);
    }
    62% {
        transform: translateY(-2px) scale(1.015);
        filter: brightness(1.15);
    }
    100% {
        transform: translateY(0) scale(1);
        filter: brightness(1);
    }
}

@keyframes bracketWinnerSweep {
    0% {
        opacity: 0;
        transform: translateX(-44%) rotate(8deg);
    }
    24% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(44%) rotate(8deg);
    }
}

@keyframes bracketLoserDim {
    0% {
        opacity: 1;
        filter: saturate(1) brightness(1);
    }
    100% {
        opacity: 0.50;
        filter: saturate(0.45) brightness(0.72);
    }
}

@media (prefers-reduced-motion: reduce) {
    .match-detail-team.is-winner,
    .match-detail-team.is-winner::before,
    .match-detail-team.is-winner::after,
    .match-detail-team.is-winner .match-team-logo,
    .match-team.is-bracket-winner,
    .match-team.is-bracket-winner::before,
    .match-team.is-bracket-loser {
        animation: none;
    }
}

.score-hero {
    min-height: 240px;
}

.score-summary {
    display: grid;
    gap: 12px;
    position: relative;
    z-index: 1;
    min-width: min(420px, 100%);
}

.score-summary div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-height: 70px;
    border: 1px solid rgba(255, 220, 117, 0.18);
    border-radius: 18px;
    background: rgba(5, 5, 5, 0.66);
    padding: 14px 18px;
}

.score-summary span {
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.25;
    text-transform: uppercase;
}

.score-summary strong {
    color: var(--gold-bright);
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
}

.score-form {
    display: grid;
    gap: 18px;
}

.score-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.game-score-card {
    display: grid;
    gap: 16px;
    border: 1px solid rgba(255, 220, 117, 0.16);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(255, 220, 117, 0.08), transparent 36%),
        rgba(6, 5, 3, 0.78);
    padding: 16px;
}

.game-score-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.game-score-heading span {
    color: var(--gold-bright);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.game-score-heading small {
    color: rgba(255, 249, 234, 0.58);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.score-inputs {
    display: grid;
    gap: 10px;
}

.score-inputs label,
.round-note {
    display: grid;
    gap: 7px;
    color: rgba(255, 249, 234, 0.68);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.score-inputs input,
.round-note input {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(255, 220, 117, 0.22);
    border-radius: 12px;
    background: #090806;
    color: var(--white);
    padding: 0 12px;
    font-weight: 800;
    outline: none;
}

.winner-options {
    display: grid;
    gap: 8px;
}

.winner-options label {
    cursor: pointer;
}

.winner-options input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.winner-options span {
    display: flex;
    align-items: center;
    min-height: 40px;
    border: 1px solid rgba(255, 220, 117, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    color: rgba(255, 249, 234, 0.72);
    padding: 0 12px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.winner-options input:checked + span {
    border-color: rgba(255, 220, 117, 0.56);
    background: rgba(255, 220, 117, 0.16);
    color: var(--gold-bright);
}

.score-actions {
    display: flex;
    justify-content: flex-end;
}

.score-actions button {
    min-height: 52px;
    border: 0;
    border-radius: 14px;
    padding: 0 24px;
    background: linear-gradient(135deg, #c98c1d, #ffdc77 48%, #986412);
    color: #120c02;
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    box-shadow: 0 18px 38px rgba(214, 168, 58, 0.18);
}

@media (max-width: 1180px) {
    .ml-hero {
        align-items: start;
        flex-direction: column;
    }

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

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

    .bracket {
        grid-template-columns: repeat(4, minmax(260px, 1fr));
    }
}

@media (max-height: 820px), (max-width: 900px) {
    .match-detail-dialog {
        height: calc(100vh - 20px);
    }

    .match-detail-stage {
        grid-template-rows: auto minmax(0, 1fr);
        padding: clamp(14px, 2vw, 22px);
    }

    .match-detail-top {
        margin-bottom: 14px;
    }

    .match-detail-versus {
        align-self: center;
    }

    .match-detail-team {
        min-height: 0;
        height: 100%;
        align-content: center;
        padding: 12px 10px;
    }

    .match-team-logo {
        width: 78px;
        height: 78px;
        border-radius: 16px;
    }

    .match-team-logo strong {
        font-size: 36px;
    }

    .match-team-photo {
        min-height: 46px;
        margin: 12px 0;
    }

    .match-team-photo .modal-player-avatar {
        width: 40px;
        height: 40px;
        font-size: 11px;
    }

    .match-detail-team h3 {
        font-size: clamp(22px, 3vw, 32px);
    }

    .match-detail-center {
        min-height: 128px;
        padding: 12px;
    }

    .match-detail-center strong {
        font-size: clamp(36px, 4vw, 52px);
    }

    .match-detail-center span {
        min-height: 40px;
        min-width: 70px;
        font-size: clamp(22px, 3vw, 34px);
    }

    .match-detail-rosters {
        display: none;
    }
}

@media (max-height: 700px) {
    .match-detail-top {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 12px;
        margin-bottom: 10px;
    }

    .match-detail-top img {
        width: 92px;
        max-height: 52px;
    }

    .match-detail-top p {
        margin-bottom: 4px;
        font-size: 10px;
    }

    .match-detail-top h2 {
        font-size: clamp(24px, 4vw, 40px);
    }

    .match-detail-top > span {
        padding: 8px 12px;
    }

    .match-detail-team {
        padding: 9px;
    }

    .match-team-logo {
        width: 64px;
        height: 64px;
    }

    .match-team-logo strong {
        font-size: 30px;
    }

    .match-team-photo {
        margin: 8px 0;
    }

    .match-team-photo .modal-player-avatar {
        width: 34px;
        height: 34px;
        font-size: 10px;
    }

    .match-detail-team h3 {
        font-size: clamp(20px, 3vw, 28px);
    }

    .match-detail-team p {
        margin-top: 6px;
        font-size: 10px;
    }

    .match-detail-center {
        min-height: 100px;
        padding: 10px;
    }

    .match-detail-center time {
        font-size: 10px;
    }

    .match-detail-center strong {
        margin: 7px 0;
        font-size: clamp(32px, 4vw, 44px);
    }

    .match-detail-center span {
        min-height: 36px;
        font-size: clamp(20px, 3vw, 30px);
    }
}

@media (max-width: 680px) {
    .ml-page {
        width: min(calc(100% - 24px), 1480px);
        padding-top: 18px;
    }

    .topbar {
        align-items: center;
        margin-bottom: 18px;
    }

    .brand-lockup {
        min-width: 92px;
    }

    .brand-lockup img {
        width: 98px;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 12px);
        right: 0;
        display: grid;
        width: min(260px, calc(100vw - 24px));
        padding: 10px;
        border-radius: 18px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        pointer-events: none;
        transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    }

    .main-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .main-nav a {
        width: 100%;
        padding: 13px 14px;
        text-align: left;
    }

    .ml-hero,
    .panel {
        border-radius: 18px;
    }

    .ml-hero {
        min-height: auto;
        padding: 22px;
    }

    .hero-brand-row {
        width: 100%;
        justify-content: center;
        gap: 12px;
        margin-bottom: 18px;
    }

    .hero-brand-row img {
        height: 46px;
        max-width: 132px;
    }

    .hero-brand-row img:first-child {
        max-width: 74px;
    }

    .team-identity {
        grid-template-columns: 74px minmax(0, 1fr);
    }

    .team-emblem {
        width: 74px;
        height: 74px;
    }

    .efootball-page .team-emblem strong {
        font-size: 22px;
    }

    .hero-stats {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .public-page .hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .public-page .hero-stats div {
        min-width: 0;
        padding: 12px 8px;
        border-radius: 14px;
        text-align: center;
    }

    .public-page .hero-stats strong {
        font-size: clamp(24px, 8vw, 32px);
    }

    .public-page .hero-stats span {
        margin-top: 6px;
        font-size: 9px;
        letter-spacing: 1px;
    }

    .public-page .schedule-table-wrap {
        display: none;
    }

    .mobile-schedule-gallery {
        display: grid;
        gap: 12px;
    }

    .mobile-schedule-card {
        position: relative;
        overflow: hidden;
        min-height: 0;
        border: 1px solid rgba(255, 220, 117, 0.18);
        border-radius: 18px;
        padding: 16px;
        background:
            linear-gradient(135deg, rgba(255, 220, 117, 0.10), transparent 42%),
            rgba(5, 5, 5, 0.72);
        box-shadow: inset 0 0 36px rgba(255, 220, 117, 0.04);
        cursor: pointer;
    }

    .mobile-schedule-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, transparent, rgba(255, 220, 117, 0.10), transparent);
        opacity: 0.45;
        transform: translateX(-80%);
        pointer-events: none;
    }

    .mobile-schedule-card:active::before,
    .mobile-schedule-card:focus-visible::before {
        transform: translateX(80%);
        transition: transform 0.45s ease;
    }

    .mobile-schedule-top,
    .mobile-schedule-bottom {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
    }

    .mobile-schedule-top span,
    .mobile-schedule-bottom time {
        color: rgba(255, 249, 234, 0.58);
        font-size: 10px;
        font-weight: 900;
        letter-spacing: 1.4px;
        text-transform: uppercase;
    }

    .mobile-schedule-top h3 {
        margin-top: 5px;
        color: #fff;
        font-size: 18px;
        line-height: 1.12;
    }

    .mobile-schedule-top strong {
        flex: 0 0 auto;
        border: 1px solid rgba(255, 220, 117, 0.22);
        border-radius: 999px;
        padding: 8px 10px;
        color: var(--gold-bright);
        background: rgba(255, 220, 117, 0.08);
        font-size: 9px;
        letter-spacing: 1.1px;
        text-transform: uppercase;
    }

    .mobile-schedule-vs {
        position: relative;
        z-index: 1;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
        align-items: center;
        gap: 8px;
        margin: 18px 0;
    }

    .mobile-schedule-vs div {
        min-width: 0;
        min-height: 118px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 9px;
        border: 1px solid rgba(var(--match-rgb), 0.46);
        border-radius: 16px;
        padding: 10px 6px;
        color: var(--match-color);
        background: rgba(var(--match-rgb), 0.10);
        text-align: center;
        text-transform: uppercase;
    }

    .mobile-schedule-vs div img {
        width: 100px;
        height: 100px;
        object-fit: contain;
        flex: 0 0 auto;
    }

    .mobile-flag-icon {
        display: grid;
        place-items: center;
        width: 78px;
        height: 78px;
        border-radius: 18px;
        background: rgba(0, 0, 0, 0.28);
        font-size: 48px;
        line-height: 1;
        box-shadow: inset 0 0 20px rgba(var(--match-rgb), 0.12);
    }

    .mobile-team-text {
        display: grid;
        gap: 4px;
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }

    .mobile-team-text b,
    .mobile-team-text small {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-team-text b {
        color: #fff;
        font-size: 11px;
        font-weight: 900;
        line-height: 1.08;
    }

    .mobile-team-text small {
        color: var(--match-color);
        font-size: 9px;
        font-weight: 900;
        letter-spacing: 0.7px;
        line-height: 1;
    }

    .mobile-schedule-vs > span {
        display: grid;
        place-items: center;
        width: 42px;
        height: 42px;
        border-radius: 999px;
        color: #120c02;
        background: linear-gradient(135deg, #c98c1d, #ffdc77 55%, #986412);
        font-size: 12px;
        font-weight: 900;
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.32);
    }

    .mobile-schedule-bottom {
        align-items: center;
        padding-top: 14px;
        border-top: 1px solid rgba(255, 220, 117, 0.10);
    }

    .mobile-schedule-bottom span {
        color: #fff;
        font-size: 22px;
        font-weight: 900;
    }

    .match-detail-modal {
        padding: 10px;
    }

    .match-detail-dialog {
        height: calc(100vh - 20px);
        border-radius: 18px;
    }

    .match-detail-stage {
        padding: 14px;
        grid-template-rows: auto minmax(0, 1fr);
    }

    .match-detail-top {
        grid-template-columns: 1fr;
        padding-right: 46px;
    }

    .match-detail-top img {
        width: 100px;
        max-height: 56px;
    }

    .match-detail-top > span {
        width: fit-content;
    }

    .match-detail-versus,
    .match-detail-rosters {
        grid-template-columns: 1fr;
    }

    .match-detail-team {
        min-height: 0;
        height: auto;
        padding: 12px 10px;
    }

    .match-team-logo {
        width: 70px;
        height: 70px;
        border-radius: 16px;
    }

    .match-team-logo strong {
        font-size: 34px;
    }

    .match-team-photo {
        min-height: 44px;
        margin: 12px 0 10px;
    }

    .match-team-photo .modal-player-avatar {
        width: 38px;
        height: 38px;
        font-size: 11px;
    }

    .match-detail-center {
        min-height: 112px;
        order: 0;
    }

    .match-detail-rosters {
        display: none;
    }

    .dsport-match-modal .match-detail-team {
        min-height: 220px;
        gap: 12px;
    }

    .dsport-match-modal .match-team-logo {
        width: 96px;
        height: 96px;
    }

    .match-player-initial-badge {
        width: 38px;
        height: 38px;
        font-size: 11px;
    }

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

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

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

    .dsport-slot-grid {
        grid-template-columns: 1fr;
    }

    .public-team-grid {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(290px, 86vw);
        grid-template-columns: none;
        overflow-x: auto;
        padding-bottom: 8px;
        overscroll-behavior-x: contain;
        scrollbar-color: var(--gold) rgba(255, 255, 255, 0.08);
    }

    .form-actions,
    .schedule-actions,
    .score-actions,
    .panel-actions form,
    .form-actions button,
    .schedule-actions button,
    .score-actions button,
    .ghost-button,
    .match-count {
        width: 100%;
    }

    .form-actions button,
    .schedule-actions button,
    .score-actions button,
    .ghost-button,
    .match-count {
        justify-content: center;
    }
}
