/*
Theme Name: CleanVideoTheme
Description: A minimal, lightweight WordPress theme with clean video display
Version: 1.0
Author: CleanVideoTheme
*/

/* Reset default WordPress styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    margin-left: 600px;
    margin-right: 600px;
}

/* Video styling */
.wp-block-video video {
    max-width: 500px;
    width: 500px;
    height: 500px;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    object-fit: cover;
}

.wp-block-video {
    margin: 0 auto;
    padding: 0;
}

/* Video grid layout */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.video-item {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: none;
    width: 100%;
    max-width: none;
}

.video-item:hover {
    transform: translateY(-5px);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* 观看人数和时间显示 */
.video-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    padding: 6px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.views-count {
    display: flex;
    align-items: center;
    gap: 4px;
}

.views-count::before {
    content: '👁';
    font-size: 14px;
}

.video-duration {
    background: rgba(0, 0, 0, 0.9);
    padding: 2px 6px;
    border-radius: 2px;
    font-weight: 500;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 123, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.play-button:hover {
    background: rgba(0, 123, 255, 1);
}

.play-button::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 15px solid white;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    margin-left: 5px;
}

.video-info {
    padding: 15px;
    background: white;
}

.video-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.video-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* Content area */
.content-area {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Remove WordPress default block styling */
.wp-block {
    margin: 0;
    padding: 0;
}

.wp-block-video figure {
    margin: 0;
    padding: 0;
}

/* Responsive design */
@media (max-width: 1200px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        margin-left: 20px;
        margin-right: 20px;
    }

    .content-area {
        padding: 10px;
    }

    .wp-block-video video {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
}

/* 左下/右下浮动徽章 */
.views-badge {
    position: absolute;
    left: 6px;
    bottom: 6px;
    background: transparent;
    color: #fff;
    padding: 0;
    border-radius: 0;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.views-badge::before {
    content: '👁';
    font-size: 13px;
}

.duration-badge {
    position: absolute;
    right: 6px;
    bottom: 6px;
    background: transparent;
    color: #fff;
    padding: 0;
    border-radius: 0;
    font-size: 12px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}