body {
    background:rgba(52, 133, 61, 0.38);
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}
.header-bar {
    background: #191c2b;
    color: #fff;
    padding: 22px 0 18px 0;
    text-align: center;
    border-bottom: 2px solid #3f4b7b;
    letter-spacing: 1px;
    font-size: 2.1rem;
    font-family: 'Orbitron', 'Inter', Arial, sans-serif;
    font-weight: 700;
    text-shadow: 0 2px 10px #202040, 0 1px 2px #2e335a;
}
.tournaments-section {
    max-width: 1150px;
    margin: 36px auto 42px auto;
    padding: 0 12px;
    position: relative;
}
.tournament-filter-dropdown {
    position: absolute;
    top: 2px;
    right: 0;
    z-index: 10;
}
.tournament-filter-dropdown select {
    font-size: 1.04rem;
    padding: 6px 18px 6px 9px;
    border-radius: 8px;
    border: 1px solid #3781ff;
    background: #232c4b;
    color: #fff;
    font-weight: 600;
    outline: none;
    margin-top: 10px;
}
.tour-header-label {
    font-size: 1.08rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    display: flex;
    align-items: stretch;
    margin-bottom: 3px;
    justify-content: space-between;
    background:rgb(14, 22, 95);
    position: sticky;
    top: 0;
    z-index: 33;
    border-bottom: 2px solid #2e335a;
    border-radius: 12px 12px 0 0;
    min-height: 56px;
    height: 56px;
}
.tour-header-label .th-title {
    flex: 3 1 420px; min-width:140px; max-width:520px;
    display: flex;
    align-items: center;
    color:rgb(254, 254, 253);
    justify-content: flex-start;
    padding-left: 18px;
    text-align: left;
    box-sizing: border-box;
}
.tour-header-label .th-events,
.tour-header-label .th-date,
.tour-header-label .th-status {
    flex: 1 1 120px; min-width:60px; max-width:180px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}
.tour-header-label .th-events { flex: 2 1 150px; max-width:220px; }
.tour-header-label .th-status { max-width:130px; }

.tournament-card {
    background: rgba(255,255,255,0.09);
    border-radius: 18px;
    box-shadow: 0 4px 32px #16304d34, 0 1.5px 8px #1e1e2e50;
    margin-bottom: 32px;
    padding: 0;
    overflow: hidden;
    transition: transform .18s cubic-bezier(.4,1.5,.7,1), box-shadow .16s;
    border: 2px solid #404d7c2a;
}
.tournament-card:hover {
    transform: translateY(-4px) scale(1.013);
    box-shadow: 0 8px 32px #042e5c55, 0 4px 24px #181a2955;
}
.tour-header {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    border-bottom: 1.5px solid rgb(138, 170, 10);
    padding: 0;
    min-height: 88px;
    cursor: pointer;
    transition: background 0.2s;
    justify-content: space-between;
    background: linear-gradient(90deg,#253952 60%, #2c3e60 100%);
}
.tournament-card:nth-child(4n+2) .tour-header { background: linear-gradient(90deg,#26284a 60%,rgba(198, 37, 8, 0.25) 100%) !important; }
.tournament-card:nth-child(4n+3) .tour-header { background: linear-gradient(90deg,#1e2b44 60%,rgba(29, 131, 42, 0.33) 100%) !important; }
.tournament-card:nth-child(4n+4) .tour-header { background: linear-gradient(90deg,#232b4d 60%,rgba(139, 29, 97, 0.35) 100%) !important; }

.tour-title {
    font-size: 1.1rem;
    font-weight: 700;
    color:rgba(189, 186, 11, 0.97);
    letter-spacing: 0.5px;
    flex: 3 1 420px;
    min-width: 140px;
    max-width: 520px;
    display: flex;
    align-items: center;
    text-align: left;
    padding: 18px 10px 11px 18px;
    box-sizing: border-box;
    justify-content: flex-start;
    border-right: 1px solid #ffd700;
}
.tour-events {
    color: #fff;
    font-size: 1.04rem;
    letter-spacing: 0.3px;
    flex: 2 1 150px;
    font-weight: 500;
    min-width:60px;
    max-width:220px;
    overflow-x:auto;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 18px 8px 11px 8px;
    box-sizing: border-box;
    justify-content: center;
    border-right: 1px solid #ffd700;
}
.tour-date {
    color: #fff;
    font-size: 1.09rem;
    font-weight: 500;
    margin-left: 0;
    flex: 1 1 120px;
    min-width:60px; max-width:180px;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 18px 6px 11px 6px;
    box-sizing: border-box;
    justify-content: center;
    border-right: 1px solid #ffd700;
}
.tour-status {
    font-size: 1.08rem;
    font-weight: 700;
    border-radius: 22px;
    padding: 2px 0;
    width: 120px;
    background: #fff2;
    text-align: center;
    border: 2px solid transparent;
    transition: border .2s;
    height: 32px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
}
.tour-status[data-status="Live"] { border-color: #00b894; color: #00b894; }
.tour-status[data-status="Upcoming"] { border-color: #ffbe0b; color: #ffbe0b; }
.tour-status[data-status="Completed"] { border-color: #636e72; color: #636e72; }
.tour-action-row {
    background: rgba(34,42,62,0.98);
    border-top: 1px solid #2c3355;
    padding: 24px 22px 20px 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: flex-start;
    align-items: center;
    animation: fadeIn .44s;
}
@keyframes fadeIn {
    from {opacity:0;transform:translateY(22px);}
    to {opacity:1;transform:translateY(0);}
}
.tour-action-btn {
    background: linear-gradient(93deg,#2c72ff 70%,#13bdc7 100%);
    color: #fff;
    font-size: 1.07rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    margin-right: 8px;
    box-shadow: 0 2px 10px #4263b430;
    cursor: pointer;
    transition: background .18s, color .15s, transform .12s;
    outline: none;
}
.tour-action-btn:hover, .tour-action-btn.active {
    background: linear-gradient(93deg,#13bdc7 10%,#2971ff 100%);
    color: #fff71f;
    transform: translateY(-2px) scale(1.03);
}

/* Modal styles (unchanged) */
#entryModal {
    display:none;position:fixed;z-index:2001;left:0;top:0;width:100vw;height:100vh;
    background:rgba(12,16,32,0.89);justify-content:center;align-items:center;
}
#entryModal .modal-content {
    background:linear-gradient(120deg,#232653 60%,#2d314b 100%);
    border-radius:14px;
    box-shadow:0 6px 36px #000c 0 2px 10px #234;
    min-width:240px;
    max-width:98vw;
    width:90vw;
    max-width:400px;
    padding:34px 16px 28px 16px;
    position:relative;
    color:#fff;
}
#entryModal .modal-title {
    font-size:1.1rem;
    font-weight:600;
    margin-bottom:8px;
    color:#19fff8;
    letter-spacing:0.5px;
}
#entryModal .close {position:absolute;top:14px;right:18px;font-size:1.7em;color:#fff9;cursor:pointer;border:none;background:none;}
#entryModal input, #entryModal select {
    width:100%;padding:8px 12px;margin-bottom:16px;border-radius:6px;border:1px solid #2c4268;
    background:#1a1e36;color:#fff;font-size:1.06em;
}
#entryModal button[type=submit] {
    background: linear-gradient(93deg,#2c72ff 70%,#13bdc7 100%);
    color:#fff;font-weight:600;font-size:1.09em;border:none;border-radius:8px;padding:10px 28px;cursor:pointer;
    margin-top:5px;
}
#entryModal button[type=submit]:hover {background:linear-gradient(93deg,#13bdc7 10%,#2971ff 100%);}
#entryModal .success-msg {color:#00ffc3;font-size:1.11em;text-align:center;margin-top:10px;}
#entryModal .error-msg {color:#ff6b81;font-size:1.11em;text-align:center;margin-top:10px;}


/* Responsive Styles */
@media (max-width: 900px) {
    .tournaments-section {max-width:99vw;}
    .tour-header, .tour-action-row {flex-direction:column;align-items:flex-start;}
    .tour-title, .tour-events, .tour-date, .tour-status {margin-left:0;}
    .tour-header-label {flex-direction:column;align-items:flex-start;}
    .tour-header-label > div {margin-bottom: 3px;}
    .tour-action-row {gap:10px;}
    .tour-header-label, .tour-header { min-height: 40px;}
    .tour-title, .tour-events, .tour-date, .tour-status {
        border-right: none !important;
        min-width: 100%;
        max-width: 100%;
        justify-content: flex-start;
        padding: 10px 8px !important;
        font-size: 1rem;
    }
    .tour-status { width: 90%; min-width: 80px; margin-left: 0; }
    .tour-header-label .th-title, .tour-header-label .th-events, .tour-header-label .th-date, .tour-header-label .th-status {
        min-width: 100%;
        max-width: 100%;
        justify-content: flex-start;
        padding: 8px 6px;
        font-size: 1rem;
    }
}
@media (max-width: 650px) {
    .tournaments-section {padding: 0 2px;}
    .tour-header, .tour-action-row {padding:10px 4px;}
    .header-bar {font-size:1.24rem;}
    .tournament-card {margin-bottom:14px;}
    .tour-title, .tour-events, .tour-date, .tour-status { font-size: 0.98rem; }
    .tour-header-label {font-size:0.98rem;}
    .tour-status {width: 100%; min-width: 65px;}
}
@media (max-width: 480px), (max-device-width: 480px) {
    .tournaments-section {padding: 0 1px;}
    .header-bar {font-size:1.05rem;}
    .tour-header-label, .tour-header {min-height: 32px;}
    .tour-header-label > div, 
    .tour-title, .tour-events, .tour-date, .tour-status {
        padding: 6px 2px !important;
        font-size: 0.95rem;
    }
}