/* ---------- Shared Section Wrapper ---------- */

#ee-event-overview {
    margin: 0 0 3.75rem 0;
}

/* ---------- Summary Bar ---------- */

.ee-summary-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 3rem;
    margin-bottom: 2rem;
    padding: 1.563rem 1.25rem;
    border: 1px solid #dddddd;
    border-radius: 5px;
}

.summary-label {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.summary-label .number {
    font-size: 2.8rem;
    margin-bottom: 0.3125rem;
}

.summary-label .label {
    font-size: 0.85rem;
    color: #231F20;
}

.separator {
    display: inline-block;
    width: 1px;
    height: 45px;
    margin: 0 8px;
    background-color: #c5c5c5;
}

/* ---------- Medals Table ---------- */

.ee-medals-overview {
    background-color: #ffffff;
}

.ee-medals-overview-title {
    font-size: 1.5rem;
    margin-bottom: 1.563rem;
}

.ee-medals-table {
    width: 100%;
    min-width: 37.5rem;
    margin-bottom: 2.188;
    border-collapse: separate; /* allows border-radius to work */
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid #dddddd;
    border-radius: 5px;
}

/* Top-left and top-right corners for the header */
.ee-medals-table thead th:first-child {
    border-top-left-radius: 5px;
}

.ee-medals-table thead th:last-child {
    border-top-right-radius: 5px;
}

/* Bottom-left and bottom-right corners for the last row */
.ee-medals-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 5px;
}

.ee-medals-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 5px;
}

/* Left-align POS column (header + cells) *//*
.ee-medals-table th:first-child,
.ee-medals-table td:first-child {
    text-align: left;
}
*/

/* Left-align Team column header */
.ee-medals-table th:nth-child(2) {
    text-align: left;
}

.ee-medals-table th,
.ee-medals-table td {
    text-align: center;
    padding: 0.75rem 0.75rem;
    border-bottom: 1px solid #dddddd;
}

.ee-medals-table td.team-name {
    text-align: left;
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid #dddddd;
}

.ee-medals-table td.team-name img {
    display: inline-block !important;
}

/* Remove bottom border for the last row */
.ee-medals-table tbody tr:last-child td {
    border-bottom: none;
}

.ee-medals-table th:first-child,
.ee-medals-table td:first-child {
    padding: 0.625rem 1.25rem; 
}

.ee-medals-table th {
    font-weight: 600;
    background-color: #fbb02d;
}

.ee-team-icon {
    max-width: 1.5rem;
    vertical-align: middle;
    margin-right: 0.375rem;
}

/* ---------- Featured Videos ---------- */

.ee-featured-videos {
    padding-top: 2.188rem;
    border-top: 1px solid #929497;
}

.ee-featured-videos-title {
    font-size: 1.5rem;
    margin-bottom: 1.563rem;
}

.ee-featured-matches {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.ee-video-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}

.ee-video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.ee-video-title {
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.938rem;
}

.ee-video-title a {
    font-size: 1rem;
    text-decoration: none;
    color: #231F20 !important;
}

@media (max-width: 64em /* 1024px */) {

/* ---------- Medals Table ---------- */

.ee-medals {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; 
}

.ee-medals-table-wrapper {
    min-width: 75rem;
}

/* ---------- Featured Videos ---------- */

.ee-featured-matches {
    grid-template-columns: repeat(2, 1fr);
}
}

@media (max-width: 47.938em /* 767px */) {

/* ---------- Summary Bar ---------- */

.ee-summary-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.summary-label {
    padding: 30px 0 30px 0;
    border-bottom: 1px solid #c5c5c5;
}

.summary-label.three, .summary-label.four {
    border-bottom: 0;
}

.separator {
    display: none;
}
}

@media (max-width: 30em /* 480px */) {

.ee-featured-matches {
    grid-template-columns: 1fr;
}
}

@media (max-width: 20em /* 320px */) {

/* ---------- Summary Bar ---------- */

.ee-summary-bar {
    grid-template-columns: 1fr !important;
}

.summary-label.three {
    border-bottom: 1px solid #c5c5c5;
}
}