:root {
    --gold: #FFD700;
    --silver: #C0C0C0;
    --bronze: #CD7F32;
}


html.dark {
    --platform-bg: rgba(255, 255, 255, 0.03);
    --platform-border: 1px solid rgba(255, 255, 255, 0.1);
    --platform-glass-blur: blur(12px);
    --podium-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);


    --platform-1-bg: linear-gradient(to bottom, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
    --platform-1-border: 1px solid rgba(255, 215, 0, 0.3);

    --platform-2-bg: linear-gradient(to bottom, rgba(192, 192, 192, 0.15), rgba(192, 192, 192, 0.05));
    --platform-2-border: 1px solid rgba(192, 192, 192, 0.3);

    --platform-3-bg: linear-gradient(to bottom, rgba(205, 127, 50, 0.15), rgba(205, 127, 50, 0.05));
    --platform-3-border: 1px solid rgba(205, 127, 50, 0.3);
}


:root {

    --platform-bg: rgba(255, 255, 255, 0.95);
    --platform-border: 1px solid rgba(0, 0, 0, 0.1);
    --platform-glass-blur: blur(10px);
    --podium-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);


    --platform-1-bg: linear-gradient(to bottom, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
    --platform-1-border: 1px solid rgba(255, 215, 0, 0.4);

    --platform-2-bg: linear-gradient(to bottom, rgba(192, 192, 192, 0.2), rgba(192, 192, 192, 0.08));
    --platform-2-border: 1px solid rgba(192, 192, 192, 0.4);

    --platform-3-bg: linear-gradient(to bottom, rgba(205, 127, 50, 0.2), rgba(205, 127, 50, 0.08));
    --platform-3-border: 1px solid rgba(205, 127, 50, 0.4);


    --card-bg: rgba(255, 255, 255, 0.95);
    --card-border: rgba(0, 0, 0, 0.08);
    --card-hover-bg: rgba(255, 255, 255, 1);
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --card-hover-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);


    --timeline-bg: rgba(255, 255, 255, 0.95);
    --timeline-border: rgba(0, 0, 0, 0.1);
    --timeline-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);


    --bg-surface-rgb: 255, 255, 255;
}


.intramurals-hero {
    padding: 50px 0 5px;
    text-align: center;
    background: var(--bg-body);
}

.hero-title {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 800;
    background: linear-gradient(90deg, #3b82f6, #60a5fa, #3b82f6);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0;
}

.hero-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}


.podium-section {
    min-height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}


.podium-section .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.podium-controls {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2vh;
    flex-wrap: wrap;
}

.podium-btn {
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    font-weight: 600;
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    transition: all 0.3s ease;
}

.podium-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.podium-btn.active {
    background: var(--text-main);
    color: var(--bg-body);
    border-color: var(--text-main);
}


html:not(.dark) .podium-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    box-shadow: var(--shadow-sm);
}

html:not(.dark) .podium-btn:hover {
    background: var(--bg-surface);
    color: var(--text-main);
    box-shadow: var(--shadow-md);
    border-color: var(--text-main);
}

html:not(.dark) .podium-btn.active {
    background: var(--text-main);
    color: var(--bg-surface);
    border-color: var(--text-main);
    box-shadow: var(--shadow-md);
}

.podium-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
}


.tri-podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 4vh;
    padding-bottom: 2vh;
    perspective: 1000px;
}

@media (max-width: 768px) {
    .tri-podium {
        gap: 0.5rem;
        padding: 0 0.5rem;
    }

    .podium-block {
        max-width: none;
    }

    .team-name {
        font-size: 0.75rem;
    }

    .position-1 .team-name {
        font-size: 0.9rem;
    }

    .points-display {
        font-size: 1.2rem;
    }

    .position-1 .points-display {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .tri-podium {
        gap: 0.3rem;
    }

    .block-platform {
        padding: 1.5rem 0.5rem 1rem;
    }

    .position-1 .block-platform {
        padding-top: 2.5rem;
    }

    .team-circle {
        margin-bottom: -15px;
    }
}

.podium-block {
    flex: 1;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.podium-block:hover {
    transform: translateY(-10px) scale(1.02);
}

.medal-icon {
    font-size: clamp(2rem, 5vh, 3.5rem);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    z-index: 10;
}


.team-circle {
    width: clamp(80px, 14vh, 120px);
    height: clamp(80px, 14vh, 120px);
    margin: 0 auto -25px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    background: var(--bg-surface);
    z-index: 5;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.position-1 .team-circle {
    width: clamp(100px, 18vh, 160px);
    height: clamp(100px, 18vh, 160px);
    border-width: 6px;
    border-color: var(--gold);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
}


html:not(.dark) .team-circle {
    border: 4px solid rgba(0, 0, 0, 0.1);
    box-shadow: var(--shadow-md);
    background: var(--bg-surface);
}

html:not(.dark) .position-1 .team-circle {
    border: 6px solid var(--gold);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(255, 215, 0, 0.2);
}

.team-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


html:not(.dark) .team-circle {
    background: #18181b !important;
}


.block-platform {
    background: var(--platform-bg);
    backdrop-filter: var(--platform-glass-blur);
    -webkit-backdrop-filter: var(--platform-glass-blur);
    border-radius: 30px 30px 0 0;
    padding: 3rem 1.5rem 1.5rem;
    width: 100%;
    text-align: center;
    border: var(--platform-border);
    border-bottom: none;
    position: relative;
    z-index: 2;
    box-shadow: var(--podium-shadow);
}

.position-1 .block-platform {
    background: var(--platform-1-bg);
    border: var(--platform-1-border);
    border-bottom: none;
    padding-top: 4.5rem;
    box-shadow: 0 -10px 50px rgba(255, 215, 0, 0.05);
}

.position-2 .block-platform {
    background: var(--platform-2-bg);
    border: var(--platform-2-border);
    border-bottom: none;
}

.position-3 .block-platform {
    background: var(--platform-3-bg);
    border: var(--platform-3-border);
    border-bottom: none;
}


html:not(.dark) .block-platform {
    background: var(--platform-bg);
    box-shadow: var(--podium-shadow);
}

html:not(.dark) .position-1 .block-platform {
    background: var(--platform-1-bg);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(255, 215, 0, 0.1);
}

html:not(.dark) .position-2 .block-platform {
    background: var(--platform-2-bg);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(192, 192, 192, 0.15);
}

html:not(.dark) .position-3 .block-platform {
    background: var(--platform-3-bg);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(205, 127, 50, 0.15);
}


.height-bar {
    width: 100%;
    background: linear-gradient(180deg, var(--bar-color), rgba(var(--bar-color-rgb, 0, 0, 0), 0.2));
    border-radius: 0 0 20px 20px;
    border: 1px solid var(--bar-color);
    border-top: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}


html:not(.dark) .height-bar {
    background: linear-gradient(180deg, var(--bar-color), rgba(var(--bar-color-rgb, 0, 0, 0), 0.1));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}


.position-1 {
    --bar-color: #FFD700;
    --bar-color-rgb: 255, 215, 0;
}

.position-2 {
    --bar-color: #C0C0C0;
    --bar-color-rgb: 192, 192, 192;
}

.position-3 {
    --bar-color: #CD7F32;
    --bar-color-rgb: 205, 127, 50;
}


.height-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(115deg,
            transparent 0%,
            rgba(255, 255, 255, 0) 30%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0) 70%,
            transparent 100%);
    animation: shine 4s infinite linear;
}

@keyframes shine {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(100%);
    }
}

.position-1 .height-bar {
    box-shadow: 0 15px 45px rgba(255, 215, 0, 0.3);
}

.position-2 .height-bar {
    box-shadow: 0 15px 45px rgba(192, 192, 192, 0.25);
}

.position-3 .height-bar {
    box-shadow: 0 15px 45px rgba(205, 127, 50, 0.25);
}


html:not(.dark) .position-1 .height-bar {
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.15);
}

html:not(.dark) .position-2 .height-bar {
    box-shadow: 0 8px 24px rgba(192, 192, 192, 0.12);
}

html:not(.dark) .position-3 .height-bar {
    box-shadow: 0 8px 24px rgba(205, 127, 50, 0.12);
}


.team-name {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 800;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.position-1 .team-name {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--gold);
}

.position-2 .team-name {
    color: var(--silver);
}

.position-3 .team-name {
    color: var(--bronze);
}


html:not(.dark) .position-1 .team-name {
    color: #d97706;
}

html:not(.dark) .position-2 .team-name {
    color: #6b7280;
}

html:not(.dark) .position-3 .team-name {
    color: #92400e;
}

.team-dept {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.points-display {
    font-size: clamp(1.8rem, 4vh, 2.8rem);
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 0.2rem;
    line-height: 1;
    color: var(--text-main);
}


html:not(.dark) .points-display {
    color: var(--text-main);
}

.position-1 .points-display {
    font-size: clamp(2.2rem, 5vh, 3.5rem);

}


html:not(.dark) .position-1 .points-display {
    color: #d97706;
    text-shadow: none;
}

.points-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
}


.teams-section {
    padding: 60px 0;
}

.teams-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-heading {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.team-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);

    clip-path: polygon(30px 0,
            0 30px,
            0 calc(100% - 30px),
            30px 100%,
            calc(100% - 30px) 100%,
            100% calc(100% - 30px),
            100% 30px,
            calc(100% - 30px) 0);
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}


html:not(.dark) .team-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
}

html:not(.dark) .team-card:hover {
    background: var(--card-hover-bg);
    box-shadow: var(--card-hover-shadow), 0 0 24px rgba(var(--team-color-rgb), 0.15);
}

.team-card::after {
    content: '';
    position: absolute;
    inset: 0;

    clip-path: polygon(30px 0,
            0 30px,
            0 calc(100% - 30px),
            30px 100%,
            calc(100% - 30px) 100%,
            100% calc(100% - 30px),
            100% 30px,
            calc(100% - 30px) 0);
    padding: 2px;
    background: linear-gradient(135deg, var(--team-color), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.1;
    transition: opacity 0.4s;
}

.team-card:hover::after {
    opacity: 0.6;
}

.team-card:hover {
    transform: translateY(-12px);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(var(--team-color-rgb), 0.1);
}

.team-logo {
    width: 110px;
    height: 110px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    border: 4px solid var(--team-color);
    padding: 5px;
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
    transition: transform 0.4s ease;
}


html:not(.dark) .team-logo {
    background: #18181b;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.team-card:hover .team-logo {
    transform: scale(1.1) rotate(5deg);
}

.roster-btn {
    margin-top: 1.5rem;
    padding: 0.8rem 2rem;
    width: 100%;
    border-radius: 50px;
    background: rgba(var(--team-color-rgb, 255, 255, 255), 0.05);
    border: 1px solid rgba(var(--team-color-rgb, 255, 255, 255), 0.2);
    color: var(--team-color);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}


html:not(.dark) .roster-btn {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: var(--team-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

html:not(.dark) .roster-btn:hover {
    background: var(--team-color);
    color: #ffffff;
    border-color: var(--team-color);
    box-shadow: 0 8px 20px rgba(var(--team-color-rgb, 59, 130, 246), 0.3);
    transform: translateY(-2px);
}

.roster-btn:hover {
    background: var(--team-color);
    color: #000;
    border-color: var(--team-color);
    box-shadow: 0 10px 25px rgba(var(--team-color-rgb, 0, 0, 0), 0.3);
    transform: translateY(-2px);
}

.roster-btn:active {
    transform: translateY(0) scale(0.95);
}

.roster-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: 0.5s;
}

.roster-btn:hover::before {
    left: 100%;
}


.schedule-section {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.02);
}


html:not(.dark) .schedule-section {
    background: var(--bg-body);
}

.schedule-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.day-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.day-btn:hover,
.day-btn.active {
    background: #007bff;
    border-color: #007bff;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
}


html:not(.dark) .day-btn {
    background: var(--bg-surface);
    border: 2px solid var(--border-light);
    color: var(--text-muted);
    box-shadow: var(--shadow-sm);
}

html:not(.dark) .day-btn:hover {
    background: var(--bg-surface);
    color: var(--text-main);
    border-color: var(--text-main);
    box-shadow: var(--shadow-md);
}

html:not(.dark) .day-btn.active {
    background: var(--text-main);
    color: var(--bg-surface);
    border-color: var(--text-main);
    box-shadow: var(--shadow-md);
}

.events-list {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.event-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    transition: all 0.3s;
}

.event-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(10px);
}

.event-time {
    color: #FFD700;
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 100px;
}

.event-info {
    flex: 1;
}

.event-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.event-venue {
    opacity: 0.6;
    font-size: 0.9rem;
}


.roster-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    padding: 2rem;
}


html:not(.dark) .roster-modal {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.roster-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: var(--bg-surface);
    border-radius: 30px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3rem;
    position: relative;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-xl);
}


html:not(.dark) .modal-box {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #FFD700;
}


html:not(.dark) .modal-close:hover {
    color: #3b82f6;
}

.modal-team-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-light);
}

.modal-team-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--team-color);
}

.modal-team-name {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--team-color);
}

.roster-category {
    margin-bottom: 3rem;
}

.category-title {
    color: var(--text-main);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.roster-box {
    background: var(--bg-body);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-light);
}


html:not(.dark) .roster-box {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.roster-box strong {
    display: block;
    color: var(--accent-yellow);
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}


@media (max-width: 768px) {
    .tri-podium {
        gap: 0.8rem;
        padding: 0 0.5rem;
    }

    .podium-block {
        max-width: 200px;
    }

    .medal-icon {
        font-size: 1.8rem;
    }

    .team-circle {
        width: 60px;
        height: 60px;
        border-width: 3px;
        margin-bottom: 0.5rem;
    }

    .position-1 .team-circle {
        width: 70px;
        height: 70px;
        border-width: 4px;
    }

    .block-platform {
        padding: 0.8rem 0.5rem;
    }

    .position-1 .block-platform {
        padding: 1rem 0.5rem;
    }

    .team-name {
        font-size: 0.75rem;
    }

    .position-1 .team-name {
        font-size: 0.9rem;
    }

    .team-dept {
        font-size: 0.65rem;
        margin-bottom: 0.5rem;
    }

    .points-display {
        font-size: 1.2rem;
    }

    .position-1 .points-display {
        font-size: 1.5rem;
    }

    .points-label {
        font-size: 0.6rem;
    }

    .position-1 .height-bar {
        height: 80px;
    }

    .position-2 .height-bar {
        height: 60px;
    }

    .position-3 .height-bar {
        height: 50px;
    }



    .event-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .modal-box {
        padding: 2rem;
    }

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

@media (max-width: 600px) {
    .teams-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tri-podium {
        gap: 0.5rem;
        padding: 0 0.3rem;
    }

    .podium-block {
        max-width: 150px;
    }

    .medal-icon {
        font-size: 1.5rem;
        margin-bottom: 0.3rem;
    }

    .team-circle {
        width: 50px;
        height: 50px;
        border-width: 2px;
        margin-bottom: 0.4rem;
    }

    .position-1 .team-circle {
        width: 60px;
        height: 60px;
        border-width: 3px;
    }

    .block-platform {
        padding: 0.6rem 0.4rem;
    }

    .position-1 .block-platform {
        padding: 0.8rem 0.4rem;
    }

    .team-name {
        font-size: 0.65rem;
        margin-bottom: 0.2rem;
    }

    .position-1 .team-name {
        font-size: 0.75rem;
    }

    .team-dept {
        font-size: 0.55rem;
        margin-bottom: 0.4rem;
    }

    .points-display {
        font-size: 1rem;
        margin-bottom: 0.2rem;
    }

    .position-1 .points-display {
        font-size: 1.3rem;
    }

    .points-label {
        font-size: 0.55rem;
        letter-spacing: 1px;
    }

    .position-1 .height-bar {
        height: 60px;
    }

    .position-2 .height-bar {
        height: 45px;
    }

    .position-3 .height-bar {
        height: 35px;
    }
}


.event-item {
    background: rgba(var(--bg-surface-rgb, 255, 255, 255), 0.03);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    transition: all 0.3s;
    border: 1px solid var(--border-light);
}


html:not(.dark) .event-item {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

html:not(.dark) .event-item:hover {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.event-item:hover {
    background: rgba(var(--bg-surface-rgb, 255, 255, 255), 0.08);
    transform: translateX(10px);
}

.event-time {
    color: #FFD700;
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 100px;
    flex-shrink: 0;
}

.event-info {
    flex: 1;
}

.event-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--text-main);
}

.event-venue {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.result-btn {
    background: var(--accent-yellow);
    color: var(--primary);
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.result-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}


html:not(.dark) .result-btn {
    background: var(--accent-yellow);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

html:not(.dark) .result-btn:hover {
    box-shadow: var(--shadow-md);
}


.results-modal .modal-box {
    max-width: 600px;
}

.result-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-main);
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-light);
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-card {
    background: rgba(var(--bg-surface-rgb, 255, 255, 255), 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    border: 2px solid var(--border-light);
    transition: all 0.3s;
}

.result-card:not(.dq) {
    border-color: var(--team-color);
}

.result-card:hover:not(.dq) {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}


html:not(.dark) .result-card {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 0, 0, 0.06);
}

html:not(.dark) .result-card:hover:not(.dq) {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.result-card.dq {
    opacity: 0.6;
    border-color: #666;
}

.result-rank {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.result-team {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.result-players {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.schedule-section {
    padding: 60px 0;
    position: relative;
    background: linear-gradient(to bottom, transparent, rgba(var(--bg-surface-rgb, 255, 255, 255), 0.02));
}

.unique-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
    width: 100%;
}

.tab-btn {
    flex: 1;
    text-align: center;
    padding: 0.6rem 0.5rem;
    border-radius: 50px;
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
}


@media (max-width: 480px) {
    .unique-tabs {
        justify-content: flex-start;
        padding-left: 10px;
        padding-right: 10px;
    }

    .tab-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn:hover {
    color: #000000;
    border-color: #ffffff;
}

.tab-btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.tab-btn.active {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}


html:not(.dark) .tab-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
}

html:not(.dark) .tab-btn:hover {
    background: var(--bg-surface);
    color: var(--text-main);
    border-color: var(--text-main);
}

html:not(.dark) .tab-btn.active {
    background: var(--text-main);
    color: var(--bg-surface);
    border-color: var(--text-main);
    box-shadow: var(--shadow-md);
}

html:not(.dark) .tab-btn::before {
    background: var(--text-main);
}


.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: var(--border-light);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 60px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.5s forwards;
}

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 3px solid var(--accent-yellow);
    box-shadow: 0 0 0 5px rgba(var(--bg-surface-rgb, 255, 255, 255), 0.8);
    z-index: 2;
}


html:not(.dark) .timeline-dot {
    background: var(--bg-surface);
    border: 3px solid var(--accent-yellow);
    box-shadow: 0 0 0 5px var(--bg-body), var(--shadow-sm);
}

.timeline-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}


html:not(.dark) .timeline-content {
    background: var(--timeline-bg);
    border: 1px solid var(--timeline-border);
    box-shadow: var(--timeline-shadow);
}

html:not(.dark) .timeline-content:hover {
    background: var(--bg-surface);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-blue);
}

.timeline-content:hover {
    transform: translateX(8px) scale(1.02);
    border-color: rgba(0, 153, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.timeline-item:nth-child(even) .timeline-content:hover {
    transform: translateX(-8px) scale(1.02);
}

.t-time {
    display: inline-block;
    background: var(--accent-yellow);
    color: var(--primary);
    font-weight: 800;
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    margin-bottom: 0.8rem;
}


html:not(.dark) .t-time {
    background: var(--accent-yellow);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.t-activity {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.t-venue {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


.results-section {
    padding: 60px 0 100px;
}

.scoreboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}


@media (max-width: 480px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .scoreboard-grid {
        gap: 1rem;
    }

    .score-card {
        margin: 0;
        width: 100%;
    }


    .tab-btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.2rem;
        letter-spacing: 0;
    }

    .unique-tabs {
        gap: 0.3rem;
    }
}

.score-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);

    clip-path: polygon(20px 0,
            100% 0,
            100% calc(100% - 20px),
            calc(100% - 20px) 100%,
            0 100%,
            0 20px);
    position: relative;
    overflow: visible;
    opacity: 0;
    animation: fadeUp 0.5s forwards;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}


.score-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 60px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.6), transparent);
    transform: rotate(45deg);
    transform-origin: top right;
    opacity: 0.5;
    transition: opacity 0.4s;
}


.score-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, transparent 50%, rgba(59, 130, 246, 0.1) 50%);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    transition: background 0.4s;
}


html:not(.dark) .score-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
}

html:not(.dark) .score-card::before {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.4), transparent);
}

html:not(.dark) .score-card::after {
    background: linear-gradient(135deg, transparent 50%, rgba(59, 130, 246, 0.08) 50%);
}

html:not(.dark) .score-card:hover {
    background: var(--card-hover-bg);
    box-shadow: var(--card-hover-shadow), 0 0 0 2px rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

html:not(.dark) .score-card:hover::before {
    opacity: 1;
}

html:not(.dark) .score-card:hover::after {
    background: linear-gradient(135deg, transparent 50%, rgba(59, 130, 246, 0.15) 50%);
}

.score-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(59, 130, 246, 0.2);
}

.score-card:hover::before {
    opacity: 1;
}

.score-card:hover::after {
    background: linear-gradient(135deg, transparent 50%, rgba(59, 130, 246, 0.2) 50%);
}

.score-header {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.05), transparent);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}


html:not(.dark) .score-header {
    background: linear-gradient(to right, rgba(59, 130, 246, 0.05), transparent);
    border-bottom: 1px solid var(--border-light);
}

.score-event {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.score-body {
    padding: 1.5rem;
}

.score-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px dashed var(--border-light);
}

.score-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.rank-badge {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.rank-1 .rank-badge {
    background: #FFD700;
    color: #000;
}

.rank-2 .rank-badge {
    background: #C0C0C0;
    color: #000;
}

.rank-3 .rank-badge {
    background: #CD7F32;
    color: #000;
}

.score-team {
    flex: 1;
    margin-left: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

.score-team.winner {
    color: var(--winner-color);
    font-weight: 800;
}

.dq-tag {
    font-size: 0.75rem;
    color: #ef4444;
    font-weight: 700;
    text-transform: uppercase;
}


@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (min-width: 768px) {
    .timeline-container::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-item {
        width: 50%;
        padding-left: 0;
        margin-left: auto;
        padding-left: 40px;
    }

    .timeline-item:nth-child(even) {
        margin-left: 0;
        padding-right: 40px;
        padding-left: 0;
        text-align: right;
    }

    .timeline-item:nth-child(even) .timeline-dot {
        left: auto;
        right: -11px;
    }

    .timeline-item:nth-child(odd) .timeline-dot {
        left: -11px;
    }

    .timeline-item:nth-child(even) .t-venue {
        justify-content: flex-end;
    }
}


.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    padding: 10px 20px;
    border-radius: 50px;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    gap: 1.5rem;
}


html:not(.dark) .mobile-bottom-nav {
    background: var(--bg-glass);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
}

html:not(.dark) .nav-item {
    color: var(--text-muted);
}

html:not(.dark) .nav-item.active,
html:not(.dark) .nav-item:hover {
    color: var(--accent-yellow);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.7rem;
    gap: 4px;
    transition: all 0.3s;
}

.nav-item svg {
    width: 20px;
    height: 20px;
}

.nav-item.active,
.nav-item:hover {
    color: var(--accent-yellow);
}

@media (max-width: 480px) {
    .mobile-bottom-nav {
        display: flex;
        width: 95%;
        justify-content: space-between;
        padding: 10px 25px;
        bottom: 20px;
    }

    .nav-item {
        flex: 1;
        font-size: 0.65rem;
    }
}


#category-filters .tab-btn.active {
    background: var(--text-main);
    color: var(--bg-surface);
    border-color: var(--text-main);
}




.score-card {
    padding-left: 0;
}


.score-header,
.score-body {
    padding-left: 1.5rem;
}

.team-points {
    font-weight: 800;
    font-size: 0.9rem;
    margin-left: 1rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
}


@media (max-width: 480px) {
    .unique-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0.5rem;
        padding-inline: 0.75rem;
    }

    .unique-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
        flex-shrink: 0;
        width: auto;
        flex: 0 0 auto;
    }
}


.winner .team-points {
    background: var(--winner-color);
    color: #000;
}


.score-breakdown-section {
    padding: 0.75rem 0;
}

.score-breakdown-section h3 {
    margin-bottom: 0.75rem !important;
    font-size: 1.1rem !important;
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: var(--bg-body);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.score-label {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.score-day {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

.score-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.score-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.points-earned {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
}

.points-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

.score-divider {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    margin: 0.75rem 0;
    border-top: 2px solid var(--border-light);
}

.score-divider.final {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-bottom: none;
}

.score-divider span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.total-badge {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-full);
    color: white;
    font-weight: 900;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}


@media (max-width: 640px) {
    .score-breakdown-section h3 {
        font-size: 1rem !important;
    }

    .score-item {
        padding: 0.6rem;
    }

    .score-day {
        font-size: 0.85rem;
    }

    .points-earned {
        font-size: 1.25rem;
    }

    .total-badge {
        font-size: 0.9rem;
        padding: 0.4rem 0.65rem;
    }
}


@media (max-width: 400px) {
    .score-breakdown-section {
        padding: 0.5rem 0;
    }

    .score-breakdown-section h3 {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
    }

    .score-item {
        padding: 0.5rem;
        margin-bottom: 0.4rem;
    }

    .score-day {
        font-size: 0.8rem;
    }

    .points-earned {
        font-size: 1.1rem;
    }

    .points-label {
        font-size: 0.65rem;
    }

    .score-divider {
        padding: 0.5rem 0;
        margin: 0.5rem 0;
    }

    .score-divider span {
        font-size: 0.75rem;
    }

    .total-badge {
        font-size: 0.85rem;
        padding: 0.35rem 0.6rem;
    }
}