/* 主页专用样式 */
.live-top-area {
    background: url('/pic/dingbu.jpg') no-repeat center center / cover;
    padding: 20px 0 30px;
    display: flex;
    justify-content: center;
}
.live-top-container {
    display: flex;
    max-width: 1400px;
    width: 100%;
    padding: 0 20px;
    gap: 20px;
    align-items: stretch; /* 使播放器和列表高度一致 */
    justify-content: center;
}
.main-player {
    flex: 1; /* 占据剩余空间 */
    aspect-ratio: 16 / 9; /* 16:9 宽高比 */
    min-height: 0;
    background: #000;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}
.main-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.main-player .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,107,0,0.8);
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 20px;
    cursor: pointer;
    border: none;
    transition: background 0.3s;
}
.main-player .play-btn:hover {
    background: rgba(255,107,0,1);
}

/* 顶级直播列表 - 固定宽度 250px，高度填满父容器 */
.top-live-list {
    flex: 0 0 250px; /* 固定宽度 */
    display: flex;
    flex-direction: column; /* 垂直排列 */
    gap: 10px; /* 卡片间距 */
    height: 100%; /* 高度填满父容器 */
    min-height: 0; /* 防止溢出 */
    overflow-y: auto; /* 如果内容过多可滚动，但应正好5个 */
}

/* 每个卡片平均分配高度 */
.top-live-card {
    flex: 1; /* 平均分配剩余空间 */
    background: rgba(0,0,0,0.6);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s;
    border: 2px solid transparent;
    width: 100%;
    /* 当内容超出时可滚动，但不会 */
    min-height: 0;
}
.top-live-card:hover {
    background: rgba(255,107,0,0.3);
    border-color: #ff6b00;
}
.top-live-card img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}
.top-live-card .info {
    color: #fff;
    flex: 1;
    overflow: hidden;
}
.top-live-card .info .title {
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.top-live-card .info .sub {
    font-size: 12px;
    color: #ccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 重点赛事列表 */
.key-events {
    max-width: 1400px;
    margin: 30px auto 0;
    padding: 0 20px;
}
.key-events .title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.key-events .title-bar h3 {
    font-size: 22px;
    color: #333;
}
.key-events .title-bar .arrows {
    display: flex;
    gap: 10px;
}
.key-events .title-bar .arrows span {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background: #eee;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    user-select: none;
}
.key-events .title-bar .arrows span:hover {
    background: #ddd;
}
.key-events .event-scroll {
    overflow: hidden;
    position: relative;
}
.key-events .event-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
    will-change: transform;
}
.key-event-card {
    flex: 0 0 calc(25% - 15px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 15px;
    position: relative;
    min-height: 140px;
}
.key-event-card .league {
    font-size: 13px;
    color: #ff6b00;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
}
.key-event-card .time-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 13px;
    color: #999;
}
.key-event-card .teams {
    margin-top: 25px;
}
.key-event-card .teams .team {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.key-event-card .play-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: #ff6b00;
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
}

/* 热点赛事 */
.hot-events {
    max-width: 1400px;
    margin: 40px auto 0;
    padding: 0 20px;
}
.hot-events .title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.hot-events .title-bar h3 {
    font-size: 22px;
    color: #333;
}
.hot-events .title-bar .more {
    color: #ff6b00;
    cursor: pointer;
    font-size: 14px;
}
.hot-events .hot-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.hot-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.2s;
}
.hot-card:hover {
    transform: scale(1.02);
}
.hot-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: #ddd;
}
.hot-card .info {
    padding: 10px 12px;
}
.hot-card .info .league-team {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}