.tfm-public-card {
    --tfm-primary: #7a0019;
    --tfm-accent: #f5c242;
    position: relative;
    width: 100%;
    max-width: 1180px;
    margin: 24px auto;
    padding: clamp(24px, 4vw, 54px);
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 85% 0%, rgba(255,255,255,.16), transparent 34%),
        linear-gradient(135deg, var(--tfm-primary), #32000c);
    border-radius: 24px;
    box-shadow: 0 22px 55px rgba(19, 5, 9, .24);
    font-family: inherit;
    box-sizing: border-box;
}

.tfm-public-card *,
.tfm-public-card *::before,
.tfm-public-card *::after {
    box-sizing: border-box;
}

.tfm-public-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    background: linear-gradient(90deg, var(--tfm-accent), #fff2a7, var(--tfm-accent));
}

.tfm-public-card::after {
    content: "🏈";
    position: absolute;
    right: -25px;
    bottom: -55px;
    font-size: clamp(150px, 23vw, 310px);
    line-height: 1;
    opacity: .055;
    transform: rotate(-18deg);
    pointer-events: none;
}

.tfm-public-card[hidden],
.tfm-public-card [hidden] {
    display: none !important;
}

.tfm-public-topline {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: clamp(24px, 4vw, 42px);
}

.tfm-public-eyebrow {
    margin: 0;
    color: rgba(255,255,255,.84);
    font-size: clamp(12px, 1.4vw, 15px);
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.tfm-public-homeaway {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: 9px 15px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .09em;
}

.tfm-public-home {
    color: var(--tfm-primary);
    background: #fff;
}

.tfm-public-away {
    color: #3e2b00;
    background: var(--tfm-accent);
}

.tfm-public-matchup {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(15px, 3vw, 35px);
}

.tfm-public-team:first-child {
    text-align: right;
}

.tfm-public-opponent {
    text-align: left;
}

.tfm-public-team span {
    display: block;
    margin-bottom: 7px;
    color: rgba(255,255,255,.66);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.tfm-public-team strong {
    display: block;
    color: #fff;
    font-size: clamp(27px, 4.4vw, 58px);
    line-height: 1;
    text-wrap: balance;
}

.tfm-public-vs {
    display: grid;
    place-items: center;
    width: clamp(54px, 7vw, 76px);
    height: clamp(54px, 7vw, 76px);
    color: #3e2b00;
    background: var(--tfm-accent);
    border: 5px solid rgba(255,255,255,.18);
    border-radius: 50%;
    font-size: clamp(15px, 2vw, 21px);
    font-weight: 950;
}

.tfm-public-meta {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px 0;
    margin: clamp(24px, 4vw, 42px) 0;
    color: rgba(255,255,255,.88);
    font-size: clamp(14px, 1.8vw, 18px);
    font-weight: 700;
}

.tfm-public-meta span {
    padding: 0 15px;
}

.tfm-public-meta span + span {
    border-left: 1px solid rgba(255,255,255,.34);
}

.tfm-public-countdown {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 150px));
    justify-content: center;
    gap: clamp(9px, 1.6vw, 18px);
}

.tfm-public-countdown > div {
    padding: clamp(16px, 3vw, 28px) 10px;
    text-align: center;
    background: rgba(7, 10, 18, .76);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 16px;
    backdrop-filter: blur(6px);
}

.tfm-public-countdown strong {
    display: block;
    color: #fff;
    font-size: clamp(31px, 5vw, 60px);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.tfm-public-countdown span {
    display: block;
    margin-top: 9px;
    color: var(--tfm-accent);
    font-size: clamp(10px, 1.3vw, 13px);
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.tfm-public-live {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    max-width: 620px;
    margin: 0 auto;
    padding: 24px;
    text-align: left;
    background: #a70e1b;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(0,0,0,.2);
}

.tfm-public-live-dot {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 8px rgba(255,255,255,.16);
    animation: tfm-live-pulse 1.6s infinite;
}

.tfm-public-live strong,
.tfm-public-live span {
    display: block;
}

.tfm-public-live strong {
    font-size: clamp(21px, 3vw, 32px);
    letter-spacing: .06em;
}

.tfm-public-live span {
    margin-top: 4px;
    color: rgba(255,255,255,.8);
}

.tfm-public-actions {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.tfm-public-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 20px;
    color: #3e2b00 !important;
    background: var(--tfm-accent);
    border-radius: 999px;
    text-decoration: none !important;
    font-weight: 900;
    transition: transform .18s ease, filter .18s ease;
}

.tfm-public-actions a:hover,
.tfm-public-actions a:focus {
    filter: brightness(1.08);
    transform: translateY(-2px);
}

.tfm-season-complete {
    min-height: 320px;
    display: grid;
    place-items: center;
    text-align: center;
}

.tfm-public-inner {
    position: relative;
    z-index: 1;
}

.tfm-public-football {
    display: block;
    margin-bottom: 12px;
    font-size: 54px;
}

.tfm-season-complete h2 {
    margin: 9px 0;
    color: #fff;
    font-size: clamp(34px, 5vw, 58px);
}

.tfm-season-complete p:last-child {
    color: rgba(255,255,255,.82);
    font-size: 18px;
}

.tfm-public-noscript {
    position: relative;
    z-index: 1;
    margin: 20px 0 0;
    text-align: center;
    color: rgba(255,255,255,.72);
}

@keyframes tfm-live-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(.82); opacity: .65; }
}

@media (max-width: 700px) {
    .tfm-public-card {
        border-radius: 18px;
    }

    .tfm-public-matchup {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .tfm-public-team:first-child,
    .tfm-public-opponent {
        text-align: center;
    }

    .tfm-public-vs {
        margin: 0 auto;
    }

    .tfm-public-meta {
        flex-direction: column;
    }

    .tfm-public-meta span + span {
        border-left: 0;
    }
}

@media (max-width: 480px) {
    .tfm-public-topline {
        align-items: flex-start;
        flex-direction: column;
    }

    .tfm-public-countdown {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tfm-public-countdown strong {
        font-size: 40px;
    }
}


.tfm-public-week {
    position: relative;
    z-index: 1;
    width: fit-content;
    margin: -18px auto 24px;
    padding: 7px 14px;
    color: #3e2b00;
    background: var(--tfm-accent);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}


/* Version 1.5.1 state visibility and Game Day treatment */
.tfm-public-card [hidden] {
    display: none !important;
}

.tfm-state-gameday {
    box-shadow: 0 22px 60px rgba(122, 0, 25, .38);
}

.tfm-state-gameday .tfm-public-eyebrow {
    color: var(--tfm-accent);
}


.tfm-public-calendar-actions {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.18);
}

.tfm-public-calendar-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 16px;
    color: #fff !important;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 800;
    transition: background .18s ease, transform .18s ease;
}

.tfm-public-calendar-actions a:hover,
.tfm-public-calendar-actions a:focus {
    background: rgba(255,255,255,.22);
    transform: translateY(-2px);
}

@media (max-width: 520px) {
    .tfm-public-calendar-actions {
        flex-direction: column;
    }

    .tfm-public-calendar-actions a {
        width: 100%;
    }
}

/* Version 1.8.0 natural-flow appearance engine */
.tfm-countdown-scale-shell {
    --tfm-shell-justify: center;
    --tfm-card-max-width: 1180px;
    --tfm-spacing-factor: 1;
    display: flex;
    justify-content: var(--tfm-shell-justify);
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 auto;
    overflow: visible;
}

.tfm-countdown-scale-shell.tfm-align-left {
    --tfm-shell-justify: flex-start;
}

.tfm-countdown-scale-shell.tfm-align-center {
    --tfm-shell-justify: center;
}

.tfm-countdown-scale-shell.tfm-align-right {
    --tfm-shell-justify: flex-end;
}

.tfm-countdown-scale-shell.tfm-width-auto {
    --tfm-card-max-width: 1180px;
}

.tfm-countdown-scale-shell.tfm-width-content {
    --tfm-card-max-width: 920px;
}

.tfm-countdown-scale-shell.tfm-width-full {
    --tfm-card-max-width: none;
}

.tfm-countdown-scale-shell.tfm-spacing-compact {
    --tfm-spacing-factor: .78;
}

.tfm-countdown-scale-shell.tfm-spacing-normal {
    --tfm-spacing-factor: 1;
}

.tfm-countdown-scale-shell.tfm-spacing-spacious {
    --tfm-spacing-factor: 1.18;
}

.tfm-countdown-scale-shell > .tfm-public-card {
    --tfm-content-scale: 1;
    width: 100%;
    max-width: var(--tfm-card-max-width);
    height: auto;
    min-height: 0;
    margin: 24px 0;
    padding: clamp(
        calc(22px * var(--tfm-spacing-factor)),
        calc(3.5vw * var(--tfm-spacing-factor)),
        calc(50px * var(--tfm-spacing-factor))
    );
    transform: none !important;
    transform-origin: initial !important;
    overflow: hidden;
}

/* Natural content sizing: changes document flow instead of applying a transform. */
.tfm-countdown-scale-shell .tfm-public-eyebrow {
    font-size: clamp(
        calc(11px * var(--tfm-content-scale)),
        calc(1.3vw * var(--tfm-content-scale)),
        calc(15px * var(--tfm-content-scale))
    );
}

.tfm-countdown-scale-shell .tfm-public-team strong {
    font-size: clamp(
        calc(25px * var(--tfm-content-scale)),
        calc(4vw * var(--tfm-content-scale)),
        calc(56px * var(--tfm-content-scale))
    );
}

.tfm-countdown-scale-shell .tfm-public-vs {
    width: clamp(
        calc(50px * var(--tfm-content-scale)),
        calc(6.5vw * var(--tfm-content-scale)),
        calc(74px * var(--tfm-content-scale))
    );
    height: clamp(
        calc(50px * var(--tfm-content-scale)),
        calc(6.5vw * var(--tfm-content-scale)),
        calc(74px * var(--tfm-content-scale))
    );
    font-size: clamp(
        calc(14px * var(--tfm-content-scale)),
        calc(1.8vw * var(--tfm-content-scale)),
        calc(20px * var(--tfm-content-scale))
    );
}

.tfm-countdown-scale-shell .tfm-public-meta {
    margin: clamp(
        calc(20px * var(--tfm-spacing-factor)),
        calc(3.5vw * var(--tfm-spacing-factor)),
        calc(38px * var(--tfm-spacing-factor))
    ) 0;
    font-size: clamp(
        calc(13px * var(--tfm-content-scale)),
        calc(1.6vw * var(--tfm-content-scale)),
        calc(18px * var(--tfm-content-scale))
    );
}

.tfm-countdown-scale-shell .tfm-public-countdown {
    grid-template-columns: repeat(
        4,
        minmax(
            calc(92px * var(--tfm-content-scale)),
            calc(150px * var(--tfm-content-scale))
        )
    );
    gap: clamp(
        calc(8px * var(--tfm-spacing-factor)),
        calc(1.5vw * var(--tfm-spacing-factor)),
        calc(18px * var(--tfm-spacing-factor))
    );
}

.tfm-countdown-scale-shell .tfm-public-countdown > div {
    padding: clamp(
        calc(14px * var(--tfm-spacing-factor)),
        calc(2.5vw * var(--tfm-spacing-factor)),
        calc(26px * var(--tfm-spacing-factor))
    ) 9px;
}

.tfm-countdown-scale-shell .tfm-public-countdown strong {
    font-size: clamp(
        calc(29px * var(--tfm-content-scale)),
        calc(4.6vw * var(--tfm-content-scale)),
        calc(58px * var(--tfm-content-scale))
    );
}

.tfm-countdown-scale-shell .tfm-public-countdown span {
    font-size: clamp(
        calc(9px * var(--tfm-content-scale)),
        calc(1.15vw * var(--tfm-content-scale)),
        calc(13px * var(--tfm-content-scale))
    );
}

.tfm-countdown-scale-shell .tfm-public-calendar-actions {
    margin-top: calc(22px * var(--tfm-spacing-factor));
    padding-top: calc(20px * var(--tfm-spacing-factor));
}

.tfm-countdown-scale-shell .tfm-public-calendar-actions a {
    min-height: calc(40px * var(--tfm-content-scale));
    padding:
        calc(8px * var(--tfm-content-scale))
        calc(14px * var(--tfm-content-scale));
    font-size: calc(12px * var(--tfm-content-scale));
}

.tfm-countdown-scale-shell .tfm-public-live {
    max-width: calc(620px * var(--tfm-content-scale));
    padding: calc(22px * var(--tfm-spacing-factor));
}

@media (max-width: 720px) {
    .tfm-countdown-scale-shell .tfm-public-matchup {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .tfm-countdown-scale-shell .tfm-public-team:first-child,
    .tfm-countdown-scale-shell .tfm-public-opponent {
        text-align: center;
    }

    .tfm-countdown-scale-shell .tfm-public-vs {
        margin: 0 auto;
    }

    .tfm-countdown-scale-shell .tfm-public-countdown {
        grid-template-columns: repeat(2, minmax(100px, 1fr));
    }
}

@media (max-width: 430px) {
    .tfm-countdown-scale-shell > .tfm-public-card {
        padding: 20px 16px;
        border-radius: 18px;
    }

    .tfm-countdown-scale-shell .tfm-public-countdown {
        gap: 8px;
    }

    .tfm-countdown-scale-shell .tfm-public-calendar-actions {
        flex-direction: column;
    }

    .tfm-countdown-scale-shell .tfm-public-calendar-actions a {
        width: 100%;
    }
}


/* Public schedule shortcodes - v1.9.0 */
.tfm-schedule {
    --tfm-primary: #7a0019;
    --tfm-accent: #f5c242;
    width: 100%;
    max-width: 1380px;
    margin: 28px auto;
    font-family: inherit;
    box-sizing: border-box;
}
.tfm-schedule *, .tfm-schedule *::before, .tfm-schedule *::after { box-sizing: border-box; }
.tfm-schedule-heading { margin-bottom: 20px; }
.tfm-schedule-heading p { margin: 0 0 4px; color: var(--tfm-primary); font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.tfm-schedule-heading h2 { margin: 0; font-size: clamp(26px, 3vw, 42px); line-height: 1.1; }
.tfm-schedule-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 18px; }
.tfm-game-card { display: grid; grid-template-columns: 92px 1fr; min-height: 210px; overflow: hidden; background: #fff; border: 1px solid rgba(0,0,0,.1); border-radius: 18px; box-shadow: 0 12px 28px rgba(0,0,0,.1); }
.tfm-game-card-date { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px 10px; color: #fff; background: linear-gradient(160deg, var(--tfm-primary), #32000c); text-transform: uppercase; }
.tfm-game-card-date span { font-size: 14px; font-weight: 900; letter-spacing: .12em; }
.tfm-game-card-date strong { font-size: 46px; line-height: 1; }
.tfm-game-card-main { padding: 20px; }
.tfm-game-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #666; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.tfm-schedule-badge { display: inline-flex; align-items: center; justify-content: center; padding: 6px 10px; color: #1d1d1d; background: var(--tfm-accent); border-radius: 999px; font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.tfm-game-card h3 { margin: 16px 0 3px; color: #161616; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.1; }
.tfm-game-week { margin: 0 0 12px; color: #777; font-size: 13px; font-weight: 700; }
.tfm-game-details { display: grid; gap: 4px; color: #4a4a4a; font-size: 14px; }
.tfm-game-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.tfm-game-links a { padding: 8px 13px; color: #fff; background: var(--tfm-primary); border-radius: 8px; font-size: 13px; font-weight: 800; text-decoration: none; }
.tfm-schedule-empty { padding: 22px; background: rgba(0,0,0,.045); border: 1px dashed rgba(0,0,0,.2); border-radius: 12px; text-align: center; }
.tfm-schedule-table-wrap { overflow-x: auto; border: 1px solid rgba(0,0,0,.1); border-radius: 16px; box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.tfm-schedule-table { width: 100%; margin: 0; border-collapse: collapse; background: #fff; }
.tfm-schedule-table th { padding: 15px 14px; color: #fff; background: var(--tfm-primary); font-size: 12px; letter-spacing: .05em; text-align: left; text-transform: uppercase; }
.tfm-schedule-table td { padding: 15px 14px; color: #262626; border-bottom: 1px solid rgba(0,0,0,.08); vertical-align: middle; }
.tfm-schedule-table tr:last-child td { border-bottom: 0; }
.tfm-schedule-table td small { display: block; margin-top: 3px; color: #777; }
.tfm-schedule-compact .tfm-schedule-table th, .tfm-schedule-compact .tfm-schedule-table td { padding: 9px 11px; font-size: 13px; }
.tfm-schedule-status-canceled, .tfm-schedule-status-postponed { opacity: .72; }
.tfm-next-game .tfm-schedule-grid { grid-template-columns: minmax(0, 720px); }
@media (max-width: 680px) {
    .tfm-game-card { grid-template-columns: 72px 1fr; }
    .tfm-game-card-date strong { font-size: 36px; }
    .tfm-schedule-table thead { display: none; }
    .tfm-schedule-table, .tfm-schedule-table tbody, .tfm-schedule-table tr, .tfm-schedule-table td { display: block; width: 100%; }
    .tfm-schedule-table tr { padding: 12px 14px; border-bottom: 1px solid rgba(0,0,0,.1); }
    .tfm-schedule-table td { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 6px 0; border: 0; }
    .tfm-schedule-table td::before { content: attr(data-label); color: #777; font-size: 11px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
}
