/* DANH SACH DOI — port bo cuc tu cybercup.vn, restyle theo theme do/vang cua lienminhladuoc */
.lm-teams {
    position: relative;
    overflow: hidden;
    padding: 56px 0 64px;
    scroll-margin-top: 70px;
    background:
        linear-gradient(rgba(20, 4, 4, .86), rgba(20, 4, 4, .78)),
        url("page-bg-DgUh2to7.webp") center / cover no-repeat;
}

.lm-teams__inner {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.lm-teams__title {
    margin: 0 0 8px;
    text-align: center;
    text-transform: uppercase;
    font-weight: 900;
    font-size: clamp(26px, 4vw, 46px);
    letter-spacing: .06em;
    color: #f1d999;
    text-shadow: 0 2px 0 #5c0d00, 0 0 26px rgba(247, 68, 67, .45);
}

.lm-teams__title::after {
    content: "";
    display: block;
    width: 180px;
    height: 4px;
    margin: 12px auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, #c89b3c 20%, #f74443 50%, #c89b3c 80%, transparent);
}

.lm-teams__sub {
    margin: 0 0 26px;
    text-align: center;
    color: #f0e6d2;
    font-size: clamp(13px, 1.4vw, 16px);
}

.lm-teams__tablewrap {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    max-height: 560px;
    padding: 0 14px 14px;
    border: 1px solid #c89b3c;
    border-radius: 12px;
    background: rgba(10, 8, 8, .74);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 12px 40px rgba(0, 0, 0, .5);
    scrollbar-width: thin;
    scrollbar-color: #c73f03 #1a1a1a;
    overscroll-behavior: contain;
}

.lm-teams__tablewrap::-webkit-scrollbar { width: 8px; height: 8px; }
.lm-teams__tablewrap::-webkit-scrollbar-track { background: #1a1a1a; border-radius: 4px; }
.lm-teams__tablewrap::-webkit-scrollbar-thumb { background: #c73f03; border-radius: 4px; }

.lm-teams table {
    width: 100%;
    min-width: 880px;
    border-collapse: separate;
    border-spacing: 0;
    text-align: center;
    font-size: clamp(12px, 1vw, 15px);
}

.lm-teams thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 15px 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
    color: #fff;
    background: linear-gradient(180deg, #f74443 0%, #c73f03 100%);
    border-bottom: 2px solid #c89b3c;
}

.lm-teams thead th:first-child { border-top-left-radius: 8px; }
.lm-teams thead th:last-child { border-top-right-radius: 8px; }

.lm-teams tbody td {
    padding: 15px 12px;
    color: #f4ebe3;
    border-bottom: 1px solid rgba(200, 155, 60, .16);
}

.lm-teams tbody tr:nth-child(odd) { background: rgba(26, 26, 26, .92); }
.lm-teams tbody tr:nth-child(even) { background: rgba(12, 10, 10, .92); }
.lm-teams tbody tr:hover { background: rgba(199, 63, 3, .22); }

.lm-teams__name {
    color: #eefe53;
    font-weight: 800;
    letter-spacing: .02em;
}

.lm-btn {
    display: inline-block;
    margin: 2px 4px;
    padding: 9px 16px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(180deg, #f74443 0%, #c73f03 100%);
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
    transition: filter .15s;
}

.lm-btn:hover { filter: brightness(1.18); }

.lm-btn--gold {
    color: #1a1a1a;
    background: linear-gradient(180deg, #f1d999 0%, #c89b3c 100%);
}

/* Modal chi tiet doi */
.lm-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: rgba(5, 2, 2, .82);
    overflow-y: auto;
}

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

.lm-modal__box {
    position: relative;
    width: 100%;
    max-width: 640px;
    padding: 38px 34px 30px;
    color: #f4ebe3;
    background: #191012 url("popup-bg-CLjdQDSK.webp") center / cover no-repeat;
    border: 2px solid #c89b3c;
    border-radius: 14px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .65);
}

.lm-modal__box::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: rgba(16, 8, 8, .55);
    pointer-events: none;
}

.lm-modal__box > * { position: relative; z-index: 1; }

.lm-modal__box h3 {
    margin: 0 0 20px;
    text-align: center;
    text-transform: uppercase;
    font-size: clamp(19px, 2.4vw, 28px);
    font-weight: 900;
    letter-spacing: .05em;
    color: #f1d999;
    text-shadow: 0 2px 0 rgba(0, 0, 0, .6);
}

.lm-modal__row {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.lm-modal__label {
    flex: none;
    width: 150px;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    color: #c89b3c;
}

.lm-modal__info {
    flex: 1;
    font-size: 14px;
    line-height: 1.55;
    color: #f4ebe3;
    white-space: pre-line;
    min-width: 0;
    overflow-wrap: anywhere;
}

.lm-modal__actions { text-align: center; margin-top: 20px; }

.lm-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 1px solid #c89b3c;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: #f1d999;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.lm-modal__close:hover { background: #c73f03; color: #fff; }

@media (max-width: 760px) {
    .lm-teams { padding: 40px 0 48px; }
    .lm-teams thead { display: none; }
    .lm-teams table, .lm-teams tbody, .lm-teams tr, .lm-teams td { display: block; width: 100%; }
    .lm-teams table { min-width: 0; }
    .lm-teams tbody tr { margin: 0 0 12px; border: 1px solid rgba(200, 155, 60, .4); border-radius: 10px; overflow: hidden; }
    .lm-teams tbody td { border-bottom: 1px solid rgba(200, 155, 60, .14); text-align: left; }
    .lm-teams tbody td::before {
        content: attr(data-th);
        display: block;
        margin-bottom: 4px;
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .06em;
        color: #c89b3c;
    }
    .lm-teams tbody td:last-child::before { content: none; }
    .lm-teams tbody td:last-child { text-align: center; }
    .lm-modal__row { flex-direction: column; gap: 2px; }
    .lm-modal__label { width: auto; }
}

/* Form gia nhap doi */
.lm-modal__team {
    margin: 0 0 18px;
    text-align: center;
    color: #f0e6d2;
    font-size: 15px;
}

.lm-modal__team strong { color: #eefe53; }

.lm-field { margin-bottom: 14px; }

.lm-field__label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #c89b3c;
}

.lm-field__input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    font-size: 14px;
    color: #f4ebe3;
    background: rgba(0, 0, 0, .55);
    border: 1px solid rgba(200, 155, 60, .55);
    border-radius: 8px;
    outline: none;
}

.lm-field__input::placeholder { color: rgba(240, 230, 210, .4); }

.lm-field__input:focus { border-color: #f74443; box-shadow: 0 0 0 2px rgba(247, 68, 67, .3); }

/* datepicker ngay sinh: hien lich sang tren nen toi */
.lm-field__input[type="date"] {
    color-scheme: dark;
    min-height: 44px;
}

.lm-field__input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: .85;
    filter: sepia(1) saturate(3) hue-rotate(-45deg);
}

.lm-field__input.lm-invalid { border-color: #ff5b5b; box-shadow: 0 0 0 2px rgba(255, 91, 91, .25); }

.lm-err {
    margin: 5px 0 0;
    min-height: 16px;
    font-size: 12px;
    color: #ff8a8a;
}

.lm-success { text-align: center; }

.lm-success__title {
    margin: 6px 0 10px;
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    color: #eefe53;
}

.lm-success__text { font-size: 14px; line-height: 1.6; color: #f4ebe3; }

.lm-countdown { margin: 12px 0 0; font-size: 13px; color: #f0e6d2; }

.lm-countdown strong { color: #eefe53; font-size: 16px; }

#lm-join-submit-err { text-align: center; }

.lm-btn[disabled] { opacity: .6; cursor: wait; }
