
    :root {
      --bg: #07090c;
      --panel: #0e1217;
      --panel-2: #141a21;
      --line: #252d36;
      --line-soft: #1b222a;
      --pill-bg: rgba(255, 255, 255, 0.07);
      --pill-line: rgba(255, 255, 255, 0.18);
      --text: #f4f6f7;
      --muted: #9caab3;
      --dim: #66737e;
      --accent: #2ee59d;
      --accent-strong: #12b76a;
      --hot: #ff5348;
      --amber: #ffb45c;
      --danger: #ff6a5e;
      --ok: #2ee59d;
      --shadow: rgba(0, 0, 0, 0.62);
      --ease: cubic-bezier(0.22, 1, 0.36, 1);
      --ease-io: cubic-bezier(0.4, 0, 0.2, 1);
      --card-shadow: 0 14px 32px rgba(0, 0, 0, 0.38);
      --card-shadow-hover: 0 22px 54px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(46, 229, 157, 0.16), 0 8px 30px rgba(46, 229, 157, 0.1);
    }
    :root[data-theme="light"] {
      --bg: #f2f6f8;
      --panel: #ffffff;
      --panel-2: #eaf0f4;
      --line: #cfd9e2;
      --line-soft: #e1e9ef;
      --pill-bg: rgba(24, 34, 44, 0.05);
      --pill-line: rgba(24, 34, 44, 0.18);
      --text: #18222c;
      --muted: #51616d;
      --dim: #74838f;
      --accent: #078a5e;
      --accent-strong: #056f4b;
      --hot: #d6453d;
      --amber: #b47617;
      --danger: #d64f3f;
      --ok: #078a5e;
      --shadow: rgba(17, 35, 50, 0.16);
      --ease: cubic-bezier(0.22, 1, 0.36, 1);
      --ease-io: cubic-bezier(0.4, 0, 0.2, 1);
      --card-shadow: 0 12px 30px rgba(17, 35, 50, 0.1);
      --card-shadow-hover: 0 22px 52px rgba(17, 35, 50, 0.18), 0 0 0 1px rgba(7, 138, 94, 0.16), 0 8px 26px rgba(7, 138, 94, 0.12);
    }
    * {
      box-sizing: border-box;
    }
    .hidden {
      display: none !important;
    }
    html,
    body {
      min-height: 100%;
      margin: 0;
      background: var(--bg);
      color: var(--text);
    }
    body {
      font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", system-ui, sans-serif;
      -webkit-font-smoothing: antialiased;
    }
    button,
    input {
      font: inherit;
    }
    button {
      border: 0;
      cursor: pointer;
    }
    button:disabled {
      opacity: 0.55;
      cursor: not-allowed;
    }
    button:focus-visible,
    input:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 2px;
    }
    svg {
      display: block;
    }
    .icon {
      width: 18px;
      height: 18px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
      flex: none;
    }
    .app {
      max-width: 1480px;
      margin: 0 auto;
      padding: 0 18px 64px;
    }
    .topbar {
      position: sticky;
      top: 0;
      z-index: 30;
      display: grid;
      grid-template-columns: auto 420px 1fr auto;
      align-items: center;
      gap: 14px;
      margin: 0 -18px;
      padding: 10px 18px;
      border-bottom: 1px solid var(--line-soft, #1c232b);
      background: rgba(7, 9, 12, 0.9);
      backdrop-filter: blur(16px);
      transition: border-color 0.25s ease, box-shadow 0.3s var(--ease);
      box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02);
    }
    body.app-subpage .topbar {
      display: none;
    }
    .brand {
      display: flex;
      align-items: center;
      gap: 10px;
      color: var(--text);
      font-size: 19px;
      font-weight: 800;
      white-space: nowrap;
      text-decoration: none;
    }
    .brand-mark {
      display: grid;
      place-items: center;
      width: 40px;
      height: 40px;
      border-radius: 10px;
      background: linear-gradient(135deg, #36e69a, #0f9a66);
      color: #06150e;
      font-size: 20px;
      font-weight: 900;
      box-shadow: 0 6px 18px rgba(18, 183, 106, 0.22);
      transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
    }
    .brand:hover .brand-mark {
      transform: translateY(-1px) rotate(-4deg);
      box-shadow: 0 10px 26px rgba(18, 183, 106, 0.32);
    }
    .nav {
      display: flex;
      align-items: center;
      gap: 4px;
      overflow-x: auto;
      scrollbar-width: none;
    }
    .nav::-webkit-scrollbar {
      display: none;
    }
    .nav-btn,
    .chip {
      height: 36px;
      padding: 0 14px;
      border-radius: 8px;
      background: transparent;
      color: var(--muted);
      white-space: nowrap;
      transition: color 0.2s var(--ease), background-color 0.2s ease, transform 0.18s var(--ease), box-shadow 0.22s ease;
    }
    .nav-btn:hover,
    .chip:hover {
      color: var(--text);
      background: rgba(255, 255, 255, 0.06);
    }
    .nav-btn.active,
    .chip.active {
      color: #06130c;
      background: var(--accent);
      font-weight: 700;
      box-shadow: 0 0 0 1px rgba(46, 229, 157, 0.18), 0 8px 22px rgba(46, 229, 157, 0.2);
    }
    .nav-btn:active,
    .chip:active {
      transform: scale(0.96);
    }
    .search-wrap {
      position: relative;
      min-width: 0;
    }
    .search-box {
      display: flex;
      align-items: center;
      gap: 8px;
      height: 44px;
      padding: 0 8px 0 7px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: var(--panel);
      color: var(--text);
      transition: border-color 0.22s ease, box-shadow 0.25s var(--ease), transform 0.2s var(--ease);
    }
    .search-box:focus-within {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(46, 229, 157, 0.12);
      transform: translateY(-1px);
    }
    .search-box input {
      flex: 1;
      min-width: 0;
      height: 100%;
      border: 0;
      outline: none;
      background: transparent;
      color: var(--text);
    }
    .search-box input::placeholder {
      color: var(--dim, #64717c);
    }
    .search-source {
      display: inline-flex;
      align-items: center;
      gap: 2px;
      flex: none;
      height: 28px;
      padding: 2px;
      border: 1px solid var(--line-soft, #1c232b);
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.055);
    }
    .search-source-btn {
      height: 22px;
      padding: 0 10px;
      border: 0;
      border-radius: 999px;
      background: transparent;
      color: var(--muted);
      font-size: 11px;
      font-weight: 700;
      line-height: 1;
      cursor: pointer;
      transition: color 0.2s var(--ease), background-color 0.2s ease, box-shadow 0.22s ease;
    }
    .search-source-btn:hover {
      color: var(--text);
      background: rgba(255, 255, 255, 0.07);
    }
    .search-source-btn.active {
      color: #06130c;
      background: var(--accent);
      box-shadow: 0 0 0 1px rgba(46, 229, 157, 0.16), 0 4px 12px rgba(46, 229, 157, 0.18);
    }
    .icon-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      width: 34px;
      height: 34px;
      border-radius: 8px;
      background: transparent;
      color: var(--muted);
      transition: color 0.2s ease, background-color 0.2s ease, transform 0.18s var(--ease);
    }
    .icon-btn:hover {
      color: var(--text);
      background: rgba(255, 255, 255, 0.07);
    }
    .icon-btn:active {
      transform: scale(0.9);
    }
    .suggest {
      position: absolute;
      top: 50px;
      left: 0;
      right: 0;
      z-index: 40;
      max-height: 320px;
      overflow: auto;
      padding: 6px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: #13181f;
      box-shadow: 0 18px 48px var(--shadow);
      animation: dropdownIn 0.22s var(--ease) both;
    }
    .suggest button {
      display: block;
      width: 100%;
      padding: 11px 12px;
      border-radius: 7px;
      background: transparent;
      color: var(--text);
      text-align: left;
    }
    .suggest button:hover {
      background: rgba(46, 229, 157, 0.09);
    }
    .suggest-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 4px 6px 6px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
    }
    .suggest-records {
      display: flex;
      flex-direction: column;
    }
    .suggest .suggest-clear {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: auto;
      min-height: 26px;
      padding: 0 9px;
      border-radius: 7px;
      background: var(--panel-2);
      color: var(--muted);
      font-size: 11px;
      font-weight: 700;
    }
    .suggest .suggest-clear:hover {
      color: var(--text);
      background: rgba(46, 229, 157, 0.1);
    }
    .top-actions {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    #mobileSearchBtn {
      display: none;
    }
    .health {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      height: 30px;
      padding: 0 10px;
      border-radius: 999px;
      background: #10161b;
      color: var(--muted);
      font-size: 12px;
    }
    .dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #65717b;
    }
    .dot.ok {
      background: var(--ok);
      box-shadow: 0 0 0 4px rgba(46, 229, 157, 0.12);
    }
    .dot.error {
      background: var(--danger);
    }
    main {
      margin-top: 20px;
    }
    .view {
      display: none;
    }
    .view.active {
      display: block;
      animation: viewIn 0.32s var(--ease) both;
    }
    .site-footer {
      margin: 44px -18px -64px;
      padding: 24px 18px 20px;
      border-top: 1px solid var(--line-soft, #1b222a);
      background: linear-gradient(180deg, rgba(46, 229, 157, 0.035), transparent 78%);
    }
    .footer-links {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px 18px;
    }
    .footer-label {
      color: var(--text);
      font-size: 13px;
      font-weight: 700;
      margin-right: 2px;
    }
    .footer-links a {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.5;
      text-decoration: none;
      border-bottom: 1px solid transparent;
      transition: color 0.2s var(--ease-io), border-color 0.2s var(--ease-io);
    }
    .footer-links a:hover {
      color: var(--accent);
      border-bottom-color: var(--accent);
    }
    .footer-note {
      margin: 14px 0 0;
      color: var(--dim);
      font-size: 12px;
      line-height: 1.7;
    }
    .footer-note strong {
      color: var(--text);
      font-weight: 700;
      margin-right: 5px;
    }
    .feature-strip {
      position: relative;
      min-height: 340px;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 12px;
      background:
        radial-gradient(circle at 78% 30%, rgba(46, 229, 157, 0.15), transparent 32%),
        linear-gradient(135deg, #101820, #0d1116);
      isolation: isolate;
      box-shadow: 0 16px 46px rgba(0, 0, 0, 0.28);
    }
    .carousel-track {
      display: flex;
      height: 100%;
      transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
      will-change: transform;
    }
    .feature-slide {
      position: relative;
      flex: 0 0 100%;
      min-width: 100%;
      min-height: 340px;
    }
    .carousel-dots {
      position: absolute;
      right: 26px;
      bottom: 18px;
      z-index: 5;
      display: flex;
      gap: 7px;
    }
    .carousel-dot {
      width: 22px;
      height: 4px;
      padding: 0;
      border-radius: 2px;
      background: rgba(255, 255, 255, 0.34);
      transition: width 0.25s var(--ease), background 0.25s ease, box-shadow 0.25s ease;
    }
    .carousel-dot.active {
      width: 30px;
      background: var(--accent);
      box-shadow: 0 0 12px rgba(46, 229, 157, 0.65);
    }
    .carousel-progress {
      position: absolute;
      z-index: 5;
      left: 26px;
      bottom: 18px;
      width: min(190px, 42%);
      height: 4px;
      overflow: hidden;
      border-radius: 2px;
      background: rgba(255, 255, 255, 0.18);
      pointer-events: none;
    }
    .carousel-progress span {
      display: block;
      width: 100%;
      height: 100%;
      border-radius: 2px;
      background: var(--accent);
      transform: scaleX(0);
      transform-origin: left center;
    }
    .feature-bg {
      position: absolute;
      inset: 0;
      background-size: cover;
      background-position: center 30%;
      transform: scale(1.02);
      will-change: transform;
    }
    .feature-bg img,
    .detail-bg img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center 25%;
    }
    .feature-fade {
      position: absolute;
      inset: 0;
      background:
        linear-gradient(90deg, rgba(7, 9, 12, 0.96) 8%, rgba(7, 9, 12, 0.72) 42%, rgba(7, 9, 12, 0.12) 78%),
        linear-gradient(180deg, rgba(7, 9, 12, 0.1), rgba(7, 9, 12, 0.85));
    }
    .feature-slide.active .feature-bg {
      animation: kenburns 8s ease-in-out infinite alternate;
    }
    .feature-slide.active .feature-fade {
      animation: featureFade 0.55s var(--ease) both;
    }
    .feature-slide.active .feature-info > * {
      animation: featureIn 0.5s var(--ease) both;
    }
    .feature-slide.active .feature-info > *:nth-child(2) {
      animation-delay: 0.05s;
    }
    .feature-slide.active .feature-info > *:nth-child(3) {
      animation-delay: 0.1s;
    }
    .feature-slide.active .feature-info > *:nth-child(4) {
      animation-delay: 0.15s;
    }
    .feature-info {
      position: relative;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      max-width: 720px;
      min-height: 340px;
      padding: 42px 46px;
    }
    .feature-kicker {
      width: fit-content;
      margin-bottom: 12px;
      padding: 6px 11px;
      border-radius: 6px;
      background: rgba(46, 229, 157, 0.14);
      color: var(--accent);
      font-size: 13px;
      font-weight: 700;
    }
    .feature-title {
      margin: 0;
      color: var(--text);
      font-size: 34px;
      line-height: 1.15;
      letter-spacing: 0;
    }
    .feature-sub {
      margin: 12px 0 0;
      color: #c5d0d5;
      font-size: 15px;
    }
    .feature-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 22px;
    }
    .primary-btn,
    .ghost-btn,
    .danger-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      min-height: 42px;
      padding: 0 18px;
      border-radius: 9px;
      font-weight: 700;
      white-space: nowrap;
      transition: transform 0.2s var(--ease), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.25s var(--ease);
    }
    .primary-btn {
      background: var(--accent);
      color: #06130c;
    }
    .primary-btn:hover {
      background: #4ef0ad;
      transform: translateY(-1px);
      box-shadow: 0 10px 28px rgba(46, 229, 157, 0.24);
    }
    .ghost-btn {
      border: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.04);
      color: var(--text);
    }
    .ghost-btn:hover {
      background: rgba(255, 255, 255, 0.09);
      transform: translateY(-1px);
    }
    .ghost-btn.danger {
      border-color: rgba(255, 106, 94, 0.45);
      color: var(--danger);
    }
    .ghost-btn.danger:hover {
      border-color: var(--danger);
      background: rgba(255, 106, 94, 0.12);
    }
    .ghost-btn.active {
      border-color: var(--accent);
      background: rgba(46, 229, 157, 0.1);
      color: var(--accent);
    }
    .switch-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 38px;
      padding: 0 12px;
      border: 1px solid var(--line);
      border-radius: 9px;
      background: rgba(255, 255, 255, 0.04);
      color: var(--muted);
      font-weight: 700;
      white-space: nowrap;
      transition: transform 0.2s var(--ease), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    }
    .switch-track {
      position: relative;
      width: 36px;
      height: 20px;
      flex: 0 0 auto;
      border-radius: 11px;
      background: #2a303a;
      transition: background-color 0.2s ease, box-shadow 0.2s ease;
    }
    .switch-thumb {
      position: absolute;
      top: 3px;
      left: 3px;
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background: #83909b;
      transition: transform 0.25s var(--ease), background-color 0.2s ease;
    }
    .switch-btn:hover {
      background: rgba(255, 255, 255, 0.09);
      transform: translateY(-1px);
    }
    .switch-btn:active {
      transform: translateY(1px) scale(0.98);
    }
    .switch-btn.active {
      border-color: rgba(46, 229, 157, 0.55);
      background: rgba(46, 229, 157, 0.1);
      color: var(--accent);
    }
    .switch-btn.active .switch-track {
      background: rgba(46, 229, 157, 0.28);
      box-shadow: 0 0 12px rgba(46, 229, 157, 0.28);
    }
    .switch-btn.active .switch-thumb {
      background: var(--accent);
      transform: translateX(16px);
    }
    .danger-btn {
      background: rgba(255, 83, 72, 0.14);
      color: var(--danger);
    }
    .primary-btn:active,
    .ghost-btn:active {
      transform: translateY(1px) scale(0.98);
    }
    .section {
      margin-top: 30px;
    }
    .row-head {
      display: flex;
      align-items: baseline;
      gap: 12px;
      margin-bottom: 14px;
    }
    .row-title {
      margin: 0;
      font-size: 21px;
      font-weight: 800;
      color: var(--text);
    }
    .row-title-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin: 0;
      padding: 0;
      border: 0;
      background: transparent;
      color: inherit;
    }
    .row-title-btn:hover {
      color: var(--accent);
    }
    .row-title-btn .row-title {
      margin: 0;
    }
    .row-sub {
      color: var(--dim);
      font-size: 12px;
    }
    .row-more {
      margin-left: auto;
      border: 0;
      background: transparent;
      color: var(--accent);
      font-weight: 700;
      transition: transform 0.2s var(--ease), color 0.2s ease;
    }
    .row-more:hover {
      transform: translateX(2px);
    }
    .home-continue-card {
      position: relative;
      width: 100%;
      max-width: none;
      min-height: 230px;
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, 0.14);
      border-radius: 8px;
      background: var(--panel-2);
      box-shadow: var(--card-shadow);
      cursor: pointer;
      scroll-snap-align: start;
    }
    .home-continue-bg,
    .home-continue-bg img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
    }
    .home-continue-bg img {
      display: block;
      object-fit: cover;
      filter: blur(90px) saturate(0.65);
      transform: scale(1.16);
    }
    .home-continue-shade {
      position: absolute;
      inset: 0;
      background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.28) 58%, rgba(0, 0, 0, 0.12)),
        linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 48%, rgba(0, 0, 0, 0.74));
    }
    .home-continue-label {
      position: absolute;
      top: 16px;
      left: 20px;
      z-index: 1;
      display: flex;
      align-items: center;
      gap: 6px;
      color: rgba(255, 255, 255, 0.92);
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0;
    }
    .home-continue-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--hot);
      box-shadow: 0 0 10px rgba(255, 83, 72, 0.85);
    }
    .home-continue-copy {
      position: absolute;
      z-index: 1;
      left: 20px;
      right: 96px;
      bottom: 44px;
      max-width: 70%;
      min-width: 0;
    }
    .home-continue-title {
      margin: 0;
      overflow: hidden;
      color: #fff;
      font-size: clamp(17px, 2.1vw, 24px);
      font-weight: 800;
      line-height: 1.35;
      letter-spacing: 0;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .home-continue-meta {
      margin: 8px 0 0;
      overflow: hidden;
      color: rgba(255, 255, 255, 0.86);
      font-size: 13px;
      letter-spacing: 0;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .home-continue-play {
      position: absolute;
      z-index: 2;
      right: 38px;
      top: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 52px;
      height: 52px;
      border: 1px solid rgba(255, 255, 255, 0.55);
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.13);
      backdrop-filter: blur(6px);
      color: #fff;
      transform: translateY(-50%);
      transition: background 0.2s ease, transform 0.18s var(--ease);
    }
    .home-continue-play .icon {
      width: 22px;
      height: 22px;
      margin-left: 2px;
      fill: currentColor;
      stroke-width: 2.4;
    }
    .home-continue-card:hover .home-continue-play {
      background: rgba(255, 83, 72, 0.86);
      border-color: rgba(255, 83, 72, 0.9);
    }
    .home-continue-card:active {
      transform: scale(0.995);
    }
    .home-continue-progress {
      position: absolute;
      z-index: 2;
      right: 16px;
      bottom: 16px;
      left: 16px;
      height: 6px;
      overflow: hidden;
      border-radius: 3px;
      background: rgba(255, 255, 255, 0.22);
    }
    .home-continue-progress i {
      display: block;
      height: 100%;
      border-radius: 3px;
      background: linear-gradient(90deg, #ff8a3d, var(--hot));
      box-shadow: 0 0 10px rgba(255, 83, 72, 0.55);
    }
    @media (max-width: 640px) {
      .home-continue-card {
        min-height: 196px;
      }
      .home-continue-label {
        top: 12px;
        left: 14px;
      }
      .home-continue-copy {
        right: 72px;
        bottom: 38px;
        left: 14px;
        max-width: 76%;
      }
      .home-continue-title {
        font-size: 16px;
      }
      .home-continue-meta {
        margin-top: 6px;
        font-size: 12px;
      }
      .home-continue-play {
        right: 14px;
        width: 44px;
        height: 44px;
      }
      .home-continue-play .icon {
        width: 19px;
        height: 19px;
      }
      .home-continue-progress {
        right: 12px;
        bottom: 11px;
        left: 12px;
      }
    }
    .hscroll {
      display: grid;
      grid-auto-flow: column;
      grid-auto-columns: 218px;
      gap: 14px;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      padding: 2px 2px 10px;
    }
    .hscroll-dragging,
    .hscroll-dragging * {
      cursor: grabbing !important;
      user-select: none !important;
    }
    .hscroll-dragging {
      scroll-behavior: auto !important;
      scroll-snap-type: none !important;
    }
    @media (min-width: 981px) {
      .hscroll {
        grid-auto-flow: row;
        grid-auto-columns: auto;
        grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
        gap: 18px 16px;
        overflow: visible;
        scroll-snap-type: none;
      }
    }
    .video-card {
      position: relative;
      min-width: 0;
      cursor: pointer;
      scroll-snap-align: start;
    }
    .hscroll .video-card,
    .grid-results .video-card,
    .channel-grid .video-card {
      animation: cardIn 0.48s var(--ease) both;
    }
    .hscroll .video-card:nth-child(2),
    .grid-results .video-card:nth-child(2),
    .channel-grid .video-card:nth-child(2) {
      animation-delay: 0.04s;
    }
    .hscroll .video-card:nth-child(3),
    .grid-results .video-card:nth-child(3),
    .channel-grid .video-card:nth-child(3) {
      animation-delay: 0.08s;
    }
    .hscroll .video-card:nth-child(4),
    .grid-results .video-card:nth-child(4),
    .channel-grid .video-card:nth-child(4) {
      animation-delay: 0.12s;
    }
    .hscroll .video-card:nth-child(5),
    .grid-results .video-card:nth-child(5),
    .channel-grid .video-card:nth-child(5) {
      animation-delay: 0.16s;
    }
    .hscroll .video-card:nth-child(6),
    .grid-results .video-card:nth-child(6),
    .channel-grid .video-card:nth-child(6) {
      animation-delay: 0.2s;
    }
    .hscroll .video-card:nth-child(n+7),
    .grid-results .video-card:nth-child(n+7),
    .channel-grid .video-card:nth-child(n+7) {
      animation-delay: 0.24s;
    }
    .search-card {
      display: flex;
      flex-direction: column;
      height: 330px;
    }
    .search-card .poster {
      aspect-ratio: auto;
      flex: 1 1 auto;
      min-height: 0;
    }
    .search-card .poster img {
      object-position: center 35%;
    }
    .poster {
      position: relative;
      overflow: hidden;
      aspect-ratio: 3 / 4;
      border-radius: 9px;
      background: #151b22;
      transition: transform 0.28s var(--ease), box-shadow 0.32s ease;
    }
    .poster::before {
      content: "";
      position: absolute;
      inset: -2px;
      z-index: 1;
      pointer-events: none;
      background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, 0.14) 46%, transparent 60%);
      transform: translateX(-120%) skewX(-14deg);
      transition: transform 0.75s var(--ease);
    }
    .poster::after {
      content: "";
      position: absolute;
      inset: 0;
      border: 1px solid rgba(255, 255, 255, 0.06);
      border-radius: inherit;
      pointer-events: none;
    }
    .poster img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.35s ease;
    }
    @media (hover: hover) {
      .video-card:hover .poster {
        transform: translateY(-4px);
        box-shadow: var(--card-shadow-hover);
      }
      .video-card:hover .poster::before {
        transform: translateX(130%) skewX(-14deg);
      }
      .video-card:hover .poster img {
        transform: scale(1.055);
      }
      .video-card:hover .card-title {
        color: var(--accent);
      }
    }
    .badge {
      position: absolute;
      top: 8px;
      left: 8px;
      padding: 4px 7px;
      border-radius: 5px;
      background: rgba(7, 9, 12, 0.82);
      color: var(--amber);
      font-size: 11px;
      font-weight: 800;
      transition: transform 0.2s var(--ease);
    }
    @media (hover: hover) {
      .video-card:hover .badge {
        transform: translateY(2px) scale(1.06);
      }
    }
    .duration {
      position: absolute;
      right: 8px;
      bottom: 8px;
      padding: 3px 6px;
      border-radius: 5px;
      background: rgba(4, 6, 8, 0.76);
      color: #dce5e8;
      font-size: 11px;
      transition: transform 0.2s var(--ease), background-color 0.2s ease;
    }
    @media (hover: hover) {
      .video-card:hover .duration {
        transform: translateY(-2px);
        background: rgba(4, 6, 8, 0.9);
      }
    }
    .score {
      position: absolute;
      right: 8px;
      bottom: 8px;
      padding: 3px 6px;
      border-radius: 5px;
      background: rgba(4, 6, 8, 0.76);
      color: #ffd27a;
      font-size: 11px;
      font-weight: 800;
      transition: transform 0.2s var(--ease);
    }
    @media (hover: hover) {
      .video-card:hover .score {
        transform: translateY(-2px);
      }
    }
    .corner-status {
      max-width: calc(100% - 16px);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .card-title {
      margin: 10px 2px 4px;
      overflow: hidden;
      color: var(--text);
      font-size: 14px;
      font-weight: 700;
      line-height: 1.4;
      text-overflow: ellipsis;
      white-space: nowrap;
      transition: color 0.22s ease;
    }
    .card-meta {
      margin: 0 2px;
      color: var(--dim);
      font-size: 12px;
    }
    .grid-results {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
      gap: 16px;
      margin-top: 18px;
    }
    .star-section {
      grid-column: 1 / -1;
      margin-bottom: 8px;
      padding: 18px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel);
    }
    .star-head {
      display: flex;
      align-items: center;
      gap: 16px;
    }
    .star-avatar {
      width: 84px;
      height: 84px;
      flex: 0 0 auto;
      border-radius: 50%;
      object-fit: cover;
      background: #151b22;
    }
    .star-info {
      min-width: 0;
    }
    .star-name {
      margin: 0 0 5px;
      font-size: 23px;
      font-weight: 800;
      color: var(--text);
    }
    .star-role {
      margin: 0;
      color: var(--dim);
      font-size: 13px;
      line-height: 1.55;
      overflow-wrap: anywhere;
    }
    .star-works-head {
      display: flex;
      align-items: baseline;
      gap: 10px;
      margin: 22px 0 12px;
      color: var(--text);
      font-size: 16px;
      font-weight: 800;
    }
    .star-works-head span:last-child {
      color: var(--dim);
      font-size: 12px;
      font-weight: 600;
    }
    .star-works-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
      gap: 16px;
    }
    .search-divider {
      display: flex;
      align-items: center;
      grid-column: 1 / -1;
      margin: 20px 0 2px;
      color: var(--text);
      font-size: 17px;
      font-weight: 800;
    }
    .star-more {
      display: block;
      grid-column: 1 / -1;
      margin: 18px auto 0;
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 9px 20px;
      background: var(--panel);
      color: var(--text);
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
    }
    .star-more:hover {
      border-color: var(--accent);
    }
    .star-more:disabled {
      opacity: 0.6;
      cursor: default;
    }
    .star-pager {
      grid-column: 1 / -1;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
      gap: 10px;
      margin: 18px 0 4px;
      min-height: 38px;
    }
    .star-pager.loading {
      opacity: 0.65;
    }
    .star-page-btn,
    .star-page-num {
      height: 34px;
      min-width: 34px;
      padding: 0 10px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel);
      color: var(--text);
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
    }
    .star-page-btn:disabled {
      opacity: 0.5;
      cursor: default;
    }
    .star-page-num.active {
      border-color: var(--accent);
      background: var(--accent);
      color: #fff;
    }
    .star-page-select-wrap {
      position: relative;
      display: inline-flex;
      align-items: center;
    }
    .star-page-select {
      height: 34px;
      min-width: 96px;
      padding: 0 32px 0 12px;
      appearance: none;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel);
      color: var(--text);
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
    }
    .star-page-select:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 2px;
    }
    .star-page-select-wrap::after {
      position: absolute;
      top: 50%;
      right: 13px;
      width: 8px;
      height: 8px;
      border-right: 2px solid var(--muted);
      border-bottom: 2px solid var(--muted);
      content: "";
      pointer-events: none;
      transform: translateY(-70%) rotate(45deg);
    }
    .star-page-nums {
      display: flex;
      align-items: center;
      gap: 6px;
      max-width: 100%;
      padding: 2px;
      overflow-x: auto;
      scrollbar-width: none;
    }
    .star-page-nums::-webkit-scrollbar {
      display: none;
    }
    .star-page-ellipsis {
      padding: 0 2px;
      color: var(--dim);
    }
    .star-page-loading {
      color: var(--dim);
      font-size: 13px;
    }
    .channel-sections {
      grid-column: 1 / -1;
    }
    .channel-grid {
      grid-column: 1 / -1;
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
    }
    .channel-grid .video-card {
      width: calc((100% - 48px) / 4);
      min-width: 0;
    }
    .channel-grid-head {
      grid-column: 1 / -1;
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .channel-grid-head .row-title {
      margin: 0;
    }
    .channel-status {
      grid-column: 1 / -1;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      min-height: 54px;
      margin: 22px 0 4px;
      color: var(--dim);
      font-size: 13px;
    }
    .channel-status.idle {
      min-height: 0;
      margin: 0;
    }
    .channel-status.error {
      color: #ff8f8f;
    }
    .mini-spinner {
      width: 16px;
      height: 16px;
      border: 1px solid var(--line);
      border-top-color: var(--accent);
      border-radius: 50%;
      animation: spin 0.7s linear infinite;
    }
    .load-more-btn {
      border: 1px solid var(--line);
      border-radius: 7px;
      background: rgba(255, 255, 255, 0.06);
      color: var(--text);
      padding: 8px 16px;
      cursor: pointer;
    }
    .load-more-btn:hover {
      background: rgba(255, 255, 255, 0.1);
    }
    @keyframes spin {
      to {
        transform: rotate(360deg);
      }
    }
    .short-head {
      display: flex;
      align-items: baseline;
      gap: 12px;
      min-width: 0;
      margin: 0 4px 0 0;
    }
    .short-head .row-title {
      margin: 0;
    }
    .short-tabs {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      padding: 2px 0 18px;
      overflow-x: auto;
      scrollbar-width: none;
    }
    .short-tabs::-webkit-scrollbar {
      display: none;
    }
    .short-grid {
      grid-column: 1 / -1;
    }
    .comic-grid {
      grid-column: 1 / -1;
    }
    .comic-grid .video-card {
      width: calc((100% - 48px) / 4);
    }
    .comic-card .poster {
      aspect-ratio: 16 / 9;
      border-radius: 8px;
    }
    .comic-card .poster img {
      object-position: center 25%;
    }
    .comic-card .card-title {
      margin-top: 10px;
      font-size: 15px;
    }
    .comic-card .card-meta {
      margin-top: 4px;
    }
    .detail-bar {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 14px;
    }
    .back-btn {
      display: none;
      min-height: 36px;
      padding: 0 12px;
    }
    body.app-subpage .back-btn {
      display: inline-flex;
    }
    body:not(.app-subpage) #detailView .detail-bar {
      display: none;
    }
    .back-btn .icon {
      width: 16px;
      height: 16px;
    }
    .detail-hero {
      position: relative;
      min-height: 360px;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: linear-gradient(145deg, #141c25, #0c1015);
      animation: detailReveal 0.5s var(--ease) both;
    }
    .detail-bg {
      position: absolute;
      inset: 0;
      background-size: cover;
      background-position: center 28%;
      transform: scale(1.02);
    }
    .detail-fade {
      position: absolute;
      inset: 0;
      background:
        linear-gradient(90deg, rgba(7, 9, 12, 0.97) 10%, rgba(7, 9, 12, 0.78) 46%, rgba(7, 9, 12, 0.18) 82%),
        linear-gradient(180deg, rgba(7, 9, 12, 0.08), rgba(7, 9, 12, 0.9));
    }
    .detail-info {
      position: relative;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      max-width: 780px;
      min-height: 360px;
      padding: 42px 44px;
    }
    .detail-info > * {
      animation: featureIn 0.45s var(--ease) both;
    }
    .detail-tags {
      animation-delay: 0.04s;
    }
    .detail-title {
      animation-delay: 0.09s;
    }
    .detail-meta,
    .detail-stars {
      animation-delay: 0.14s;
    }
    .detail-actions {
      animation-delay: 0.2s;
    }
    .detail-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 12px;
    }
    .detail-tag {
      padding: 5px 10px;
      border-radius: 6px;
      background: rgba(46, 229, 157, 0.14);
      color: var(--accent);
      font-size: 12px;
      font-weight: 800;
    }
    .detail-tag.plain {
      background: rgba(255, 255, 255, 0.08);
      color: #c2ced3;
    }
    .detail-title {
      margin: 0;
      color: var(--text);
      font-size: 36px;
      line-height: 1.15;
      letter-spacing: 0;
      text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
    }
    .detail-meta,
    .detail-stars {
      margin: 12px 0 0;
      color: #d7e0e3;
      font-size: 14px;
      line-height: 1.6;
    }
    .detail-stars {
      color: var(--muted);
    }
    .detail-intro {
      margin: 12px 0 0;
      max-width: 900px;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.75;
      white-space: pre-line;
    }
    .detail-credit-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
      gap: 10px;
      margin-top: 14px;
    }
    .credit-item {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
      width: 100%;
      padding: 10px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel-2);
      color: inherit;
      font: inherit;
      text-align: left;
      cursor: pointer;
      transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.18s var(--ease);
    }
    .credit-item:hover {
      border-color: var(--accent);
      background: var(--panel-3);
    }
    .credit-item:active {
      transform: scale(0.98);
    }
    .credit-face {
      width: 42px;
      height: 42px;
      flex: none;
      overflow: hidden;
      border-radius: 50%;
      background: var(--panel-3);
    }
    .credit-avatar {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
    }
    .credit-avatar.initial {
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      font-weight: 800;
      color: var(--accent);
    }
    .credit-copy {
      min-width: 0;
    }
    .credit-name {
      max-width: 180px;
      overflow: hidden;
      font-size: 13px;
      font-weight: 800;
      line-height: 1.35;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .credit-role {
      max-width: 180px;
      margin-top: 3px;
      overflow: hidden;
      color: var(--muted);
      font-size: 11px;
      line-height: 1.3;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .custom-dialog-backdrop {
      position: fixed;
      inset: 0;
      z-index: 9999;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 18px;
      background: rgba(5, 10, 14, 0.72);
      backdrop-filter: blur(4px);
    }
    .custom-dialog {
      width: min(440px, 100%);
      padding: 18px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: var(--panel-1);
      box-shadow: 0 18px 54px rgba(0, 0, 0, 0.42);
    }
    .custom-dialog-head {
      display: flex;
      align-items: flex-start;
      gap: 12px;
    }
    .custom-dialog-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      flex: none;
      border-radius: 8px;
      background: rgba(46, 229, 157, 0.14);
      color: var(--accent);
    }
    .custom-dialog-title {
      color: var(--text);
      font-size: 16px;
      font-weight: 800;
      line-height: 1.35;
    }
    .custom-dialog-text {
      margin-top: 5px;
      overflow-wrap: anywhere;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.65;
    }
    .custom-dialog-text a {
      color: var(--accent);
      text-decoration: none;
    }
    .custom-dialog-text a:hover {
      text-decoration: underline;
    }
    .custom-dialog-actions {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      margin-top: 18px;
    }
    .detail-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 22px;
    }
    #detailPlayTop {
      position: relative;
    }
    .detail-continue-badge {
      position: absolute;
      top: -9px;
      right: -10px;
      z-index: 2;
      padding: 3px 8px;
      border-radius: 999px;
      background: var(--hot);
      color: #fff;
      font-size: 11px;
      font-weight: 800;
      line-height: 1;
      box-shadow: 0 4px 12px rgba(255, 83, 72, 0.35);
      white-space: nowrap;
      pointer-events: none;
    }
    .detail-hint {
      align-self: center;
      min-height: 18px;
      color: var(--ok);
      font-size: 12px;
      font-weight: 700;
    }
    .detail-hint.error {
      color: var(--danger);
    }
    .detail-body {
      margin-top: 28px;
    }
    .season-tabs {
      display: flex;
      gap: 8px;
      overflow-x: auto;
      padding: 2px 2px 8px;
    }
    .season-btn {
      flex: none;
      min-height: 36px;
      padding: 0 14px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel-2);
      color: var(--muted);
      font-weight: 700;
      white-space: nowrap;
      transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, transform 0.18s var(--ease), box-shadow 0.22s var(--ease);
    }
    .season-btn:hover {
      border-color: var(--accent);
      color: var(--text);
    }
    .season-btn.active {
      border-color: var(--accent);
      background: var(--accent);
      color: #06130c;
      box-shadow: 0 8px 22px rgba(46, 229, 157, 0.22);
    }
    .season-btn:active {
      transform: scale(0.96);
    }
    .detail-episodes {
      max-height: 460px;
      margin-top: 14px;
      padding-right: 4px;
      overflow-y: auto;
    }
    .state-block {
      padding: 64px 20px;
      border: 1px dashed var(--line);
      border-radius: 12px;
      color: var(--muted);
      text-align: center;
    }
    .search-empty-block {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 18px;
      padding: 44px 20px;
    }
    .search-cross-source-btn {
      min-height: 40px;
      padding: 0 18px;
    }
    .skeleton-card {
      aspect-ratio: 3 / 4;
      border-radius: 9px;
      position: relative;
      overflow: hidden;
      background: linear-gradient(110deg, #12171d 35%, #1a2128 50%, #12171d 65%);
      background-size: 240% 100%;
      animation: shimmer 1.1s linear infinite;
    }
    .skeleton-card::after {
      content: "";
      position: absolute;
      inset: 0;
      border: 1px solid rgba(255, 255, 255, 0.04);
      border-radius: inherit;
    }
    @keyframes shimmer {
      to {
        background-position: -240% 0;
      }
    }
    @keyframes cardIn {
      from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
      }
      to {
        opacity: 1;
        transform: none;
      }
    }
    @keyframes dropdownIn {
      from {
        opacity: 0;
        transform: translateY(-6px) scale(0.985);
      }
      to {
        opacity: 1;
        transform: none;
      }
    }
    @keyframes featureFade {
      from {
        opacity: 0;
      }
      to {
        opacity: 1;
      }
    }
    @keyframes featureIn {
      from {
        opacity: 0;
        transform: translateY(16px);
      }
      to {
        opacity: 1;
        transform: none;
      }
    }
    @keyframes kenburns {
      from {
        transform: scale(1.04) translateX(0);
      }
      to {
        transform: scale(1.12) translateX(-1.4%) translateY(-1%);
      }
    }
    @keyframes detailReveal {
      from {
        opacity: 0;
        transform: translateY(18px) scale(0.985);
      }
      to {
        opacity: 1;
        transform: none;
      }
    }
    @keyframes episodeIn {
      from {
        opacity: 0;
        transform: translateY(10px) scale(0.97);
      }
      to {
        opacity: 1;
        transform: none;
      }
    }
    @keyframes overlayIn {
      from {
        opacity: 0;
      }
      to {
        opacity: 1;
      }
    }
    @keyframes viewIn {
      from {
        opacity: 0;
        transform: translateY(10px);
      }
      to {
        opacity: 1;
        transform: none;
      }
    }
    @keyframes sheetIn {
      from {
        opacity: 0;
        transform: translateY(22px) scale(0.97);
      }
      to {
        opacity: 1;
        transform: none;
      }
    }
    @keyframes sheetUp {
      from {
        opacity: 0;
        transform: translateY(26px);
      }
      to {
        opacity: 1;
        transform: none;
      }
    }
    @keyframes sheetFromTop {
      from {
        opacity: 0;
        transform: translateY(-26px);
      }
      to {
        opacity: 1;
        transform: none;
      }
    }
    .player-overlay {
      position: fixed;
      inset: 0;
      z-index: 60;
      display: grid;
      place-items: center;
      overflow: auto;
      padding: 18px;
      background: rgba(4, 6, 8, 0.9);
      backdrop-filter: blur(10px);
    }
    .player-overlay:not(.hidden) {
      animation: overlayIn 0.26s var(--ease) both;
    }
    .player-overlay:not(.hidden) .player-shell {
      animation: sheetIn 0.34s var(--ease) both;
    }
    .player-shell {
      display: flex;
      flex-direction: column;
      position: relative;
      width: min(1120px, 100%);
      height: min(880px, calc(100vh - 36px));
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: var(--panel);
      box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
      transform-origin: center;
    }
    .player-head {
      display: flex;
      flex: 0 0 auto;
      align-items: center;
      gap: 10px;
      padding: 8px 14px;
      border-bottom: 1px solid var(--line-soft);
    }
    .player-head-actions {
      display: flex;
      flex: 0 0 auto;
      align-items: center;
      gap: 8px;
    }
    .player-title-wrap {
      flex: 1;
      min-width: 0;
    }
    .player-title {
      flex: 1;
      min-width: 0;
      margin: 0;
      overflow: hidden;
      color: var(--text);
      font-size: 16px;
      font-weight: 700;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .player-menu-backdrop {
      position: fixed;
      inset: 0;
      z-index: 58;
      background: transparent;
    }
    .player-menu {
      position: absolute;
      top: 56px;
      right: 14px;
      z-index: 70;
      width: 252px;
      max-width: calc(100vw - 24px);
      padding: 8px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: var(--panel);
      box-shadow: 0 18px 54px rgba(0, 0, 0, 0.45);
    }
    .player-menu:not(.hidden) {
      animation: menuPop 0.16s var(--ease) both;
    }
    @keyframes menuPop {
      from {
        opacity: 0;
        transform: translateY(-4px) scale(0.98);
      }
      to {
        opacity: 1;
        transform: none;
      }
    }
    .player-menu-item,
    .player-quality-option {
      display: flex;
      width: 100%;
      min-height: 46px;
      align-items: center;
      gap: 10px;
      padding: 0 12px;
      border: 0;
      border-radius: 8px;
      background: transparent;
      color: var(--text);
      font-size: 14px;
      font-weight: 600;
      text-align: left;
      cursor: pointer;
    }
    .player-menu-item:hover,
    .player-menu-item:focus-visible,
    .player-quality-option:hover {
      background: rgba(46, 229, 157, 0.08);
    }
    .player-menu-item .icon {
      color: var(--muted);
    }
    .player-menu-text {
      flex: 1;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .player-menu-note {
      color: var(--muted);
      font-size: 12px;
      font-weight: 600;
    }
    #playerMenuEpisodes {
      display: none;
    }
    #playerMenuAutoNext {
      display: none;
    }
    .player-menu-item.active {
      background: rgba(46, 229, 157, 0.1);
      color: var(--accent);
    }
    .player-menu-item.active .icon,
    .player-menu-item.active .player-menu-note {
      color: var(--accent);
    }
    .player-menu-group {
      display: flex;
      flex-direction: column;
    }
    .player-menu-speed-group {
      display: none;
    }
    .player-menu-volume-row {
      display: flex;
      width: 100%;
      min-height: 46px;
      align-items: center;
      gap: 10px;
      padding: 0 12px;
    }
    .player-menu-mute {
      display: grid;
      flex: 0 0 auto;
      place-items: center;
      width: 28px;
      height: 30px;
      padding: 0;
      border: 0;
      border-radius: 8px;
      background: transparent;
      color: var(--muted);
      cursor: pointer;
    }
    .player-menu-mute:hover,
    .player-menu-mute:focus-visible {
      background: rgba(46, 229, 157, 0.08);
      color: var(--text);
    }
    .player-menu-mute .icon {
      width: 18px;
      height: 18px;
    }
    .player-menu-volume {
      -webkit-appearance: none;
      appearance: none;
      flex: 1 1 auto;
      min-width: 64px;
      height: 4px;
      margin: 0;
      border: 0;
      border-radius: 999px;
      background: linear-gradient(90deg, var(--accent) 0%, var(--accent) var(--bar-fill, 0%), rgba(255, 255, 255, 0.32) var(--bar-fill, 0%));
      cursor: pointer;
      outline: none;
    }
    .player-quality-options {
      display: grid;
      gap: 4px;
      padding: 4px 8px 6px 0;
    }
    .player-menu-speed-group .player-speed-option {
      min-height: 38px;
      padding: 0 10px 0 32px;
      color: var(--muted);
      font-size: 13px;
      font-weight: 600;
    }
    .player-menu-speed-group .player-speed-option .player-speed-bullet {
      width: 8px;
      height: 8px;
    }
    .player-menu-speed-group .player-speed-option .icon {
      width: 14px;
      height: 14px;
    }
    .player-menu-speed-group .player-speed-option.active {
      border: 1px solid rgba(46, 229, 157, 0.35);
      background: rgba(46, 229, 157, 0.12);
      color: var(--accent);
    }
    .player-quality-option {
      min-height: 38px;
      padding: 0 10px 0 32px;
      color: var(--muted);
      font-size: 13px;
      font-weight: 600;
    }
    .player-quality-bullet {
      width: 8px;
      height: 8px;
      flex: 0 0 auto;
      border-radius: 50%;
      background: var(--line);
    }
    .player-quality-option.active {
      border: 1px solid rgba(46, 229, 157, 0.35);
      background: rgba(46, 229, 157, 0.12);
      color: var(--accent);
    }
    .player-quality-empty {
      padding: 6px 12px 8px 32px;
      color: var(--muted);
      font-size: 12px;
    }
    .player-shell:fullscreen {
      width: 100vw;
      height: 100vh;
      border-radius: 0;
    }
    .player-frame:fullscreen,
    .player-frame:-webkit-full-screen {
      width: 100vw;
      height: 100vh;
      border-radius: 0;
      background: #000;
    }
    .player-frame {
      position: relative;
      flex: 1 1 auto;
      width: 100%;
      height: auto;
      min-height: 0;
      background: #000;
    }
    .player-overlay.player-custom-fullscreen {
      padding: 0;
      place-items: stretch;
    }
    .player-shell.player-custom-fullscreen {
      display: flex;
      flex-direction: column;
      width: 100vw;
      height: 100vh;
      height: 100dvh;
      max-width: 100vw;
      max-height: 100vh;
      max-height: 100dvh;
      border: 0;
      border-radius: 0;
    }
    .player-shell.player-custom-fullscreen .player-head,
    .player-shell.player-custom-fullscreen .episodes-bar,
    .player-shell.player-custom-fullscreen .player-menu,
    .player-shell.player-custom-fullscreen .player-menu-backdrop,
    .player-shell.player-custom-fullscreen .player-foot {
      display: none;
    }
    .player-shell.player-custom-fullscreen .player-frame {
      flex: 1 1 auto;
      height: auto;
      min-height: 0;
      border-radius: 0;
    }
    .player-loading {
      position: absolute;
      inset: 0;
      z-index: 9;
      display: grid;
      place-items: center;
      padding: 24px;
      background: rgba(3, 5, 7, 0.88);
    }
    .player-loading.hidden {
      display: none;
    }
    .player-load-card {
      width: min(360px, 100%);
      padding: 24px 22px 22px;
      border: 1px solid #2a3540;
      border-radius: 14px;
      background: #10161b;
      text-align: center;
      box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
    }
    .player-load-ring {
      width: 54px;
      height: 54px;
      margin: 0 auto 16px;
      border: 3px solid #27323d;
      border-top-color: var(--accent);
      border-radius: 50%;
      animation: playerLoadSpin 0.8s linear infinite;
    }
    @keyframes playerLoadSpin {
      to { transform: rotate(360deg); }
    }
    .player-loading[data-state="parsed"] .player-load-ring,
    .player-loading[data-state="success"] .player-load-ring {
      border: 3px solid var(--ok);
      animation: none;
    }
    .player-loading[data-state="error"] .player-load-ring {
      border: 3px solid var(--danger);
      animation: none;
    }
    .player-load-status {
      color: var(--text);
      font-size: 16px;
      font-weight: 800;
    }
    .player-load-reason {
      margin-top: 8px;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.6;
      overflow-wrap: anywhere;
      white-space: pre-wrap;
    }
    .player-load-actions {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 10px;
      min-height: 40px;
      margin-top: 16px;
    }
    .player-load-actions .ghost-btn {
      display: inline-flex;
    }
    .episodes-bar {
      flex: 0 0 auto;
      max-height: 280px;
      min-height: 0;
      padding: 12px 18px;
      border-top: 1px solid var(--line-soft);
      background: #0d1116;
      overflow: hidden;
    }
    .episodes-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 10px;
    }
    .episodes-title {
      min-width: 0;
      overflow: hidden;
      color: var(--text);
      font-size: 14px;
      font-weight: 700;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .episodes-count {
      flex: none;
      color: var(--dim);
      font-size: 12px;
    }
    .episodes-head-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
    }
    .type-tabs {
      display: flex;
      align-items: center;
      gap: 8px;
      margin: 0 0 8px;
      min-height: 25px;
      padding-bottom: 0;
      overflow-x: auto;
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;
    }
    .type-tabs.hidden {
      display: none;
    }
    .type-pill {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 auto;
      min-height: 25px;
      height: 25px;
      padding: 0 13px;
      line-height: normal;
      border: 1px solid var(--pill-line, var(--line));
      border-radius: 999px;
      background: var(--pill-bg, var(--panel-2));
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
      cursor: pointer;
      white-space: nowrap;
      transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, transform 0.16s var(--ease);
    }
    .type-pill:hover {
      border-color: var(--accent);
      color: var(--text);
    }
    .type-pill.active {
      border-color: var(--accent);
      background: var(--accent);
      color: #06130c;
    }
    .type-pill:active {
      transform: scale(0.96);
    }
    .player-panel-tabs {
      display: flex;
      flex: 0 0 auto;
      gap: 0;
      margin: 0 0 10px;
      border-bottom: 1px solid var(--line);
    }
    .player-panel-tabs .type-pill {
      position: relative;
      flex: 1 1 0;
      height: 36px;
      padding: 0 10px;
      border: 0;
      border-radius: 0;
      background: transparent;
      color: var(--muted);
      font-size: 14px;
      box-shadow: none;
    }
    .player-panel-tabs .type-pill::after {
      position: absolute;
      right: 14px;
      bottom: -1px;
      left: 14px;
      height: 3px;
      border-radius: 3px 3px 0 0;
      background: transparent;
      content: "";
    }
    .player-panel-tabs .type-pill:hover {
      background: transparent;
      color: var(--text);
    }
    .player-panel-tabs .type-pill.active {
      background: transparent;
      color: var(--text);
    }
    .player-panel-tabs .type-pill.active::after {
      background: var(--accent);
    }
    .player-panel-tabs .type-pill:active {
      transform: none;
    }
    .comment-panel {
      display: flex;
      flex: 1 1 auto;
      flex-direction: column;
      gap: 10px;
      min-height: 0;
      max-height: none;
      overflow-y: auto;
      padding-right: 4px;
    }
    .comment-panel.hidden {
      display: none;
    }
    .recommend-panel {
      display: flex;
      flex: 1 1 auto;
      flex-direction: column;
      gap: 10px;
      min-height: 0;
      max-height: none;
      overflow-y: auto;
      padding-right: 4px;
    }
    .recommend-panel.hidden {
      display: none;
    }
    .comment-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }
    .comment-total,
    .comment-page-info,
    .comment-page-label {
      color: var(--dim);
      font-size: 12px;
    }
    .comment-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .comment-item {
      display: flex;
      gap: 10px;
      padding: 10px;
      border: 1px solid var(--line-soft);
      border-radius: 8px;
      background: var(--panel-2);
    }
    .comment-avatar {
      position: relative;
      flex: 0 0 auto;
      width: 34px;
      height: 34px;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 50%;
      background: var(--panel);
    }
    .comment-avatar img {
      position: relative;
      z-index: 1;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .comment-avatar-fallback {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--dim);
      font-size: 13px;
      font-weight: 800;
    }
    .comment-avatar img:not([style*="display: none"]) + .comment-avatar-fallback {
      display: none;
    }
    .comment-body {
      flex: 1;
      min-width: 0;
    }
    .comment-meta-row {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .comment-username {
      min-width: 0;
      overflow: hidden;
      color: var(--text);
      font-size: 12px;
      font-weight: 800;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .comment-vip {
      flex: none;
      padding: 1px 5px;
      border: 1px solid rgba(230, 178, 52, 0.45);
      border-radius: 4px;
      background: rgba(230, 178, 52, 0.12);
      color: #f0c35a;
      font-size: 10px;
      font-weight: 800;
    }
    .comment-time {
      flex: none;
      margin-left: auto;
      color: var(--dim);
      font-size: 11px;
    }
    .comment-text {
      margin: 6px 0 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.55;
      overflow-wrap: anywhere;
      white-space: pre-wrap;
    }
    .comment-foot {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 6px;
      color: var(--dim);
      font-size: 11px;
    }
    .comment-empty {
      padding: 18px 8px;
      text-align: center;
      color: var(--dim);
      font-size: 13px;
    }
    .comment-status {
      padding: 14px 8px;
      text-align: center;
      color: var(--dim);
      font-size: 13px;
    }
    .comment-status.error {
      color: #ff8f8f;
    }
    .comment-status.hidden {
      display: none;
    }
    .comment-pager {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      padding: 4px 0 2px;
    }
    .comment-pager.hidden {
      display: none;
    }
    .comment-page-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      height: 28px;
      padding: 0 12px;
      border: 1px solid var(--line);
      border-radius: 7px;
      background: var(--panel-2);
      color: var(--text);
      font-size: 12px;
      font-weight: 800;
      cursor: pointer;
    }
    .comment-page-btn:hover:not(:disabled) {
      border-color: var(--accent);
    }
    .comment-page-btn:disabled {
      opacity: 0.45;
      cursor: not-allowed;
    }
    .episodes-more-btn {
      display: inline-flex;
      flex: none;
      align-items: center;
      justify-content: center;
      height: 30px;
      padding: 0 11px;
      border: 1px solid var(--line);
      border-radius: 7px;
      background: var(--panel-2);
      color: var(--accent);
      font-size: 12px;
      font-weight: 800;
      cursor: pointer;
      transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.16s var(--ease);
    }
    .episodes-more-btn:hover,
    .episodes-more-btn:focus-visible {
      border-color: var(--accent);
      background: rgba(46, 229, 157, 0.09);
    }
    .episodes-more-btn:active {
      transform: scale(0.96);
    }
    .episodes-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
      gap: 8px;
      max-height: 170px;
      padding-right: 4px;
      overflow-y: auto;
    }
    .episode-btn {
      position: relative;
      min-height: 38px;
      padding: 6px 10px;
      overflow: hidden;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel-2);
      color: var(--muted);
      font-size: 13px;
      font-weight: 700;
      text-overflow: ellipsis;
      white-space: nowrap;
      animation: episodeIn 0.32s var(--ease) both;
      transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, transform 0.16s var(--ease);
    }
    .episode-btn:hover {
      border-color: var(--accent);
      color: var(--text);
    }
    .episode-btn.active {
      border-color: var(--accent);
      background: var(--accent);
      color: #06130c;
    }
    .episode-btn:active {
      transform: scale(0.96);
    }
    .episode-btn.is-unavailable,
    .episode-row.is-unavailable,
    .episode-card.is-unavailable,
    .episode-sheet-item.is-unavailable {
      cursor: not-allowed;
      opacity: 0.46;
      filter: saturate(0.35);
    }
    .episode-btn.is-unavailable:hover,
    .episode-btn.is-unavailable:active,
    .episode-row.is-unavailable:hover,
    .episode-row.is-unavailable:active,
    .episode-card.is-unavailable:hover,
    .episode-card.is-unavailable:active,
    .episode-card.is-unavailable:focus-visible,
    .episode-sheet-item.is-unavailable:hover,
    .episode-sheet-item.is-unavailable:active,
    .episode-sheet-item.is-unavailable:focus-visible {
      border-color: var(--line);
      background: var(--panel-2);
      color: var(--muted);
      box-shadow: none;
      transform: none;
    }
    .episode-card.is-unavailable .episode-card-media {
      filter: grayscale(1);
    }
    .episode-card.is-unavailable .episode-card-title {
      color: var(--muted);
      font-weight: 700;
    }
    .episode-btn-tags {
      position: absolute;
      top: 2px;
      right: 3px;
      z-index: 2;
      display: flex;
      gap: 2px;
      justify-content: flex-end;
      max-width: calc(100% - 6px);
    }
    .episode-btn-tag {
      padding: 1px 4px;
      border-radius: 4px;
      font-size: 9px;
      font-weight: 800;
      line-height: 1.15;
      white-space: nowrap;
    }
    .episode-btn-tag.vip {
      background: rgba(255, 189, 62, 0.95);
      color: #2a1600;
    }
    .episode-btn-badge {
      position: absolute;
      top: 2px;
      left: 3px;
      bottom: auto;
      z-index: 2;
      padding: 1px 4px;
      border-radius: 4px;
      font-size: 9px;
      font-weight: 800;
      line-height: 1.15;
      white-space: nowrap;
      background: rgba(36, 125, 255, 0.96);
      color: #fff;
    }
    .episodes-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
      max-height: 460px;
      margin-top: 14px;
      padding-right: 4px;
      overflow-y: auto;
    }
    .player-shell .episodes-list {
      max-height: 210px;
    }
    .episode-row {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      align-items: center;
      gap: 12px;
      width: 100%;
      min-height: 48px;
      padding: 8px 12px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel-2);
      color: var(--text);
      text-align: left;
      animation: episodeIn 0.32s var(--ease) both;
      transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.16s var(--ease);
    }
    .episode-row:hover {
      border-color: var(--accent);
      background: rgba(46, 229, 157, 0.07);
    }
    .episode-row.active {
      border-color: var(--accent);
      background: rgba(46, 229, 157, 0.16);
    }
    .episode-row:active {
      transform: scale(0.99);
    }
    .episode-row-label {
      flex: none;
      max-width: 190px;
      overflow: hidden;
      color: var(--accent);
      font-size: 13px;
      font-weight: 800;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .episode-row-title {
      min-width: 0;
      overflow: hidden;
      color: var(--muted);
      font-size: 13px;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .episode-row-vip {
      flex: none;
      color: var(--amber);
      font-size: 11px;
      font-weight: 800;
    }
    .episodes-list.episode-cards {
      display: flex;
      flex-direction: row;
      align-items: stretch;
      gap: 11px;
      max-height: none;
      margin-top: 14px;
      padding: 3px 3px 10px;
      overflow-x: auto;
      overflow-y: hidden;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
    }
    .player-shell .episodes-list.episode-cards {
      max-height: none;
    }
    .episode-card {
      position: relative;
      display: block;
      flex: 0 0 auto;
      width: clamp(180px, 30vw, 260px);
      min-width: 180px;
      overflow: hidden;
      padding: 0;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel-2);
      color: var(--text);
      text-align: left;
      scroll-snap-align: start;
      animation: episodeIn 0.34s var(--ease) both;
      transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.16s var(--ease), box-shadow 0.24s var(--ease);
    }
    .episode-card:hover,
    .episode-card:focus-visible {
      border-color: var(--accent);
      transform: translateY(-2px);
      box-shadow: 0 10px 26px rgba(46, 229, 157, 0.14);
    }
    .episode-card.active {
      border-color: var(--accent);
      background: rgba(46, 229, 157, 0.09);
      box-shadow: inset 0 0 0 1px var(--accent);
    }
    .episode-card:active {
      transform: scale(0.98);
    }
    .episode-card-media {
      position: relative;
      display: block;
      width: 100%;
      aspect-ratio: 2 / 1;
      overflow: hidden;
      background: linear-gradient(145deg, #15212a, #0d1116);
    }
    .episode-card-media img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .episode-card-media.no-img::after {
      position: absolute;
      inset: 0;
      display: grid;
      place-items: center;
      color: #4c5f6e;
      content: "心心剧场";
      font-size: 14px;
      font-weight: 800;
    }
    .episode-card-vip {
      position: absolute;
      top: 8px;
      right: 8px;
      z-index: 2;
      padding: 2px 7px;
      border-radius: 6px;
      background: rgba(255, 189, 62, 0.92);
      color: #2a1600;
      font-size: 11px;
      font-weight: 800;
    }
    .episode-card-badge {
      position: absolute;
      top: 8px;
      left: 8px;
      bottom: auto;
      z-index: 3;
      padding: 2px 7px;
      border-radius: 6px;
      background: rgba(35, 125, 255, 0.96);
      color: #fff;
      font-size: 11px;
      font-weight: 800;
    }
    .episode-card-label {
      position: absolute;
      left: 8px;
      bottom: 8px;
      z-index: 2;
      max-width: calc(100% - 96px);
      padding: 3px 8px;
      border-radius: 6px;
      background: rgba(46, 229, 157, 0.92);
      color: #06130c;
      font-size: 12px;
      font-weight: 800;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .episode-card-date {
      position: absolute;
      right: 8px;
      bottom: 8px;
      z-index: 2;
      max-width: calc(100% - 16px);
      padding: 3px 8px;
      border-radius: 6px;
      background: rgba(8, 12, 18, 0.72);
      color: #fff;
      font-size: 12px;
      font-weight: 800;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .episode-card-title {
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      min-height: 2.6em;
      overflow: hidden;
      padding: 9px 10px 10px;
      color: var(--text);
      font-size: 14px;
      line-height: 1.3;
      overflow-wrap: anywhere;
    }
    .player-recommend-list {
      display: flex;
      flex: 1 1 auto;
      flex-direction: column;
      gap: 8px;
      min-height: 0;
      overflow-y: auto;
      padding: 2px 4px 6px 0;
    }
    .player-recommend-row {
      display: flex;
      align-items: center;
      gap: 10px;
      width: 100%;
      min-width: 0;
      padding: 8px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel-2);
      color: var(--text);
      text-align: left;
      cursor: pointer;
      transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.16s var(--ease);
    }
    .player-recommend-row:hover {
      border-color: var(--accent);
      background: rgba(46, 229, 157, 0.07);
    }
    .player-recommend-row:active {
      transform: scale(0.995);
    }
    .player-recommend-thumb {
      position: relative;
      flex: 0 0 auto;
      width: 96px;
      aspect-ratio: 16 / 10;
      overflow: hidden;
      border-radius: 6px;
      background: linear-gradient(145deg, #15212b, #0d1116);
    }
    .player-recommend-thumb img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .player-recommend-thumb.no-img::after {
      position: absolute;
      inset: 0;
      display: grid;
      place-items: center;
      color: #4c5f6e;
      content: "心心剧场";
      font-size: 12px;
      font-weight: 800;
    }
    .player-recommend-vip {
      position: absolute;
      top: 4px;
      right: 4px;
      z-index: 2;
      padding: 1px 5px;
      border-radius: 5px;
      background: rgba(255, 189, 62, 0.92);
      color: #2a1600;
      font-size: 10px;
      font-weight: 800;
    }
    .player-recommend-info {
      display: flex;
      flex: 1 1 auto;
      flex-direction: column;
      gap: 3px;
      min-width: 0;
    }
    .player-recommend-name {
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      color: var(--text);
      font-size: 13px;
      font-weight: 700;
      line-height: 1.35;
      overflow-wrap: anywhere;
    }
    .player-recommend-meta {
      overflow: hidden;
      color: var(--muted);
      font-size: 12px;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .player-recommend-state {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      min-height: 120px;
      color: var(--muted);
      font-size: 14px;
    }
    .episode-more {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 7px;
      flex: 0 0 auto;
      align-self: stretch;
      width: clamp(132px, 40vw, 182px);
      min-width: 128px;
      padding: 18px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
      color: var(--text);
      cursor: pointer;
      transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.18s var(--ease);
    }
    .episode-more span {
      font-size: 15px;
      font-weight: 800;
    }
    .episode-more small {
      color: var(--muted);
      font-size: 12px;
    }
    .episode-more:hover,
    .episode-more:focus-visible {
      border-color: var(--accent);
      background: rgba(46, 229, 157, 0.07);
      transform: translateY(-1px);
    }
    .episode-more:active {
      transform: scale(0.97);
    }
    video {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      background: #000;
    }
    video::-webkit-media-controls,
    video::-webkit-media-controls-panel,
    video::-webkit-media-controls-enclosure,
    video::-webkit-media-controls-overlay-play-button {
      display: none !important;
    }
    .player-time-preview {
      position: absolute;
      z-index: 10;
      display: block;
      padding: 4px 8px;
      border: 1px solid rgba(255, 255, 255, 0.18);
      border-radius: 6px;
      background: rgba(8, 12, 16, 0.94);
      color: #fff;
      font-size: 12px;
      font-weight: 700;
      font-variant-numeric: tabular-nums;
      line-height: 1.2;
      white-space: nowrap;
      pointer-events: none;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
      transform: translate(-50%, -100%);
    }
    .player-time-preview.hidden {
      display: none;
    }
    .player-seek-preview {
      position: absolute;
      z-index: 9;
      bottom: 76px;
      left: 50%;
      padding: 7px 12px;
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 6px;
      background: rgba(8, 12, 16, 0.9);
      color: #fff;
      font-size: 13px;
      font-weight: 700;
      font-variant-numeric: tabular-nums;
      line-height: 1.2;
      white-space: nowrap;
      pointer-events: none;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(8px);
      transform: translateX(-50%);
    }
    .player-seek-preview.hidden {
      display: none;
    }
    .player-bar {
      position: absolute;
      inset: auto 0 0 0;
      z-index: 8;
      display: flex;
      align-items: center;
      gap: 8px;
      min-height: 44px;
      padding: 5px 12px calc(5px + env(safe-area-inset-bottom, 0px));
      background: linear-gradient(180deg, transparent, rgba(3, 5, 8, 0.9) 32%, rgba(2, 4, 6, 0.97));
      pointer-events: auto;
      user-select: none;
      backdrop-filter: blur(4px);
    }
    .player-bar.hidden {
      display: none;
    }
    .bar-btn {
      display: grid;
      flex: 0 0 auto;
      place-items: center;
      width: 34px;
      height: 34px;
      padding: 0;
      border: 0;
      border-radius: 10px;
      background: transparent;
      color: #fff;
      cursor: pointer;
    }
    .bar-btn:hover,
    .bar-btn:focus-visible {
      background: rgba(255, 255, 255, 0.14);
    }
    .bar-btn .icon {
      width: 18px;
      height: 18px;
    }
    .bar-time {
      flex: 0 0 auto;
      min-width: 0;
      color: rgba(255, 255, 255, 0.86);
      font-size: 12px;
      font-variant-numeric: tabular-nums;
      text-align: center;
      white-space: nowrap;
    }
    .bar-time-current {
      text-align: right;
    }
    .bar-time-duration {
      text-align: left;
    }
    .bar-progress,
    .bar-volume,
    .player-menu-volume {
      -webkit-appearance: none;
      appearance: none;
      height: 4px;
      margin: 0;
      border: 0;
      border-radius: 999px;
      background: linear-gradient(90deg, var(--accent) 0%, var(--accent) var(--bar-fill, 0%), rgba(255, 255, 255, 0.32) var(--bar-fill, 0%));
      cursor: pointer;
      outline: none;
    }
    .bar-progress {
      flex: 1 1 auto;
      min-width: 64px;
    }
    .bar-volume {
      flex: 0 0 auto;
      width: 76px;
    }
    .bar-progress::-webkit-slider-thumb,
    .bar-volume::-webkit-slider-thumb,
    .player-menu-volume::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 12px;
      height: 12px;
      border: 0;
      border-radius: 50%;
      background: #fff;
      box-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
    }
    .bar-progress::-moz-range-thumb,
    .bar-volume::-moz-range-thumb,
    .player-menu-volume::-moz-range-thumb {
      width: 12px;
      height: 12px;
      border: 0;
      border-radius: 50%;
      background: #fff;
      box-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
    }
    .player-chip {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      height: 30px;
      padding: 0 11px;
      border: 0;
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.07);
      color: #c7d0d9;
      font-size: 12px;
      font-weight: 800;
      line-height: 1;
      white-space: nowrap;
      cursor: pointer;
      transition: background-color 0.18s ease, color 0.18s ease;
    }
    .player-chip .icon {
      width: 14px;
      height: 14px;
      flex: 0 0 auto;
    }
    .player-chip:hover,
    .player-chip:focus-visible {
      background: rgba(255, 255, 255, 0.13);
      color: #fff;
    }
    .player-chip.active {
      background: rgba(46, 229, 157, 0.14);
      color: #6ff0ba;
    }
    .player-chip .quality-gold,
    .player-chip .quality-gold:hover {
      color: #ffc941;
    }
    .player-dot {
      width: 7px;
      height: 7px;
      flex: 0 0 auto;
      border-radius: 50%;
      background: #68737f;
      transition: background-color 0.18s ease, box-shadow 0.18s ease;
    }
    .player-chip.active .player-dot {
      background: #2ee59d;
      box-shadow: 0 0 8px rgba(46, 229, 157, 0.8);
    }
    .player-bar .player-chip {
      height: 30px;
      padding: 0 9px;
      border-radius: 15px;
      font-size: 12px;
    }
    .player-chip-text {
      padding-top: 1px;
    }
    .player-quick-quality-wrap {
      position: relative;
      display: flex;
      align-items: center;
    }
    .player-quick-quality {
      position: absolute;
      right: 0;
      bottom: calc(100% + 8px);
      min-width: 138px;
      padding: 6px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: #0c1115;
      box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5);
    }
    .player-quick-quality .player-quality-option {
      min-height: 34px;
      padding: 0 10px 0 26px;
      border-radius: 8px;
      font-size: 12px;
    }
    .player-quick-quality .player-quality-option .icon {
      width: 14px;
      height: 14px;
    }
    .player-quick-quality .player-quality-bullet {
      width: 7px;
      height: 7px;
    }
    .player-quick-speed-wrap {
      position: relative;
      display: flex;
      align-items: center;
    }
    .player-quick-speed {
      position: absolute;
      right: 0;
      bottom: calc(100% + 8px);
      z-index: 9;
      min-width: 126px;
      padding: 6px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: #0c1115;
      box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5);
    }
    .player-quick-speed .player-speed-option {
      min-height: 34px;
      padding: 0 10px 0 26px;
      border-radius: 8px;
      font-size: 12px;
    }
    .player-speed-option {
      display: flex;
      width: 100%;
      align-items: center;
      gap: 8px;
      border: 0;
      background: transparent;
      color: var(--muted);
      font-weight: 600;
      text-align: left;
      cursor: pointer;
    }
    .player-speed-option:hover,
    .player-speed-option:focus-visible {
      background: rgba(46, 229, 157, 0.08);
      color: var(--text);
    }
    .player-speed-option.active {
      background: rgba(46, 229, 157, 0.12);
      color: var(--accent);
    }
    .player-speed-option .icon {
      width: 14px;
      height: 14px;
    }
    .player-speed-bullet {
      width: 7px;
      height: 7px;
      flex: 0 0 auto;
      border-radius: 50%;
      background: var(--line);
    }
    .danmu-layer {
      position: absolute;
      inset: 8px 10px max(36px, 16%);
      z-index: 2;
      overflow: hidden;
      pointer-events: none;
    }
    .danmu-item {
      position: absolute;
      top: 0;
      left: 100%;
      padding: 1px 5px;
      color: #fff;
      font-weight: 700;
      line-height: 1.3;
      white-space: nowrap;
      pointer-events: none;
      user-select: none;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85), 0 0 5px rgba(0, 0, 0, 0.75);
      will-change: transform, opacity;
    }
    .danmu-item.fixed {
      left: 50%;
      max-width: 92%;
      overflow-wrap: anywhere;
      white-space: normal;
      transform: translateX(-50%);
    }
    .auto-next-bar {
      position: absolute;
      bottom: max(14px, 18%);
      left: 50%;
      z-index: 5;
      display: flex;
      align-items: center;
      gap: 10px;
      width: min(480px, calc(100% - 24px));
      padding: 9px 10px 9px 12px;
      border: 1px solid rgba(46, 229, 168, 0.36);
      border-radius: 10px;
      background: rgba(10, 15, 19, 0.9);
      box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
      color: var(--text);
      transform: translateX(-50%);
      backdrop-filter: blur(8px);
      animation: autoNextIn 0.22s var(--ease) both;
    }
    .auto-next-bar.hidden {
      display: none;
    }
    @keyframes autoNextIn {
      from {
        opacity: 0;
        transform: translate(-50%, 8px);
      }
      to {
        opacity: 1;
        transform: translate(-50%, 0);
      }
    }
    .auto-next-icon {
      display: grid;
      flex: none;
      place-items: center;
      width: 32px;
      height: 32px;
      border-radius: 8px;
      background: rgba(46, 229, 168, 0.14);
      color: var(--accent);
    }
    .auto-next-copy {
      display: flex;
      flex: 1 1 auto;
      flex-direction: column;
      min-width: 0;
    }
    .auto-next-lead {
      color: var(--accent);
      font-size: 12px;
      font-weight: 800;
      white-space: nowrap;
    }
    .auto-next-title {
      max-width: min(300px, 48vw);
      overflow: hidden;
      color: var(--text);
      font-size: 13px;
      font-weight: 700;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .auto-next-cancel {
      flex: none;
      height: 30px;
      padding: 0 12px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel-2);
      color: var(--text);
      font-size: 12px;
      font-weight: 800;
      cursor: pointer;
      transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.16s var(--ease);
    }
    .auto-next-cancel:hover,
    .auto-next-cancel:focus-visible {
      border-color: var(--accent);
      background: rgba(46, 229, 168, 0.09);
    }
    .auto-next-cancel:active {
      transform: scale(0.96);
    }
    .player-foot {
      display: flex;
      flex: 0 0 auto;
      flex-wrap: wrap;
      align-items: center;
      gap: 10px;
      padding: 14px 18px;
      border-top: 1px solid var(--line-soft);
    }
    .player-tools {
      display: flex;
      flex: 1 1 auto;
      flex-wrap: nowrap;
      align-items: center;
      gap: 10px;
      min-width: 0;
    }
    .mode-group {
      display: inline-flex;
      flex: 0 1 auto;
      gap: 4px;
      padding: 4px;
      border: 1px solid var(--line);
      border-radius: 9px;
      background: #0a0d11;
    }
    .mode-btn {
      height: 34px;
      padding: 0 12px;
      border-radius: 7px;
      background: transparent;
      color: var(--muted);
      font-weight: 700;
    }
    .mode-btn.active {
      background: var(--accent);
      color: #06130c;
    }
    .player-status {
      flex-basis: 100%;
      min-height: 20px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.5;
      word-break: break-all;
    }
    .player-status:empty {
      display: none;
    }
    .player-status.error {
      color: var(--danger);
    }
    .player-status.ok {
      color: var(--ok);
    }
    .sheet-backdrop {
      position: fixed;
      inset: 0;
      z-index: 80;
      display: grid;
      place-items: center;
      padding: 16px;
      background: rgba(4, 6, 8, 0.72);
    }
    .sheet-backdrop:not(.hidden) {
      animation: overlayIn 0.24s var(--ease) both;
    }
    .sheet-backdrop:not(.hidden) .sheet {
      animation: sheetIn 0.3s var(--ease) both;
    }
    .sheet {
      width: min(430px, 100%);
      padding: 20px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: var(--panel);
      transform-origin: center;
    }
    .sheet h2 {
      margin: 0;
      color: var(--text);
      font-size: 18px;
    }
    .sheet-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 16px;
    }
    .field {
      margin-bottom: 12px;
    }
    .field label {
      display: block;
      margin-bottom: 6px;
      color: var(--muted);
      font-size: 13px;
    }
    .field input {
      width: 100%;
      height: 42px;
      padding: 0 12px;
      border: 1px solid var(--line);
      border-radius: 8px;
      outline: none;
      background: #0b0f14;
      color: var(--text);
    }
    .field input:focus {
      border-color: var(--accent);
    }
    .theme-group {
      display: inline-flex;
      gap: 4px;
      padding: 4px;
      border: 1px solid var(--line);
      border-radius: 9px;
      background: var(--panel-2);
    }
    .theme-btn {
      height: 34px;
      padding: 0 14px;
      border-radius: 7px;
      background: transparent;
      color: var(--muted);
      font-weight: 700;
    }
    .theme-btn.active {
      background: var(--accent);
      color: #06130c;
    }
    .sheet-hint {
      min-height: 18px;
      margin: -4px 0 12px;
      color: var(--muted);
      font-size: 12px;
    }
    .app-toast {
      position: fixed;
      top: 72px;
      left: 50%;
      z-index: 140;
      max-width: min(88vw, 420px);
      padding: 10px 16px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel);
      box-shadow: 0 10px 30px var(--shadow);
      color: var(--text);
      font-size: 13px;
      text-align: center;
      opacity: 0;
      transform: translate(-50%, -8px);
      pointer-events: none;
      transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
    }
    .app-toast.toast-visible {
      opacity: 1;
      transform: translate(-50%, 0);
    }
    .danger-btn {
      width: 100%;
    }
    .sheet-actions {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      margin-top: 16px;
    }
    .episode-sheet-backdrop {
      z-index: 95;
      align-items: end;
      padding: 0 12px 14px;
      place-items: end center;
    }
    .episode-sheet-backdrop:not(.hidden) .episode-sheet {
      animation: sheetUp 0.3s var(--ease) both;
    }
    .episode-sheet {
      display: flex;
      flex-direction: column;
      width: min(600px, calc(100% - 0px));
      height: 66vh;
      max-height: 66vh;
      padding: 18px 14px 14px;
      border-radius: 16px;
      overflow: hidden;
      transform-origin: bottom center;
    }
    .episode-sheet-head {
      margin-bottom: 12px;
    }
    .episode-sheet-head > div {
      display: flex;
      flex-direction: column;
      gap: 3px;
      min-width: 0;
    }
    .episode-sheet-count {
      color: var(--muted);
      font-size: 12px;
    }
    .episode-sheet-list {
      display: flex;
      flex-direction: column;
      gap: 9px;
      min-height: 0;
      overflow-y: auto;
      padding: 2px 4px 12px 2px;
    }
    .episode-sheet-item {
      display: grid;
      grid-template-columns: 116px minmax(0, 1fr);
      align-items: center;
      gap: 12px;
      width: 100%;
      min-height: 76px;
      padding: 8px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: var(--panel-2);
      color: var(--text);
      text-align: left;
      transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.16s var(--ease);
    }
    .episode-sheet-item:hover,
    .episode-sheet-item:focus-visible {
      border-color: var(--accent);
      background: rgba(46, 229, 157, 0.08);
    }
    .episode-sheet-item.active {
      border-color: var(--accent);
      background: rgba(46, 229, 157, 0.14);
    }
    .episode-sheet-item:active {
      transform: scale(0.99);
    }
    .episode-sheet-thumb {
      position: relative;
      display: block;
      width: 116px;
      height: 66px;
      overflow: hidden;
      border-radius: 7px;
      background: linear-gradient(145deg, #18252e, #0d1116);
    }
    .episode-sheet-thumb img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .episode-sheet-vip {
      position: absolute;
      top: 4px;
      right: 4px;
      z-index: 2;
      padding: 1px 5px;
      border-radius: 5px;
      background: rgba(255, 189, 62, 0.92);
      color: #2a1600;
      font-size: 10px;
      font-weight: 800;
    }
    .episode-sheet-badge {
      position: absolute;
      top: 4px;
      left: 4px;
      bottom: auto;
      z-index: 3;
      padding: 1px 5px;
      border-radius: 5px;
      background: rgba(35, 125, 255, 0.96);
      color: #fff;
      font-size: 10px;
      font-weight: 800;
    }
    .episode-sheet-info {
      display: flex;
      flex-direction: column;
      gap: 5px;
      min-width: 0;
    }
    .episode-sheet-date {
      color: var(--muted);
      font-size: 12px;
      font-weight: 600;
    }
    .episode-sheet-title {
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      color: var(--text);
      font-size: 13px;
      font-weight: 700;
      line-height: 1.4;
      overflow-wrap: anywhere;
    }
    .episode-sheet-playing {
      position: absolute;
      left: 4px;
      bottom: 4px;
      z-index: 2;
      padding: 2px 6px;
      border-radius: 5px;
      background: rgba(46, 229, 157, 0.92);
      color: #06130c;
      font-size: 11px;
      font-weight: 800;
    }
    @media (max-width: 980px) {
      .topbar {
        grid-template-columns: auto 1fr auto;
        row-gap: 8px;
      }
      .nav {
        grid-column: 1 / -1;
        grid-row: 2;
      }
      .search-wrap {
        grid-column: 2;
        display: none;
      }
      #mobileSearchBtn {
        display: inline-flex;
      }
      .health {
        display: none;
      }
      .channel-grid .video-card {
        width: calc((100% - 32px) / 3);
      }
      .feature-strip {
        min-height: 300px;
      }
    }
    @media (max-width: 680px) {
      .app {
        padding: 0 10px 110px;
      }
      .site-footer {
        margin: 32px -10px -110px;
        padding: 18px 10px 28px;
      }
      .footer-links {
        gap: 7px 12px;
      }
      .footer-label {
        flex-basis: 100%;
        margin-bottom: 2px;
      }
      .topbar {
        margin: 0 -10px;
        padding: 10px;
      }
      .brand {
        font-size: 16px;
      }
      .brand-mark {
        width: 36px;
        height: 36px;
        font-size: 18px;
      }
      .search-wrap {
        grid-column: 1 / -1;
        grid-row: 2;
      }
      .search-source {
        height: 30px;
      }
      .search-source-btn {
        height: 24px;
        padding: 0 11px;
        font-size: 12px;
      }
      .nav {
        grid-row: 3;
      }
      .short-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
      }
      .short-head .row-sub {
        margin: 0;
      }
      .short-tabs {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 2px 0 14px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
      }
      .short-tabs .chip {
        flex: 0 0 auto;
        scroll-snap-align: start;
      }
      .top-actions {
        grid-column: 3;
        grid-row: 1;
      }
      .feature-strip {
        min-height: 232px;
        border-radius: 10px;
      }
      .feature-slide {
        min-height: 232px;
      }
      .feature-info {
        min-height: 232px;
        padding: 26px 22px;
      }
      .carousel-dots {
        right: 12px;
        bottom: 12px;
      }
      .carousel-progress {
        left: 12px;
        bottom: 12px;
        width: min(150px, 46%);
      }
      .feature-kicker {
        margin-bottom: 8px;
      }
      .feature-title {
        font-size: 25px;
      }
      .feature-sub {
        display: none;
      }
      .feature-actions {
        margin-top: 14px;
      }
      .hscroll {
        grid-auto-columns: 132px;
        gap: 10px;
      }
      .card-title {
        font-size: 13px;
      }
      .grid-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
      }
      .star-section {
        padding: 14px;
      }
      .star-avatar {
        width: 64px;
        height: 64px;
      }
      .star-works-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
      }
      .channel-grid {
        gap: 12px;
      }
      .channel-grid .video-card {
        width: calc((100% - 12px) / 2);
      }
      .detail-hero {
        min-height: 260px;
        border-radius: 10px;
      }
      .detail-info {
        min-height: 260px;
        padding: 26px 22px;
      }
      .detail-title {
        font-size: 25px;
      }
      .detail-meta,
      .detail-stars {
        font-size: 13px;
      }
      .detail-credit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .credit-item {
        padding: 8px;
      }
      .credit-face {
        width: 36px;
        height: 36px;
      }
      .credit-name,
      .credit-role {
        max-width: 100%;
      }
      .detail-episodes {
        grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
        max-height: none;
      }
      #detailEpisodes {
        max-height: none;
      }
      .player-overlay {
        display: block;
        padding: 0;
        overflow: hidden;
      }
      .player-shell {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100dvh;
        border: 0;
        border-radius: 0;
        overflow: hidden;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
      }
      .player-frame {
        flex: none;
        height: 35vh;
        height: 35dvh;
        aspect-ratio: auto;
        min-height: 0;
      }
      .player-head {
        flex: 0 0 auto;
        align-items: flex-start;
        min-height: 50px;
        padding: calc(env(safe-area-inset-top, 0px) + 4px) 8px 6px;
        background: var(--panel);
      }
      .player-head .icon-btn {
        flex: 0 0 auto;
        align-self: flex-start;
        width: 38px;
        height: 38px;
        margin: -1px -1px 0 0;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.06);
      }
      .player-head-actions {
        gap: 6px;
      }
      .player-menu {
        top: calc(env(safe-area-inset-top, 0px) + 58px);
        right: 10px;
        width: min(252px, calc(100vw - 20px));
      }
      .player-menu-item {
        min-height: 48px;
      }
      #playerMenuAutoNext {
        display: flex;
      }
      #playerMenuSpeedGroup {
        display: flex;
      }
      #autoNextBtn {
        display: none;
      }
      .player-title {
        display: block;
        overflow: hidden;
        padding-right: 6px;
        font-size: 15px;
        line-height: 1.4;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .player-title-wrap {
        min-width: 0;
        padding: 2px 4px 0 0;
      }
      .player-foot {
        flex: 0 0 auto;
        min-height: 0;
        padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
        background: var(--panel);
        border-top: 1px solid var(--line-soft);
      }
      .episodes-bar {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-height: 0;
        max-height: none;
        overflow: hidden;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
      }
      .episodes-head {
        flex: 0 0 auto;
      }
      .player-shell .type-tabs {
        flex: 0 0 auto;
      }
      .player-shell .type-pill {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 25px;
        height: 25px;
        padding: 0 12px;
      }
      .episodes-grid {
        grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
        flex: 1 1 auto;
        max-height: none;
        min-height: 0;
        overflow-y: auto;
      }
      .episodes-list,
      .player-shell .episodes-list {
        flex: 1 1 auto;
        max-height: none;
        min-height: 0;
        overflow-y: auto;
      }
      .episodes-list.episode-cards,
      .player-shell .episodes-list.episode-cards {
        align-items: flex-start;
        flex: 1 0 auto;
        overflow-x: auto;
        overflow-y: hidden;
        padding-right: 4px;
      }
      .episode-card {
        width: clamp(150px, 52vw, 230px);
        min-width: 150px;
      }
      .episode-row {
        gap: 9px;
        padding: 8px 10px;
      }
      .episode-row-label {
        max-width: 110px;
      }
      .player-tools {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
      }
      .mode-group {
        flex: 1 1 100%;
        min-width: 0;
      }
      .mode-btn {
        flex: 1;
        padding: 0 10px;
      }
      .player-tools .ghost-btn {
        flex: 0 0 auto;
        min-height: 36px;
        padding: 0 13px;
      }
      .player-tools .switch-btn {
        flex: 1 1 0;
        min-height: 36px;
        justify-content: center;
        padding: 0 12px;
      }
      .player-tools #retryBtn {
        display: none;
      }
      .player-bar {
        min-height: 40px;
        gap: 4px;
        padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0px));
      }
      .player-seek-preview {
        bottom: 62px;
        padding: 6px 10px;
        font-size: 12px;
      }
      .player-bar .bar-btn {
        width: 30px;
        height: 30px;
      }
      .player-bar .bar-btn .icon {
        width: 17px;
        height: 17px;
      }
      .player-bar .player-chip {
        height: 26px;
        padding: 0 8px;
        font-size: 11px;
      }
      .bar-progress {
        min-width: 24px;
      }
      .bar-volume {
        display: none;
      }
      .bar-time {
        display: block;
        min-width: 0;
        font-size: 10px;
      }
      .player-quick-speed-wrap,
      .player-quick-quality-wrap {
        display: none;
      }
      #danmuBtn .player-chip-text {
        font-size: 0;
      }
      #danmuBtn .player-chip-text::after {
        content: "弹";
        font-size: 11px;
      }
    }
    html,
    body,
    * {
      scrollbar-width: none;
      -ms-overflow-style: none;
    }
    html::-webkit-scrollbar,
    body::-webkit-scrollbar,
    *::-webkit-scrollbar {
      width: 0;
      height: 0;
      display: none;
      background: transparent;
    }
    :root[data-theme="light"] .topbar {
      background: rgba(255, 255, 255, 0.88);
    }
    :root[data-theme="light"] .site-footer {
      background: rgba(255, 255, 255, 0.6);
    }
    :root[data-theme="light"] .suggest,
    :root[data-theme="light"] .health,
    :root[data-theme="light"] .poster {
      background: #e5edf2;
    }
    :root[data-theme="light"] .search-source {
      border-color: rgba(0, 0, 0, 0.08);
      background: rgba(0, 0, 0, 0.045);
    }
    :root[data-theme="light"] .search-source-btn:hover {
      background: rgba(0, 0, 0, 0.06);
    }
    :root[data-theme="light"] .row-head {
      background: linear-gradient(110deg, #e2e9ef 35%, #f2f6f8 50%, #e2e9ef 65%);
    }
    :root[data-theme="light"] .player-overlay,
    :root[data-theme="light"] .sheet-backdrop {
      background: rgba(224, 234, 240, 0.76);
    }
    :root[data-theme="light"] .episodes-bar,
    :root[data-theme="light"] .mode-group,
    :root[data-theme="light"] .field input {
      background: #eef3f6;
    }
    :root[data-theme="light"] .ghost-btn,
    :root[data-theme="light"] .nav-btn:hover,
    :root[data-theme="light"] .chip:hover,
    :root[data-theme="light"] .icon-btn:hover {
      background: rgba(0, 0, 0, 0.06);
    }
    :root[data-theme="light"] .detail-hero {
      background: linear-gradient(145deg, #dce6ec, #f0f5f7);
    }
    :root[data-theme="light"] .feature-kicker,
    :root[data-theme="light"] .detail-tag {
      background: rgba(7, 106, 74, 0.12);
    }
    :root[data-theme="light"] .detail-fade {
      background:
        linear-gradient(90deg, rgba(240, 246, 248, 0.96) 10%, rgba(244, 248, 250, 0.78) 46%, rgba(244, 248, 250, 0.16) 82%),
        linear-gradient(180deg, rgba(244, 248, 250, 0.08), rgba(235, 242, 246, 0.9));
    }
    :root[data-theme="light"] .detail-meta,
    :root[data-theme="light"] .detail-stars {
      color: #33424e;
    }
    :root[data-theme="light"] .detail-title {
      text-shadow: 0 1px 14px rgba(255, 255, 255, 0.4);
    }
    :root[data-theme="light"] .detail-tag.plain {
      background: rgba(24, 34, 44, 0.08);
      color: #33424e;
    }

    .account-profile {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 12px;
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: var(--panel-2);
    }
    .account-avatar {
      display: grid;
      place-items: center;
      width: 46px;
      height: 46px;
      flex: none;
      border-radius: 50%;
      background: linear-gradient(135deg, #36e69a, #0f9a66);
      color: #06150e;
      font-size: 19px;
      font-weight: 900;
      box-shadow: 0 0 0 3px rgba(46, 229, 157, 0.18), 0 8px 20px rgba(46, 229, 157, 0.2);
    }
    .account-profile-info {
      display: flex;
      flex-direction: column;
      gap: 3px;
      min-width: 0;
    }
    .account-profile-info strong {
      color: var(--text);
      font-size: 15px;
      overflow-wrap: anywhere;
    }
    .account-profile-info span {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.45;
    }
    .account-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 4px;
    }
    .account-actions .primary-btn,
    .account-actions .ghost-btn {
      min-height: 38px;
      padding: 0 12px;
      font-size: 13px;
    }
    .account-actions .primary-btn,
    .account-actions .ghost-btn:not(.hidden) {
      flex: 1 1 auto;
    }
    .account-stats {
      display: flex;
      gap: 8px;
      margin-bottom: 14px;
    }
    .account-stat {
      flex: 1;
      padding: 9px 6px;
      border: 1px solid var(--line-soft);
      border-radius: 8px;
      background: var(--panel-2);
      color: var(--muted);
      font-size: 12px;
      text-align: center;
    }
    .account-stat b {
      display: block;
      margin-bottom: 2px;
      color: var(--text);
      font-size: 16px;
    }
    .account-details {
      display: grid;
      gap: 8px;
      margin: -6px 0 14px;
      padding: 10px 12px;
      border: 1px solid var(--line-soft);
      border-radius: 8px;
      background: var(--panel-2);
    }
    .account-detail {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }
    .account-detail span {
      flex: none;
      color: var(--dim);
      font-size: 12px;
    }
    .account-detail b {
      color: var(--text);
      font-size: 12px;
      font-weight: 700;
      font-variant-numeric: tabular-nums;
      overflow-wrap: anywhere;
      text-align: right;
    }

    .auth-overlay {
      position: fixed;
      inset: 0;
      z-index: 120;
      display: grid;
      place-items: center;
      background: rgba(4, 7, 10, 0.78);
      backdrop-filter: blur(8px);
      padding: 18px;
    }
    .auth-overlay:not(.hidden) {
      animation: overlayIn 0.24s var(--ease) both;
    }
    .auth-overlay:not(.hidden) .auth-sheet {
      animation: sheetIn 0.3s var(--ease) both;
    }
  .auth-overlay.hidden {
    display: none;
  }
    .auth-sheet {
      width: min(360px, 100%);
      padding: 24px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: var(--panel);
      box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
      transform-origin: center;
    }
  .auth-sheet h2 {
    margin: 0 0 18px;
    font-size: 18px;
  }
  .auth-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
  }
  .auth-head h2 {
    margin: 0;
    font-size: 18px;
  }
  .auth-tabs {
    display: inline-flex;
    gap: 4px;
    margin-bottom: 16px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--panel-2);
  }
  .auth-tab {
    height: 34px;
    padding: 0 14px;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    font-weight: 700;
  }
  .auth-tab.active {
    background: var(--accent);
    color: #06130c;
  }
  .auth-sheet input {
    width: 100%;
    margin-bottom: 12px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-2);
    color: var(--text);
    font-size: 14px;
  }
  .auth-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
  }
  .auth-actions .primary-btn,
  .auth-actions .ghost-btn {
    flex: 1;
    justify-content: center;
  }
  .auth-error {
    min-height: 20px;
    margin: 2px 0 8px;
    color: var(--danger);
    font-size: 13px;
  }
  .auth-note {
    margin-top: 16px;
    color: var(--dim);
    font-size: 12px;
    line-height: 1.5;
  }

  @media (max-width: 680px) {
    .player-shell.player-short-drama {
      background: #000;
    }
    .player-shell.player-short-drama #playerMenuEpisodes {
      display: flex;
    }
    .player-shell.player-short-drama .player-frame {
      align-self: center;
      display: grid;
      flex: 1 1 auto;
      min-height: 0;
      width: auto;
      max-width: 100%;
      height: min(calc(100vh - 76px), calc(100vw * 16 / 9));
      height: min(calc(100dvh - 76px), calc(100vw * 16 / 9));
      aspect-ratio: 9 / 16;
      place-items: center;
    }
    .player-shell.player-short-drama .player-frame video {
      object-fit: contain;
    }
    .player-shell.player-short-drama .episodes-bar,
    .player-shell.player-short-drama .player-panel-tabs,
    .player-shell.player-short-drama .player-foot {
      display: none;
    }
    .player-shell.player-custom-fullscreen.player-short-drama .player-frame {
      width: 100%;
      max-width: 100%;
      height: auto;
      aspect-ratio: auto;
      flex: 1 1 auto;
      min-height: 0;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-delay: 0ms !important;
      transition-duration: 0.01ms !important;
    }
    .feature-bg,
    .detail-bg {
      animation: none !important;
    }
    .carousel-track {
      transition: none !important;
    }
  }

  @media (min-width: 681px) {
    .player-shell {
      display: grid;
      grid-template-columns: minmax(0, 4fr) minmax(0, 2fr);
      grid-template-rows: auto minmax(0, 1fr) auto;
      width: min(1160px, 100%);
    }
    .player-shell:has(.episodes-bar.hidden) {
      grid-template-columns: minmax(0, 1fr);
    }
    .player-head {
      align-items: center;
      grid-column: 1 / -1;
      grid-row: 1;
    }
    .player-title-wrap {
      display: flex;
      align-items: center;
      height: 100%;
      min-width: 0;
    }
    .player-title {
      text-align: left;
    }
    .player-frame {
      grid-column: 1;
      grid-row: 2;
      min-width: 0;
      width: 100%;
    }
    .episodes-bar {
      display: flex;
      flex-direction: column;
      grid-column: 2;
      grid-row: 2;
      max-height: none;
      min-width: 0;
      padding: 14px 14px 16px;
      border-top: 0;
      border-left: 1px solid var(--line-soft);
      overflow: hidden;
    }
    .player-foot {
      grid-column: 1 / -1;
      grid-row: 3;
    }
    .player-shell .episodes-grid {
      align-content: start;
      flex: 1 1 auto;
      grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
      max-height: none;
      min-height: 0;
      overflow-x: hidden;
      overflow-y: auto;
      padding: 0 10px 16px 2px;
      scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
      scrollbar-width: thin;
    }
    .player-shell .comment-panel {
      padding: 0 10px 16px 2px;
    }
    .player-shell .recommend-panel {
      padding: 0 10px 16px 2px;
    }
    .player-shell .episodes-list,
    .player-shell .episodes-list.episode-cards {
      align-items: stretch;
      flex: 1 1 auto;
      flex-direction: column;
      margin-top: 0;
      max-height: none;
      min-height: 0;
      overflow-x: hidden;
      overflow-y: auto;
      padding: 0 10px 16px 0;
      scroll-snap-type: none;
      scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
      scrollbar-width: thin;
    }
    .player-shell .episode-card {
      flex: 0 0 auto;
      height: 170px;
      min-width: 0;
      width: 100%;
    }
    .player-shell .episode-more {
      display: none;
    }
    .player-shell .episodes-more-btn {
      display: none;
    }
    .player-shell .episode-card-media {
      aspect-ratio: auto;
      height: 112px;
    }
    .player-shell .episode-card-title {
      min-height: 0;
      padding: 7px 10px;
    }
    .player-shell .player-recommend-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
      min-height: 0;
      overflow-x: hidden;
      overflow-y: auto;
      padding: 0 10px 16px 0;
      scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
      scrollbar-width: thin;
    }
    .player-shell .player-recommend-row {
      display: flex;
      flex-direction: row;
      align-items: center;
      height: auto;
      width: 100%;
      min-width: 0;
    }
    #detailEpisodes.episodes-list.episode-cards {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
      gap: 12px;
      max-height: none;
      margin-top: 14px;
      overflow: visible;
      padding: 0;
      scroll-snap-type: none;
    }
    #detailEpisodes .episode-card {
      min-width: 0;
      width: 100%;
    }
    .player-shell .episodes-grid::-webkit-scrollbar,
    .player-shell .episodes-list::-webkit-scrollbar {
      display: block;
      width: 6px;
      height: 6px;
      background: transparent;
    }
    .player-shell .episodes-grid::-webkit-scrollbar-track,
    .player-shell .episodes-list::-webkit-scrollbar-track {
      background: transparent;
      border-radius: 3px;
    }
    .player-shell .episodes-grid::-webkit-scrollbar-thumb,
    .player-shell .episodes-list::-webkit-scrollbar-thumb {
      border-radius: 3px;
      background: rgba(255, 255, 255, 0.3);
    }
    .player-shell .episodes-grid::-webkit-scrollbar-thumb:hover,
    .player-shell .episodes-list::-webkit-scrollbar-thumb:hover {
      background: rgba(46, 229, 157, 0.55);
    }
  }

  .player-shell .episode-btn {
    position: relative;
  }
  .player-shell .episode-btn.active::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 2;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #06130c;
    box-shadow: 0 0 0 2px var(--accent), 0 0 8px rgba(46, 229, 157, 0.85);
    pointer-events: none;
  }
  .player-shell .episode-card.active .episode-card-media::before {
    content: "正在播放";
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    padding: 4px 7px;
    border: 1px solid rgba(46, 229, 157, 0.6);
    border-radius: 6px;
    background: rgba(6, 19, 12, 0.86);
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    pointer-events: none;
  }

  .download-sheet-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
  }
  .download-sheet-toolbar .ghost-btn {
    height: 36px;
    padding: 0 13px;
    font-size: 12px;
  }
  .download-sheet-toolbar .primary-btn {
    height: 36px;
    margin-left: auto;
    padding: 0 14px;
    font-size: 13px;
  }
  .download-quality-hint {
    color: var(--muted);
    font-size: 12px;
  }
  .download-sheet-list {
    gap: 8px;
  }
  .download-sheet-item {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 54px;
    padding: 9px 10px;
    cursor: pointer;
  }
  .download-sheet-check {
    width: 20px;
    height: 20px;
    flex: none;
    accent-color: var(--accent);
  }
  .download-sheet-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
  }
  .download-sheet-label b {
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .download-sheet-label span {
    color: var(--muted);
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .download-list {
    display: grid;
    gap: 12px;
  }
  .download-row {
    display: grid;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel-2);
  }
  .download-row-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
  }
  .download-row-info {
    min-width: 0;
  }
  .download-row-title {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
    overflow-wrap: anywhere;
  }
  .download-row-sub {
    display: block;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }
  .download-status {
    flex: none;
    padding: 4px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
  }
  .download-status.done {
    border-color: rgba(46, 229, 157, 0.35);
    color: var(--ok);
  }
  .download-status.failed {
    border-color: rgba(255, 107, 107, 0.35);
    color: var(--danger);
  }
  .download-status.cancelled {
    color: var(--dim);
  }
  .download-progress {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--line-soft);
  }
  .download-progress i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
    transition: width 0.4s ease;
  }
  .download-error {
    color: var(--danger);
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }
  .download-row-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }
    .download-row-actions .ghost-btn,
    .download-row-actions .primary-btn {
      min-height: 32px;
      padding: 0 12px;
      font-size: 12px;
    }
    .announce-overlay {
      position: fixed;
      inset: 0;
      z-index: 130;
      display: grid;
      place-items: center;
      padding: 18px;
      background: rgba(4, 7, 10, 0.78);
      backdrop-filter: blur(8px);
    }
    .announce-overlay:not(.hidden) {
      animation: overlayIn 0.24s var(--ease) both;
    }
    .announce-overlay:not(.hidden) .announce-modal {
      animation: sheetIn 0.3s var(--ease) both;
    }
    .announce-overlay.hidden {
      display: none;
    }
    .announce-modal {
      width: min(460px, 100%);
      max-height: min(85vh, 660px);
      overflow: auto;
      padding: 22px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: var(--panel);
      box-shadow: 0 18px 50px var(--shadow);
      transform-origin: center;
    }
    .announce-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 16px;
    }
    .announce-title {
      display: flex;
      align-items: center;
      gap: 8px;
      color: var(--text);
      font-size: 17px;
      font-weight: 800;
    }
    .announce-title .icon {
      color: var(--accent);
    }
    .announce-content h3 {
      margin: 0 0 10px;
      color: var(--text);
      font-size: 19px;
    }
    .announce-note {
      margin: 0 0 14px;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.75;
    }
    .announce-download {
      margin: 0 0 14px;
      padding: 14px;
      border: 1px solid rgba(46, 229, 157, 0.28);
      border-radius: 10px;
      background: rgba(46, 229, 157, 0.07);
    }
    .announce-download-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }
    .announce-download-head strong {
      color: var(--text);
      font-size: 14px;
    }
    .announce-download-head span {
      flex: none;
      padding: 3px 8px;
      border: 1px solid rgba(46, 229, 157, 0.34);
      border-radius: 999px;
      color: var(--ok);
      font-size: 11px;
      font-weight: 800;
    }
    .announce-download p {
      margin: 7px 0 12px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.7;
    }
    .announce-download-btn {
      width: 100%;
      min-height: 42px;
    }
    .announce-download-status {
      min-height: 18px;
      margin-top: 8px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.5;
      text-align: center;
    }
    .announce-download-status.ok {
      color: var(--ok);
    }
    .announce-download-status.error {
      color: var(--danger);
    }
    .announce-times {
      display: grid;
      gap: 8px;
      margin-bottom: 14px;
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: var(--panel-2);
    }
    .announce-time-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      color: var(--muted);
      font-size: 13px;
    }
    .announce-time-row strong {
      color: var(--text);
      font-weight: 800;
      white-space: nowrap;
    }
    .announce-peak {
      margin-bottom: 14px;
      padding: 12px;
      border: 1px solid rgba(46, 229, 157, 0.25);
      border-radius: 10px;
      background: rgba(46, 229, 157, 0.06);
    }
    .announce-peak strong {
      display: block;
      margin-bottom: 4px;
      color: var(--ok);
      font-size: 13px;
    }
    .announce-peak p {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.7;
    }
    .announce-foot {
      margin: 0;
      color: var(--dim);
      font-size: 12px;
      line-height: 1.75;
    }
    .announce-actions {
      display: flex;
      margin-top: 18px;
    }
    .announce-actions .primary-btn {
      width: 100%;
    }
    body.announce-open {
      overflow: hidden;
    }
    @media (max-width: 680px) {
      .download-row-head {
        flex-direction: column;
      }
      .download-sheet-toolbar .primary-btn {
        width: 100%;
        margin-left: 0;
      }
    }
    @media (max-width: 480px) {
      .announce-modal {
        padding: 18px;
      }
      .announce-time-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
      }
    }
    .mobile-search-overlay {
      position: fixed;
      inset: 0;
      z-index: 125;
      display: flex;
      align-items: flex-start;
      background: rgba(4, 7, 10, 0.78);
      backdrop-filter: blur(8px);
    }
    .mobile-search-overlay:not(.hidden) {
      animation: overlayIn 0.24s var(--ease) both;
    }
    .mobile-search-overlay:not(.hidden) .mobile-search-panel {
      animation: sheetFromTop 0.3s var(--ease) both;
    }
    .mobile-search-overlay.hidden {
      display: none;
    }
    .mobile-search-panel {
      width: 100%;
      max-height: min(88vh, 720px);
      overflow: auto;
      padding: calc(18px + env(safe-area-inset-top, 0px)) 16px calc(18px + env(safe-area-inset-bottom, 0px));
      border: 1px solid var(--line);
      border-top: 0;
      border-radius: 0 0 16px 16px;
      background: var(--panel);
      box-shadow: 0 18px 50px var(--shadow);
    }
    .mobile-search-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 14px;
    }
    .mobile-search-title {
      display: flex;
      align-items: center;
      gap: 8px;
      color: var(--text);
      font-size: 17px;
      font-weight: 800;
    }
    .mobile-search-title .icon {
      color: var(--accent);
    }
    #mobileSearchClose {
      flex: 0 0 auto;
      margin-left: auto;
    }
    .mobile-search-source {
      flex: 0 0 auto;
      margin: 0;
    }
    .mobile-search-box {
      width: 100%;
      height: 48px;
      padding: 0 6px 0 7px;
    }
    .mobile-search-box input {
      font-size: 14px;
    }
    .mobile-search-section {
      margin-top: 18px;
    }
    .mobile-search-section-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 10px;
    }
    .mobile-search-section-head b {
      color: var(--text);
      font-size: 14px;
    }
    .mobile-search-clear {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      min-height: 30px;
      padding: 0 10px;
      border-radius: 8px;
      background: var(--panel-2);
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
    }
    .mobile-search-clear .icon {
      width: 15px;
      height: 15px;
    }
    .mobile-search-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .mobile-search-list button {
      display: block;
      width: 100%;
      min-height: 42px;
      padding: 10px 12px;
      border: 1px solid var(--line);
      border-radius: 9px;
      background: var(--panel-2);
      color: var(--text);
      text-align: left;
      font-size: 14px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .mobile-search-list button:active {
      background: rgba(46, 229, 157, 0.12);
    }
    .mobile-search-list .empty {
      padding: 22px 12px;
      color: var(--dim);
      font-size: 13px;
      text-align: center;
    }
    body.mobile-search-open {
      overflow: hidden;
    }
