/* 统一的视频卡片样式 */

/* 视频卡片基础样式 */
.video-card {
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;
}

.video-card:hover {
    transform: scale(1.05);
    z-index: 10;
}

/* 视频封面 */
.video-cover {
    position: relative;
    padding-bottom: 150%; /* 2:3 比例 */
    overflow: hidden;
    background: #1a1a1a;
}

.video-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-cover img {
    transform: scale(1.1);
}

/* 视频标签容器 */
.video-labels {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.video-labels span {
    position: absolute;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 3px;
}

/* 各种标签样式 */
.label-vip {
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #f9d423 0%, #ff4e50 100%);
    color: #fff;
}

.label-score {
    top: 8px;
    right: 8px;
    background: rgba(229, 9, 20, 0.9);
    color: #fff;
}

.label-year {
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
}

.label-episodes {
    bottom: 8px;
    right: 8px;
    background: rgba(229, 9, 20, 0.9);
    color: #fff;
    font-weight: 600;
}

.label-status {
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
}

/* 播放按钮 */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 50px;
    height: 50px;
    background-color: rgba(229, 9, 20, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
}

.video-card:hover .play-button {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.play-button i {
    color: white;
    font-size: 20px;
    margin-left: 3px;
}

/* 悬停信息 */
.video-hover-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .video-hover-info {
    opacity: 1;
}

.hover-title {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.hover-actors {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    margin-bottom: 8px;
}

.hover-content {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 视频信息 */
.video-info {
    padding: 8px;
}

.video-info .title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    margin: 0 0 4px 0;
}

.video-info .title a {
    color: #fff;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-info .actors {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin: 4px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.actor-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.actor-link:hover {
    color: #10b981;
}

/* 标签和地区 */
.tags-region {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.tag-label,
.region-label {
    display: inline-block;
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag-label {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2px 13px;  /* 增加左右内边距，从6px增加到13px */
    white-space: nowrap;  /* 防止文字换行 */
    min-width: fit-content;  /* 确保标签宽度适应内容 */
}

.tag-label:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.region-label {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.region-label:hover {
    background: rgba(16, 185, 129, 0.25);
    color: #34d399;
}