/* TVideo · 登录注册 / 个人中心 */

/* ---------- 登录注册 ---------- */

.tv-page-auth .tv-main { display: flex; align-items: center; justify-content: center; padding-bottom: 60px; }
.tv-auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  width: min(980px, 100%);
  min-height: 560px;
  margin: 24px auto;
  border-radius: 20px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.tv-auth__side { position: relative; overflow: hidden; background: #0d0d0d; }
.tv-auth__posters { position: absolute; inset: -40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; transform: rotate(-8deg) scale(1.08); opacity: .55; }
.tv-auth__posters img { width: 100%; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 10px; background: var(--card); }
.tv-auth__side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13, 13, 13, .96) 8%, rgba(13, 13, 13, .2) 60%, rgba(13, 13, 13, .5)); }
.tv-auth__slogan { position: absolute; z-index: 1; left: 36px; right: 36px; bottom: 40px; }
.tv-auth__slogan strong { display: block; font-size: 30px; line-height: 40px; font-weight: 700; letter-spacing: 1px; }
.tv-auth__slogan span { display: block; margin-top: 8px; font-size: 14px; color: var(--t2); }
.tv-auth__card { padding: 44px 40px 36px; }
.tv-auth__tabs { display: flex; gap: 28px; margin-bottom: 28px; }
.tv-auth__tabs a { position: relative; padding-bottom: 8px; font-size: 18px; color: var(--t3); transition: color .2s; }
.tv-auth__tabs a:hover { color: var(--t1); }
.tv-auth__tabs a.is-active { color: var(--t1); font-weight: 600; }
.tv-auth__tabs a.is-active::after { content: ""; position: absolute; left: 0; bottom: 0; width: 20px; height: 3px; border-radius: 2px; background: var(--accent); }
.tv-auth__oauth { display: flex; align-items: center; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--t3); }
.tv-auth__oauth span { margin-right: auto; }
.tv-auth__closed { padding: 60px 0; text-align: center; color: var(--t2); }
.tv-code-btn { flex: none; height: 46px; border-radius: 10px; padding: 0 16px; }
.tv-code-btn[disabled] { opacity: .5; }

/* 弹窗内的登录表单 */
.tv-pop-login .tv-form__links { margin-top: 14px; }
.tv-pop-info__links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.tv-pop-info .tv-menu__head { border-bottom: 0; padding: 4px 0; }

/* ---------- 个人中心 ---------- */

.tv-uc-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 12px 0 20px;
  padding: 28px;
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(0, 209, 209, .14), rgba(47, 140, 255, .08) 45%, rgba(255, 255, 255, .03));
}
.tv-uc-hero.is-vip { background: linear-gradient(120deg, rgba(255, 223, 137, .2), rgba(242, 202, 91, .08) 45%, rgba(255, 255, 255, .03)); }
.tv-uc-hero__avatar { flex: none; width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, .25); }
.tv-uc-hero.is-vip .tv-uc-hero__avatar { border-color: var(--vip); }
.tv-uc-hero__info { flex: 1; min-width: 0; }
.tv-uc-hero__name { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 24px; font-weight: 600; }
.tv-vip-tag, .tv-group-tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 12px; font-weight: 500; }
.tv-vip-tag { background: linear-gradient(90deg, #ffdf89, #f2ca5b); color: var(--vip-t); }
.tv-vip-tag .tv-ico { width: 13px; height: 13px; }
.tv-group-tag { background: rgba(255, 255, 255, .1); color: var(--t2); }
.tv-uc-hero__meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 8px; font-size: 13px; color: var(--t2); }
.tv-uc-hero__meta b { color: var(--t1); font-size: 15px; }
.tv-uc-hero__acts { display: flex; gap: 10px; flex: none; }
.tv-uc-nav { display: flex; gap: 6px; margin-bottom: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tv-uc-nav a { flex: none; height: 34px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 17px; font-size: 14px; color: var(--t2); transition: color .2s, background-color .2s; }
.tv-uc-nav a:hover { color: var(--t1); background: rgba(255, 255, 255, .06); }
.tv-uc-nav a.is-active { color: var(--accent); background: var(--accent-weak); font-weight: 500; }
.tv-uc-empty { padding: 28px 0; color: var(--t3); font-size: 14px; }
.tv-uc-toolbar { display: flex; align-items: center; justify-content: space-between; margin: 16px 0; font-size: 13px; color: var(--t3); }
.tv-uc-toolbar b { color: var(--t1); }
.tv-uc-item { position: relative; }
.tv-uc-item__del {
  position: absolute;
  z-index: 3;
  top: 6px;
  left: 6px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, .55);
  opacity: 0;
  transition: opacity .2s, background-color .2s;
}
.tv-uc-item__del .tv-ico { width: 14px; height: 14px; }
.tv-uc-item:hover .tv-uc-item__del { opacity: 1; }
.tv-uc-item__del:hover { background: #e5484d; }
.tv-uc-guest { max-width: 520px; margin: 10vh auto 0; text-align: center; }
.tv-uc-guest--sm { margin-top: 32px; }
.tv-uc-guest__ico { width: 64px; height: 64px; padding: 14px; border-radius: 50%; color: var(--accent); background: var(--accent-weak); }
.tv-uc-guest h1 { margin-top: 18px; font-size: 22px; font-weight: 600; }
.tv-uc-guest--sm h1 { font-size: 17px; }
.tv-uc-guest p { margin-top: 8px; color: var(--t2); }
.tv-uc-panel { max-width: 720px; margin-top: 20px; }
.tv-form--wide .tv-field { display: flex; align-items: center; gap: 16px; }
.tv-field__label { flex: none; width: 84px; font-size: 14px; color: var(--t2); }
.tv-form__group { margin-bottom: 24px; padding: 20px 24px 8px; border-radius: 14px; background: rgba(255, 255, 255, .03); }
.tv-form__group h3 { margin-bottom: 16px; font-size: 16px; font-weight: 600; }
.tv-form__group h3 small { margin-left: 10px; font-size: 12px; font-weight: 400; color: var(--t3); }
.tv-input:disabled { opacity: .55; }

@media (max-width: 1023px) {
  .tv-auth { grid-template-columns: 1fr; width: min(460px, 100%); min-height: 0; }
  .tv-auth__side { display: none; }
}
@media (max-width: 767px) {
  .tv-page-auth .tv-main { display: block; padding-top: 16px; }
  .tv-auth { margin: 0 auto; border-radius: 16px; box-shadow: none; background: transparent; }
  .tv-auth__card { padding: 16px 4px; }
  .tv-uc-hero { flex-wrap: wrap; gap: 14px; padding: 20px 16px; margin-top: 4px; }
  .tv-uc-hero__avatar { width: 60px; height: 60px; }
  .tv-uc-hero__name { font-size: 19px; }
  .tv-uc-hero__acts { width: 100%; }
  .tv-uc-hero__acts .tv-btn { flex: 1; height: 36px; font-size: 14px; }
  .tv-uc-nav { margin: 0 calc(-1 * var(--gut)) 4px; padding: 0 var(--gut) 10px; }
  .tv-uc-item__del { opacity: 1; width: 24px; height: 24px; }
  .tv-form--wide .tv-field { flex-direction: column; align-items: stretch; gap: 6px; }
  .tv-form__group { padding: 16px 14px 4px; }
}
