/* ==========================================================================
   Transfer Centre — matches Sky Sports-style reference layout
   Enqueue this from your child theme functions.php
   (Rewritten to avoid `gap` and CSS Grid — uses flexbox + margins instead,
   for compatibility with older CSS linters/validators)
   ========================================================================== */

.tc-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 16px 16px 48px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #1a1a1a;
}

/* ---------- Header ---------- */
.tc-header {
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 20px;
}

.tc-live-badge {
    display: inline-block;
    background: #e0141c;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 2px;
    margin-bottom: 10px;
}

.tc-title {
    font-size: 28px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    margin: 0 0 10px !important;
    color: #16233c !important;
}

.tc-updated {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 14px;
}

.tc-clock-icon {
    font-size: 8px;
    color: #9ca3af;
    margin-right: 6px;
}

.tc-share-row {
    display: flex;
}

.tc-share {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    color: #16233c;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    background: #fff;
    transition: background 0.15s ease;
    margin-right: 8px;
}

.tc-share:last-child {
    margin-right: 0;
}

.tc-share:hover {
    background: #f3f4f6;
}

/* ---------- Top stories ---------- */
.tc-top-stories {
    background: #f7f8fa;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.tc-top-stories-label {
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.tc-top-stories ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tc-top-stories li {
    padding: 6px 0;
    border-top: 1px solid #e9eaec;
    font-size: 14px;
}

.tc-top-stories li:first-child {
    border-top: none;
}

.tc-top-stories a {
    color: #16233c;
    text-decoration: none;
    font-weight: 500;
}

.tc-top-stories a:hover {
    color: #e0141c;
}

/* ---------- Club quick links ---------- */
.tc-club-links {
    margin-bottom: 24px;
}

.tc-club-links-label {
    font-size: 13px;
    font-weight: 700;
    color: #16233c;
    margin: 0 0 10px;
}

.tc-club-links-list {
    display: flex;
    flex-wrap: wrap;
}

.tc-club-links-list a {
    font-size: 13px;
    color: #2b64d9;
    text-decoration: none;
    margin: 0 16px 8px 0;
    display: inline-block;
}

.tc-club-links-list a:hover {
    text-decoration: underline;
}

/* ---------- Feed ---------- */
.tc-feed {
    display: block;
}

.tc-card-row {
    display: flex;
    margin-bottom: 20px;
}

.tc-card-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 18px;
    font-size: 12px;
    color: #6b7280;
    width: 56px;
    flex-shrink: 0;
    margin-right: 12px;
}

.tc-time-ago {
    font-weight: 600;
    color: #1a1a1a;
}

.tc-time-clock {
    color: #9ca3af;
}

.tc-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    flex: 1;
    min-width: 0;
}

.tc-card-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.tc-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tc-avatar-fallback {
    font-weight: 700;
    color: #6b7280;
    font-size: 16px;
}

.tc-card-body {
    flex: 1;
    min-width: 0;
}

.tc-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 3px 8px;
    border-radius: 3px;
    margin-bottom: 8px;
    background: #eef0f3;
    color: #16233c;
}

/* Matches Likelihood select options: Imminent, Likely, Dead, Not happening */
.tc-badge-imminent      { background: #16a34a; color: #fff; }
.tc-badge-likely        { background: #f59e0b; color: #fff; }
.tc-badge-dead          { background: #6b7280; color: #fff; }
.tc-badge-not-happening { background: #ef4444; color: #fff; }

.tc-card-title {
    font-size: 17px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    margin: 0 0 8px !important;
}

.tc-card-title a {
    color: #16233c;
    text-decoration: none;
}

.tc-card-title a:hover {
    color: #e0141c;
}

.tc-card-text p {
    font-size: 14px;
    line-height: 1.55;
    color: #1a1a1a;
    margin: 0 0 10px;
}

.tc-card-source {
    font-size: 12px;
    color: #6b7280;
    margin: 0 0 12px;
}

.tc-card-source a {
    color: #2b64d9;
    text-decoration: none;
    font-weight: 600;
}

.tc-source-tier {
    margin-left: 6px;
    color: #9ca3af;
}

.tc-share-row--card .tc-share {
    width: 28px;
    height: 28px;
    font-size: 11px;
    border-radius: 5px;
    margin-right: 6px;
}

/* ---------- Pagination ---------- */
.tc-pagination {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

.tc-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    color: #16233c;
    text-decoration: none;
    font-size: 13px;
    margin-right: 6px;
}

.tc-pagination .page-numbers:last-child {
    margin-right: 0;
}

.tc-pagination .page-numbers.current {
    background: #16233c;
    color: #fff;
    border-color: #16233c;
}

.tc-empty {
    text-align: center;
    color: #6b7280;
    padding: 40px 0;
}

/* ==========================================================================
   Shortcode output — [transfer_feed] and [transfer_sidebar]
   These use different markup/classes than the archive template above,
   because they're generated by transfer_feed_shortcode() /
   transfer_sidebar_shortcode() in functions.php. Styled separately here.
   ========================================================================== */

.transfer-feed {
    max-width: 720px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.transfer-feed-item {
    margin-bottom: 20px;
}

.transfer-feed-top {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.transfer-feed-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.transfer-feed-photo {
    margin: 14px -16px -16px;
    height: 260px;
    overflow: hidden;
}

.transfer-feed-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.transfer-time {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
    margin-right: 10px;
}

.transfer-feed .badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 3px 8px;
    border-radius: 3px;
    background: #eef0f3;
    color: #16233c;
    margin-bottom: 8px;
}

/* Matches Likelihood select options: Imminent, Likely, Dead, Not happening */
.transfer-feed .badge-imminent      { background: #16a34a; color: #fff; }
.transfer-feed .badge-likely        { background: #f59e0b; color: #fff; }
.transfer-feed .badge-dead          { background: #6b7280; color: #fff; }
.transfer-feed .badge-not-happening { background: #ef4444; color: #fff; }

.transfer-content {
    flex: 1;
    min-width: 0;
}

.transfer-content h2 {
    font-size: 20px !important;
    font-weight: 700 !important;
    margin: 0 0 10px !important;
    line-height: 1.3 !important;
}

.transfer-content h2 a {
    color: #16233c !important;
    text-decoration: none !important;
}

.transfer-content h2 a:hover {
    color: #e0141c;
}

.transfer-clubs {
    font-size: 13px !important;
    color: #6b7280 !important;
    margin: 0 0 14px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.transfer-clubs strong {
    color: #16233c;
}

.transfer-notes {
    margin: 0 0 12px;
}

.transfer-notes p {
    font-size: 14px !important;
    line-height: 1.75 !important;
    color: #1a1a1a !important;
    margin: 0 0 20px !important;
}

.transfer-notes p:last-child {
    margin-bottom: 0 !important;
}

.transfer-source {
    font-size: 12px !important;
    color: #6b7280 !important;
    margin: 0 !important;
    padding-top: 10px !important;
    border-top: 1px solid #f0f0f0 !important;
}

.transfer-source strong {
    color: #16233c;
}

/* ---------- Sidebar shortcode ---------- */
.transfer-sidebar {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
}

.transfer-sidebar-title {
    background: #16233c;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 14px;
}

.transfer-card {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
}

.transfer-card:last-child {
    border-bottom: none;
}

.transfer-card:hover {
    background: #f7f8fa;
}

.transfer-card .rank {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #eef0f3;
    color: #16233c;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.transfer-info h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 2px;
    color: #16233c;
}

.transfer-info p {
    font-size: 12px;
    color: #6b7280;
    margin: 0 0 2px;
}

.transfer-info span {
    font-size: 11px;
    color: #9ca3af;
}

@media (max-width: 480px) {
    .transfer-feed-card {
        padding: 14px;
    }

    .transfer-feed-photo {
        margin: 12px -14px -14px;
    }

    .transfer-content h2 {
        font-size: 18px;
    }
}

/* ==========================================================================
   Live Blog Masthead — [transfer_live_header] shortcode
   ========================================================================== */

.tlb-header {
    max-width: 720px;
    margin: 0 auto 20px;
    background: #0b1f16;
    color: #fff;
    padding: 20px 20px 18px;
    border-radius: 10px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.tlb-badge {
    display: inline-block;
    background: #4caf7d;
    color: #0b1f16;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 4px 10px;
    border-radius: 3px;
    margin-bottom: 12px;
}

.tlb-breadcrumb {
    font-size: 12px;
    color: #b8c7bf;
    margin-bottom: 10px;
}

.tlb-headline {
    font-size: 24px !important;
    line-height: 1.3 !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin: 0 0 14px !important;
}

.tlb-kicker {
    color: #4caf7d;
    text-transform: uppercase;
}

.tlb-byline {
    font-size: 13px;
    color: #dbe6e0;
    margin-bottom: 4px;
}

.tlb-byline strong {
    color: #fff;
    text-decoration: underline;
}

.tlb-updated {
    font-size: 12px;
    font-weight: 700;
    color: #dbe6e0;
}

@media (max-width: 480px) {
    .tlb-header {
        padding: 16px 16px 14px;
    }

    .tlb-headline {
        font-size: 19px !important;
    }
}

/* ==========================================================================
   Fixtures widget — [fixtures] shortcode
   ========================================================================== */

.fixtures-widget {
    max-width: 720px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.fx-card {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: border-color 0.15s ease;
}

.fx-card:hover {
    border-color: #16233c;
}

.fx-date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 48px;
    flex-shrink: 0;
    margin-right: 16px;
    text-align: center;
}

.fx-day {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #6b7280;
}

.fx-num {
    font-size: 20px;
    font-weight: 700;
    color: #16233c;
    line-height: 1.1;
}

.fx-mon {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #6b7280;
}

.fx-body {
    flex: 1;
    min-width: 0;
}

.fx-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.fx-team-home {
    font-size: 14px;
    font-weight: 700;
    color: #16233c;
    flex: 1;
}

.fx-team-away {
    font-size: 14px;
    font-weight: 700;
    color: #16233c;
    flex: 1;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.fx-opp-badge {
    width: 18px;
    height: 18px;
    object-fit: contain;
    margin-right: 6px;
}

.fx-badge-placeholder {
    margin-right: 6px;
}

.fx-vs-block {
    flex-shrink: 0;
    padding: 0 14px;
    text-align: center;
    min-width: 64px;
}

.fx-score {
    font-size: 15px;
    font-weight: 700;
    color: #16233c;
    background: #eef0f3;
    padding: 3px 10px;
    border-radius: 4px;
}

.fx-live {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #e0141c;
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.fx-kickoff {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

.fx-meta {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #9ca3af;
}

.fx-comp {
    font-weight: 600;
    color: #6b7280;
    margin-right: 8px;
    padding-right: 8px;
    border-right: 1px solid #e5e5e5;
}

.fx-arrow {
    margin-left: 12px;
    color: #9ca3af;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .fx-card {
        padding: 12px;
    }

    .fx-date-box {
        width: 40px;
        margin-right: 10px;
    }

    .fx-team-home,
    .fx-team-away {
        font-size: 12.5px;
    }

    .fx-vs-block {
        padding: 0 8px;
        min-width: 52px;
    }

    .fx-meta {
        flex-wrap: wrap;
    }
}

/* ==========================================================================
   Mobile — matches the phone screenshot: everything full-width, tighter
   ========================================================================== */
@media (max-width: 480px) {
    .tc-wrap {
        padding: 12px 12px 32px;
    }

    .tc-title {
        font-size: 22px;
    }

    .tc-card-row {
        display: block;
    }

    .tc-card-meta {
        flex-direction: row;
        align-items: center;
        padding-top: 0;
        margin-bottom: 6px;
        width: auto;
    }

    .tc-time-ago {
        margin-right: 8px;
    }

    .tc-card {
        padding: 14px;
    }

    .tc-club-links-list a {
        margin: 0 14px 6px 0;
        font-size: 12.5px;
    }
}

/* ==========================================================================
   Transfer Centre — Single Detail Page (single-transfer_rumour.php)
   ========================================================================== */

.tc-detail {
    padding-top: 20px;
}

.tc-back-link {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
    margin-bottom: 20px;
}

.tc-back-link:hover {
    color: #16233c;
}

.tc-detail-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.tc-detail-avatar {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #f3f4f6;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
}

.tc-detail-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tc-avatar-fallback--lg {
    font-size: 28px;
}

.tc-detail-header-body {
    min-width: 0;
}

.tc-detail-title {
    font-size: 26px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    margin: 4px 0 4px !important;
    color: #16233c !important;
}

.tc-detail-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.tc-detail-subtitle strong {
    color: #16233c;
}

.tc-detail-facts {
    display: flex;
    flex-wrap: wrap;
    background: #f7f8fa;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.tc-fact {
    display: flex;
    flex-direction: column;
    margin-right: 28px;
    margin-bottom: 8px;
}

.tc-fact:last-child {
    margin-right: 0;
}

.tc-fact-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #9ca3af;
    margin-bottom: 2px;
}

.tc-fact-value {
    font-size: 14px;
    font-weight: 700;
    color: #16233c;
}

.tc-fact-value a {
    color: #2b64d9;
    text-decoration: none;
}

.tc-detail-notes {
    margin-bottom: 24px;
}

.tc-detail-notes p {
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: #1a1a1a !important;
    margin: 0 0 14px !important;
}

.tc-timeline-heading {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #16233c !important;
    margin: 0 0 16px !important;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
}

.tc-timeline {
    position: relative;
    padding-left: 20px;
    margin-bottom: 24px;
}

.tc-timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: #e5e5e5;
}

.tc-timeline-item {
    position: relative;
    padding-bottom: 22px;
}

.tc-timeline-item:last-child {
    padding-bottom: 0;
}

.tc-timeline-dot {
    position: absolute;
    left: -20px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #16233c;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #e5e5e5;
}

.tc-timeline-item:first-child .tc-timeline-dot {
    background: #e0141c;
}

.tc-timeline-time {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 4px;
}

.tc-timeline-text p {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #1a1a1a !important;
    margin: 0 0 6px !important;
}

.tc-timeline-source {
    font-size: 12px !important;
    color: #6b7280 !important;
    margin: 4px 0 0 !important;
}

.tc-timeline-source strong {
    color: #16233c;
}

@media (max-width: 480px) {
    .tc-detail-avatar {
        width: 56px;
        height: 56px;
        margin-right: 12px;
    }

    .tc-detail-title {
        font-size: 21px !important;
    }

    .tc-detail-facts {
        padding: 12px 14px;
    }

    .tc-fact {
        margin-right: 20px;
    }
}

/* Follow-the-full-story CTA on each Hub feed card */
.tc-card-cta {
    margin: 0 0 12px !important;
}

.tc-card-cta a {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: #e0141c;
    text-decoration: none;
}

.tc-card-cta a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Player / Staff Profile detail page (single-person.php)
   ========================================================================== */

.tc-person-avatar {
    position: relative;
    width: 88px;
    height: 88px;
}

.tc-person-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.tc-person-number {
    position: absolute;
    bottom: -4px;
    right: -4px;
    min-width: 26px;
    height: 26px;
    padding: 0 6px;
    border-radius: 50%;
    background: #16233c;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.tc-badge-squad {
    background: #eef0f3;
    color: #16233c;
    margin-left: 6px;
}

.tc-badge-person.tc-badge-player {
    background: #2b64d9;
    color: #fff;
}

.tc-badge-person.tc-badge-staff {
    background: #6b7280;
    color: #fff;
}

/* ==========================================================================
   Fixtures page (page-fixtures.php) — tabs + standings table
   ========================================================================== */

.fx-page {
    max-width: 780px;
}

.fx-tabs {
    display: flex;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 20px;
}

.fx-tab-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: #6b7280;
    padding: 10px 18px 12px;
    margin-bottom: -1px;
    border-bottom: 2px solid transparent;
}

.fx-tab-btn:hover {
    color: #16233c;
}

.fx-tab-btn.is-active {
    color: #16233c;
    border-bottom-color: #e0141c;
}

.fx-tab-panel {
    display: none;
}

.fx-tab-panel.is-active {
    display: block;
}

.fx-standings-caption {
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 14px;
}

.fx-standings-scroll {
    overflow-x: auto;
}

.fx-standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.fx-standings-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #9ca3af;
    padding: 8px 10px;
    border-bottom: 1px solid #e5e5e5;
    white-space: nowrap;
}

.fx-standings-table td {
    padding: 9px 10px;
    border-bottom: 1px solid #f0f0f0;
    color: #1a1a1a;
    white-space: nowrap;
}

.fx-st-team {
    font-weight: 600;
    color: #16233c;
    white-space: normal;
}

.fx-st-row--chelsea {
    background: #f0f6ff;
}

.fx-st-row--chelsea .fx-st-team {
    color: #16233c;
    font-weight: 800;
}

.fx-st-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
}

.fx-st-tag--champion { background: #f5c518; color: #16233c; }
.fx-st-tag--ucl { background: #16233c; color: #fff; }
.fx-st-tag--uel { background: #e0141c; color: #fff; }
.fx-st-tag--uecl { background: #16a34a; color: #fff; }
.fx-st-tag--relegated { background: #6b7280; color: #fff; }
.fx-st-tag--chelsea { background: #034694; color: #fff; }

@media (max-width: 480px) {
    .fx-tab-btn {
        padding: 8px 12px 10px;
        font-size: 13px;
    }

    .fx-standings-table {
        font-size: 12px;
    }
}

/* ==========================================================================
   Homepage custom sections (functions.php: strictly_homepage_extra_sections)
   ========================================================================== */

.home-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 16px 48px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.home-section-title {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #16233c !important;
    margin: 0 0 16px !important;
    padding-bottom: 10px;
    border-bottom: 2px solid #16233c;
}

.home-row {
    display: flex;
    gap: 32px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.home-col-main {
    flex: 1;
    min-width: 0;
}

.home-col-side {
    width: 320px;
    flex-shrink: 0;
}

.home-view-all {
    display: inline-block;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 700;
    color: #e0141c;
    text-decoration: none;
}

.home-view-all:hover {
    text-decoration: underline;
}

/* News grid */
.home-news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.home-news-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.home-news-card:hover {
    border-color: #16233c;
}

.home-news-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f3f4f6;
}

.home-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-news-body {
    padding: 12px 14px 14px;
}

.home-news-cat {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #e0141c;
    margin-bottom: 6px;
}

.home-news-body h3 {
    font-size: 15px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    margin: 0 !important;
    color: #16233c !important;
}

/* Fixtures sidebar reuses .fixtures-widget / .fx-card, just tighten spacing */
.home-fixtures-widget .fx-card {
    margin-bottom: 12px;
    padding: 10px 12px;
}

/* Transfer Centre strip */
.home-transfer-strip {
    margin-bottom: 40px;
}

.home-transfer-strip-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
    border-bottom: 2px solid #16233c;
    padding-bottom: 10px;
}

.home-transfer-strip-head .home-section-title {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.home-transfer-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.home-transfer-card {
    flex: 0 0 200px;
    display: block;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 14px;
    text-decoration: none;
    color: inherit;
}

.home-transfer-card:hover {
    border-color: #16233c;
}

.home-transfer-card h3 {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #16233c !important;
    margin: 8px 0 4px !important;
}

.home-transfer-card p {
    font-size: 12px !important;
    color: #6b7280 !important;
    margin: 0 !important;
}

/* Squad spotlight grid */
.home-squad-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.home-squad-card {
    display: block;
    text-decoration: none;
    color: inherit;
    text-align: center;
}

.home-squad-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 50%;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.home-squad-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-squad-number {
    position: absolute;
    bottom: 0;
    right: 8px;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    border-radius: 50%;
    background: #16233c;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.home-squad-card h3 {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #16233c !important;
    margin: 0 !important;
}

.home-squad-card p {
    font-size: 11px !important;
    color: #6b7280 !important;
    margin: 2px 0 0 !important;
}

/* Compact standings table on homepage */
.home-standings-table {
    margin-bottom: 4px;
}

.home-standings-gap {
    border-top: 2px dashed #e5e5e5;
}

@media (max-width: 860px) {
    .home-row {
        flex-direction: column;
    }

    .home-col-side {
        width: 100%;
    }

    .home-squad-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .home-news-grid {
        grid-template-columns: 1fr;
    }

    .home-wrap {
        padding: 24px 12px 32px;
    }
}

/* ==========================================================================
   People table (archive-person.php, taxonomy-squad.php)
   ========================================================================== */

.people-page {
    max-width: 900px;
}

.people-hero {
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 50%, #06b6d4 100%);
    border-radius: 12px;
    padding: 32px 28px;
    margin-bottom: 20px;
    color: #fff;
}

.people-hero h1 {
    font-size: 30px !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin: 0 0 6px !important;
}

.people-hero p {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    margin: 0;
    max-width: 520px;
}

.people-search-row {
    margin-bottom: 16px;
}

.people-search-input {
    width: 100%;
    max-width: 320px;
    padding: 10px 14px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}

.people-search-input:focus {
    outline: none;
    border-color: #16233c;
}

.people-table-scroll {
    overflow-x: auto;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
}

.people-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
}

.people-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #9ca3af;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e5e5;
    white-space: nowrap;
}

.people-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
    vertical-align: middle;
}

.people-row:last-child td {
    border-bottom: none;
}

.people-row:hover {
    background: #f7f8fa;
}

.people-player-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.people-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.people-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.people-name {
    font-weight: 700;
    color: #16233c;
    white-space: normal;
}

.people-col-number,
.people-col-role,
.people-col-nat {
    color: #4b5563;
}

.people-bio-btn {
    display: inline-block;
    padding: 6px 14px;
    background: #16233c;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 999px;
    white-space: nowrap;
}

.people-bio-btn:hover {
    background: #e0141c;
}

@media (max-width: 640px) {
    .people-hero {
        padding: 24px 18px;
    }

    .people-hero h1 {
        font-size: 24px !important;
    }

    .people-col-nat,
    .people-table th:nth-child(4) {
        display: none;
    }
}

/* ==========================================================================
   Homepage v2 (gradient palette, matches Squad page hero)
   ========================================================================== */

:root {
    --home2-gradient: linear-gradient(135deg, #7c3aed 0%, #2563eb 50%, #06b6d4 100%);
    --home2-navy: #16233c;
}

.home2-wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 28px 16px 56px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.home2-section-title {
    font-size: 19px !important;
    font-weight: 800 !important;
    color: var(--home2-navy) !important;
    margin: 0 0 14px !important;
    padding-bottom: 10px;
    border-bottom: 3px solid transparent;
    border-image: var(--home2-gradient) 1;
}

/* ---------- Hero ---------- */
.home2-hero-row {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.home2-hero-main {
    flex: 1.7;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    background: #1e1033;
    display: flex;
    flex-direction: column;
}

.home2-hero-img {
    height: 300px;
    background: var(--home2-gradient);
    background-size: cover;
    background-position: center;
}

.home2-hero-textblock {
    background: #1e1033;
    padding: 22px 26px 26px;
}

.home2-hero-textblock h2 {
    font-size: 22px !important;
    line-height: 1.3 !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin: 0 0 10px !important;
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.5);
    text-underline-offset: 4px;
}

.home2-hero-textblock p {
    font-size: 13px !important;
    line-height: 1.6 !important;
    color: rgba(255,255,255,0.7) !important;
    margin: 0 0 12px !important;
}

.home2-hero-catlabel {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.6);
}

.home2-badge {
    display: inline-block;
    background: var(--home2-gradient);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 4px 10px;
    border-radius: 4px;
}

.home2-hero-side {
    flex: 1;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    padding: 6px 18px;
    display: flex;
    flex-direction: column;
}

.home2-hero-side-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
}

.home2-hero-side-item:last-child {
    border-bottom: none;
}

.home2-hero-side-body {
    flex: 1;
    min-width: 0;
}

.home2-hero-side-item h3 {
    font-size: 14px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    color: var(--home2-navy) !important;
    margin: 0 0 6px !important;
}

.home2-hero-side-item:hover h3 {
    color: #2563eb !important;
}

.home2-hero-side-cat {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
}

.home2-hero-side-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
}

.home2-hero-side-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---------- Ticker ---------- */
.home2-ticker {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    margin-bottom: 32px;
    padding-bottom: 4px;
}

.home2-ticker-card {
    flex: 0 0 220px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 12px 16px;
    text-decoration: none;
}

.home2-ticker-comp {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 8px;
}

.home2-ticker-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    color: var(--home2-navy);
}

.home2-ticker-teams strong {
    font-size: 15px;
}

.home2-ticker-kickoff {
    font-size: 12px !important;
    color: #6b7280;
}

/* ---------- Top News tabs ---------- */
.home2-topnews {
    margin-bottom: 36px;
}

.home2-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.home2-tab-btn {
    background: #f3f4f6;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: #4b5563;
    padding: 8px 16px;
    border-radius: 999px;
}

.home2-tab-btn.is-active {
    background: var(--home2-gradient);
    color: #fff;
}

.home2-tab-panel {
    display: none;
}

.home2-tab-panel.is-active {
    display: block;
}

.home2-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.home2-news-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.home2-news-card:hover {
    border-color: #2563eb;
}

.home2-news-thumb {
    aspect-ratio: 16/9;
    background: #f3f4f6;
    overflow: hidden;
}

.home2-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home2-news-body {
    padding: 12px 14px 14px;
}

.home2-news-cat {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #2563eb;
    margin-bottom: 6px;
}

.home2-news-body h3 {
    font-size: 14px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    color: var(--home2-navy) !important;
    margin: 0 !important;
}

/* ---------- Latest News + sidebar row ---------- */
.home2-row {
    display: flex;
    gap: 28px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.home2-col-main {
    flex: 1.7;
    min-width: 0;
}

.home2-col-side {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.home2-latest-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.home2-latest-item {
    display: flex;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.home2-latest-item:last-child {
    border-bottom: none;
}

.home2-latest-thumb {
    flex-shrink: 0;
    width: 90px;
    height: 66px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
}

.home2-latest-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home2-latest-body h3 {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--home2-navy) !important;
    margin: 4px 0 !important;
    line-height: 1.3 !important;
}

.home2-latest-date {
    font-size: 11px;
    color: #9ca3af;
}

.home2-side-block {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 18px;
}

/* Next Match */
.home2-next-match {
    background: var(--home2-gradient);
    border: none;
    color: #fff;
}

.home2-next-match .home2-section-title {
    color: #fff !important;
    border-image: none;
    border-bottom-color: rgba(255,255,255,0.3);
}

.home2-nm-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 8px;
}

.home2-nm-vs {
    font-size: 11px;
    opacity: 0.8;
}

.home2-nm-meta {
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    margin: 0 0 16px;
}

.home2-countdown {
    display: flex;
    gap: 10px;
}

.home2-countdown > div {
    flex: 1;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    text-align: center;
    padding: 8px 4px;
}

.home2-cd-num {
    display: block;
    font-size: 18px;
    font-weight: 800;
}

.home2-cd-label {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Player Spotlight */
.home2-spotlight-card {
    display: block;
    text-decoration: none;
    text-align: center;
}

.home2-spotlight-photo {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    overflow: hidden;
    background: #f3f4f6;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home2-spotlight-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home2-spotlight-card h3 {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: var(--home2-navy) !important;
    margin: 0 0 2px !important;
}

.home2-spotlight-card p {
    font-size: 12px !important;
    color: #6b7280 !important;
    margin: 0 0 10px !important;
}

.home2-spotlight-link {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #2563eb;
}

/* ---------- Must Read ---------- */
.home2-mustread {
    margin-bottom: 40px;
}

.home2-mustread-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* ---------- Transfer CTA ---------- */
.home2-transfer-cta {
    background: var(--home2-gradient);
    border-radius: 14px;
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 28px;
    color: #fff;
}

.home2-transfer-cta-text {
    flex-shrink: 0;
    max-width: 260px;
}

.home2-transfer-cta-text h2 {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin: 0 0 6px !important;
}

.home2-transfer-cta-text p {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    margin: 0 0 16px;
}

.home2-cta-btn {
    display: inline-block;
    background: #fff;
    color: var(--home2-navy) !important;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 999px;
}

.home2-transfer-cta-cards {
    display: flex;
    gap: 12px;
    flex: 1;
    overflow-x: auto;
}

.home2-transfer-mini-card {
    flex: 0 0 160px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 14px;
    text-decoration: none;
}

.home2-transfer-mini-card h4 {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin: 8px 0 0 !important;
}

/* ==========================================================================
   Mobile responsiveness
   ========================================================================== */

@media (max-width: 900px) {
    .home2-hero-row {
        flex-direction: column;
    }

    .home2-row {
        flex-direction: column;
    }

    .home2-col-side {
        min-width: 0;
        width: 100%;
    }

    .home2-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home2-mustread-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home2-transfer-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .home2-transfer-cta-cards {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .home2-hero-img {
        height: 200px;
    }

    .home2-hero-textblock {
        padding: 18px 18px 20px;
    }

    .home2-hero-textblock h2 {
        font-size: 18px !important;
    }

    .home2-hero-side {
        padding: 4px 14px;
    }

    .home2-news-grid {
        grid-template-columns: 1fr;
    }

    .home2-mustread-grid {
        grid-template-columns: 1fr;
    }

    .home2-latest-item {
        gap: 10px;
    }

    .home2-latest-thumb {
        width: 70px;
        height: 54px;
    }

    .home2-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .home2-tab-btn {
        flex-shrink: 0;
    }

    .home2-countdown {
        gap: 6px;
    }

    .home2-cd-num {
        font-size: 15px;
    }

    .home2-wrap {
        padding: 20px 12px 40px;
    }
}