
@keyframes meeting-call-pulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.12);
        filter: brightness(1.25);
    }
}

@keyframes meeting-call-ring {
    0% {
        transform: scale(0.75);
        opacity: 0.85;
    }
    70%, 100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

body > main {

    & > #next-meeting.front-icon {
        grid-template-columns: auto 1fr auto;

        & > .meeting-call-button {
            grid-column: 3;
            grid-row: 1 / -1;
            align-self: center;
            position: relative;
            color: var(--color-theme);
            border-width: 2px;
            border-color: var(--color-theme);
            border-radius: 50%;
            width: 52px;
            height: 52px;

            &[aria-pressed="true"] {
                animation: meeting-call-pulse 1.8s ease-in-out infinite;
                box-shadow: 0 0 18px color-mix(in srgb, var(--color-theme) 45%, transparent);
            }

            &[aria-pressed="true"]::after {
                content: '';
                position: absolute;
                inset: -6px;
                border: 2px solid var(--color-theme);
                border-radius: 50%;
                animation: meeting-call-ring 1.8s ease-out infinite;
                pointer-events: none;
            }
        }

        & > audio {
            display: none;
        }
    }

    & > header {

        display: grid;
        grid-template-columns: 1fr 16px 2fr;
        align-content: center;
        justify-content: center;
        width: fit-content;
        margin: 0 auto;
        padding: 16px 0 24px 0;

        &::before{
            content: '';
            grid-column: 2;
            grid-row: 1 / span 2;
            width: 2px;
            background-color: var(--color-theme);
            height: calc(100% - 20px);
            align-self: center;
            justify-self: center;
            transform: rotate(12deg);
            margin-left: 6px;
            margin-top: 8px;
        }

        & > .logo {
            grid-column: 1;
            grid-row: 1 / span 2;
            align-self: center;
            max-width: 110px;
        }

        & > h2 {
            grid-column: 3;
            grid-row: 1;
            margin: 0;
            padding-left: 9px;
            font-size: 64px;
            font-weight: 600;
            font-style: italic;
            color: white;
            font-family: "Squada One", sans-serif;
        }

        & > p {
            grid-column: 3;
            grid-row: 2;
            margin: 0;
            font-size: 16px;
            font-weight: 200;
            font-style: italic;
            color: white;
            max-width: 180px;
        }

    }

    & .tabs:has( #tab-table:not(:checked)) ~ #table {
        display: none;
    }

    & .tabs:has( #tab-matches:not(:checked)) ~ #matches {
        display: none;
    }

    & .tabs:has( #tab-rules:not(:checked)) ~ #rules {
        display: none;
    }

    & > #table {

        & > table {
            padding: 0;
            margin: 0;

            & .name {
                display: none;
            }

            & .pos {
                font-size: 9px;
            }

            & :is(.abbrev, .name) {
                font-weight: 600;
            }

            & .team {
                display: flex;
                align-items: center;
            }

            & img {
                width: 24px;
                height: 24px;
                margin-right: 8px;
            }
        }

    }

    & > #matches {
        display: grid;
        gap: 8px;
        padding: 12px 0;

        & > .match-card {
            display: grid;
            grid-template-columns: 1fr;
            gap: 4px;
            padding: 10px 12px;
            border-radius: 8px;
            background: rgba(10, 22, 0, 0.8);

            & > .match-team {
                display: grid;
                grid-template-columns: 28px 1fr auto 36px;
                align-items: center;
                gap: 8px;

                & > .logo {
                    width: 22px;
                    height: 28px;
                    object-fit: contain;
                }

                & > .name {
                    font-weight: 600;
                }

                & > .score {
                    text-align: center;
                    font-family: "Squada One", sans-serif;
                    font-size: 22px;
                }
            }

            & > .match-date {
                padding-top: 4px;
                border-top: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent);
                text-align: center;
                color: color-mix(in srgb, var(--color-text) 65%, transparent);
                font-size: 12px;
            }
        }
    }

}