/* 小旋风影视 苹果CMS模板 - 移动端优先 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #fff;
    max-width: 750px;
    margin: 0 auto;
}

@media (min-width: 751px) {
    body {
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    }
}

.header {
    background: #fff;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: block;
    line-height: 0;
    flex-shrink: 0;
}

.logo img {
    height: 40px;
    width: auto;
    max-height: 40px;
    display: block;
    vertical-align: top;
    object-fit: contain;
}

.search-box {
    flex: 1;
    margin-left: 10px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 8px 70px 8px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
}

.search-box .search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 14px;
    background: #ff6b6b;
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.search-box .search-btn:hover {
    opacity: 0.8;
}

.nav {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.nav::-webkit-scrollbar {
    display: none;
}

.nav-item {
    flex: 0 0 auto;
    padding: 8px 12px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    border-radius: 16px;
    white-space: nowrap;
}

.nav-item.active {
    color: #ff6b6b;
    font-weight: bold;
}

.nav-item:hover {
    color: #ff6b6b;
}

.notice-bar {
    background: #fff7e6;
    border-bottom: 1px solid #ffe7ba;
    overflow: hidden;
    white-space: nowrap;
    font-size: 12px;
    color: #ff6b6b;
    padding: 6px 0;
}

.notice-inner {
    display: inline-block;
    padding-left: 100%;
    animation: notice-scroll 12s linear infinite;
}

@keyframes notice-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.movie-grid {
    display: flex;
    flex-wrap: wrap;
    padding: 15px;
    gap: 10px;
}

.movie-card {
    width: calc(33.333% - 7px);
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.movie-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.movie-card:hover {
    transform: translateY(-2px);
}

.movie-card-image {
    position: relative;
    width: 100%;
    padding-top: 140%;
    background: #f0f0f0 url('../img/load.gif') center/50px 50px no-repeat;
    overflow: hidden;
}

.movie-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-card-image .badge-new {
    position: absolute;
    top: 5px;
    left: 5px;
    background: #ff6b6b;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.movie-card-image .badge-score {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
}

.movie-card-image .badge-year {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
}

.movie-card-image .badge-type {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
}

.movie-card-info {
    padding: 8px;
}

.movie-card-title {
    font-size: 13px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-card-actors {
    font-size: 11px;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.section-title h2 {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.section-title .more {
    font-size: 13px;
    color: #999;
    text-decoration: none;
}

.footer {
    background: #fff;
    padding: 20px 15px;
    margin-top: 20px;
    border-top: 1px solid #eee;
}

.footer-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-actions a {
    color: #ff6b6b;
    text-decoration: none;
    font-size: 14px;
}

.footer-disclaimer {
    font-size: 12px;
    color: #999;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: center;
}

.footer-info {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-bottom: 10px;
    line-height: 1.8;
}

.footer-sitemap {
    font-size: 12px;
    color: #999;
    text-align: center;
    line-height: 2;
}

.footer-sitemap a {
    color: #999;
    text-decoration: none;
    margin: 0 5px;
}

.detail-poster {
    position: relative;
    width: 38%;
    max-width: 140px;
    flex-shrink: 0;
    aspect-ratio: 3/4;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0 url('../img/load.gif') center/50px 50px no-repeat;
}

.detail-poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.detail-info {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    line-height: 1.8;
    color: #666;
}

.detail-info p {
    margin-bottom: 4px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 20px 15px;
    background: #fff;
}

.pagination .page-btn {
    min-width: 35px;
    height: 35px;
    padding: 0 12px;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    border-radius: 5px;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.pagination .page-btn:hover {
    background: #ff6b6b;
    color: #fff;
    border-color: #ff6b6b;
}

.pagination .page-num {
    padding: 0 10px;
    font-size: 14px;
    color: #666;
}

.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: #ff6b6b;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99;
    padding: 0;
    line-height: 1;
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    opacity: 0.8;
}

.hide {
    position: absolute;
    left: -9999px;
}


/* 分类/搜索列表页 */

.content-module {
    background: #fff;
}

.content-total {
    font-size: 13px;
    color: #999;
    margin-left: 8px;
}

.content-total em {
    color: #ff6b6b;
    font-style: normal;
}


/* 按类型筛选（分类页） */

.type-filter {
    list-style: none;
    margin: 0;
    padding: 12px 15px;
    background: linear-gradient(to bottom, #fafafa 0%, #fff 100%);
    border-bottom: 1px solid #eee;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.type-filter::-webkit-scrollbar {
    display: none;
}

.type-filter li {
    margin: 0;
    flex: 0 0 auto;
}

.type-filter .filter-label {
    flex-shrink: 0;
    padding-right: 6px;
    border-right: 1px solid #eee;
    margin-right: 4px;
}

.type-filter .filter-label .text-muted {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.type-filter .text-muted {
    color: #666;
    font-size: 13px;
}

.type-filter a {
    display: inline-block;
    padding: 8px 14px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.type-filter a:hover {
    background: #ffe5e5;
    color: #ff6b6b;
}

.type-filter li.active a {
    background: #ff6b6b;
    color: #fff;
}

.sort-bar {
    display: flex;
    gap: 10px;
    padding: 10px 15px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.sort-bar .sort-btn {
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 13px;
    text-decoration: none;
    color: #666;
    background: #f5f5f5;
}

.sort-bar .sort-btn.active {
    background: #ff6b6b;
    color: #fff;
}

.no-data {
    text-align: center;
    padding: 40px 15px;
    color: #999;
    font-size: 14px;
}


/* 详情页 */

.detail-module {
    padding: 15px;
    background: #fff;
}

.detail-top {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.detail-meta .detail-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.play-btn-main {
    display: inline-block;
    margin-top: 12px;
    padding: 12px 24px;
    background: #ff6b6b;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
}

.play-btn-main:hover {
    opacity: 0.9;
    color: #fff;
}

.section-title-inner {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.playlist-module {
    margin-bottom: 20px;
}

.play-source {
    margin-bottom: 12px;
}

.play-source .source-name {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
    display: block;
}

.playlist-items {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.playlist-items li {
    margin: 0;
}

.playlist-items a {
    display: inline-block;
    padding: 6px 12px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
}

.playlist-items a:hover,
.playlist-items li.active a {
    background: #ff6b6b;
    color: #fff;
}

.no-play {
    padding: 10px 0;
}

.no-play a {
    color: #ff6b6b;
    text-decoration: none;
}

.desc-module {
    margin-bottom: 20px;
}

.desc-content {
    font-size: 13px;
    line-height: 1.8;
    color: #666;
}


/* 播放页 */

body.page-play {
    max-width: 100%;
}

.page-play-wrap {
    max-width: 414px;
    margin: 0 auto;
}

.player-module {
    padding: 0;
    background: #000;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}


/* 与参考模板一致的播放器比例框（sttpl/5） */

.embed-responsive {
    position: relative;
    display: block;
    overflow: hidden;
    padding: 0;
    height: 0;
}

.embed-responsive .embed-responsive-item,
.embed-responsive embed,
.embed-responsive iframe,
.embed-responsive object,
.embed-responsive video {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.embed-responsive-16by9 {
    padding-bottom: 56.25%;
}

.embed-responsive-4by3 {
    padding-bottom: 75%;
}

.player-detail {
    padding: 12px 15px;
    background: #fff;
}

.player-detail .set {
    margin-bottom: 8px;
}

.player-detail .cut {
    display: inline-block;
    margin-right: 10px;
    padding: 8px 16px;
    border: 1px solid #eee;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
}

.player-detail .cut:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.player-detail .title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.player-detail .data {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.player-detail .text-muted {
    color: #999;
}

.player-detail .split-line {
    margin: 0 6px;
    color: #ddd;
}


/* 播放列表 tab（与参考模板一致） */

.tab-content>.tab-pane {
    display: none;
}

.tab-content>.tab-pane.active {
    display: block;
}

.stui-content__playlist.playlink,
.stui-content__downlist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stui-content__playlist li,
.stui-content__downlist li {
    margin: 0;
}

.stui-content__playlist a,
.stui-content__downlist a {
    display: inline-block;
    padding: 6px 12px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
}

.stui-content__playlist a:hover,
.stui-content__playlist li.active a,
.stui-content__downlist a:hover {
    background: #ff6b6b;
    color: #fff;
}