/**
 * HM Player 스타일
 */

.hm-player-container {
    position: relative;
    width: 100%;
    max-width: 1280px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.hm-player-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.hm-watermark {
    user-select: none;
    transition: top 3s ease, left 3s ease;
}

.hm-player-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
}

.hm-curriculum-sidebar {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 20px;
    max-height: 720px;
    overflow-y: auto;
}

.hm-curriculum-sidebar h3 {
    font-size: 16px;
    margin: 0 0 16px 0;
    color: #1E293B;
}

.hm-chapter-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    margin-bottom: 4px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}

.hm-chapter-item:hover {
    background: #F1F5F9;
}

.hm-chapter-item.current {
    background: #DBEAFE;
    color: #1A56DB;
    font-weight: 500;
}

.hm-chapter-item.completed {
    color: #10B981;
}

.hm-chapter-item.locked {
    color: #94A3B8;
    cursor: not-allowed;
}

.hm-chapter-title {
    flex: 1;
    font-size: 14px;
}

.hm-chapter-duration {
    font-size: 12px;
    color: #64748B;
}

.hm-progress-bar {
    width: 100%;
    height: 6px;
    background: #E5E7EB;
    border-radius: 3px;
    overflow: hidden;
    margin: 16px 0;
}

.hm-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3B82F6, #1A56DB);
    transition: width 0.3s;
}

/* 모바일 */
@media (max-width: 768px) {
    .hm-player-layout {
        grid-template-columns: 1fr;
    }

    .hm-player-container {
        position: sticky;
        top: 0;
        z-index: 100;
        border-radius: 0;
    }

    .hm-curriculum-sidebar {
        max-height: none;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }
}
