body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.video-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    background-color: #333;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}

/* 播放按钮样式 */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.2s;
}
.video-thumbnail:hover .play-overlay {
    background: #fff;
}
.play-overlay svg {
    width: 36px;
    height: 36px;
    fill: #333;
    margin-left: 4px;
}

.video-info {
    padding: 20px;
}

.video-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.video-description {
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    backdrop-filter: blur(5px);
    overflow-y: auto;
    padding: 20px 0;
}

.modal.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    margin: 0 auto;
    min-height: fit-content;
}

.player-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, transparent 100%);
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 15px;
    z-index: 1001;
    opacity: 1;
    transition: opacity 0.5s ease;
    pointer-events: auto;
    gap: 15px;
}

.player-controls.hidden {
    opacity: 0;
    pointer-events: none;
}

.close-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.video-player {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    background: #000;
}

.video-player video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 15px;
}

.video-details {
    background: rgba(255,255,255,0.05);
    padding: 25px;
    color: white;
}

.video-details h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.video-details p {
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.9;
}

.comments-section {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 25px;
}

.comments-title {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.comment-form {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.comment-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 25px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 0.9rem;
}

.comment-input::placeholder {
    color: rgba(255,255,255,0.6);
}

.comment-input:focus {
    outline: none;
    background: rgba(255,255,255,0.15);
}

.comment-btn {
    padding: 12px 25px;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.comment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.comments-list {
    max-height: 300px;
    overflow-y: auto;
}

.comment {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.comment-content {
    color: rgba(255,255,255,0.9);
    line-height: 1.4;
}

.comment-time {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    margin-top: 5px;
}

.delete-btn {
    background: rgba(255,0,0,0.2);
    color: #ff4757;
    border: none;
    padding: 5px 10px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    background: rgba(255,0,0,0.3);
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transform: translateX(400px);
    transition: all 0.3s ease;
    z-index: 2000;
}
.toast.show {
    transform: translateX(0);
}
.toast.error {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
}
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    .header h1 {
        font-size: 2rem;
    }
    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .modal {
        padding: 10px 0;
    }
    .modal-content {
        width: 95%;
        margin: 0 auto;
    }
    .video-details, .comments-section {
        padding: 20px;
    }
    .comment-form {
        flex-direction: column;
    }
    .comment-btn {
        align-self: flex-start;
    }
    .player-controls {
        padding: 10px;
    }
    .close-btn {
        font-size: 18px;
        padding: 10px;
    }
    .play-overlay {
        width: 50px;
        height: 50px;
    }
    .play-overlay svg {
        width: 22px;
        height: 22px;
    }
}
.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.modal::-webkit-scrollbar {
    width: 8px;
}
.modal::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
}
.modal::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
}
.modal::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}