:root{--cinema-bg:#08090d;--cinema-panel:#11131a;--cinema-line:#242632;--cinema-muted:#a3a5b1;--cinema-accent:#f5c66d}
body{background:var(--cinema-bg);background-image:radial-gradient(ellipse at 50% -18%,#25283a 0,transparent 47%);color:#f6f6f8}
.cinema-shell{width:min(1440px,100%);margin:auto;padding:0 42px 44px}
.cinema-header{position:sticky;top:0;z-index:50;min-height:76px;margin:0 -42px 0;padding:0 42px;border-bottom:1px solid #ffffff0d;background:#090a0ff0;backdrop-filter:blur(18px)}
.cinema-header .brand-button{flex-shrink:0;font-size:25px;letter-spacing:-.7px}.cinema-header .brand-button span{font-weight:750}
.category-nav{display:flex;align-items:center;justify-content:center;gap:20px;min-width:0;overflow-x:auto;scrollbar-width:none}.category-nav::-webkit-scrollbar{display:none}.category-nav a{flex:0 0 auto;color:#b9bac4;text-decoration:none;font-size:13px;transition:color .2s}.category-nav a:hover{color:var(--cinema-accent)}
.header-actions{align-items:center;flex-shrink:0;gap:8px}.header-actions button{border:1px solid transparent;border-radius:9px;background:transparent;color:#c7c8d0;padding:8px 10px;font-size:13px}.header-actions button:hover{background:#ffffff0b;color:#fff}.header-actions .icon-button{width:40px;height:40px;padding:0;border:1px solid #343644;border-radius:50%;font-size:28px;line-height:1}
.hero-banner{position:relative;display:flex;align-items:center;min-height:clamp(390px,43vw,560px);margin:24px 0 42px;padding:clamp(28px,5vw,76px);overflow:hidden;border:1px solid #ffffff12;border-radius:22px;background:linear-gradient(90deg,#0a0b11 0%,#0a0b11ed 24%,#0a0b1199 56%,#0a0b1126 100%),linear-gradient(0deg,#08090d 0%,transparent 50%),radial-gradient(ellipse at 75% 35%,#454b66 0%,#181b2a 35%,#11131b 75%);background-size:cover;background-position:center 28%;box-shadow:0 28px 80px #0006}
.hero-banner:before{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#08090d55,transparent 45%);pointer-events:none}.hero-copy{position:relative;z-index:1;max-width:610px}.hero-eyebrow{display:flex;align-items:center;gap:9px;margin:0 0 18px;color:#e6c57f;font-size:12px;font-weight:700;letter-spacing:2px;text-transform:uppercase}.live-dot{width:7px;height:7px;border-radius:50%;background:var(--cinema-accent);box-shadow:0 0 14px #f5c66d99}
.hero-copy h1{max-width:650px;margin:0;font-size:clamp(36px,5vw,66px);line-height:1.1;letter-spacing:-1.7px;text-wrap:balance;text-shadow:0 4px 24px #0008}.hero-meta{margin:18px 0 0;color:#e3e3e9;font-size:14px}.hero-description{max-width:560px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:12px 0 0;color:#c1c2cc;font-size:14px;line-height:1.8}.hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:26px}.hero-actions button{min-height:43px;padding:0 18px;border-radius:9px;font-weight:650}.primary-action{border:0;background:#f7f7f8;color:#101116}.primary-action:hover{background:var(--cinema-accent)}.secondary-action{border:1px solid #ffffff35;background:#171923b8;color:#f4f4f7}.secondary-action:hover{background:#282b38}
.hero-pagination{position:absolute;right:clamp(20px,3vw,44px);bottom:22px;left:clamp(20px,3vw,44px);display:flex;align-items:center;justify-content:space-between;gap:16px;color:#a9abb8;font-size:11px}.hero-pagination-mark{letter-spacing:2px;color:#ffffff55}
.shelf-section{margin:0 0 40px;scroll-margin-top:96px}.shelf-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:0 0 17px}.shelf-kicker{margin:0 0 5px;color:#8c8e9c;font-size:10px;letter-spacing:2px}.shelf-heading h2{margin:0;font-size:23px;letter-spacing:-.5px}.shelf-caption{padding-bottom:3px;color:#858795;font-size:12px}
.poster-rail{display:grid;grid-auto-columns:minmax(145px,1fr);grid-auto-flow:column;grid-template-rows:1fr;gap:15px;overflow-x:auto;padding:2px 2px 14px;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:#383a48 transparent}.poster-card{min-width:0;overflow:hidden;border:1px solid #ffffff0d;border-radius:12px;background:#11131a;scroll-snap-align:start;transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease}.poster-card:hover{transform:translateY(-4px);border-color:#ffffff32;box-shadow:0 12px 30px #0006}.poster-card img{display:block;width:100%;aspect-ratio:2/3;object-fit:cover;background:#191b24}.poster-body{padding:10px 11px 12px}.poster-body h3{margin:0 0 6px;font-size:13px;font-weight:650;line-height:1.45;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.poster-body p{height:17px;margin:0;color:#9294a1;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.poster-body .card-button{display:none}
.category-shelf{margin:0 0 38px;scroll-margin-top:100px}.category-shelf .poster-rail{grid-auto-columns:minmax(145px,1fr)}.category-shelf .shelf-heading h2{font-size:21px}.category-shelf .shelf-heading a{color:#a6a8b5;text-decoration:none;font-size:12px;white-space:nowrap}.category-shelf .shelf-heading a:hover{color:var(--cinema-accent)}
.poster-rail .empty{grid-column:auto;min-width:200px;padding:24px 0;color:#9294a1}.home-error{margin:20px 0;padding:16px 18px;border:1px solid #754b4b;border-radius:10px;background:#351b1b;color:#f3bdbd;font-size:13px}.cinema-footer{display:flex;justify-content:space-between;gap:16px;margin-top:58px;padding-top:20px;border-top:1px solid var(--cinema-line);color:#6f7280;font-size:11px}.cinema-footer span:first-child{color:#a7a9b6;font-weight:700;letter-spacing:1px}
@media(min-width:1250px){.poster-rail{grid-auto-columns:minmax(150px,1fr)}}
@media(max-width:1050px){.cinema-shell{padding-right:26px;padding-left:26px}.cinema-header{margin-right:-26px;margin-left:-26px;padding-right:26px;padding-left:26px}.category-nav{gap:13px}.poster-rail{grid-auto-columns:155px}.hero-banner{min-height:420px}}
@media(max-width:760px){.cinema-shell{padding:0 16px 32px}.cinema-header{min-height:66px;margin:0 -16px;padding:0 16px;gap:12px}.cinema-header .brand-button{font-size:21px}.category-nav{display:none}.header-actions{margin-left:auto}.header-actions button{padding:7px 8px}.header-actions .icon-button{width:36px;height:36px;font-size:25px}.hero-banner{min-height:440px;margin:16px 0 34px;padding:28px 23px 70px;border-radius:16px;background-position:58% center}.hero-copy h1{font-size:clamp(34px,8vw,48px);letter-spacing:-1px}.hero-description{font-size:13px}.hero-pagination{right:20px;bottom:17px;left:20px}.hero-pagination-mark{display:none}.shelf-heading h2{font-size:21px}.poster-rail{grid-auto-columns:145px;gap:11px}.category-shelf .poster-rail{grid-auto-columns:145px}.cinema-footer{flex-direction:column;gap:8px}}
@media(max-width:380px){.header-actions{gap:2px}.header-actions button{font-size:12px;padding:6px}.hero-banner{min-height:420px}.poster-rail,.category-shelf .poster-rail{grid-auto-columns:132px}}
@media(prefers-reduced-motion:reduce){.poster-card{transition:none}}

.cinema-header>.brand-button{padding:0;border:0;border-radius:0;background:transparent;color:#fff}

.header-actions .icon-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;width:auto;min-width:82px;height:38px;padding:0 13px;border:1px solid #3a3d4c;border-radius:10px;font-size:13px;line-height:1;white-space:nowrap}.header-actions .icon-button::after{content:'搜索';font-size:13px}.header-actions .icon-button:hover{border-color:#686b7a;background:#ffffff0d;color:#fff}@media(max-width:760px){.header-actions .icon-button{min-width:70px;height:35px;padding:0 10px}.header-actions .icon-button::after{content:'搜索'}}

/* 海报卡片去掉外层大框，只保留海报图片和文字 */
.poster-card{border:0;border-radius:0;background:transparent;box-shadow:none}
.poster-card:hover{transform:none;border-color:transparent;box-shadow:none}
.poster-card img{border-radius:0;background:transparent}
.poster-body{padding:10px 2px 12px}

/* 分类列表模式：移除精选大横幅和海报墙，使用紧凑的小图条目 */
#home-status{display:none}
.category-shelf{margin:0 0 28px}
.category-shelf .shelf-heading{margin-bottom:10px}
.category-shelf .shelf-kicker{display:none}
.category-shelf .shelf-heading h2{font-size:19px}
.category-shelf .poster-rail{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));grid-auto-flow:row;grid-auto-columns:unset;grid-template-rows:unset;gap:8px;overflow:visible;padding:0;scroll-snap-type:none}
.poster-card{display:flex;align-items:center;gap:12px;min-height:88px;padding:8px;border:0;border-radius:8px;background:#11131a;box-shadow:none}
.poster-card:hover{transform:none;border:0;background:#191b24;box-shadow:none}
.poster-card img{flex:0 0 56px;width:56px;height:72px;aspect-ratio:auto;object-fit:cover;border-radius:4px;background:linear-gradient(135deg,#252938,#11131a)}
.poster-card.no-thumbnail img{display:block;visibility:visible}
.poster-card.no-thumbnail img[hidden]{display:block;visibility:visible;object-fit:contain}
.poster-card.no-thumbnail img[hidden]::after{content:"暂无图片";display:flex;align-items:center;justify-content:center;width:56px;height:72px;color:#9294a1;font-size:10px}
.poster-body{min-width:0;padding:0 2px;flex:1}
.poster-body h3{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px}
.poster-body p{height:auto;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.5}
@media(max-width:600px){.category-shelf .poster-rail{grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:6px}.poster-card{gap:8px;min-height:76px;padding:6px}.poster-card img{flex-basis:44px;width:44px;height:60px}.poster-body h3{font-size:12px}.poster-body p{font-size:10px}}

.thumbnail-placeholder{flex:0 0 56px;width:56px;height:72px;display:flex;align-items:center;justify-content:center;border-radius:4px;background:linear-gradient(135deg,#252938,#11131a);color:#9294a1;font-size:10px;text-align:center}.thumbnail-placeholder[hidden]{display:none}.poster-card.no-thumbnail img[hidden]{display:none}@media(max-width:600px){.thumbnail-placeholder{flex-basis:44px;width:44px;height:60px}}


/* 电影天堂式分类切换：分类按钮刷新当前视频列表 */
.category-nav{justify-content:flex-start;gap:8px;padding:0 4px}
.category-nav .category-link{flex:0 0 auto;border:1px solid transparent;border-radius:8px;padding:8px 12px;background:transparent;color:#b9bac4;font-size:13px;white-space:nowrap;cursor:pointer;transition:background .18s,color .18s,border-color .18s}
.category-nav .category-link:hover{color:#fff;background:#ffffff0b}
.category-nav .category-link.active{border-color:#f5c66d55;background:#f5c66d18;color:var(--cinema-accent);font-weight:650}
.category-nav[aria-busy="true"]{opacity:.7;pointer-events:none}
@media(max-width:760px){
  .cinema-header{flex-wrap:wrap;padding-bottom:10px}
  .category-nav{display:flex;order:3;flex:0 0 100%;width:100%;justify-content:flex-start;overflow-x:auto;padding:2px 0 4px}
  .category-nav .category-link{padding:7px 10px;font-size:12px}
}


/* 分类别完整浏览与分页加载 */
.load-more-button{display:block;margin:22px auto 12px;padding:10px 24px;border:1px solid #3a3d4c;border-radius:9px;background:#151720;color:#f5c66d;font-size:13px;cursor:pointer}
.load-more-button:hover{border-color:#f5c66d88;background:#1d202b}
.end-of-list{text-align:center;margin:22px 0;color:#777b89;font-size:12px}


/* 顶部工具栏与影片分类分成上下两行 */
.cinema-header{display:flex;flex-direction:column;align-items:stretch;gap:0;padding-top:12px;padding-bottom:10px}
.cinema-header .header-main{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:48px;width:100%}
.cinema-header .category-nav{display:flex;justify-content:flex-start;align-items:center;gap:8px;flex-wrap:wrap;overflow:visible;padding:12px 0 2px;border-top:1px solid #ffffff0d;margin-top:10px}
.cinema-header .category-nav .category-link{flex:0 0 auto;padding:7px 13px;border:1px solid #292c38;border-radius:7px;background:#11131a;color:#b9bac4;font-size:13px;white-space:nowrap;transition:background .18s,border-color .18s,color .18s}
.cinema-header .category-nav .category-link:hover{border-color:#686b7a;color:#fff}
.cinema-header .category-nav .category-link.active{border-color:#f5c66d;background:#f5c66d;color:#17130b}
@media(max-width:760px){
 .cinema-header{gap:0}
 .cinema-header .header-main{gap:8px}
 .cinema-header .category-nav{display:flex;flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;overflow-y:hidden;white-space:nowrap;padding:10px 0 3px;scrollbar-width:none}
 .cinema-header .category-nav::-webkit-scrollbar{display:none}
 .cinema-header .category-nav .category-link{padding:7px 11px}
}


/* 电影天堂风格数字分页 */
.pagination{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:7px;margin:28px auto 18px;padding:8px 0}
.pagination-button{min-width:36px;min-height:34px;padding:0 11px;border:1px solid #303341;border-radius:6px;background:#11131a;color:#c7c8d0;font-size:13px;cursor:pointer;transition:background .18s,border-color .18s,color .18s}
.pagination-button:hover:not(:disabled){border-color:#f5c66d;color:#f5c66d}
.pagination-button.active{border-color:#f5c66d;background:#f5c66d;color:#17130b;font-weight:700}
.pagination-button:disabled{opacity:.38;cursor:not-allowed}
.pagination-summary{margin-left:5px;color:#858795;font-size:12px;white-space:nowrap}
@media(max-width:600px){.pagination{gap:5px}.pagination-button{min-width:32px;min-height:32px;padding:0 8px;font-size:12px}.pagination-summary{flex-basis:100%;margin:5px 0 0;text-align:center}}
