/* templates/assets/style.css */
:root{
  --bg:#0b1020;
  --panel:#111827;
  --panel-2:#182234;
  --line:rgba(255,255,255,.08);
  --line-soft:rgba(255,255,255,.05);
  --text:#e5e7eb;
  --text-soft:#9ca3af;
  --main:#22c55e;
  --main-deep:#16a34a;
  --danger:#ef4444;
  --shadow:0 12px 40px rgba(0,0,0,.28);
  --radius:18px;
  --radius-sm:12px;
  --container:1200px;
}

*,
*::before,
*::after{
  box-sizing:border-box;
}

html{
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}

body{
  margin:0;
  min-width:320px;
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Helvetica Neue","Microsoft YaHei",Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top left, rgba(34,197,94,.08), transparent 24%),
    radial-gradient(circle at top right, rgba(59,130,246,.08), transparent 28%),
    linear-gradient(180deg, #0a0f1d, #0b1020 32%, #0b1020 100%);
  line-height:1.65;
}

img{
  display:block;
  max-width:100%;
}

a{
  color:inherit;
  text-decoration:none;
}

button,
input{
  font:inherit;
}

.site-shell{
  overflow:hidden;
}

.container{
  width:100%;
  max-width:calc(var(--container) + 32px);
  margin:0 auto;
  padding:0 16px;
}

.site-header{
  position:relative;
  z-index:20;
  padding:18px 0 14px;
  background:rgba(11,16,32,.82);
  border-bottom:1px solid var(--line-soft);
  backdrop-filter:blur(14px);
}

.header-top{
  display:flex;
  align-items:center;
  gap:20px;
  justify-content:space-between;
}

.brand-box{
  min-width:0;
  flex:0 0 auto;
}

.brand-link{
  display:inline-flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.brand-logo{
  width:46px;
  height:46px;
  border-radius:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,var(--main),#06b6d4);
  color:#fff;
  font-size:22px;
  box-shadow:0 10px 24px rgba(34,197,94,.22);
}

.brand-text{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}

.brand-text strong{
  font-size:22px;
  line-height:1.1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.brand-text em{
  font-style:normal;
  color:var(--text-soft);
  font-size:13px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.search-form{
  flex:1 1 auto;
  max-width:520px;
}

.search-input-wrap{
  display:flex;
  align-items:center;
  gap:10px;
  background:rgba(255,255,255,.05);
  border:1px solid var(--line);
  border-radius:999px;
  padding:6px;
}

.search-input{
  flex:1 1 auto;
  height:44px;
  border:none;
  outline:none;
  background:transparent;
  color:var(--text);
  padding:0 16px;
  min-width:0;
}

.search-input::placeholder{
  color:#94a3b8;
}

.search-btn{
  flex:0 0 auto;
  height:44px;
  padding:0 22px;
  border:none;
  border-radius:999px;
  background:linear-gradient(135deg,var(--main),var(--main-deep));
  color:#07210f;
  font-weight:700;
  cursor:pointer;
}

.main-nav{
  margin-top:16px;
}

.nav-scroll{
  display:flex;
  align-items:center;
  gap:10px;
  overflow-x:auto;
  overflow-y:hidden;
  padding-bottom:4px;
  scrollbar-width:none;
}

.nav-scroll::-webkit-scrollbar{
  display:none;
}

.nav-link{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:74px;
  height:40px;
  padding:0 16px;
  background:rgba(255,255,255,.04);
  border:1px solid var(--line);
  border-radius:999px;
  color:#dbe4ef;
  white-space:nowrap;
}

.site-main{
  padding:22px 0 56px;
}

.page-banner{
  margin-bottom:24px;
}

.page-banner-inner{
  background:linear-gradient(135deg, rgba(34,197,94,.14), rgba(59,130,246,.12));
  border:1px solid var(--line);
  border-radius:24px;
  padding:28px 24px;
  box-shadow:var(--shadow);
}

.page-banner h1{
  margin:0 0 10px;
  font-size:30px;
  line-height:1.25;
}

.page-banner p{
  margin:0;
  color:var(--text-soft);
}

.hero-banner{
  margin-bottom:28px;
}

.hero-slider{
  position:relative;
  border-radius:24px;
  overflow:hidden;
  border:1px solid var(--line);
  background:#0f172a;
  box-shadow:var(--shadow);
}

.hero-track{
  position:relative;
  display:flex;
  overflow:auto hidden;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
}

.hero-track::-webkit-scrollbar{
  display:none;
}

.hero-slide{
  position:relative;
  min-width:100%;
  scroll-snap-align:start;
  aspect-ratio: 21 / 8;
  display:block;
}

.hero-cover,
.hero-cover img{
  width:100%;
  height:100%;
}

.hero-cover img{
  object-fit:cover;
}

.hero-mask{
  position:absolute;
  inset:0;
  background:linear-gradient(90deg, rgba(2,6,23,.88) 0%, rgba(2,6,23,.45) 38%, rgba(2,6,23,.12) 100%);
}

.hero-content{
  position:absolute;
  left:32px;
  right:32px;
  bottom:32px;
  max-width:540px;
  z-index:2;
}

.hero-content b{
  display:block;
  font-size:34px;
  line-height:1.25;
  margin-bottom:10px;
}

.hero-content em{
  font-style:normal;
  color:#d1d5db;
  display:block;
}

.hero-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:42px;
  height:42px;
  border:none;
  border-radius:999px;
  background:rgba(0,0,0,.35);
  color:#fff;
  font-size:26px;
  cursor:pointer;
  z-index:3;
}

.hero-prev{left:14px}
.hero-next{right:14px}

.section-block{
  margin-bottom:28px;
}

.section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}

.section-head h2{
  margin:0;
  font-size:24px;
  line-height:1.25;
}

.more-link{
  color:#cbd5e1;
  font-size:14px;
}

.vod-grid{
  display:grid;
  grid-template-columns:repeat(5, minmax(0,1fr));
  gap:18px;
}

.vod-card{
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.025));
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
  box-shadow:var(--shadow);
  min-width:0;
}

.vod-thumb{
  position:relative;
  display:block;
  width:100%;
  aspect-ratio: 3 / 4.2;
  overflow:hidden;
  background:#0f172a;
}

.vod-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .35s ease;
}

.vod-card:hover .vod-thumb img{
  transform:scale(1.05);
}

.vod-badge{
  position:absolute;
  right:10px;
  bottom:10px;
  max-width:calc(100% - 20px);
  height:28px;
  line-height:28px;
  padding:0 10px;
  border-radius:999px;
  background:rgba(2,6,23,.72);
  color:#fff;
  font-size:12px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.vod-body{
  padding:14px 14px 16px;
  min-width:0;
}

.vod-body h3{
  margin:0 0 8px;
  font-size:16px;
  line-height:1.45;
}

.vod-body h3 a{
  display:block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.vod-body p{
  margin:0;
  color:var(--text-soft);
  font-size:13px;
  min-height:42px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  word-break:break-all;
}

.vod-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}

.vod-meta span{
  display:inline-flex;
  align-items:center;
  height:26px;
  padding:0 10px;
  border-radius:999px;
  background:rgba(255,255,255,.05);
  color:#cbd5e1;
  font-size:12px;
}

.pagination{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:24px;
}

.page-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:42px;
  height:42px;
  padding:0 14px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
}

.keyword-cloud{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

.keyword-cloud a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:0 16px;
  border-radius:999px;
  background:rgba(255,255,255,.05);
  border:1px solid var(--line);
  color:#dbe4ef;
}

.site-footer{
  border-top:1px solid var(--line-soft);
  background:rgba(255,255,255,.025);
  padding:28px 0 40px;
}

.footer-title{
  font-size:16px;
  font-weight:700;
  margin-bottom:12px;
}

.friend-links{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:22px;
}

.friend-links a{
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:0 14px;
  border-radius:999px;
  background:rgba(255,255,255,.05);
  border:1px solid var(--line);
  color:#d1d5db;
}

.footer-copy p{
  margin:6px 0 0;
  color:var(--text-soft);
  font-size:13px;
}

.play-layout{
  margin-bottom:28px;
}

.player-main{
  display:grid;
  grid-template-columns:minmax(0, 2fr) minmax(320px, 420px);
  gap:24px;
  align-items:start;
}

.player-box,
.detail-card,
.rank-item{
  background:linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.03));
  border:1px solid var(--line);
  border-radius:20px;
  box-shadow:var(--shadow);
}

.player-box{
  overflow:hidden;
}

.player-header{
  padding:20px 20px 14px;
}

.player-header h1{
  margin:0 0 10px;
  font-size:28px;
  line-height:1.35;
  word-break:break-word;
}

.player-mini-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.player-mini-meta span{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  background:rgba(255,255,255,.05);
  color:#dbe4ef;
  font-size:12px;
}

.player-stage{
  padding:0 20px 20px;
}

.player-screen{
  position:relative;
  background:#000;
  border-radius:18px;
  overflow:hidden;
  aspect-ratio:16 / 9;
}

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

.player-overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:20px;
  background:linear-gradient(180deg, rgba(15,23,42,.55), rgba(15,23,42,.82));
  transition:opacity .25s ease, visibility .25s ease;
}

.player-overlay.is-hidden{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}

.player-status-inner{
  max-width:420px;
}

.player-status-inner strong{
  display:block;
  font-size:20px;
  margin-bottom:8px;
}

.player-status-inner p{
  margin:0;
  color:#d1d5db;
}

.player-actions{
  margin-top:12px;
  display:flex;
  gap:10px;
}

.player-action-btn{
  height:38px;
  padding:0 14px;
  border:none;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  color:#fff;
}

.play-source-box{
  padding:0 20px 20px;
}

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

.episode-item{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:8px 10px;
  text-align:center;
  border-radius:12px;
  background:rgba(255,255,255,.04);
  border:1px solid var(--line);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.detail-card{
  padding:18px;
}

.detail-poster{
  width:100%;
  aspect-ratio:3 / 4.2;
  border-radius:16px;
  overflow:hidden;
  margin-bottom:16px;
  background:#0f172a;
}

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

.detail-content h2{
  margin:0 0 14px;
  font-size:24px;
  line-height:1.4;
  word-break:break-word;
}

.detail-meta{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:10px;
}

.detail-meta li{
  display:flex;
  gap:8px;
  align-items:flex-start;
  color:#dbe4ef;
}

.detail-meta span{
  flex:0 0 56px;
  color:var(--text-soft);
}

.detail-meta em{
  font-style:normal;
  flex:1 1 auto;
  word-break:break-all;
}

.detail-desc{
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid var(--line);
}

.detail-desc h3{
  margin:0 0 10px;
  font-size:18px;
}

.detail-desc p{
  margin:0;
  color:#d1d5db;
  word-break:break-word;
}

.rank-list{
  display:grid;
  gap:18px;
}

.rank-item{
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
  gap:18px;
  padding:18px;
}

.rank-thumb{
  border-radius:16px;
  overflow:hidden;
  aspect-ratio:3 / 4.2;
  background:#0f172a;
}

.rank-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.rank-body{
  min-width:0;
}

.rank-body h2{
  margin:0 0 10px;
  font-size:24px;
  line-height:1.35;
}

.rank-body p{
  margin:0 0 14px;
  color:var(--text-soft);
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.rank-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.rank-meta span{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
  background:rgba(255,255,255,.05);
  border:1px solid var(--line);
  font-size:13px;
}

@media (max-width: 1199px){
  .vod-grid{
    grid-template-columns:repeat(4, minmax(0,1fr));
  }

  .player-main{
    grid-template-columns:1fr;
  }

  .detail-card{
    display:grid;
    grid-template-columns:220px minmax(0,1fr);
    gap:16px;
    align-items:start;
  }

  .detail-poster{
    margin-bottom:0;
  }
}

@media (max-width: 991px){
  .header-top{
    flex-direction:column;
    align-items:stretch;
  }

  .search-form{
    max-width:none;
  }

  .hero-slide{
    aspect-ratio: 16 / 10;
  }

  .hero-content{
    left:20px;
    right:20px;
    bottom:20px;
  }

  .hero-content b{
    font-size:24px;
  }

  .vod-grid{
    grid-template-columns:repeat(3, minmax(0,1fr));
  }

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

  .rank-item{
    grid-template-columns:180px minmax(0,1fr);
  }
}

@media (max-width: 767px){
  .site-header{
    padding-top:14px;
  }

  .brand-text strong{
    font-size:20px;
  }

  .brand-text em{
    font-size:12px;
  }

  .search-input-wrap{
    gap:8px;
  }

  .search-btn{
    padding:0 16px;
  }

  .page-banner-inner{
    border-radius:18px;
    padding:22px 18px;
  }

  .page-banner h1{
    font-size:24px;
  }

  .section-head h2{
    font-size:20px;
  }

  .hero-slider{
    border-radius:18px;
  }

  .hero-slide{
    aspect-ratio: 16 / 11;
  }

  .hero-content b{
    font-size:20px;
  }

  .hero-content em{
    font-size:13px;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }

  .hero-arrow{
    width:36px;
    height:36px;
    font-size:22px;
  }

  .vod-grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:14px;
  }

  .vod-card{
    border-radius:16px;
  }

  .vod-body{
    padding:12px;
  }

  .vod-body h3{
    font-size:15px;
  }

  .vod-body p{
    min-height:38px;
  }

  .detail-card{
    grid-template-columns:1fr;
  }

  .detail-content h2{
    font-size:22px;
  }

  .player-header{
    padding:16px 16px 12px;
  }

  .player-header h1{
    font-size:22px;
  }

  .player-stage,
  .play-source-box{
    padding-left:16px;
    padding-right:16px;
  }

  .episode-list{
    grid-template-columns:repeat(3, minmax(0,1fr));
  }

  .rank-item{
    grid-template-columns:1fr;
    padding:14px;
  }

  .rank-thumb{
    max-width:220px;
  }

  .friend-links{
    gap:10px;
  }
}

@media (max-width: 480px){
  .container{
    padding:0 12px;
  }

  .nav-link{
    min-width:68px;
    padding:0 14px;
  }

  .hero-slide{
    aspect-ratio: 16 / 12;
  }

  .hero-content{
    left:14px;
    right:14px;
    bottom:14px;
  }

  .hero-content b{
    font-size:18px;
    margin-bottom:6px;
  }

  .vod-grid{
    grid-template-columns:1fr;
  }

  .vod-thumb{
    aspect-ratio: 3 / 1.9;
  }

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

  .pagination{
    gap:8px;
  }

  .page-link{
    min-width:38px;
    height:38px;
    padding:0 12px;
  }
}