/* 电视直播页面样式 */
body {
    background: #FBFBFB;
}
.main-content {
    min-height: calc(100vh - 64px);
    padding: 10px 0;
}

.content-layout {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 0 86px;
}

/* 左侧播放区域 */
.left-section {
    flex: 1;
    min-width: 0;
    min-height: 413px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.player-section {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.player-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 比例 */
    background-color: #333333;
    overflow: hidden;
}

.live-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}



/* 热播栏目 */
.programs-section {
    background: #ffffff;
    border-radius: 8px;
    padding: 0 22px 8px 22px;
}

.programs-section .section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.section-title-border {
    display: flex;
    align-items: center;
    gap: 5px;
}

.section-title-border img {
    width: 121px;
    height: 8px;
}

.section-title-text {
    font-family: Alibaba PuHuiTi 2.0;
    font-weight: 400;
    font-size: 22px;
    color: #42006D;
    line-height: 22px;
    letter-spacing: 6px;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(114px, 1fr));
    gap: 6px;
    padding: 0 10px;
}

.program-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    margin-bottom: 52px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.program-thumbnail {
    width: 88px;
    height: 88px;
    border-radius: 4px;
    background-color: #dddddd;
    overflow: hidden;
}

.program-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.program-thumbnail-img:hover {
    transform: scale(1.05);
}

.program-info {
    position: relative;
    width: 100%;
    height: 20px;
}

.program-name {
    text-align: center;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #333333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 右侧频道列表 */
.right-section {
    width: 232px;
    flex-shrink: 0;
    align-self: stretch;
    margin-top: -10px;
    background: #ffffff;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    box-shadow: 13px 3px 40px 0px rgba(0,0,0,0.0196);
}

.channel-list-section {
    background: #ffffff;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    box-shadow: 13px 3px 40px 0px rgba(0,0,0,0.0196);
    padding: 27px 0;
}

.channel-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.channel-item {
    position: relative;
    width: 100%;
    height: 37px;
    padding: 12px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.channel-item::before {
    position: absolute;
    left: 10px;
    top: 8px;
    content: "";
    width: 4px;
    height: 18px;
    background: linear-gradient( 180deg, #FF5198 0%, #FF94FD 100%);
    box-shadow: 7px 0px 10px 1px rgba(255,81,152,0.09), inset 0px 0px 1px 0px rgba(255,255,255,0.3);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.2s;
}

.channel-item.active::before {
    opacity: 1;
}

.channel-item:hover {
    background: #E8EDFF;
    padding-left: 12px;
    padding-right: 12px;
}

.channel-item.active {
    font-weight: 700;
    font-size: 20px;
    color: #333333;
    background: #E8EDFF;
}

.channel-name {
    font-weight: 400;
    font-size: 16px;
    color: #666666;
    line-height: 19px;
}

.channel-item.active .channel-name {
    color: #fa84b7;
}
