/* 世界杯直播板块样式 */
.worldcup-live-section {
    margin: 40px 0;
}

.live-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.live-section-title {
    display: flex;
    align-items: center;
}

.live-section-title img {
    width: 32px;
    height: 32px;
    margin-right: 10px;
}

.live-section-title h2 {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    font-family: "Alimama FangYuanTi VF", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", SimHei, Arial, Helvetica, sans-serif;
}

.live-section-more {
    display: flex;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 17px;
}

.live-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.live-card-grid a{
    display: contents;
}
.live-card-grid .list-box .box-top .plate {
    height: auto;
    aspect-ratio: 332 / 180;
}

/* 世界杯直播卡片样式 - 举杯世界杯板块 */
.worldcup-live-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    background: #000000;
}

.live-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 160px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.live-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 右上角：直播状态（紫粉渐变圆 + 三条白杠） */
.live-card-status {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.live-card-status--live {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
}

.live-card-status-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 14px;
}

.live-card-status-bars i {
    width: 3px;
    background: #ffffff;
    border-radius: 2px;
    animation: live-bars 0.8s ease-in-out infinite;
}

.live-card-status-bars i:nth-child(1) { height: 6px; animation-delay: 0s; }
.live-card-status-bars i:nth-child(2) { height: 10px; animation-delay: 0.15s; }
.live-card-status-bars i:nth-child(3) { height: 4px; animation-delay: 0.3s; }

@keyframes live-bars {
    0%, 100% { transform: scaleY(0.6); }
    50% { transform: scaleY(1); }
}

.live-card-status--replay img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* 主图底部叠加：主播 + 观看数 */
.live-card-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
}

.live-card-anchor {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.live-card-anchor img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.live-card-anchor span {
    font-size: 14px;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-card-views {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.live-card-views img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.live-card-views span {
    font-size: 14px;
    color: #ffffff;
}

/* 下方信息区：黑底 + 标题 + 联赛标签 */
.live-card-info {
    padding: 14px 16px 16px;
    background: #000000;
}

.live-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.live-card-league {
    display: inline-block;
    background: #282C4C;
    border-radius: 4px;
    padding: 5px 14px;
}

.live-card-league span {
    font-size: 13px;
    color: #86909C;
}

/* 响应式布局 */
@media (max-width: 1200px) {
    .live-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .live-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .live-card-grid {
        grid-template-columns: 1fr;
    }
    
    .live-section-title h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .live-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .live-section-more {
        align-self: flex-end;
    }
}

/* 世界杯单个视频轮播样式 */
.worldcup-single-video-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 30px;
}

.worldcup-single-video-banner .video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.worldcup-single-video-banner .video-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.worldcup-single-video-banner .worldcup-slide-dplayer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.worldcup-single-video-banner .carousel-video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    z-index: 3;
    text-align: center;
}

.worldcup-single-video-banner .go-live-room a {
    display: inline-block;
    padding: 10px 30px;
    background: #E21C34;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
    transition: all 0.3s;
}

.worldcup-single-video-banner .go-live-room a:hover {
    background: #c1182c;
    transform: scale(1.05);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .worldcup-single-video-banner {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .worldcup-single-video-banner {
        height: 200px;
    }
}

/* ========== 世界杯首页 淘汰赛对阵图（与 schedule 页效果一致：1/4+半决赛一体、半决赛大半在1/4区） ========== */
.knockout-bracket {
    background: #000;
    border-radius: 8px;
    padding: 24px 16px;
    overflow-x: auto;
    box-sizing: border-box;
}

.knockout-bracket .bracket-container {
    min-width: 1100px;
    height: 700px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
}

/* 左右两侧小组赛效果：每侧 6 组分两列，列内等距，一列顶对齐、一列底对齐 */
.knockout-bracket .bracket-group-stage {
    height: 700px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
    flex-shrink: 0;
    width: 122px;
}

.knockout-bracket .bracket-group-stage.left {
    margin-right: 12px;
}

.knockout-bracket .bracket-group-stage.right {
    margin-left: 12px;
    order: 10;
}

.knockout-bracket .bracket-group-col {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    width: 56px;
    flex-shrink: 0;
    gap: 64px;
}

.knockout-bracket .bracket-group-col.col-top {
    align-self: flex-start;
}

.knockout-bracket .bracket-group-col.col-bottom {
    align-self: flex-end;
}

.knockout-bracket .bracket-group-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.knockout-bracket .third-place .match-header{
    flex-direction: column;
}

.knockout-bracket .bracket-group-letter {
    font-size: 16px;
    font-weight: 600;
    color: #4ade80;
    line-height: 1;
}

.knockout-bracket .bracket-group-slots {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
}

.knockout-bracket .bracket-group-slot {
    height: 28px;
    background: #3d3d3d;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}
.knockout-bracket .bracket-group-slot img{
    text-align: center;
    max-height: 100%;
}
.knockout-bracket .bracket-group-slot span{
    display: none;
    max-height: 100%;
}

.knockout-bracket .bracket-column {
    height: 700px;
    width: 164px !important;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    flex-shrink: 0;
    position: relative;
}
.knockout-bracket .bracket-column.center{
    justify-content: center;
}

.knockout-bracket .bracket-quarter-semifinal {
    position: relative;
    height: 700px;
    width: 208px;
    flex-shrink: 0;
}

.knockout-bracket .bracket-quarter-semifinal .round-8-cards,
.knockout-bracket .bracket-quarter-semifinal .round-4-cards {
    position: absolute;
    top: 0;
    height: 100%;
    width: 164px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    box-sizing: border-box;
}

.knockout-bracket .bracket-quarter-semifinal.left .round-8-cards {
    left: 0;
    z-index: 1;
}

.knockout-bracket .bracket-quarter-semifinal.left .round-4-cards {
    left: 44px;
    z-index: 2;
}

.knockout-bracket .bracket-quarter-semifinal.right .round-8-cards {
    right: 0;
    left: auto;
    z-index: 1;
}

.knockout-bracket .bracket-quarter-semifinal.right .round-4-cards {
    right: 44px;
    left: auto;
    z-index: 2;
}

.knockout-bracket .match-card {
    background: #2d2d2d;
    border-radius: 8px;
    padding: 10px 12px;
    margin: 6px 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.knockout-bracket .match-header {
    margin-bottom: 8px;
}

.knockout-bracket .match-header .match-time,
.knockout-bracket .match-header .round-name,
.knockout-bracket .match-header .round-title {
    font-size: 13px;
    color: #ffffff;
}

.knockout-bracket .team-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    min-height: 28px;
}
.knockout-bracket .team-row .df_flag{
    width: 48px;
    height: 32px;
    background-color: #D9D9D9;
}
.final-header .df_flag{
    width: 100px;
    height: 88px;
    background-color: #D9D9D9;
}

.knockout-bracket .team-row .team-flag,
.knockout-bracket .team-row .team-flag-placeholder {
    width: 24px;
    height: 18px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.knockout-bracket .team-row .team-flag-placeholder {
    background: #555;
}

.knockout-bracket .team-row .team-name {
    flex: 1;
    font-size: 14px;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.knockout-bracket .team-row .team-score {
    font-size: 14px;
    color: #ffffff;
    min-width: 18px;
    text-align: right;
}

.knockout-bracket .bracket-quarter-semifinal.right .team-row {
    flex-direction: row-reverse;
}

.knockout-bracket .bracket-quarter-semifinal.right .team-row .team-score {
    text-align: left;
}

.knockout-bracket .final-header {
    margin-bottom: 10px;
    position: absolute;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
}

.bracket-column.center .final-header{
    width: 101px;
    height: 88px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bracket-column.center .final-header img{
    max-width: 100%;
    height: auto;
}