/* 皇家马德里主题视频容器样式 */
.madrid-video-container {
    width: 100%;
    margin-bottom: 20px;
    background: #f7f7f7;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9比例 */
    overflow: hidden;
}

/* 皇马主题背景样式 */
.madrid-bg-pattern {
    position: relative;
}

.madrid-bg-pattern::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color, #00529f); /* 皇马深蓝色 */
    background-image: 
        radial-gradient(circle at 20% 30%, var(--spot-color-1, rgba(255, 255, 255, 0.4)) 10%, transparent 40%),
        radial-gradient(circle at 80% 70%, var(--spot-color-2, rgba(255, 255, 255, 0.3)) 15%, transparent 45%),
        linear-gradient(60deg, transparent 10%, var(--gradient-color, rgba(240, 240, 240, 0.6)) 80%, transparent 100%);
    opacity: 0.9;
    z-index: 1;
}

/* 体育图标背景 - 皇马主题 */
.sport-icons-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 0.25;
    pointer-events: none;
    overflow: hidden;
}

/* 皇马皇冠图标 */
.sport-icons-bg.madrid-crown::before {
    content: "";
    position: absolute;
    width: 80px;
    height: 40px;
    background-image: 
        radial-gradient(circle at 16px 10px, white 4px, transparent 5px),
        radial-gradient(circle at 40px 10px, white 4px, transparent 5px),
        radial-gradient(circle at 64px 10px, white 4px, transparent 5px),
        linear-gradient(to bottom, transparent 14px, white 15px, white 18px, transparent 19px);
    top: 15%;
    left: 10%;
    transform: rotate(5deg);
}

/* 皇马足球图标 */
.sport-icons-bg.madrid-ball::before {
    content: "";
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: transparent;
    border: 3px solid white;
    background-image: 
        linear-gradient(to right, transparent 39%, white 40%, white 60%, transparent 61%),
        linear-gradient(to bottom, transparent 39%, white 40%, white 60%, transparent 61%),
        radial-gradient(circle at 15% 15%, white 3%, transparent 4%),
        radial-gradient(circle at 85% 15%, white 3%, transparent 4%),
        radial-gradient(circle at 85% 85%, white 3%, transparent 4%),
        radial-gradient(circle at 15% 85%, white 3%, transparent 4%),
        radial-gradient(circle at 50% 50%, white 3%, transparent 4%);
    top: 65%;
    left: 20%;
    transform: rotate(20deg);
}

/* 皇马队徽轮廓 */
.sport-icons-bg.madrid-emblem::after {
    content: "";
    position: absolute;
    width: 100px;
    height: 120px;
    background-color: transparent;
    border: 3px solid white;
    border-radius: 50% 50% 0 0;
    top: 25%;
    right: 15%;
    box-sizing: border-box;
}

/* 添加队徽内部装饰 */
.sport-icons-bg.madrid-emblem-inner {
    position: absolute;
    width: 80px;
    height: 20px;
    top: 55%;
    right: 25%;
    background-image: 
        linear-gradient(to bottom, white 0%, white 3px, transparent 4px),
        linear-gradient(to bottom, transparent 16px, white 17px, white 20px, transparent 21px);
    z-index: 3;
}

.video-thumbnail .video-link {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    text-decoration: none;
    z-index: 5;
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.2);
    color: white;
    z-index: 10;
    transition: background 0.3s ease;
}

/* 播放按钮 - 皇马主题 */
.play-button {
    width: 70px;
    height: 70px;
    background: rgba(0, 82, 159, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, background 0.3s ease;
}

.play-triangle {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 25px;
    border-color: transparent transparent transparent #ffffff;
    margin-left: 5px;
}

.video-title {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    padding: 0 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.video-info {
    padding: 15px;
    background: #fff;
    border-top: 1px solid #eee;
}

.video-source {
    font-size: 14px;
    margin-bottom: 5px;
}

.video-source a {
    color: #00529f;
    font-weight: bold;
    text-decoration: none;
}

.video-source a:hover {
    text-decoration: underline;
}

.video-tip {
    font-size: 12px;
    color: #888;
    margin: 0;
}

/* 鼠标悬停效果 - 皇马主题 */
.video-link:hover .play-button {
    transform: scale(1.1);
    background: rgba(0, 82, 159, 1);
}

.video-link:hover .thumbnail-overlay {
    background: rgba(0,0,0,0.4);
}

/* 移动端适配 */
@media (max-width: 780px) {
    .play-button {
        width: 50px;
        height: 50px;
    }
    
    .play-triangle {
        border-width: 10px 0 10px 18px;
    }
    
    .video-title {
        font-size: 16px;
    }
    
    .sport-icons-bg.madrid-crown::before,
    .sport-icons-bg.madrid-ball::before {
        transform: scale(0.7);
    }
    
    .sport-icons-bg.madrid-emblem::after {
        width: 70px;
        height: 90px;
    }
} 