@charset "UTF-8";

body {
    font-family: -apple-system-font, BlinkMacSystemFont, 'Nanum Gothic', helvetica, "Apple SD Gothic Neo", Arial, sans-serif;
    font-size: 14px;
    background-color: rgb(17, 19, 25);
}

div,
dl,
dt,
dd,
form,
h1,
h2,
h3,
h4,
h5,
h6,
img,
ol,
ul,
li,
table,
th,
td,
p,
span,
a {
    border: 0
}

ol,
ul,
li {
    margin: 0;
    padding: 0;
    list-style: none
}

a {
    background-color: transparent;
    -webkit-tap-highlight-color: transparent;
    color: rgba(255, 255, 255, 0.87); 
    text-decoration: none;
    transition: color 0.3s ease;
}

a,
a:link,
a:visited,
a:active,
a:hover,
button {
    outline: none;
    text-decoration: none;
    cursor: pointer;
}

a:hover {
    color: #E50916 !important
}

a:focus {
    text-decoration: none
}

*,
::after,
::before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

input,
button,
select,
textarea {
    border: 0;
    background: 0 0;
    border-radius: 0;
    outline: medium none;
    font-weight: inherit;
    font-style: inherit;
    font-size: inherit;
    font-family: inherit;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0)
}

img {
    border: none;
    max-width: 100%;
    height: auto;
    vertical-align: top
}

i,
em {
    font-style: inherit
}

table {
    border-collapse: collapse;
    border-spacing: 0
}

::selection {
    text-shadow: none;
    background: #E50916;
    color: hsla(0, 0%, 100%, .87)
}

::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, .2);
    border-radius: 6px;
    -webkit-transition: background 200ms ease;
    -moz-transition: background 200ms ease;
    transition: background 200ms ease
}

::-webkit-scrollbar {
    width: 8px;
    border-radius: 6px;
    background-color: rgba(0, 0, 0, .2)
}

::-webkit-scrollbar-button {
    display: none
}

img {
    overflow: hidden;
    line-height: 0;
    font-size: 0
}


/* 覆盖浏览器自动填充的背景色和文字颜色 */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px transparent inset !important;
    -webkit-text-fill-color: #ffffff !important; /* 设置文字颜色为白色 */
    transition: background-color 5000s ease-in-out 0s;
    background-color: transparent !important;
    color: #ffffff !important;
}

/* 针对Firefox的自动填充 */
input:autofill,
input:autofill:hover, 
input:autofill:focus,
input:autofill:active {
    box-shadow: 0 0 0 30px transparent inset !important;
    -webkit-text-fill-color: #ffffff !important; /* 设置文字颜色为白色 */
    transition: background-color 5000s ease-in-out 0s;
    background-color: transparent !important;
    color: #ffffff !important;
}

/* 额外添加一些选择器以确保覆盖所有情况 */
input.login-input:-webkit-autofill,
.login-form input:-webkit-autofill,
.register-form input:-webkit-autofill {
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
}

/* common class*/
.plr-12 {
    padding: 0 12px;
}


/* navbar */
.main-bg {
    background-color: rgb(17, 19, 25);
}

.red-bg {
    background-color: #E50916;
    color: hsla(0, 0%, 100%, .87);
}

.flex {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex
}

.head {
    display: flex;
    justify-content: space-between;
    width: 100%;
    background: rgba(10, 12, 15, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 90px;
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.head a {
    color: hsla(0, 0%, 100%, .87)
}

.head .logo-brand {
    width: 182px;
    height: 56px;
    display: inline-block;
    margin: 17px 0;
}

.head .logo-img {
    width: 100%;
    height: 100%;
}

.head .head-nav li {
    position: relative;
    display: inline-block;
    line-height: 90px;
    height: 100%;
    margin-left: 36px;
    width: auto;
}

.head .right {
    display: flex;
    align-items: center;
    margin-left: auto;
    /* 确保右侧元素靠右 */
}

.head .right a {
    color: #fff;
    font-size: 15px;
    padding: 0 15px;
}

/* search box */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: rgba(17, 19, 25, 0.85);
    backdrop-filter: blur(10px);
    /* 添加毛玻璃效果 */
    -webkit-backdrop-filter: blur(10px);
    /* Safari支持 */
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    /* 添加阴影 */
    z-index: 1000;
    transition: right 0.3s ease;
}



.search-drawer.active {
    right: 0;
}

.search-content {
    padding: 20px;
}

/* 抽屉顶部区域 */
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.drawer-header h3 {
    color: #fff;
    font-size: 18px;
    margin: 0;
}

.search-close i {
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    transition: all 0.3s ease;
}

.search-close i:hover {
    color: #E50916;
    transform: rotate(90deg);
}


/* 搜索表单区域 */
.search-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

/* 搜索输入框 */
.search-input-wrapper {
    width: 100%;
}

.search-input {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border-radius: 4px;
    padding: 10px 15px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.search-input i.fa-search {
    color: #fff;
    margin-right: 10px;
}

.search-input input {
    background: none;
    border: none;
    color: #fff;
    width: 100%;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-input .search-clear {
    position: absolute;
    right: 10px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-input .search-clear:hover {
    color: #E50916;
    transform: scale(1.1);
}

/* 搜索按钮 */
.search-submit-btn {
    background-color: #E50916;
    color: #fff;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
}

.search-submit-btn:hover {
    background-color: #f50f1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(229, 9, 22, 0.3);
}

.search-submit-btn i {
    font-size: 16px;
}


/* 焦点动画效果 */
.search-input:focus-within {
    border-color: #E50916;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(229, 9, 22, 0.2);
}

.search-input:focus-within i.fa-search {
    color: #E50916;
}

.search-input input:focus::placeholder {
    opacity: 0.5;
    transform: translateX(5px);
}

/* 热门搜索区域 */
.hot-searches {
    color: #fff;
    margin-top: 20px;
}

.hot-searches h3 {
    margin-bottom: 15px;
    font-size: 16px;
}



/* 移动端底部导航 */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(17, 19, 25, 0.85);
    backdrop-filter: blur(10px);
    z-index: 999;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav ul {
    display: flex;
    justify-content: space-around;
}

.mobile-nav li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.mobile-nav li a i {
    font-size: 20px;
    margin-bottom: 5px;
}






/* 导航栏活动项样式 */
.head .head-nav li.active a {
    color: #E50916 !important; /* 使用网站主题红色 */
    font-weight: 600; /* 加粗 */
    position: relative; /* 为下面的下划线定位 */
}

/* 为活动项添加底部指示器 */
.head .head-nav li.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #E50916;
    border-radius: 2px 2px 0 0;
    transform: scaleX(0.8); /* 略微缩短一点 */
    transition: transform 0.3s ease;
}

/* 鼠标悬停时的动画效果 */
.head .head-nav li.active:hover::after {
    transform: scaleX(1);
}

/* 移动端导航栏活动项样式 - 增加特异性 */
.mobile-nav li.active a {
    color: #E50916;
    font-weight: 500;
}

/* 移动端导航栏活动项图标样式 */
.mobile-nav li.active a i {
    color: #E50916;
    transform: scale(1.1);
}




/* movie-list */
.movie-grid {
    padding: 20px 0px;
    margin: 20px 0;
    width: 100%;
}

.movie-column-title {
    font-weight: 700;
    font-size: 28px;
    font-style: normal;
    color: #fff;
    padding-bottom: 12px;
}

.movie-list {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr)); /* 使用minmax确保列宽一致 */
    gap: 15px;
    row-gap: 30px;

    position: relative; /* 为加载覆盖层添加相对定位 */
    transition: opacity 0.3s ease; /* 添加淡入淡出效果 */
    width:100%;
}



.movie-grid:has(.no-favorites-container) .movie-list {
    min-height: 0;
}

.movie-list.loading {
    opacity: 0.6; /* 加载时降低透明度 */
}


/* 其他新增样式保持不变 */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}


.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

.movie-item {
    width: 100%; /* 确保宽度占满网格单元格 */
    display: flex;
    flex-direction: column;
    text-align: center;
    height: 100%;
    flex: none; /* 防止flex布局自动调整宽度 */
    box-sizing: border-box; /* 确保padding和border不会增加元素宽度 */
    max-width: 100%; /* 防止内容撑开容器 */
}


.movie-poster {
    width: 100%;
    aspect-ratio: 3/4; /* 固定宽高比 */
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 8px;
    position: relative;
}

.new-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #E50916;
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    z-index: 3;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transform: rotate(0);
    transition: all 0.3s ease;
}
.episode-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    z-index: 3;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.movie-poster:hover .episode-badge {
    background-color: #E50916;
}
.movie-poster::before {
    content: '\f04b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: #ffffff;
    font-size: 20px;
    z-index: 2;
    opacity: 0;
    transition: all 0.3s ease;
    background-color: #ff0000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.movie-poster::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.2) 50%,
            rgba(0, 0, 0, 0.6) 100%);
    opacity: 1;
    transition: all 0.3s ease;
}

.movie-poster:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.movie-poster:hover::after {
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0.7) 100%);
            opacity: 1;
}



.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;}

.movie-poster:hover img {
    transform: scale(1.1);
}

.movie-title {
    font-size: 14px;
    font-weight: bold;
    margin: 8px 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
    height: 20px; /* 固定高度 */
    line-height: 20px;
    width: 100%;
    max-width: 100%; /* 防止内容撑开容器 */
    box-sizing: border-box;
}
.movie-actor {
    font-size: 12px;
    color: #666;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 18px; /* 固定高度 */
    line-height: 18px;
    width: 100%;
    max-width: 100%; /* 防止内容撑开容器 */
    box-sizing: border-box;
}


.movie-actor a{
    font-size: 12px;
    color: #666;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}



/* 收藏删除按钮样式 */
.bookmark-remove-btn {
    position: absolute;
    bottom: 12px;
    left: 10%;
    width: 80%;
    background-color: rgba(229, 9, 22, 0.85);
    color: #fff;
    padding: 10px 0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    opacity: 0;
    transform: translateY(10px);
    z-index: 5;
}

/* 鼠标悬停时显示按钮 */
.movie-poster:hover .bookmark-remove-btn {
    opacity: 1;
    transform: translateY(0);
}

.bookmark-remove-btn:hover {
    background-color: #f50f1c;
    box-shadow: 0 4px 8px rgba(229, 9, 22, 0.5);
}

/* 点击效果 */
.bookmark-remove-btn:active {
    transform: scale(0.95);
}

/* 按钮图标 */
.bookmark-remove-btn i {
    margin-right: 5px;
}

.no-favorites-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

.no-favorites-message i {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 15px;
}

.no-favorites-message p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* widescreen */
.widescreen-list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
    min-height: auto; 
}

.widescreen-list .movie-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    width: 100%;
    
}

.widescreen-list .movie-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center;
    transition: transform 0.3s ease;
}

.widescreen-list .movie-item {
    flex: 1;
}


/* detail */
.detail-container {
    padding: 120px 80px 40px;
    color: #fff;
    overflow: hidden;
}

.container {
    padding: 40px 80px 40px;
    color: #fff;
    overflow: hidden;
}

.detail-row {
    display: flex;
    margin-bottom: 40px;
}

/* 封面样式 */
.detail-poster {
    width: 300px;
    margin-right: 40px;
}

.detail-poster img {
    width: 100%;
    border-radius: 8px;
}

/* 信息样式 */
.detail-info {
    flex: 1;
}

.detail-title {
    font-size: 32px;
    margin-bottom: 20px;
}

.detail-meta .meta-item {
    margin-bottom: 12px;
}

.meta-item .label {
    color: rgba(255, 255, 255, 0.6);
    margin-right: 10px;
}

/* 按钮样式 */
.detail-actions {
    margin-top: 30px;
    display: flex;
    align-items: center;
}

.play-btn {
    background: #E50916;
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.play-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.play-btn i {
    margin-right: 8px;
    position: relative;
    z-index: 1;
}

/* 涟漪动画效果 */
.play-btn:hover i::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: ripple 0.6s ease-out infinite;
}

@keyframes ripple {
    0% {
        width: 0px;
        height: 0px;
        opacity: 0.8;
    }

    100% {
        width: 50px;
        height: 50px;
        opacity: 0;
    }
}

.bookmark-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* detail-desc */
.detail-desc {
    width: 100%;
    position: relative;
    padding-bottom: 60px;
    /* 为标签预留空间 */
}

.detail-desc .content-wrapper {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -moz-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    max-height: 6em; /* 确保能显示3行 */
    transition: all 0.3s ease;
    position: relative;
}



/* 未展开状态添加渐变背景 */
.detail-desc:not(.expanded) .content-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(180deg, transparent, rgb(17, 19, 25) 80%);
    pointer-events: none;
    /* 关键修改：默认不显示 */
    opacity: 0;
}
.detail-desc:not(.expanded) .content-wrapper.has-more::after {
    opacity: 1;
}

/* 展开状态的样式 */
.detail-desc.expanded .content-wrapper {
    display: block;
    max-height: 1000px;
    margin-bottom: 10px;
}

/* 内部段落样式 */
.detail-desc .content-wrapper p {
    margin-bottom: 10px;
}

.detail-tags {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

.detail-tags {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

.detail-tags .tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin-right: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.detail-tags .tag:hover {
    background: #E50916;
    color: #fff!important;
    cursor: pointer;
}

.detail-desc .expand-btn {
    position: static;
    /* 改为静态定位 */
    text-align: center;
    color: #E50916;
    cursor: pointer;

    transition: all 0.3s ease;
}

/* 未展开状态添加渐变背景 */
.detail-desc:not(.expanded) .expand-btn {
    margin-top: -40px;
    /* 向上偏移覆盖文字底部 */
    background: linear-gradient(180deg, transparent, rgb(17, 19, 25) 80%);
    padding-top: 30px;
    display: none;
}
/* 当内容超过3行时显示展开按钮 */
.detail-desc:not(.expanded) .content-wrapper.has-more + .expand-btn {
    display: block;
}

.detail-desc .expand-btn i {
    font-size: 20px;
    /* 增大图标尺寸 */
    display: inline-block;
    padding: 10px 20px;
    /* 增加图标周围可点击区域 */
    transition: transform 0.3s ease;
}


/* episode */
.episode-list {
    width: 100%;
    margin-top: 40px;
}

.episode-list h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #fff;
}

.episode-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
}

.episode-item {
    padding: 12px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #fff;
    transition: all 0.3s ease;
}

.episode-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.episode-item.active {
    background: #E50916;
}


.episode-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}


.breadcrumb-navigation {
    margin-bottom: 20px;
}

.breadcrumb-navigation {
    margin-bottom: 20px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
    background: transparent;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.6); /* 稍微暗一点的白色 */
    font-size: 20px;
}

.breadcrumb li a {
    color: rgba(255, 255, 255, 0.87); /* 与主题文字颜色一致 */
    text-decoration: none;
}

.breadcrumb li a:hover {
    color: #E50916; /* 与主题悬停颜色一致 */
    text-decoration: none;
}

.breadcrumb li i {
    margin: 0 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5); /* 箭头颜色稍微暗一点 */
}

.breadcrumb li.active {
    color: #E50916; /* 当前页面使用主题色 */
}

.player-sidebar h3 {
    color: #fff;
}

.sort-btn {
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.sort-btn:hover {
    color: #fff;
}

/* 自定义确认对话框样式 */
.custom-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.custom-confirm-dialog {
    background: rgb(17, 19, 25);
    width: 400px;
    border-radius: 8px;
    padding: 30px;
}

.custom-confirm-message {
    color: #fff;
    font-size: 16px;
    text-align: center;
    margin-bottom: 20px;
}

.custom-confirm-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.custom-confirm-cancel {
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-confirm-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
}

.custom-confirm-ok {
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    background: #E50916;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-confirm-ok:hover {
    background-color: #f50f1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(229, 9, 22, 0.3);
}


/* 在您的CSS文件中添加或修改以下样式 */
.dr_review_value_1, .dr_review_value_2, .dr_review_value_3, .dr_review_value_4, .dr_review_value_5 {
    color: #ccc; /* 未选中的星星颜色 */
    cursor: pointer;
}

.star-on {
    color: #ffcc00 !important; /* 选中的星星颜色 - 金黄色 */
}

/* 如果星星是使用背景图片实现的，可能需要这样的样式 */
.dr_review_value_1, .dr_review_value_2, .dr_review_value_3, .dr_review_value_4, .dr_review_value_5 {
    background-image: url('/path/to/gray-star.png'); /* 未选中的星星图片 */
}

.star-on {
    background-image: url('/path/to/yellow-star.png') !important; /* 选中的星星图片 */
}

/* login */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.login-overlay.active {
    display: flex;
}

.login-modal {
    background: rgb(17, 19, 25);
    width: 400px;
    border-radius: 8px;
    padding: 30px;
}

.login-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.login-header h3 {
    color: #fff;
    font-size: 20px;
}

.close-login {
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
}

.close-login:hover {
    color: #E50916;
    transform: rotate(90deg);
}

.input-group {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.input-group i {
    color: rgba(255, 255, 255, 0.6);
    margin-right: 10px;
}

.input-group input {
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    font-size: 15px;
}

.login-btn {
    width: 100%;
    background: #E50916;
    color: #fff;
    padding: 12px;
    border-radius: 4px;
    margin: 20px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
    text-align: center;
}

.login-btn:hover {
    background-color: #f50f1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(229, 9, 22, 0.3);
}

/* 禁用按钮样式 */
.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 输入错误样式 */
.input-group.error input {
    border-color: #f44336;
}

.input-group.error::after {
    content: attr(data-error);
    color: #f44336;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.login-footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}


/* 特定区域的链接样式 */

.register-link {
    color: #E50916;
    margin-left: 5px;
}

.login-form,
.register-form {
    display: none;
}

.login-form.active,
.register-form.active {
    display: block;
}

.login-form,
.register-form {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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


/* Player Layout */
.show-container {
    padding-top: 90px;
    background: rgb(17, 19, 25);
}

.player-wrapper {
    display: flex;
    padding: 20px;
    height: calc(100vh - 90px);
    position: relative;
    overflow: hidden;
}

.player-main {
    flex: 1;
    position: relative;
    height: 100%;
    

}

.toggle-sidebar {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 50px;
    background:rgba(255, 255, 255, 0.1);
    border-radius: 12px 0 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
  
}

.toggle-sidebar i {
    color: #fff;
    transition: transform 0.3s ease;
}


.video-player {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

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

/* Sidebar Styles */
.player-sidebar {
    width: 380px;
    margin-left: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.player-wrapper.sidebar-collapsed {
    padding-right: 20px;
    /* 确保右侧padding一致 */
}

.player-wrapper.sidebar-collapsed .player-sidebar {
    opacity: 0;
    width: 0;
    margin-left: 0;
}

.player-wrapper.sidebar-collapsed .player-main {
    flex-basis: 100%;
}

.player-wrapper.sidebar-collapsed .toggle-sidebar i {
    transform: rotate(180deg);
}

.tab-headers {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-header {
    flex: 1;
    padding: 15px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-header.active {
    color: #fff;
    border-bottom: 2px solid #E50916;
}

/* 基本的tab-content样式 */
.tab-content {
    display: none;
    padding: 15px;
    
    /* 关键：设置高度为自动，但最大高度为player-wrapper的高度减去标签头部高度 */
    height: auto;
    max-height: calc(100vh - 195px); /* 视口高度 - 顶部导航高度 - 标签头部高度 */
    
    /* 关键：只在内容超出时显示滚动条 */
    overflow-y: auto;
    overflow-x: hidden;
    
    /* 滚动条样式 */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) rgba(0, 0, 0, 0.2);
}

/* 当tab-content处于活动状态时显示 */
.tab-content.active {
    display: block;
}

/* Webkit浏览器的滚动条样式 */
.tab-content::-webkit-scrollbar {
    width: 8px;
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.2);
}

.tab-content::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    -webkit-transition: background 200ms ease;
    -moz-transition: background 200ms ease;
    transition: background 200ms ease;
}

.tab-content::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.3);
}
/* Episodes Grid */
.episode-grid-container {
    margin-bottom:20px;

}

.episode-grid-scroll {
    max-height: 285px;
    overflow-y: auto;
    padding-right: 10px;
}




/* Comment Section */
.comment-form {
    margin-bottom: 20px;
}

.comment-form textarea {
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    color: #fff;
    resize: none;
    margin-bottom: 10px;
}

.comment-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.reset-comment {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    border: none;
}

.reset-comment:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.reset-comment i {
    font-size: 12px;
}


.submit-comment {
    background: #E50916;
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.submit-comment:hover {
    background-color: #f50f1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(229, 9, 22, 0.3);
}

.comment-list {
    margin-top: 60px;
    height: calc(100% - 180px);
    overflow-y: auto;
}


/* Extend existing episode-grid for show page */
.episode-grid.show-style {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    row-gap: 15px;
    width: 100%;
}

.episode-grid.show-style .episode-item {
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    /* 填充整个网格单元格宽度 */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #fff;
    transition: all 0.3s ease;
}



.episode-grid.show-style .episode-item:hover {
    background: rgba(255, 255, 255, 0.2);
    color:#fff !important;
}

.episode-grid.show-style .episode-item.active {
    background: #E50916;
}


/* Show page specific movie grid */
.show-container .movie-grid {
    padding: 0 0;
    margin: 0;
}

.show-container .movie-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    row-gap: 20px;
    min-height: 160px;
    position: relative;
    transition: opacity 0.3s ease;
    width: 100%;
}

.show-container .movie-column-title {
    font-size: 20px;
    margin-bottom: 15px;
}

.content-meta {
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.content-meta span {
    margin-right: 15px;
}

.content-meta i {
    margin-right: 4px;
}

/* advertisement */
.ad-banner {
    margin: 20px 0;
    width: 100%;
}

.ad-banner img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* comment list */
.comment-list {
    padding: 15px;
}

.comment-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comment-avatar {
    flex-shrink: 0;
}

.comment-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.username {
    font-weight: bold;
    color: #fff;
}

.comment-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.comment-text {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.comment-actions {
    display: flex;
    gap: 15px;
}

.comment-actions button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.comment-actions button:hover {
    color: #E50916;
}

/* footer */
.footer {
    padding: 10px 0;
    color: #fff;
}

.footer a {
    color: var(--primary-color, #ff0000);
}

.text-center {
    text-align: center;
}

/* toast */
/* 可以添加到您的CSS文件中 */
#toast-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.toast {
    padding: 12px 20px;
    margin: 10px 0;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
    font-size: 16px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
    max-width: 300px;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.hide {
    opacity: 0;
    transform: translateY(-20px);
}

.toast i {
    margin-right: 8px;
    font-size: 18px;
}

.toast-success {
    background-color: #4caf50;
}

.toast-error {
    background-color: #f44336;
}

.toast-warning {
    background-color: #ff9800;
}

.toast-info {
    background-color: #2196f3;
}

/* taglist */
.tag-container {
    width: 100%;
    margin: 0 auto;
}

.tag-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 8px; 
    padding: 0;
    list-style: none;
}

.tag-item {
    text-align: center;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1); /* 使用半透明白色背景，与网站风格一致 */
    border-radius: 4px;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: rgba(255, 255, 255, 0.2); /* 悬停时背景变亮 */
    transform: translateY(-2px);
}

.tag-item a {
    display: block;
    color: rgba(255, 255, 255, 0.8); /* 使用原网站的文字颜色 */
    text-decoration: none;
    font-size: 14px;
}

.tag-item a:hover {
    color: #E50916 !important; /* 使用原网站的悬停颜色 */
}
/* avatar selection */
.avatar-selection {
    margin: 15px 0;
}

.avatar-selection h4 {
    margin-bottom: 10px;
    font-size: 14px;
}

.avatar-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-height: 150px;
    overflow-y: auto;
    padding: 5px;
    border: 1px solid #4b4b4b;
    border-radius: 5px;
}

.avatar-item {
    list-style: none;
}

.avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
}

.avatar-img.selected {
    border: 1px solid #E50916;
    box-shadow: 0 0 12px rgba(229, 9, 22, 0.5);
    transform: scale(1.1);
}


/* 分页样式 */
.page-warp {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    min-height: 40px;
    transition: opacity 0.3s ease;
}

.page-warp:not(:empty) {
    min-height: 40px;
 }

 .movie-grid:has(.no-favorites-container) .page-warp {
    min-height: 0;
    margin:0;
    }


.pagination-container.loading {
    opacity: 0.6;
}
.page-numbers {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

.page-numbers li {
    margin: 0 5px;
}

.page-numbers a,
.page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-numbers a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-numbers .current {
    background: #E50916;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(229, 9, 22, 0.3);
}

.page-numbers .next,
.page-numbers .prev {
    font-size: 16px;
}


 /* 分页下拉框样式 */
 .page-select {
    display: inline-block;
    min-width: 120px;
    height: 40px;
    padding: 0 12px;
    margin-left: 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="6" viewBox="0 0 12 6"><path fill="rgba(255,255,255,0.7)" d="M0 0l6 6 6-6z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 30px;
}

.page-select:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}



.page-select option {
    background-color: #1a1a1a;
    color: rgba(255, 255, 255, 0.8);
    padding: 8px;
}

/* 回到顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #E50916;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(229, 9, 22, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: #f50f1c;
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(229, 9, 22, 0.4);
}

.back-to-top i {
    font-size: 20px;
}


    /* 新增评分列样式 */
/* 修改detail-row样式，使其能容纳三列并保持高度一致 */
.detail-row-with-rating {
    display: flex;
    margin-bottom: 40px;
    align-items: stretch; /* 关键：改为stretch让所有子元素高度一致 */
    height: auto; /* 让高度由内容决定 */
}

/* 左侧封面样式 */
.detail-poster {
    width: 300px;
    margin-right: 40px;
    /* 不设置固定高度，让它自适应内容 */
    display: flex; /* 使用flex布局 */
    flex-direction: column; /* 垂直排列 */
}

.detail-poster img {
    width: 100%;
    border-radius: 8px;
    height: 100%; /* 图片填充整个容器高度 */
    object-fit: cover; /* 保持图片比例 */
}

/* 中间信息样式 */
.detail-info {
    flex: 1;
    padding-right: 20px;
    display: flex; /* 使用flex布局 */
    flex-direction: column; /* 垂直排列 */
    justify-content: space-between; /* 内容在垂直方向上分散对齐 */
}

/* 右侧评分列样式 */
.detail-rating {
    width: 220px;
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-left: auto; /* 确保靠右对齐 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* 内容在垂直方向上分散对齐 */
    /* 不设置固定高度，让它与其他列保持一致 */
}

/* 调整评分内容的位置，使其在容器中均匀分布 */
.rating-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0; /* 移除顶部间距 */
    padding-top: 20px; /* 添加内部顶部间距 */
}

.rating-value {
    font-size: 42px;
    font-weight: bold;
    color: #E50916;
    /* 可以添加一些内边距使其在容器中居中 */
    padding: 20px 0;
}

.rating-stars {
    color: #FFD700; /* 金黄色 */
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 0; /* 移除底部间距 */
    padding-bottom: 20px; /* 添加内部底部间距 */
}


/* 筛选容器样式 */
/* 下拉筛选样式 */
.filter-warp {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.filter-section {
    display: flex;
    align-items: center;
}

.filter-label {
    margin-right: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.dropdown-container {
    position: relative;
    min-width: 120px;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.dropdown-toggle i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.dropdown-container.open .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin-top: 5px;
    z-index: 100;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dropdown-container.open .dropdown-menu {
    display: block;
}

.dropdown-menu .filter-btn,
.dropdown-menu .tag-btn,
.dropdown-menu .year-btn{
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
}

.dropdown-menu .filter-btn:hover,
.dropdown-menu .tag-btn:hover,
.dropdown-menu .year-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.dropdown-menu .filter-btn.active,
.dropdown-menu .tag-btn.active,
.dropdown-menu .year-btn.active {
    background-color: rgba(0, 123, 255, 0.2);
    color: #fff;
}

/* 滚动条样式 */
.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

/* 加载状态和错误样式 */
.loading-data {
    padding: 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

.error-loading {
    padding: 40px;
    text-align: center;
    color: #ff6b6b;
    font-size: 16px;
}

.no-data {
    padding: 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}


@media screen and (max-width: 1440px) {
    .widescreen-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .container {
        padding: 40px 80px 40px;

    }
}


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

    .head {
        height: 70px;
    }

    .head .logo-brand {
        width: 150px;
        height: 46px;
        margin: 12px 0;
    }

    .head .right a {
        color: #fff;
        font-size: 20px;
        padding: 0 15px;
    }

    .head .head-nav {
        display: none;
    }

    .mobile-nav {
        display: block;
    }

    .movie-list {
        grid-template-columns: repeat(3, minmax(0, 1fr)); /* 使用minmax确保列宽一致 */
        gap: 10px;
        row-gap: 20px;
    }

    .movie-title {
        font-size: 12px;
        height: 18px;
        line-height: 18px;
    }
    
    .movie-actor {
        font-size: 11px;
        height: 16px;
        line-height: 16px;
    }

    .movie-item:nth-child(7),
    .movie-item:nth-child(14) {
        display: none;
    }

    .detail-container {
        padding: 0;
    }
    .search-container{padding:80px 0 20px;}

    .detail-container>*:not(.detail-row:first-child) {
        padding: 0 20px;
    }

    .detail-row {
        position: relative;
        margin-bottom: 0;
    }

    .detail-poster {
        width: 100%;
        max-width: 100%;
        margin: 0;
        height: 70vh;
    }

    .detail-poster img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0;
    }

    .detail-poster::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(180deg,
                rgba(0, 0, 0, 0) 0%,
                rgba(0, 0, 0, 0.2) 50%,
                rgba(0, 0, 0, 0.6) 100%);
        opacity: 1;
        border-radius: 0px;
    }




    .detail-info {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 30px;
        background: linear-gradient(0deg, rgb(17, 19, 25) 0%, transparent 100%);
        z-index: 2;
    }

    .detail-title {
        font-size: 28px;
        margin-bottom: 15px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }

    .detail-meta {
        margin-bottom: 20px;
    }

    .meta-item {
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    }

    .detail-actions {
        margin-top: 20px;
    }

    .episode-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .episode-item {
        padding: 10px;
    }

    .episode-grid-scroll {
        grid-template-columns: repeat(2, 1fr);
    }

    .player-wrapper {
        flex-direction: column;
        height: auto;
        padding: 10px;
        overflow: visible;
    }

    .player-main {
        width: 100%;
    }

    .video-player {
        position: relative;
        padding-top: 56.25%;
    }

    .video-player iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .toggle-sidebar {
        display: none;
    }

    .player-sidebar {
        width: 100%;
        margin-left: 0;
        margin-top: 15px;


    }

    .detail-row-with-rating {
        flex-wrap: wrap;
        position: relative; /* 为绝对定位的子元素提供参考 */
    }
    
    .detail-row-with-rating .detail-poster {
        width: 100%;
        max-width: 100%;
        margin: 0;
        height: 70vh;
    }
    
    .detail-row-with-rating .detail-info {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 20px;
        background: linear-gradient(0deg, rgb(17, 19, 25) 0%, transparent 100%);
        z-index: 2;
        /* 移动端下不需要flex布局 */
        display: block;
    }
    
    /* 移动端评分区域样式 */
    .detail-row-with-rating .detail-rating {
        position: absolute;
        top: 25px;
        right: 25px;
        width: auto;
        padding: 0;
        background: transparent; /* 移除背景 */
        box-shadow: none;
        z-index: 3;
        /* 移动端下不需要flex布局 */
        display: block;
        text-align: right;
    }
    
    /* 移动端只显示评分值，隐藏标签和星星 */
    .detail-row-with-rating .rating-label,
    .detail-row-with-rating .rating-stars {
        display: none;
    }
    
    .detail-row-with-rating .rating-value {
        font-size: 36px;
        padding: 0;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* 添加文字阴影增强可读性 */
    }

 
    
}
    
    /* 针对iPad优化底部导航样式 */
 @media screen and (min-width: 768px) and (max-width: 1024px) {
        .mobile-nav li a {
            font-size: 14px;
            /* iPad上字体稍大 */
        }

        .mobile-nav li a i {
            font-size: 24px;
            /* iPad上图标稍大 */
            margin-bottom: 6px;
        }

        .mobile-nav {
            padding: 12px 0;
            /* iPad上底部导航高度稍大 */
        }

        .comment-list {
            padding: 12px;
        }

        .comment-item {
            gap: 12px;
        }

        .comment-avatar img {
            width: 36px;
            height: 36px;
        }
    }

    /* Mobile layout */
 @media screen and (max-width: 768px)
  {

        .head {
            height: 60px;
        }

        .head .left.flex{padding-left:0;}
        .head .logo-brand {
            width: 130px;
            height: 40px;
            margin: 10px 0;
        }

        .head .head-nav {
            display: none;
        }

        .mobile-nav {
            display: block;
        }

        .movie-grid {
            padding: 10px 0;
        }

        .detail-container>*:not(.detail-row:first-child) {
            padding: 0 20px;
        }

        .movie-list {
            grid-template-columns: repeat(3, minmax(0, 1fr)); /* 使用minmax确保列宽一致 */
            gap: 10px;
            row-gap: 20px;
        }

        .movie-title {
            font-size: 12px;
            height: 18px;
            line-height: 18px;
        }
        .movie-column-title{font-size:16px;}
        .show-container .movie-column-title {
            font-size: 16px;

        }

        .movie-item:nth-child(7),.movie-item:nth-child(14) {
            display: none;
        }

        .list-warp .movie-item:nth-child(7),.list-warp .movie-item:nth-child(14) {
            display: block;
        }

        .movie-item {
            flex: 0 0 calc(33.33% - 7px);
        }

        .widescreen-list {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
            row-gap: 20px;
        }

        .search-drawer {
            right: -100%;
            width: 100%;
        }

        .search-content {
            padding: 15px;
        }

        .search-form {
            gap: 10px;
        }

        .detail-container .detail-row:nth-child(2) {
            padding: 15px;
        }

        .detail-row {
            position: relative;
            margin-bottom: 0;
        }
    
        .detail-poster {
            width: 100%;
            max-width: 100%;
            margin: 0;
            height: 70vh;
        }

        .detail-poster img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .detail-info {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 20px;
            background: linear-gradient(0deg, rgb(17, 19, 25) 0%, transparent 100%);
            z-index: 2;
        }

        .detail-title {
            font-size: 24px;
            margin-bottom: 15px;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        }

        .detail-meta {
            margin-bottom: 20px;
        }

        .meta-item {
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
        }

        .detail-actions {
            margin-top: 20px;
        }

        .episode-grid {
            grid-template-columns: repeat(4, 1fr);
        }

        .episode-list {
            margin-top: 30px;
        }

        .episode-list h3 {
            font-size: 16px;
            margin-bottom: 15px;
        }
        .coulumn-h3{  font-size: 16px;
            margin-bottom: 15px;}
        .show-container {
            padding-top: 60px;
        }

        .player-wrapper {
            height: auto;
            padding: 10px;
        }

        .player-main {
            height: auto;
        }

        .video-player {
            aspect-ratio: 16/9;
            height: auto;
        }

        .toggle-sidebar {
            display: none;
        }

        /* 移动端强制展开sidebar */
        .player-wrapper.sidebar-collapsed .player-sidebar {
            opacity: 1;
            width: 100%;
            margin-left: 0;
        }

        .player-sidebar {
            width: 100%;
            margin-left: 0;
            margin-top: 15px;
        }

        .comment-list {
            padding: 10px;
        }

        .comment-item {
            padding: 10px 0;
        }

        .comment-avatar img {
            width: 32px;
            height: 32px;
        }

        .comment-text {
            font-size: 13px;
        }

        .comment-actions {
            gap: 10px;
        }

        .episode-grid-scroll {
            max-height: none;
            overflow-y: visible;
            padding-right: 0;
        }
    
        .episode-grid.show-style {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
            width: 100%;
        }
    
        .episode-grid.show-style .episode-item {
            height: 40px;
            font-size: 13px;
        }

        .comment-buttons {
            gap: 8px;
        }
        
        .reset-comment, .submit-comment {
            padding: 8px 14px;
            font-size: 13px;
        }

        .new-badge {
            padding: 3px 6px;
            font-size: 10px;
            top: 8px;
            right: 8px;
        }

        .episode-badge {
            padding: 3px 6px;
            font-size: 10px;
            bottom: 8px;
            right: 8px;
        }

        .page-numbers a,
        .page-numbers span {
            min-width: 36px;
            height: 36px;
            padding: 0 10px;
            font-size: 13px;
        }
        
        .page-numbers li {
            margin: 0 3px;
        }

        .bookmark-remove-btn {
            opacity: 1;
            transform: translateY(0);
            padding: 8px 0;
            font-size: 12px;
        }

        .back-to-top {
            bottom: 70px; /* 避免与移动端底部导航重叠 */
            right: 10px;
            width: 30px;
            height: 30px;
        }
        
        .back-to-top i {
            font-size: 14px;
        }

        .detail-row-with-rating .detail-rating {
            top: 20px;
            right: 20px;
        }
        
        .detail-row-with-rating .rating-value {
            font-size: 32px;
        }

        .filter-warp {
            display: flex;
            flex-wrap: nowrap;
            justify-content: space-between;
            gap: 10px;
            margin-top:20px;
        }
        
        .filter-section {
            flex: 1;
            width: 50%;
            display: flex;
            align-items: center;
        }
        
        .filter-label {
            white-space: nowrap; /* 防止文本换行 */
            font-size: 13px; /* 减小字体大小 */
            margin-right: 5px; /* 减小右边距 */
            flex-shrink: 0; /* 防止标签文字被压缩 */
        }
        
        .dropdown-container {
            flex: 1; /* 让下拉容器占用剩余空间 */
            min-width: 70px; /* 设置最小宽度，确保下拉菜单有足够空间 */
            max-width: calc(100% - 45px); /* 确保标签有足够空间显示 */
        }
        
        .dropdown-toggle {
            padding: 6px 8px; /* 减小内边距 */
            font-size: 13px; /* 减小字体大小 */
        }
        
        .selected-text {
            max-width: calc(100% - 20px); /* 为下拉箭头留出空间 */
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .breadcrumb li {
          
            font-size: 16px;
        }
}


/* 特别针对超小屏幕 (如430px宽) */
@media screen and (max-width: 480px) {
    .movie-list {
        grid-template-columns: repeat(3, minmax(0, 1fr)); /* 使用minmax确保列宽一致 */
        gap: 6px;
        row-gap: 12px;
    }
    
    .movie-poster {
        aspect-ratio: 3/4; /* 确保比例一致 */
    }
    
    .movie-title {
        font-size: 11px;
        height: 16px;
        line-height: 16px;
    }
    
    .movie-actor {
        font-size: 9px;
        height: 14px;
        line-height: 14px;
    }

    .page-numbers a,
    .page-numbers span {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 12px;
    }
    

    .page-numbers li:not(.current):not(.next):not(.prev):not(:nth-child(1)):not(:nth-last-child(1)) {
        display: none;
    }


}