@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(15px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    /*font-size: 62.5%;*/
    font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
    scroll-behavior: smooth
}

body {
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
    font-size: 1.4rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color .3s ease, color .3s ease
}

header {
    background: linear-gradient(135deg, #4a148c 0, #6a1b9a 100%);
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
    position: relative;
    overflow: hidden;
    transition: background .3s ease
}

.input-section::before,
header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%
}

header::before {
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: .8
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2
}

.nav-container {
    display: flex;
    align-items: center;
    padding: .8rem 0
}

.logo-container {
    display: flex;
    align-items: center;
    margin-right: .5rem
}

.logo-container img {
    height: 36px;
    margin-right: 0;
    transition: transform .3s ease
}

.logo-container img:hover {
    transform: scale(1.05)
}

.main-nav {
    display: flex;
    gap: 1.5rem;
    margin-left: .5rem
}

#url,
.main-nav a {
    transition: all .3s ease
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 500;
    padding: .6rem 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: .4rem
}

.footer-links a::after,
.main-nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ce93d8;
    transition: width .3s ease
}

.main-nav a.active,
.main-nav a:hover {
    color: #e1bee7
}

.footer-links a:hover::after,
.main-nav a.active::after,
.main-nav a:hover::after {
    width: 100%
}

.header-title {
    text-align: center;
    padding: .6rem 0 1.5rem
}

.header-title h1 {
    color: #fff;
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: .5px;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .2)
}

.container {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 1.2rem auto;
    padding: 0 1rem
}

.input-section {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .08);
    margin-bottom: 2.5rem;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    position: relative;
    overflow: hidden
}

.input-section::before {
    height: 4px;
    background: linear-gradient(90deg, #6a1b9a, #8e24aa, #ba68c8);
    transform: scaleX(0);
    transition: transform .3s ease
}

.input-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, .12)
}

.input-section:hover::before {
    transform: scaleX(1)
}

.input-container {
    display: flex;
    gap: 1rem;
    width: 100%;
    align-items: center;
    margin-bottom: 1.5rem
}

#url {
    flex: 1;
    padding: 1.6rem 1.8rem;
    font-size: 1.6rem;
    border: 1px solid #e1e5eb;
    border-radius: 8px;
    background-color: #fafafa;
    min-width: 0
}

#url:focus {
    border-color: #8e24aa;
    box-shadow: 0 0 0 3px rgba(156, 39, 176, .15);
    outline: 0;
    background-color: #fff
}

#selectmh {
    flex: 1;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
    padding: 1.6rem 1.8rem;
    font-size: 1.6rem;
    border: 1px solid #e1e5eb;
    border-radius: 8px;
    background-color: #fafafa;
    transition: all .3s ease;
    min-width: 140px;
    max-width: 140px
}

#selectmh:focus {
    border-color: #8e24aa;
    box-shadow: 0 0 0 3px rgba(156, 39, 176, .15);
    outline: 0;
    background-color: #fff;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238e24aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e")
}

#doplayers,
#searchvideo,
#doplayersB,
#doplayersC {
    background: linear-gradient(135deg, #6a1b9a 0, #8e24aa 100%);
    color: #fff;
    border: 0;
    padding: 1.6rem 2.2rem;
    border-radius: 8px;
    font-size: 1.6rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    box-shadow: 0 4px 15px rgba(106, 27, 154, .3);
    white-space: nowrap;
    min-width: 130px;
    flex-shrink: 0;
    height: auto
}




#searchvideo:hover {
    background: linear-gradient(135deg, #5b147d 0, #7b1fa2 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106, 27, 154, .4)
}

#searchvideo:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(106, 27, 154, .3)
}


#doplayers:hover {
    background: linear-gradient(135deg, #5b147d 0, #7b1fa2 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106, 27, 154, .4)
}

#doplayers:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(106, 27, 154, .3)
}

#doplayersB:hover {
    background: linear-gradient(135deg, #5b147d 0, #7b1fa2 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106, 27, 154, .4)
}

#doplayersB:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(106, 27, 154, .3)
}

#doplayersC:hover {
    background: linear-gradient(135deg, #5b147d 0, #7b1fa2 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106, 27, 154, .4)
}

#doplayersC:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(106, 27, 154, .3)
}

.example-button {
    display: inline-block;
    color: #6a1b9a;
    text-decoration: none;
    font-size: 1.4rem;
    padding: .8rem 1.2rem;
    border-radius: 6px;
    border: 1px solid #e1bee7;
    background-color: #f3e5f5;
    transition: all .3s ease;
    cursor: pointer;
}

.example-button:hover {
    background-color: #e1bee7;
    color: #4a148c;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(106, 27, 154, .2)
}

.example-link {
    display: inline-block;
    color: #6a1b9a;
    text-decoration: none;
    font-size: 1.4rem;
    padding: .8rem 1.2rem;
    border-radius: 6px;
    border: 1px solid #e1bee7;
    background-color: #f3e5f5;
    transition: all .3s ease;
    cursor: pointer;
}

.example-link:hover {
    background-color: #e1bee7;
    color: #4a148c;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(106, 27, 154, .2)
}

.player-section {
    background: #121212;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .18);
    position: relative;
    aspect-ratio: 16/9;
    min-height: 300px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    transition: all .3s ease;
    background-size: cover;
    background-position: center;
    height: 350px;
    background-image: url(../images/01ff4059acaceea8012028a9771.gif)
}

.player-section:hover {
    box-shadow: 0 15px 45px rgba(0, 0, 0, .22)
}

#ckplays {
    width: 100%;
    height: 100%
}

.container>div,
.history-section {
    animation: fadeIn .5s ease forwards
}

.history-section {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .08);
    margin: 2.5rem 0;
    display: none
}

.history-section.visible {
    display: block
}

.history-header {
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0
}

.clear-history,
.history-header,
.history-title {
    display: flex;
    align-items: center
}

.history-title {
    gap: .8rem
}

.clear-history {
    color: #6a1b9a;
    background: 0 0;
    border: 0;
    font-size: 1.4rem;
    cursor: pointer;
    gap: .4rem;
    transition: all .3s ease;
    padding: .5rem 1rem;
    border-radius: 4px;
    font-weight: 600 !important;
    color: #fff !important;
}

.clear-history:hover {
    color: #4a148c;
    background-color: rgba(106, 27, 154, .1);
    transform: translateY(-2px)
}

.history-list {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 1rem
}

.history-item {
    padding: 1.2rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    background-color: #f4f4f4;
    border: 1px solid #eaeaea;
    transition: all .3s ease;
    cursor: pointer;
    color: #fff;
}

.history-item:hover {
    background-color: #f0e6ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(106, 27, 154, .1)
}

.history-url {
    flex: 1;
    margin-right: 1rem
}

.history-actions {
    gap: .8rem
}

.history-play,
.history-remove {
    background: 0 0;
    color: #6a1b9a;
    transition: all .3s ease
}

.history-play:hover,
.history-remove:hover {
    background-color: rgba(106, 27, 154, .1);
    color: #4a148c
}

.no-history {
    text-align: center;
    padding: 2rem;
    color: #9e9e9e;
    font-size: 1.6rem
}

.loading-indicator,
footer::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%
}

.loading-indicator {
    height: 100%;
    background-color: rgba(0, 0, 0, .75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    color: #fff;
    font-size: 1.6rem;
    gap: 1.5rem
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, .15);
    border-top-color: #ce93d8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: relative
}

.spinner::after {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 3px solid rgba(255, 255, 255, .2);
    border-top-color: #e1bee7;
    border-radius: 50%;
    animation: spin .8s reverse infinite
}

.info-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #9e9e9e;
    font-size: 1.8rem;
    text-align: center;
    padding: 0 2rem;
    transition: all .3s ease
}

.comment-section {
    background: #fff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
    margin-top: 3rem
}

.features-section {
    background: #fff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
    margin-top: 3rem
}

.features-title {
    font-size: 2rem;
    color: #4a148c;
    padding-bottom: 1rem;
}

.comment-title {
    font-size: 2rem;
    color: #4a148c;
    padding-bottom: 1rem;
}
.comment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr))
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr))
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    border-radius: 8px;
    transition: all .3s ease
}

.feature-item:hover {
    background-color: #f9f5ff;
    transform: translateY(-5px)
}

.feature-icon {
    font-size: 3rem;
    color: #8e24aa;
    margin-bottom: 1.5rem
}

.feature-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333
}

.feature-desc {
    font-size: 1.4rem;
    color: #666;
    line-height: 1.6
}

.footer-links a,
footer {
    color: #ffffff;
    position: relative
}


footer {
    background: linear-gradient(135deg, #040404 0, #1d2e41 100%);
    padding: 4rem 0 2rem;
    color: #fff;
    position: relative; /* 必须添加，让伪元素能正确定位 */
}

footer::before {
    content: ""; /* 必须添加，否则伪元素不会渲染 */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* 关键修复：必须设置宽度 */
    height: 100%; /* 关键修复：必须设置高度 */
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: .8;
    z-index: 0;
    pointer-events: none; /* 防止影响点击事件 */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap
}

.footer-links a {
    text-decoration: none;
    transition: all .3s ease;
    font-size: 1.4rem;
    padding: .5rem 0
}

.footer-links a:hover {
    color: #ce93d8
}

.copyright {
    font-size: 1.3rem;
    margin-top: 1.5rem;
    opacity: .8;
    line-height: 1.8
}

@media screen and (max-width:800px) {

    #selectmh,
    #url {
        font-size: 1.6rem;
        border: 1px solid #e1e5eb;
        border-radius: 8px;
        transition: all .3s ease;
        background-color: #fafafa;
        min-width: 0
    }

    #selectmh {
        width: 100%;
        padding: 1.3rem 1.4rem !important;
        max-width: 100vh !important
    }

    #url {
        flex: 1;
        padding: 1.3rem 1.4rem
    }

    #url:focus {
        border-color: #8e24aa;
        box-shadow: 0 0 0 3px rgba(156, 39, 176, .15);
        outline: 0;
        background-color: #fff
    }

    #playA,
    #playB,
    #playC {
        padding: .6rem 1rem;
        font-size: 1rem
    }

    .input-container {
        flex-direction: column;
        margin-bottom: 1rem
    }
    
    #searchvideo,
    #doplayers,
    #doplayersB,
    #doplayersC {
        width: 100%;
        padding: 1.1rem;
        min-width: auto;
        font-size: 1.7rem
    }

    .example-link {
        /*width: 100%;*/
        margin-left: 0;
        text-align: center;
        margin-top: 1rem
    }
    
    .example-button {
        /*width: 100%;*/
        margin-left: 0;
        text-align: center;
        margin-top: 1rem
    }

    .header-title h1 {
        font-size: 2.2rem
    }

    .input-section {
        padding: 2rem
    }

    .main-nav {
        gap: 1rem
    }

    .main-nav a {
        font-size: 1.2rem
    }

    .theme-settings {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem !important
    }

    .logo-container img {
        height: 30px;
        margin-right: 0
    }

    .history-url {
        font-size: 1.3rem
    }
}

@media screen and (max-width:360px) {

    #searchvideo,
    #doplayers,
    #doplayersB,
    #doplayersC {
        font-size: 1.5rem;
        gap: .5rem;
        padding: 1.4rem 1rem
    }

    .input-section {
        padding: 1.5rem
    }

    .main-nav {
        gap: .7rem
    }

    .logo-container img {
        height: 26px
    }

    .main-nav a {
        font-size: 1.1rem
    }

    .history-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem
    }
}

.container>div {
    opacity: 0
}

.input-section {
    animation-delay: .1s
}

.history-section {
    animation-delay: .4s
}

.features-section {
    animation-delay: .5s
}

.comment-section {
    animation-delay: .5s
}


#url.error {
    border-color: #f44;
    box-shadow: 0 0 0 3px rgba(255, 68, 68, .15)
}

.theme-settings {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed #f0f0f0;
    padding-bottom: .5rem
}

.theme-label {
    font-size: 1.5rem;
    margin-right: .8rem;
    font-weight: 600;
    transition: color .3s ease;
    text-shadow: 0 0 2px rgba(0, 0, 0, .15);
    line-height: 1.8
}

.theme-control-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap; /* 关键！禁止换行 */
    white-space: nowrap; /* 防止文本换行 */
    overflow: hidden;   /* 防止溢出 */
}

#themeToggle {
    vertical-align: middle;
    font-weight: 600 !important;
    text-shadow: 0 0 2px rgba(0, 0, 0, .3) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .2) !important
}



body.dark-mode {
    background-color: #121212;
    color: #e0e0e0
}

body.dark-mode .features-section,
body.dark-mode .comment-section,
body.dark-mode .history-section,
body.dark-mode .input-section {
    background: #1e1e1e;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .3)
}

body.dark-mode .feature-title,
body.dark-mode .history-url {
    color: #e0e0e0
}

body.dark-mode .feature-desc {
    color: #b0b0b0
}

.dark-mode #selectmh,
.dark-mode #selectmh option,
body.dark-mode #url {
    background-color: #2d2d2d;
    color: #e0e0e0;
    border-color: #3d3d3d
}


body.dark-mode .example-button,
body.dark-mode .example-link,
body.dark-mode .history-item {
    background-color: #332940;
    color: #ce93d8;
    border-color: #4a3a5c
}

body.dark-mode .example-button:hover,
body.dark-mode .example-link:hover,
body.dark-mode .history-item:hover {
    background-color: #4a3a5c;
    color: #e1bee7
}

body.dark-mode .info-message,
body.dark-mode .no-history {
    color: #b0b0b0
}

body.dark-mode .copyright {
    color: #707070
}

body.dark-mode .history-header,
body.dark-mode .theme-settings {
    border-top: 1px dashed #333
}

body.dark-mode .comment-title,
body.dark-mode .features-title,
body.dark-mode .history-title {
    color: #ce93d8;
    border-bottom: 1px solid #333
}


body.dark-mode .comment-title,
body.dark-mode .features-title{
    color: #e0e0e0;
    border-color: #3d3d3d
}

body.dark-mode .clear-history,
body.dark-mode .history-play,
body.dark-mode .history-remove {
    color: #ce93d8
}

body.dark-mode .clear-history:hover,
body.dark-mode .history-play:hover,
body.dark-mode .history-remove:hover {
    color: #e1bee7;
    background-color: rgba(156, 39, 176, .2)
}

body.dark-mode .theme-label {
    color: #f0f0f0;
    text-shadow: 0 0 3px rgba(0, 0, 0, .5)
}

body:not(.dark-mode) .theme-label {
    color: #222;
    text-shadow: 0 0 1px rgba(255, 255, 255, .8)
}

#primaryColor {
    vertical-align: middle
}

.artplayer-app {
    width: 100%;
    height: 100%
}

.episode-btn {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    transition: all .15s
}

.episode-btn:hover {
    background-color: #f0f0f0
}

.episode-btn.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff
}

#episodeScroller::-webkit-scrollbar {
    width: 6px
}

#episodeScroller::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px
}

#episodeScroller::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px
}

#episodeScroller::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8
}

.daoxu {
    width: 80px;
    padding: 6px;
    background: #009688;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    text-align: center;
    color: #fff;
    transition: all .2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
    font-weight: 600
}

.xuanjigundong {
    flex: 1;
    max-height: 200px;
    overflow-y: auto;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fafafa;
    scrollbar-width: thin
}

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    gap: 12px
}

.history-content {
    flex: 1;
    min-width: 0
}

.history-title,
.history-url {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.history-title {
    font-weight: 500;
    font-size: 1.55rem;
    color: #000000;
    margin-bottom: 2px;
}

.history-url {
    font-size: 1.25rem;
    color: #181818
}

.history-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0
}

.history-play,
.history-remove {
    width: 28px;
    height: 28px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #f8f9fa;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0
}

.dark-mode .video-info-container {
    background: #1e1e1e;
    color: #e0e0e0;
    border-color: #333
}

.dark-mode .video-info-container h2 {
    color: #fff
}

.dark-mode .episodeScroller {
    background: #1a1a1a;
    border-color: #333
}

.dark-mode .episode-btn {
    background: #2c2c2c;
    color: #ddd;
    border: 1px solid #444
}

.dark-mode .episode-btn:hover {
    background: #3a3a3a;
    color: #fff
}

.dark-mode .episode-btn.active {
    background: #0d47a1;
    color: #fff;
    border-color: #1976d2
}

.dark-mode .episodeScroller::-webkit-scrollbar {
    width: 8px
}

.dark-mode .episodeScroller::-webkit-scrollbar-track {
    background: #1a1a1a
}

.dark-mode .episodeScroller::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px
}

@media (min-width:450px) {
    .video-main-layout {
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 1.5rem !important
    }

    .video-main-layout>div:first-child {
        width: auto !important;
        max-width: none !important
    }

    .video-main-layout>div:first-child img {
        width: 200px !important;
        height: 300px !important
    }

    .video-main-layout>div:last-child {
        flex: 1;
        min-width: 0
    }
}

.popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: #000;
    background-color: rgba(0, 0, 0, .4)
}

.popup-content {
    background-color: #fefefe;
    margin: 5%auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 95%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .5)
}

.close {
    color: #aaa;
    font-size: 28px;
}

.close:focus,
.close:hover {
    color: #000;
    text-decoration: none;
    cursor: pointer
}

.play-source-scroller {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch; /* iOS 流畅滚动 */
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #ccc transparent; /* Firefox 滚动条颜色 */
  padding: 4px 0;
  margin: 0.5rem 0;
  gap: 0;
}

/* 隐藏默认滚动条（可选美观） */
.play-source-scroller::-webkit-scrollbar {
  height: 6px;
}
.play-source-scroller::-webkit-scrollbar-thumb {
  background: #aaa;
  border-radius: 3px;
}
.play-source-scroller::-webkit-scrollbar-track {
  background: transparent;
}

.play-source-list {
  display: flex;
  flex-wrap: nowrap; /* 关键：禁止换行 */
  gap: 8px;
  padding: 0 8px;
  min-width: fit-content; /* 确保内容撑开 */
}

.play-source-list button {
  white-space: nowrap; /* 防止文字换行 */
  min-width: 60px;
  text-align: center;
}
.history-titleone{
    padding-top:15px;
}

.zkfeatures-title {
    display: flex;
    align-items: center; /* 关键！让子元素垂直居中 */
    justify-content: space-between;
    color: #6a1b9a;
    cursor: pointer;
    margin: 0;
    font-size: 1.5rem;
}


/* 重置 Waline 评论区域的字体基准 */
/* 修复 Waline 字体过小问题 */
#comment .wl-container {
  font-size: 18px !important;
  line-height: 1.8 !important;
}

#comment .wl-input,
#comment .wl-comment,
#comment .wl-meta,
#comment button,
#comment a {
  font-size: 18px !important;
}

#comment .wl-cards,
#comment .wl-meta-head{
  font-size: 15px !important;
}


 /* ======================================
           独立导航容器：完全隔离liuyan.css的影响
           ====================================== */
        /* 重置header为独立容器，完全覆盖liuyan.css的header样式 */
        #custom-header {
            position: relative !important;
            z-index: 9999 !important; /* 最高层级，避免被任何元素遮挡 */
            color: #fff !important;
            padding: 0 !important;
            box-shadow: 0 4px 20px rgba(0, 0, 0, .15) !important;
            overflow: visible !important; /* 关键：允许下拉菜单超出header范围 */
        }

        /* 自定义容器：PC端上下分层布局（导航上+标题下） */
        #custom-header .custom-header-container {
            max-width: 1200px !important;
            margin: 0 auto !important;
            padding: 0.5rem 2rem !important;
            display: flex !important;
            flex-direction: column !important; /* PC端：上下分层 */
            align-items: flex-start !important; /* 导航靠左 */
            position: relative !important;
            z-index: 10000 !important;
        }

        /* 移动端菜单按钮：强制显示+样式 */
        #custom-nav-toggle {
            display: none !important;
            background: transparent !important;
            border: none !important;
            color: #fff !important;
            font-size: 1.8rem !important;
            cursor: pointer !important;
            padding: 0.5rem !important;
            z-index: 10001 !important;
        }

        /* 自定义导航容器：PC端靠左，顶部占位 */
        #custom-main-nav {
            display: flex !important;
            align-items: center !important;
            gap: 1.5rem !important;
            position: relative !important;
            z-index: 10000 !important;
            flex-shrink: 0 !important; /* 防止导航被挤压 */
            margin-bottom: 1rem !important; /* 导航和标题之间的间距，匹配追剧助手 */
        }

        /* 导航链接容器：PC端默认显示，靠左 */
        #custom-nav-links {
            display: flex !important;
            gap: 1.5rem !important;
            z-index: 10002 !important;
        }

        /* 导航链接样式：覆盖liuyan.css的.main-nav a */
        #custom-nav-links a {
            color: #fff !important;
            text-decoration: none !important;
            display: flex !important;
            align-items: center !important;
            gap: 0.4rem !important;
            padding: 0.8rem 0 !important;
            position: relative !important;
            font-size: 1.4rem !important;
            font-weight: 500 !important;
        }

        /* 激活/hover样式 */
        #custom-nav-links a.active::after {
            content: '' !important;
            position: absolute !important;
            bottom: 0 !important;
            left: 0 !important;
            width: 100% !important;
            height: 2px !important;
            background: #ce93d8 !important;
        }
        #custom-nav-links a:hover {
            color: #e1bee7 !important;
        }

        /* 标题容器：PC端居中（相对于整个header），和导航分层 */
        #custom-header-title {
            width: 100% !important; /* 撑满容器，实现居中 */
            text-align: center !important;
            padding: 0.2rem 0 1rem !important; /* 底部留白，匹配追剧助手 */
            margin: 0 !important;
            z-index: 9999 !important; /* 低于导航，避免遮挡 */
        }
        #custom-header-title h1 {
            font-size: 2.4rem !important;
            margin: 0 !important;
            color: #fff !important;
            text-shadow: 0 2px 10px rgba(0, 0, 0, .2) !important;
        }

        /* ======================================
           移动端适配（800px以下）：强制覆盖
           ====================================== */
        @media (max-width: 800px) {
            /* 显示移动端菜单按钮 */
            #custom-nav-toggle {
                display: block !important;
            }

            /* 下拉菜单：完全脱离liuyan.css的布局限制 */
            #custom-nav-links {
                display: none !important;
                position: absolute !important;
                top: 100% !important; /* 紧贴header底部 */
                left: 0 !important;
                flex-direction: column !important;
                gap: 0 !important;
                width: 200px !important;
                border-radius: 8px !important;
                box-shadow: 0 4px 30px rgba(0, 0, 0, .3) !important;
                z-index: 99999 !important; /* 终极最高层级，绝对不被遮挡 */
                padding: 0.5rem 0 !important;
                overflow: visible !important;
            }

            /* 移动端链接样式：强制铺满宽度 */
            #custom-nav-links a {
                padding: 0.8rem 1.5rem !important;
                width: 100% !important;
                border-bottom: 1px solid rgba(255,255,255,0.1) !important;
            }

            /* 激活状态：显示下拉菜单 */
            #custom-nav-links.show {
                display: flex !important;
            }

            /* 移动端标题：取消分层，改为横向布局 */
            #custom-header-title {
                width: auto !important;
                text-align: center !important;
                padding: 0.5rem 0 !important;
                flex-grow: 1 !important;
            }
            #custom-header-title h1 {
                font-size: 1.8rem !important;
            }

            /* 移动端容器：横向布局（菜单按钮+标题） */
            #custom-header .custom-header-container {
                flex-direction: row !important; /* 移动端：横向 */
                align-items: center !important;
                justify-content: flex-start !important;
            }

            /* 移动端导航容器：取消底部间距 */
            #custom-main-nav {
                margin-bottom: 0 !important;
            }
        }

        /* ======================================
           PC端适配（801px以上）：强制固定布局
           ====================================== */
        @media (min-width: 801px) {
            /* PC端强制显示导航，取消下拉 */
            #custom-nav-links {
                display: flex !important;
                position: static !important;
                background: transparent !important;
                width: auto !important;
                box-shadow: none !important;
            }
            /* PC端隐藏菜单按钮 */
            #custom-nav-toggle {
                display: none !important;
            }
        }

        /* ======================================
           降低其他元素层级，避免遮挡菜单
           ====================================== */
        .announcement-banner, .bookmark-tip {
            position: relative !important;
            z-index: 99 !important; /* 远低于菜单的99999 */
        }
        
        
        /* 弹窗基础样式 */
        #popup {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 999999 !important;
            overflow-y: auto;
            padding: 20px;
            box-sizing: border-box;
        }
        
        /* 弹窗内容容器 */
        #popup #popupText {
            position: relative;
            z-index: 9999999 !important;
        }
        
        
.bookmark-tip {
    background: linear-gradient(135deg, #546981 0, #496789 100%);
    color: #fff;
    padding: 1.2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .1);
    margin: 0rem 0rem 1rem 0rem;
    max-width: 1200px;
    text-align: center;
    font-family: "Segoe UI", sans-serif;
    transition: transform .3s ease, box-shadow .3s ease;
    
}

.bookmark-tip:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .15)
}

.bookmark-btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .8rem 1.5rem;
    background-color: rgb(54 160 58);
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .3s ease
}

.bookmark-btn:hover {
    background-color: rgba(255, 255, 255, .3);
    transform: scale(1.02)
}

.bookmark-btn i,
.permanent-link {
    font-size: 1.3rem
}

.permanent-link {
    margin-top: 1rem;
    font-weight: 600
}

.permanent-link a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 255, 255, .6);
    transition: all .3s ease
}

.permanent-link a:hover {
    color: #e1f5fe;
    border-bottom-color: #fff
}