@charset "utf-8";

body {
    background-color: #f5f6fa;
    font-size: 14px;
}

.am-container {
    max-width: 1200px;
}

/* 顶部导航栏美化 */
.am-topbar {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-bottom: none;
}

.am-topbar .am-container {
    position: relative;
}

/* 导航链接样式 */
.am-topbar .am-nav-pills > li > a {
    color: #555;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin: 0 2px;
}

.am-topbar .am-nav-pills > li > a:hover {
    color: #2f80ed;
    background: rgba(47, 128, 237, 0.08);
}

.am-topbar .am-nav-pills > li.am-active > a {
    color: #2f80ed;
    background: rgba(47, 128, 237, 0.12);
}

/* 搜索框美化 */
.am-topbar-form .am-form-field {
    background: #f5f6fa;
    border: 1px solid #e8e8e8;
    border-radius: 20px 0 0 20px;
    padding-left: 15px;
    transition: all 0.3s ease;
}

.am-topbar-form .am-form-field:focus {
    background: #fff;
    border-color: #2f80ed;
    box-shadow: 0 0 0 2px rgba(47, 128, 237, 0.1);
}

.am-topbar-form .am-btn {
    background: #2f80ed;
    border: none;
    border-radius: 0 20px 20px 0;
    color: #fff;
}

.am-topbar-form .am-btn:hover {
    background: #1a6dd4;
    color: #fff;
}

/* 观看记录按钮 */
.am-topbar .am-btn-secondary {
    background: #2f80ed;
    border: none;
    color: #fff;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.am-topbar .am-btn-secondary:hover {
    background: #1a6dd4;
    box-shadow: 0 4px 12px rgba(47, 128, 237, 0.3);
}

/* 下拉菜单样式 */
.am-topbar .am-dropdown-content {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    border: 1px solid #eee;
    overflow: hidden;
    padding: 4px;
}

.am-topbar .am-dropdown-content li a {
    color: #333;
    transition: all 0.2s ease;
    border-radius: 6px;
    margin: 2px 0;
}

.am-topbar .am-dropdown-content li a:hover {
    background: #2f80ed;
    color: #fff;
    border-radius: 6px;
}

/* 移动端菜单按钮 */
.am-topbar .am-topbar-toggle {
    background: #2f80ed;
    border: none;
    color: #fff;
}

/* 手机端和iPad端隐藏导航栏搜索框 */
@media only screen and (max-width: 1132px) {
    .am-topbar .am-topbar-form {
        display: none !important;
    }
    
    /* 显示底部导航条 */
    .am-navbar.am-show-sm-only {
        display: block !important;
    }
}

/* 扩展移动端断点到1132px - 在中等屏幕使用折叠菜单避免布局问题 */
@media only screen and (min-width: 641px) and (max-width: 1132px) {
    /* 显示汉堡菜单按钮（覆盖AmazeUI的默认隐藏） */
    .am-topbar .am-topbar-toggle {
        display: block !important;
    }
    
    /* 默认隐藏导航菜单 */
    .am-topbar .am-collapse {
        display: none !important;
    }
    
    /* 点击汉堡按钮后显示导航菜单 */
    .am-topbar .am-collapse.am-in {
        display: block !important;
    }
    
    /* 折叠容器样式 - 匹配手机端 */
    .am-topbar .am-topbar-collapse {
        width: 100%;
        padding: 10px;
        clear: both;
    }
    
    /* 导航菜单样式 - 匹配手机端 */
    .am-topbar .am-topbar-nav {
        margin-bottom: 8px;
        float: none !important;
    }
    
    /* 导航菜单项垂直排列 - 匹配手机端 */
    .am-topbar .am-topbar-nav > li {
        float: none !important;
    }
    
    /* 导航菜单项间距 - 匹配手机端 */
    .am-topbar .am-topbar-nav > li + li {
        margin-left: 0 !important;
        margin-top: 5px;
    }
    
    /* 导航链接样式 - 匹配手机端 */
    .am-topbar .am-topbar-nav > li > a {
        line-height: normal !important;
        padding: 10px !important;
        display: block;
    }
    
    /* 隐藏激活菜单项的三角符号 */
    .am-topbar .am-topbar-nav > li.am-active > a::after {
        display: none !important;
    }
    
    /* 观看记录按钮垂直排列 */
    .am-topbar .am-topbar-right {
        float: none !important;
        margin: 8px 0;
    }
    
    /* 观看记录按钮容器 */
    .am-topbar .am-topbar-right {
        width: 100%;
    }
    
    /* 观看记录按钮宽度 */
    .am-topbar .am-topbar-right .am-btn {
        width: 100%;
    }
}

/* 左上角站标颜色 */
.web-name {
    color: #333 !important;
}

/* Logo 美化样式 */
.logo-animated {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    position: relative;
}

/* Logo 骨架屏闪光动画 - 只覆盖logo图标区域 */
.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    top: -3px;
    overflow: hidden;
}

.logo-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
    animation: logo-shimmer 3s ease-in-out infinite;
    pointer-events: none;
    border-radius: 8px;
}

@keyframes logo-shimmer {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.logo-icon img {
    display: block;
    border-radius: 8px;
}

.logo-star {
    position: relative;
    top: -10px;
    margin-left: 2px;
    font-size: 14px;
    color: #ffd700;
    animation: twinkle 2s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.9);
    -webkit-text-fill-color: #ffd700;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}

.logo-text {
    display: inline-flex;
    align-items: baseline;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 2px;
}
.logo-text h1,.search-tab-item h1{
     all: unset;
}
.logo-main {
    position: relative;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-sub {
    color: #666;
    font-weight: 600;
    margin-left: 1px;
}

.logo-animated:hover .logo-star {
    animation: twinkle 0.5s ease-in-out infinite;
}

/* 移动端 Logo 适配 */
@media screen and (max-width: 640px) {
    .logo-icon img {
        width: 34px;
        height: 34px;
    }
    .logo-star {
        font-size: 11px;
        top: -7px;
    }
    .logo-text {
        font-size: 18px;
    }
}

/* 顶部观看记录 */
@media only screen and (max-width: 640px) {
    .am-dropdown {
        display: block;
    }
}

.am-slides {
    background-color: #000;
}

/* 幻灯片容器 */
#ajax-slider {
    margin-bottom: 20px;
}

/* 幻灯片加载指示器 - 4:1 比例 */
.slider-loading {
    width: 100%;
    padding-bottom: 25%; /* 4:1 比例 */
    background: #f5f6fa;
    border-radius: 4px;
    position: relative;
}

@media (max-width: 640px) {
    .slider-loading {
        padding-bottom: 25%; /* 保持 4:1 比例 */
    }
}

.slider-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: #2f80ed;
    border-radius: 50%;
    animation: slider-spin 0.8s linear infinite;
}

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

/* 幻灯片美化样式 */
.am-slider-d2 {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
    position: relative;
}

/* 确保 viewport 和 slides 容器都隐藏溢出 */
.am-slider-d2 .am-viewport {
    overflow: hidden !important;
    position: relative;
}

.am-slider-d2 .am-slides {
    overflow: hidden !important;
    position: relative;
    /* 初始化前使用 flex 布局，只显示第一张 */
    display: flex;
    flex-wrap: nowrap;
}

/* 初始化前：所有幻灯片默认隐藏 */
.am-slider-d2 .am-slides > li {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    width: 100%;
    display: none;
}

/* 初始化前：只显示第一张 */
.am-slider-d2 .am-slides > li:first-child {
    display: block;
}

/* FlexSlider 初始化后：由 FlexSlider 控制显示 */
.am-slider-d2.flexslider .am-slides {
    display: block;
}

.am-slider-d2.flexslider .am-slides > li {
    display: block;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
}

.am-slider-d2.flexslider .am-slides > li.flex-active-slide {
    opacity: 1;
    visibility: visible;
    position: relative;
}

/* 幻灯片图片容器 - 固定宽高比防止加载时跳动 */
.am-slider-d2 .am-slides li {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

/* 幻灯片图片占位图标 */
.am-slider-d2 .am-slides li::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23444'%3E%3Cpath d='M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
}

.am-slider-d2 .am-slides img {
    width: 100%;
    height: auto;
    display: block;
    background: transparent;
    transition: transform 0.6s ease;
    image-rendering: -webkit-optimize-contrast;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    position: relative;
    z-index: 2;
}

.am-slider-d2:hover .am-slides img {
    transform: scale(1.05);
}

/* 幻灯片描述区域美化 */
.am-slider-desc {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
    padding: 30px 20px 20px;
    color: #fff;
}

.am-slider-content {
    margin-bottom: 15px;
}

.am-slider-title {
    font-size: 28px;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
}

.am-slider-desc p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 立即观看按钮美化 */
.am-slider-more {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    border: none;
}

.am-slider-more:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    color: #fff !important;
}

.am-slider-more:active {
    transform: translateY(0);
}

/* 幻灯片指示器美化 */
.am-slider-d2 .am-control-nav {
    bottom: 15px;
    z-index: 10;
}

.am-slider-d2 .am-control-nav li a {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.am-slider-d2 .am-control-nav li a:hover,
.am-slider-d2 .am-control-nav li a.am-active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.2);
}

/* 响应式优化 */
@media only screen and (max-width: 640px) {
    .am-slider-title {
        font-size: 20px;
    }
    
    .am-slider-desc {
        padding: 20px 15px 15px;
    }
    
    .am-slider-desc p {
        font-size: 12px;
        -webkit-line-clamp: 1;
    }
    
    .am-slider-more {
        padding: 8px 20px;
        font-size: 12px;
    }
    
    .am-slider-d2 .am-control-nav {
        bottom: 10px;
    }
    
    .am-slider-d2 .am-control-nav li a {
        width: 10px;
        height: 10px;
    }
}

@media only screen and (max-width: 480px) {
    .am-slider-title {
        font-size: 18px;
    }
    
    .am-slider-desc {
        padding: 15px 10px 10px;
    }
}

/* 方向导航按钮美化 */
.am-slider-d2 .am-direction-nav a {
    width: 50px;
    height: 50px;
    line-height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    opacity: 0.8;
}

.am-slider-d2:hover .am-direction-nav a {
    opacity: 1;
}

.am-slider-d2 .am-direction-nav a:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
}

.am-slider-d2 .am-direction-nav .am-prev,
.am-slider-d2 .am-direction-nav .am-next {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media only screen and (max-width: 640px) {
    .am-slider-d2 .am-direction-nav a {
        width: 40px;
        height: 40px;
        line-height: 40px;
    }
}

.slider-item {
    display: block;
    position: relative;
}

.slider-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.slider-item:hover img {
    transform: scale(1.03);
}

.slider-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    padding: 60px 30px 25px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    pointer-events: none;
    z-index: 10;
}

.slider-content {
    max-width: 600px;
    flex: 1;
}

.slider-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #f5af19, #f12711);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 15;
}

.slider-title {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.slider-desc {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.slider-btn {
    display: inline-block;
    background: linear-gradient(135deg, #1e90ff 0%, #0066cc 100%);
    color: #fff;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    pointer-events: auto;
    flex-shrink: 0;
    margin-left: 20px;
    transition: all 0.3s ease;
}

.slider-item:hover .slider-btn {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30,144,255,0.4);
}

@media (max-width: 640px) {
    .slider-overlay {
        padding: 15px;
        background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
        justify-content: flex-end;
    }
    .slider-content {
        display: none;
    }
    .slider-btn {
        padding: 8px 16px;
        font-size: 12px;
        margin-left: 0;
    }
    .slider-tag {
        top: 10px;
        left: 10px;
        font-size: 10px;
        padding: 3px 8px;
    }
}

/* 标题栏统一样式 - 确保左右对齐 */
.am-titlebar-default {
    margin-left: 0;
    margin-right: 0;
    margin-top: 20px;
    margin-bottom: 0;
    padding: 12px 15px;
    background: linear-gradient(135deg, #2f80ed 0%, #56ccf2 100%);
    border-radius: 4px 4px 0 0;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
    position: relative;
    overflow: hidden;
    min-height: 48px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

/* 每个区域（左侧或右侧）的第一个标题栏 */
.am-u-lg-9 > .am-titlebar-default:first-child {
    margin-top: 0;
}

/* 右侧第一个标题栏 */
.am-u-lg-3 > .am-titlebar-default:first-child {
    margin-top: 0;
}

.am-titlebar-default::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.am-titlebar-default .am-titlebar-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    padding: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    line-height: 1.5;
}

/* 隐藏标题栏的 before 伪元素 */
.am-titlebar-default .am-titlebar-title::before {
    display: none !important;
    content: none !important;
}

/* 响应式调整 */
@media only screen and (max-width: 640px) {
    .am-titlebar-default {
        padding: 10px 12px;
        margin-top: 15px;
        min-height: 44px;
    }
    
    .am-titlebar-default .am-titlebar-title {
        font-size: 14px;
    }
    
    .am-titlebar-default .am-titlebar-title::before {
        display: none !important;
        content: none !important;
    }
}

.friend-links>div>a {
    margin-right: 10px;
}

/* 电影展示块 */
.movie-description, .movie-title, .movie-tags, .right-list li a {
    transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
}
.movie-item {
    display: block;
    width: 100%;
    max-width: 178px;
    height: auto;
    cursor: pointer;
    margin: 10px auto;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
.movie-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-4px);
}
.movie-cover {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    border-radius: 4px 4px 0 0;
}

/* 图片加载中的骨架屏动画 */
.movie-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
    animation: skeleton-loading 1.5s infinite;
    z-index: 1;
}

/* 图片加载完成后隐藏骨架屏动画 */
.movie-cover.loaded::before {
    display: none;
}

.movie-cover>img {
    display: block;
    width: 100%;
    height: auto;
    background: transparent;
    position: relative;
    z-index: 2;
}

/* 懒加载图片初始状态 - 隐藏 */
.movie-cover>img.lazyload {
    opacity: 0;
}

/* 图片加载完成后淡入 */
.movie-cover>img.img-loaded {
    opacity: 1;
    transition: opacity 0.3s ease-out, transform 0.3s ease;
}

.movie-item:hover .movie-cover>img {
    transform: scale(1.05);
}
/* 电影列表：448x670 (宽高比约 0.67:1，竖向) */
.movie-lists .movie-item {
    max-width: 178px;
}
.movie-lists .movie-cover {
    /* 保持电影竖向比例：670/448 ≈ 1.495 */
    padding-bottom: 149.5%;
    height: 0;
    position: relative;
}
.movie-lists .movie-cover>img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.movie-description {
    position: absolute;
    width: 100%;
    bottom: 0;
    height: auto;
    min-height: 60px;
    padding: 8px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
    z-index: 10;
}
.movie-description>.description-bg {
    display: none;
}
.movie-description>p {
    height: auto;
    min-height: 20px;
    line-height: 20px;
    overflow: hidden;
    margin: 2px 10px;
    color: #fff;
    font-size: 11px;
    position: relative;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.movie-item:hover .movie-description {
    opacity: 1;
}
.movie-title {
    background-color: #fff;
    width: 100%;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s ease;
}
.movie-item:hover>.movie-title {
    background-color: #f60;
    color: #fff;
}
.movie-item:hover>.movie-title>.movie-name {
    color: #fff;
}
.movie-title>p {
    font-size: 14px;
    padding: 0 10px;
    margin: 0;
    height: auto;
    min-height: 22px;
    line-height: 22px;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.movie-title>.movie-tags {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
    height: auto;
    min-height: 18px;
    line-height: 18px;
}
.movie-item:hover>.movie-title>.movie-tags {
    color: rgba(255, 255, 255, 0.9);
}

/* 电视剧、综艺、动漫、儿童列表：500x353 (宽高比约 1.42:1，横向) */
.tv-lists .movie-item,
.variety-lists .movie-item,
.cartoon-lists .movie-item,
.kids-lists .movie-item { 
    height: auto;
}

.tv-lists .movie-cover,
.variety-lists .movie-cover,
.cartoon-lists .movie-cover,
.kids-lists .movie-cover {
    /* 保持横向比例：178 / 1.42 ≈ 125 */
    padding-bottom: 70.6%; /* 353/500 ≈ 0.706 */
    height: 0;
    position: relative;
}
.tv-lists .movie-cover>img,
.variety-lists .movie-cover>img,
.cartoon-lists .movie-cover>img,
.kids-lists .movie-cover>img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 右侧列表 */
.right-list {
    padding-left: 0;
    margin-top: 15px;
    margin-bottom: 40px;
}
.right-list li {
    background-color: #fdfdfd;
    padding: 0 10px;
    list-style: none;
}
.right-list li a {
    display: block;
    line-height: 44px;
    color: #555;
}
.right-list li a:hover {
    color: #f60;
}

.right-list .r-l-right {
    float: right;
    font-size: 12px;
    color: #999;
    display: inline-block;
    margin-left: 10px;
}
/* 右侧列表排行 */
.right-list li:nth-child(1) .am-round {
    background-color: #dd514c;
}
.right-list li:nth-child(2) .am-round {
    background-color: #F37B1D;
}
.right-list li:nth-child(3) .am-round {
    background-color: #5eb95e;
}
/* 排行榜徽章与文字间距 */
.right-list .am-badge {
    margin-right: 8px;
}

/* 首页上次播放 */
#last-watch a {
    color: #DD514C;
}

/* 观看记录徽章样式 */
.history-badge {
    display: inline-block;
    padding: 2px 6px;
    margin-right: 5px;
    font-size: 11px;
    line-height: 1.2;
    border-radius: 2px;
    font-weight: 500;
    vertical-align: middle;
}

.history-badge-official {
    background-color: #5eb95e;
    color: #fff;
}

.history-badge-resource {
    background-color: #dd514c;
    color: #fff;
}

.history-badge-duanju {
    background-color: #dd514c;
    color: #fff;
}

#history-list .history-badge {
    margin-right: 5px;
    margin-left: 0;
}

#last-watch .history-badge {
    margin-right: 5px;
    margin-left: 0;
}

/* 播放器盒子 */
.player-box_vod{
    height: 600px;
}
.player-box {
    height: 600px;
    padding: 0;
    background: #000;
    position: relative;
}
.player-box.loading {
    /* background: #000 url(../images/loading.gif) no-repeat center; */
}
.player-box.loading iframe {
    opacity: 0;
}
.player-box iframe {
    opacity: 1;
    transition: opacity 0.3s ease;
}
@media only screen and (max-width: 600px) {
    .player-box {
        height: 300px;
    }
    .player-box_vod{
    height: 300px;
}
}

/*弹动效果*/
.hover-bounce:hover {
    -webkit-animation:bounce 1s .1s ease both;
    -moz-animation:bounce 1s .1s ease both;
}
@-webkit-keyframes bounce {
    0% {
        -webkit-transform:scale(1)
    }
    10%, 20% {
        -webkit-transform:scale(0.8) rotate(-2deg)
    }
    30%, 50%, 70%, 90% {
        -webkit-transform:scale(1.1) rotate(2deg)
    }
    40%, 60%, 80% {
        -webkit-transform:scale(1.1) rotate(-2deg)
    }
    100% {
        -webkit-transform:scale(1) rotate(0)
    }
}

/* 底部导航栏 */ 
.am-navbar .am-navbar-nav, .am-navbar-default .am-navbar-actions {
    background-color: #fff;
    border-top: 1px solid #eee;
}

.am-navbar-default .am-navbar-actions a {
    border-bottom: 0;
}

.am-navbar-default a {
    color: #868686;
}
.am-navbar-nav a .am-navbar-label {
    padding-top: 4px;
}
@media only screen and (min-width: 640px) {
    .am-with-fixed-navbar {
        padding-bottom: 0;
    }
}

/* ==================== 骨架屏样式 ==================== */

/* 骨架屏动画 */
@keyframes skeleton-loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 骨架屏脉冲呼吸动画 */
@keyframes skeleton-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* 骨架屏闪光效果 */
.skeleton-shimmer {
    position: relative;
    overflow: hidden;
}
.skeleton-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
    animation: skeleton-loading 1.5s infinite;
}

/* 骨架屏卡片 - 与 .movie-item 一致 */
.skeleton-card {
    display: block;
    width: 100%;
    max-width: 178px;
    margin: 10px auto;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

/* 骨架屏封面 - 与 .movie-cover 一致 */
.skeleton-cover {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
}
.skeleton-cover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
    animation: skeleton-loading 1.5s infinite;
}

/* 电视剧列表骨架屏比例 - 与 .tv-lists .movie-cover 一致 */
.tv-lists .skeleton-card .skeleton-cover {
    padding-bottom: 70.6%; /* 353/500 */
}

/* 电影列表骨架屏比例 - 与 .movie-lists .movie-cover 一致 */
.movie-lists .skeleton-card .skeleton-cover {
    padding-bottom: 149.5%; /* 670/448 */
}

/* 骨架屏标题区 - 与 .movie-title 一致 */
.skeleton-info {
    padding: 8px 10px;
    background: #fff;
}

.skeleton-title {
    height: 14px;
    background: linear-gradient(90deg, #e8e8e8 0%, #f2f2f2 50%, #e8e8e8 100%);
    background-size: 200% 100%;
    border-radius: 3px;
    margin-bottom: 6px;
    position: relative;
    overflow: hidden;
}
.skeleton-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-subtitle {
    height: 12px;
    width: 70%;
    background: linear-gradient(90deg, #ececec 0%, #f5f5f5 50%, #ececec 100%);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}
.skeleton-subtitle::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
    animation: skeleton-loading 1.5s infinite;
}

/* 骨架屏排行榜 - 与 .right-list 一致 */
.skeleton-rank-item {
    display: flex;
    align-items: center;
    background-color: #fdfdfd;
    padding: 0 10px;
    height: 44px;
    border-bottom: 1px solid #f5f5f5;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-rank-num {
    width: 20px;
    height: 20px;
    background: #e0e0e0;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}
.skeleton-rank-num::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
    animation: skeleton-loading 1.5s infinite;
}

/* 前三名排行徽章颜色 */
.skeleton-rank-item:nth-child(1) .skeleton-rank-num { background: #dd514c; }
.skeleton-rank-item:nth-child(2) .skeleton-rank-num { background: #F37B1D; }
.skeleton-rank-item:nth-child(3) .skeleton-rank-num { background: #5eb95e; }

.skeleton-rank-title {
    flex: 1;
    height: 14px;
    background: linear-gradient(90deg, #e8e8e8 0%, #f2f2f2 50%, #e8e8e8 100%);
    border-radius: 3px;
    margin-right: 10px;
    position: relative;
    overflow: hidden;
}
.skeleton-rank-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-rank-pv {
    width: 40px;
    height: 12px;
    background: #f0f0f0;
    border-radius: 3px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}
.skeleton-rank-pv::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
    animation: skeleton-loading 1.5s infinite;
}

/* 淡入动画 - 使用 transform 和 opacity 避免重排 */
.fade-in {
    animation: fadeIn 0.3s ease-out forwards;
    will-change: opacity, transform;
}

/* 动画完成后移除 will-change 优化内存 */
.fade-in.animated {
    will-change: auto;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px) translateZ(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

/* 容器淡入动画 */
.container-fade-in {
    opacity: 0;
    transform: translateY(15px) translateZ(0);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    will-change: opacity, transform;
}

.container-fade-in.visible {
    opacity: 1;
    transform: translateY(0) translateZ(0);
}

.container-fade-in.visible.animated {
    will-change: auto;
}

/* 图片淡入效果 */
.img-loaded {
    animation: imgFadeIn 0.3s ease-out;
}

@keyframes imgFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* AJAX 加载容器 */
.ajax-block {
    min-height: 200px;
}

.ajax-block.loading {
    pointer-events: none;
}

.ajax-block .skeleton-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

@media (max-width: 990px) {
    .ajax-block .skeleton-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .ajax-block .skeleton-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==================== 豆瓣榜单样式 ==================== */

/* 豆瓣 tabs 样式 */
.am-u-sm-12 > .am-tabs {
    margin-left: 0;
    margin-right: 0;
    margin-top: 15px;
    border-radius: 4px;
    overflow: hidden;
}

/* 豆瓣tabs导航栏 - 保持overflow:hidden */
#douban-tabs .am-tabs-nav {
    border-radius: 4px 4px 0 0;
    overflow: hidden;
}

/* 播放页面选集tabs导航栏 - 允许徽章溢出显示 */
.am-panel .am-tabs-nav {
    overflow: visible;
    padding-top: 8px;
}

.am-tabs-nav > li:first-child > a {
    border-radius: 4px 0 0 0;
}
.am-tabs-nav > li:last-child > a {
    border-radius: 0 4px 0 0;
}
.am-tabs-bd {
    padding: 0;
    border-radius: 0 0 4px 4px;
}

/* 隐藏豆瓣tabs背景框 */
#douban-tabs .am-tabs-bd {
    border: none;
    background: transparent;
}

/* 豆瓣横向滚动容器 */
.douban-scroll-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    padding: 15px 0;
    background: transparent;
    border-radius: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: pan-x;
}
.douban-scroll-wrap::-webkit-scrollbar {
    display: none;
}
#douban-tabs .am-tabs-bd {
    touch-action: pan-x pinch-zoom;
}

/* 豆瓣横向滚动列表 */
.douban-scroll-list {
    display: flex;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
}
.douban-scroll-list > li {
    flex: 0 0 auto;
    width: 180px;
    margin-right: 16px;
    list-style: none;
}
.douban-scroll-list > li:last-child {
    margin-right: 0;
}
.douban-scroll-list > li .movie-item {
    max-width: none;
    margin: 0;
    background: transparent;
    box-shadow: none;
}
.douban-scroll-list > li .movie-cover {
    position: relative;
    overflow: hidden;
    padding-bottom: 149.5%;
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    border-radius: 4px;
}
.douban-scroll-list > li .movie-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
    animation: skeleton-loading 1.5s infinite;
    z-index: 1;
}
.douban-scroll-list > li .movie-cover.loaded::before {
    display: none;
}
.douban-scroll-list > li .movie-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    background: transparent;
    z-index: 2;
}

/* 豆瓣图片懒加载 */
.douban-scroll-list > li .movie-cover img.lazyload {
    opacity: 0;
}
.douban-scroll-list > li .movie-cover img.img-loaded {
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

/* 豆瓣评分斜条 */
.douban-ribbon {
    position: absolute;
    top: 8px;
    left: -28px;
    width: 90px;
    padding: 3px 0;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    transform: rotate(-45deg);
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.ribbon-hot {
    background: linear-gradient(135deg, #f5af19, #f12711);
}
.ribbon-green {
    background: linear-gradient(135deg, #56ab2f, #a8e063);
}
.ribbon-gray {
    background: linear-gradient(135deg, #8e9eab, #667085);
}

/* 豆瓣骨架屏卡片 - 使用与实际卡片相同的结构 */
.douban-scroll-list .skeleton-item,
.douban-scroll-list > li .skeleton-item {
    pointer-events: none;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.douban-scroll-list .skeleton-item .movie-cover {
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    border-radius: 4px;
}

.douban-scroll-list .skeleton-item .skeleton-cover-inner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
    animation: skeleton-loading 1.5s infinite;
}

.douban-scroll-list .skeleton-item .movie-title {
    background: transparent !important;
    padding: 8px 0;
}

.douban-scroll-list .skeleton-item .skeleton-text {
    height: 14px;
    background: linear-gradient(90deg, #e0e0e0 0%, #ececec 50%, #e0e0e0 100%);
    border-radius: 3px;
    margin: 4px 10px;
    position: relative;
    overflow: hidden;
}

.douban-scroll-list .skeleton-item .skeleton-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
    animation: skeleton-loading 1.5s infinite;
}

/* 保留旧的骨架屏卡片样式（兼容） */
.skeleton-douban-card {
    flex: 0 0 auto;
    width: 180px;
    margin-right: 16px;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}
.skeleton-douban-card .skeleton-cover {
    padding-bottom: 149.5%;
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    position: relative;
    overflow: hidden;
}
.skeleton-douban-card .skeleton-cover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
    animation: skeleton-loading 1.5s infinite;
}
.skeleton-douban-card .skeleton-info {
    padding: 8px 10px;
    background: #fff;
}
.skeleton-douban-card .skeleton-title {
    height: 14px;
    background: linear-gradient(90deg, #e8e8e8 0%, #f2f2f2 50%, #e8e8e8 100%);
    border-radius: 3px;
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .douban-scroll-list > li {
        width: 140px;
        margin-right: 12px;
    }
    .skeleton-douban-card {
        width: 140px;
        margin-right: 12px;
    }
    .douban-ribbon {
        font-size: 10px;
        top: 6px;
        left: -30px;
    }
}




/* ========== 链接预热指示器样式 ========== */
/* 已预热链接的视觉指示（可选，通过配置开关） */
a.prefetched {
    position: relative;
}

a.prefetched::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #10b981, #22d3ee);
    opacity: 0.6;
    border-radius: 1px;
}

/* 预热指示器 - 小圆点样式（备选） */
a.prefetched-dot::before {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    opacity: 0.8;
}


/* 资源切换按钮 */
.play-source-group {
    margin: 0 5px 5px 0;
}
/* 刷新按钮 */
.btn-refresh-source {
    color: #dd514c;
    cursor: pointer;
    margin-left: 10px;
}

/* 集数按钮样式 */
.am-tab-panel {
    max-height: 280px;           /* 选集区域最高高度，超出时滚动 */
    overflow-y: auto;
    padding: 10px 0;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 8px;
}
.btn-play-source {
    margin: 0;
    padding: 0 8px;
    min-width: 48px;
    width: calc(12.5% - 7px); /* 固定8列 */
    height: 36px;
    line-height: 34px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    background-color: #f8f9fa;
    color: #555;
    font-size: 13px;
    font-weight: 500;
    flex: 0 0 auto; /* 不伸缩 */
    text-align: center;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.btn-play-source:hover {
    background-color: #e3f2fd;
    border-color: #2196f3;
    color: #1976d2;
}
.btn-play-source.am-btn-secondary {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    border-color: #1976d2;
    color: #fff;
    font-weight: 600;
}
/* 移动端和iPad端优化 */
@media screen and (max-width: 1024px) {
    .am-tab-panel {
        padding: 8px 0;
        gap: 6px;
    }
    .btn-play-source {
        width: calc(16.66% - 5px); /* 6列 */
        min-width: 44px;
    }
}
@media screen and (max-width: 768px) {
    .am-tab-panel {
        padding: 8px 0;
        gap: 6px;
    }
    .btn-play-source {
        width: calc(20% - 5px); /* 5列 */
        min-width: 42px;
        height: 32px;
        line-height: 30px;
        padding: 0 6px;
        font-size: 12px;
    }
}
@media screen and (max-width: 480px) {
    .btn-play-source {
        width: calc(25% - 5px); /* 4列 */
        min-width: 38px;
    }
}

/* ArtPlayer 播放容器 */
.player-box {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    background-color: #000;
}
.player-box .artplayer-app {
    position: absolute;
    inset: 0;
}
/* 站点加载指示器已移除，使用 ArtPlayer 内置加载指示器 */
/* 下侧推荐列表 */
.tuijian-item {
    max-width: 160px;
    margin: 0 auto;
}
.tuijian-item img {
    max-height: 200px;
}

/* 播放器切换下拉框美化 */
/* 优化面板标题布局，使用 flexbox */
.am-panel:first-of-type > .am-panel-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* 标题文本样式 */
.am-panel:first-of-type > .am-panel-hd > *:first-child:not(.am-selected):not(select) {
    flex: 1;
    min-width: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
}

/* 原始 select 元素：在 AmazeUI 初始化前隐藏，防止闪烁 */
select#player-mode-select {
    position: absolute !important;
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

/* AmazeUI 生成的 .am-selected 容器 */
.am-selected#player-mode-select,
#player-mode-select.am-selected {
    flex-shrink: 0;
    position: relative;
    z-index: 10050;
    opacity: 1 !important;
    visibility: visible !important;
    margin-left: auto; /* 推送到右边 */
}

/* 针对 am-panel-hd 中的 am-selected 容器 */
.am-panel-hd > .am-selected {
    flex-shrink: 0;
    position: relative;
    z-index: 10050;
    margin-left: auto; /* 推送到右边 */
}
#player-mode-select .am-selected-btn,
.am-selected#player-mode-select .am-selected-btn,
.am-panel-hd .am-selected .am-selected-btn {
    background: #fff !important;
    border: 1px solid #ddd !important;
    color: #333 !important;
    padding: 6px 16px !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
}

#player-mode-select .am-selected-btn:hover {
    background: #f5f5f5 !important;
    box-shadow: none !important;
    color: #0e90d2 !important;
    transform: none;
}

#player-mode-select .am-selected-btn:active {
    background: #eee !important;
    box-shadow: none !important;
    color: #0e90d2 !important;
    transform: none;
}

#player-mode-select .am-selected-list {
    z-index: 10050 !important;
    min-width: 180px;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #e0e0e0 !important;
    margin-top: 8px;
    background: #fff;
}

#player-mode-select .am-selected-list li {
    padding: 10px 14px;
    color: #333;
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease;
    background: transparent;
}

#player-mode-select .am-selected-list li:hover {
    background: #f1f7fe;
    color: #0e90d2;
}

#player-mode-select .am-selected-list li.am-selected {
    background: #0e90d2;
    color: #fff;
    font-weight: 500;
}

/* 跳过片头面板样式 */
.skip-opening-panel {
    padding: 12px 15px;
    background: linear-gradient(to bottom, #f8f9fa 0%, #f5f6f7 100%);
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.skip-opening-toolbar {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.skip-opening-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #333;
    line-height: 1;
}

.skip-opening-item label {
    margin-bottom: 0 !important;
    display: inline-flex !important;
    align-items: center;
    height: 27px;
}

.skip-opening-item input[type="checkbox"] {
    margin: 0;
    vertical-align: middle;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.skip-opening-item > span {
    font-weight: 500;
    color: #555;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    height: 27px;
}

.skip-opening-item .skip-label {
    color: #666;
    font-weight: 400;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    height: 27px;
}

.skip-opening-item input[type="number"] {
    width: 55px;
    padding: 5px 8px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    text-align: center;
    font-size: 13px;
    background: #fff;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    height: 27px;
    line-height: 1;
    box-sizing: border-box;
}

.skip-opening-item input[type="number"]:focus {
    outline: none;
    border-color: #0e90d2;
    box-shadow: 0 0 0 2px rgba(14, 144, 210, 0.1);
}

.skip-opening-item select {
    padding: 5px 10px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    height: 27px;
    line-height: 1;
    box-sizing: border-box;
}

.skip-opening-item select:focus {
    outline: none;
    border-color: #0e90d2;
    box-shadow: 0 0 0 2px rgba(14, 144, 210, 0.1);
}

.skip-opening-item .skip-unit {
    color: #888;
    font-size: 12px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    height: 27px;
}

.skip-apply-btn {
    padding: 6px 16px;
    background: linear-gradient(to bottom, #0e90d2 0%, #0c7cb5 100%);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(14, 144, 210, 0.2);
}

.skip-apply-btn:hover {
    background: linear-gradient(to bottom, #0c7cb5 0%, #0a6a9e 100%);
    box-shadow: 0 3px 6px rgba(14, 144, 210, 0.3);
    transform: translateY(-1px);
}

.skip-apply-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(14, 144, 210, 0.2);
}

/* 移动端优化 */
@media screen and (max-width: 768px) {
    .skip-opening-panel {
        padding: 10px 12px;
    }
    
    .skip-opening-toolbar {
        gap: 12px;
    }
    
    .skip-opening-item {
        font-size: 12px;
        gap: 5px;
    }
    
    .skip-opening-item input[type="checkbox"] {
        width: 15px;
        height: 15px;
    }
    
    .skip-opening-item input[type="number"] {
        width: 50px;
        padding: 4px 6px;
        font-size: 12px;
    }
    
    .skip-opening-item select {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .skip-apply-btn {
        font-size: 12px;
        padding: 5px 14px;
    }
}

/* 移动端优化 */
@media screen and (max-width: 768px) {
    /* 移动端面板标题布局 */
    .am-panel:first-of-type > .am-panel-hd {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
    
    /* 移动端标题文本 */
    .am-panel:first-of-type > .am-panel-hd > *:first-child:not(.am-selected):not(select) {
        font-size: 14px;
    }
    
    /* 移动端下拉框自适应宽度 */
    .am-panel:first-of-type > .am-panel-hd > #player-mode-select,
    .am-panel:first-of-type > .am-panel-hd > .am-selected {
        width: auto;
        min-width: 100px;
        flex-shrink: 0;
    }
    
    /* 移动端按钮尺寸优化 - 更小更紧凑 */
    #player-mode-select .am-selected-btn,
    .am-selected#player-mode-select .am-selected-btn,
    .am-panel-hd .am-selected .am-selected-btn {
        padding: 4px 10px !important;
        font-size: 12px !important;
        line-height: 1.4 !important;
        min-height: auto !important;
    }
    
    #player-mode-select .am-selected-list {
        min-width: 140px;
        font-size: 13px;
    }
    
    #player-mode-select .am-selected-list li {
        padding: 6px 10px;
        font-size: 13px;
        line-height: 1.4;
    }
}




.panel-filter {
    padding: 1.25rem 0 0 0;
}

.panel-filter .am-u-md-3 {
    padding-bottom: 1.25rem;
}

.panel-filter .am-btn,.panel-filter input {
    font-size: 14px!important;
    height: 32px!important;
}

#movie-year {
    background-color: #fff;
    cursor: pointer;
}

.am-pagination-prev, .am-pagination-next, #selectPage {
    background-color: #fff;
    padding: 5px 10px;
    font-size: 14px;
    line-height: 23px;
    width: auto;
    height: auto;
    color: #444;
    cursor: pointer;
}
#selectPage {
    padding-right: 0;
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    appearance: menulist;
}
.am-pagination-select .am-disabled {
    background-color: #F9F9F9;
    cursor: not-allowed;
}

/* 滑过不要弹起了…… */
.movie-item:hover .movie-description {
    bottom: -51px;
}
/* 分页样式 */
.pagination-container {
    text-align: center;
    margin: 30px 0;
}

.pagination {
    display: inline-block;
    padding-left: 0;
    margin: 0;
    border-radius: 4px;
}

.pagination li {
    display: inline-block;
}

.pagination li a,
.pagination li span {
    position: relative;
    float: left;
    padding: 6px 12px;
    margin-left: -1px;
    line-height: 1.42857143;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #ddd;
    color: #333;
}

.pagination li:first-child a,
.pagination li:first-child span {
    margin-left: 0;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.pagination li:last-child a,
.pagination li:last-child span {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.pagination li a:hover,
.pagination li span:hover {
    background-color: #eee;
    border-color: #ddd;
}

/* 当前选中页面样式 */
.pagination .active a,
.pagination .active span,
.pagination .active a:hover,
.pagination .active span:hover {
    z-index: 3;
    color: #fff;
    cursor: default;
    background-color: #0e90d2;
    border-color: #0e90d2;
}

/* 禁用状态样式 */
.pagination .disabled a,
.pagination .disabled span,
.pagination .disabled a:hover,
.pagination .disabled span:hover {
    color: #777;
    cursor: not-allowed;
    background-color: #fff;
    border-color: #ddd;
}


	.filter-change-listen{
		border-bottom: #dadada 1px solid;
		padding: 0;
		margin: 0 1.6em 1em 1.6em;
		padding-bottom: 0.5em;
	}
	.filter-change-listen li {
		list-style: none;
		display: inline-block;
		font-size: 14px;
		margin-right:15px ;
        margin-bottom: 10px;
	}
	.filter-change-listen .title{
		color: #999999;
	}
	.filter-change-listen li:hover{
		color: #2f80ed;
	}
	.filter-change-listen .active{
		background-color: #2f80ed;
		color: #fff;
		padding: 5px 10px;
		border-radius: 5px;
	}
	.filter-change-listen li a{
		color:black;

	}
	.filter-change-listen .active a{
		color: #fff;
		background-color: #2f80ed;
	}
	@media (max-width: 767px) {
		.filter-change-listen{
			overflow: auto;
			white-space: nowrap;
		}
		.filter-change-listen li {
			font-size: 12px;
			margin-right:15px ;
			margin-bottom: 5px;
		}
       .pagination .hidden_mb{
            display: none;
        }
	}



    
    /* 排行榜页面样式 */
    .rank-container { margin-bottom: 20px; }
    .rank-tabs { margin-bottom: 15px; }
    .rank-tabs .am-nav-tabs { border-bottom: 2px solid #0e90d2; }
    .rank-tabs .am-nav-tabs > li > a { padding: 10px 20px; font-size: 15px; color: #555; transition: all 0.3s ease; }
    .rank-tabs .am-nav-tabs > li > a:hover { background: #f5f5f5; color: #0e90d2; }
    .rank-tabs .am-nav-tabs > li.am-active > a { color: #fff; background: #0e90d2; border-color: #0e90d2; }
    
    .rank-list-wrapper { position: relative; margin-top: 10px; min-height: 220px; }
    .rank-list { padding-left: 0; margin: 0; list-style: none; }
    .rank-list .rank-item { background-color: #fdfdfd; padding: 6px 10px; margin-bottom: 0; border-bottom: 1px solid #f0f0f0; transition: all 0.3s ease; }
    .rank-list .rank-item:hover { background-color: #fff; }
    .rank-list .rank-item a { display: flex; align-items: flex-start; flex-wrap: nowrap; line-height: 1.6; color: #555; text-decoration: none; transition: all 0.3s ease; }
    .rank-list .rank-item a:hover { color: #f60; }
    
    /* 排名徽章 */
    .rank-list .rank-badge { position: absolute; top: 8px; left: -28px; z-index: 10; display: inline-block; width: 90px; padding: 3px 0; text-align: center; font-size: 12px; font-weight: bold; color: #fff; transform: rotate(-45deg); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); }
    .rank-list .rank-item:nth-child(1) .rank-badge { background: linear-gradient(135deg, #f5af19, #f12711); }
    .rank-list .rank-item:nth-child(2) .rank-badge { background: linear-gradient(135deg, #56ab2f, #a8e063); }
    .rank-list .rank-item:nth-child(3) .rank-badge { background: linear-gradient(135deg, #8e9eab, #667085); }
    .rank-list .rank-item:nth-child(n+4) .rank-badge { background: linear-gradient(135deg, #8e9eab, #667085); }
    
    .rank-list .r-l-right { position: absolute; top: 0; right: 0; font-size: 12px; color: #999; font-weight: normal; }
    .rank-list .rank-item a:hover .r-l-right { color: #f60; }
    
    .rank-thumb-wrap { position: relative; flex-shrink: 0; width: 100px; height: 150px; margin-right: 14px; overflow: visible; border-radius: 4px; }
    .rank-content { position: relative; flex: 1; min-height: 150px; }
    .rank-thumb { display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 3px; vertical-align: middle; background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%); position: relative; }
    .rank-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; position: relative; z-index: 3; opacity: 0; transition: opacity 0.3s ease; }
    .rank-thumb img.loaded { opacity: 1; }
    
    /* 图片加载占位 */
    .rank-thumb::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 30px; height: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ccc'%3E%3Cpath d='M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z'/%3E%3C/svg%3E"); background-size: contain; background-repeat: no-repeat; opacity: 0.5; z-index: 1; }
    .rank-thumb::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%); animation: rank-shimmer 1.5s infinite; z-index: 2; }
    .rank-thumb.loaded::before, .rank-thumb.loaded::after { display: none; }
    @keyframes rank-shimmer { 0% { left: -100%; } 100% { left: 100%; } }
    
    .rank-title-text { display: inline-block; max-width: 100%; margin-right: 80px; white-space: normal; overflow: hidden; }
    .rank-meta-small { display: block; font-size: 12px; color: #999; line-height: 18px; margin-top: 4px; }
    .rank-meta-small .rank-year { display: block; margin-top: 4px; margin-right: 10px; }
    .rank-remark { display: inline-block; padding: 0 6px; margin-bottom: 4px; border-radius: 2px; background-color: #fff4e5; color: #f37b1d; }
    .rank-desc { display: block; font-size: 12px; color: #777; line-height: 18px; margin-top: 2px; white-space: normal; overflow: visible; }
    
    /* 骨架屏样式 - 与列表样式一致 */
    .rank-skeleton { pointer-events: none; }
    .rank-skeleton a { display: flex !important; align-items: flex-start; }
    .rank-skeleton .rank-content { min-height: 150px; }
    .rank-skeleton .rank-thumb { background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%); position: relative; overflow: hidden; }
    .rank-skeleton-img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }
    .rank-skeleton-img::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 30px;
        height: 30px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ccc'%3E%3Cpath d='M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z'/%3E%3C/svg%3E");
        background-size: contain;
        background-repeat: no-repeat;
        opacity: 0.5;
        z-index: 2;
    }
    .rank-skeleton-img::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
        animation: rank-shimmer 1.5s infinite;
        z-index: 3;
    }
    .rank-skeleton-title { display: inline-block; height: 16px; width: 60%; max-width: 100%; margin-right: 80px; background: linear-gradient(90deg, #e8e8e8 0%, #f2f2f2 50%, #e8e8e8 100%); border-radius: 3px; position: relative; overflow: hidden; }
    .rank-skeleton-title::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%); animation: rank-shimmer 1.5s infinite; }
    .rank-skeleton-meta { display: block; height: 12px; width: 40%; background: linear-gradient(90deg, #ececec 0%, #f5f5f5 50%, #ececec 100%); border-radius: 3px; margin-top: 4px; position: relative; overflow: hidden; }
    .rank-skeleton-meta::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%); animation: rank-shimmer 1.5s infinite; }
    .rank-skeleton-desc { display: block; height: 12px; width: 80%; background: linear-gradient(90deg, #ececec 0%, #f5f5f5 50%, #ececec 100%); border-radius: 3px; margin-top: 2px; position: relative; overflow: hidden; }
    .rank-skeleton-desc::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%); animation: rank-shimmer 1.5s infinite; }
    
    .rank-empty { text-align: center; padding: 60px 20px; color: #888; }
    
    @media (max-width: 640px) {
        .rank-tabs .am-nav-tabs > li > a { padding: 8px 12px; font-size: 14px; }
        .rank-list .rank-item a { font-size: 14px; }
        .rank-list .rank-badge { min-width: 22px; height: 22px; line-height: 22px; font-size: 12px; }
        .rank-list .r-l-right { font-size: 11px; }
    }
    #cache-status-info{
        margin-top:4px;
    }
    .position_relative{position:relative;}
    .l-margin-10{margin-left: 10px;}

    .am-tabs-nav li.am-active .tab-badge
    {
        background-color: #dd514c;
    }
    .am-tabs-nav li .tab-badge {
        position: absolute;
        top: -6px;
        right: 2px;
        display: inline-block;
        min-width: 18px;
        height: 18px;
        line-height: 18px;
        padding: 0 4px;
        background-color: #0e90d2;
        color: #fff;
        border-radius: 9px;
        font-size: 11px;
        text-align: center;
        font-weight: bold;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        z-index: 10;
        pointer-events: none;
    }
    .am-tabs-bd-touch{
        touch-action: pan-y; user-select: none; -webkit-user-drag: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    }
    .b-margin-10{
        margin-bottom: 10px;
    }