/* =========================================================
   首页 front-page.php
========================================================= */
.tf-home-page,
.tf-home-page * {
    box-sizing: border-box;
}

.tf-home-page {
    background: var(--tf-bg);
    color: var(--tf-text);
    overflow: hidden;
}

.tf-home-page a {
    color: inherit;
    text-decoration: none;
}

.tf-hero {
    position: relative;
    overflow: hidden;
    padding: 28px 0 44px;
    background:
        radial-gradient(circle at 16% 16%, rgba(34, 197, 94, .18), transparent 28%),
        radial-gradient(circle at 84% 6%, rgba(248, 201, 90, .16), transparent 26%),
        linear-gradient(180deg, #06110c 0%, #07180f 55%, #06110c 100%);
}

.tf-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .075;
    background-image:
        linear-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .12) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, #000, rgba(0, 0, 0, .55), transparent);
}

.tf-hero__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 26px;
    align-items: center;
}

.tf-hero h1 {
    max-width: 760px;
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(27px, 3.2vw, 40px);
    line-height: 1.12;
    letter-spacing: -.045em;
    font-weight: 950;
}

.tf-hero h1 mark {
    color: transparent;
    background: linear-gradient(135deg, var(--tf-gold), #fff2ba, var(--tf-green));
    -webkit-background-clip: text;
    background-clip: text;
}

.tf-hero__content > p {
    max-width: 660px;
    margin: 0;
    color: #d4e2d9;
    font-size: 15px;
    line-height: 1.66;
}

.tf-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 18px;
}

.tf-button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 900;
    transition: transform .2s ease, box-shadow .2s ease;
}

.tf-button:hover {
    transform: translateY(-2px);
}

.tf-button--primary {
    color: #07130e !important;
    background: linear-gradient(135deg, var(--tf-gold), var(--tf-green));
    box-shadow: 0 14px 34px rgba(34, 197, 94, .20);
}

.tf-button--ghost {
    color: #fff !important;
    border: 1px solid var(--tf-border);
    background: rgba(255, 255, 255, .08);
}

.tf-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 13px;
}

.tf-hero__meta span {
    padding: 7px 10px;
    border-radius: 999px;
    color: #e6f1ea;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    font-size: 12px;
    font-weight: 850;
}

.tf-hero-panel {
    padding: 16px;
    border-radius: 20px;
    border: 1px solid var(--tf-border);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .055)),
        radial-gradient(circle at top right, rgba(248, 201, 90, .20), transparent 42%);
    box-shadow: var(--tf-shadow);
    backdrop-filter: blur(18px);
}

.tf-hero-panel__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.tf-hero-panel__top span {
    color: var(--tf-gold);
    font-size: 12px;
    font-weight: 950;
}

.tf-hero-panel__top strong {
    color: #fff;
    font-size: 13px;
}

.tf-countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 12px 0;
}

.tf-countdown div {
    min-height: 58px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(0, 0, 0, .25);
    border: 1px solid rgba(255, 255, 255, .11);
}

.tf-countdown strong {
    color: #fff;
    font-size: 20px;
    line-height: 1;
    letter-spacing: -.04em;
}

.tf-countdown span {
    color: var(--tf-muted);
    font-size: 11px;
}

.tf-next-match {
    padding: 14px;
    border-radius: 16px;
    background: rgba(5, 12, 9, .74);
    border: 1px solid rgba(248, 201, 90, .20);
}

.tf-next-match > span {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--tf-gold);
    font-size: 12px;
    font-weight: 950;
}

.tf-next-match h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 20px;
    line-height: 1.24;
    letter-spacing: -.035em;
}

.tf-next-match p {
    margin: 0;
    color: #cddbd2;
    font-size: 13.5px;
    line-height: 1.62;
}

.tf-section {
    padding: 42px 0;
    background: #07130e;
}

.tf-section--dark {
    background:
        radial-gradient(circle at 15% 20%, rgba(34, 197, 94, .10), transparent 26%),
        linear-gradient(180deg, #05100b, #0a1a12);
}

.tf-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.tf-eyebrow {
    margin: 0 0 6px;
    color: var(--tf-gold);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .12em;
}

.tf-section-head h2,
.tf-feature-copy h2,
.tf-panel h2,
.tf-final-cta h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(22px, 2.6vw, 32px);
    line-height: 1.14;
    letter-spacing: -.045em;
}

.tf-section-head p,
.tf-feature-copy p {
    max-width: 540px;
    margin: 0;
    color: var(--tf-muted);
    font-size: 13.5px;
    line-height: 1.62;
}

.tf-section-head > a {
    color: var(--tf-gold);
    font-size: 13.5px;
    font-weight: 900;
}

.tf-quick-grid,
.tf-match-grid,
.tf-team-grid,
.tf-post-grid,
.tf-academy-grid {
    display: grid;
    gap: 14px;
}

.tf-quick-grid,
.tf-match-grid,
.tf-team-grid,
.tf-academy-grid {
    grid-template-columns: repeat(4, 1fr);
}

.tf-post-grid {
    grid-template-columns: repeat(3, 1fr);
}

.tf-card,
.tf-match-card,
.tf-team-card,
.tf-post-card,
.tf-panel,
.tf-empty-card {
    border: 1px solid var(--tf-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, .075);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

.tf-card,
.tf-match-card,
.tf-team-card,
.tf-panel,
.tf-empty-card {
    padding: 17px;
}

.tf-card em,
.tf-team-card em {
    color: var(--tf-gold);
    font-style: normal;
    font-size: 13px;
    font-weight: 950;
}

.tf-card strong,
.tf-match-card h3,
.tf-team-card h3,
.tf-post-card h3,
.tf-panel h2,
.tf-empty-card h3 {
    color: #fff;
}

.tf-card strong {
    display: block;
    margin: 10px 0 7px;
    font-size: 18px;
    line-height: 1.24;
    letter-spacing: -.035em;
}

.tf-card p,
.tf-match-card p,
.tf-team-card p,
.tf-post-card p,
.tf-panel p,
.tf-empty-card p {
    margin: 0;
    color: var(--tf-muted);
    font-size: 13.5px;
    line-height: 1.62;
}

.tf-card:hover,
.tf-match-card:hover,
.tf-team-card:hover,
.tf-post-card:hover {
    border-color: rgba(248, 201, 90, .38);
}

.tf-match-card__tag {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 9px;
    border-radius: 999px;
    color: #a8f8c8;
    background: rgba(34, 197, 94, .14);
    font-size: 12px;
    font-weight: 950;
}

.tf-match-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.26;
    letter-spacing: -.035em;
}

.tf-match-card a,
.tf-team-card a,
.tf-panel a,
.tf-read-more {
    display: inline-flex;
    margin-top: 11px;
    color: var(--tf-gold);
    font-size: 13.5px;
    font-weight: 900;
}

.tf-team-card__flag,
.tf-team-card__avatar {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    margin-bottom: 10px;
    color: #07130e;
    background: linear-gradient(135deg, var(--tf-gold), var(--tf-green));
    font-size: 19px;
    font-weight: 950;
}

.tf-team-card h3 {
    margin: 0 0 7px;
    font-size: 18px;
    line-height: 1.24;
    letter-spacing: -.035em;
}

.tf-feature-grid {
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    gap: 20px;
    align-items: start;
}

.tf-hub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.tf-hub-grid a {
    padding: 17px;
    border-radius: 20px;
    border: 1px solid var(--tf-border);
    background: rgba(255, 255, 255, .075);
}

.tf-hub-grid span {
    color: var(--tf-gold);
    font-size: 13px;
    font-weight: 950;
}

.tf-hub-grid strong {
    display: block;
    margin: 10px 0 7px;
    color: #fff;
    font-size: 18px;
    line-height: 1.24;
    letter-spacing: -.035em;
}

.tf-hub-grid p {
    margin: 0;
    color: var(--tf-muted);
    font-size: 13.5px;
    line-height: 1.62;
}

.tf-post-card {
    overflow: hidden;
}

.tf-post-card__media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #10251a;
}

.tf-post-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tf-post-card__placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #07130e;
    font-size: 30px;
    font-weight: 950;
    background: linear-gradient(135deg, var(--tf-gold), var(--tf-green));
}

.tf-post-card__body {
    padding: 16px;
}

.tf-post-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--tf-gold);
    font-size: 12px;
    font-weight: 900;
}

.tf-post-card h3 {
    margin: 9px 0 7px;
    font-size: 18px;
    line-height: 1.3;
    letter-spacing: -.035em;
}

.tf-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.tf-panel {
    padding: 18px;
}

.tf-link-list {
    display: grid;
    gap: 10px;
    margin-top: 13px;
}

.tf-link-list a {
    padding: 11px 13px;
    border-radius: 15px;
    color: #fff;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .10);
    font-size: 14px;
}

.tf-disclaimer-card {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(248, 201, 90, .26);
    background:
        radial-gradient(circle at top right, rgba(248, 201, 90, .16), transparent 36%),
        rgba(248, 201, 90, .075);
}

.tf-disclaimer-card h2 {
    margin: 0 0 8px;
    color: var(--tf-gold);
    font-size: 20px;
    letter-spacing: -.035em;
}

.tf-disclaimer-card p {
    margin: 0;
    color: #e5ecdf;
    font-size: 14px;
    line-height: 1.75;
}

.tf-final-cta {
    padding: 42px 0;
    text-align: center;
    background:
        radial-gradient(circle at center, rgba(34, 197, 94, .13), transparent 32%),
        linear-gradient(180deg, #07130e, #040a07);
}

.tf-final-cta p {
    max-width: 720px;
    margin: 10px auto 18px;
    color: var(--tf-muted);
    line-height: 1.7;
    font-size: 15px;
}

/* Front-page CSS moved from front-page.php */
.tf-home-page,
.tf-home-page * {
    box-sizing: border-box;
}

.tf-home-page {
    --tf-bg: #050b08;
    --tf-bg-soft: #07150f;
    --tf-card: rgba(255, 255, 255, 0.08);
    --tf-border: rgba(255, 255, 255, 0.14);
    --tf-gold: #f8c95a;
    --tf-green: #22c55e;
    --tf-text: #f7fff9;
    --tf-muted: #a9baaf;
    --tf-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
    background: var(--tf-bg);
    color: var(--tf-text);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.tf-home-page a {
    color: inherit;
    text-decoration: none;
}

.tf-container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.tf-hero {
    position: relative;
    padding: 38px 0 42px;
    background:
        radial-gradient(circle at 16% 14%, rgba(34, 197, 94, 0.22), transparent 30%),
        radial-gradient(circle at 84% 8%, rgba(248, 201, 90, 0.18), transparent 26%),
        linear-gradient(180deg, #06110c 0%, #07180f 58%, #050b08 100%);
}

.tf-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image:
        linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, #000, rgba(0,0,0,.56), transparent);
}

.tf-hero__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 32px;
    align-items: center;
}

.tf-hero h1 {
    max-width: 720px;
    margin: 0 0 15px;
    color: #fff;
    font-size: clamp(31px, 4.4vw, 50px);
    line-height: 1.08;
    letter-spacing: -0.055em;
    font-weight: 950;
}

.tf-hero h1 mark {
    color: transparent;
    background: linear-gradient(135deg, var(--tf-gold), #fff2b8, var(--tf-green));
    -webkit-background-clip: text;
    background-clip: text;
}

.tf-hero__content p {
    max-width: 680px;
    margin: 0;
    color: #c5d3ca;
    font-size: 15.5px;
    line-height: 1.72;
}

.tf-hero__actions,
.tf-final-cta .tf-button {
    margin-top: 22px;
}

.tf-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
}

.tf-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 19px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 950;
    transition: transform .2s ease;
}

.tf-button:hover {
    transform: translateY(-2px);
}

.tf-button--primary {
    color: #07130e;
    background: linear-gradient(135deg, var(--tf-gold), var(--tf-green));
    box-shadow: 0 16px 42px rgba(34,197,94,.22);
}

.tf-button--ghost {
    color: #fff;
    border: 1px solid var(--tf-border);
    background: rgba(255,255,255,.08);
}

.tf-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.tf-hero__meta span,
.tf-match-card__tag,
.tf-post-card__meta span,
.tf-hub-grid span,
.tf-eyebrow {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-weight: 900;
}

.tf-hero__meta span {
    min-height: 32px;
    padding: 0 11px;
    color: #dce8e0;
    background: rgba(255,255,255,.08);
    border: 1px solid var(--tf-border);
    font-size: 12px;
}

.tf-hero-panel,
.tf-card,
.tf-match-card,
.tf-team-card,
.tf-post-card,
.tf-panel,
.tf-hub-grid a,
.tf-empty-card {
    border: 1px solid var(--tf-border);
    background: linear-gradient(180deg, rgba(255,255,255,.105), rgba(255,255,255,.052));
    box-shadow: var(--tf-shadow);
}

.tf-hero-panel {
    padding: 22px;
    border-radius: 26px;
    backdrop-filter: blur(18px);
}

.tf-hero-panel__top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.tf-hero-panel__top span {
    color: var(--tf-gold);
    font-size: 12px;
    font-weight: 950;
}

.tf-hero-panel__top strong {
    color: #fff;
    font-size: 13px;
}

.tf-countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.tf-countdown div {
    min-height: 70px;
    display: grid;
    place-items: center;
    padding: 10px 7px;
    border-radius: 18px;
    background: rgba(0,0,0,.26);
    border: 1px solid rgba(255,255,255,.12);
}

.tf-countdown strong {
    color: #fff;
    font-size: 23px;
    line-height: 1;
}

.tf-countdown span {
    color: var(--tf-muted);
    font-size: 11px;
    font-weight: 800;
}

.tf-next-match {
    margin-top: 14px;
    padding: 17px;
    border-radius: 21px;
    border: 1px solid rgba(248,201,90,.24);
    background: rgba(4,10,7,.66);
}

.tf-next-match > span {
    display: block;
    margin-bottom: 10px;
    color: var(--tf-gold);
    font-size: 12px;
    font-weight: 950;
}

.tf-next-match h2 {
    margin: 0 0 9px;
    color: #fff;
    font-size: 21px;
    line-height: 1.3;
}

.tf-next-match p {
    margin: 0;
    color: var(--tf-muted);
    font-size: 13px;
    line-height: 1.65;
}

.tf-section {
    padding: 42px 0;
    background: #07130e;
}

.tf-section--dark {
    background:
        radial-gradient(circle at 16% 18%, rgba(34,197,94,.11), transparent 30%),
        linear-gradient(180deg, #05100b, #0a1a12);
}

.tf-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 20px;
}

.tf-eyebrow {
    margin: 0 0 7px;
    color: var(--tf-gold);
    font-size: 12px;
    letter-spacing: .08em;
}

.tf-section-head h2,
.tf-feature-copy h2,
.tf-panel h2,
.tf-final-cta h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(23px, 2.8vw, 34px);
    line-height: 1.16;
    letter-spacing: -0.04em;
}

.tf-section-head p,
.tf-section-head a,
.tf-feature-copy p,
.tf-panel p,
.tf-final-cta p {
    color: var(--tf-muted);
    font-size: 14px;
    line-height: 1.68;
}

.tf-section-head a {
    color: var(--tf-gold);
    font-weight: 950;
}

.tf-quick-grid,
.tf-match-grid,
.tf-team-grid,
.tf-post-grid,
.tf-hub-grid {
    display: grid;
    gap: 15px;
}

.tf-quick-grid {
    grid-template-columns: repeat(4, 1fr);
}

.tf-match-grid,
.tf-team-grid {
    grid-template-columns: repeat(4, 1fr);
}

.tf-post-grid,
.tf-hub-grid,
.tf-two-col {
    display: grid;
    gap: 18px;
}

.tf-post-grid {
    grid-template-columns: repeat(3, 1fr);
}

.tf-hub-grid,
.tf-two-col {
    grid-template-columns: repeat(2, 1fr);
}

.tf-feature-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 24px;
    align-items: start;
}

.tf-card,
.tf-match-card,
.tf-team-card,
.tf-panel,
.tf-hub-grid a,
.tf-empty-card {
    border-radius: 20px;
    padding: 20px;
}

.tf-card em,
.tf-hub-grid span,
.tf-match-card__tag,
.tf-post-card__meta span:first-child {
    color: var(--tf-gold);
    font-style: normal;
    font-size: 12px;
    font-weight: 950;
}

.tf-card strong,
.tf-match-card h3,
.tf-team-card h3,
.tf-post-card h3,
.tf-hub-grid strong {
    display: block;
    margin: 11px 0 8px;
    color: #fff;
    font-size: 19px;
    line-height: 1.25;
    letter-spacing: -0.03em;
}

.tf-card p,
.tf-match-card p,
.tf-team-card p,
.tf-post-card p,
.tf-hub-grid p {
    margin: 0;
    color: var(--tf-muted);
    font-size: 13.5px;
    line-height: 1.65;
}

.tf-match-card a,
.tf-team-card a,
.tf-panel a {
    color: var(--tf-gold);
    font-weight: 950;
}

.tf-match-card__tag,
.tf-post-card__meta span {
    min-height: 28px;
    padding: 0 9px;
    background: rgba(248,201,90,.10);
    border: 1px solid rgba(248,201,90,.22);
}

.tf-match-card__teams,
.tf-next-match__teams {
    display: grid;
    gap: 7px;
}

.tf-vs-text {
    color: var(--tf-gold);
    font-size: 13px;
    font-weight: 950;
}

.tf-team-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tf-flag {
    width: 28px;
    height: 20px;
    flex: 0 0 auto;
    border-radius: 5px;
    object-fit: cover;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.16);
}

.tf-flag--avatar {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    border: 0;
}

.tf-team-card__avatar {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 18px;
    color: #07130e;
    background: linear-gradient(135deg, var(--tf-gold), var(--tf-green));
    font-size: 22px;
    font-weight: 950;
}

.tf-team-card h3 {
    margin-top: 13px;
}

.tf-post-card {
    overflow: hidden;
    border-radius: 20px;
}

.tf-post-card__media {
    height: 168px;
    min-height: 168px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: rgba(0,0,0,.22);
}

.tf-post-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tf-post-card__placeholder {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    color: #07130e;
    background: linear-gradient(135deg, var(--tf-gold), var(--tf-green));
    font-size: 30px;
    font-weight: 950;
}

.tf-post-card__body {
    padding: 18px;
}

.tf-post-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
}

.tf-link-list {
    display: grid;
    gap: 9px;
    margin-top: 16px;
}

.tf-link-list a {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.10);
}

.tf-final-cta {
    padding: 50px 0;
    text-align: center;
    background:
        radial-gradient(circle at center, rgba(34,197,94,.15), transparent 34%),
        linear-gradient(180deg, #07130e, #030806);
}

.tf-final-cta p {
    max-width: 680px;
    margin: 12px auto 0;
}

.tf-trust-note {
    margin-top: 18px;
    color: rgba(247, 255, 249, .72);
    font-size: 12.5px;
    line-height: 1.65;
}

.tf-trust-note time {
    color: var(--tf-gold);
    font-weight: 900;
}

@media (max-width: 1080px) {
    .tf-hero__grid,
    .tf-feature-grid,
    .tf-two-col {
        grid-template-columns: 1fr;
    }

    .tf-quick-grid,
    .tf-match-grid,
    .tf-team-grid,
    .tf-post-grid,
    .tf-hub-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .tf-container {
        width: min(1180px, calc(100% - 24px));
    }

    .tf-hero {
        padding: 30px 0 36px;
    }

    .tf-hero h1 {
        font-size: 31px;
    }

    .tf-countdown,
    .tf-quick-grid,
    .tf-match-grid,
    .tf-team-grid,
    .tf-post-grid,
    .tf-hub-grid {
        grid-template-columns: 1fr;
    }

    .tf-section {
        padding: 34px 0;
    }

    .tf-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .tf-hero__actions {
        display: grid;
    }

    .tf-button {
        width: 100%;
    }
}


/* Homepage refinements */
.tf-home-page .tf-container {
    width: min(var(--tf-container), calc(100% - 40px));
}

.tf-hero h1,
.tf-hero h1 mark {
    font-size: clamp(30px, 4vw, 46px) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.04em !important;
    font-weight: 950 !important;
}

.tf-hero h1 mark {
    font-family: inherit !important;
    font-style: inherit !important;
}

.tf-countdown div {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    min-width: 0;
    text-align: center;
}

.tf-countdown strong,
.tf-countdown span {
    display: inline-flex !important;
    align-items: baseline !important;
    line-height: 1 !important;
}

.tf-countdown span {
    margin-top: 0 !important;
    transform: translateY(1px);
}

.tf-next-match__teams {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    overflow-x: auto;
    scrollbar-width: none;
}

.tf-next-match__teams::-webkit-scrollbar {
    display: none;
}

.tf-next-match__teams .tf-team-label,
.tf-next-match__teams .tf-team-label-link,
.tf-vs-text {
    flex: 0 0 auto;
    white-space: nowrap !important;
}

.tf-post-card__media,
.tf-home-page .tf-post-card__media {
    width: 100% !important;
    display: block !important;
    padding: 0 !important;
    line-height: 0 !important;
    background: rgba(0, 0, 0, .22);
}

.tf-post-card__media img,
.tf-home-page .tf-post-card__media img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center center !important;
}

.tf-home-page .tf-post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.tf-home-page .tf-post-card__media {
    height: 168px !important;
    min-height: 168px !important;
}

.tf-home-page .tf-post-card h3 {
    font-size: 17px !important;
    line-height: 1.35 !important;
}

.tf-home-page .tf-post-card p { font-size: 13px !important; }

@media (max-width: 1080px) {
    .tf-hero__grid,
    .tf-feature-grid,
    .tf-two-col {
        grid-template-columns: 1fr;
    }

    .tf-quick-grid,
    .tf-match-grid,
    .tf-team-grid,
    .tf-post-grid,
    .tf-academy-grid,
    .tf-hub-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tf-home-page .tf-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .tf-container,
    .tf-home-page .tf-container {
        width: min(100%, calc(100% - 20px));
    }

    .tf-hero {
        padding: 22px 0 34px;
    }

    .tf-hero h1,
    .tf-hero h1 mark {
        font-size: 26px !important;
        line-height: 1.12 !important;
    }

    .tf-hero__content > p,
    .tf-hero__content p {
        font-size: 14px;
    }

    .tf-countdown,
    .tf-quick-grid,
    .tf-match-grid,
    .tf-team-grid,
    .tf-post-grid,
    .tf-academy-grid,
    .tf-hub-grid {
        grid-template-columns: 1fr;
    }

    .tf-section {
        padding: 32px 0;
    }

    .tf-section-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 760px) {
    body .tf-hero {
        padding-top: 16px !important;
        padding-bottom: 18px !important;
        min-height: auto !important;
    }

    body .tf-hero__grid {
        display: block !important;
    }

    body .tf-hero h1,
    body .tf-hero h1 mark {
        font-size: 24px !important;
        line-height: 1.12 !important;
        margin: 0 0 8px !important;
        letter-spacing: -.04em !important;
    }

    body .tf-hero__content > p,
    body .tf-hero__content p {
        font-size: 13.5px !important;
        line-height: 1.55 !important;
        margin-bottom: 0 !important;
    }

    body .tf-hero__actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        margin-top: 12px !important;
    }

    body .tf-button {
        width: auto !important;
        min-height: 38px !important;
        padding: 0 10px !important;
        font-size: 12.5px !important;
        white-space: nowrap !important;
    }

    body .tf-hero__meta {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 6px !important;
        margin-top: 10px !important;
    }

    body .tf-hero__meta span {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 34px !important;
        padding: 5px 6px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
    }

    body .tf-hero__meta span:nth-child(n+4) { display: none !important; }

    body .tf-hero-panel {
        margin-top: 12px !important;
        padding: 12px !important;
        border-radius: 16px !important;
    }

    body .tf-countdown {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 6px !important;
        margin: 0 0 8px !important;
    }

    body .tf-countdown div {
        min-height: 44px !important;
        border-radius: 12px !important;
    }

    body .tf-countdown strong { font-size: 18px !important; }
    body .tf-countdown span { font-size: 10px !important; }

    body .tf-next-match {
        margin-top: 8px !important;
        padding: 10px !important;
        border-radius: 14px !important;
    }

    body .tf-next-match > span,
    body .tf-next-match h2,
    body .tf-next-match p {
        font-size: 12.5px !important;
        line-height: 1.45 !important;
    }
}

@media (max-width: 720px) {
    .tf-home-page .tf-post-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
    .tf-hero-panel,
    .tf-card,
    .tf-match-card,
    .tf-team-card,
    .tf-panel,
    .tf-empty-card,
    .tf-post-card__body {
        border-radius: 16px;
    }

    .tf-section-head h2,
    .tf-feature-copy h2,
    .tf-panel h2,
    .tf-final-cta h2 {
        font-size: 21px;
    }
}

/* Final homepage card/countdown guardrails. */
.tf-post-card__media,
.tf-home-page .tf-post-card__media {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.tf-post-card__media img,
.tf-home-page .tf-post-card__media img {
    flex: 1 1 100% !important;
}

@media (max-width: 768px) {
    .tf-countdown {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}
