/* @ai @prompt Watch Full Video detail page styles @date 2026-6-26 @scope catalog */

/* 顶部行 */
.videos-top-row {
    padding: 12px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 面包屑 */
.videos-breadcrumb {
    margin: 0;
    padding: 0;
    line-height: 36px;
    list-style: none;
}

.videos-breadcrumb li {
    display: inline-block;
}

.videos-breadcrumb .breadcrumb-muted {
    color: #999DA8;
}

.videos-breadcrumb .breadcrumb-sep {
    color: #999DA8;
    font-size: 12px;
    margin: 0 4px;
}

.videos-breadcrumb .breadcrumb-current {
    color: #141737;
}

/* 搜索栏 */
.videos-search-bar form {
    width: 688px;
}

.videos-search-bar .input-group {
    width: 100%;
    position: relative;
}

.videos-search-bar .form-control {
    height: 36px;
    border: 1px solid #E4E7ED;
    border-radius: 4px;
    padding-right: 40px;
    font-size: 14px;
    background: transparent;
    margin: 0;
}

.videos-search-bar #input-search {
    border-top-right-radius: 4px !important;
    border-bottom-right-radius: 4px !important;
}

.videos-search-bar .form-control:focus {
    border-color: #009A9E;
    box-shadow: 0 0 0 2px rgba(0, 154, 158, 0.1);
}

.videos-search-bar .search-clear-btn {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666C7C;
}

.videos-search-bar .search-clear-btn i {
    font-size: 20px;
}

/* @ai L2 搜索下拉列表 */
.video-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #E4E7ED;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 240px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.video-search-dropdown-item {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    color: #141737;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
}

.video-search-dropdown-item:hover {
    background: #F5F7FA;
    text-decoration: none;
    color: #141737;
}

.videos-search-bar .input-group-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.input-group-btn svg:not(:root) {
    width: 20px;
    height: 20px;
    color: #666C7C;
}

.video-page-search {
    padding: 20px 0;
}

.video-search-form {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.video-search-input {
    width: 100%;
    height: 44px;
    padding: 0 50px 0 16px;
    border: 1px solid #ddd;
    border-radius: 22px;
    font-size: 14px;
    box-shadow: none;
}

.video-search-input:focus {
    border-color: #2a9d8f;
    outline: none;
}

.video-search-btn {
    position: absolute;
    right: 4px;
    top: 4px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #2a9d8f;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.video-breadcrumb {
    background: none;
    padding: 0 0 16px;
    margin-bottom: 0;
    font-size: 13px;
}

.video-breadcrumb li+li:before {
    content: "/";
    padding: 0 8px;
    color: #aaa;
}

.video-detail-title {
    font-size: 20px;
    line-height: 28px;
    font-weight: 700;
    color: #141737;
    margin: 0;
}

.video-detail-meta {
    font-size: 14px;
    line-height: 22px;
    color: #999DA8;
}

.video-detail-header {
    margin-bottom: 12px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.video-back-btn {
    width: 20px;
    height: 20px;
}

.video-back-btn img {
    width: 100%;
    height: 100%;
}

.video-back-btn:hover {
    color: #009A9E;
    text-decoration: none;
}

.video-detail-header .video-detail-meta {
    margin-bottom: 0;
}

.video-detail-body {
    margin-top: 0;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.video-detail-sidebar {
    width: 20%;
    flex-shrink: 0;
}

.video-sidebar {
    /* no border container */
}

.video-detail-main {
    width: calc(80% - 16px);
    flex-shrink: 0;
}

.video-player-box {
    border-radius: 4px;
    overflow: hidden;
    height: 608px;
    border: 1px solid #E8EBF0;
    margin-bottom: 12px;
    position: relative;
}

.video-detail-player {
    width: 100%;
    height: 100%;
    display: block;
}

/* @ai L2 Watch Full Video banner（产品页视频引导） */
.watch-full-video-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    margin-bottom: 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #141737;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    flex-wrap: wrap;
    gap: 12px;
}

.watch-full-video-banner:hover,
.watch-full-video-banner:focus {
    background: #E8FFFC;
    border-color: #ACECE5;
    color: #009A9E;
    text-decoration: none;
}

.watch-full-video-text {
    flex: 1;
    min-width: 200px;
}

.watch-full-video-text strong {
    display: block;
    font-size: 16px;
    line-height: 24px;
    color: inherit;
}

.watch-full-video-text span {
    display: block;
    font-size: 14px;
    line-height: 22px;
    color: inherit;
}

.watch-full-video-link {
    font-size: 14px;
    line-height: 22px;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 4px;
}

.watch-full-video-link img {
    width: 14px;
    height: 14px;
}

.video-product-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #E8FFFC;
    border: 1px solid #ACECE5;
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
    transition: border-color 0.2s ease;
}

.video-product-cta-link-wrapper:hover .video-product-cta,
.video-product-cta-link-wrapper:focus .video-product-cta {
    border-color: #20B1B1;
}

.video-product-cta-left {
    flex: 1;
    min-width: 200px;
}

.video-product-cta-right {
    display: flex;
    flex-direction: column;
    align-items: end;
}

.video-product-cta-text strong {
    display: block;
    font-size: 16px;
    line-height: 24px;
    color: #141737;
}

.video-product-cta-text span {
    font-size: 14px;
    line-height: 22px;
    color: #666C7C;
}

.video-product-cta-price {
    font-size: 16px;
    font-weight: 700;
    color: #e63946;
}

.video-detail-main-inner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-price-old {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    margin-right: 6px;
    font-weight: normal;
}

.video-product-cta-right .video-product-cta-link,
.video-product-cta-right .btn.video-product-cta-link {
    background: transparent;
    color: #009A9E !important;
    padding: 0;
    margin: 0;
    font-weight: 400;
    font-size: 14px !important;
    line-height: 22px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn.video-product-cta-link:hover,
.video-product-cta-link:hover {
    text-decoration: none;
}

.video-product-cta-link img {
    width: 14px;
    height: 14px;
}

.video-section {
    margin-bottom: 24px;
}

.video-section-title {
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
    color: #141737;
    margin: 0;
    margin-bottom: 8px;
}

.video-description {
    font-size: 14px;
    line-height: 22px;
    color: #141737;
}

.video-description p {
    margin-bottom: 12px;
}

.video-chapter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.video-chapter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: color 0.15s;
}

.video-chapter-item:hover .video-chapter-title {
    color: #20B1B1;
}

.video-chapter-time {
    display: inline-block;
    font-size: 14px;
    line-height: 22px;
    padding: 3px 8px;
    color: #FFA50A;
    font-weight: 400;
    background: #FFFAE8;
    border-radius: 4px;
}

.video-chapter-title {
    font-size: 14px;
    line-height: 22px;
    font-weight: 400;
    color: #141737;
}

.video-transcript-list {
    display: grid;
    gap: 8px;
}

.video-transcript-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: color 0.15s;
}

.video-transcript-item:hover .video-transcript-text {
    color: #20B1B1;
}

.video-transcript-time {
    display: inline-block;
    font-size: 14px;
    line-height: 22px;
    padding: 3px 8px;
    color: #141737;
    font-weight: 400;
    background: #F4F5F8;
    border-radius: 4px;
    flex-shrink: 0;
}

.video-transcript-text {
    font-size: 14px;
    line-height: 22px;
    font-weight: 400;
    color: #141737;
    margin: 0;
}

.video-sidebar {
    /* no border container */
}

.video-sidebar-tabs {
    margin: 0;
    display: flex;
    justify-content: flex-start;
}

.video-sidebar-tabs>li {
    flex: 0 0 auto;
    text-align: center;
    margin-bottom: 0;
}

.video-sidebar-tabs>li>a {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    color: #666;
    border: none;
    border-radius: 0;
    margin: 0;
    background: none;
}

.tab-content>.tab-pane,
.pill-content>.pill-pane {
    width: auto;
}

.video-sidebar-tabs>li>a:hover,
.video-sidebar-tabs>li>a:focus {
    background: none;
    text-decoration: none;
}

.video-sidebar-tabs>li.active>a,
.video-sidebar-tabs>li.active>a:hover,
.video-sidebar-tabs>li.active>a:focus {
    border: 0;
    color: #2a9d8f;
    border-bottom: 2px solid #2a9d8f;
    background: none;
}

.video-sidebar-content {
    padding: 0;
    overflow-y: auto;
}

.video-sidebar-content::-webkit-scrollbar {
    width: 4px;
}

.video-sidebar-content::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

/* @ai L2 Sidebar video-card styles（从 videos_list.css 迁移） */
.video-card {
    margin-bottom: 0;
    cursor: pointer;
}

.video-card-thumb {
    position: relative;
    width: 100%;
    height: 182px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #E8EBF0;
    transition: border-color 0.2s ease;
}

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

.video-card-thumb-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.video-card-thumb .hover-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: linear-gradient(180deg, transparent 0%, transparent 60%, rgba(0, 0, 0, 0.15) 100%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in;
    z-index: 2;
    -webkit-appearance: none;
    appearance: none;
}

.video-card-thumb .hover-video::-webkit-media-controls-enclosure,
.video-card-thumb .hover-video::-webkit-media-controls,
.video-card-thumb .hover-video::-webkit-media-controls-overlay-play-button,
.video-card-thumb .hover-video::-webkit-media-controls-panel,
.video-card-thumb .hover-video::-webkit-media-controls-playback-time,
.video-card-thumb .hover-video::-webkit-media-controls-current-time-display,
.video-card-thumb .hover-video::-webkit-media-controls-time-remaining-display,
.video-card-thumb .hover-video::-webkit-media-controls-timeline,
.video-card-thumb .hover-video::-webkit-media-controls-mute-button,
.video-card-thumb .hover-video::-webkit-media-controls-volume-slider,
.video-card-thumb .hover-video::-webkit-media-controls-fullscreen-button,
.video-card-thumb .hover-video::-internal-media-controls-button,
.video-card-thumb .hover-video::-internal-media-controls-overlay-cast-button {
    display: none !important;
}

.video-card-thumb .hover-cover {
    transition: opacity 0.2s ease-in;
    z-index: 1;
}

.video-card-thumb.is-playing .hover-video {
    opacity: 1;
    visibility: visible;
}

.video-card-thumb.is-playing .hover-cover {
    opacity: 0;
    visibility: hidden;
}

.video-card-thumb.is-playing .video-duration {
    display: none;
}

.video-card-thumb .video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    display: none;
    z-index: 20;
    color: #fff;
    font-size: 12px;
    background: linear-gradient(360deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 100%);
    padding-left: 12px;
}

.video-card-thumb .video-controls.show {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
}

.video-card-thumb .mute-btn {
    border: none;
    padding: 5px 12px;
    background: transparent;
    cursor: pointer;
}

.video-card-thumb .video-time {
    padding: 5px 12px;
    border-radius: 4px;
}

.video-card-thumb .sound-icon {
    width: 16px;
    height: 16px;
    display: block;
}

.video-card-thumb .sound-icon.sound-on {
    display: none;
}

.video-card-thumb.is-unmuted .sound-icon.sound-off {
    display: none;
}

.video-card-thumb.is-unmuted .sound-icon.sound-on {
    display: block;
}

.video-card-thumb .tooltip-container {
    position: relative;
}

.video-card-thumb .tooltip-container .tooltip-text {
    visibility: hidden;
    background-color: #303133;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 12px;
    white-space: nowrap;
    position: absolute;
    z-index: 1000;
    bottom: 100%;
    left: 50%;
    transform: translateX(-30%);
    margin-bottom: 8px;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

.video-card-thumb .tooltip-container .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 30%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #303133 transparent transparent transparent;
}

.video-card-thumb .tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.video-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, .2);
    color: #FFFFFF;
    padding: 0 8px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 20px;
    z-index: 3;
}

.video-card-info {
    padding-top: 8px;
}

.video-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #141737;
    line-height: 24px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.video-card:hover .video-card-thumb {
    border-color: #20B1B1;
}

.video-card:hover .video-card-title {
    color: #20B1B1;
}

.video-card-date {
    margin: 0;
    font-size: 14px;
    line-height: 22px;
    color: #999DA8;
}

/* @ai L2 Sidebar video-card overrides: narrower thumb height, compact info */
.video-detail-sidebar .video-card {
    margin-bottom: 16px;
}

.video-detail-sidebar .video-card:last-child {
    margin-bottom: 0;
}

.video-detail-sidebar .video-card-thumb {
    height: 152px;
}

.video-detail-sidebar .video-card-title {
    font-size: 16px;
    line-height: 24px;
    /* margin: 6px 0 2px; */
}

.video-detail-sidebar .video-card-date {
    font-size: 14px;
    line-height: 22px;
    margin: 0;
}

@media (max-width: 991px) {
    .video-detail-body {
        flex-direction: column;
    }

    .video-detail-main,
    .video-detail-sidebar {
        width: 100%;
    }

    .video-detail-title {
        font-size: 22px;
    }

    .video-sidebar-tabs {
        justify-content: flex-start;
        margin-top: 12px;
    }

    .video-sidebar-tabs>li:first-child {
        margin-left: 0;
    }

    .video-product-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .video-product-cta-right {
        width: 100%;
        justify-content: space-between;
    }

    .video-sidebar {
        margin-top: 24px;
        border-top: 1px solid #e8eaed;
        padding-top: 16px;
    }
}