
.league-workspace {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.league-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md, 16px);
    padding: 18px 24px;
    backdrop-filter: blur(12px);
}

.league-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.league-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--sub, #94a3b8);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.league-tab-btn:hover {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.3);
    color: var(--ink, #fff);
}

.league-tab-btn.active {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(99, 102, 241, 0.25));
    border-color: var(--vio-hi, #a78bfa);
    color: #fff;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.25);
}

.league-tab-badge {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 11px;
}

.league-header-card {
    background: radial-gradient(ellipse at 0 0, rgba(139, 92, 246, 0.14), transparent 60%), var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md, 16px);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.league-header-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.league-header-title-box h3 {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 6px;
    color: var(--ink, #fff);
    font-family: 'Outfit', 'Syne', sans-serif;
}

.league-header-title-box p {
    color: var(--sub, #94a3b8);
    font-size: 14px;
    margin: 0;
}

.league-actions-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.league-link-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);
    font-size: 12px;
    color: var(--lilac, #c084fc);
    font-family: 'JetBrains Mono', monospace;
}

.league-table-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md, 16px);
    overflow: hidden;
}

.league-mgmt-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 13.5px;
}

.league-mgmt-table th {
    background: rgba(14, 12, 22, 0.9);
    padding: 14px 10px;
    font-weight: 700;
    font-size: 11.5px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--vio-hi, #a78bfa);
    border-bottom: 2px solid rgba(139, 92, 246, 0.2);
}

.league-mgmt-table td {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

.league-mgmt-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.team-info-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    padding-left: 12px;
}

.team-crest-preview {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.06);
    display: grid;
    place-items: center;
    font-size: 13px;
    flex-shrink: 0;
}

.stat-stepper {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.stat-stepper input {
    width: 36px;
    text-align: center;
    background: transparent;
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    font-family: 'JetBrains Mono', monospace;
    padding: 4px 0;
    outline: none;
    -moz-appearance: textfield;
}

.stat-stepper input::-webkit-outer-spin-button,
.stat-stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.stat-step-btn {
    background: transparent;
    border: none;
    color: var(--sub, #94a3b8);
    padding: 3px 6px;
    cursor: pointer;
    font-size: 12px;
    display: grid;
    place-items: center;
    transition: background 0.1s;
}

.stat-step-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    color: #fff;
}

.stat-stepper.pts-stepper {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(192, 132, 252, 0.4);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.15);
}

.stat-stepper.pts-stepper input {
    color: #e9d5ff;
    font-weight: 800;
    font-size: 14px;
}

.stat-stepper.pts-stepper .stat-step-btn:hover {
    background: rgba(168, 85, 247, 0.35);
    color: #fff;
}

.team-pts-cell {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 15px;
    color: #c084fc;
}

.league-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 4, 10, 0.75);
    backdrop-filter: blur(8px);
    display: grid;
    place-items: center;
    z-index: 99999;
    padding: 16px;
}

.league-modal {
    background: #14121f;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 20px);
    width: 100%;
    max-width: 540px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    animation: modalPop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.league-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.league-modal-head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--ink, #fff);
}

.league-modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-height: 75vh;
    overflow-y: auto;
}

.league-modal-foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.emoji-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
    gap: 8px;
    max-height: 180px;
    overflow-y: auto;
    padding: 10px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

.emoji-choice-btn {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 4px;
    transition: all 0.12s;
}

.emoji-choice-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--vio-hi);
    transform: scale(1.1);
}

.emoji-choice-btn.selected {
    background: rgba(139, 92, 246, 0.35);
    border-color: var(--vio-hi);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.emoji-choice-btn img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.match-score-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.match-team-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.match-team-col select {
    width: 100%;
}

.match-score-input {
    width: 60px !important;
    text-align: center;
    font-size: 22px !important;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    padding: 8px !important;
}

.match-vs {
    font-weight: 800;
    font-size: 16px;
    color: var(--vio-hi);
    font-family: 'Outfit', sans-serif;
}

#fix-list-wrap table tr:hover {
    background: rgba(139, 92, 246, 0.05);
}

#fix-list-wrap input[type="datetime-local"],
#fix-list-wrap select {
    color-scheme: dark;
}

.league-modal input[type="datetime-local"] {
    color-scheme: dark;
}

