/*
 * Shared Epic Fans homepage dashboard.
 * Property-neutral. No club-specific colours or identifiers.
 */

.epic-home-dashboard {
    width: 100%;
    max-width: none;
    margin: 48px 0 72px;
    padding: 0;
    box-sizing: border-box;
}

.epic-home-dashboard__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.epic-dashboard-widget {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 28px;
    border: 1px solid rgba(30, 30, 30, .08);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .045);
    box-sizing: border-box;
}

.epic-dashboard-widget__header {
    margin-bottom: 24px;
}

.epic-dashboard-widget__title {
    margin: 0;
    font-family: Geist, Arial, sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.epic-dashboard-latest-news__items {
    display: grid;
    gap: 18px;
}

.epic-dashboard-latest-news__item {
    padding-bottom: 17px;
    border-bottom: 1px solid rgba(0, 0, 0, .09);
}

.epic-dashboard-latest-news__item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.epic-dashboard-latest-news__link {
    display: block;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    text-decoration: none;
    color: inherit;
}

.epic-dashboard-latest-news__link:hover {
    text-decoration: underline;
}

.epic-dashboard-latest-news__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 7px;
    font-size: 12px;
    color: #717171;
}

.epic-dashboard-widget__footer {
    margin-top: auto;
    padding-top: 24px;
}

.epic-dashboard-widget__footer a {
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 960px) {


    .epic-home-dashboard__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .epic-home-dashboard {
        margin: 32px 0 48px;
    }

    .epic-home-dashboard__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .epic-dashboard-widget {
        padding: 22px;
    }
}

/* Homepage News drawer — match the existing News page title */
.epic-home-dashboard
.epic-fans-news-drawer__title {
    margin: 0 0 18px;
    color: #333;
    font-family: Anton, Impact, "Arial Narrow Bold", sans-serif;
    font-size: 38px !important;
    line-height: 39px;
    font-weight: 400;
    letter-spacing: 0;
}

@media (max-width: 640px) {
    .epic-home-dashboard
    .epic-fans-news-drawer__title {
        font-size: 32px !important;
        line-height: 1.08;
    }
}


/* Compact shared homepage Videos & Podcasts widget. */
.epic-dashboard-media__items {
    display: grid;
    gap: 16px;
}

.epic-dashboard-media__item {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.epic-dashboard-media__item + .epic-dashboard-media__item {
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, .09);
}

.epic-dashboard-media__item .epic-fans-news__video {
    width: 112px;
    max-width: 100%;
    margin: 0;
    border-radius: 9px;
}

.epic-dashboard-media__item .epic-fans-news__play-icon {
    width: 36px;
    height: 36px;
}

.epic-dashboard-media__item .epic-fans-news__play-icon svg {
    width: 19px;
    height: 19px;
}

.epic-dashboard-media__details {
    min-width: 0;
}

.epic-dashboard-media__title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.epic-dashboard-media__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin-top: 6px;
    color: #717171;
    font-size: 11px;
    line-height: 1.4;
}

.epic-dashboard-media__footer,
.epic-dashboard-media .epic-dashboard-widget__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

@media (max-width: 640px) {
    .epic-dashboard-media__item {
        grid-template-columns: 108px minmax(0, 1fr);
        gap: 12px;
    }

    .epic-dashboard-media__item .epic-fans-news__video {
        width: 108px;
    }
}


/* Dashboard media drawer — responsive video player. */
.epic-dashboard-media__drawer .epic-dashboard-media__player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 20px 0 18px;
    overflow: hidden;
    border-radius: 12px;
    background: #171717;
}

.epic-dashboard-media__drawer .epic-dashboard-media__player iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.epic-dashboard-media__drawer-footer {
    display: grid;
    gap: 8px;
}

.epic-dashboard-media__drawer-footer a {
    font-size: 15px;
    font-weight: 700;
}

.epic-dashboard-media__source {
    margin: 0;
    font-size: 14px;
    color: #717171;
}


/* Dashboard League Table — shared across football properties. */
.epic-dashboard-league-table__competition {
    margin: 8px 0 0;
    color: #717171;
    font-size: 13px;
}

.epic-dashboard-league-table__scroll {
    width: 100%;
    overflow-x: auto;
}

.epic-dashboard-league-table__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.epic-dashboard-league-table__table th,
.epic-dashboard-league-table__table td {
    padding: 7px 5px;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    text-align: center;
    white-space: nowrap;
}

.epic-dashboard-league-table__table thead th {
    padding-top: 0;
    color: #717171;
    font-size: 11px;
    font-weight: 600;
}

.epic-dashboard-league-table__table th:nth-child(2) {
    text-align: left;
}

.epic-dashboard-league-table__table tbody tr:last-child
th,
.epic-dashboard-league-table__table tbody tr:last-child
td {
    border-bottom: 0;
}

.epic-dashboard-league-table__table .is-primary {
    background: var(--property-accent-soft, #fff1f0);
    font-weight: 700;
}

.epic-dashboard-league-table__team {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.epic-dashboard-league-table__team img {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    object-fit: contain;
}

.epic-dashboard-league-table__team span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Dashboard Next Match Overview — shared football widget. */

.epic-dashboard-next-match__fixture {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px 14px;
    border: 1px solid rgba(0, 0, 0, .09);
    border-radius: 12px;
    background: #fafafa;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

.epic-dashboard-next-match__fixture:hover {
    background: var(--property-accent-soft, #fff1f0);
    border-color: rgba(0, 0, 0, .14);
}

.epic-dashboard-next-match__fixture:focus-visible {
    outline: 2px solid var(--property-accent, #b3262e);
    outline-offset: 3px;
}

.epic-dashboard-next-match__competition {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #717171;
    letter-spacing: .035em;
}

.epic-dashboard-next-match__teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
}

.epic-dashboard-next-match__team {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 0;
    text-align: center;
}

.epic-dashboard-next-match__team .epic-football-fixtures__badge {
    display: block;
    width: 52px;
    height: 52px;
    max-width: 100%;
    object-fit: contain;
}

.epic-dashboard-next-match__team .epic-football-fixtures__team-name {
    display: block;
    width: 100%;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
    color: #333;
    overflow-wrap: anywhere;
}

.epic-dashboard-next-match__versus {
    align-self: center;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
}

.epic-dashboard-next-match__kickoff {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, .08);
    font-size: 12px;
    color: #717171;
}

.epic-dashboard-next-match__kickoff strong {
    font-size: 15px;
    color: #333;
    font-variant-numeric: tabular-nums;
}

.epic-dashboard-next-match__comparison {
    min-width: 0;
}

.epic-dashboard-next-match .epic-dashboard-widget__footer {
    color: var(--property-accent, #b3262e);
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 640px) {
    .epic-dashboard-next-match__fixture {
        padding: 18px 12px;
    }

    .epic-dashboard-next-match__team .epic-football-fixtures__badge {
        width: 48px;
        height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .epic-dashboard-next-match__fixture {
        transition: none;
    }
}

/* Widget 4 compact comparison layout — Stage 129. */

.epic-dashboard-next-match .epic-dashboard-widget__header {
    margin-bottom: 16px;
}

.epic-home-dashboard .epic-dashboard-next-match__fixture.epic-football-fixtures__match {
    gap: 10px;
    padding: 12px;
    background: #fbf6f6;
    border-color: #eee2e2;
}

.epic-dashboard-next-match__competition {
    font-size: 11px;
}

.epic-dashboard-next-match__teams {
    grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr);
    gap: 4px;
}

.epic-dashboard-next-match__team {
    gap: 5px;
}

.epic-dashboard-next-match__team .epic-football-fixtures__badge {
    width: 32px;
    height: 32px;
}

.epic-dashboard-next-match__team .epic-football-fixtures__team-name {
    font-size: 12px;
    line-height: 1.25;
}

.epic-dashboard-next-match__versus {
    font-size: 12px;
}

.epic-dashboard-next-match__kickoff {
    padding-top: 9px;
    font-size: 11px;
}

.epic-dashboard-next-match__kickoff strong {
    font-size: 13px;
}

.epic-dashboard-next-match__comparison {
    margin-top: 14px;
}

.epic-dashboard-next-match__compare-section {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, .09);
}

.epic-dashboard-next-match__compare-section:first-child {
    padding-top: 0;
}

.epic-dashboard-next-match__compare-section:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.epic-dashboard-next-match__compare-title {
    margin: 0 0 9px;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 700;
    color: #333;
}

.epic-dashboard-next-match__compare-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.epic-dashboard-next-match__position {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-size: 12px;
    line-height: 1.4;
    color: #555;
}

.epic-dashboard-next-match__position:last-child {
    justify-content: flex-end;
    text-align: right;
}

.epic-dashboard-next-match__position strong {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 25px;
    min-height: 25px;
    padding: 2px 5px;
    border-radius: 6px;
    background: #448aff;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    box-sizing: border-box;
}

.epic-dashboard-next-match__position span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.epic-dashboard-next-match__form-pills {
    display: flex;
    align-items: center;
    gap: 3px;
    min-width: 0;
}

.epic-dashboard-next-match__form-pills:last-child {
    justify-content: flex-end;
}

.epic-dashboard-next-match__form-pill {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 19px;
    height: 21px;
    border-radius: 4px;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    box-sizing: border-box;
    text-indent: 1px;
    padding-top: 2px;
}

.epic-dashboard-next-match__form-pill.is-w {
    background: #36a966;
}

.epic-dashboard-next-match__form-pill.is-d {
    background: #e5a52d;
}

.epic-dashboard-next-match__form-pill.is-l {
    background: #dd5960;
}

.epic-dashboard-next-match__compare-note {
    margin: 7px 0 0;
    color: #777;
    font-size: 11px;
    line-height: 1.45;
}

.epic-dashboard-next-match__last-result {
    margin: 0;
    color: #444;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.epic-dashboard-next-match .epic-dashboard-widget__footer {
    padding-top: 15px;
    font-size: 13px;
}

@media (max-width: 640px) {
    .epic-dashboard-next-match__fixture {
        padding: 12px;
    }

    .epic-dashboard-next-match__team .epic-football-fixtures__badge {
        width: 32px;
        height: 32px;
    }
}

/* Widget 4 Compare teams text action — Stage 135. */
.epic-dashboard-next-match__open {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--property-accent, #b3262e);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
    appearance: none;
}

.epic-dashboard-next-match__open:hover {
    background: transparent;
    color: var(--property-accent, #b3262e);
    text-decoration: underline;
}

.epic-dashboard-next-match__open:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.epic-dashboard-next-match__open span {
    color: inherit;
}

/* Shared dashboard footer links — Stage 136. */
main .epic-home-dashboard .epic-dashboard-widget__footer a:not(.wp-block-button__link):not(.wp-element-button):not(.kb-button):not(.kb-section-link-overlay) {
    color: var(--property-accent, #b3262e);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
}

main .epic-home-dashboard .epic-dashboard-widget__footer a:not(.wp-block-button__link):not(.wp-element-button):not(.kb-button):not(.kb-section-link-overlay):hover {
    color: var(--property-accent, #b3262e);
    text-decoration: underline;
}

main .epic-home-dashboard .epic-dashboard-widget__footer a:not(.wp-block-button__link):not(.wp-element-button):not(.kb-button):not(.kb-section-link-overlay):focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

/* Dashboard Next Match Prediction — Stage 156. */

/* Align Widget 5's inner panel with Widget 4. */
.epic-dashboard-prediction .epic-dashboard-widget__header {
    margin-bottom: 16px;
}

.epic-dashboard-prediction__fixture {
    margin: 0 0 20px;
    color: #817777;
    font-size: 12px;
    line-height: 1.6;
}

.epic-dashboard-prediction__outcome {
    padding: 18px 16px;
    border: 1px solid #eee2e2;
    border-radius: 14px;
    background: #fbf6f6;
    text-align: center;
}

.epic-dashboard-prediction__outcome-label {
    margin-bottom: 9px;
    color: #95817a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
}

.epic-dashboard-prediction__outcome-result {
    display: block;
    color: #493d3d;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
}

.epic-dashboard-prediction__outcome-note {
    margin: 9px 0 0;
    color: #806e6e;
    font-size: 12px;
    line-height: 1.5;
}

.epic-dashboard-prediction__voting {
    margin-top: 22px;
}

.epic-dashboard-prediction__voting h3 {
    margin: 0 0 14px;
    color: #252525;
    font-family: Geist, Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.epic-dashboard-prediction__choices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.epic-home-dashboard .epic-dashboard-prediction__choices button {
    min-width: 0;
    min-height: 54px;
    padding: 9px 6px;
    border: 1px solid #e9e0e0;
    border-radius: 12px;
    background: #fff;
    color: #493d3d;
    font-family: Geist, Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.epic-home-dashboard .epic-dashboard-prediction__choices button:disabled {
    cursor: default;
    opacity: .65;
}

.epic-home-dashboard .epic-dashboard-prediction__choices button:not(:disabled):hover {
    border-color: var(--property-accent, #b3262e);
    background: #fff4f4;
}

.epic-home-dashboard .epic-dashboard-prediction__choices button:focus-visible {
    outline: 2px solid var(--property-accent, #b3262e);
    outline-offset: 3px;
}

.epic-dashboard-prediction__status {
    margin: 12px 0 0;
    color: #817777;
    font-size: 12px;
    line-height: 1.5;
}

.epic-home-dashboard .epic-dashboard-prediction__open {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--property-accent, #b3262e);
    font-family: Geist, Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
}

.epic-home-dashboard .epic-dashboard-prediction__open:hover {
    text-decoration: underline;
}

.epic-home-dashboard .epic-dashboard-prediction__open:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

@media (max-width: 640px) {
    .epic-dashboard-prediction__outcome {
        padding: 16px 12px;
    }

    .epic-dashboard-prediction__choices {
        gap: 6px;
    }
}

/* Dashboard prediction badge layout — Stage 157C. */

/* The matchup is now displayed inside the prediction panel. */
.epic-dashboard-prediction__fixture {
    display: none;
}

.epic-dashboard-prediction__matchup {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    margin: 0 0 15px;
}

.epic-dashboard-prediction__matchup-team {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
}

.epic-dashboard-prediction__matchup-badge {
    display: block;
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    object-fit: contain;
}

.epic-dashboard-prediction__matchup-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
    color: #65534e;
}

.epic-dashboard-prediction__versus {
    font-size: 12px;
    font-weight: 700;
    color: #95817a;
}

.epic-dashboard-prediction__result-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.epic-dashboard-prediction__result-badge {
    display: block;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    object-fit: contain;
}

.epic-home-dashboard .epic-dashboard-prediction__choices button {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
}

.epic-dashboard-prediction__choice-badge {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.epic-home-dashboard .epic-dashboard-prediction__choices button.is-draw {
    font-size: 14px;
    font-weight: 700;
}

/* Dashboard voting final results — Stage 161. */

/* Match drawer-style horizontal badge / percentage layout. */
.epic-home-dashboard .epic-dashboard-prediction__choices button {
    flex-direction: row;
    gap: 6px;
}

/* Disabled means voting is locked, not visually faded. */
.epic-home-dashboard .epic-dashboard-prediction__choices button:disabled {
    opacity: 1;
    cursor: default;
}

.epic-home-dashboard .epic-dashboard-prediction__percentage {
    color: var(--property-accent, #b3262e);
    font-size: 12px;
    font-weight: 700;
}

/* Clearly identify the visitor's recorded choice. */
.epic-home-dashboard .epic-dashboard-prediction__choices button.is-selected,
.epic-home-dashboard .epic-dashboard-prediction__choices button.is-selected:disabled {
    opacity: 1;
    border-color: var(--property-accent, #b3262e);
    background: var(--property-accent-soft, #fff1f0);
}

/* Keep the compact voting summary on one line. */
.epic-dashboard-prediction__status {
    white-space: nowrap;
    font-size: 11px;
}

@media (max-width: 640px) {
    .epic-home-dashboard .epic-dashboard-prediction__choices button {
        gap: 4px;
        padding-left: 4px;
        padding-right: 4px;
    }

    .epic-dashboard-prediction__status {
        font-size: 10px;
        overflow-x: auto;
    }
}

/* Widget 5 interactive prediction card — Stage 163B. */

.epic-home-dashboard .epic-dashboard-prediction__outcome[role="button"] {
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.epic-home-dashboard .epic-dashboard-prediction__outcome[role="button"]:hover {
    background-color: var(--property-accent-soft, #fff1f0);
    border-color: rgba(0, 0, 0, .14);
}

.epic-home-dashboard .epic-dashboard-prediction__outcome[role="button"]:focus-visible {
    outline: 2px solid var(--property-accent, #b3262e);
    outline-offset: 3px;
}

.epic-dashboard-prediction__metrics-count {
    font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
    .epic-home-dashboard .epic-dashboard-prediction__outcome[role="button"] {
        transition: none;
    }
}

/* Dashboard Results & Fixtures — Stage 171. */

.epic-dashboard-results-fixtures .epic-dashboard-widget__header {
    margin-bottom: 16px;
}

.epic-dashboard-results-fixtures__group + .epic-dashboard-results-fixtures__group {
    margin-top: 22px;
}

.epic-dashboard-results-fixtures__heading {
    margin: 0 0 10px;
    font-family: Geist, Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    color: #252525;
}

.epic-dashboard-results-fixtures__rows {
    display: grid;
    gap: 5px;
}

.epic-home-dashboard .epic-dashboard-results-fixtures__row.epic-football-fixtures__match {
    display: grid;
    grid-template-columns: 43px minmax(0, 1fr) 47px minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin: 0;
    padding: 9px 7px;
    border: 1px solid #eee7e2;
    border-radius: 9px;
    background: #fff;
    box-shadow: none;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.epic-home-dashboard .epic-dashboard-results-fixtures__row.epic-football-fixtures__match:hover {
    background: #fafafa;
    border-color: rgba(0, 0, 0, .14);
}

.epic-home-dashboard .epic-dashboard-results-fixtures__row.epic-football-fixtures__match:focus-visible {
    outline: 2px solid var(--property-accent, #b3262e);
    outline-offset: 2px;
}

.epic-dashboard-results-fixtures__date {
    color: #817777;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
}

.epic-dashboard-results-fixtures__team {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 5px;
}

.epic-dashboard-results-fixtures__team .epic-football-fixtures__badge {
    display: block;
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    object-fit: contain;
    margin: 0;
}

.epic-dashboard-results-fixtures__team .epic-football-fixtures__team-name {
    display: block;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-family: Geist, Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    color: #493d3d;
}

.epic-home-dashboard .epic-dashboard-results-fixtures__row
.epic-football-fixtures__score,
.epic-home-dashboard .epic-dashboard-results-fixtures__row
.epic-football-fixtures__kickoff-time {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: center;
    font-family: Geist, Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #252525;
    white-space: nowrap;
    line-height: 1.3;
}

.epic-dashboard-results-fixtures__empty {
    margin: 0;
    color: #817777;
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .epic-home-dashboard .epic-dashboard-results-fixtures__row.epic-football-fixtures__match {
        grid-template-columns: 43px minmax(0, 1fr) 47px minmax(0, 1fr);
        gap: 5px;
        padding: 9px 5px;
    }

    .epic-dashboard-results-fixtures__team .epic-football-fixtures__badge {
        width: 18px;
        height: 18px;
        flex-basis: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .epic-home-dashboard .epic-dashboard-results-fixtures__row.epic-football-fixtures__match {
        transition: none;
    }
}

/* Dashboard Results & Fixtures — Stage 172 table-style refinement. */

.epic-dashboard-results-fixtures__rows {
    gap: 0;
}

.epic-home-dashboard .epic-dashboard-results-fixtures__row.epic-football-fixtures__match {
    padding: 12px 5px;
    border: 0;
    border-bottom: 1px solid #e7e7e7;
    border-radius: 0;
    background: transparent;
    gap: 7px;
}

.epic-home-dashboard .epic-dashboard-results-fixtures__row.epic-football-fixtures__match:last-child {
    border-bottom: 0;
}

.epic-home-dashboard .epic-dashboard-results-fixtures__row.epic-football-fixtures__match:hover {
    background: #f5f5f5;
    border-color: #e7e7e7;
}

.epic-dashboard-results-fixtures__date {
    font-size: 11px;
}

.epic-dashboard-results-fixtures__team .epic-football-fixtures__team-name {
    font-size: 13px;
    font-weight: 600;
}

.epic-dashboard-results-fixtures__team .epic-football-fixtures__badge {
    width: 21px;
    height: 21px;
    flex-basis: 21px;
}

.epic-home-dashboard .epic-dashboard-results-fixtures__row
.epic-football-fixtures__score,
.epic-home-dashboard .epic-dashboard-results-fixtures__row
.epic-football-fixtures__kickoff-time {
    font-size: 13px;
}

@media (max-width: 640px) {
    .epic-home-dashboard .epic-dashboard-results-fixtures__row.epic-football-fixtures__match {
        grid-template-columns: 43px minmax(0, 1fr) 47px minmax(0, 1fr);
        gap: 5px;
        padding: 11px 4px;
    }

    .epic-dashboard-results-fixtures__team .epic-football-fixtures__badge {
        width: 19px;
        height: 19px;
        flex-basis: 19px;
    }
}

/* Dashboard Results & Fixtures — Stage 173B date refinement. */
.epic-dashboard-results-fixtures__date {
    font-size: 12px;
}

/* Dashboard Results & Fixtures — Stage 174C footer link. */
.epic-dashboard-results-fixtures .epic-dashboard-widget__footer {
    color: var(--property-accent, #b3262e);
}

.epic-dashboard-results-fixtures__all-link {
    color: var(--property-accent, #b3262e);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.epic-dashboard-results-fixtures__all-link:hover {
    color: var(--property-accent, #b3262e);
    text-decoration: underline;
}

.epic-dashboard-results-fixtures__all-link:focus-visible {
    outline: 2px solid var(--property-accent, #b3262e);
    outline-offset: 3px;
}

/* Dashboard Results & Fixtures — Stage 175 balanced compact rows. */

.epic-home-dashboard .epic-dashboard-results-fixtures__row.epic-football-fixtures__match {
    grid-template-columns: 43px minmax(0, 1fr) 47px minmax(0, 1fr);
    padding-top: 8px;
    padding-bottom: 8px;
}

.epic-dashboard-results-fixtures__team:last-child {
    justify-content: flex-end;
}

.epic-dashboard-results-fixtures__team:last-child .epic-football-fixtures__team-name {
    text-align: right;
}

@media (max-width: 640px) {
    .epic-home-dashboard .epic-dashboard-results-fixtures__row.epic-football-fixtures__match {
        padding-top: 8px;
        padding-bottom: 8px;
    }
}

/* Dashboard Next Match — Stage 176B compact fixture card. */

.epic-home-dashboard .epic-dashboard-next-match__fixture {
    gap: 10px;
    padding: 14px 12px;
}

.epic-home-dashboard .epic-dashboard-next-match__teams {
    grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr);
    gap: 6px;
}

.epic-home-dashboard .epic-dashboard-next-match__team {
    gap: 5px;
}

.epic-home-dashboard .epic-dashboard-next-match__team
.epic-football-fixtures__badge {
    width: 42px;
    height: 42px;
}

.epic-home-dashboard .epic-dashboard-next-match__centre {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    text-align: center;
    white-space: nowrap;
}

.epic-home-dashboard .epic-dashboard-next-match__date {
    font-size: 12px;
    line-height: 1.3;
    color: #717171;
}

.epic-home-dashboard .epic-dashboard-next-match__centre
.epic-football-fixtures__kickoff-time {
    display: block;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: #333;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
    .epic-home-dashboard .epic-dashboard-next-match__teams {
        grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr);
    }

    .epic-home-dashboard .epic-dashboard-next-match__date {
        font-size: 11px;
    }
}

/* Dashboard Next Match — Stage 176C team vertical centering. */
.epic-home-dashboard .epic-dashboard-next-match__team {
    transform: translateY(-4px);
}

/* Dashboard match panels — Stage 178E shared hover styling. */
.epic-home-dashboard .epic-dashboard-next-match__fixture.epic-football-fixtures__match:hover,
.epic-home-dashboard .epic-dashboard-prediction__outcome[role="button"]:hover {
    background: #f9eeee;
    border-color: #dca0a5;
}

/* Dashboard Widgets 5 and 6 — Stage 181 spacing refinements. */

/* More breathing room below the prediction panel. */
.epic-home-dashboard .epic-dashboard-prediction__outcome {
    margin-bottom: 8px;
}

/* More space between recent results and upcoming fixtures. */
.epic-home-dashboard .epic-dashboard-results-fixtures__group + .epic-dashboard-results-fixtures__group {
    margin-top: 32px;
}


/* Homepage dashboard: editorial featured news story. */

/* A distinct, understated lead story within the existing card. */
.epic-home-dashboard
.epic-dashboard-latest-news__items {
    gap: 13px;
}

.epic-home-dashboard
.epic-dashboard-latest-news__item.is-featured {
    padding: 14px 15px;
    border: 1px solid #eadbd8;
    border-radius: 12px;
    background: #faf4f2;
}

.epic-home-dashboard
.epic-dashboard-latest-news__feature-label {
    display: block;
    margin: 0 0 8px;
    color: var(--property-accent, #b5121b);
    font-family: Geist, Arial, sans-serif;
    font-size: 10px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.epic-home-dashboard
.epic-dashboard-latest-news__item.is-featured
.epic-dashboard-latest-news__link {
    color: #403630;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
    text-decoration: none;
}

.epic-home-dashboard
.epic-dashboard-latest-news__item.is-featured
.epic-dashboard-latest-news__link:hover {
    color: var(--property-accent, #b5121b);
    text-decoration: underline;
}

.epic-home-dashboard
.epic-dashboard-latest-news__summary {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 8px 0 0;
    color: #756963;
    font-family: Geist, Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
}

/* Two compact secondary stories. */
.epic-home-dashboard
.epic-dashboard-latest-news__item:not(.is-featured) {
    padding-bottom: 12px;
}

.epic-home-dashboard
.epic-dashboard-latest-news__item:not(.is-featured)
.epic-dashboard-latest-news__link {
    font-size: 14px;
    line-height: 1.4;
}

.epic-home-dashboard
.epic-dashboard-latest-news__item:not(.is-featured)
.epic-dashboard-latest-news__meta {
    margin-top: 5px;
}

.epic-home-dashboard
.epic-dashboard-latest-news__item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}


/* Dashboard Latest News: clickable featured panel and headline hover. */

/* Match the Next Match Overview hover interaction. */
.epic-home-dashboard
.epic-dashboard-latest-news__item.is-featured {
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.epic-home-dashboard
.epic-dashboard-latest-news__item.is-featured:hover,
.epic-home-dashboard
.epic-dashboard-latest-news__item.is-featured:focus-within {
    background: #f9eeee;
    border-color: #dca0a5;
}

/* All three article links turn to the property accent on hover. */
main .epic-home-dashboard
.epic-dashboard-latest-news
a.epic-dashboard-latest-news__link:hover,
main .epic-home-dashboard
.epic-dashboard-latest-news
a.epic-dashboard-latest-news__link:focus-visible {
    color: var(--property-accent, #b3262e);
    text-decoration: underline;
}

/* Preserve accessible focus indication. */
main .epic-home-dashboard
.epic-dashboard-latest-news
a.epic-dashboard-latest-news__link:focus-visible {
    outline: 2px solid var(--property-accent, #b3262e);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .epic-home-dashboard
    .epic-dashboard-latest-news__item.is-featured {
        transition: none;
    }
}


/* Latest News: property-colour headline hover specificity fix. */
main .epic-home-dashboard
.epic-dashboard-latest-news
a.epic-dashboard-latest-news__link:not(.wp-block-button__link):not(.wp-element-button):not(.kb-button):not(.kb-section-link-overlay):hover,
main .epic-home-dashboard
.epic-dashboard-latest-news
a.epic-dashboard-latest-news__link:not(.wp-block-button__link):not(.wp-element-button):not(.kb-button):not(.kb-section-link-overlay):focus-visible {
    color: var(--property-accent, #b3262e);
    text-decoration: underline;
}


/* Results & Fixtures: upcoming opponent-only rows. */
.epic-home-dashboard
.epic-dashboard-results-fixtures__row.epic-dashboard-results-fixtures__upcoming-only {
    grid-template-columns: 52px minmax(0, 1fr) 55px 34px;
    gap: 10px;
    align-items: center;
}

.epic-dashboard-results-fixtures__upcoming-only
.epic-dashboard-results-fixtures__opponent {
    justify-content: flex-start;
    min-width: 0;
}

.epic-dashboard-results-fixtures__upcoming-only
.epic-dashboard-results-fixtures__opponent
.epic-football-fixtures__team-name {
    text-align: left;
}

.epic-dashboard-results-fixtures__upcoming-only
.epic-football-fixtures__kickoff-time {
    text-align: right;
    white-space: nowrap;
}

.epic-dashboard-results-fixtures__upcoming-only
.epic-football-fixtures__outcome {
    justify-self: center;
    align-self: center;
}

@media (max-width: 640px) {
    .epic-home-dashboard
    .epic-dashboard-results-fixtures__row.epic-dashboard-results-fixtures__upcoming-only {
        grid-template-columns: 45px minmax(0, 1fr) 48px 32px;
        gap: 6px;
    }
}


/* Dashboard Results & Fixtures — compact coloured H/A circles. */

/* Smaller circles, homepage upcoming fixtures only. */
.epic-home-dashboard
.epic-dashboard-results-fixtures__upcoming-only
.epic-football-fixtures__outcome {
    width: 24px;
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    box-sizing: border-box;
}

/* Home: light green. */
.epic-home-dashboard
.epic-dashboard-results-fixtures__upcoming-only
.epic-football-fixtures__outcome[aria-label="Home"] {
    background: #e5f4e5;
    border: 1px solid #b9dcb9;
}

/* Away: light red. */
.epic-home-dashboard
.epic-dashboard-results-fixtures__upcoming-only
.epic-football-fixtures__outcome[aria-label="Away"] {
    background: #fae7e7;
    border: 1px solid #e9c1c1;
}

/* Centre the H/A letters precisely. */
.epic-home-dashboard
.epic-dashboard-results-fixtures__upcoming-only
.epic-football-fixtures__outcome-svg {
    display: block;
    width: 20px;
    height: 20px;
    overflow: visible;
}

.epic-home-dashboard
.epic-dashboard-results-fixtures__upcoming-only
.epic-football-fixtures__outcome-svg text {
    font-size: 13px;
    font-weight: 700;
    dominant-baseline: central;
    transform: none;
}


/* Dashboard Results & Fixtures — H/A text centring refinement. */
.epic-home-dashboard
.epic-dashboard-results-fixtures__upcoming-only
.epic-football-fixtures__outcome-svg text {
    font-weight: 700;
    transform: translate(-0.8px, 0.8px);
}


/* Dashboard Results & Fixtures — visible bold H/A letters. */
.epic-home-dashboard
.epic-dashboard-results-fixtures__upcoming-only
.epic-football-fixtures__outcome-svg text {
    font-weight: 800;
    stroke: currentColor;
    stroke-width: 0.2px;
    stroke-linejoin: round;
    paint-order: stroke fill;
}
