
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    overflow-x: hidden;
}


.permission-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #f8f9fa;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: #666;
}

.loading-spinner i {
    font-size: 2rem;
}

.loading-spinner span {
    font-size: 1rem;
    color: #666;
}


.permission-denied {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    text-align: center;
    background: #f8f9fa;
}

.permission-icon {
    font-size: 4rem;
    color: #ffc107;
    margin-bottom: 1.5rem;
}

.permission-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.permission-message {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.permission-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}


.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #333;
}

.modal-body {
    padding: 2rem;
}

.activation-input-group {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.activation-input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.1em;
    transition: all 0.3s;
}

.activation-input:focus {
    outline: none;
    border-color: #6366F1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.activation-tip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.activation-tip i {
    color: #6366F1;
}


.course-container {
    display: flex;
    height: 100vh;
    background: #f8f9fa;
}


.course-sidebar {
    width: 350px;
    background: white;
    border-right: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
}


.project-info {
    padding: 2rem;
    flex-shrink: 0;
}

.project-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}


.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.project-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.project-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.status-badge.free {
    background: #d4edda;
    color: #155724;
}

.status-badge.active {
    background: #d1ecf1;
    color: #0c5460;
}

.status-badge.expired {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.private {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

.status-badge.admin {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}


.sidebar-divider {
    height: 1px;
    background: #e9ecef;
    margin: 0 1rem;
    flex-shrink: 0;
}


.course-list {
    flex: 1;
    padding: 1rem 0;
}

.course-list-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    color: #666;
}

.course-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    margin: 0 0.5rem;
    border-radius: 0 8px 8px 0;
}

.course-item:hover {
    background: #f8f9fa;
}

.course-item.active {
    background: #e3f2fd;
    border-left-color: #6366F1;
}

.course-item.active .course-item-title {
    color: #6366F1;
    font-weight: 600;
}

.course-item-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    margin-right: 1rem;
    font-size: 1rem;
    color: #666;
    transition: all 0.2s;
    flex-shrink: 0;
}

.course-item.active .course-item-icon {
    background: #6366F1;
    color: white;
}

.course-item-content {
    flex: 1;
}

.course-item-title {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.course-item-meta {
    font-size: 0.85rem;
    color: #666;
}


.course-disabled {
    opacity: 0.7;
}

.course-disabled .course-item-icon {
    background: #f1f1f1;
    color: #999;
}

.course-disabled .course-item-title {
    color: #999;
}

.course-disabled .disabled-label {
    font-size: 0.75rem;
    color: #dc3545;
    font-weight: 500;
}

.course-disabled:hover {
    background: #f8f9fa;
}


.course-disabled-notice {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 2rem;
}

.course-disabled-notice .disabled-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: #dc3545;
}

.course-disabled-notice h3 {
    margin-bottom: 1rem;
    color: #333;
}

.course-disabled-notice p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}


.permission-notice {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
    background: #f8f9fa;
    border-radius: 0.5rem;
    margin: 1rem;
}

.permission-notice-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ffc107;
}

.permission-notice h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.permission-notice p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}


.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    overflow: hidden;
}

.content-body {
    flex: 1;
    overflow-y: auto;
    position: relative;
}

.content-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
}


.markdown-content {
    padding: 2rem;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    max-width: none;
    min-height: 100%;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.25;
}

.markdown-content h1:first-child,
.markdown-content h2:first-child,
.markdown-content h3:first-child {
    margin-top: 0;
}

.markdown-content h1 {
    font-size: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.75rem;
}

.markdown-content h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.markdown-content h3 {
    font-size: 1.25rem;
}

.markdown-content h4 {
    font-size: 1.1rem;
}

.markdown-content h5 {
    font-size: 1rem;
}

.markdown-content h6 {
    font-size: 0.875rem;
    color: #666;
}

.markdown-content p {
    margin-bottom: 1rem;
}

.markdown-content a {
    color: #6366F1;
    text-decoration: none;
}

.markdown-content a:hover {
    text-decoration: underline;
}

.markdown-content code {
    background: #f8f9fa;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
}

.markdown-content pre {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1rem 0;
    position: relative;
    border: 1px solid #e9ecef;
}

.markdown-content pre code {
    background: none;
    padding: 0;
    font-size: 0.875rem;
}

.markdown-content blockquote {
    border-left: 4px solid #2d8cf0;
    padding-left: 12px;
    margin: 12px 0;
    color: #666;
    font-style: italic;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 0 4px 4px 0;
}

.markdown-content ul,
.markdown-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.markdown-content li {
    margin-bottom: 0.25rem;
}

.markdown-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;


}

.markdown-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 1rem 0;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    overflow: hidden;
}

.markdown-content th,
.markdown-content td {
    border: 1px solid #e9ecef;
    padding: 0.75rem 1rem;
    text-align: left;
}

.markdown-content th {
    background: #f8f9fa;
    font-weight: 600;
}

.markdown-content hr {
    border: none;
    border-top: 1px solid #e9ecef;
    margin: 2rem 0;
}


.table-wrapper {
    overflow-x: auto;
    margin: 1rem 0;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table-wrapper table {

    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
}


.copy-button {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
}

.copy-button:hover {
    background: #e9ecef;
    color: #333;
}


.note-box,
.warning-box,
.important-box,
.suggestion-box,
.remind-box {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 0.375rem;
    border-left: 4px solid;
}

.note-box {
    background-color: #f0f9ff;
    border-left-color: #0ea5e9;
}

.warning-box {
    background-color: #fef3c7;
    border-left-color: #f59e0b;
}

.important-box {
    background-color: #fef2f2;
    border-left-color: #ef4444;
}

.suggestion-box {
    background-color: #f0fdf4;
    border-left-color: #22c55e;
}

.remind-box {
    background-color: #fdf4ff;
    border-left-color: #a855f7;
}

.alert-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.alert-header .fas {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.alert-icon-note {
    color: #0ea5e9;
}

.alert-icon-warning {
    color: #f59e0b;
}

.alert-icon-important {
    color: #ef4444;
}

.alert-icon-suggestion {
    color: #22c55e;
}

.alert-icon-remind {
    color: #a855f7;
}

.alert-content {
    line-height: 1.6;
}


.task-list {
    list-style: none;
    padding-left: 0;
}

.task-list-item {
    list-style: none;
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.25rem;
}

.task-list-item input[type="checkbox"] {
    margin-right: 0.5rem;
    margin-top: 0.125rem;
}

.task-list-item input[type="checkbox"]:checked+* {
    text-decoration: line-through;
    opacity: 0.7;
}

.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 10000;
}

.floating-btn {
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: white;
    color: #333;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e9ecef;
}

.floating-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.floating-btn:active {
    transform: translateY(0);
}




.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.btn-primary {
    background: #6366F1;
    color: white;
}

.btn-primary:hover {
    background: #4F46E5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:disabled {
    background: #9CA3AF;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: #6C757D;
    color: white;
}

.btn-secondary:hover {
    background: #5A6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-outline {
    background: transparent;
    color: #6366F1;
    border: 2px solid #6366F1;
}

.btn-outline:hover {
    background: #6366F1;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}


.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 12px 20px;
    border-radius: 0.375rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateX(400px);
    transition: transform 0.3s;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toast.show {
    transform: translateX(0);
}

.toast.error {
    background: #dc3545;
}

.toast.warning {
    background: #ffc107;
    color: #212529;
}

.toast.info {
    background: #17a2b8;
}


.page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    backdrop-filter: blur(2px);
}

.page-overlay.show {
    display: block;
}


.content-area.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: white;
}

.content-area.fullscreen .content-body {
    padding: 2rem;
}


@media (max-width: 768px) {
    .course-container {
        flex-direction: row;
        height: 100vh;
    }

    .course-sidebar {
        width: 300px;
        height: 100vh;
        position: fixed;
        top: 0;
        left: -300px;
        z-index: 1001;
        border-right: 1px solid #e9ecef;
        border-bottom: none;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .course-sidebar.show {
        left: 0;
    }

    .content-area {
        flex: 1;
        width: 100%;
        min-height: 100vh;
        margin-left: 0;
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .sidebar-overlay.show {
        display: block;
        opacity: 1;
    }

    .activation-input-group {
        flex-direction: column;
    }


    .floating-buttons {
        bottom: 15px;
        right: 15px;
    }

    .floating-btn {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }

    .markdown-content {
        padding: 1.1rem;
        overflow: hidden;
    }

    .table-wrapper table {
        min-width: 1000px;
    }
}


.toolbox-modal {
    max-width: 600px;
    max-height: 80vh;
}

.toolbox-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem;
}

.toolbox-search {
    margin-bottom: 1.5rem;
}

.toolbox-search-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.toolbox-search-input:focus {
    outline: none;
    border-color: #6366F1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.tools-list {
    max-height: 400px;
    overflow-y: auto;
}

.tool-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    background: #f8f9fa;
    transition: all 0.3s;
}

.tool-item:hover {
    background: #e9ecef;

}

.tool-item.downloading {
    background: #e3f2fd;
    border-color: #2196f3;
}

.tool-icon {
    width: 48px;
    height: 48px;
    background: #6366F1;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.tool-info {
    flex: 1;
    min-width: 0;
}

.tool-name {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
    word-break: break-word;
}

.tool-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: #666;
}

.tool-size {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.tool-status {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.tool-status.available {
    color: #28a745;
}

.tool-status.missing {
    color: #dc3545;
}

.tool-description {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
    line-height: 1.3;
    word-break: break-word;
}

.tool-actions {
    flex-shrink: 0;
    margin-left: 1rem;
}

.tool-download-btn {
    padding: 0.6rem 1.2rem;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tool-download-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.tool-download-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.tool-download-btn.downloading {
    background: #007bff;
}

.tool-download-btn.downloading:hover {
    background: #0056b3;
}

.toolbox-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
}

.toolbox-empty .empty-icon {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}



.download-progress-toast {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #007bff;
    z-index: 10001;
    min-width: 250px;
    transform: translateX(300px);
    transition: transform 0.3s ease;
}

.download-progress-toast.show {
    transform: translateX(0);
}

.download-progress-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.download-progress-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.download-progress-fill {
    height: 100%;
    background: #007bff;
    transition: width 0.3s;
    width: 0%;
}

.download-progress-text {
    font-size: 0.8rem;
    color: #666;
}


@media (max-width: 768px) {
    .toolbox-modal {
        max-width: 95%;
        max-height: 85vh;
    }

    .tool-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .tool-icon {
        margin-right: 0;
        margin-bottom: 0.75rem;
        align-self: center;
    }

    .tool-actions {
        margin-left: 0;
        margin-top: 0.75rem;
        align-self: stretch;
    }

    .tool-download-btn {
        width: 100%;
        justify-content: center;
    }

    .tool-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .download-progress-toast {
        bottom: 80px;
        right: 15px;
        left: 15px;
        min-width: auto;
    }
}


.floating-video-window {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 400px;
    height: 280px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    overflow: hidden;
    border: 1px solid #e9ecef;
    resize: both;
    min-width: 300px;
    min-height: 200px;
    max-width: 800px;
    max-height: 600px;
}

.floating-video-window.dragging {
    user-select: none;
    transition: none;
}

.floating-video-header {
    background: #f8f9fa;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
    cursor: move;
    height: 40px;
    flex-shrink: 0;
}

.floating-video-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    flex: 1;
    min-width: 0;
}

.floating-video-title span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.floating-video-title i {
    color: #6366F1;
    flex-shrink: 0;
}

.floating-video-controls {
    display: flex;
    gap: 4px;
}

.floating-video-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s;
}

.floating-video-btn:hover {
    background: #e9ecef;
}

.floating-video-btn.close-btn:hover {
    background: #dc3545;
    color: white;
}

.floating-video-body {
    flex: 1;
    background: #000;
    position: relative;
    height: calc(100% - 40px);
}


.floating-video-window .video-js {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0;
    overflow: hidden;
}


.floating-video-window .vjs-big-play-button {
    background-color: rgba(0, 0, 0, 0.7) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    line-height: 50px !important;
    font-size: 20px !important;
}


.floating-video-window .vjs-control-bar {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%) !important;
}


.floating-video-window .vjs-button>.vjs-icon-placeholder:before {
    color: #ffffff !important;
}


.floating-video-window .vjs-control {
    background-color: transparent !important;
    color: #ffffff !important;
}


.floating-video-window .vjs-progress-control .vjs-progress-holder {
    background-color: rgba(255, 255, 255, 0.3) !important;
}

.floating-video-window .vjs-progress-control .vjs-play-progress {
    background-color: #ffffff !important;
}

.floating-video-window .vjs-progress-control .vjs-load-progress {
    background: rgba(255, 255, 255, 0.5) !important;
}

.floating-video-window .vjs-progress-control:hover .vjs-progress-holder {
    background-color: rgba(255, 255, 255, 0.4) !important;
}

.floating-video-window .vjs-volume-level {
    background-color: #ffffff !important;
}

.floating-video-window .vjs-volume-bar {
    background-color: rgba(255, 255, 255, 0.3) !important;
}


.floating-video-window .vjs-current-time,
.floating-video-window .vjs-time-divider,
.floating-video-window .vjs-duration {
    color: #ffffff !important;
    font-size: 12px !important;
}


.floating-video-window .vjs-picture-in-picture-control,
.floating-video-window .vjs-captions-button,
.floating-video-window .vjs-chapters-button,
.floating-video-window .vjs-subtitles-button,
.floating-video-window .vjs-audio-button,
.floating-video-window .vjs-playback-rate,
.floating-video-window .vjs-quality-selector {
    display: none !important;
}


.floating-video-window .video-error {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    color: #fff;
    text-align: center;
    padding: 40px 20px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 100;
}

.floating-video-window .video-error i {
    font-size: 32px;
    color: #f56c6c;
    margin-bottom: 16px;
    display: block;
}

.floating-video-window .video-error p {
    margin: 0;
    font-size: 14px;
}


.floating-video-window .video-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    color: #fff;
    font-size: 14px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99;
}

.floating-video-window .video-loading i {
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}



.floating-video-window .video-error {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    color: #fff;
    text-align: center;
    padding: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 100;
}

.floating-video-window .video-error i {
    font-size: 32px;
    color: #f56c6c;
    margin-bottom: 12px;
    display: block;
}

.floating-video-window .video-error p {
    margin: 0;
    font-size: 14px;
}

@media (max-width: 768px) {
    .floating-video-window {
        width: 90%;
        height: 200px;
        top: 60px;
        right: 5%;
        left: 5%;
        max-width: 500px;
    }
}

.vjs-fullscreen .vjs-control-bar {
    background: transparent !important;
    padding: 12px 16px !important;
    min-height: 48px !important;
    bottom: 0 !important;
    pointer-events: auto !important;
    display: flex !important;
    align-items: center !important;
}


.vjs-fullscreen.vjs-user-active .vjs-control-bar,
.vjs-fullscreen:hover .vjs-control-bar,
.vjs-fullscreen .vjs-control-bar:hover {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 100%) !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}


.vjs-fullscreen .vjs-button,
.vjs-fullscreen .vjs-control {
    background-color: transparent !important;
    color: #ffffff !important;
    pointer-events: auto !important;
}



.vjs-fullscreen .vjs-progress-control .vjs-progress-holder {
    background-color: rgba(255, 255, 255, 0.3) !important;

}

.vjs-fullscreen .vjs-progress-control .vjs-play-progress {
    background-color: #ffffff !important;
}

.vjs-fullscreen .vjs-progress-control .vjs-load-progress {
    background: rgba(255, 255, 255, 0.5) !important;
}


.vjs-fullscreen .vjs-volume-level {
    background-color: #ffffff !important;
}

.vjs-fullscreen .vjs-volume-bar {
    background-color: rgba(255, 255, 255, 0.3) !important;
}

.vjs-fullscreen .vjs-current-time,
.vjs-fullscreen .vjs-time-divider,
.vjs-fullscreen .vjs-duration {
    color: #ffffff !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
}


.vjs-fullscreen .vjs-big-play-button {
    background-color: rgba(0, 0, 0, 0.8) !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 50% !important;
}

.vjs-fullscreen .vjs-big-play-button:hover {
    background-color: rgba(0, 0, 0, 0.9) !important;
    border-color: #ffffff !important;
}


.vjs-fullscreen .vjs-control-bar,
.vjs-fullscreen .vjs-control-bar * {
    pointer-events: auto !important;
}


.vjs-fullscreen .vjs-progress-control .vjs-slider-handle,
.vjs-fullscreen .vjs-progress-control .vjs-progress-holder:before,
.vjs-fullscreen .vjs-progress-control .vjs-progress-holder:after,
.vjs-fullscreen .vjs-progress-control .vjs-play-progress:before,
.vjs-fullscreen .vjs-progress-control .vjs-play-progress:after {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}


.vjs-fullscreen .vjs-progress-control {
    align-self: center !important;
    display: flex !important;
    align-items: center !important;
}


.vjs-fullscreen .vjs-button,
.vjs-fullscreen .vjs-control {
    align-self: center !important;
}


.watermark-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 99999;
    overflow: hidden;
}


.watermark {
    position: absolute;
    color: rgba(0, 0, 0, 0.04);
    font-size: 24px;
    font-weight: normal;
    font-family: 'Arial', sans-serif;
    transform: rotate(-30deg);
    user-select: none;
    white-space: nowrap;
    animation: float 6s ease-in-out infinite;
}

.watermark {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}