/* ============================================================
   0LAB · main.css
   全站共享样式 — 视觉基准见 design-system.html
   ============================================================ */

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* 色彩 */
  --bg:            #141414;               /* 背景主色 */
  --bg-2:          #181818;               /* 背景次色：卡片/浮层 */
  --bg-3:          #2A2A2A;               /* 背景三级：hover/分隔线 */
  --red:           #E50914;               /* 品牌红 */
  --red-hover:     #F40612;               /* 品牌红 hover */
  --text:          #FFFFFF;
  --text-2:        #B3B3B3;
  --text-3:        #808080;
  --row-title:     #E5E5E5;
  --btn-info-bg:   rgba(109,109,110,.7);
  --btn-info-bg-h: rgba(109,109,110,.4);
  --match-green:   #46D369;               /* 匹配度绿 */

  /* 间距 */
  --page-pad-x: 4vw;
  --row-gap:    3vw;
  --card-gap:   8px;
  --btn-gap:    12px;

  /* 尺寸 */
  --nav-h: 68px;
  --radius: 4px;
}

/* ---------- BASE ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }
::placeholder { color: var(--text-3); }

/* 页面主内容区：避让固定 Nav */
.page { padding-top: var(--nav-h); min-height: 100vh; }
.container { padding: 0 var(--page-pad-x); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-play {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: #000;
  font-size: 16px; font-weight: 600;
  padding: 12px 24px; border-radius: var(--radius);
  transition: background .2s ease;
}
.btn-play:hover { background: rgba(255,255,255,.75); }
.btn-play svg { width: 20px; height: 20px; }

.btn-info {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--btn-info-bg); color: #fff;
  font-size: 16px; font-weight: 600;
  padding: 12px 24px; border-radius: var(--radius);
  border: .5px solid rgba(255,255,255,.2);
  transition: background .2s ease;
}
.btn-info:hover { background: var(--btn-info-bg-h); }
.btn-info svg { width: 20px; height: 20px; }

.btn-red {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--red); color: #fff;
  font-size: 14px; font-weight: 500;
  padding: 8px 16px; border-radius: var(--radius);
  transition: background .2s ease;
}
.btn-red:hover { background: var(--red-hover); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--text-2);
  font-size: 14px; padding: 8px 16px; border-radius: var(--radius);
  border: 1px solid var(--bg-3);
  transition: all .2s;
}
.btn-ghost:hover { color: #fff; border-color: var(--text-3); }

.btn-icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.5); color: #fff;
  transition: border-color .2s ease;
}
.btn-icon:hover { border-color: #fff; }
.btn-icon.sm { width: 32px; height: 32px; }
.btn-icon svg { width: 18px; height: 18px; }
.btn-icon.sm svg { width: 15px; height: 15px; }

.btn-play-sm {
  width: 32px; height: 32px; border-radius: 50%;
  background: #fff; color: #000;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.btn-play-sm:hover { background: rgba(255,255,255,.75); }
.btn-play-sm svg { width: 15px; height: 15px; margin-left: 1px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 var(--page-pad-x);
  background: linear-gradient(to bottom, rgba(0,0,0,.7), transparent);
  transition: background .4s ease;
}
.nav.scrolled, .nav.solid { background: var(--bg); }

.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 20px; font-weight: 700; letter-spacing: .08em;
  margin-right: 32px; flex-shrink: 0;
}
.nav-logo .logo-mark {
  width: 26px; height: 26px; border-radius: 3px; background: var(--red);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff;
}
.nav-links { display: flex; gap: 20px; flex: 1; }
.nav-links a { font-size: 14px; color: var(--text); transition: color .2s; white-space: nowrap; }
.nav-links a:hover { color: var(--text-2); }
.nav-links a.active { font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 24px; }
.nav-actions > button, .nav-actions > a { color: var(--text); transition: color .2s; }
.nav-actions > button:hover, .nav-actions > a:hover { color: var(--text-2); }
.nav-actions svg { width: 20px; height: 20px; display: block; }

/* 导航内嵌搜索框 */
.nav-search {
  display: flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,.75); border: 1px solid var(--bg-3);
  padding: 6px 12px; border-radius: var(--radius);
  transition: border-color .2s;
}
.nav-search:focus-within { border-color: var(--text-3); }
.nav-search input {
  background: none; border: none; outline: none; color: var(--text);
  font-size: 13px; width: 160px;
}
.nav-search svg { width: 16px; height: 16px; color: var(--text-2); flex-shrink: 0; }

/* 头像 + 下拉 */
.nav-avatar-wrap { position: relative; }
.nav-avatar {
  width: 32px; height: 32px; border-radius: var(--radius);
  background: linear-gradient(135deg, #E50914, #831010);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; cursor: pointer; color: #fff;
}
.avatar-dropdown {
  position: absolute; top: calc(100% + 12px); right: 0;
  width: 180px; background: rgba(20,20,20,.95);
  border: 1px solid var(--bg-3); border-radius: var(--radius);
  padding: 8px 0; opacity: 0; visibility: hidden;
  transform: translateY(-6px); transition: all .2s ease;
}
.nav-avatar-wrap:hover .avatar-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.avatar-dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px; font-size: 13px; color: var(--text-2);
  transition: all .15s;
}
.avatar-dropdown a:hover { color: #fff; background: var(--bg-3); }
.avatar-dropdown svg { width: 16px; height: 16px; }
.avatar-dropdown .divider { height: 1px; background: var(--bg-3); margin: 6px 0; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 85vh; min-height: 600px;
  display: flex; align-items: flex-end;
  overflow: hidden;
  margin-top: calc(var(--nav-h) * -1);   /* 顶到导航下方 */
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to right, rgba(20,20,20,.85) 0%, rgba(20,20,20,.3) 50%, transparent 100%);
}
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  height: 60%;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.hero-content {
  position: relative; z-index: 2;
  padding: 0 var(--page-pad-x);
  margin-bottom: 15%;
  max-width: 640px;
  animation: fadeInUp .8s ease both .2s;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: .12em;
  color: var(--red); margin-bottom: 12px;
}
.hero-title {
  font-size: 48px; font-weight: 700; line-height: 1.1;
  text-shadow: 2px 2px 8px rgba(0,0,0,.6);
  margin-bottom: 16px;
}
.hero-desc {
  font-size: 16px; color: var(--text-2); line-height: 1.5;
  text-shadow: 1px 1px 4px rgba(0,0,0,.6);
  margin-bottom: 24px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-actions { display: flex; gap: var(--btn-gap); }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   ROW + CARD
   ============================================================ */
.row { margin-bottom: var(--row-gap); position: relative; }
.row-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--page-pad-x); margin-bottom: 12px;
  position: relative; z-index: 30;   /* 防止被 .row-track 的负 margin 覆盖区挡住点击 */
}
.row-title { font-size: 24px; font-weight: 600; line-height: 1.3; color: var(--row-title); }
.row-title .more { font-size: 13px; color: var(--text-3); font-weight: 400; margin-left: 12px; transition: color .2s; }
.row-title .more:hover { color: #fff; }
.row-arrows { display: flex; gap: 8px; }
.row-arrow {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.3); color: var(--text-2);
  transition: all .2s;
}
.row-arrow:hover { border-color: #fff; color: #fff; }
.row-arrow svg { width: 16px; height: 16px; }

.row-track {
  display: flex; gap: var(--card-gap);
  /* 纵向 padding 必须容纳 hover scale(1.4)+信息区（约 ±170px 的一半），
     否则 overflow-x:auto 会把纵向溢出裁掉；负 margin 抵消布局间距 */
  padding: 100px var(--page-pad-x);
  margin: -100px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.row-track::-webkit-scrollbar { display: none; }

/* 视频卡片
   注意：.card-expand 是唯一子元素且为绝对定位，.card 必须用
   aspect-ratio 撑出真实高度，否则高度塌缩为 0 导致整行被裁剪 */
.card { position: relative; flex-shrink: 0; width: 240px; aspect-ratio: 16 / 9; z-index: 1; }
.card:hover { z-index: 40; }

.card-img-wrap {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16 / 9; background: var(--bg-3);
}
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

.card-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 8px 6px;
  background: linear-gradient(to top, rgba(0,0,0,.8), transparent);
  font-size: 12px;
}
.card-caption .dur {
  background: rgba(0,0,0,.7); padding: 1px 5px; border-radius: 3px;
  font-size: 11px; color: var(--text-2);
}

/* 角标徽章 */
.badge {
  position: absolute; top: 6px; left: 6px; z-index: 2;
  font-size: 10px; font-weight: 700; letter-spacing: .05em;
  padding: 2px 6px; border-radius: 3px;
}
.badge.new   { background: var(--red); color: #fff; }
.badge.top10 { background: rgba(0,0,0,.75); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.badge.hd    { top: 6px; left: auto; right: 6px; background: rgba(0,0,0,.7); color: var(--text-2); border: 1px solid rgba(255,255,255,.25); }

/* Hover 展开态 */
.card-expand {
  position: absolute; top: 50%; left: 50%;
  width: 100%; z-index: 20;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center center;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  transition: transform .25s ease, box-shadow .25s ease;
  transition-delay: 0s;
}
.card:hover .card-expand {
  transform: translate(-50%, -50%) scale(1.4);
  transition-delay: .3s;
  box-shadow: 0 16px 40px rgba(0,0,0,.7);
}
.card-detail {
  padding: 0 12px;
  opacity: 0; max-height: 0;
  transition: opacity .2s ease, max-height .25s ease, padding .25s ease;
  transition-delay: 0s;
}
.card:hover .card-detail { opacity: 1; max-height: 150px; padding: 12px; transition-delay: .3s; }
.card-actions { display: flex; gap: 8px; margin-bottom: 10px; }
.card-actions .spacer { flex: 1; }
.card-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.card-meta { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.card-meta .match { color: var(--match-green); font-weight: 600; }
.card-meta .tag {
  border: 1px solid rgba(255,255,255,.3); border-radius: 3px;
  padding: 0 4px; font-size: 10px; color: var(--text-2);
}

/* 继续观看进度条 */
.progress-track {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: rgba(255,255,255,.3); z-index: 3;
}
.progress-fill { height: 100%; background: var(--red); }

/* 卡片淡入 */
.card { animation: cardIn .5s ease both; }
@keyframes cardIn {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   GRID（片库/搜索/片单网格）
   ============================================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px 12px;
  padding: 0 var(--page-pad-x);
}
/* 网格里的卡片不放大展开，只轻微上浮 + 常显信息 */
.grid .card { width: auto; animation: none; }
.grid .card:hover .card-expand { transform: translate(-50%, -50%) scale(1.05); }
.grid .card-detail { display: none; }
.grid .card-expand { position: relative; top: auto; left: auto; transform: none; }
.grid .card:hover .card-expand { transform: scale(1.05); }

/* ============================================================
   FILTER / 筛选
   ============================================================ */
.filter-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 24px var(--page-pad-x);
}
.filter-label { font-size: 13px; color: var(--text-3); margin-right: 4px; }
.chip {
  font-size: 13px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--bg-3); color: var(--text-2);
  transition: all .2s; background: transparent;
}
.chip:hover { border-color: var(--text-3); color: #fff; }
.chip.active { background: var(--red); border-color: var(--red); color: #fff; font-weight: 500; }

.select {
  background: var(--bg-2); color: var(--text);
  border: 1px solid var(--bg-3); border-radius: var(--radius);
  font-size: 13px; padding: 7px 12px; outline: none; cursor: pointer;
}
.select:focus { border-color: var(--text-3); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; padding: 40px var(--page-pad-x) 56px;
}
.page-btn {
  min-width: 36px; height: 36px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius); font-size: 13px;
  color: var(--text-2); border: 1px solid var(--bg-3);
  transition: all .2s;
}
.page-btn:hover { color: #fff; border-color: var(--text-3); }
.page-btn.active { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }
.page-btn:disabled { opacity: .35; cursor: not-allowed; }
.page-btn svg { width: 14px; height: 14px; }

/* ============================================================
   FORM 表单
   ============================================================ */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.input {
  width: 100%; background: #333; color: var(--text);
  border: 1px solid transparent; border-radius: var(--radius);
  font-size: 14px; padding: 12px 14px; outline: none;
  transition: border-color .2s, background .2s;
}
.input:focus { background: #454545; border-color: var(--text-3); }
.input::placeholder { color: var(--text-3); }

/* 大搜索框（搜索页） */
.search-hero { padding: 32px var(--page-pad-x) 8px; }
.search-box {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-2); border: 1px solid var(--bg-3);
  border-radius: var(--radius); padding: 14px 18px;
  transition: border-color .2s;
}
.search-box:focus-within { border-color: var(--text-3); }
.search-box svg { width: 20px; height: 20px; color: var(--text-2); flex-shrink: 0; }
.search-box input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-size: 16px;
}
/* 实时建议下拉 */
.suggest-panel { padding: 8px var(--page-pad-x); }
.suggest-list { display: flex; flex-wrap: wrap; gap: 8px; }
.suggest-item {
  font-size: 13px; color: var(--text-2);
  background: var(--bg-2); border: 1px solid var(--bg-3);
  padding: 6px 12px; border-radius: 999px; transition: all .15s;
}
.suggest-item:hover { color: #fff; border-color: var(--text-3); }
.suggest-item b { color: var(--red); font-weight: 500; }

/* ============================================================
   LOGIN 登录/注册
   ============================================================ */
.auth-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background:
    linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)),
    url('https://picsum.photos/seed/tg-auth/1600/900') center/cover;
  padding: 40px 16px;
}
.auth-card {
  width: 100%; max-width: 420px;
  background: rgba(0,0,0,.78);
  border-radius: var(--radius);
  padding: 48px 56px 40px;
}
.auth-card h1 { font-size: 28px; font-weight: 700; margin-bottom: 24px; }
.auth-tabs { display: flex; gap: 24px; margin-bottom: 24px; }
.auth-tabs button {
  font-size: 15px; color: var(--text-3); padding-bottom: 6px;
  border-bottom: 2px solid transparent; transition: all .2s;
}
.auth-tabs button.active { color: #fff; border-bottom-color: var(--red); font-weight: 600; }
.btn-auth {
  width: 100%; background: var(--red); color: #fff;
  font-size: 15px; font-weight: 600;
  padding: 13px; border-radius: var(--radius);
  margin-top: 12px; transition: background .2s;
}
.btn-auth:hover { background: var(--red-hover); }
.auth-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--text-3); margin-top: 14px;
}
.auth-meta a:hover { text-decoration: underline; }
.auth-tip { font-size: 13px; color: var(--text-3); margin-top: 32px; }
.auth-tip a { color: #fff; }
.auth-tip a:hover { text-decoration: underline; }
.checkbox { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.checkbox input { accent-color: var(--red); width: 15px; height: 15px; cursor: pointer; }

/* ============================================================
   DETAIL 详情页
   ============================================================ */
.detail-hero {
  position: relative; min-height: 70vh;
  display: flex; align-items: flex-end;
  margin-top: calc(var(--nav-h) * -1);
  padding: 160px var(--page-pad-x) 48px;
  overflow: hidden;
}
.detail-hero .hero-bg { filter: brightness(.9); }
.detail-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to right, rgba(20,20,20,.92) 0%, rgba(20,20,20,.45) 55%, transparent 100%);
}
.detail-hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  height: 55%; background: linear-gradient(to bottom, transparent, var(--bg));
}
.detail-main { position: relative; z-index: 2; max-width: 720px; width: 100%; }
.detail-title { font-size: 44px; font-weight: 700; line-height: 1.1; margin-bottom: 14px; text-shadow: 2px 2px 8px rgba(0,0,0,.6); }
.detail-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--text-2); margin-bottom: 16px; }
.detail-meta .match { color: var(--match-green); font-weight: 600; }
.detail-meta .tag { border: 1px solid rgba(255,255,255,.3); border-radius: 3px; padding: 0 5px; font-size: 12px; }
.detail-desc { font-size: 15px; color: var(--text-2); line-height: 1.6; margin-bottom: 24px; max-width: 620px; }
.detail-actions { display: flex; align-items: center; gap: var(--btn-gap); }
.stars { display: inline-flex; align-items: center; gap: 2px; }
.stars svg { width: 15px; height: 15px; color: var(--red); }
.stars .score { font-size: 13px; color: var(--text-2); margin-left: 6px; }

/* 选集列表 */
.ep-section { padding: 8px var(--page-pad-x) 0; max-width: 1100px; }
.ep-section h2 { font-size: 20px; font-weight: 600; margin-bottom: 16px; }
.ep-list { display: flex; flex-direction: column; }
.ep-item {
  display: flex; align-items: center; gap: 16px;
  padding: 12px; border-radius: var(--radius);
  border-bottom: 1px solid var(--bg-3);
  transition: background .2s; cursor: pointer;
}
.ep-item:hover { background: var(--bg-2); }
.ep-item.playing { background: var(--bg-2); }
.ep-item.playing .ep-num { color: var(--red); }
.ep-num { font-size: 20px; color: var(--text-3); width: 28px; text-align: center; flex-shrink: 0; font-weight: 300; }
.ep-thumb { position: relative; width: 150px; flex-shrink: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; background: var(--bg-3); }
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep-thumb .ep-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.35); opacity: 0; transition: opacity .2s;
}
.ep-item:hover .ep-play { opacity: 1; }
.ep-play svg { width: 28px; height: 28px; color: #fff; }
.ep-info { flex: 1; min-width: 0; }
.ep-name { font-size: 14px; font-weight: 500; display: flex; justify-content: space-between; gap: 12px; }
.ep-name .ep-dur { color: var(--text-3); font-weight: 400; flex-shrink: 0; }
.ep-desc { font-size: 13px; color: var(--text-3); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============================================================
   WATCH 播放页
   ============================================================ */
.watch-layout {
  display: grid; grid-template-columns: 1fr 340px; gap: 24px;
  padding: 24px var(--page-pad-x) 0;
  max-width: 1600px; margin: 0 auto;
}
.player {
  position: relative; aspect-ratio: 16/9; background: #000;
  border-radius: var(--radius); overflow: hidden;
}
.player > img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.player-center {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.player-center .big-play {
  width: 84px; height: 84px; border-radius: 50%;
  background: rgba(229,9,20,.9); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s, background .2s;
}
.player-center .big-play:hover { transform: scale(1.08); background: var(--red-hover); }
.player-center .big-play svg { width: 34px; height: 34px; margin-left: 4px; }
.player-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 24px 16px 10px;
  background: linear-gradient(to top, rgba(0,0,0,.85), transparent);
}
.player-progress { height: 4px; border-radius: 2px; background: rgba(255,255,255,.3); cursor: pointer; position: relative; }
.player-progress .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 32%; background: var(--red); border-radius: 2px; }
.player-progress .fill::after {
  content: ''; position: absolute; right: -6px; top: 50%; transform: translateY(-50%);
  width: 12px; height: 12px; border-radius: 50%; background: var(--red);
}
.player-controls { display: flex; align-items: center; gap: 18px; margin-top: 8px; color: #fff; }
.player-controls button { display: flex; opacity: .9; transition: opacity .2s; }
.player-controls button:hover { opacity: 1; }
.player-controls svg { width: 20px; height: 20px; }
.player-controls .time { font-size: 12px; color: var(--text-2); }
.player-controls .spacer { flex: 1; }
.watch-title-row { padding: 16px 0 0; }
.watch-title { font-size: 22px; font-weight: 700; }
.watch-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-3); margin-top: 6px; flex-wrap: wrap; }
.watch-side h3 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.watch-side .ep-list { max-height: 640px; overflow-y: auto; border-radius: var(--radius); }
.watch-side .ep-item { padding: 8px; gap: 12px; }
.watch-side .ep-thumb { width: 120px; }
.watch-side .ep-desc { display: none; }

/* Tab */
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--bg-3); margin-top: 28px; }
.tabs button {
  font-size: 15px; color: var(--text-3); padding: 12px 2px;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all .2s;
}
.tabs button:hover { color: var(--text-2); }
.tabs button.active { color: #fff; border-bottom-color: var(--red); font-weight: 600; }
.tab-panel { padding: 20px 0 8px; font-size: 14px; color: var(--text-2); line-height: 1.7; }

/* 评论 */
.comment { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--bg-3); }
.comment-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: #fff;
}
.comment-body { flex: 1; }
.comment-head { display: flex; align-items: baseline; gap: 10px; }
.comment-name { font-size: 13px; font-weight: 600; }
.comment-time { font-size: 12px; color: var(--text-3); }
.comment-text { font-size: 14px; color: var(--text-2); margin-top: 4px; }
.comment-actions { display: flex; gap: 16px; margin-top: 8px; font-size: 12px; color: var(--text-3); }
.comment-actions button { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-3); transition: color .2s; }
.comment-actions button:hover { color: #fff; }
.comment-actions svg { width: 14px; height: 14px; }

/* ============================================================
   PROFILE 个人中心
   ============================================================ */
.profile-head {
  display: flex; align-items: center; gap: 20px;
  padding: 40px var(--page-pad-x) 28px;
}
.profile-avatar {
  width: 84px; height: 84px; border-radius: var(--radius);
  background: linear-gradient(135deg, #E50914, #831010);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 700;
}
.profile-name { font-size: 26px; font-weight: 700; }
.profile-sub { font-size: 13px; color: var(--text-3); margin-top: 4px; }
.profile-stats { display: flex; gap: 32px; margin-top: 14px; }
.pstat .num { font-size: 20px; font-weight: 700; }
.pstat .lbl { font-size: 12px; color: var(--text-3); }

.section-title-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--page-pad-x); margin: 36px 0 14px;
}
.section-title-row h2 { font-size: 20px; font-weight: 600; }
.section-title-row .clear { font-size: 13px; color: var(--text-3); transition: color .2s; }
.section-title-row .clear:hover { color: var(--red); }

/* 历史条目 */
.history-item {
  display: flex; align-items: center; gap: 16px;
  padding: 12px var(--page-pad-x);
  transition: background .2s;
}
.history-item:hover { background: var(--bg-2); }
.history-thumb { position: relative; width: 168px; flex-shrink: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; background: var(--bg-3); }
.history-thumb img { width: 100%; height: 100%; object-fit: cover; }
.history-info { flex: 1; min-width: 0; }
.history-name { font-size: 14px; font-weight: 500; }
.history-sub { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.history-progress { margin-top: 8px; max-width: 320px; }
.history-progress .bar { height: 3px; background: var(--bg-3); border-radius: 2px; overflow: hidden; }
.history-progress .bar i { display: block; height: 100%; background: var(--red); }
.history-progress .pct { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.history-remove {
  color: var(--text-3); opacity: 0; transition: all .2s; padding: 6px;
}
.history-item:hover .history-remove { opacity: 1; }
.history-remove:hover { color: var(--red); }
.history-remove svg { width: 16px; height: 16px; display: block; }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed; bottom: 32px; left: 50%;
  transform: translate(-50%, 20px);
  background: var(--bg-2); color: var(--text);
  border: 1px solid var(--bg-3); border-left: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 12px 20px; font-size: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,.5);
  opacity: 0; visibility: hidden;
  transition: all .3s ease; z-index: 200;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--bg-3);
  margin-top: 72px; padding: 40px var(--page-pad-x) 48px;
}
.footer-inner { max-width: 980px; margin: 0 auto; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin-bottom: 24px; }
.footer-links a { font-size: 13px; color: var(--text-3); transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 13px; color: var(--text-3); }

/* ============================================================
   通用工具
   ============================================================ */
.empty-tip { padding: 64px var(--page-pad-x); text-align: center; color: var(--text-3); font-size: 14px; }

/* 简易响应式（兼顾移动端） */
@media (max-width: 1024px) {
  .watch-layout { grid-template-columns: 1fr; }
  .watch-side .ep-list { max-height: none; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-title { font-size: 32px; }
  .detail-title { font-size: 30px; }
  .auth-card { padding: 36px 28px; }
  .card { width: 200px; }
  .history-thumb { width: 120px; }
}
