/* Quantum Video Player Styles */

.player-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.video-js {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.subtitle-overlay {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    text-align: center;
    pointer-events: none;
    z-index: 10;
}

.subtitle-line {
    display: inline-block;
    padding: 4px 12px;
    margin: 2px 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 4px;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.danmaku-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9;
}

.player-error {
    padding: 60px 20px;
    text-align: center;
    color: #999;
    font-size: 18px;
    background: #1a1a2e;
    border-radius: 8px;
}

/* Video Info */
.video-info {
    padding: 16px 0;
}

.video-info h1 {
    font-size: 22px;
    margin: 0 0 8px;
    color: #333;
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #666;
    font-size: 14px;
}

.video-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.video-actions button {
    padding: 8px 20px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.video-actions button:hover {
    background: #f0f0f0;
}

.video-actions button.active {
    background: #4a90d9;
    color: #fff;
    border-color: #4a90d9;
}

/* Summary */
.video-summary-section {
    display: none;
    margin: 12px 0;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #4a90d9;
}

.video-summary-section h3 {
    margin: 0 0 8px;
    font-size: 15px;
    color: #4a90d9;
}

.video-summary-section p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

/* Layout */
.video-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    margin-top: 20px;
}

/* Comment Section */
.comment-section {
    border-top: 1px solid #eee;
    padding-top: 16px;
}

.comment-section h3 {
    font-size: 18px;
    margin: 0 0 16px;
}

.comment-form {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.comment-form textarea {
    flex: 1;
    min-height: 60px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    font-size: 14px;
}

.comment-form button {
    padding: 10px 24px;
    background: #4a90d9;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    align-self: flex-end;
}

.comment-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e0e0e0;
}

.comment-username {
    font-weight: 600;
    font-size: 14px;
}

.comment-time-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #e8f0fe;
    color: #4a90d9;
    border-radius: 10px;
    font-size: 12px;
    cursor: pointer;
}

.comment-time-badge:hover {
    background: #4a90d9;
    color: #fff;
}

.comment-content {
    margin-left: 40px;
    color: #333;
    line-height: 1.5;
}

.comment-replies {
    margin-left: 40px;
    padding-left: 12px;
    border-left: 2px solid #f0f0f0;
}

/* Sidebar */
.video-sidebar {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.chapter-sidebar h3 {
    font-size: 16px;
    margin: 0 0 12px;
    color: #333;
}

.chapter-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.chapter-item {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.chapter-item:hover {
    background: #f0f0f0;
}

.chapter-time {
    color: #4a90d9;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.chapter-title {
    color: #333;
    font-size: 14px;
}

/* Danmaku Input */
.danmaku-input-bar {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 8px;
}

.danmaku-input-bar input {
    flex: 1;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 16px;
    font-size: 14px;
}

.danmaku-input-bar button {
    padding: 6px 16px;
    background: #4a90d9;
    color: #fff;
    border: none;
    border-radius: 16px;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .video-content {
        grid-template-columns: 1fr;
    }

    .video-sidebar {
        max-height: none;
    }

    .subtitle-overlay {
        bottom: 50px;
    }

    .subtitle-line {
        font-size: 14px !important;
    }

    .video-actions {
        flex-wrap: wrap;
    }
}
