/**
 * 2026世界杯专题 - 子页面样式
 * 注意：需要同时引入 common.css
 */

/* 修复导航栏定位 */
.top_nav .navbar .navbar-list {
    position: static;
}

/* 顶部Banner区域 */
.top-banner {
    width: 100%;
    height: 550px;
    background: url('../images/lobby/banner_1.jpg?v=44') center center no-repeat;
    background-size: 100% 100%;
    position: relative;
    z-index: 1;
}
.top-banner2 {
    width: 100%;
    height: 550px;
    background: url('../images/lobby/banner_23.jpg?v=12') center center no-repeat;
    background-size: 100% 100%;
    position: relative;
    z-index: 1;
}

.top-banner-content {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* 主内容区域 */
.main-content {
    width: 100%;
    background: url('../images/lobby/bg-2.jpg') top center no-repeat;
    background-size: 100% auto;
    padding-bottom: 50px;
    /* 确保主内容在 banner 之上，避免被透明层挡点击 */
    position: relative;
    z-index: 2;
}

.content-wrapper {
    width: 1200px;
    margin: 0 auto;
    padding-top: 25px;
    display: flex;
    flex-direction: column;
}

/* 二级菜单Tab导航 */
.sub-tabs,
.sub-nav-tabs {
    display: flex;
    height: 80px;
    width: 100%;
    background: rgba(0, 0, 0, 0.40);
}

.sub-tab,
.sub-nav-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #999999;
    font-size: 20px;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
    border: none;
    background: transparent;
    text-decoration: none;
}

.sub-tab:hover,
.sub-tab.active,
.sub-nav-tab:hover,
.sub-nav-tab.active {
    color: #ffffff;
}

.sub-tab.active::after,
.sub-nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #B69F73;
    background-size: 200% 200%;
    animation: gradientMove 3s ease infinite;
}

.sub-tab img,
.sub-nav-tab img {
    width: 20px;
    height: 20px;
}

/* Tab面板 */
.tab-panel {
    display: none;
    margin-top: 20px;
}

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

/* 日期选择器 */
.schedule-date-picker {
    display: flex;
    align-items: center;
    height: 60px;
    /*background: url('../images/2026/bg_schedule.png') center center no-repeat;*/
    background-size: cover;
    position: relative;
    z-index: 100;
    pointer-events: auto;
    background: #242a3f;
    margin-bottom: 20px;
}

.date-arrow {
    width: 40px;
    height: 100%;
    background: #717687;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.3s;
}

.date-arrow:hover {
    opacity: 0.8;
}

.date-arrow.left svg {
    transform: rotate(180deg);
}

.date-list-wrapper {
    flex: 1;
    overflow: hidden;
    height: 100%;
}

.date-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
    height: 100%;
}

.date-list::-webkit-scrollbar {
    display: none;
}

.date-item {
    flex-shrink: 0;
    padding: 0 8px;
    text-align: center;
    cursor: pointer;
    color: #999999;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    display: flex;
    align-items: center;
}

.date-item.active {
    color: #ffffff;
}

.date-item-divider {
    position: absolute;
    left: -4px;
    top: 0;
    width: 1px;
    height: 40px;
    /*background: url('../images/2026/icon_line_blue.webp') center center no-repeat;*/
    /*background-size: cover;*/
}

/* 小组Tab */
.group-tab-btn {
    padding: 4px 12px;
    background: transparent;
    border: none;
    color: #999;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 4px;
    position: relative;
    z-index: 101;
    pointer-events: auto;
}

/* 小组Tab容器置顶，避免被透明层遮挡 */
#groupTabs,
#groupTabs2022 {
    position: relative;
    z-index: 101;
    pointer-events: auto;
}

.group-tab-btn:hover,
.group-tab-btn.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* 积分榜 */
.standings-header {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    background: url('../images/2026/bg_standings.png') center center no-repeat;
    background-size: cover;
}

.standings-header h2 {
    font-size: 20px;
    font-weight: 500;
    color: #ffffff;
}

.standings-group {
    display: flex;
    flex-direction: column;
    background: #1e2231;
}

.group-header {
    display: flex;
    align-items: center;
    gap: 100px;
    height: 50px;
    background: linear-gradient(90deg, #0F0A00 0%, rgba(15, 10, 0, 0) 100%);
    color: #ffffff;
    font-size: 14px;
}

.group-name-col {
    width: 320px;
    text-align: center;
    flex-shrink: 0;
}

.group-stats-cols,
.team-stats-cols {
    display: flex;
    justify-content: space-between;
    flex: 1;
    padding-right: 100px;
}

.group-stats-cols span,
.team-stats-cols span {
    width: 45px;
    text-align: center;
    font-size: 14px;
    color: #ffffff;
}

.team-row {
    display: flex;
    align-items: center;
    gap: 100px;
    height: 50px;
    border-top: 1px solid #39316F;
}

.team-row:first-child {
    border-top: none;
}

.team-rank-info {
    width: 320px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding-left: 66px;
    flex-shrink: 0;
}

.team-flag-name {
    display: flex;
    align-items: center;
    gap: 20px;
}

.team-flag-name .team-flag {
    width: 50px;
    height: 30px;
    object-fit: cover;
}

.team-flag-name .team-name {
    font-size: 14px;
    color: #ffffff;
}

/* 射手榜/球队统计 */
.stats-page {
    display: flex;
    width: 100%;
    min-height: 600px;
    border-radius: 24px;
    overflow: hidden;
    margin-top: 20px;
}

.stats-sidebar {
    width: 260px;
    background: url('../images/top/bg_left.png') center center no-repeat;
    background-size: cover;
    flex-shrink: 0;
    padding: 0 10px 32px;
}

.stats-sidebar-title {
    height: 60px;
    line-height: 60px;
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    color: #ffffff;
}

.stats-category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stats-category-item {
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-size: 18px;
    cursor: pointer;
    color: #999999;
    transition: color 0.3s;
}

.stats-category-item:hover {
    color: #ffffff;
}

.stats-category-item.active {
    color: #ffffff;
    background: url('../images/top/bg_menu_active.png') center center no-repeat;
    background-size: cover;
}

.stats-main {
    flex: 1;
    background: #1e2231;
    position: relative;
}

/* 统计表格 */
.stats-table {
    width: 100%;
}

.stats-table-header,
.stats-table-row {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #2B3144;
}

.stats-table-header {
    background: linear-gradient(90deg, #0C051F 0%, rgba(0, 0, 0, 0) 100%);
    color: #fff;
    font-size: 14px;
}

.stats-table-row {
    color: #fff;
    font-size: 14px;
}

.stats-table-row:hover {
    background: rgba(255,255,255,0.05);
}

/* 球员信息样式 */
.player-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(42, 31, 77, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

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

.player-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(42, 31, 77, 1);
}

.player-name {
    color: #fff;
    font-size: 14px;
}

.col-rank {
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.col-player {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 200px;
}

/* 射手榜的球队列（不显示国旗） */
.top-content-wrapper .col-team {
    width: 150px;
    text-align: center;
}

/* 球队统计的球队列（显示国旗） */
.teams-content-wrapper .col-team {
    flex: 1;
    display: flex;
    align-items: center;
}

.teams-content-wrapper .team-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.teams-content-wrapper .team-flag {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.teams-content-wrapper .team-name {
    color: #fff;
    font-size: 14px;
}

.col-value {
    width: 80px;
    text-align: right;
    font-weight: 600;
}

.col-value.gold {
    color: #FFD700;
}

/* 淘汰赛 */
.knockout-content-wrapper {
    width: 100%;
}

.knockout-bracket {
    width: 100%;
    height: 720px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.30);
    position: relative;
    overflow: hidden;
}

.knockout-bracket-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.bracket-group {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bracket-group-8 {
    z-index: 50;
}

.bracket-group-8-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

.bracket-group-left,
.bracket-group-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    position: relative;
}

.bracket-group-4 {
    width: 720px;
    height: 490px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 40;
}

.bracket-group-4-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

.bracket-group-2 {
    width: 660px;
    height: 150px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 30;
}

.bracket-group-2-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

.bracket-group-1 {
    width: 190px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
}

.bracket-group-1-content {
    display: flex;
    flex-direction: column;
    gap: 65px;
}

.match-box {
    width: 190px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 10;
    height: 150px;
}

.match-box-final {
    height: 240px;
    margin-top: 58px;
    padding-top: 80px;
    justify-content: space-evenly;
    gap: 5px;
}

/* 待定图标的特殊样式 */
.team-flag-pending {
    object-fit: contain !important;
}

.match-trophy {
    width: 82px;
    height: 127px;
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
}

.match-box-header {
    text-align: center;
}

.match-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 500;
    line-height: 22px;
    margin-bottom: 4px;
}

.match-date {
    color: #999;
    font-size: 14px;
}

.match-box-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.team-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.team-slot .team-flag {
    width: 50px;
    height: 30px;
    object-fit: cover;
}

.team-slot .team-flag.team-flag-pending {
    object-fit: contain;
}

.team-seed {
    color: #ffffff;
    font-size: 12px;
    text-align: center;
}

.match-score {
    flex-shrink: 0;
}

.vs-text {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

.score-text {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

.match-wrapper {
    position: relative;
}

.match-line {
    position: absolute;
    z-index: 20;
}

.knockout-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    min-width: 180px;
}

.round-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    background: linear-gradient(90deg, #1153C5 0%, #14125B 100%);
    padding: 8px 20px;
    border-radius: 4px;
}

.knockout-match {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    overflow: hidden;
    width: 160px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.knockout-team {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background 0.3s;
}

.knockout-team:last-child {
    border-bottom: none;
}

.knockout-team .team-flag {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
}

.knockout-team span {
    color: #999;
    font-size: 14px;
}

.knockout-team .score {
    margin-left: auto;
    font-weight: 600;
}

.knockout-team.winner span {
    color: #fff;
}

.knockout-team.winner .score {
    color: #FFD700;
}

.knockout-team.champion {
    background: linear-gradient(90deg, #FFD700 0%, #FFA500 100%);
}

.knockout-team.champion span {
    color: #000;
}

.final-match {
    border: 2px solid #FFD700;
}

/* 敬请期待 */
.coming-soon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: rgba(0, 0, 0, 0.30);
}

.coming-soon-box img {
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
}

.coming-soon-box p {
    font-size: 18px;
    color: #999;
}

/* 视频/新闻列表 */
.detail-banner {
    width: 100%;
    height: 550px;
    background: url('../images/lobby/banner_2.jpg') center center no-repeat;
    background-size: cover;
}

.detail-content {
    width: 100%;
    background: url('../images/lobby/by_details.jpg') center center no-repeat;
    background-size: cover;
    padding: 50px 0;
    box-sizing: border-box;
}
.detail-content * {
    box-sizing: border-box;
}

.detail-wrapper {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-title-bar {
    display: flex;
    align-items: center;
    padding: 0 26px;
    gap: 10px;
    width: 100%;
    height: 60px;
    background: url('../images/lobby/bg_video_title.png') center center no-repeat;
    background-size: cover;
}

.detail-title-bar img {
    width: 26px;
}

.detail-title-bar h2 {
    font-size: 24px;
    font-weight: 500;
    color: #ffffff;
}

.detail-title-bar .update-time {
    margin-left: auto;
    font-size: 20px;
    color: #ffffff;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18.5px;
    padding: 30px;
    background: #1E2231;
}
#newsGrid {
    background: rgba(0,0,0,.3);
    gap: 20px;
}
/* 媒体卡片 */
.media-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
}

.media-thumb {
    width: 100%;
    height: 150px;
    position: relative;
    border-radius: 0 15px 15px 15px;
    overflow: hidden;
    background: #000000;
}
.media-info-bar{
    position: absolute;
    bottom: 0;
    z-index: 10;
    width: 100%;
    background-color: #0000004d;
    color: #fff;
    font-size: 14px;
    line-height: 30px;
}
.media-info-bar .hot-icon{
    width: 18px;
    height: 18px;
}

.media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: transparent;
}

.media-recommend {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.media-recommend img {
    height: 26px;
    width: auto;
}

.media-info-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    z-index: 2;
}

.media-info-bar .hot-icon {
    width: 18px;
    height: 18px;
    position: static;
}

.media-info-bar .heat,
.media-info-bar .duration {
    font-size: 14px;
    color: #ffffff;
}

.media-info-bar .duration {
    position: absolute;
    right: 10px;
    z-index: 1;
    margin-left: auto;
}

.media-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0 !important;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.media-card:hover .media-play-overlay {
    opacity: 1 !important;
}

.media-play-overlay .play-icon {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    object-fit: contain;
}

.media-title {
    font-size: 16px;
    line-height: 24px;
    color: #ffffff;
    height: 48px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.media-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.media-time {
    font-size: 14px;
    color: #999999;
}

.detail-btn {
    width: 110px;
    height: 30px;
    border: 1px solid #B69F73;
    border-radius: 0 15px 15px 15px;
    background: transparent;
    color: #B69F73;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.detail-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 16px 32px;
    gap: 8px;
}

.pagination .page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #39316F;
    background: transparent;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination .page-btn:hover,
.pagination .page-btn.active {
    background: #3359E7;
    border-color: #3359E7;
}

/* 统计分页样式 */
.stats-pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 20px;
    gap: 10px;
}

.pagination-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    color: #999;
    font-size: 14px;
}

/* 动画 */
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
