.event-public-nav {
    position: relative;
    z-index: 12;
    background: #fff;
    border-bottom: 1px solid #e4e7eb;
    box-shadow: 0 5px 20px rgba(17, 24, 39, .06);
}

.event-public-nav-scroll {
    display: flex;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #c9ced6 transparent;
}

.event-public-nav-link {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 66px;
    padding: .8rem 1.15rem;
    color: #59616c;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .035em;
    white-space: nowrap;
    transition: color .2s ease, background-color .2s ease;
}

.event-public-nav-link::after {
    position: absolute;
    right: .9rem;
    bottom: 0;
    left: .9rem;
    height: 4px;
    border-radius: 4px 4px 0 0;
    background: var(--brand-orange, #f9a42f);
    content: '';
    opacity: 0;
    transform: scaleX(.35);
    transition: opacity .2s ease, transform .2s ease;
}

.event-public-nav-link:hover,
.event-public-nav-link.active {
    color: #1f2328;
    background: #fffaf2;
}

.event-public-nav-link.active::after {
    opacity: 1;
    transform: scaleX(1);
}

.event-public-nav-badge {
    display: inline-flex;
    align-items: center;
    gap: .28rem;
    min-width: 1.65rem;
    padding: .25rem .48rem;
    border: 1px solid #b9dfc9;
    border-radius: 999px;
    background: #e8f7ee;
    color: #187443;
    font-family: 'Inter', sans-serif;
    font-size: .72rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
}

.event-public-nav-badge i { font-size: .66rem; }

.event-overview-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
}

.event-overview-card {
    height: auto;
    min-height: 0;
    padding: 1.1rem 1.2rem;
    transition: none;
}

.event-overview-card:hover { transform: none; }

.event-overview-card-date,
.event-overview-card-public { grid-column: span 3; }
.event-overview-card-location { grid-column: span 6; }
.event-overview-card-prices { grid-column: 1 / -1; }

.event-overview-card-content,
.event-overview-price-heading {
    display: flex;
    align-items: center;
    gap: .9rem;
}

.event-overview-card .info-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    margin-bottom: 0;
}

.event-overview-card-content > div:last-child { min-width: 0; }
.event-overview-card-content h6:last-child { line-height: 1.35; }

.event-overview-card-prices {
    display: grid;
    grid-template-columns: 155px minmax(0, 1fr);
    align-items: stretch;
    gap: 1.2rem;
}

.event-overview-price-heading {
    align-content: center;
    border-right: 1px solid #e4e7eb;
}

.event-overview-price-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.event-overview-tier {
    flex: 0 1 300px;
    min-width: 230px;
    padding-right: 1rem;
    border-right: 1px solid #e4e7eb;
}

.event-overview-modalities {
    display: grid;
    flex: 1 1 auto;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: .55rem;
    min-width: 0;
}

.event-overview-modality {
    display: grid;
    grid-template-columns: 1rem minmax(0, 1fr);
    column-gap: .4rem;
    row-gap: .3rem;
    align-items: start;
    padding: .55rem .7rem;
    border-radius: 7px;
    background: #f7f8fa;
}

.event-overview-modality > i {
    grid-column: 1;
    grid-row: 1;
    margin-top: .05rem;
    color: #17191d;
    text-align: center;
}

.event-overview-modality-title {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}

.event-overview-modality-price {
    grid-column: 2;
    grid-row: 2;
    color: #4f5661;
    font-weight: 600;
    line-height: 1.35;
}

.event-information-area { background: var(--light-bg, #f4f6f9); }

.event-sidebar-location {
    overflow: hidden;
    border: 1px solid #dfe3e8;
    border-top: 4px solid var(--brand-orange, #f9a42f);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(31, 35, 40, .07);
}

.event-sidebar-location-header {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    padding: 1rem;
}

.event-sidebar-location-icon {
    display: inline-flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(249, 164, 47, .12);
    color: var(--brand-orange, #f9a42f);
    font-size: 1.05rem;
}

.event-sidebar-location-header h3 {
    margin: 0 0 .25rem;
    color: #25282d;
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.event-sidebar-location-header p {
    margin: 0;
    color: #5f6772;
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.45;
}

.event-sidebar-map-frame {
    height: 215px;
    border-top: 1px solid #e6e9ed;
    border-bottom: 1px solid #e6e9ed;
    background: #e8ebee;
}

.event-sidebar-map-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.event-sidebar-location-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .55rem;
    padding: .8rem;
}

.event-sidebar-location-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.event-notice-panel { scroll-margin-top: 90px; }

.event-notice-language-alert {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: 1rem;
    padding: .7rem .85rem;
    border: 1px solid #f7d58d;
    border-radius: .55rem;
    color: #694b0a;
    background: #fff9e9;
    font-size: .82rem;
    line-height: 1.4;
}

.event-notice-language-alert i { color: var(--primary-color, #f5a623); }

.event-notice-collapsible { position: relative; }

.event-notice-collapsible.is-collapsible {
    transition: max-height .35s ease;
}

.event-notice-collapsible.is-collapsed {
    overflow: hidden;
    max-height: 1080px;
}

.event-notice-collapsible.is-expanded { max-height: none; }

.event-notice-fade { display: none; }

.event-notice-collapsible.is-collapsed .event-notice-fade {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    height: 150px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 82%);
    pointer-events: none;
}

.event-notice-toggle-area {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .55rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eceef1;
    text-align: center;
}

.event-notice-toggle-area[hidden] { display: none; }

.event-notice-toggle-area small {
    color: #747b85;
    font-size: .78rem;
}

.event-notice-content {
    color: #30343a;
    font-size: .92rem;
    line-height: 1.65;
}

.event-notice-content img { max-width: 100%; height: auto; }

.event-notice-content h1,
.event-notice-content h2,
.event-notice-content h3,
.event-notice-content h4 {
    scroll-margin-top: 90px;
    color: #20242a;
    line-height: 1.2;
}

.event-public-content {
    min-height: 420px;
    padding: 3rem 0 5rem;
    background: var(--light-bg, #f4f6f9);
}

.event-public-panel {
    padding: clamp(1.15rem, 2vw, 2rem);
    border: 1px solid #e5e7eb;
    border-top: 4px solid var(--brand-orange, #f9a42f);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(31, 35, 40, .07);
}

.event-public-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e8eaed;
}

.event-public-heading h2 {
    margin: 0;
    color: #20242a;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    font-weight: 900;
    text-transform: uppercase;
}

.event-public-heading h2 i { color: var(--brand-orange, #f9a42f); }
.event-public-heading p { margin: .35rem 0 0; color: #6b7280; }

.event-public-empty {
    padding: clamp(3rem, 8vw, 6rem) 1rem;
    color: #747d89;
    text-align: center;
}

.event-public-empty i {
    display: block;
    margin-bottom: 1rem;
    color: #c6cbd2;
    font-size: 3rem;
}

.event-public-filter {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e6e9ed;
    border-radius: 10px;
    background: #f8f9fb;
}

.event-public-filter label {
    margin-bottom: .35rem;
    color: #656d78;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.event-public-filter .form-control,
.event-public-filter .form-select {
    min-height: 45px;
    border-color: #dce0e5;
    background-color: #fff;
}

.event-public-filter .form-control:focus,
.event-public-filter .form-select:focus {
    border-color: var(--brand-orange, #f9a42f);
    box-shadow: 0 0 0 .2rem rgba(249, 164, 47, .16);
}

.event-participant-summary {
    display: grid;
    overflow: hidden;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-radius: 16px;
    background: #17181b;
    color: #fff;
}

.event-participant-summary-item {
    min-width: 0;
    min-height: 112px;
    padding: 1rem 1.2rem;
    transition: background-color .2s ease;
}

.event-participant-summary-item:hover { background: #202125; }
.event-participant-summary-item + .event-participant-summary-item { border-left: 1px solid #34363a; }

.event-participant-summary-item span {
    display: block;
    color: var(--brand-orange, #f9a42f);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.event-participant-summary-item strong {
    display: block;
    margin-top: .42rem;
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.event-participant-summary-item small {
    display: block;
    overflow: hidden;
    margin-top: .38rem;
    color: #aeb2bb;
    font-size: .72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-participant-filter-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.event-participant-filter-heading [hidden] { display: none !important; }

#epToggleAdvanced.active {
    border-color: #20242a;
    background: #20242a;
    color: #fff;
}

.event-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    margin-left: .35rem;
    padding: 0 .3rem;
    border-radius: 999px;
    background: var(--brand-orange, #f9a42f);
    color: #17181b;
    font-size: .68rem;
    font-weight: 900;
}

.event-filter-count[hidden] { display: none; }

.event-participant-advanced {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e1e5e9;
}

.event-participant-advanced[hidden] { display: none; }

.event-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: 1rem;
    padding-top: .85rem;
    border-top: 1px solid #e1e5e9;
}

.event-active-filters[hidden] { display: none; }

.event-active-filter {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    max-width: 100%;
    padding: .4rem .65rem;
    border: 1px solid #f0c57f;
    border-radius: 999px;
    background: #fff6e8;
    color: #6f480b;
    font-size: .72rem;
    line-height: 1.2;
}

.event-active-filter span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-active-filter:hover { border-color: var(--brand-orange, #f9a42f); background: #ffedcf; }

.event-participant-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    margin: .25rem 0 1rem;
    color: #656d78;
    font-size: .9rem;
}

.event-participant-groups {
    display: grid;
    gap: 1.15rem;
}

.event-participant-group {
    overflow: hidden;
    border: 1px solid #dfe3e8;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(31, 35, 40, .055);
}

.event-participant-group[hidden],
.event-participant-row[hidden] { display: none !important; }

.event-participant-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1rem;
    border-left: 5px solid var(--brand-orange, #f9a42f);
    background: #252525;
    color: #fff;
}

.event-participant-group-header h3 {
    margin: 0;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: .015em;
    text-transform: uppercase;
}

.event-participant-category-title {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-width: 0;
}

.event-participant-division {
    flex: 0 0 auto;
    padding: .28rem .5rem;
    border-radius: 5px;
    background: var(--brand-orange, #f9a42f);
    color: #1c1d20;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.event-participant-count {
    flex: 0 0 auto;
    padding: .35rem .65rem;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #e7e9ed;
    font-size: .75rem;
    white-space: nowrap;
}

.event-participant-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: .85rem;
    min-height: 68px;
    padding: .65rem 1rem;
    border-top: 1px solid #eceef1;
    transition: background-color .18s ease;
}

.event-participant-row:first-child { border-top: 0; }
.event-participant-row:hover { background: #fffaf2; }

.event-participant-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ffd18d;
    border-radius: 50%;
    background: #fff1dc;
    color: #915600;
    font-size: .76rem;
    font-weight: 900;
}

.event-participant-athlete strong {
    display: block;
    color: #24282e;
    font-size: .94rem;
}

.event-participant-athlete small {
    display: block;
    margin-top: .15rem;
    color: #737b86;
}

.event-live-card {
    height: 100%;
    padding: 1rem;
    border: 1px solid #e3e7eb;
    border-left: 5px solid #cbd0d6;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 3px 13px rgba(31, 35, 40, .05);
}

.event-live-card.andamento,
.event-live-card.chamada { border-left-color: var(--brand-orange, #f9a42f); }
.event-live-card.finalizada { border-left-color: #218b4e; }
.event-live-card.wo { border-left-color: #c73535; }

.event-live-status {
    display: inline-flex;
    padding: .3rem .55rem;
    border-radius: 999px;
    background: #eef0f2;
    color: #59616c;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.event-athlete-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .6rem 0;
    border-top: 1px solid #edf0f2;
    font-weight: 700;
}

.event-schedule-area {
    overflow: hidden;
    margin-bottom: 1.25rem;
    border: 1px solid #e4e7eb;
    border-radius: 10px;
    background: #fff;
}

.event-schedule-area-title {
    padding: .85rem 1rem;
    background: #252525;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
}

.event-schedule-row {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: .8rem 1rem;
    border-top: 1px solid #eceef1;
}

.event-schedule-row.current { border-left: 5px solid var(--brand-orange, #f9a42f); background: #fff8eb; }
.event-schedule-time { font-size: 1.1rem; font-weight: 900; }

.event-bracket-scroll { overflow-x: auto; padding-bottom: 1rem; }
.event-bracket-board { display: flex; gap: 1.25rem; width: max-content; min-width: 100%; }
.event-bracket-round { width: 285px; }
.event-bracket-round-title { margin-bottom: .7rem; color: #4d5662; font-weight: 900; text-transform: uppercase; }
.event-bracket-match { margin-bottom: .8rem; }

.event-result-tabs .nav-link {
    color: #59616c;
    font-weight: 800;
    text-transform: uppercase;
}
.event-result-tabs .nav-link.active { background: var(--brand-orange, #f9a42f); color: #202020; }

@media (max-width: 767.98px) {
    .event-public-nav-link { min-height: 58px; padding: .7rem .9rem; font-size: .82rem; }
    .event-public-nav-badge { padding: .22rem .4rem; font-size: .68rem; }
    .event-overview-grid { grid-template-columns: 1fr; }
    .event-overview-card-date,
    .event-overview-card-location,
    .event-overview-card-public,
    .event-overview-card-prices { grid-column: 1; }
    .event-overview-card-prices { display: block; }
    .event-overview-price-heading { padding-bottom: .85rem; border-right: 0; border-bottom: 1px solid #e4e7eb; }
    .event-overview-price-content { display: block; padding-top: .85rem; }
    .event-overview-tier { min-width: 0; margin-bottom: .85rem; padding: 0 0 .85rem; border-right: 0; border-bottom: 1px solid #e4e7eb; }
    .event-sidebar-map-frame { height: 250px; }
    .event-notice-panel { padding: 1.1rem !important; }
    .event-notice-collapsible.is-collapsed { max-height: 850px; }
    .event-public-content { padding-top: 2rem; }
    .event-public-heading { flex-direction: column; }
    .event-participant-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .event-participant-summary-item { min-height: 100px; padding: .9rem 1rem; }
    .event-participant-summary-item:nth-child(3) { border-top: 1px solid #34363a; border-left: 0; }
    .event-participant-summary-item:nth-child(4) { border-top: 1px solid #34363a; }
    .event-participant-filter-heading { align-items: flex-start; flex-direction: column; }
    .event-schedule-row { grid-template-columns: 62px minmax(0, 1fr); gap: .7rem; }
    .event-schedule-row > :last-child { grid-column: 2; }
    .event-participant-group-header { align-items: flex-start; }
    .event-participant-category-title { align-items: flex-start; flex-direction: column; gap: .45rem; }
    .event-participant-group-header h3 { font-size: .92rem; }
    .event-participant-row { grid-template-columns: 38px minmax(0, 1fr); padding: .7rem .8rem; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .event-overview-grid {
        grid-template-areas:
            'date public'
            'location location'
            'prices prices';
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .event-overview-card-date { grid-area: date; }
    .event-overview-card-location { grid-area: location; }
    .event-overview-card-public { grid-area: public; }
    .event-overview-card-prices { grid-area: prices; }
    .event-overview-card-prices { grid-template-columns: 135px minmax(0, 1fr); }
    .event-overview-price-content { align-items: stretch; flex-direction: column; }
    .event-overview-tier { min-width: 0; padding: 0 0 .85rem; border-right: 0; border-bottom: 1px solid #e4e7eb; }
}

@media (min-width: 992px) {
    .event-sidebar-location {
        position: sticky;
        top: 88px;
    }
}
