/* Fulizu PC refinement — keeps the original template stack and interaction model. */

.fz-search-trigger {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  margin-left: auto;
  border-radius: 50%;
  color: var(--text);
  transition: color .22s ease, background-color .22s ease, transform .22s ease;
}

.fz-search-trigger:hover {
  background: var(--surface-2);
  color: var(--accent);
}

.fz-search-trigger:active {
  transform: scale(.96);
}

.fz-search-trigger svg,
.fz-search-panel form svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.fz-search-layer[hidden] {
  display: none;
}

.fz-search-layer {
  position: fixed;
  inset: 0;
  z-index: 800;
}

.fz-search-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(5, 8, 10, .68);
  backdrop-filter: blur(4px);
}

.fz-search-panel {
  position: relative;
  min-height: 370px;
  padding: 62px 24px 52px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 97%, transparent);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .3);
}

.fz-search-panel-inner {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
}

.fz-search-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
}

.fz-search-panel h2 {
  margin: 0 0 24px;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.fz-search-panel form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  height: 58px;
  border-bottom: 2px solid var(--accent);
}

.fz-search-panel input {
  min-width: 0;
  padding: 0 4px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
}

.fz-search-panel form button {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--text);
}

.fz-search-close {
  position: absolute;
  top: 24px;
  right: 30px;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
}

.fz-search-close::before,
.fz-search-close::after {
  position: absolute;
  top: 18px;
  left: 8px;
  width: 22px;
  height: 1px;
  background: var(--muted);
  content: "";
}

.fz-search-close::before {
  transform: rotate(45deg);
}

.fz-search-close::after {
  transform: rotate(-45deg);
}

.fz-search-hot {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 16px;
  margin-top: 24px;
  color: var(--muted);
}

.fz-search-hot strong {
  padding-top: 5px;
  color: var(--text);
  font-size: 13px;
}

.fz-search-hot > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fz-search-hot a {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 12px;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.fz-search-hot a:hover {
  border-color: color-mix(in srgb, var(--accent) 46%, var(--line));
  background: var(--accent-soft);
  color: var(--accent);
}

.auth-modal-message {
  border-radius: 4px;
  font-size: 13px;
}

.auth-modal-message:not(:empty),
.auth-modal-message.is-error:not(:empty) {
  border-color: color-mix(in srgb, var(--danger) 55%, transparent);
  background: color-mix(in srgb, var(--danger) 10%, transparent);
  color: #ff9797;
}

.auth-modal-message.is-success:not(:empty) {
  border-color: color-mix(in srgb, var(--success) 52%, transparent);
  background: color-mix(in srgb, var(--success) 11%, transparent);
  color: #66d99a;
}

.yt-profile-pane {
  display: none;
}

.yt-profile-pane.active {
  display: block;
}

.template-alert:not(.is-error),
.yt-alert:not(.error) {
  border-color: color-mix(in srgb, var(--success) 42%, var(--line));
  background: color-mix(in srgb, var(--success) 8%, var(--surface));
  color: color-mix(in srgb, var(--success) 78%, var(--text));
}

.template-alert.is-error,
.template-alert.error,
.yt-alert.error {
  border-color: color-mix(in srgb, var(--danger) 48%, var(--line));
  background: color-mix(in srgb, var(--danger) 9%, var(--surface));
  color: #ff9191;
}

.fz-home-tab-panel[hidden] {
  display: none;
}

.fz-home-tab-empty {
  padding: 44px;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  text-align: center;
}

.fz-home-latest-action {
  display: flex;
  justify-content: center;
  padding: 54px 0 74px;
}

.fz-home-latest-action a {
  display: inline-flex;
  min-width: 180px;
  height: 46px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--text);
  font-weight: 650;
  transition: border-color .22s ease, color .22s ease, transform .22s ease;
}

.fz-home-latest-action a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.fz-list-eyebrow {
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
}

@media (min-width: 1024px) {
  .fz-header-inner {
    width: min(1380px, calc(100% - 56px));
    gap: 18px;
  }

  .column_menu > ul {
    gap: 0;
  }

  .column_menu > ul > li > a,
  .column_menu > ul > li > button {
    gap: 4px;
    padding: 0 10px;
    color: color-mix(in srgb, var(--text) 70%, transparent);
    font-size: 14px;
    font-weight: 580;
    letter-spacing: -.01em;
    transition: color .2s ease;
  }

  .column_menu li:hover > a,
  .column_menu li:hover > button,
  .column_menu .is-active > a {
    color: var(--text);
  }

  .column_menu .is-active > a::after {
    top: 0;
    right: 10px;
    bottom: auto;
    left: 10px;
    height: 3px;
    border-radius: 0 0 2px 2px;
  }

  .fz-nav-chevron {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .22s ease;
  }

  .column_has_children:hover > a .fz-nav-chevron,
  .column_has_children:hover > button .fz-nav-chevron,
  .column_has_children:focus-within > a .fz-nav-chevron,
  .column_has_children:focus-within > button .fz-nav-chevron {
    transform: rotate(180deg);
  }

  .column_submenu {
    top: 58px;
    min-width: 205px;
    max-height: min(66vh, 520px);
    padding: 8px;
    overflow-y: auto;
    border-radius: 6px;
    background: color-mix(in srgb, var(--surface) 97%, transparent);
    box-shadow: 0 22px 48px rgba(0, 0, 0, .28);
  }

  .column_submenu li + li {
    margin-top: 1px;
  }

  .column_submenu a,
  .column_submenu span {
    min-height: 36px;
    padding: 7px 11px;
    border-radius: 3px;
    color: var(--muted);
    font-size: 13px;
    line-height: 22px;
    transition: color .18s ease, background-color .18s ease;
  }

  .column_submenu a:hover {
    background: var(--surface-2);
    color: var(--accent);
  }

  .fz-shortcuts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
  }

  .fz-shortcuts > a {
    min-height: 104px;
    padding: 20px 22px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: background-color .22s ease;
  }

  .fz-shortcuts > a + a {
    border-left: 1px solid var(--line);
  }

  .fz-shortcuts > a:hover {
    background: var(--surface-2);
    transform: none;
  }

  .fz-shortcut-symbol {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border-radius: 50%;
  }

  .fz-shortcut-symbol svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .fz-shortcuts strong {
    font-size: 16px;
    font-weight: 680;
  }

  .fz-shortcuts small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
  }

  .fz-content-section {
    padding-top: 64px;
  }

  .fz-section-head {
    align-items: end;
    margin-bottom: 22px;
  }

  .fz-section-head h2 {
    font-size: 25px;
    letter-spacing: -.025em;
  }

  .fz-section-head .fz-home-tab-list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
  }

  .fz-home-tab-list button {
    position: relative;
    height: 34px;
    padding: 0 12px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    transition: color .2s ease;
  }

  .fz-home-tab-list button::after {
    position: absolute;
    right: 12px;
    bottom: 0;
    left: 12px;
    height: 2px;
    transform: scaleX(0);
    background: var(--accent);
    content: "";
    transition: transform .2s ease;
  }

  .fz-home-tab-list button:hover,
  .fz-home-tab-list button.is-active {
    color: var(--text);
  }

  .fz-home-tab-list button.is-active::after {
    transform: scaleX(1);
  }

  .fz-list-main {
    width: min(1380px, calc(100% - 64px));
    padding-top: 44px;
  }

  .fz-list-page .fz-list-main {
    width: min(1380px, calc(100% - 64px));
  }

  .fz-list-head {
    min-height: 0;
    margin: 0 0 28px;
    padding: 24px 0 22px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
  }

  .fz-list-head h1 {
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 30px;
    line-height: 1.25;
    letter-spacing: -.03em;
  }

  .fz-list-page .fz-list-head h1 {
    height: auto;
    padding-bottom: 10px;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 650;
  }

  .fz-list-head h1 small {
    margin-left: 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
  }

  .fz-list-page .fz-list-head h1 small {
    margin-left: 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.25;
    font-weight: 500;
  }

  .fz-list-head > p {
    max-width: 65ch;
    margin: 9px 0 0 45px;
    color: var(--muted);
    font-size: 13px;
  }

  .fz-list-main > .fz-card-grid {
    margin-top: 0;
  }

  .detail-column {
    width: min(1380px, calc(100% - 64px));
    margin: 28px auto 0;
    gap: 24px;
  }

  .detail-page .detail-column {
    width: min(1380px, calc(100% - 64px));
    margin-top: 28px;
  }

  .detail-column .column_left {
    min-width: 0;
    overflow: hidden;
    border-radius: 7px;
  }

  .detail-column .column_right {
    min-width: 0;
  }

  .membership-shell {
    width: min(1380px, calc(100% - 64px));
    margin: 34px auto 78px;
  }

  .membership-hero {
    padding: 42px 44px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
  }

  .membership-hero-copy {
    max-width: 720px;
  }

  .membership-hero-copy h1 {
    max-width: 16ch;
    font-size: clamp(40px, 4vw, 58px);
    line-height: 1.05;
    letter-spacing: -.045em;
    text-wrap: balance;
  }

  .membership-current {
    border-left-color: var(--warm);
    background: color-mix(in srgb, var(--warm) 7%, var(--surface-2));
  }

  .membership-promotion {
    margin: 22px 0;
    border-left-width: 3px;
    background: color-mix(in srgb, var(--membership-promo-color) 8%, var(--surface));
  }

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

  .membership-package {
    display: flex;
    min-width: 0;
    min-height: 590px;
    flex-direction: column;
    padding: 28px 24px 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    transition: border-color .22s ease, transform .22s ease, background-color .22s ease;
  }

  .membership-package:hover {
    border-color: color-mix(in srgb, var(--warm) 42%, var(--line));
    transform: translateY(-4px);
  }

  .membership-package.is-featured {
    border-top: 3px solid var(--warm);
    background: color-mix(in srgb, var(--warm) 5%, var(--surface));
  }

  .membership-package-head h2 {
    overflow: hidden;
    margin-right: 6px;
    font-size: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .membership-price {
    white-space: nowrap;
  }

  .membership-price strong {
    font-variant-numeric: tabular-nums;
    font-size: 39px;
    letter-spacing: -.04em;
  }

  .membership-package-desc {
    min-height: 48px;
    color: var(--muted);
    font-size: 12px;
    line-height: 20px;
  }

  .membership-benefits {
    flex: 1;
    margin-top: 24px;
  }

  .membership-benefits li {
    padding: 10px 0;
    font-size: 13px;
  }

  .membership-buy {
    margin-top: 24px;
    border-radius: 4px;
  }

  .membership-notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-center .column_left {
    width: 100%;
  }

  .profile-page .profile-center {
    display: block;
    width: 100%;
  }

  .profile-page .profile-center > .column_left {
    width: 100%;
  }

  .profile-shell {
    width: min(1240px, calc(100% - 64px));
    margin: 34px auto 80px;
  }

  .profile-page .profile-shell {
    width: min(1240px, calc(100% - 64px));
  }

  .profile-membership-banner {
    display: grid;
    min-height: 150px;
    grid-template-columns: 70px minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 30px 34px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
  }

  .profile-membership-identity strong {
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -.035em;
  }

  .yt-profile {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
    margin-top: 22px;
  }

  .yt-profile-nav {
    position: sticky;
    top: 92px;
    display: grid;
    overflow: visible;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
  }

  .yt-profile-nav button {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 0;
    border-left: 2px solid transparent;
    border-radius: 3px;
    background: transparent;
    color: var(--muted);
    text-align: left;
  }

  .yt-profile-nav button:hover {
    background: var(--surface-2);
    color: var(--text);
  }

  .yt-profile-nav button.active {
    border-left-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
  }

  .yt-profile-content {
    min-width: 0;
  }

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

  .profile-overview-card,
  .profile-record-row,
  .profile-favorite-row,
  .profile-setting-card,
  .profile-referral-summary,
  .profile-ledger-section,
  .profile-withdraw-panel {
    border: 1px solid var(--line);
    background: var(--surface);
  }

  .profile-overview-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 150px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    padding: 24px;
    border-radius: 7px;
  }

  .profile-overview-card > span:not(.profile-card-watermark),
  .profile-overview-card > small {
    color: var(--muted);
    font-size: 12px;
  }

  .profile-card-watermark {
    position: absolute;
    top: 18px;
    right: 20px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    opacity: .5;
  }

  .profile-overview-card strong {
    overflow: hidden;
    font-size: 22px;
    text-overflow: ellipsis;
  }

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

  .auth-page {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 32px;
    background: var(--bg);
  }

  .auth-shell {
    width: min(440px, calc(100% - 32px));
    min-height: 0;
    grid-template-columns: 1fr;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .26);
  }

  .auth-visual {
    display: none;
  }

  .auth-panel {
    min-width: 0;
    padding: 34px 36px 28px;
  }

  .auth-brand {
    margin-bottom: 28px;
  }

  .auth-brand img {
    max-width: 112px;
    max-height: 34px;
  }

  .auth-panel h1 {
    margin-bottom: 8px;
    font-size: 29px;
    line-height: 1.15;
    letter-spacing: -.03em;
  }

  .auth-panel > p {
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 13px;
  }

  .auth-form {
    gap: 12px;
  }

  .auth-field input,
  .auth-field select,
  .auth-field textarea {
    height: 42px;
  }

  .auth-submit {
    height: 43px;
    margin-top: 2px;
    border-radius: 4px;
  }

  .auth-links {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 11px;
  }

  .auth-modal-panel {
    width: min(420px, 100%);
    padding: 30px 32px 26px;
    border-radius: 8px;
  }

  .auth-modal-title {
    margin-bottom: 18px;
    font-size: 28px;
    letter-spacing: -.03em;
  }

  .auth-modal-form {
    gap: 12px;
  }

  .auth-modal-form input {
    height: 42px;
  }

  .auth-modal-form > button {
    height: 43px;
    border-radius: 4px;
  }
}

html[data-theme="light"] .fz-search-backdrop {
  background: rgba(32, 39, 36, .34);
}

html[data-theme="light"] body {
  --bg: #f5f7f7;
  --surface: #fff;
  --surface-2: #f0f3f3;
  --surface-3: #e5eaea;
  --text: #172024;
  --muted: #667379;
  --muted-2: #8d989d;
  --line: #d9e0e1;
  --line-strong: #c4cdcf;
  --accent: #0aa99e;
  --accent-strong: #008f87;
  --accent-soft: rgba(10, 169, 158, .1);
  background: var(--bg);
  color: var(--text);
}

html[data-theme="light"] .fz-search-panel {
  box-shadow: 0 28px 80px rgba(38, 52, 45, .18);
}

html[data-theme="light"] .fz-header {
  border-bottom-color: #e2e5e7;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 1px 0 rgba(22, 29, 27, .04);
}

html[data-theme="light"] .column_submenu,
html[data-theme="light"] .fz-shortcuts,
html[data-theme="light"] .fz-shortcuts > a,
html[data-theme="light"] .fz-card,
html[data-theme="light"] .fz-list-page .fz-card,
html[data-theme="light"] .fz-footer,
html[data-theme="light"] .mobile-app-nav {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

html[data-theme="light"] .fz-card-tags a {
  background: #eef0f1;
  color: #6f7478;
}

html[data-theme="light"] .fz-card h3,
html[data-theme="light"] .fz-card h3 a {
  color: var(--text);
}

html[data-theme="light"] .fz-list-page .fz-list-head h1,
html[data-theme="light"] .fz-list-page .fz-list-head h1 small,
html[data-theme="light"] .fz-list-page .fz-list-head h1 > .fz-list-icon {
  color: var(--text);
}

html[data-theme="light"] .fz-list-page .fz-list-head h1 small {
  color: var(--muted);
}

html[data-theme="light"] .fz-list-page .fz-list-head {
  border-bottom: 1px solid var(--line);
  background: transparent;
}

html[data-theme="light"] .detail-page .column_left,
html[data-theme="light"] .detail-page .fz-sidebar-card,
html[data-theme="light"] .detail-page .fz-sidebar-hot,
html[data-theme="light"] .detail-page .fz-sidebar-hot a {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

html[data-theme="light"] .detail-page .detail-lock-notice,
html[data-theme="light"] .detail-page .detail-downloads,
html[data-theme="light"] .detail-page .detail-head-stats {
  background: var(--surface-2);
  color: var(--text);
}

html[data-theme="light"] .profile-page .profile-center > .column_left {
  background: transparent;
}

html[data-theme="light"] .auth-modal-panel {
  border-color: #dfe3e5;
  background: #fff;
  color: var(--text);
  box-shadow: 0 24px 70px rgba(32, 43, 38, .18);
}

html[data-theme="light"] .auth-modal-form input {
  border-color: #dfe3e5;
  background: #f7f8f8;
  color: var(--text);
}

html[data-theme="light"] .auth-modal-message.is-success:not(:empty) {
  color: #157847;
}

html[data-theme="light"] .auth-modal-message:not(:empty),
html[data-theme="light"] .auth-modal-message.is-error:not(:empty) {
  color: #b83f3f;
}

html[data-theme="light"] .membership-package.is-featured {
  background: color-mix(in srgb, #f0b45f 9%, var(--surface));
}

html[data-theme="light"] .membership-package.is-level-month,
html[data-theme="light"] .membership-package.is-level-quarter,
html[data-theme="light"] .membership-package.is-level-year {
  background: #fff;
}

html[data-theme="light"] .membership-current {
  background: #f5f6f7;
  color: var(--text);
}

@media (max-width: 1023px) {
  .fz-search-layer {
    display: none !important;
  }

  .fz-search-trigger {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .fz-list-page .fz-list-head h1 {
    font-size: 20px;
  }
}
