/*
Theme Name: Football
Theme URI: http://example.com/football
Author: Your Name
Author URI: http://example.com
Description: A custom theme for football website
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');

/* ================== 基础样式 ================== */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
}

h1,
h2,
h3 {
    margin: 20px 0;
    font-weight: bold;
}

a {
    color: #0066cc;
    text-decoration: none;
    /* 去掉所有链接的下划线 */
}

a:hover {
    color: #ffcc00;
    /* 鼠标悬停时的颜色变化 */
}

/* ================== 顶部导航 ================== */
.main-menu {
    list-style: none;
    margin: 0;
    padding: 15px 0;
    background: #333;
    text-align: center;
}

.main-menu li {
    display: inline-block;
    margin: 0 20px;
}

.main-menu a {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    /* 去掉所有链接的下划线 */
}

/* ================== 页面宽度容器 ================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ================== 卡片网格 ================== */
.match-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* ================== 比赛卡片 ================== */
.match-card {
    background: #fff;
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 130px;
    position: relative;
}

/* 联赛名 */
.match-league {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 6px;
}

/* 主队 vs 客队 */
.match-teams {
    font-size: 17px;
    font-weight: bold;
    color: #222;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-align: center;
}

/* 比分 */
.match-teams .score {
    color: #ffb300;
    font-weight: 700;
}

/* 时间 */
.match-meta {
    font-size: 13px;
    color: #888;
    text-align: center;
    margin-top: 8px;
}

/* 球队链接 */
.team-link {
    color: #0066cc;
    font-weight: bold;
    position: relative;
    z-index: 5;
    /* 确保在卡片内容最上层 */
}

.team-link:hover {
    color: #ffcc00;
}

/* ================== 卡片内部布局 ================== */
.match-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.match-details {
    font-size: 14px;
    text-align: right;
}

.match-details .score {
    font-size: 18px;
    font-weight: bold;
    color: #ffcc00;
}

/* ================== LIVE ================== */
.is-live {
    border-left: 4px solid red;
}

.live-badge {
    position: absolute;
    top: 8px;
    right: 10px;
    background: red;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
}

/* ================== 页脚 ================== */
footer {
    background: #333;
    color: white;
    padding: 20px;
    text-align: center;
}

footer a {
    color: #ffcc00;
}

footer ul {
    list-style: none;
    /* 禁用列表标记 */
    padding-left: 0;
    /* 去除默认的内边距 */
}

footer li {
    margin-bottom: 10px;
    /* 给列表项添加底部间距，避免显得拥挤 */
}

/* ================== 手机端 ================== */
@media (max-width: 768px) {
    .match-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 10px;
    }
}

/* ===== Team with Logo ===== */
.team {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ================== 更新部分：球队名字与队徽居中显示，队徽增大 ================== */
.team-header {
    text-align: center;
    padding: 40px 0;
}

.team-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.team-logo {
    width: 120px;
    /* 增大队徽图标 */
    height: 120px;
    /* 增大队徽图标 */
    object-fit: contain;
    /* 保证图标不会变形 */
    border-radius: 50%;
    /* 可选，圆形展示队徽 */
}

h1 {
    font-size: 36px;
    /* 更大字体 */
    font-weight: bold;
    color: #333;
    margin: 0;
}

/* ================== Top Banner（新增，不影响原样式） ================== */
.top-banner {
    height: 250px;
    background-size: cover;
    /* 不平铺，充满 */
    background-position: center;
    /* 中心裁切 */
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.top-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    /* 轻遮罩，保证文字可读 */
}

.top-banner-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 10px 20px;
}

.top-banner-inner .site-title {
    margin: 0;
    font-size: 35px;
    font-weight: 800;
    color: #ffffff;
}

.top-banner-inner .site-tagline {
    margin-top: 5px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
}

/* ================== 卡片网格 ================== */
.league-grid,
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* ================== 联赛卡片样式（和比赛卡片一致） ================== */
.league-card,
.team-card {
    background: #fff;
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 130px;
    position: relative;
}

.league-card a,
.team-card a {
    color: inherit;
    text-decoration: none;
}

/* 联赛名称 */
.league-card h2,
.team-card h3 {
    font-size: 18px;
    font-weight: bold;
    color: #222;
    text-align: center;
    margin-top: 10px;
}

/* 联赛 / 球队 Logo */
.league-card img,
.team-card img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 50%;
}

/* 球队卡片：队名 */
.team-card h3 {
    font-size: 18px;
    font-weight: bold;
    color: #222;
    text-align: center;
    margin-top: 10px;
}

/* ================== 卡片内部布局 ================== */
.match-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.match-details {
    font-size: 14px;
    text-align: right;
}

.match-details .score {
    font-size: 18px;
    font-weight: bold;
    color: #ffcc00;
}

/* ================== Standings ================== */
.standings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.standings-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.standings-header {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    text-align: center;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
}

.standings-row {
    display: grid;
    grid-template-columns: 40px 1fr 50px;
    align-items: center;
    padding: 10px 15px;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.standings-row:nth-child(even) {
    background: #f7f7f7;
}

.standings-head {
    font-weight: 700;
    background: #f0f0f0;
    font-size: 15px;
    padding: 8px 15px;
}

.standings-row .pts {
    font-weight: 700;
    color: #ffb300;
    text-align: right;
}

/* Highlight the top 3 */
.standings-row:nth-child(2) .rank {
    color: gold;
    font-weight: 700;
}

.standings-row:nth-child(3) .rank {
    color: silver;
}

.standings-row:nth-child(4) .rank {
    color: #cd7f32;
}

.standings-row .rank {
    font-weight: 600;
}

/* ================== Mobile ================== */
@media (max-width: 768px) {
    .standings-grid {
        grid-template-columns: 1fr;
    }

    .standings-header {
        font-size: 18px;
    }

    .standings-row {
        grid-template-columns: 40px 1fr 50px;
    }

    .standings-row .pts {
        font-size: 16px;
    }
}

/* ================== 栏目标题和栏目描述 ================== */
.section-header {
    background-size: cover;
    /* 背景图覆盖整个区域 */
    background-position: center;
    /* 背景图居中显示 */
    background-repeat: no-repeat;
    /* 避免背景图重复 */
    padding: 32px 36px;
    border-radius: 14px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    height: 300px;
    /* 固定高度 */
}

/* 背景图片上的文字部分 */
.section-header h1 {
    margin: 0 0 10px;
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.4px;
    z-index: 2;
    /* 确保标题在背景图之上 */
    position: relative;
}

.section-header p {
    margin: 0;
    max-width: 920px;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    z-index: 2;
    /* 确保描述在背景图之上 */
    position: relative;
}

/* ================== Mobile ================== */
@media (max-width: 768px) {
    .section-header {
        padding: 22px 20px;
        height: 200px;
        /* 移动端高度略小 */
    }

    .section-header h1 {
        font-size: 26px;
    }

    .section-header p {
        font-size: 14px;
    }
}



/* ================== 手机端导航栏菜单 ================== */

.site-nav {
    position: relative;
}

/* 优化汉堡按钮样式 */
.menu-toggle {
    display: none;
    background: none;
    color: #fff;
    font-size: 20px;
    padding: 12px 20px;
    cursor: pointer;
    text-align: center;
    width: 100%;
    /* 确保按钮宽度为100% */
}

/* ===== Mobile ===== */
@media (max-width: 768px) {

    /* 显示汉堡按钮 */
    .menu-toggle {
        display: block;
        background: #333;
        /* 深色背景 */
        color: #fff;
        /* 文字为白色 */
        font-size: 20px;
        /* 字体大小 */
        padding: 12px 20px;
        /* 按钮内边距 */
        text-align: center;
    }

    /* 主菜单默认隐藏 */
    .main-menu {
        display: none;
        flex-direction: column;
        background: #333;
        padding: 10px 0;
        margin-top: 20px;
    }

    /* 展开状态 */
    .main-menu.is-open {
        display: flex;
    }

    .main-menu li {
        display: block;
        margin: 0;
        text-align: center;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-menu a {
        display: block;
        padding: 14px 0;
        font-size: 16px;
        color: #fff;
        text-decoration: none;
        transition: color 0.3s;
    }

    .main-menu a:hover {
        color: #ffcc00;
    }
}

/* ================== 单篇文章页（Single Post） ================== */

.single-post-header {
    text-align: center;
    margin-bottom: 30px;
}

.single-post-header .post-title {
    margin: 0 0 12px;
    font-size: 34px;
    font-weight: 800;
    color: #222;
    line-height: 1.3;
}

.single-post-header .post-meta {
    font-size: 14px;
    color: #777;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .single-post-header .post-title {
        font-size: 26px;
    }
}

/* ================== 单篇文章布局 ================== */

.post-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* 主内容区 */
.post-main {
    flex: 3;
}

/* 主内容区与评论之间的间隔 */
.comment-box {
    margin-top: 20px;
}

/* 右侧栏 */
.post-sidebar {
    flex: 1;
}

/* 文章头部 */
.single-post-header {
    text-align: center;
    margin-bottom: 30px;
}

.single-post-header .post-title {
    margin: 0 0 12px;
    font-size: 34px;
    font-weight: 800;
    color: #222;
    line-height: 1.3;
}

.single-post-header .post-meta {
    font-size: 14px;
    color: #777;
}

/* 侧栏卡片 */
.sidebar-box {
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.sidebar-title {
    margin-top: 0;
    font-size: 16px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    margin-bottom: 10px;
}

.sidebar-list a {
    font-size: 14px;
    color: #0066cc;
}

/* ================== 手机端适配 ================== */

@media (max-width: 768px) {

    .post-layout {
        flex-direction: column;
    }

    .post-main,
    .post-sidebar {
        width: 100%;
    }

    .post-sidebar {
        margin-top: 30px;
    }

    .single-post-header .post-title {
        font-size: 26px;
    }
}

/* ================== 分页（Pagination） ================== */

.pagination {
    margin: 48px 0 20px;
    text-align: center;
}

/* 所有分页项 */
.pagination a,
.pagination span {
    display: inline-block;
    min-width: 38px;
    padding: 8px 12px;
    margin: 0 4px;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;

    color: #333;
    background: #ffffff;

    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);

    text-decoration: none;
}

/* 当前页 */
.pagination .current {
    background: #ffb300;
    color: #111;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

/* 上一页 / 下一页 */
.pagination .prev,
.pagination .next {
    font-weight: 700;
    padding: 8px 16px;
}

/* 禁用状态（比如第一页没有 prev） */
.pagination .disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ================== 分页（Pagination）Mobile ================== */
@media (max-width: 768px) {
    .pagination {
        margin: 32px 0 10px;
    }

    .pagination a,
    .pagination span {
        min-width: 34px;
        padding: 6px 10px;
        margin: 0 3px;
        font-size: 13px;
    }
}

/* =====================================================
   Home Page "More" Buttons
   Same visual style as pagination
===================================================== */

.more-link {
    margin: 32px 0 25px;
    /* 与上下内容拉开距离 */
    text-align: right;
}

.more-link a {
    display: inline-block;
    padding: 10px 18px;
    min-width: 180px;
    text-align: center;

    font-size: 14px;
    font-weight: 600;
    line-height: 1;

    color: #333;
    background-color: #ffffff;

    border: 1px solid #ddd;
    border-radius: 6px;

    text-decoration: none;
    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease;
}

/* Hover 状态（与分页按钮一致） */
.more-link a:hover {
    background-color: #ffb300;
    color: #111;
    border-color: #ffb300;
    transform: translateY(-1px);
}

/* Active 点击态 */
.more-link a:active {
    transform: translateY(0);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .more-link a {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }
}

/* =====================================================
   Tactical / Stats Article Cards
   Match-card Style (No Hover, Full Width, Read Button)
===================================================== */

/* 卡片基础 */
.match-card.post-card {
    position: relative;

    display: flex;
    flex-direction: column;

    padding: 20px 18px 56px;
    /* 给右下角按钮留空间 */

    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* 日期 */
.match-card.post-card .post-meta {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    margin-bottom: 8px;
}

/* 标题 */
.match-card.post-card .post-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    color: #111;
    margin-bottom: 10px;
}

/* 摘要 —— 占满宽度 */
.match-card.post-card .post-excerpt {
    width: 100%;

    font-size: 14px;
    line-height: 1.65;
    color: #444;

    margin: 0;
}

/* Read 按钮 —— 固定右下角 */
.match-card.post-card .team-link {
    position: absolute;
    right: 16px;
    bottom: 16px;

    display: inline-block;
    padding: 7px 14px;

    font-size: 13px;
    font-weight: 600;

    color: #333;
    background: #ffffff;

    border: 1px solid #ddd;
    border-radius: 6px;

    text-decoration: none;
    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.match-card.post-card .team-link:hover {
    background-color: #ffb300;
    color: #111;
    border-color: #ffb300;
}

/* =====================================================
   Mobile Adaptation
===================================================== */
@media (max-width: 768px) {

    /* 单列 */
    .match-grid {
        grid-template-columns: 1fr;
        row-gap: 14px;
    }

    .match-card.post-card {
        padding: 16px 14px 52px;
    }

    .match-card.post-card .post-meta {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .match-card.post-card .post-title {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .match-card.post-card .post-excerpt {
        font-size: 13px;
        line-height: 1.6;
    }

    .match-card.post-card .team-link {
        right: 14px;
        bottom: 14px;
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* ================== Back To Top Button ================== */

#back-to-top {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 999;

    width: 44px;
    height: 44px;

    border-radius: 50%;
    border: none;

    background: rgba(0, 0, 0, 0.45);
    color: #fff;

    font-size: 18px;
    font-weight: 700;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        background 0.2s ease;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* Mobile */
@media (max-width: 768px) {
    #back-to-top {
        right: 14px;
        bottom: 16px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* ================== Breadcrumb ================== */

.breadcrumb-wrapper {
    max-width: 1200px;
    margin: 12px auto 20px;
    padding: 0 16px;

    font-size: 13px;
    line-height: 1.6;
    color: #666;
}

.breadcrumb-wrapper a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-wrapper a:hover {
    text-decoration: underline;
}

.breadcrumb-wrapper .separator {
    margin: 0 6px;
    color: #aaa;
}

/* Mobile */
@media (max-width: 768px) {
    .breadcrumb-wrapper {
        font-size: 12px;
        margin: 8px auto 16px;
    }
}
/* 确保图片宽度为其父元素的80% */
.post-thumbnail img {
    width: 80%;  /* 设置图片宽度为文章内容框的80% */
    height: auto; /* 保持图片比例 */
    display: block; /* 移除图片下方的间距 */
    margin: 0 auto; /* 图片居中对齐 */
}


/* 评论的样式 */
.simple-comment-item {
    list-style: none;
}

.simple-comment {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.comment-author-name {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
}

.comment-time {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

.comment-content {
    line-height: 1.6;
}

.comment-pagination {
    margin-top: 20px;
    text-align: center;
}

/* ================== 增加文章边距 ================== */

.post-box {
    padding: 50px;
}

@media (max-width: 768px) {
    .post-box {
        padding: 25px;
    }
}

/* ================== Match Card Mobile Layout ================== */
@media (max-width: 768px) {

    .match-card .match-time {
        text-align: center;
        width: 100%;
        margin-bottom: 6px;
    }

    .match-card .team-link {
        display: block;
        text-align: center;
        margin: 0 auto;
    }

    .match-card>div:last-child {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

}

.match-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
}

/* ===== Article Card Layout Fix ===== */

.match-card.post-card {
    display: flex;
    flex-direction: row;
    /* 强制左右布局 */
    align-items: flex-start;
    gap: 16px;
}

/* 左侧图片 50% */
.match-card.post-card .post-thumb {
    width: 50%;
    flex-shrink: 0;
}

/* 图片自适应 */
.match-card.post-card .post-thumb img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

/* 右侧文字 */
.match-card.post-card .post-content {
    width: 60%;
    text-align: left;
    /* 确保桌面端左对齐 */
}

/* 确保文章信息全部左对齐 */
.match-card.post-card .post-meta,
.match-card.post-card .post-title,
.match-card.post-card .post-excerpt {
    text-align: left;
}

@media (max-width: 768px) {

    /* 手机端仍然左右布局 */
    .match-card.post-card {
        flex-direction: row;
        gap: 12px;
    }

    /* 图片略小一点 */
    .match-card.post-card .post-thumb {
        width: 38%;
    }

    .match-card.post-card .post-content {
        width: 62%;
        text-align: left;
        /* 手机端左对齐 */
    }

    /* 手机端字体稍微小一点 */
    .post-content .post-title {
        font-size: 15px;
        text-align: left;
    }

    .post-content .post-excerpt {
        font-size: 13px;
        line-height: 1.5;
        text-align: left;
    }

    .post-content .post-meta {
        text-align: left;
    }

}
/* =========================
   友情链接————开始
========================= */

/* 外层容器（可选扩展） */
.footer-links-wrap {
    margin-bottom: 15px;
}

/* ul 容器 */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    /* ✅ 自动换行 */
    gap: 8px 16px;
    /* 行距 / 列距 */

    list-style: none;
    padding: 0;
    margin: 0;
}

/* 每一项 */
.footer-links li {
    display: inline-flex;
}

/* 链接 */
.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    font-size: 13px;
    color: #ffc107;
    text-decoration: none;

    white-space: nowrap;
    /* 防止文字断行 */
}

/* hover 效果 */
.footer-links a:hover {
    color: #fff;
    text-decoration: none;
}

/* 图标 */
.footer-links .friend-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
}
/* =========================
   友情链接————结束
========================= */
/* =====================================================
   V2 VISUAL REFRESH - 2026-10
   1) Nav never stretches the page (flex-wrap + hamburger)
   2) Modern palette / typography / cards / buttons / footer
   (append layer: later rules override earlier ones)
===================================================== */

:root {
    --fc-green-950: #0a2318;
    --fc-green-900: #0e3320;
    --fc-green-700: #14532d;
    --fc-green-600: #16a34a;
    --fc-gold: #fbbf24;
    --fc-ink: #15211a;
    --fc-mute: #5f6f64;
    --fc-bg: #f3f6f2;
    --fc-card: #ffffff;
    --fc-line: #e2eae2;
}

html,
body {
    overflow-x: hidden;
}

body {
    font-family: 'Be Vietnam Pro', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    background: var(--fc-bg);
    color: var(--fc-ink);
    -webkit-font-smoothing: antialiased;
}

img,
video,
iframe {
    max-width: 100%;
}

/* ---------- Top nav: core fix ---------- */
header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: linear-gradient(180deg, var(--fc-green-950), var(--fc-green-900));
    box-shadow: 0 2px 14px rgba(10, 35, 24, .35);
}

.site-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.main-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2px 4px;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    background: transparent;
    text-align: center;
    min-width: 0;
}

.main-menu li {
    display: inline-block;
    margin: 0;
}

.main-menu a {
    display: inline-block;
    padding: 7px 12px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
    color: rgba(255, 255, 255, .88);
    text-decoration: none;
    white-space: normal;
    word-break: keep-all;
    border-radius: 999px;
    transition: background .18s ease, color .18s ease;
}

.main-menu a:hover,
.main-menu .current-menu-item a,
.main-menu .current_page_item a {
    color: var(--fc-gold);
    background: rgba(255, 255, 255, .08);
}

.menu-toggle {
    display: none;
    align-self: flex-end;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 14px;
    cursor: pointer;
    border: 0;
}

/* Medium screens (769-1023px): collapse to hamburger */
@media (min-width: 769px) and (max-width: 1023px) {
    .menu-toggle {
        display: block;
    }

    .main-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 6px 0 12px;
    }

    .main-menu.is-open {
        display: flex;
    }

    .main-menu li {
        display: block;
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, .08);
    }

    .main-menu a {
        display: block;
        width: 100%;
        border-radius: 0;
        padding: 12px 16px;
        font-size: 15px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .site-nav {
        justify-content: center;
    }

    .menu-toggle {
        display: block;
    }

    .main-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 6px 0 12px;
    }

    .main-menu.is-open {
        display: flex;
    }

    .main-menu li {
        display: block;
        width: 100%;
        margin: 0;
        border-top: 1px solid rgba(255, 255, 255, .08);
        text-align: center;
    }

    .main-menu a {
        display: block;
        width: 100%;
        border-radius: 0;
        padding: 13px 16px;
        font-size: 15px;
        color: #fff;
    }

    .main-menu a:hover {
        color: var(--fc-gold);
        background: transparent;
    }
}

/* ---------- Home hero banner ---------- */
.top-banner {
    min-height: 280px;
    height: auto;
    padding: 26px 16px;
}

.top-banner::after {
    background: linear-gradient(180deg, rgba(8, 30, 19, .25), rgba(8, 30, 19, .68));
}

.top-banner-inner .site-title {
    font-size: clamp(26px, 5vw, 42px);
    letter-spacing: -.5px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .4);
}

.top-banner-inner .site-tagline {
    font-size: clamp(14px, 2.4vw, 19px);
    font-weight: 500;
}

/* ---------- Section headers: darken for readability ---------- */
.section-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(10, 35, 24, .82) 0%, rgba(10, 35, 24, .45) 60%, rgba(10, 35, 24, .25) 100%);
    z-index: 1;
}

.section-header h1,
.section-header p {
    z-index: 2;
}

/* ---------- Cards ---------- */
.match-card,
.league-card,
.team-card,
.standings-card,
.sidebar-box {
    border: 1px solid var(--fc-line);
    box-shadow: 0 1px 3px rgba(21, 33, 26, .05), 0 10px 28px -18px rgba(21, 33, 26, .18);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.match-card:hover,
.league-card:hover,
.team-card:hover {
    transform: translateY(-3px);
    border-color: #cfe0cf;
    box-shadow: 0 16px 38px -20px rgba(21, 33, 26, .35);
}

.match-card .match-league {
    color: var(--fc-green-700);
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 11.5px;
}

.match-teams .score {
    color: #b45309;
}

.is-live {
    border-left: 4px solid #dc2626;
}

/* ---------- Buttons & pagination ---------- */
.more-link a,
.pagination a,
.pagination span,
.match-card.post-card .team-link {
    color: var(--fc-ink);
    border: 1px solid var(--fc-line);
    background: var(--fc-card);
    font-family: inherit;
}

.more-link a:hover,
.pagination .current,
.match-card.post-card .team-link:hover {
    background: var(--fc-green-700);
    color: #fff;
    border-color: var(--fc-green-700);
}

.pagination .current {
    box-shadow: 0 4px 12px -4px rgba(20, 83, 45, .5);
}

/* ---------- Headings & links ---------- */
h1,
h2,
h3 {
    color: var(--fc-ink);
    letter-spacing: -.01em;
}

a {
    color: var(--fc-green-700);
}

a:hover {
    color: #0e3320;
}

.team-link,
.sidebar-list a {
    color: var(--fc-green-700);
}

.single-post-header .post-title {
    color: var(--fc-ink);
}

.match-card.post-card .post-title a {
    color: var(--fc-ink);
}

.match-card.post-card .post-title a:hover {
    color: var(--fc-green-700);
}

/* ---------- Footer ---------- */
footer {
    background: linear-gradient(180deg, var(--fc-green-950), #06170f);
    color: rgba(255, 255, 255, .82);
}

footer a {
    color: var(--fc-gold);
}

footer a:hover {
    color: #fff;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
}

.footer-nav li {
    margin-bottom: 0;
}

/* ---------- Standings medal colors ---------- */
.standings-row:nth-child(2) .rank {
    color: #b45309;
}

.standings-row:nth-child(3) .rank {
    color: #64748b;
}

.standings-row:nth-child(4) .rank {
    color: #92400e;
}

/* ---------- Back to top ---------- */
#back-to-top {
    background: var(--fc-green-700);
}

#back-to-top:hover {
    background: var(--fc-green-900);
}
