body.course-detail-body {
    --course-primary: #00a8ff;
    --course-primary-soft: #e9f8ff;
    --course-vip: #ff8a2a;
    --course-text: #111827;
    --course-muted: #8b95a5;
    --course-panel: #ffffff;
    --course-page: #f5f6f7;
    --course-border: #e7e9ec;
    background: var(--course-page);
}

.course-detail-page {
    align-items: flex-start;
    background: transparent;
}

.course-detail-page .course_content_right {
    width: 412px;
}

.course-vip-banner {
    box-sizing: border-box;
    width: 100%;
    height: 46px;
    padding: 0 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
    background: linear-gradient(100deg, #ff7f27 0%, #ffa83c 100%);
    box-shadow: 0 7px 18px rgba(255, 138, 42, 0.18);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.course-vip-banner:hover,
.course-vip-banner:focus {
    color: #ffffff;
    box-shadow: 0 9px 22px rgba(255, 138, 42, 0.26);
    transform: translateY(-1px);
}

.course-vip-banner:focus-visible,
.course-series-tool:focus-visible,
.course-trial-notice__action:focus-visible,
.course-series-lesson:focus-visible {
    outline: 2px solid var(--course-primary);
    outline-offset: 2px;
}

.course-vip-banner__title {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.course-vip-banner__title strong {
    font-weight: 600;
}

.course-vip-banner__meta {
    font-size: 13px;
    white-space: nowrap;
}

.course-trial-notice {
    position: absolute;
    z-index: 8;
    left: 18px;
    bottom: 56px;
    min-height: 46px;
    box-sizing: border-box;
    padding: 8px 13px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.78);
    font-size: 13px;
    line-height: 1.4;
    backdrop-filter: blur(4px);
}

.course-trial-notice__text {
    white-space: nowrap;
}

.course-trial-notice__action {
    height: 28px;
    padding: 0 14px;
    border: 0;
    border-radius: 5px;
    color: #ffffff;
    background: var(--course-vip);
    font: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.course-trial-notice__action:hover {
    background: #ff7418;
}

.course-series-panel {
    box-sizing: border-box;
    width: 100%;
    margin-top: 16px;
    padding: 0 10px 10px;
    border-radius: 10px;
    background: var(--course-panel);
}

.course-series-panel__header {
    height: 48px;
    padding: 0 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.course-series-panel__header h2 {
    margin: 0;
    color: var(--course-text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
}

.course-series-panel__header span {
    color: var(--course-muted);
    font-size: 13px;
}

.course-series-panel__tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.course-series-tool-wrap {
    width: 100%;
}

.course-series-tool {
    box-sizing: border-box;
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #626c7a;
    background: #f0f2f4;
    font-family: inherit;
    font-size: 13px;
    box-shadow: none;
    transform: none;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.course-series-tool:hover:not(:disabled),
.course-series-tool[aria-expanded="true"] {
    color: var(--course-primary);
    background: #eaf7fe;
    box-shadow: none;
    transform: none;
}

.course-series-tool:disabled {
    color: #adb4bd;
    cursor: default;
}

.course-series-tool svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.course-series-panel .courseware_dropdown_content {
    z-index: 20;
    top: calc(100% + 6px);
    left: 0;
    right: auto;
    min-width: 300px;
}

.course-series-list {
    max-height: 320px;
    padding-right: 6px;
    overflow-y: auto;
    scrollbar-color: #bdc3ca transparent;
    scrollbar-width: thin;
}

.course-series-list::-webkit-scrollbar {
    width: 6px;
}

.course-series-list::-webkit-scrollbar-track {
    background: transparent;
}

.course-series-list::-webkit-scrollbar-thumb {
    border-radius: 6px;
    background: #bdc3ca;
}

.course-series-lesson {
    box-sizing: border-box;
    min-height: 64px;
    padding: 8px 8px 8px 6px;
    border: 1px solid transparent;
    border-radius: 7px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto 14px;
    column-gap: 7px;
    align-items: center;
    color: var(--course-text);
    background: #ffffff;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.course-series-lesson:hover {
    color: var(--course-text);
    background: #f7fbfd;
}

.course-series-lesson.is-active {
    border-color: var(--course-primary);
    background: var(--course-primary-soft);
}

.course-series-lesson__index {
    color: #7f8997;
    font-size: 13px;
    text-align: center;
}

.course-series-playing {
    height: 16px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.course-series-playing i {
    width: 2px;
    border-radius: 2px;
    display: block;
    background: var(--course-primary);
}

.course-series-playing i:nth-child(1) { height: 7px; }
.course-series-playing i:nth-child(2) { height: 13px; }
.course-series-playing i:nth-child(3) { height: 9px; }

.course-series-lesson__body,
.course-series-lesson__title,
.course-series-lesson__meta {
    min-width: 0;
    display: flex;
    align-items: center;
}

.course-series-lesson__body {
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
}

.course-series-lesson__title {
    gap: 5px;
    font-size: 14px;
    line-height: 19px;
}

.course-series-lesson.is-active .course-series-lesson__name {
    color: #0099ee;
}

.course-series-lesson__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.course-series-badge {
    flex: 0 0 auto;
    height: 18px;
    padding: 0 4px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    line-height: 18px;
}

.course-series-badge.is-vip {
    background: #3f8efc;
}

.course-series-badge.is-trial {
    background: var(--course-vip);
}

.course-series-lesson__meta {
    gap: 10px;
    color: var(--course-muted);
    font-size: 12px;
    line-height: 16px;
}

.course-series-lesson__time {
    color: #7f8997;
    font-size: 12px;
    white-space: nowrap;
}

.course-series-lesson__lock {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: #b2b8c0;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media screen and (max-width: 1599px) {
    .course-detail-page.width_1540 {
        width: calc(100% - 40px);
    }

    .course-detail-page .course_content_left {
        width: calc(100% - 442px);
    }

    .course-detail-page .course_content_left_3,
    .course-detail-page .course_content_left_3 .poster_img {
        width: 100%;
    }

    .course-detail-page .course_content_left_3 {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .course-detail-page .course_content_left_3 .poster_img,
    .course-detail-page .course_content_left_3 .play_bg {
        height: 100%;
    }
}

@media screen and (max-width: 1023px) {
    .course-detail-page .course_content_left,
    .course-detail-page .course_content_right {
        width: 100%;
    }

    .course-detail-page .course_content_right {
        margin: 20px 0 0;
    }

    .course-detail-page .course_content_left_3 {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .course-detail-page .course_content_left_3 .poster_img,
    .course-detail-page .course_content_left_3 .play_bg {
        height: 100%;
    }
}

@media screen and (max-width: 600px) {
    .course-detail-page.width_1540 {
        width: calc(100% - 24px);
    }

    .course-trial-notice {
        right: 10px;
        left: 10px;
        bottom: 48px;
        min-height: 40px;
        justify-content: space-between;
        gap: 8px;
        font-size: 12px;
    }

    .course-trial-notice__text {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .course-vip-banner__title strong {
        display: none;
    }
}
