/* SpicyTok 竖滑 feed —— 跟原站 /videos 一致 */

.tok {
  position: relative;
  height: calc(100dvh - 108px);   /* 扣掉顶栏 */
  background: #000;
  overflow: hidden;
}

/* tabs */
.tok__tabs {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  gap: 6px;
  padding: 3px;
  background: rgba(0, 0, 0, .5);
  border-radius: var(--r-pill);
  backdrop-filter: blur(8px);
}
.tok__tab {
  padding: 6px 16px;
  font-size: 12.5px;
  font-weight: 800;
  color: rgba(255, 255, 255, .62);
  background: none;
  border-radius: var(--r-pill);
}
.tok__tab.is-on { color: #fff; background: var(--primary); }

/* 竖滑容器 */
.tok__feed {
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}
.tok__feed::-webkit-scrollbar { display: none; }

.tok__slide {
  position: relative;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}

.tok__video {
  width: 100%;
  height: 100%;
  object-fit: contain;      /* 整条视频都看得见，跟原站一致 */
  background: #000;
  cursor: pointer;
}

/* 底部渐变，文字才看得清 */
.tok__shade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 45%;
  background: linear-gradient(to top, rgba(0, 0, 0, .82), transparent);
  pointer-events: none;
}

/* 静音按钮 */
.tok__mute {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 5;
  width: 34px; height: 34px;
  font-size: 15px;
  background: rgba(0, 0, 0, .45);
  border-radius: 50%;
  backdrop-filter: blur(6px);
}

/* 右侧动作栏 */
.tok__actions {
  position: absolute;
  right: 12px;
  bottom: 110px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tok__act {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #fff;
  background: none;
}
.tok__act-ico {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  font-size: 19px;
  background: rgba(0, 0, 0, .42);
  border-radius: 50%;
  backdrop-filter: blur(6px);
}
.tok__act:active .tok__act-ico { background: var(--primary); }
.tok__act-txt { font-size: 10px; font-weight: 700; opacity: .9; }

/* 左下信息 */
.tok__meta {
  position: absolute;
  left: 14px;
  right: 74px;
  bottom: 26px;
  z-index: 5;
  color: #fff;
  cursor: pointer;
}
.tok__author { font-size: 12px; opacity: .78; }
.tok__name {
  margin: 3px 0 6px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tok__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tok__tag { font-size: 11.5px; color: var(--primary); }

/* Swipe Up 提示 */
.tok__swipe {
  position: absolute;
  left: 50%; bottom: 96px;
  transform: translateX(-50%);
  z-index: 6;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .82);
  animation: tokUp 1.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes tokUp {
  0%, 100% { transform: translate(-50%, 0); opacity: .55; }
  50% { transform: translate(-50%, -8px); opacity: 1; }
}

/* 空态 / 加载 */
.tok__state,
.tok__empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  padding: 24px;
}
.tok__empty h2 { font-size: 20px; font-weight: 800; color: var(--text); }
.tok__empty p { max-width: 32ch; line-height: 1.6; }
.tok__cta {
  margin-top: 8px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  border-radius: var(--r-pill);
}

@media (max-width: 760px) {
  .tok { height: calc(100dvh - 96px); }
  .tok__act-ico { width: 38px; height: 38px; font-size: 17px; }
  .tok__actions { bottom: 96px; gap: 14px; }
  .tok__name { font-size: 14px; }
}

/* feed 页不要网格用的筛选条和 banner，跟原站 /videos 一致 */
.is-tok .banner,
.is-tok .tagbar,
.is-tok .header\n  /* placeholder */ { }

/* feed 模式：隐藏网格用的 banner / 筛选条 / 标签条 */
body.tok-mode .banner,
body.tok-mode .tagbar,
body.tok-mode .utils { display: none; }
