:root{
  --bg:#0b0d11;
  --bg-soft:#141821;
  --panel:#161b24;
  --panel-2:#1b2230;
  --line:rgba(255,255,255,.08);
  --text:#f5f7fb;
  --text-soft:rgba(245,247,251,.72);
  --text-muted:rgba(245,247,251,.5);
  --primary:#ff4d6d;
  --primary-hover:#ff6c86;
  --accent:#7c5cff;
  --shadow:0 12px 30px rgba(0,0,0,.28);
  --radius:16px;
  --radius-sm:12px;
  --container:1320px;
}

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

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

html,
body{
  margin:0;
  padding:0;
  min-height:100%;
}

body{
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;
  background:
    radial-gradient(circle at top left, rgba(124,92,255,.14), transparent 28%),
    radial-gradient(circle at top right, rgba(255,77,109,.08), transparent 24%),
    var(--bg);
  color:var(--text);
  line-height:1.6;
  overflow-x:hidden;
}

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

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

button,
input{
  font:inherit;
}

button{
  cursor:pointer;
}

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

.site-main{
  flex:1;
}

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

.site-header{
  position:relative;
  z-index:20;
  padding:14px 0 10px;
  background:rgba(11,13,17,.92);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);
}

.topbar{
  display:grid;
  grid-template-columns:auto auto;
  align-items:center;
  gap:12px;
}

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

.site-brand__logo{
  width:34px;
  height:34px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,var(--primary),var(--accent));
  box-shadow:var(--shadow);
  flex:none;
}

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

.nav-toggle{
  justify-self:end;
  width:42px;
  height:42px;
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--panel);
  color:var(--text);
}

.nav-toggle span{
  width:18px;
  height:2px;
  border-radius:999px;
  background:currentColor;
}

.search-form{
  grid-column:1 / -1;
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

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

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

.search-input:focus{
  border-color:rgba(255,77,109,.45);
  box-shadow:0 0 0 3px rgba(255,77,109,.12);
}

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

.site-nav{
  display:none;
  padding-top:12px;
}

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

.nav-scroll{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.nav-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:0 14px;
  border-radius:999px;
  background:var(--panel);
  color:var(--text-soft);
  border:1px solid transparent;
  transition:.2s ease;
  max-width:100%;
}

.nav-link:hover{
  color:#fff;
  border-color:rgba(255,255,255,.08);
  background:var(--panel-2);
}

.friend-bar{
  margin-top:12px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(255,255,255,.02);
}

.friend-bar__title{
  font-size:13px;
  font-weight:700;
  color:var(--text-soft);
  margin-bottom:8px;
}

.friend-bar__list{
  display:flex;
  flex-wrap:wrap;
  gap:10px 12px;
}

.friend-bar__list a{
  color:var(--text-muted);
  font-size:13px;
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.friend-bar__list a:hover{
  color:var(--primary-hover);
}

.page-section{
  padding:18px 0;
}

.hero-card{
  padding:20px;
  border-radius:20px;
  background:
    linear-gradient(135deg, rgba(255,77,109,.18), rgba(124,92,255,.12)),
    var(--panel);
  border:1px solid rgba(255,255,255,.08);
  box-shadow:var(--shadow);
}

.hero-card__sub{
  margin:0 0 8px;
  color:#ffd1d9;
  font-size:13px;
  letter-spacing:1px;
}

.hero-card__title{
  margin:0 0 8px;
  font-size:28px;
  line-height:1.2;
}

.hero-card__desc{
  margin:0;
  color:var(--text-soft);
  font-size:14px;
}

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

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

.page-subtitle{
  margin:6px 0 0;
  color:var(--text-soft);
  font-size:14px;
}

.highlight-text{
  color:#fff;
  font-weight:700;
}

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

.vod-card{
  min-width:0;
  border-radius:16px;
  overflow:hidden;
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.02));
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  transition:transform .22s ease, border-color .22s ease;
}

.vod-card:hover{
  transform:translateY(-4px);
  border-color:rgba(255,77,109,.3);
}

.vod-card__thumb{
  position:relative;
  display:block;
  aspect-ratio:3 / 2;
  background:#0f131b;
  overflow:hidden;
}

.vod-card__thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

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

.vod-card__body{
  padding:12px;
}

.vod-card__title{
  margin:0 0 8px;
  font-size:14px;
  line-height:1.45;
}

.vod-card__title a{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  word-break:break-word;
}

.vod-card__meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px 12px;
  font-size:12px;
  color:var(--text-muted);
}

.vod-card__meta span,
.vod-card__meta a{
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

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

.page-link{
  min-width:40px;
  height:40px;
  padding:0 12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  background:var(--panel);
  border:1px solid var(--line);
  color:var(--text-soft);
}

.page-link:hover{
  color:#fff;
  border-color:rgba(255,77,109,.3);
}

.play-page .container{
  width:min(100% - 24px, 1440px);
}

.play-layout{
  display:block;
}

.player-panel{
  min-width:0;
}

.player-box{
  position:relative;
  background:#000;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 18px 40px rgba(0,0,0,.35);
}

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

.play-info{
  margin-top:16px;
  padding:16px;
  border-radius:16px;
  background:var(--panel);
  border:1px solid var(--line);
}

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

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

.play-actions{
  margin-top:14px;
}

.play-action-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:42px;
  padding:0 16px;
  border-radius:12px;
  background:linear-gradient(135deg,var(--primary),#ff6f61);
  color:#fff;
  font-weight:700;
}

.episode-panel,
.play-detail{
  margin-top:16px;
  padding:16px;
  border-radius:16px;
  background:var(--panel);
  border:1px solid var(--line);
}

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

.episode-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:0 14px;
  border-radius:12px;
  background:var(--panel-2);
  color:var(--text-soft);
  border:1px solid transparent;
}

.episode-link:hover{
  color:#fff;
  border-color:rgba(255,77,109,.3);
}

.play-detail{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
}

.play-detail__poster{
  width:100%;
  max-width:280px;
}

.play-detail__poster img{
  width:100%;
  aspect-ratio:3 / 2;
  object-fit:cover;
  border-radius:14px;
}

.play-detail__content{
  min-width:0;
}

.content-box{
  color:var(--text-soft);
  font-size:14px;
  line-height:1.8;
  word-break:break-word;
}

.keyword-panel,
.hot-panel{
  margin-top:4px;
}

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

.keyword-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:0 14px;
  border-radius:999px;
  background:var(--panel);
  color:var(--text-soft);
  border:1px solid var(--line);
}

.keyword-link:hover{
  color:#fff;
  border-color:rgba(255,77,109,.3);
}

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

.rank-card{
  display:grid;
  grid-template-columns:48px 120px 1fr;
  gap:12px;
  align-items:center;
  min-width:0;
  padding:12px;
  border-radius:16px;
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.02));
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}

.rank-card__index{
  width:48px;
  height:48px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  font-weight:800;
  color:#fff;
  background:linear-gradient(135deg,var(--primary),var(--accent));
}

.rank-card__thumb{
  display:block;
  width:100%;
  aspect-ratio:3 / 2;
  border-radius:12px;
  overflow:hidden;
  background:#0f131b;
}

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

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

.rank-card__title{
  margin:0 0 8px;
  font-size:15px;
  line-height:1.45;
}

.rank-card__title a{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.rank-card__meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px 12px;
  color:var(--text-muted);
  font-size:12px;
}

.site-footer{
  margin-top:24px;
  border-top:1px solid var(--line);
  background:rgba(255,255,255,.02);
}

.footer-inner{
  padding:24px 0 32px;
  text-align:center;
}

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

.footer-desc{
  margin:0;
  color:var(--text-muted);
  font-size:13px;
}

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

  .topbar{
    grid-template-columns:auto 1fr auto;
  }

  .search-form{
    grid-column:auto;
    max-width:520px;
    justify-self:end;
    width:100%;
  }

  .nav-toggle{
    display:none;
  }

  .site-nav{
    display:block !important;
  }

  .nav-scroll{
    flex-wrap:nowrap;
    overflow-x:auto;
    padding-bottom:2px;
    scrollbar-width:none;
  }

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

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

  .hero-card{
    padding:28px;
  }

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

  .section-title,
  .page-title{
    font-size:24px;
  }

  .play-detail{
    grid-template-columns:280px minmax(0, 1fr);
    align-items:start;
  }

  .rank-card{
    grid-template-columns:56px 150px 1fr;
    gap:16px;
  }
}

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

  .site-header{
    padding:16px 0 12px;
  }

  .page-section{
    padding:22px 0;
  }

  .vod-card__title{
    font-size:15px;
  }

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

  .rank-card{
    grid-template-columns:60px 180px 1fr;
  }
}

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