body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.4;
}

.container {
    max-width: 1200px; 
    margin: 15px auto 0;
    background: transparent;
}

/* 布局结构 */
.main-content-layout {
    display: flex;
    gap: 20px;
    padding: 0 20px 15px; 
}

@media (max-width: 1023px) {
    .main-content-layout {
        padding: 0 12px 15px;
    }
}

.left-column {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0; 
}

/* 公告栏样式 */
.announcement {
    position: relative;
    background: #fff;
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 12px;
    background-clip: padding-box;
}

/* 静态彩色渐变边框 */
.announcement::after {
    content: "";
    position: absolute;
    inset: -2px;
    background: linear-gradient(90deg, #667eea, #764ba2, #ff3b30);
    border-radius: 14px; 
    z-index: -1;
}

.announcement-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.announcement-content {
    flex: 1;
    font-weight: bold; 
    line-height: 1.5;
}

.announcement-content a {
    color: #fb5621;
    text-decoration: underline;
    font-weight: bold;
}

.announcement-content a:hover {
    opacity: 0.8;
}

.right-column {
    width: 320px;
    flex-shrink: 0;
}

/* 侧边栏样式 */
.sidebar-section {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    position: sticky;
    top: 65px; 
}

.sidebar-title {
    padding: 15px 20px;
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    border-bottom: 1px solid #f0f2f5;
    background: #f8faff;
}

.tv-sidebar-list {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tv-sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    border-radius: 8px; 
    transition: all 0.2s;
    border: 1px solid transparent;
}

.tv-sidebar-item:hover {
    background: #f8faff;
    border-color: #667eea;
}

.tv-sidebar-logo {
    width: 72px;
    height: 32px;
    border-radius: 4px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #eee;
    flex-shrink: 0;
}

.tv-sidebar-logo img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.tv-sidebar-logo i {
    font-size: 1.2rem;
    color: #667eea;
}

.tv-sidebar-name {
    font-size: 0.9rem;
    font-weight: 600;
}

/* 筛选器 */
.tournament-filter {
    display: flex;
    overflow-x: auto;
    padding: 12px 0;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
}

/* 仅在移动端且内容溢出时显示横向滚动条 */
@media (max-width: 1023px) {
    .tournament-filter {
        scrollbar-width: auto; 
    }
    .tournament-filter::-webkit-scrollbar {
        display: block;
        height: 4px;
    }
    .tournament-filter::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    .tournament-filter::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 10px;
    }
}

.tournament-tab {
    padding: 6px 16px;
    background: #fff;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    cursor: pointer;
}

.tournament-tab.active {
    background: #000;
    color: #fff;
}

/* 赛程列表 */
.schedule-section {
    margin-bottom: 0px;
}

.schedule-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-muted);
    padding: 10px 12px;
    text-transform: uppercase;
    background: var(--bg-color);
    position: sticky;
    top: 44px;
    z-index: 10;
    margin: 0; /* 移除负边距 */
    width: 100%; /* 使用标准宽度 */
}

@media (min-width: 1024px) {
    .schedule-title {
        top: 56px;
        margin: 0;
        padding-left: 12px;
    }
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 30px;
    width: 45px;
    height: 45px;
    background: #333;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #fb5621;
    transform: translateY(-5px);
}

.match-card {
    background: var(--card-bg);
    margin: 0 0 10px;
    border-radius: 12px; 
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02); 
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.1s;
    border: 1px solid #eee; 
    box-sizing: border-box; 
}

.match-card:active { transform: scale(0.98); }

.match-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.team {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 35%;
}

.team-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
    overflow: hidden; 
    flex-shrink: 0;
}

.team-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
    background: #fff; 
}

.team-logo.img-logo {
}

.team-name {
    font-size: 1rem;
    font-weight: 800;
    text-align: center;
}

.vs-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.match-time-info {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.match-time {
    font-weight: 800;
}

.league-badge {
    background: #f2f2f7;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70px; /* 限制宽度防止换行 */
    display: inline-block;
}

.score, .vs {
    font-size: 1.4rem;
    font-weight: 900;
    font-family: "DIN Alternate", sans-serif;
    color: #555;
}

.score { color: var(--accent-red); }

.watch-btn {
    margin-top: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 15px;
    border-radius: 20px;
    background: #7a8787; 
    color: #fff; 
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0; 
}

.watch-btn.live {
    background: #fb5621; 
    color: #fff;
    font-size: 0.8rem; 
}

.watch-btn i {
    font-size: 0.9rem;
}

/* 响应式优化 */
@media (min-width: 1024px) {
    .match-card { margin: 0 0 8px; }
    .match-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.05); }
}

@media (max-width: 1023px) {
    .container { max-width: 100%; margin-top: 0 !important; }
    .right-column { display: none; }
    .main-content-layout { padding: 8px; gap: 15px; } 
    .match-card { border-radius: 8px; border: 1px solid #eee; } 
    .score, .vs {
        font-size: 1.2rem;
    }
    .watch-btn {
        font-size: 0.75rem;
        padding: 4px 10px;
        white-space: nowrap;
        gap: 3px; 
    }
    .watch-btn.live {
        font-size: 0.75rem;
    }
    .team-name {
        font-size: 0.9rem;
        font-weight: 800;
        text-align: center;
    }
}
