/* --- 用于生成 bingeinfo.com landing page --- */
/* --- 1. 核心视觉基调与暗黑高奢美学 --- */
:root {
  --bg: #08111f;
  --panel: rgba(255, 255, 255, 0.09);
  --panel-border: rgba(255, 255, 255, 0.18);
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-sub: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #a78bfa;
  --accent-3: #22c55e;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --top1-neon: #ff0055;
  --top1-bg: linear-gradient(90deg, rgba(255, 0, 85, 0.15) 0%, rgba(18, 22, 31, 0.4) 100%);
  --bg-color: rgb(11, 12, 16);
  --card-bg: rgba(18, 22, 31, 0.75);
  --font-stack: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-title: Montserrat, sans-serif;
  --font-main: Inter, sans-serif;
  --font-sub: Lato, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

a, a:hover {
  text-decoration: none;
  color: inherit;
}

ul, li {
  list-style: none;
}

html, body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-stack);
  color: var(--text-main);
  background: radial-gradient(circle at 12% 18%, rgba(56, 189, 248, 0.36), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(167, 139, 250, 0.32), transparent 31%),
    radial-gradient(circle at 72% 84%, rgba(34, 197, 94, 0.18), transparent 30%),
    linear-gradient(135deg, #07101d 0%, #111827 52%, #0f172a 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 78%);
}

.wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

/* --- 1. Header --- */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  transition: transform 0.3s ease-in-out;
  will-change: auto;
  height: 120px;
}

.nav-header.hide {
  transform: translateY(-150px);
}

.nav-header.active {
  background-color: rgba(65,90,135,0.3);
  backdrop-filter: blur(25px); 
  /* background-color: rgba(255, 255, 255, 0); */
  opacity: 1; 
  height:5rem;
}

/* --- 1.1 Header Brand block--- */
.nav-header .brand-block {
  justify-self: start;
  margin-left: 10%;
}

.brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  /* 品牌标题：在小屏幕上最小1.8rem，理想为3vw，最大不超过1.8rem */
  font-size: clamp(1rem, 3vw, 1.3rem);
}

.nav-header .logo-img {
  width: 1.5rem;
}

.logo-grident-text {
  background: linear-gradient(90deg, #FF006E 0%, #FF8200 100%);
  background-size: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slogon {
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.05rem;
  /* 口号：最小0.75rem，理想为1.5vw，最大1rem */
  font-size: clamp(0.75rem, 1.1vw, 1rem);
  margin-top: 5px;
}

.header-menu {
  justify-self: start;
}

.header-menu span {
  display: inline-block;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 2px;
  /* 导航文字：最小0.75rem，理想为1.2vw，最大1.25rem */
  font-size: clamp(0.75rem, 1.2vw, 1rem);
}

.header-menu span + span {
  margin-left: 3rem;
}

.header-menu a {
  display: inline-block;
  text-decoration: none;
  color: var(--text-main);
}

.header-menu a:hover {
  text-decoration: none;
  color: var(--accent);
}

/* --- MAIN BLOCK --- */
.main-feed {
  margin-top: 120px;
  display: grid;
  grid-template-columns: 1fr;
  padding:0 1rem;
}

.view-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.day-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.date-badge {
  color: var(--accent)
}

.card {
  position: relative;
  /* 卡片内边距：最小1rem，理想为3vw，最大3rem */
  padding: clamp(1rem, 3vw, 3rem);
  border: 1px solid var(--panel-border);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.055));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  overflow: hidden;
  /* max-width:840px; */
}

.card::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  max-width: 100vw; 
  max-height: 100vw; 
  right: -180px;
  top: -190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.34), transparent 65%);
  filter: blur(2px);
  pointer-events: none;
}

.card-header {
  text-align: center;
  margin-bottom: 28px;
}

.card-header h1 {
  font-family: var(--font-title);
  /* 卡片标题：最小1.5rem，理想为3.5vw，最大2.5rem */
  font-size: clamp(1.3rem, 3vw, 1.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  background: linear-gradient(90deg, #ffffff, #bae6fd 42%, #ddd6fe 78%, #bbf7d0);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card-header .subtitle {
  font-family: var(--font-mono);
  font-size: clamp(1.125rem, 2vm, 1.5rem);
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.5rem;
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* --- 4. 榜单行：Grid布局与入场动画 --- */
.rank-item {
  background: rgba(2, 6, 23, 0.34);
  border-radius: 0.8rem;
  /* 列表项内边距：最小0.5rem，理想为1.5vw，最大1rem */
  padding: clamp(0.5rem, 1vw, 1rem);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: transform 0.2s ease;
}

.movie-item {
    display: grid;
    /* grid-template-columns: 60px 60px 1fr 90px;             */
    grid-template-columns: 60px 1fr 90px;
    align-items: center;
    gap:1rem;
}
.tv-item {
    display: grid;
    grid-template-columns: 60px 1fr 90px 90px;    
    /* grid-template-columns: 60px 60px 1fr 90px 90px;         */
    align-items: center;
    gap:1rem;
}

@keyframes slideIn {
    to { opacity: 1; transform: translateY(0); }
}

.rank-item:hover{
    transform: translateY(-3px);       
}


/* --- 5.1 序号数字 --- */
.rank-number {
  font-family: var(--font-title);
  /* 排名数字：最小1.5rem，理想为3vw，最大2.25rem */
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  font-weight: 800;
  font-style: italic;
  color: var(--text-muted);
  text-align: center;
}

/* --- 5.2 海报 --- */
.movie-poster-container {
  display:none;
  /* 海报容器：最小40px，理想为8vw，最大60px */
  width: clamp(40px, 8vw, 60px);
  /* 高度按比例缩放 */
  height: calc(clamp(40px, 8vw, 60px) * 1.33);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 修复：将动画绑定在背景图上，并采用更漫长的线性呼吸感 */
.movie-poster {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  /* 12秒无限平滑来回缩放，确保定格后画面在动 */
  animation: posterKenBurns 6s linear infinite alternate;
}

@keyframes posterKenBurns {
  0% { transform: scale(1.02);  }
  100% { transform: scale(1.18);  }
}

/* 6. 文字排版与 Top 1 标题流光 --- */
.movie-info {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: space-between;
}

.title-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.movie-title {
  /* 电影标题：最小1rem，理想为4vw，最大1.875rem */
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  max-width: 450px;
  overflow-wrap: break-word;
}

.season-no {
  font-family: var(--font-mono);
  /* 剧集号：最小0.875rem，理想为2.5vw，最大1.75rem */
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  justify-self: end;
}

.movie-meta {
  /* 电影元信息：最小0.75rem，理想为1.5vw，最大1.125rem */
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  color: var(--text-muted);
}

/* Top 1 标题尊享高级流光特效 */
.top-1>div {
  background: linear-gradient(135deg, #fff 0%, #ff0055 50%, #fff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleShimmer 4s linear infinite;
}

@keyframes titleShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* --- 7. 底部rating --- */

.imdb-rating-link {
  text-decoration: none;
}
.rating {
  font-family: var(--font-mono);
  display: flex;
  flex-direction: column;
  /* 评分：最小0.875rem，理想为2vw，最大1.25rem */
  font-size: clamp(0.875rem, 1vw, 1rem);
  text-align: center;
}



/* 4. 底部微光加载区 */
.loading-trigger {
  display: block;
  text-align: center;
  padding: 50px 0;
  color: var(--soft);
  font-size: 14px;
  font-weight: 500;
}

/* --- 没有数据符合要求 --- */
.no-data {
  font-family: var(--font-title);
  /* 无数据提示：最小1.5rem，理想为5vw，最大2.375rem */
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 800;
  font-style: italic;
  color: var(--text-main);
  text-align: center;
  max-width: 100%;
  padding: 200px 20px;
  box-sizing: border-box;
}

/* 字体动画效果 */
.no-data {
  background: linear-gradient(135deg, #fff 0%, #ff0055 50%, #fff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleShimmer 4s linear infinite;
}

/* -- foot nav -- */
.seo-fallback-pagination {
  opacity: 1;
  height: auto;
  overflow: hidden;
  justify-self: center;
}

.seo-fallback-pagination a {
  display: inline-block;
  text-decoration: none;
  margin: 1rem;
  color: var(--text-sub)
}

.seo-fallback-pagination a:hover {
  color: var(--accent)
}

/* ---- 5. Footer ----- */
.footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  background-color: rgba(0, 0, 0, 0.15);
  padding: 6rem 2rem 3rem 2rem;
}

.footer .brand-block {
  display: flex;
  place-items: center;
}
.footer .brand {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
}
.footer .logo-img {
  width: 3rem;
}

.lead-info {
  display: flex;
  justify-content: center;
}
.privacy-info {
  font-size: 0.7rem; 
  color: var(--text-muted); 
  text-decoration: underline;
  justify-self: center;
}

/* ================================================================= */
/*  (针对 960px 以下屏幕) */
/* ================================================================= */
@media (max-width: 960px) {
  /* 1. 彻底斩断 Header 撑爆容器的问题 */
  .nav-header {
    height: auto;
    padding: 1rem 0.75rem;
    grid-template-columns: 1fr; /* 手机端变成上下两层结构 */
    gap: 0.75rem;
    justify-content: center;
    text-align: center;
  }  
  .nav-header .brand-block {
    margin-left: 0; /* 取消左边距，居中对齐 */
    justify-self: center;
  }  
  .header-menu {
    justify-self: center; /* 导航菜单也居中 */
  }  
  .header-menu span + span {
    margin-left:0.5rem;
    font-size: 0.8rem;
  }

  .main-feed {
    width: 100%;
    padding: 0 1rem; /* 留出微小边距即可 */
  }
}

/* ================================================================= */
/* 📱 针对手机极窄屏幕的降维打击修复 (针对 480px 以下屏幕) */
/* ================================================================= */
@media (max-width: 500px) {
  
  /* 2. 主体容器安全限宽 */
  .main-feed {
    width: 100%;
    padding: 0 8px; /* 留出微小边距即可 */
  }

  .card {
    border-radius: 20px; /* 手机端圆角稍微收敛，更精致 */
    padding: 1rem 0.5rem; /* 大幅缩减卡片内边距，把空间留给内容 */
  }

  /* 3. 核心手术：重新编织电影/电视剧的 Grid 轨道宽度 */
  .movie-item {
    /* grid-template-columns: 32px 45px 1fr 55px; */
    grid-template-columns: 32px 1fr 55px;
    gap: 0.5rem; /* 间距缩小为 8px */
    padding: 0.5rem;
  }
  .movie-item .movie-info {
    padding-left: 0.1rem;
  }

  .tv-item {
    /* 由于包含剧集号，手机端 5 列太挤，我们直接引入两行复合排版 */
    /* display: grid; */
    /* 改为 4 列：序号(32px) 海报(45px) 标题区域(1fr) 评分(55px) */
    /* grid-template-columns: 32px 45px 1fr 55px; */
    grid-template-columns: 32px 1fr 55px 55px;
    /* grid-template-rows: auto auto; */ 
    gap: 0.5rem;
    padding: 0.5rem;
  }

  /* 让剧集号 (例如 S01E07) 物理沉降到第二行，释放第一行的横向空间！ */
  /* 强制定位在标题正下方 */
  /* 改为左对齐，与标题错落有致 */
  /* .tv-item .season-no {
    grid-column: 3 / 4; 
    grid-row: 2;
    justify-self: start; 
    font-size: 0.85rem;
    margin-top: -0.25rem;
    letter-spacing: 0.05rem;
    padding-left:0.1rem;
  }
  
  .tv-item .movie-info {
    grid-column: 3 / 4;
    grid-row: 1;
    padding-left:0.1rem;
    
  }
  .tv-item .rank-number, .tv-item .movie-poster-container, .tv-item .rating-container {
    grid-row:1/3;
    align-self: center;    
  } */

  /* 4. 细节字体微调，防止大英文单词撑开行高 */
  .movie-title {
    font-size: 0.95rem; /* 略微缩小字体 */
    max-width: 100%;
    word-break: break-word; /* 强制长单词断行 */
  }
  .season-no {
    font-size: 0.9rem;
  }  
  .rating-score {
    font-size: 0.85rem;
  }  
  .rating-source {
    font-size: 0.65rem;
  }
}