* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f0f2f5;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 15px;
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

.card-info {
    font-size: 14px;
    color: #666;
}

.weather-info {
    margin-top: 8px;
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-size: 14px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 800px;
}

.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.video-container {
    width: 100%;
    background: black;
    position: relative;
}

/* 移动端播放器样式优化 */
@media (max-width: 768px) {
    .video-container {
        height: 100vh;
        max-height: 100vh;
        display: flex;
        align-items: center;
    }

    .video-js {
        width: 100% !important;
        height: 100% !important;
    }

    .video-js.vjs-fullscreen {
        padding-top: 0 !important;
    }

    /* 自定义旋转按钮样式 */
    .vjs-rotate-button {
        cursor: pointer;
        color: #fff;
        font-size: 12px;
        padding: 0 10px;
    }

    .vjs-rotate-button:hover {
        color: #fff;
        opacity: 0.8;
    }

    /* 控制栏样式优化 */
    .video-js .vjs-control-bar {
        background-color: rgba(0, 0, 0, 0.7);
        height: 40px;
    }

    .video-js .vjs-button {
        width: 40px;
        height: 40px;
    }

    /* 横屏时的样式 */
    @media screen and (orientation: landscape) {
        .modal-content {
            width: 100%;
            height: 100vh;
            max-width: none;
        }

        .video-container {
            height: 100vh;
        }
    }
}

#loading, #error {
    text-align: center;
    padding: 20px;
}

#error {
    color: red;
}