:root{
  --bg:#0f1115;
  --bg-soft:#171b22;
  --bg-card:#1b2029;
  --line:rgba(255,255,255,.08);
  --line-strong:rgba(255,255,255,.14);
  --text:#f4f7fb;
  --text-soft:#a7afbb;
  --primary:#ff3d70;
  --primary-soft:rgba(255,61,112,.14);
  --shadow:0 12px 30px rgba(0,0,0,.28);
  --radius:16px;
  --radius-sm:12px;
  --container:1280px;
}

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

html{
  overflow-x:hidden;
}

body{
  margin:0;
  min-width:320px;
  background:var(--bg);
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  line-height:1.5;
  overflow-x:hidden;
}

img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

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

button,
input{
  font:inherit;
}

button{
  cursor:pointer;
}

input{
  min-width:0;
}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  margin:-1px;
  padding:0;
  overflow:hidden;
  clip:rect(0,0,0,0);
  border:0;
}

.container{
  width:min(100% - 24px, var(--container));
  margin:0 auto;
}

.site-shell{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

.site-header{
  position:relative;
  z-index:10;
  background:linear-gradient(180deg, rgba(23,27,34,.98), rgba(15,17,21,.96));
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(10px);
}

.header-top{
  display:grid;
  grid-template-columns:1fr auto;
  gap:14px;
  align-items:center;
  padding:16px 0 14px;
}

.site-brand{
  min-width:0;
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  font-size:20px;
}

.site-brand-mark{
  width:34px;
  height:34px;
  border-radius:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, var(--primary), #ff8a5c);
  color:#fff;
  box-shadow:var(--shadow);
  flex:0 0 auto;
}

.site-brand-text{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.nav-toggle{
  width:42px;
  height:42px;
  padding:0;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--bg-card);
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
}

.nav-toggle span{
  display:block;
  width:18px;
  height:2px;
  border-radius:999px;
  background:#fff;
}

.search-form{
  grid-column:1 / -1;
  display:grid;
  grid-template-columns:1fr 84px;
  gap:10px;
}

.search-input{
  width:100%;
  height:44px;
  padding:0 14px;
  border-radius:12px;
  border:1px solid var(--line);
  background:var(--bg-card);
  color:var(--text);
  outline:none;
}

.search-input::placeholder{
  color:var(--text-soft);
}

.search-input:focus{
  border-color:rgba(255,61,112,.55);
  box-shadow:0 0 0 3px rgba(255,61,112,.12);
}

.search-button{
  height:44px;
  border:0;
  border-radius:12px;
  color:#fff;
  background:linear-gradient(135deg, var(--primary), #ff7b63);
  font-weight:700;
}

.main-nav{
  display:none;
  padding:0 0 12px;
}

.main-nav.is-open{
  display:block;
}

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

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

.nav-link{
  flex:0 0 auto;
  padding:10px 14px;
  border-radius:999px;
  background:var(--bg-card);
  border:1px solid var(--line);
  color:var(--text-soft);
  white-space:nowrap;
  transition:.2s ease;
}

.nav-link:hover{
  color:#fff;
  border-color:var(--line-strong);
  background:#202633;
}

.friend-links{
  padding:0 0 16px;
}

.friend-links-title{
  margin-bottom:10px;
  color:var(--text-soft);
  font-size:13px;
}

.friend-links-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.friend-links-list a{
  max-width:100%;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--text-soft);
  font-size:13px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.page-main{
  flex:1 0 auto;
  padding:18px 0 36px;
}

.hero-strip{
  margin-bottom:24px;
}

.hero-card{
  background:
    radial-gradient(circle at top right, rgba(255,61,112,.16), transparent 36%),
    linear-gradient(180deg, #1a1f29, #151921);
  border:1px solid var(--line);
  border-radius:20px;
  padding:22px 18px;
  box-shadow:var(--shadow);
}

.hero-badge{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 12px;
  border-radius:999px;
  background:var(--primary-soft);
  color:#ffd4df;
  font-size:12px;
  font-weight:700;
}

.hero-title{
  margin:14px 0 10px;
  font-size:28px;
  line-height:1.2;
}

.hero-desc{
  margin:0;
  color:var(--text-soft);
  font-size:14px;
  line-height:1.8;
}

.page-heading{
  margin-bottom:18px;
  padding:2px 0 6px;
}

.page-title{
  margin:0;
  font-size:24px;
  line-height:1.25;
}

.page-subtitle{
  margin:10px 0 0;
  color:var(--text-soft);
}

.keyword-mark{
  color:#fff;
}

.content-section{
  margin-bottom:26px;
}

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

.section-title{
  margin:0;
  font-size:20px;
  line-height:1.3;
}

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

.vod-card{
  min-width:0;
  overflow:hidden;
  background:var(--bg-card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.vod-card:hover{
  transform:translateY(-3px);
  border-color:var(--line-strong);
}

.vod-cover{
  position:relative;
  display:block;
  aspect-ratio:3 / 2;
  overflow:hidden;
  background:#12161c;
}

.vod-cover img{
  transition:transform .35s ease;
}

.vod-card:hover .vod-cover img,
.rank-item:hover .rank-cover img{
  transform:scale(1.04);
}

.vod-duration{
  position:absolute;
  right:8px;
  bottom:8px;
  max-width:calc(100% - 16px);
  padding:4px 8px;
  border-radius:999px;
  background:rgba(0,0,0,.72);
  color:#fff;
  font-size:12px;
  line-height:1;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.vod-info{
  padding:12px;
}

.vod-title,
.rank-title{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  min-height:2.9em;
  font-size:15px;
  font-weight:700;
  line-height:1.45;
}

.vod-meta{
  margin-top:8px;
  display:flex;
  flex-wrap:wrap;
  gap:8px 12px;
  color:var(--text-soft);
  font-size:12px;
}

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

.page-item{
  min-width:42px;
  height:42px;
  padding:0 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:var(--bg-card);
  border:1px solid var(--line);
  color:var(--text-soft);
  transition:.2s ease;
}

.page-item:hover{
  color:#fff;
  border-color:var(--line-strong);
  background:#202633;
}

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

.player-panel{
  display:grid;
  gap:16px;
}

.player-box{
  overflow:hidden;
  background:#000;
  border-radius:20px;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}

.video-player{
  width:100%;
  aspect-ratio:16 / 9;
  background:#000;
  display:block;
}

.play-meta{
  display:grid;
  grid-template-columns:88px 1fr;
  gap:14px;
  padding:16px;
  border-radius:20px;
  border:1px solid var(--line);
  background:var(--bg-card);
  box-shadow:var(--shadow);
}

.play-cover{
  width:88px;
  aspect-ratio:3 / 2;
  overflow:hidden;
  border-radius:14px;
  background:#12161c;
}

.play-title{
  margin:0 0 10px;
  font-size:22px;
  line-height:1.3;
}

.play-submeta{
  display:flex;
  flex-wrap:wrap;
  gap:8px 12px;
  color:var(--text-soft);
  font-size:13px;
}

.play-desc{
  margin-top:12px;
  color:var(--text-soft);
  font-size:14px;
  line-height:1.8;
  word-break:break-word;
}

.episode-section{
  padding:16px;
  border-radius:20px;
  border:1px solid var(--line);
  background:var(--bg-card);
  box-shadow:var(--shadow);
}

.episode-list{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.episode-item{
  min-width:78px;
  max-width:100%;
  padding:10px 14px;
  border-radius:12px;
  background:#222938;
  border:1px solid var(--line);
  color:#fff;
  font-size:14px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

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

.rank-item{
  display:grid;
  grid-template-columns:120px 1fr;
  gap:14px;
  align-items:center;
  padding:12px;
  border-radius:18px;
  border:1px solid var(--line);
  background:var(--bg-card);
  box-shadow:var(--shadow);
}

.rank-cover{
  position:relative;
  display:block;
  aspect-ratio:3 / 2;
  overflow:hidden;
  border-radius:14px;
  background:#12161c;
}

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

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

.keyword-item{
  max-width:100%;
  padding:10px 14px;
  border-radius:999px;
  background:var(--bg-card);
  border:1px solid var(--line);
  color:var(--text-soft);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  transition:.2s ease;
}

.keyword-item:hover{
  color:#fff;
  border-color:rgba(255,61,112,.35);
  background:rgba(255,61,112,.12);
}

.site-footer{
  border-top:1px solid var(--line);
  background:#11151b;
}

.footer-inner{
  padding:20px 0 28px;
  display:grid;
  gap:8px;
}

.footer-brand{
  font-weight:800;
  font-size:16px;
}

.footer-copy{
  color:var(--text-soft);
  font-size:13px;
  line-height:1.7;
  word-break:break-word;
}

@media (min-width: 768px){
  .container{
    width:min(100% - 40px, var(--container));
  }

  .header-top{
    grid-template-columns:auto 1fr auto;
    gap:16px;
    padding:18px 0 16px;
  }

  .nav-toggle{
    display:none;
  }

  .search-form{
    grid-column:auto;
    max-width:420px;
    width:100%;
  }

  .main-nav{
    display:block;
    padding:0 0 14px;
  }

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

  .hero-card{
    padding:28px 24px;
  }

  .hero-title{
    font-size:34px;
  }

  .play-meta{
    grid-template-columns:180px 1fr;
    padding:18px;
  }

  .play-cover{
    width:180px;
  }

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

@media (min-width: 1024px){
  .vod-grid{
    grid-template-columns:repeat(5, minmax(0, 1fr));
  }

  .page-main{
    padding:24px 0 42px;
  }

  .player-panel{
    gap:18px;
  }

  .play-title{
    font-size:26px;
  }

  .section-title{
    font-size:22px;
  }
}