/* 列表内容框 */
.list-box {
    border-radius: 5px;
    overflow: hidden;
    background-color: #FFFFFF;
    width: 100%;
    height: 100%;

    transition: all .4s ease-in-out;
}

.list-box:hover {
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .44);
}

.list-box .box-top {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.list-box .box-top .box-tag {
    z-index: 9;
    position: absolute;
    top: 12px;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    gap: 4px;
}

.list-box .box-top .box-tag .box-tag-left,
.list-box .box-top .box-tag .box-tag-right {
    font-family: var(--theme-global-content-font), sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    text-align: center;
    border-radius: 5px;
    padding: 2px 4px;
    display: inline-flex;
    align-items: center;
    justify-content: space-around;
}
.list-box .box-top .box-tag .box-tag-left{
    overflow: hidden;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 1 !important;
    white-space: normal;
    display: grid;
}
.list-box .box-top .box-tag .box-tag-right{
    background-color: #F9B702;
}

.list-box .box-top .box-tag .theme-red-bg-white-font {
    padding-right: 2px;
    background-color: var(--tag-color-bg8);
    color: var(--tag-color-text8);
    min-width: 55px;
    flex: none;
}
.list-box .box-top .box-tag .theme-blue-bg-white-font {
    padding-right: 2px;
    color: var(--tag-color-text);
    background: var(--theme-global-color-primary-gradient-tb3);
}


.list-box .box-top .box-tag .theme-orange-bg-white-font {
    background-color: #F9B702;
    color: var(--theme-color-whith);
}

.list-box .box-top .box-tag .theme-orange-bg-white-font img {
    width: 100%;
    height: 100%;
}

.list-box .box-top .box-tag .playing {
    width: 100%;
    height: 100%;
    vertical-align: baseline;
}

.list-box .box-top img {
    width: 100%;
    height: var(--layout-live-list-item-img-height-sm);
}
.list-box .box-top .plate{
    border-radius: 5px;
}

.list-box .box-top .box-icon-mask {
    width: 100%;
    /*height: 168px;*/
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none; /* 使得鼠标可以穿透遮罩层，直接作用于图片 */
    opacity: 0; /* 显示隐藏 */
    border-radius: 5px;

    background-color: rgba(0, 0, 0, 0.5); /* 示例：半透明黑色遮罩 */
    transition: opacity 0.3s ease-in-out; /* 可选：添加过渡动画 */

    display: flex;
    justify-content: center;
    align-items: center;
}

.list-box .box-top:hover .box-icon-mask {
    opacity: 1;
}

.list-box .box-top .box-icon-mask .box-play-img {
    width: 46px;
    height: 46px;
}
.list-box .box-top .tags_name {
    position: absolute;
    bottom: 0px;
    width: 100%;
    left: 0px;
    height: 28px;
}
.list-box .box-top .tags_name .tags_bg{
    height: 28px;
    width: 100%;
    position: absolute;
    top: 0px;
    left: 0px;
    background-color: #000;
    opacity: 0.3;
    border-radius: 0px 0px 5px 5px;
}
.list-box .box-top .tags_name .tag_body{
    font-family: var(--theme-global-content-font), sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-align: left;
    color: #fff;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
    position: absolute;
    top: 50%;
    transform: translate(0%, -50%);
    overflow: hidden;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    word-break: break-all;
    white-space: normal;
}

.list-box .box-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--layout-live-list-item-padding-vertical-sm) 12px;
    gap: var(--layout-live-list-item-gap-vertical-sm);
}

.list-box .box-bottom .box-tile {
    font-family: var(--theme-global-title-font), system-ui, sans-serif;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    color: #1D2129;
}
.list-box .box-bottom .box-tile .box-title-text{
    width: calc(100% - 52px);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.list-box .box-bottom .box-tile .box-time{
    width: 42px;
}

.list-box .box-bottom .box-bottom-anchor {
    width: 100%;
    display: flex;
    gap: 4px;
}

.list-box .box-bottom .box-bottom-left {
    /*margin: 10px;*/
}

.list-box .box-bottom .box-bottom-left img {
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.list-box .box-bottom .box-bottom-right {
    flex: auto;
    width: 100%;
}

.list-box .box-bottom .box-bottom-right .box-tile,
.list-box .box-bottom .box-bottom-right .box-username,
.list-box .box-bottom .box-bottom-right .box-pv {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.list-box .box-bottom .box-bottom-right .box-tile {
    height: 24px;
    margin-top: 12px;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    font-family: var(--theme-global-content-font), sans-serif;
    letter-spacing: 0em;
}

.list-box .box-bottom .box-bottom-right .box-info {
    display: flex;
    justify-content: space-between;
    height: 22px;
    font-size: 14px;
    line-height: 22px;
    font-family: var(--theme-global-content-font), sans-serif;
    font-weight: 400;
    letter-spacing: 0;
    color: #666;
}

.list-box .box-bottom .box-bottom-right .box-info .box-username {
    width: 50%;
}

.list-box .box-bottom .box-bottom-right .box-info .box-pv {
    text-align: right;
    width: 40%;
}

.list-box .box-bottom .box-bottom-right .box-info .box-pv img {
    margin: 3px 0;
}

.grid_list {
    display: grid;
    grid-template-columns: var(--layout-room-grid-template-columns-sm);
    grid-gap: var(--layout-room-grid-gap-sm);
    grid-column-gap: var(--layout-room-grid-gap-live-sm);
    grid-template-rows: var(--layout-room-grid-template-rows-sm);

    box-sizing: border-box;
}

.list-box-margin {
    margin: 0 0 16px 0;
}

.live_grid_list_sm {
    display: grid;
    grid-template-columns: var(--layout-grid-template-columns-sm);
    grid-gap: var(--layout-grid-gap-sm);
    grid-column-gap: var(--layout-grid-gap-live-sm);
    grid-template-rows: var(--layout-grid-template-rows-sm);
}
.live_grid_list_sm .list-box{
    height: var(--layout-grid-template-rows-sm);
}
.grid_list .list-box{
    height: var(--layout-room-grid-template-rows-sm);
    box-shadow: 0 4px 10px 0 #0000001A;
}
.grid_list .list-box .box-top img{
    height: var(--layout-room-live-list-item-img-height-sm);
}
.grid_list .list-box .box-bottom {
    padding: 6px 12px;
    gap: 4px;
}

.live_grid_list{
    display: grid;
    grid-template-columns: var(--layout-grid-template-columns);
    grid-gap: var(--layout-grid-gap);
    grid-column-gap: var(--layout-grid-gap-live);
    grid-template-rows: var(--layout-grid-template-rows);
}
.live_grid_list .box-top img {
    height: var(--layout-live-list-item-img-height);
}
.live_grid_list .list-box {
    height: var(--layout-grid-template-rows);
}
