

/* Additional home card and interaction styles. */
    .recent-list-actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
    .recent-list-actions .recent-clear-button { min-height:34px; padding:7px 12px; font-size:12px; }
    .recent-clear-button:disabled { opacity:.4; cursor:default; }
    .list-panel[data-list-id="recent"] .subsection-head { flex-wrap:wrap; gap:12px; }
    .parse-tool { max-width:1200px; margin:0 auto; }
    .parse-help,.parse-status { color:var(--muted); line-height:1.6; }
    .parse-form { display:grid; gap:10px; }
    .parse-form label { font-size:13px; }
    .parse-input-row { display:flex; align-items:center; gap:10px; }
    .parse-input-row .field { flex:1; min-width:0; }
    .parse-status { min-height:26px; }
    .parse-player { display:flex; align-items:center; justify-content:center; background:#080910; border:1px solid var(--border); border-radius:12px; aspect-ratio:16/9; overflow:hidden; color:var(--muted); text-align:center; }
    .parse-player iframe { display:block; width:100%; height:100%; border:0; }
    @media(max-width:760px) { .parse-input-row { flex-wrap:wrap; } .parse-input-row .field { flex-basis:100%; } .parse-player { min-height:230px; } }
    .media-pagination { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:8px; margin:24px 0 10px; }
    .media-pagination[hidden] { display:none; }
    .media-pagination .btn { min-width:40px; padding:9px 13px; }
    .media-pagination .btn.active { border-color:rgba(130,220,238,.75); background:rgba(91,169,192,.24); }
    .media-pagination .btn:disabled { opacity:.4; cursor:default; }
    .media-page-hint { color:var(--muted); font-size:12px; flex-basis:100%; text-align:center; }
    #searchRail.media-grid, #homeCollectSearchRail.media-grid { display:grid; grid-auto-flow:row; overflow:visible; }
    .site-footer { position:relative; z-index:2; padding:22px 18px 28px; margin-left:var(--app-sidebar-width,180px); text-align:center; color:rgba(220,230,240,.62); font:12px/1.7 system-ui,sans-serif; overflow-wrap:anywhere; }
    body.sidebar-collapsed .site-footer { margin-left:72px; }
    .site-footer section { max-width:760px; margin:0 auto; }
    .site-footer h2 { margin:0 0 10px; font-size:12px; font-weight:500; letter-spacing:.08em; }
    .site-footer a { color:inherit; }
    .site-footer-logo { display:inline-flex; align-items:center; justify-content:center; background:#fff; border-radius:6px; padding:7px 12px; margin-bottom:8px; }
    .site-footer-logo img { display:block; width:118px; height:auto; max-height:80px; object-fit:contain; }
    .site-footer .site-footer-links-title { margin-top:14px; }
    .site-footer-links { display:flex; flex-wrap:wrap; justify-content:center; gap:8px 18px; }
    @media(max-width:760px) { .site-footer, body.sidebar-collapsed .site-footer { margin-left:0; } }
    :root {
      color-scheme: dark;
      --bg: transparent;
      --panel-rgb: 76, 88, 98;
      --panel: rgba(var(--panel-rgb), .58);
      --panel-soft: rgba(var(--panel-rgb), .44);
      --panel-strong: rgba(var(--panel-rgb), .82);
      --panel-2: rgba(var(--panel-rgb), .62);
      --text: #f4f7fb;
      --muted: rgba(226, 234, 242, .72);
      --line: rgba(255, 255, 255, .2);
      --line-strong: rgba(255, 255, 255, .34);
      --control: rgba(34, 43, 51, .42);
      --control-active: rgba(48, 61, 70, .58);
      --accent: rgba(245, 249, 252, .86);
      --accent-2: rgba(221, 232, 241, .66);
      --focus-line: rgba(168, 218, 255, .72);
      --focus-line-soft: rgba(168, 218, 255, .42);
      --focus-glow: rgba(96, 165, 250, .24);
      --focus-surface: rgba(255, 255, 255, .12);
      --ok: #9fd8ad;
      --danger: #f09d9d;
      --shadow: 0 16px 42px rgba(0, 0, 0, .24);
      --radius: 8px;
      --fm-web-height: 100vh;
      --fm-safe-top: 0px;
      --fm-safe-right: 0px;
      --fm-safe-bottom: 20px;
      --fm-safe-left: 0px;
      --safe-top: max(var(--fm-safe-top, 0px), env(safe-area-inset-top, 0px));
      --safe-right: max(var(--fm-safe-right, 0px), env(safe-area-inset-right, 0px));
      --safe-bottom: max(var(--fm-safe-bottom, 0px), env(safe-area-inset-bottom, 0px));
      --safe-left: max(var(--fm-safe-left, 0px), env(safe-area-inset-left, 0px));
      --active-safe-top: 0px;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    }

    html.safe-top-active {
      --active-safe-top: var(--safe-top);
    }

    @supports (height: 100dvh) {
      :root { --fm-web-height: 100dvh; }
    }

    * { box-sizing: border-box; }

    html, body {
      margin: 0;
      width: 100%;
      max-width: 100%;
      min-height: var(--fm-web-height);
      background: transparent;
      color: var(--text);
      overflow-x: hidden;
    }

    html:not(.fm-native) {
      background-color: #0c0b11;
      background-image: none;
    }

    html:not(.fm-native) body {
      background: linear-gradient(120deg, #090a18 0%, #11102b 52%, #090b1b 100%);
      background-attachment: fixed;
    }

    #auroraBackground {
      /* Paint the public homepage backdrop before the animation script loads. */
      background: radial-gradient(ellipse at 18% 30%, rgba(82,39,255,.24), transparent 48%),
        radial-gradient(ellipse at 54% 48%, rgba(74,180,142,.13), transparent 45%),
        radial-gradient(ellipse at 86% 38%, rgba(82,39,255,.2), transparent 50%);
      position: fixed;
      inset: 0;
      z-index: 0;
      display: block;
      width: 100%;
      height: 100%;
      pointer-events: none;
      contain: strict;
    }
    #auroraBackground.aurora-rendered { background: none; }
    html.fm-native #auroraBackground { display: none; }

    html.fm-native,
    html.fm-native body {
      background: transparent;
    }

    body {
      overflow-x: hidden;
      letter-spacing: 0;
      position: relative;
      overscroll-behavior-x: none;
    }

    button, input, textarea, select {
      font: inherit;
      color: inherit;
    }

    button {
      border: 0;
      cursor: pointer;
      touch-action: manipulation;
      margin: 0;
      padding: 0;
      appearance: none;
      -webkit-appearance: none;
      background: transparent;
      text-align: inherit;
    }

    img {
      display: block;
      max-width: 100%;
      background: transparent;
    }

    .app {
      position: relative;
      z-index: 1;
      width: 100%;
      max-width: 100%;
      min-width: 0;
      min-height: var(--fm-web-height);
      overflow-x: hidden;
      padding: max(12px, var(--active-safe-top)) 14px calc(18px + var(--safe-bottom));
      background: transparent;
    }

    body.detail-active .app,
    body.guestbook-active .app {
      visibility: hidden;
      pointer-events: none;
    }

    body.detail-active .back-top,
    body.guestbook-active .back-top {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }

    body.episode-active #detailSheet {
      visibility: hidden;
      pointer-events: none;
    }

    .mobile-detail-back {
      display: none;
      position: fixed;
      top: max(12px, var(--active-safe-top));
      left: 12px;
      z-index: 90;
      width: 42px;
      height: 42px;
      place-items: center;
      border-radius: 999px;
      color: rgba(255, 255, 255, .92);
      background: rgba(12, 18, 24, .18);
      border: 1px solid rgba(255, 255, 255, .16);
      box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
      backdrop-filter: blur(8px) saturate(1.05);
      transition: opacity .16s ease, visibility .16s ease, transform .16s ease;
    }

    .mobile-detail-back .icon {
      width: 21px;
      height: 21px;
    }

    .mobile-detail-back:focus {
      z-index: 95;
      background: rgba(16, 24, 32, .34);
    }

    .mobile-detail-back.is-hidden {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transform: translateY(-8px);
    }

    html.native-phone-app body.detail-active .mobile-detail-back,
    html.native-phone-app body.episode-active .image-viewer .mobile-detail-back {
      display: grid;
    }

    .icon-btn {
      width: 42px;
      height: 42px;
      display: grid;
      place-items: center;
      border-radius: var(--radius);
      background: var(--control);
      border: 1px solid var(--line);
      color: var(--text);
      text-shadow: 0 1px 2px rgba(0, 0, 0, .38);
      backdrop-filter: blur(12px) saturate(1.05);
    }

    .icon {
      width: 19px;
      height: 19px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2.2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .pill {
      width: fit-content;
      color: var(--text);
      background: var(--control-active);
      border: 1px solid var(--line);
      padding: 5px 9px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 800;
      text-shadow: 0 1px 2px rgba(0, 0, 0, .38);
    }

    .actions {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    .btn {
      min-height: 42px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      padding: 0 14px;
      border-radius: var(--radius);
      background: var(--control);
      border: 1px solid var(--line);
      color: var(--text);
      font-weight: 760;
      text-decoration: none;
      text-shadow: 0 1px 2px rgba(0, 0, 0, .38);
      backdrop-filter: blur(12px) saturate(1.05);
    }

    .btn.primary {
      color: var(--text);
      background: var(--control-active);
      border-color: var(--line-strong);
    }

    .btn.blue {
      background: var(--control-active);
      color: var(--text);
      border-color: var(--line-strong);
    }

    .btn.danger {
      color: #fff0f0;
      background: rgba(240, 157, 157, .2);
      border-color: rgba(255, 220, 220, .24);
    }

    .btn.link {
      min-height: 30px;
      padding: 0;
      border: 0;
      background: transparent;
      color: rgba(184, 226, 255, .92);
      font-size: 13px;
      font-weight: 760;
      text-shadow: 0 1px 2px rgba(0, 0, 0, .38);
      backdrop-filter: none;
    }

    .search {
      width: 100%;
      min-width: 0;
      display: flex;
      align-items: stretch;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      margin: 14px 0 8px;
      position: relative;
      z-index: 20;
    }

    .search .field {
      flex: 1 1 auto;
      min-width: 0;
    }

    .search .btn,
    .search .icon-btn {
      flex: 0 0 auto;
      margin-left: 10px;
    }

    .search .icon-btn {
      width: 44px;
      height: auto;
      min-height: 44px;
      align-self: stretch;
    }

    @supports (display: grid) {
      .search .btn,
      .search .icon-btn { margin-left: 0; }
    }

    .search.suggesting {
      z-index: 95;
    }

    html.tv-mode .search {
      grid-template-columns: minmax(0, 1fr) auto auto auto;
      align-items: stretch;
    }

    html.tv-mode .search > .connection-dock {
      align-self: stretch;
      margin-left: 0;
      border: 0;
      background: transparent;
      box-shadow: none;
    }

    html.tv-mode .search > .connection-dock .connection-toggle {
      min-height: 44px;
      height: 100%;
      border-radius: var(--radius);
      border: 1px solid var(--line);
      background: var(--control);
    }

    html.tv-mode .search > .connection-dock .connection-toggle:focus {
      transform: translateY(-1px);
      background: rgba(70, 85, 96, .72);
      border-color: var(--focus-line);
      box-shadow: none;
    }

    .suggest-panel {
      position: absolute;
      left: 0;
      right: 0;
      top: calc(100% + 8px);
      z-index: 1;
      display: none;
      max-height: 460px;
      max-height: 54vh;
      max-height: min(54vh, 460px);
      overflow-y: auto;
      padding: 6px;
      border-radius: var(--radius);
      border: 1px solid var(--line);
      background: rgba(22, 28, 34, .94);
      box-shadow: var(--shadow);
      backdrop-filter: blur(14px) saturate(1.08);
      scrollbar-width: none;
    }

    .suggest-panel.open { display: block; display: grid; gap: 6px; }
    .suggest-panel::-webkit-scrollbar { display: none; }

    .suggest-item {
      min-width: 0;
      display: flex;
      justify-content: space-between;
      gap: 8px;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 8px;
      align-items: center;
      min-height: 42px;
      padding: 8px 10px;
      border-radius: var(--radius);
      color: var(--text);
      text-align: left;
      background: rgba(42, 52, 60, .56);
      border: 1px solid rgba(255, 255, 255, .12);
    }

    .suggest-item b {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 14px;
      line-height: 1.25;
    }

    .suggest-item span {
      color: var(--muted);
      font-size: 12px;
      white-space: nowrap;
    }

    .field {
      width: 100%;
      min-height: 44px;
      border-radius: var(--radius);
      border: 1px solid var(--line);
      background: var(--control);
      color: var(--text);
      padding: 0 12px;
      outline: none;
      text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
      backdrop-filter: blur(12px) saturate(1.05);
    }

    textarea.field {
      min-height: 74px;
      padding: 10px 12px;
      resize: vertical;
    }

    .field::placeholder { color: rgba(226, 234, 242, .5); }

    .chips {
      width: 100%;
      max-width: 100%;
      min-width: 0;
      display: flex;
      gap: 8px;
      overflow-x: auto;
      padding: 3px 0 2px;
      overscroll-behavior-x: contain;
    }

    .category-tabs { margin: 12px 0 0; padding: 3px 0 5px; gap: 8px; }
    .category-tabs .chip { border-radius: 10px; min-height: 36px; }
    .chips::-webkit-scrollbar,
    .rail::-webkit-scrollbar { display: none; }

    .chip {
      flex: 0 0 auto;
      min-height: 36px;
      padding: 0 12px;
      border-radius: 999px;
      background: var(--control);
      border: 1px solid var(--line);
      color: var(--text);
      font-weight: 700;
      font-size: 13px;
      text-shadow: 0 1px 2px rgba(0, 0, 0, .38);
      backdrop-filter: blur(12px) saturate(1.05);
    }

    .chip.active {
      background: var(--control-active);
      color: var(--text);
      border-color: var(--line-strong);
    }

    .section {
      width: 100%;
      max-width: 100%;
      min-width: 0;
      margin-top: 24px;
      overflow: hidden;
    }

    #recommendSection {
      overflow: visible;
    }

    .section-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 10px;
      position: relative;
      overflow: visible;
    }

    .section h3 {
      margin: 0;
      font-size: 18px;
      line-height: 1.2;
    }

    .section small {
      color: var(--muted);
      font-size: 12px;
      white-space: nowrap;
    }

    .section-actions {
      min-width: 0;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .mini-icon-btn {
      width: 32px;
      height: 32px;
      display: grid;
      place-items: center;
      border-radius: var(--radius);
      background: var(--control);
      border: 1px solid var(--line);
      color: var(--text);
      backdrop-filter: blur(12px) saturate(1.05);
    }

    .mini-icon-btn .icon {
      width: 16px;
      height: 16px;
    }

    .stack {
      display: block;
      gap: 18px;
      min-width: 0;
    }

    .list-block {
      width: 100%;
      max-width: 100%;
      min-width: 0;
      overflow: hidden;
      margin-top: 18px;
    }

    .list-block:first-child {
      margin-top: 0;
    }

    html.tv-mode .list-block {
      overflow: visible;
    }

    .subsection-head {
      min-width: 0;
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 9px;
    }

    .subsection-head h4 {
      margin: 0;
      font-size: 15px;
      line-height: 1.2;
    }

    .subsection-head span {
      color: var(--muted);
      font-size: 12px;
      white-space: nowrap;
    }

    .rail {
      width: 100%;
      max-width: 100%;
      min-width: 0;
      display: flex;
      gap: 12px;
      overflow-x: auto;
      overflow-y: hidden;
      overscroll-behavior-x: contain;
      scroll-snap-type: none;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      touch-action: pan-x pan-y;
      padding: 2px 0 5px;
      cursor: grab;
    }

    .rail.mouse-dragging { cursor: grabbing; user-select: none; scroll-behavior: auto; }
    #detailSheet.mouse-dragging { cursor: grabbing; user-select: none; }

    html.tv-mode .rail {
      overflow-y: visible;
      padding: 10px 5px 14px;
    }

    .media-grid {
      width: 100%;
      max-width: 100%;
      min-width: 0;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
    }

    #recommendRail.cover-batch-loading {
      position: relative;
      height: 52px;
      min-height: 52px;
      overflow: hidden;
    }

    #recommendRail.cover-batch-loading::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 1;
      display: grid;
      place-items: center;
      color: var(--muted);
      font-size: 13px;
      pointer-events: none;
    }

    #connectionDock { display: none !important; }

    #recommendRail.cover-batch-loading > .card {
      visibility: hidden;
    }

    #recommendRail .poster.poster-batch-late {
      visibility: hidden !important;
    }

    html.tv-mode .media-grid {
      overflow: visible;
      padding: 10px 5px 14px;
    }

    .list-panel[hidden] {
      display: none !important;
    }

    .infinite-sentinel {
      width: 100%;
      height: 1px;
      pointer-events: none;
      overflow-anchor: none;
    }

    .card {
      flex: 0 0 142px;
      min-width: 0;
      max-width: 172px;
      position: relative;
      border-radius: var(--radius);
      background: var(--panel-soft);
      border: 1px solid var(--line);
      overflow: hidden;
      padding: 0;
      text-align: left;
      color: var(--text);
      scroll-snap-align: start;
      backdrop-filter: blur(10px) saturate(1.05);
    }

    .media-grid .card {
      width: 100%;
      max-width: none;
      flex: none;
      contain: layout style;
    }

    .server-snapshot-card.tap-pending {
      opacity: .82;
      transform: scale(.985);
      pointer-events: none;
    }

    .poster {
      aspect-ratio: 2 / 3;
      width: 100%;
      object-fit: cover;
      -webkit-user-drag: none;
      user-select: none;
      background: linear-gradient(145deg, rgba(255,255,255,.07), rgba(0,0,0,.22));
    }
    .poster.image-load-failed { visibility: hidden; }

    .poster-wrap {
      position: relative;
      width: calc(100% + 2px);
      max-width: calc(100% + 2px);
      margin: -1px -1px 0;
      overflow: hidden;
      background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(0,0,0,.24));
    }

    .poster-placeholder {
      position: absolute;
      inset: 0;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 10px;
      color: rgba(238, 242, 248, .68);
      font-size: 12px;
      text-align: center;
      pointer-events: none;
    }

    .poster-wrap.has-placeholder .poster-placeholder { display: flex; }

    #homeCollectSearchRail .poster-placeholder {
      background: #101b29 url('/images/poster-placeholder.jpg') center / cover no-repeat;
      color: transparent;
    }
    #homeCollectSearchRail .poster-wrap.has-placeholder { aspect-ratio: 2 / 3; }

    .poster-wrap .poster {
      width: 100%;
      max-width: 100%;
    }

    .card > .poster {
      width: calc(100% + 2px);
      max-width: calc(100% + 2px);
      margin: -1px -1px 0;
    }

    .card-body {
      padding: 10px;
      background: var(--panel);
      border-top: 1px solid var(--line);
    }

    .card-title {
      font-size: 12px;
      font-weight: 760;
      line-height: 1.2;
      min-height: 15px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      text-shadow: 0 1px 2px rgba(0, 0, 0, .42);
    }

    .rating-badge {
      position: absolute;
      right: 7px;
      top: 7px;
      min-width: 34px;
      height: 24px;
      display: grid;
      place-items: center;
      border-radius: 999px;
      background: rgba(6, 9, 12, .48);
      border: 1px solid rgba(255, 255, 255, .18);
      color: rgba(255, 255, 255, .94);
      font-size: 12px;
      font-weight: 800;
      line-height: 1;
      backdrop-filter: blur(8px);
    }

    .card-meta {
      margin-top: 6px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.3;
      text-shadow: 0 1px 2px rgba(0, 0, 0, .38);
    }

    .card-meta:empty {
      display: none;
    }

    .block-select-hint {
      display: none;
      margin: 6px 0 10px;
      color: rgba(244, 247, 251, .78);
      font-size: 13px;
      line-height: 1.35;
    }

    body.block-select-active .block-select-hint {
      display: block;
    }

    body.block-select-active #home .media-grid .card {
      outline: 1px solid rgba(255, 255, 255, .18);
      outline-offset: -1px;
    }

    body.block-select-active #home .media-grid .card::after {
      content: "按 OK 屏蔽";
      position: absolute;
      top: 7px;
      left: 7px;
      z-index: 5;
      min-height: 24px;
      display: inline-flex;
      align-items: center;
      padding: 0 8px;
      border-radius: 999px;
      background: rgba(6, 9, 12, .68);
      border: 1px solid rgba(255, 255, 255, .18);
      color: rgba(255, 255, 255, .9);
      font-size: 11px;
      font-weight: 800;
      line-height: 1;
      text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
    }

    body.block-select-active #home .media-grid .card.blocked {
      opacity: .62;
      border-color: rgba(240, 157, 157, .55);
    }

    body.block-select-active #home .media-grid .card.blocked::after {
      content: "已屏蔽";
      background: rgba(132, 38, 38, .78);
      border-color: rgba(255, 210, 210, .24);
      color: rgba(255, 240, 240, .95);
    }

    body.block-select-active #home .media-grid .card.blocked img {
      filter: grayscale(.3) brightness(.7);
    }

    .recent-badge {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .recent-badge {
      position: absolute;
      top: 7px;
      right: 7px;
      z-index: 2;
      max-width: calc(100% - 14px);
      min-height: 22px;
      display: inline-flex;
      align-items: center;
      padding: 0 7px;
      border-radius: 999px;
      background: rgba(6, 9, 12, .46);
      border: 1px solid rgba(255, 255, 255, .16);
      color: rgba(255, 255, 255, .9);
      font-size: 11px;
      font-weight: 780;
      line-height: 1;
      text-shadow: 0 1px 2px rgba(0, 0, 0, .48);
      backdrop-filter: blur(8px);
    }

    .recent-progress {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 3;
      height: 3px;
      background: rgba(255, 255, 255, .2);
    }

    .recent-progress span {
      display: block;
      width: var(--recent-progress, 0%);
      height: 100%;
      background: rgba(255, 255, 255, .82);
    }

    .card-people {
      position: absolute;
      right: 7px;
      bottom: 7px;
      z-index: 2;
      min-height: 22px;
      display: inline-flex;
      align-items: center;
      padding: 0 7px;
      border-radius: 999px;
      background: rgba(6, 9, 12, .48);
      border: 1px solid rgba(255, 255, 255, .16);
      color: rgba(255, 255, 255, .88);
      font-size: 11px;
      font-weight: 760;
      line-height: 1;
      text-shadow: 0 1px 2px rgba(0, 0, 0, .46);
      pointer-events: none;
    }

    .person-info {
      display: block;
      padding: 12px;
      border-radius: var(--radius);
      background: var(--panel-soft);
      border: 1px solid var(--line);
      backdrop-filter: blur(10px) saturate(1.05);
    }

    .person-info-body {
      min-width: 0;
    }

    .person-info-body p {
      margin: 8px 0 0;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.45;
    }

    .live-entry-card {
      width: 100%;
      min-height: 96px;
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      align-items: center;
      gap: 10px;
      padding: 12px;
      border-radius: var(--radius);
      background: linear-gradient(135deg, rgba(var(--panel-rgb), .72), rgba(34, 43, 51, .36));
      border: 1px solid var(--line);
      color: var(--text);
      text-align: left;
      box-shadow: 0 12px 30px rgba(0, 0, 0, .14);
      backdrop-filter: blur(12px) saturate(1.05);
    }

    .live-icon {
      width: 42px;
      height: 42px;
      display: grid;
      place-items: center;
      border-radius: var(--radius);
      background: rgba(255, 255, 255, .1);
      border: 1px solid rgba(255, 255, 255, .18);
    }

    .live-icon .icon {
      width: 21px;
      height: 21px;
    }

    .live-copy {
      min-width: 0;
    }

    .live-copy h5 {
      margin: 0;
      font-size: 16px;
      line-height: 1.2;
    }

    .live-copy p {
      margin: 5px 0 0;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.35;
    }

    .live-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
      margin-top: 8px;
    }

    .live-tag {
      min-height: 21px;
      display: inline-flex;
      align-items: center;
      padding: 0 7px;
      border-radius: 999px;
      background: rgba(255, 255, 255, .08);
      border: 1px solid rgba(255, 255, 255, .14);
      color: rgba(238, 244, 250, .86);
      font-size: 11px;
      font-weight: 720;
      line-height: 1;
    }

    .live-action {
      min-height: 32px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0 10px;
      border-radius: var(--radius);
      background: rgba(255, 255, 255, .12);
      border: 1px solid rgba(255, 255, 255, .2);
      font-size: 12px;
      font-weight: 800;
      white-space: nowrap;
    }

    .live-sources-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 10px; }
    .live-empty-note { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); background: var(--panel-soft); line-height: 1.6; }
    .live-empty-note a { color: var(--text); text-decoration: underline; }
    .live-player-modal { position: fixed; z-index: 200; inset: 0; display: none; align-items: stretch; justify-content: stretch; padding: 0; background: rgba(4, 7, 12, .76); backdrop-filter: blur(12px); }
    .live-player-modal.active { display: flex; }
    body.live-player-active { overflow: hidden; }
    .live-player-dialog { display: grid; width: 100vw; height: 100vh; height: 100dvh; grid-template-columns: minmax(0, 4fr) minmax(260px, 1fr); overflow: hidden; border: 0; border-radius: 0; background: rgba(20, 27, 34, .96); box-shadow: none; }
    .live-player-head { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 14px; border-bottom: 1px solid var(--line); }
    .live-player-head h2 { margin: 0; font-size: 17px; }
    .live-player-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
    .live-player-layout { display: contents; }
    .live-video-wrap { position: relative; min-width: 0; min-height: 0; padding: 0; overflow: hidden; background: #000; }
    .live-video-wrap video { display: block; width: 100%; height: 100%; background: #000; object-fit: contain !important; object-position: center center !important; }
    #ceshiLiveExtensionPlayer { position: absolute; inset: 0; z-index: 2; display: block; width: 100%; height: 100%; border: 0; background: #000; }
    .live-extension-gate { width: 100%; height: 100%; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 50% 30%, rgba(78,98,125,.25), transparent 48%), #05080d; }
    .live-extension-gate[hidden] { display: none; }
    .live-extension-gate-card { width: min(520px, 100%); padding: 28px; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; background: rgba(24,32,42,.86); text-align: center; }
    .live-extension-gate-card h3 { margin: 0 0 12px; font-size: 21px; }
    .live-extension-gate-card p { margin: 8px 0; color: var(--muted); line-height: 1.65; }
    .live-extension-gate-card .btn { margin-top: 14px; text-decoration: none; }
    .live-now-playing { padding: 9px 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
    .live-channel-panel { display: flex; min-height: 0; flex-direction: column; gap: 8px; padding: 0 14px 14px; border-left: 1px solid var(--line); }
    .live-channel-panel > label { font-size: 12px; font-weight: 700; }
    .live-channel-list { min-height: 100px; overflow-y: auto; overscroll-behavior: contain; flex: 1; scrollbar-width: none; }
    .live-channel-list::-webkit-scrollbar { display: none; }
    .live-route-actions { display: flex; gap: 8px; }
    .live-channel-panel > .field { flex: 0 0 auto; min-height: 36px; width: 100%; }
    .live-source-details { color: var(--muted); font-size: 12px; line-height: 1.7; }
    .live-source-details summary { cursor: pointer; }
    #liveSourceStatus { max-height: 130px; overflow: auto; overflow-wrap: anywhere; }
    .live-diagnostic { color: var(--muted); font-size: 12px; line-height: 1.6; }
    .live-diagnostic summary { cursor: pointer; }
    #liveDiagnosticLog { max-height: 210px; overflow: auto; margin: 7px 0; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: rgba(0,0,0,.22); color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; font: 10px/1.5 ui-monospace,Consolas,monospace; }
    #liveDiagnosticCopy { width: 100%; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: rgba(255,255,255,.06); cursor: pointer; }
    .live-channel-button { display: block; width: 100%; margin: 0 0 5px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: rgba(255,255,255,.045); text-align: left; cursor: pointer; }
    .live-channel-button:hover, .live-channel-button.active { background: rgba(255,255,255,.12); border-color: var(--focus-line); }
    .live-channel-button small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
    .live-channel-message { padding: 14px 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
    @media (max-width: 700px) {
      .live-player-dialog { display: block; overflow-y: auto; }
      .live-video-wrap { height: min(56vw, 48vh); min-height: 210px; }
      .live-channel-panel { min-height: calc(100vh - min(56vw, 48vh)); padding-bottom: 20px; border-top: 1px solid var(--line); border-left: 0; }
      .live-channel-list { overflow: visible; }
    }

    .empty {
      min-height: 92px;
      display: grid;
      place-items: center;
      padding: 14px;
      border-radius: var(--radius);
      border: 1px dashed rgba(255, 255, 255, .18);
      color: var(--muted);
      background: rgba(255, 255, 255, .03);
      font-size: 13px;
      text-align: center;
    }

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

    .metric {
      flex: 0 0 210px;
      max-width: 260px;
      min-height: 82px;
      padding: 12px;
      border-radius: var(--radius);
      background: var(--panel);
      border: 1px solid var(--line);
    }

    .metric b {
      display: block;
      font-size: 20px;
      line-height: 1.1;
    }

    .metric span {
      display: block;
      margin-top: 8px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.35;
    }

    .sheet {
      --sheet-x: 14px;
      display: none;
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      inset: 0;
      z-index: 60;
      width: 100%;
      max-width: 100%;
      min-width: 0;
      height: 100vh;
      min-height: var(--fm-web-height);
      background: transparent;
      backdrop-filter: none;
      overflow-y: auto;
      overflow-x: hidden;
      padding: max(16px, var(--active-safe-top)) var(--sheet-x) calc(22px + var(--safe-bottom));
    }

    .sheet.active { display: block; }

    .detail-cover {
      position: relative;
      width: 100%;
      max-width: 100%;
      height: 56.25vw;
      min-height: 180px;
      max-height: 42vh;
      aspect-ratio: 16 / 9;
      border-radius: var(--radius);
      overflow: hidden;
      background: transparent;
      margin: 14px 0;
    }

    .detail-cover.loading::before {
      content: "";
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      inset: 0;
      background: linear-gradient(110deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .11), rgba(255, 255, 255, .04));
      background-size: 220% 100%;
      animation: cover-loading 1.25s ease-in-out infinite;
    }

    @keyframes cover-loading {
      0% { background-position: 120% 0; }
      100% { background-position: -120% 0; }
    }

    .detail-cover img {
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: left center;
      opacity: 0;
      transition: opacity .18s ease;
    }

    .detail-cover img.active {
      opacity: 1;
    }

    .detail-cover.poster-mode {
      background: transparent !important;
      background-image: none !important;
    }

    .detail-cover.poster-mode::before {
      display: none !important;
    }

    .detail-cover.poster-mode::after {
      display: none !important;
    }

    .detail-cover.poster-mode img {
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover !important;
      object-position: center 24%;
      z-index: 1;
    }

    @media (max-width: 719px) {
      html:not(.tv-mode) #imageViewer.episode-mode #closeImageBtn {
        display: none;
      }

      html:not(.tv-mode) #detailSheet:not(.detail-large) .detail-cover {
        border-radius: 14px;
        overflow: hidden;
        isolation: isolate;
      }

      html:not(.tv-mode) #detailSheet:not(.detail-large) .detail-cover::before,
      html:not(.tv-mode) #detailSheet:not(.detail-large) .detail-cover img {
        border-radius: inherit;
      }

      html:not(.tv-mode) .detail-cover.has-multiple {
        touch-action: pan-y;
      }
    }

    html.tv-mode .detail-cover {
      width: min(calc(100vw - 68px), calc(clamp(360px, 58vh, 680px) * 16 / 9));
      max-width: none;
      height: auto;
      min-height: 180px;
      max-height: none;
      aspect-ratio: 16 / 9;
      margin-top: 0;
    }

    @media (max-height: 760px) {
      html.tv-mode .detail-cover {
        width: min(calc(100vw - 68px), calc(clamp(320px, 56vh, 430px) * 16 / 9));
      }
    }

    .detail-info {
      padding: 0 2px 12px;
    }

    .detail-title-row {
      display: flex;
      align-items: baseline;
      gap: 8px;
      flex-wrap: wrap;
      margin: 0 0 8px;
    }

    .detail-info h2 {
      margin: 0 0 8px;
      font-size: clamp(22px, 6vw, 32px);
      line-height: 1.12;
    }

    .detail-title-row h2 {
      margin: 0;
    }

    .detail-title-logo {
      display: none;
      max-width: 100%;
      width: auto;
      height: auto;
      object-fit: contain;
    }

    .detail-title-meta {
      display: inline-flex;
      align-items: baseline;
      gap: 6px;
      color: rgba(244, 247, 251, .9);
      font-size: 13px;
      font-weight: 720;
      line-height: 1.2;
      text-shadow: 0 1px 2px rgba(0, 0, 0, .38);
    }

    .detail-title-meta .score {
      color: rgba(255, 218, 128, .95);
      font-weight: 820;
    }

    .detail-title-meta .sep {
      color: rgba(244, 247, 251, .42);
      font-weight: 600;
    }

    .detail-info p {
      margin: 0;
      color: rgba(244, 247, 251, .82);
      line-height: 1.5;
      font-size: 14px;
    }

    .detail-info p.clamped {
      max-height: var(--detail-text-max, none);
      overflow: hidden;
    }

    #detailMoreBtn {
      margin-top: 2px;
      display: none;
    }

    .detail-meta {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin: 8px 0 14px;
    }

    .meta-pill {
      padding: 5px 8px;
      border-radius: 999px;
      color: var(--muted);
      background: var(--panel);
      border: 1px solid var(--line);
      font-size: 12px;
      line-height: 1.2;
    }

    .meta-pill.strong {
      color: var(--text);
      border-color: var(--line-strong);
      background: var(--control-active);
      font-weight: 760;
    }

    .detail-block {
      margin-top: 18px;
    }

    .detail-block h3 {
      margin: 0 0 10px;
      font-size: 17px;
      line-height: 1.2;
    }

    .episode-card {
      flex: 0 0 230px;
      max-width: 260px;
      min-height: 138px;
      padding: 11px;
      border-radius: var(--radius);
      background: var(--panel);
      border: 1px solid var(--line);
      color: var(--text);
      text-align: left;
      scroll-snap-align: start;
      contain: layout style;
    }

    .episode-card.has-still {
      padding: 0;
      overflow: hidden;
    }

    .episode-card.has-still .episode-body {
      padding: 8px 9px 9px;
    }

    .episode-still-wrap {
      width: calc(100% + 2px);
      max-width: calc(100% + 2px);
      display: block;
      margin: -1px -1px 0;
      aspect-ratio: 16 / 9;
      overflow: hidden;
      line-height: 0;
      background: transparent;
    }

    .episode-still {
      width: 100%;
      max-width: none;
      height: 100%;
      margin: 0;
      aspect-ratio: 16 / 9;
      object-fit: cover;
      object-position: center top;
    }

    .episode-card b,
    .person-card b {
      display: block;
      font-size: 14px;
      line-height: 1.18;
    }

    .person-card b {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .episode-card span,
    .person-card span {
      display: block;
      margin-top: 3px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.22;
    }

    #detailSheet .episode-card .episode-badge {
      display: none;
    }

    .person-card span {
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      word-break: break-word;
    }

    .episode-card p {
      margin: 3px 0 0;
      color: rgba(244, 247, 251, .78);
      font-size: 12px;
      line-height: 1.26;
      display: -webkit-box;
      -webkit-line-clamp: 4;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .person-card {
      flex: 0 0 116px;
      max-width: 128px;
      height: 244px;
      display: flex;
      flex-direction: column;
      border-radius: var(--radius);
      background: var(--panel);
      border: 1px solid var(--line);
      color: var(--text);
      overflow: hidden;
      padding: 0;
      text-align: left;
      scroll-snap-align: start;
      contain: layout style;
    }

    .person-card img {
      width: calc(100% + 2px);
      max-width: calc(100% + 2px);
      height: 176px;
      flex: 0 0 176px;
      margin: -1px -1px 0;
      object-fit: cover;
      object-position: center top;
      background: rgba(255, 255, 255, .04);
    }

    .person-card div {
      flex: 1 1 auto;
      min-height: 0;
      min-width: 0;
      padding: 8px 9px 9px;
      overflow: hidden;
    }

    #detailSheet.detail-large {
      --detail-side-pad: clamp(42px, 5.4vw, 80px);
      --detail-top-pad: clamp(46px, 7.2vh, 82px);
      background: #06111b;
      padding: var(--detail-top-pad) var(--detail-side-pad) calc(34px + var(--safe-bottom));
      overflow-y: auto;
      overflow-x: hidden;
    }

    #detailSheet.detail-large::before,
    #detailSheet.detail-large::after {
      content: "";
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      inset: 0;
      pointer-events: none;
      z-index: 0;
    }

    #detailSheet.detail-large::before {
      background-image: var(--detail-hero-bg, none);
      background-size: cover;
      background-position: center top;
      filter: brightness(1) saturate(1.05);
      opacity: 1;
    }

    #detailSheet.detail-large::after {
      background:
        linear-gradient(90deg, rgba(6, 17, 27, .9) 0%, rgba(6, 17, 27, .72) 32%, rgba(6, 17, 27, .22) 66%, rgba(6, 17, 27, .1) 100%),
        linear-gradient(180deg, rgba(6, 17, 27, .08) 0%, rgba(6, 17, 27, .2) 48%, #06111b 100%);
    }

    #detailSheet.detail-large > * {
      position: relative;
      z-index: 2;
    }

    #detailSheet.detail-large .detail-cover {
      display: none !important;
    }

    #detailSheet.detail-large .detail-cover[data-cover-mode="landscape"] {
      -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .28) 3%, rgba(0, 0, 0, .76) 7%, #000 12%, #000 100%);
      mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .28) 3%, rgba(0, 0, 0, .76) 7%, #000 12%, #000 100%);
      -webkit-mask-repeat: no-repeat;
      mask-repeat: no-repeat;
      -webkit-mask-size: 100% 100%;
      mask-size: 100% 100%;
    }

    #detailSheet.detail-large .detail-cover[data-cover-mode="landscape"]::before {
      content: "";
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      z-index: 1;
      width: 16%;
      pointer-events: none;
      background-image: var(--detail-cover-bg, none);
      background-size: cover;
      background-position: center top;
      opacity: .16;
      filter: blur(8px) saturate(.92);
      transform: scale(1.04);
      transform-origin: left center;
      -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 36%, rgba(0, 0, 0, .66) 68%, transparent 100%);
      mask-image: linear-gradient(90deg, transparent 0%, #000 36%, rgba(0, 0, 0, .66) 68%, transparent 100%);
    }

    #detailSheet.detail-large .detail-cover::after {
      content: "";
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      inset: 0;
      z-index: 2;
      background:
        linear-gradient(90deg, #06111b 0%, rgba(6, 17, 27, .78) 5%, rgba(6, 17, 27, .34) 13%, rgba(6, 17, 27, .1) 24%, rgba(6, 17, 27, .1) 100%),
        linear-gradient(180deg, rgba(6, 17, 27, .1) 0%, rgba(6, 17, 27, .06) 56%, #06111b 100%);
    }

    #detailSheet.detail-large .detail-cover.poster-mode::after {
      display: block !important;
    }

    #detailSheet.detail-large .detail-cover img {
      object-fit: cover !important;
      object-position: center top;
      filter: saturate(.92) contrast(.98) brightness(.76);
    }

    #detailSheet.detail-large .detail-cover[data-cover-mode="landscape"] img {
      transform: translateZ(0) scale(1.012);
      transform-origin: center top;
    }

    #detailSheet.detail-large .detail-cover.poster-mode img {
      object-fit: cover !important;
      object-position: center 18%;
    }

    #detailSheet.detail-large .detail-info,
    #detailSheet.detail-large > .actions,
    #detailSheet.detail-large .detail-block {
      max-width: min(760px, 54vw);
    }

    #detailSheet.detail-large .detail-info {
      min-height: 0;
      padding: 0;
    }

    #detailSheet.detail-large .detail-title-row {
      gap: 20px;
      align-items: baseline;
      margin: 0 0 22px;
    }

    #detailSheet.detail-large .detail-info h2 {
      font-size: clamp(38px, 5.2vw, 64px);
      line-height: 1.04;
      font-weight: 850;
      letter-spacing: 0;
      text-shadow: 0 3px 16px rgba(0, 0, 0, .48);
    }

    #detailSheet.detail-large .detail-title-meta {
      gap: 0;
      font-size: clamp(20px, 2.3vw, 28px);
      line-height: 1;
      font-weight: 820;
      color: rgba(244, 188, 129, .96);
    }

    #detailSheet.detail-large .detail-title-meta .score {
      color: rgba(244, 188, 129, .96);
    }

    #detailSheet.detail-large .detail-title-meta .sep {
      display: none;
    }

    #detailSheet.detail-large .detail-meta {
      gap: 10px;
      margin: 0 0 18px;
    }

    #detailSheet.detail-large .meta-pill {
      min-height: 34px;
      display: inline-flex;
      align-items: center;
      border-radius: 6px;
      padding: 0 12px;
      color: rgba(245, 249, 252, .92);
      background: rgba(65, 82, 96, .52);
      border-color: rgba(255, 255, 255, .14);
      font-size: 17px;
      font-weight: 620;
      backdrop-filter: none;
    }

    #detailSheet.detail-large .detail-info p {
      max-width: min(620px, 42vw);
      color: rgba(232, 239, 247, .82);
      font-size: clamp(15px, 1.45vw, 18px);
      line-height: 1.72;
      text-shadow: 0 2px 10px rgba(0, 0, 0, .42);
    }

    #detailSheet.detail-large #detailMoreBtn {
      min-height: 30px;
      margin: 4px 0 0;
      padding: 0;
      border: 0;
      background: transparent;
      color: rgba(129, 190, 255, .92);
      font-size: 15px;
      box-shadow: none;
    }

    #detailSheet.detail-large.episode-preview-active .detail-info {
      max-width: calc(100vw - var(--detail-side-pad) - var(--detail-side-pad));
      height: var(--episode-preview-info-height, auto);
      overflow: visible;
    }

    #detailSheet.detail-large.episode-preview-active .detail-title-row {
      flex-wrap: nowrap;
      max-width: calc(100vw - var(--detail-side-pad) - var(--detail-side-pad));
      height: 64px;
      height: clamp(50px, 5.8vw, 74px);
      overflow: hidden;
      text-shadow: none !important;
      box-shadow: none !important;
      filter: none !important;
      backdrop-filter: none !important;
    }

    #detailSheet.detail-large.episode-preview-active .detail-info h2 {
      flex: 0 1 auto;
      min-width: 0;
      max-width: min(760px, 54vw);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      text-shadow: none !important;
      box-shadow: none !important;
      filter: none !important;
      backdrop-filter: none !important;
    }

    #detailSheet.detail-large.episode-preview-active .detail-title-meta {
      display: none;
      flex: 0 0 auto;
      white-space: nowrap;
      text-shadow: none !important;
      box-shadow: none !important;
      filter: none !important;
      backdrop-filter: none !important;
    }

    #detailSheet.detail-large.episode-preview-active > .actions {
      visibility: hidden;
      pointer-events: none;
    }

    #detailSheet.detail-large.episode-preview-active .detail-info p#detailText {
      max-width: min(620px, 42vw);
      outline: none !important;
      border-color: transparent !important;
      box-shadow: none !important;
      pointer-events: none;
      user-select: none;
      -webkit-user-select: none;
      -webkit-tap-highlight-color: transparent;
    }

    #detailSheet.detail-large.episode-preview-active .detail-info p#detailText.clamped[data-more-label] {
      position: relative;
      padding-right: 64px;
    }

    #detailSheet.detail-large.episode-preview-active .detail-info p#detailText.clamped[data-more-label]::after {
      content: attr(data-more-label);
      position: absolute;
      right: 0;
      bottom: 0;
      min-width: 0;
      color: rgba(129, 190, 255, .96);
      font-weight: 780;
      text-align: right;
      background: transparent !important;
      background-color: transparent !important;
      background-image: none !important;
      box-shadow: none !important;
      text-shadow: none !important;
      filter: none !important;
      backdrop-filter: none !important;
    }

    #detailSheet.detail-large.episode-preview-active #detailMoreBtn {
      background: transparent !important;
      background-color: transparent !important;
      background-image: none !important;
      box-shadow: none !important;
      text-shadow: none !important;
      filter: none !important;
      backdrop-filter: none !important;
      display: none !important;
    }

    #detailSheet.detail-large.episode-preview-active .detail-info p#detailText.clamped {
      max-height: var(--episode-preview-text-max, 7.6em);
      overflow: hidden;
    }

    #detailSheet.detail-large.episode-preview-expanded .detail-info p#detailText {
      visibility: visible;
      max-width: none;
      width: calc(100vw - var(--detail-side-pad) - var(--detail-side-pad));
      max-height: none;
      overflow: visible;
    }

    #detailSheet.detail-large.episode-preview-expanded .detail-info h2 {
      max-width: calc(100vw - var(--detail-side-pad) - var(--detail-side-pad));
    }

    #detailSheet.detail-large.episode-preview-expanded #seasonBlock > h3,
    #detailSheet.detail-large.episode-preview-expanded #seasonTabs {
      visibility: hidden;
      pointer-events: none;
    }

    html.no-css-functions #detailSheet.detail-large.episode-preview-active .detail-info,
    html.no-css-functions #detailSheet.detail-large.episode-preview-active .detail-title-row,
    html.legacy-detail-layout #detailSheet.detail-large.episode-preview-active .detail-info,
    html.legacy-detail-layout #detailSheet.detail-large.episode-preview-active .detail-title-row {
      max-width: 1152px;
    }

    html.no-css-functions #detailSheet.detail-large .detail-info p,
    html.legacy-detail-layout #detailSheet.detail-large .detail-info p,
    html.no-css-functions #detailSheet.detail-large.episode-preview-active .detail-info p#detailText,
    html.legacy-detail-layout #detailSheet.detail-large.episode-preview-active .detail-info p#detailText {
      max-width: 560px;
    }

    html.no-css-functions #detailSheet.detail-large.episode-preview-active .detail-info,
    html.legacy-detail-layout #detailSheet.detail-large.episode-preview-active .detail-info {
      height: 220px;
      max-height: 220px;
    }

    html.no-css-functions #detailSheet.detail-large.episode-preview-active .detail-title-row,
    html.legacy-detail-layout #detailSheet.detail-large.episode-preview-active .detail-title-row {
      height: 64px;
    }

    html.no-css-functions #detailSheet.detail-large.episode-preview-active .detail-info p#detailText.clamped,
    html.legacy-detail-layout #detailSheet.detail-large.episode-preview-active .detail-info p#detailText.clamped {
      max-height: 116px;
    }

    html.no-css-functions #detailSheet.detail-large.episode-preview-expanded .detail-info p#detailText,
    html.legacy-detail-layout #detailSheet.detail-large.episode-preview-expanded .detail-info p#detailText {
      width: 1152px;
    }

    #detailSheet.detail-large > .actions {
      gap: 16px;
      margin-top: 24px;
    }

    #detailSheet.detail-large > .actions .btn {
      min-width: 144px;
      min-height: 58px;
      border-radius: 8px;
      padding: 0 26px;
      color: rgba(246, 250, 253, .92);
      background: rgba(54, 68, 80, .56);
      border-color: rgba(255, 255, 255, .12);
      box-shadow: none;
      font-size: clamp(18px, 1.8vw, 22px);
      font-weight: 820;
      backdrop-filter: none;
      text-shadow: none;
    }

    #detailSheet.detail-large > .actions .btn:focus {
      color: #06111b;
      background: rgba(249, 251, 253, .96);
      border-color: rgba(255, 255, 255, .9);
      box-shadow: 0 16px 36px rgba(0, 0, 0, .28), 0 0 0 1px rgba(255, 255, 255, .1) inset;
    }

    #detailSheet.detail-large > .actions .btn:focus .icon {
      color: #06111b;
    }

    #detailSheet.detail-large .detail-block {
      margin-top: 34px;
    }

    #detailSheet.detail-large #seasonBlock,
    #detailSheet.detail-large #castBlock,
    #detailSheet.detail-large #recommendBlock,
    #detailSheet.detail-large #personWorkBlock {
      max-width: none;
    }

    #detailSheet.detail-large #seasonBlock {
      margin-top: clamp(34px, 5.2vh, 58px);
    }

    #detailSheet.detail-large .detail-block h3 {
      margin: 0 0 14px;
      font-size: clamp(21px, 2vw, 28px);
      font-weight: 820;
      text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
    }

    #detailSheet.detail-large #seasonTabs {
      max-width: min(760px, 54vw);
      padding-bottom: 8px;
    }

    #detailSheet.detail-large #seasonTabs:empty {
      display: none;
    }

    #detailSheet.detail-large .rail {
      gap: 18px;
      padding: 6px 6px 16px;
      overflow-y: visible;
    }

    #detailSheet.detail-large .episode-card {
      flex: 0 0 clamp(210px, 18.4vw, 286px);
      max-width: clamp(210px, 18.4vw, 286px);
      min-height: 0;
      aspect-ratio: 16 / 9;
      padding: 0;
      overflow: hidden;
      position: relative;
      border-radius: 7px;
      background: rgba(32, 45, 58, .74);
      border-color: rgba(255, 255, 255, .15);
      box-shadow: 0 12px 28px rgba(0, 0, 0, .24);
    }

    #detailSheet.detail-large .episode-card::before {
      content: "";
      position: absolute;
      right: 0;
      bottom: 0;
      left: 0;
      z-index: 1;
      height: 62%;
      background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(4, 10, 16, .72) 55%, rgba(4, 10, 16, .92));
      pointer-events: none;
    }

    #detailSheet.detail-large .episode-still {
      width: 100%;
      max-width: 100%;
      height: 100%;
      margin: 0;
      aspect-ratio: auto;
      object-fit: cover;
      opacity: .92;
    }

    #detailSheet.detail-large .episode-badge {
      display: inline-flex;
      position: absolute;
      top: 8px;
      left: 8px;
      z-index: 2;
      min-height: 26px;
      align-items: center;
      padding: 0 8px;
      border-radius: 5px;
      background: rgba(54, 119, 199, .84);
      border: 1px solid rgba(255, 255, 255, .18);
      color: rgba(255, 255, 255, .94);
      font-size: 14px;
      font-weight: 780;
      line-height: 1;
    }

    .episode-badge {
      display: none;
    }

    #detailSheet.detail-large .episode-body {
      position: absolute;
      right: 0;
      bottom: 0;
      left: 0;
      z-index: 2;
      padding: 0 12px 12px;
    }

    #detailSheet.detail-large .episode-card b {
      color: #fff;
      font-size: clamp(15px, 1.35vw, 18px);
      font-weight: 800;
      line-height: 1.18;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      text-shadow: 0 2px 8px rgba(0, 0, 0, .72);
    }

    #detailSheet.detail-large .episode-card span:not(.episode-badge),
    #detailSheet.detail-large .episode-card p {
      display: none;
    }

    #detailSheet.detail-large .person-card {
      flex: 0 0 clamp(240px, 20vw, 310px);
      max-width: clamp(240px, 20vw, 310px);
      height: 96px;
      display: -webkit-box;
      display: -webkit-flex;
      display: flex;
      -webkit-box-orient: horizontal;
      -webkit-box-direction: normal;
      -webkit-flex-direction: row;
      flex-direction: row;
      align-items: center;
      border-radius: 8px;
      background: transparent;
      border-color: transparent;
      box-shadow: none;
    }

    #detailSheet.detail-large .person-card img {
      width: 96px;
      max-width: 96px;
      height: 96px;
      -webkit-box-flex: 0;
      -webkit-flex: 0 0 96px;
      flex: 0 0 96px;
      margin: 0;
      aspect-ratio: auto;
      border-radius: 999px;
      object-fit: cover;
      object-position: center 18%;
      background: rgba(255, 255, 255, .08);
    }

    #detailSheet.detail-large .person-card div {
      -webkit-box-flex: 1;
      -webkit-flex: 1 1 auto;
      flex: 1 1 auto;
      min-width: 0;
      min-height: auto;
      padding: 0 0 0 18px;
      overflow: hidden;
    }

    #detailSheet.detail-large .person-card b {
      display: block;
      color: rgba(255, 255, 255, .94);
      font-size: clamp(18px, 1.55vw, 24px);
      font-weight: 820;
      line-height: 1.08;
      text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
    }

    #detailSheet.detail-large .person-card span {
      margin-top: 7px;
      color: rgba(232, 239, 247, .58);
      font-size: clamp(14px, 1.25vw, 18px);
      line-height: 1.08;
      -webkit-line-clamp: 1;
    }

    #detailSheet.detail-large .card.landscape-card {
      flex: 0 0 clamp(222px, 18.6vw, 300px);
      max-width: clamp(222px, 18.6vw, 300px);
      aspect-ratio: 16 / 9;
      border-radius: 8px;
      background: rgba(34, 47, 60, .7);
      border-color: rgba(255, 255, 255, .13);
      box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
    }

    #detailSheet.detail-large .landscape-card .poster {
      width: 100%;
      max-width: 100%;
      height: 100%;
      margin: 0;
      aspect-ratio: auto;
      object-fit: cover;
      opacity: .88;
    }

    #detailSheet.detail-large .landscape-card .card-body {
      position: absolute;
      right: 0;
      bottom: 0;
      left: 0;
      z-index: 2;
      padding: 38px 12px 11px;
      border-top: 0;
      background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(3, 8, 14, .76) 48%, rgba(3, 8, 14, .92));
    }

    #detailSheet.detail-large .landscape-card .card-title {
      font-size: 16px;
      line-height: 1.18;
      min-height: 0;
    }

    #detailSheet.detail-large .landscape-card .card-meta,
    #detailSheet.detail-large .landscape-card .rating-badge {
      display: none;
    }

    #detailSheet.detail-large .pan-search-block.active {
      max-width: min(980px, calc(100vw - var(--detail-side-pad) * 2));
    }

    @media (max-width: 960px) {
      #detailSheet.detail-large {
        --detail-side-pad: 38px;
      }

      #detailSheet.detail-large .detail-info,
      #detailSheet.detail-large > .actions,
      #detailSheet.detail-large .detail-block,
      #detailSheet.detail-large #seasonTabs {
        max-width: min(720px, 68vw);
      }

      #detailSheet.detail-large .detail-cover {
        width: 72vw;
      }
    }

    html.native-mobile-app #detailSheet:not(.detail-large) {
      --mobile-detail-x: 20px;
      --mobile-hero-min: min(72vh, 680px);
      background: #081016;
      padding: 0 var(--mobile-detail-x) calc(32px + var(--safe-bottom));
      overflow-y: auto;
      overflow-x: hidden;
      overscroll-behavior: contain;
    }

    html.native-mobile-app #detailSheet:not(.detail-large).active {
      display: flex;
      flex-direction: column;
    }

    html.native-mobile-app #detailSheet:not(.detail-large)::before,
    html.native-mobile-app #detailSheet:not(.detail-large)::after {
      content: "";
      position: fixed;
      top: 0;
      right: 0;
      left: 0;
      pointer-events: none;
      z-index: 0;
    }

    html.native-mobile-app #detailSheet:not(.detail-large)::before {
      bottom: 0;
      background:
        radial-gradient(72% 34% at 22% 58%, rgba(96, 132, 150, .18) 0%, rgba(96, 132, 150, .08) 42%, transparent 72%),
        radial-gradient(68% 32% at 78% 48%, rgba(178, 120, 86, .14) 0%, rgba(178, 120, 86, .06) 45%, transparent 74%),
        var(--detail-hero-bg, none);
      background-size: cover, cover, cover;
      background-position: center, center, center top;
      background-repeat: no-repeat, no-repeat, no-repeat;
      filter: blur(28px) saturate(1.32) contrast(1.06) brightness(.9);
      opacity: .98;
      transform: scale(1.12);
      transform-origin: center top;
    }

    html.native-mobile-app #detailSheet:not(.detail-large)::after {
      bottom: 0;
      background:
        linear-gradient(180deg, rgba(2, 5, 8, 0) 0%, rgba(3, 7, 11, 0) 52%, rgba(5, 10, 15, .28) 70%, rgba(5, 10, 15, .78) 88%, #081016 100%);
    }

    html.native-mobile-app #detailSheet:not(.detail-large) > * {
      position: relative;
      z-index: 2;
    }

    html.native-mobile-app #detailSheet:not(.detail-large) .mobile-detail-back {
      position: fixed;
      top: max(14px, var(--active-safe-top));
      left: 16px;
      width: 54px;
      height: 54px;
      color: rgba(255, 255, 255, .96);
      background: rgba(25, 35, 44, .28);
      border-color: rgba(255, 255, 255, .22);
      box-shadow: 0 12px 30px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .12);
      backdrop-filter: blur(14px) saturate(1.08);
    }

    html.native-mobile-app #detailSheet:not(.detail-large) .mobile-detail-back .icon {
      width: 25px;
      height: 25px;
      stroke-width: 2.4;
    }

    html.native-mobile-app #detailSheet:not(.detail-large) .detail-cover {
      position: fixed;
      top: 0;
      right: 0;
      left: 0;
      z-index: 1;
      width: 100vw;
      max-width: none;
      height: var(--mobile-hero-min);
      min-height: 520px;
      max-height: none;
      margin: 0;
      border-radius: 0;
      aspect-ratio: auto;
      pointer-events: none;
      overflow: hidden;
      background: transparent;
      opacity: 1;
      -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 84%, rgba(0, 0, 0, .9) 89%, rgba(0, 0, 0, .42) 96%, transparent 100%);
      mask-image: linear-gradient(180deg, #000 0%, #000 84%, rgba(0, 0, 0, .9) 89%, rgba(0, 0, 0, .42) 96%, transparent 100%);
      -webkit-mask-repeat: no-repeat;
      mask-repeat: no-repeat;
      -webkit-mask-size: 100% 100%;
      mask-size: 100% 100%;
    }

    html.native-mobile-app #detailSheet:not(.detail-large) .detail-cover::after {
      content: "";
      position: absolute;
      top: 82%;
      right: 0;
      bottom: 0;
      left: 0;
      z-index: 2;
      background:
        radial-gradient(90% 72% at 28% 42%, rgba(98, 137, 154, .18) 0%, rgba(98, 137, 154, .07) 45%, transparent 78%),
        radial-gradient(86% 70% at 76% 38%, rgba(190, 135, 92, .14) 0%, rgba(190, 135, 92, .05) 48%, transparent 80%),
        linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(5, 9, 13, .08) 30%, rgba(5, 9, 13, .2) 72%, rgba(8, 16, 22, .34) 100%);
      -webkit-backdrop-filter: blur(10px) saturate(1.16);
      backdrop-filter: blur(10px) saturate(1.16);
      -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .2) 18%, #000 46%, #000 100%);
      mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .2) 18%, #000 46%, #000 100%);
    }

    html.native-mobile-app #detailSheet:not(.detail-large) .detail-cover.poster-mode::after {
      display: block !important;
    }

    html.native-mobile-app #detailSheet:not(.detail-large) .detail-cover.loading::before {
      z-index: 3;
    }

    html.native-mobile-app #detailSheet:not(.detail-large) .detail-cover img {
      width: 100%;
      height: 100%;
      object-fit: cover !important;
      object-position: center top;
      filter: brightness(1) saturate(1.05);
      -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 84%, rgba(0, 0, 0, .88) 89%, rgba(0, 0, 0, .36) 96%, transparent 100%);
      mask-image: linear-gradient(180deg, #000 0%, #000 84%, rgba(0, 0, 0, .88) 89%, rgba(0, 0, 0, .36) 96%, transparent 100%);
      -webkit-mask-repeat: no-repeat;
      mask-repeat: no-repeat;
      -webkit-mask-size: 100% 100%;
      mask-size: 100% 100%;
    }

    html.native-mobile-app #detailSheet:not(.detail-large) .detail-info {
      display: contents;
      margin-top: max(410px, calc(var(--mobile-hero-min) - 220px));
      padding: 0;
      text-shadow: 0 2px 14px rgba(0, 0, 0, .56);
    }

    html.native-mobile-app #detailSheet:not(.detail-large) .detail-title-row {
      order: 1;
    }

    html.native-mobile-app #detailSheet:not(.detail-large) .detail-meta {
      order: 2;
    }

    html.native-mobile-app #detailSheet:not(.detail-large) .detail-info p {
      order: 3;
    }

    html.native-mobile-app #detailSheet:not(.detail-large) > .actions {
      order: 4;
    }

    html.native-mobile-app #detailSheet:not(.detail-large) #detailMoreBtn {
      order: 5;
    }

    html.native-mobile-app #detailSheet:not(.detail-large) .detail-block {
      order: 6;
    }

    html.native-mobile-app #detailSheet:not(.detail-large) .detail-title-row,
    html.native-mobile-app #detailSheet:not(.detail-large) .detail-meta,
    html.native-mobile-app #detailSheet:not(.detail-large) .detail-info p,
    html.native-mobile-app #detailSheet:not(.detail-large) #detailMoreBtn {
      position: relative;
      z-index: 2;
    }

    html.native-mobile-app #detailSheet:not(.detail-large) .detail-title-row {
      display: block;
      margin: max(410px, calc(var(--mobile-hero-min) - 220px)) 0 12px;
    }

    html.native-mobile-app #detailSheet:not(.detail-large) .detail-title-row.logo-pending #detailTitle,
    html.native-mobile-app #detailSheet:not(.detail-large) .detail-title-row.has-logo #detailTitle {
      display: none;
    }

    html.native-mobile-app #detailSheet:not(.detail-large) .detail-title-row.has-logo .detail-title-logo {
      display: block;
      max-width: calc(100vw - var(--mobile-detail-x) * 2 - 92px);
      max-height: 96px;
      margin: 0 0 12px;
      filter: drop-shadow(0 5px 22px rgba(0, 0, 0, .62));
    }

    html.native-mobile-app #detailSheet:not(.detail-large) .detail-info h2 {
      max-width: calc(100vw - var(--mobile-detail-x) * 2 - 92px);
      margin: 0 0 10px;
      color: rgba(255, 255, 255, .98);
      font-size: clamp(38px, 11vw, 54px);
      line-height: 1.02;
      font-weight: 900;
      letter-spacing: 0;
      text-shadow: 0 4px 20px rgba(0, 0, 0, .62);
    }

    html.native-mobile-app #detailSheet:not(.detail-large) .detail-title-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
      color: rgba(245, 248, 251, .86);
      font-size: 20px;
      font-weight: 780;
      line-height: 1.2;
    }

    html.native-mobile-app #detailSheet:not(.detail-large) .detail-title-meta .score {
      color: rgba(255, 213, 96, .98);
    }

    html.native-mobile-app #detailSheet:not(.detail-large) .detail-title-meta .sep {
      color: rgba(245, 248, 251, .48);
    }

    html.native-mobile-app #detailSheet:not(.detail-large) .detail-meta {
      gap: 8px;
      margin: 10px 0 20px;
    }

    html.native-mobile-app #detailSheet:not(.detail-large) .meta-pill {
      min-height: 34px;
      display: inline-flex;
      align-items: center;
      padding: 0 13px;
      border: 0;
      border-radius: 999px;
      color: rgba(245, 248, 251, .78);
      background: rgba(255, 255, 255, .13);
      font-size: 15px;
      font-weight: 620;
      backdrop-filter: blur(10px) saturate(1.04);
    }

    html.native-mobile-app #detailSheet:not(.detail-large) .meta-pill.strong {
      color: rgba(255, 225, 132, .98);
      background: rgba(255, 255, 255, .16);
      font-weight: 820;
    }

    html.native-mobile-app #detailSheet:not(.detail-large) .detail-info p {
      color: rgba(246, 249, 252, .82);
      font-size: 17px;
      line-height: 1.72;
      font-weight: 430;
      text-shadow: 0 2px 12px rgba(0, 0, 0, .64);
    }

    html.native-mobile-app #detailSheet:not(.detail-large) .detail-info p.clamped {
      max-height: var(--detail-text-max, 6.9em);
      padding-right: 0;
      overflow: hidden;
      cursor: pointer;
    }

    html.native-mobile-app #detailSheet:not(.detail-large) #detailMoreBtn {
      min-height: 0;
      margin: 2px 0 0;
      padding: 0;
      border: 0;
      background: transparent;
      color: rgba(190, 220, 255, .92);
      box-shadow: none;
      font-size: 15px;
      line-height: 1.72;
      text-shadow: none;
      backdrop-filter: none;
    }

    html.native-mobile-app #detailSheet:not(.detail-large) > .actions {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      margin: 20px 0 0;
    }

    html.native-mobile-app #detailSheet:not(.detail-large) > .actions.has-continue {
      grid-template-columns: minmax(132px, 1fr) minmax(82px, .58fr) minmax(82px, .58fr);
      gap: 8px;
    }

    html.native-mobile-app #detailSheet:not(.detail-large) > .actions .btn {
      min-width: 0;
      min-height: 50px;
      justify-content: center;
      border-radius: 999px;
      border-color: rgba(255, 255, 255, .18);
      background: rgba(255, 255, 255, .15);
      color: rgba(255, 255, 255, .95);
      box-shadow: 0 10px 26px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .1);
      font-size: 16px;
      font-weight: 800;
      backdrop-filter: blur(16px) saturate(1.08);
    }

    html.native-mobile-app #detailSheet:not(.detail-large) > .actions.has-continue .btn {
      min-height: 50px;
      gap: 6px;
      padding: 0 8px;
      border-radius: 14px;
      font-size: 14px;
      line-height: 1.05;
      white-space: nowrap;
      backdrop-filter: none;
      -webkit-font-smoothing: antialiased;
    }

    html.native-mobile-app #detailSheet:not(.detail-large) > .actions.has-continue .icon {
      width: 18px;
      height: 18px;
    }

    html.native-mobile-app #detailSheet:not(.detail-large) > .actions.has-continue #detailContinueBtn {
      color: #fff;
      background:
        radial-gradient(circle at 24% 20%, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0) 34%),
        linear-gradient(135deg, #12d7ff 0%, #0b91ff 58%, #0867f7 100%);
      border-color: rgba(255, 255, 255, .16);
      box-shadow: 0 16px 30px rgba(0, 128, 255, .28), inset 0 1px 0 rgba(255, 255, 255, .26);
      font-size: 15px;
      font-weight: 800;
      text-shadow: none;
    }

    html.native-mobile-app #detailSheet:not(.detail-large) > .actions.has-continue #detailSearchBtn,
    html.native-mobile-app #detailSheet:not(.detail-large) > .actions.has-continue #panSearchBtn {
      color: #111827;
      background: rgba(255, 255, 255, .98);
      border-color: rgba(255, 255, 255, .72);
      box-shadow: 0 14px 28px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .72);
      font-weight: 800;
      text-shadow: none;
    }

    html.native-mobile-app #detailSheet:not(.detail-large) > .actions .btn.primary {
      background: rgba(255, 255, 255, .19);
    }

    html.native-mobile-app #detailSheet:not(.detail-large) > .actions .icon {
      width: 21px;
      height: 21px;
    }

    html.native-mobile-app #detailSheet:not(.detail-large) .detail-block {
      margin-top: 28px;
    }

    html.native-mobile-app #detailSheet:not(.detail-large) .detail-block h3 {
      margin: 0 0 14px;
      color: rgba(255, 255, 255, .96);
      font-size: 21px;
      line-height: 1.18;
      font-weight: 880;
      text-shadow: 0 2px 12px rgba(0, 0, 0, .52);
    }

    html.native-mobile-app #detailSheet:not(.detail-large) .rail {
      width: calc(100% + var(--mobile-detail-x) * 2);
      max-width: none;
      gap: 12px;
      margin-right: calc(var(--mobile-detail-x) * -1);
      margin-left: calc(var(--mobile-detail-x) * -1);
      padding: 0 var(--mobile-detail-x) 14px;
      scroll-padding-left: var(--mobile-detail-x);
    }

    html.native-mobile-app #detailSheet:not(.detail-large) #seasonTabs {
      width: calc(100% + var(--mobile-detail-x) * 2);
      max-width: none;
      margin-right: calc(var(--mobile-detail-x) * -1);
      margin-left: calc(var(--mobile-detail-x) * -1);
      padding-right: var(--mobile-detail-x);
      padding-left: var(--mobile-detail-x);
      scroll-padding-left: var(--mobile-detail-x);
    }

    html.native-mobile-app #detailSheet:not(.detail-large) .episode-card {
      flex-basis: 168px;
      max-width: 178px;
      min-height: 112px;
      display: flex;
      flex-direction: column;
      border-radius: 12px;
      background: rgba(255, 255, 255, .1);
      border-color: rgba(255, 255, 255, .13);
      overflow: hidden;
      box-shadow: 0 10px 24px rgba(0, 0, 0, .2);
    }

    html.native-mobile-app #detailSheet:not(.detail-large) .episode-card.has-still {
      padding: 0;
    }

    html.native-mobile-app #detailSheet:not(.detail-large) .episode-still-wrap {
      width: calc(100% + 2px);
      max-width: calc(100% + 2px);
      height: 94px;
      min-height: 94px;
      display: block;
      order: 0;
      margin: -1px -1px 0;
      padding: 0;
      border: 0;
      aspect-ratio: auto;
      overflow: hidden;
      line-height: 0;
      flex: 0 0 94px;
      background: transparent;
    }

    html.native-mobile-app #detailSheet:not(.detail-large) .episode-still {
      width: 100%;
      max-width: none;
      height: 100%;
      min-height: 100%;
      margin: 0;
      display: block;
      aspect-ratio: auto;
      object-fit: cover;
      object-position: center top;
    }

    html.native-mobile-app #detailSheet:not(.detail-large) .episode-body {
      order: 1;
      flex: 1 1 auto;
    }

    html.native-mobile-app #detailSheet:not(.detail-large) .episode-card b {
      font-size: 13px;
      line-height: 1.22;
    }

    html.native-mobile-app #detailSheet:not(.detail-large) .person-card {
      flex: 0 0 86px;
      max-width: 92px;
      height: auto;
      align-items: center;
      background: transparent;
      border-color: transparent;
      box-shadow: none;
      text-align: center;
    }

    html.native-mobile-app #detailSheet:not(.detail-large) .person-card img {
      width: 68px;
      max-width: 68px;
      height: 68px;
      flex-basis: 68px;
      margin: 0 auto;
      border-radius: 999px;
      object-position: center 18%;
      box-shadow: 0 8px 20px rgba(0, 0, 0, .22);
    }

    html.native-mobile-app #detailSheet:not(.detail-large) .person-card div {
      width: 100%;
      min-width: 0;
      padding: 8px 0 0;
      text-align: center;
    }

    html.native-mobile-app #detailSheet:not(.detail-large) .person-card b {
      width: 100%;
      color: rgba(255, 255, 255, .94);
      font-size: 13px;
      font-weight: 820;
      text-align: center;
    }

    html.native-mobile-app #detailSheet:not(.detail-large) .person-card span {
      width: 100%;
      margin-top: 2px;
      color: rgba(232, 239, 247, .58);
      font-size: 11px;
      text-align: center;
      -webkit-line-clamp: 1;
    }

    @media (max-width: 380px) {
      html.native-mobile-app #detailSheet:not(.detail-large) {
        --mobile-detail-x: 16px;
      }

      html.native-mobile-app #detailSheet:not(.detail-large) .detail-info {
        margin-top: max(380px, calc(var(--mobile-hero-min) - 240px));
      }

      html.native-mobile-app #detailSheet:not(.detail-large) .detail-title-row {
        margin-top: max(380px, calc(var(--mobile-hero-min) - 240px));
      }

      html.native-mobile-app #detailSheet:not(.detail-large) .detail-info h2 {
        font-size: 34px;
      }

      html.native-mobile-app #detailSheet:not(.detail-large) .detail-title-row.has-logo .detail-title-logo {
        max-height: 78px;
      }

      html.native-mobile-app #detailSheet:not(.detail-large) .detail-title-meta {
        font-size: 18px;
      }

      html.native-mobile-app #detailSheet:not(.detail-large) > .actions.has-continue {
        grid-template-columns: minmax(122px, 1fr) minmax(72px, .58fr) minmax(72px, .58fr);
        gap: 6px;
      }

      html.native-mobile-app #detailSheet:not(.detail-large) > .actions.has-continue .btn {
        min-height: 48px;
        padding: 0 6px;
        font-size: 13px;
      }

      html.native-mobile-app #detailSheet:not(.detail-large) > .actions.has-continue .icon {
        width: 17px;
        height: 17px;
      }

      html.native-mobile-app #detailSheet:not(.detail-large) > .actions.has-continue #detailContinueBtn {
        font-size: 13px;
      }
    }

    html.native-mobile-app.mobile-detail-translucent #detailSheet:not(.detail-large) {
      --mobile-detail-x: 14px;
      --sheet-x: 14px;
      background: transparent;
      padding: max(16px, var(--active-safe-top)) var(--mobile-detail-x) calc(22px + var(--safe-bottom));
      backdrop-filter: none;
    }

    html.native-mobile-app.mobile-detail-translucent #detailSheet:not(.detail-large)::before,
    html.native-mobile-app.mobile-detail-translucent #detailSheet:not(.detail-large)::after {
      display: none;
    }

    html.native-mobile-app.mobile-detail-translucent #detailSheet:not(.detail-large) > * {
      position: relative;
      z-index: auto;
    }

    html.native-mobile-app.mobile-detail-translucent #detailSheet:not(.detail-large) .mobile-detail-back {
      position: relative;
      top: auto;
      left: auto;
      align-self: flex-start;
      width: 42px;
      height: 42px;
      margin: 0 0 10px;
      color: rgba(255, 255, 255, .92);
      background: rgba(12, 18, 24, .18);
      border-color: rgba(255, 255, 255, .16);
      box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
      backdrop-filter: blur(8px) saturate(1.05);
    }

    html.native-mobile-app.mobile-detail-translucent #detailSheet:not(.detail-large) .mobile-detail-back .icon {
      width: 21px;
      height: 21px;
      stroke-width: 2.2;
    }

    html.native-mobile-app.mobile-detail-translucent #detailSheet:not(.detail-large) .detail-cover {
      position: relative;
      top: auto;
      right: auto;
      left: auto;
      z-index: auto;
      opacity: 1;
      width: 100%;
      max-width: 100%;
      height: 56.25vw;
      min-height: 180px;
      max-height: 42vh;
      margin: 14px 0;
      border-radius: 14px;
      aspect-ratio: 16 / 9;
      pointer-events: auto;
      overflow: hidden;
      background: transparent;
      isolation: isolate;
      -webkit-mask-image: none;
      mask-image: none;
    }

    html.native-mobile-app.mobile-detail-translucent #detailSheet:not(.detail-large) .detail-cover::after {
      display: none;
    }

    html.native-mobile-app.mobile-detail-translucent #detailSheet:not(.detail-large) .detail-cover img {
      object-fit: contain !important;
      object-position: left center;
      filter: none;
      border-radius: inherit;
      -webkit-mask-image: none;
      mask-image: none;
    }

    html.native-mobile-app.mobile-detail-translucent #detailSheet:not(.detail-large) .detail-cover.poster-mode img {
      object-fit: cover !important;
      object-position: center 24%;
    }

    html.native-mobile-app.mobile-detail-translucent #detailSheet:not(.detail-large) .detail-info {
      margin-top: 0;
      padding: 0 2px 12px;
      text-shadow: none;
    }

    html.native-mobile-app.mobile-detail-translucent #detailSheet:not(.detail-large) .detail-title-row {
      display: flex;
      align-items: baseline;
      gap: 8px;
      flex-wrap: wrap;
      margin: 0 0 8px;
    }

    html.native-mobile-app.mobile-detail-translucent #detailSheet:not(.detail-large) .detail-title-row.has-logo {
      display: block;
    }

    html.native-mobile-app.mobile-detail-translucent #detailSheet:not(.detail-large) .detail-title-row.has-logo .detail-title-logo {
      max-width: 78vw;
      max-height: 54px;
      margin: 0 0 8px;
      filter: none;
    }

    html.native-mobile-app.mobile-detail-translucent #detailSheet:not(.detail-large) .detail-info h2 {
      max-width: none;
      margin: 0;
      color: var(--text);
      font-size: clamp(22px, 6vw, 32px);
      line-height: 1.12;
      font-weight: 800;
      text-shadow: none;
    }

    html.native-mobile-app.mobile-detail-translucent #detailSheet:not(.detail-large) .detail-title-meta {
      display: inline-flex;
      align-items: baseline;
      flex-wrap: wrap;
      gap: 6px;
      color: rgba(244, 247, 251, .9);
      font-size: 13px;
      font-weight: 720;
      line-height: 1.2;
      text-shadow: 0 1px 2px rgba(0, 0, 0, .38);
    }

    html.native-mobile-app.mobile-detail-translucent #detailSheet:not(.detail-large) .detail-title-meta .score {
      color: rgba(255, 218, 128, .95);
    }

    html.native-mobile-app.mobile-detail-translucent #detailSheet:not(.detail-large) .detail-title-meta .sep {
      display: inline;
      color: rgba(244, 247, 251, .42);
    }

    html.native-mobile-app.mobile-detail-translucent #detailSheet:not(.detail-large) .detail-meta {
      gap: 8px;
      margin: 8px 0 14px;
    }

    html.native-mobile-app.mobile-detail-translucent #detailSheet:not(.detail-large) .meta-pill {
      min-height: 0;
      padding: 5px 8px;
      border: 1px solid var(--line);
      border-radius: 999px;
      color: var(--muted);
      background: var(--panel);
      font-size: 12px;
      font-weight: 400;
      backdrop-filter: none;
    }

    html.native-mobile-app.mobile-detail-translucent #detailSheet:not(.detail-large) .meta-pill.strong {
      color: var(--text);
      border-color: var(--line-strong);
      background: var(--control-active);
      font-weight: 760;
    }

    html.native-mobile-app.mobile-detail-translucent #detailSheet:not(.detail-large) .detail-info p {
      color: rgba(244, 247, 251, .82);
      font-size: 14px;
      line-height: 1.62;
      font-weight: 400;
      text-shadow: none;
    }

    html.native-mobile-app.mobile-detail-translucent #detailSheet:not(.detail-large) .detail-info p.clamped {
      cursor: pointer;
    }

    html.native-mobile-app.mobile-detail-translucent #detailSheet:not(.detail-large) #detailMoreBtn {
      min-height: 0;
      margin: 2px 0 0;
      padding: 0;
      border: 0;
      background: transparent;
      color: rgba(184, 226, 255, .92);
      box-shadow: none;
      font-size: 13px;
      line-height: 1.62;
    }

    html.native-mobile-app.mobile-detail-translucent #detailSheet:not(.detail-large) > .actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin: 18px 0 0;
    }

    html.native-mobile-app.mobile-detail-translucent #detailSheet:not(.detail-large) > .actions.has-continue {
      display: grid;
      grid-template-columns: minmax(122px, 1fr) minmax(72px, .58fr) minmax(72px, .58fr);
      gap: 8px;
    }

    html.native-mobile-app.mobile-detail-translucent #detailSheet:not(.detail-large) > .actions .btn {
      min-width: 0;
      min-height: 42px;
      justify-content: center;
      border-radius: var(--radius);
      border-color: var(--line);
      background: var(--control);
      color: var(--text);
      box-shadow: none;
      font-size: 14px;
      font-weight: 760;
      text-shadow: 0 1px 2px rgba(0, 0, 0, .38);
      backdrop-filter: blur(12px) saturate(1.05);
    }

    html.native-mobile-app.mobile-detail-translucent #detailSheet:not(.detail-large) > .actions.has-continue .btn {
      min-height: 44px;
      gap: 5px;
      padding: 0 7px;
      border-radius: 13px;
      font-size: 13px;
      line-height: 1.05;
      white-space: nowrap;
    }

    html.native-mobile-app.mobile-detail-translucent #detailSheet:not(.detail-large) > .actions.has-continue .icon {
      width: 18px;
      height: 18px;
    }

    html.native-mobile-app.mobile-detail-translucent #detailSheet:not(.detail-large) > .actions.has-continue #detailContinueBtn {
      color: #fff;
      background:
        radial-gradient(circle at 24% 20%, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0) 34%),
        linear-gradient(135deg, #12d7ff 0%, #0b91ff 58%, #0867f7 100%);
      border-color: rgba(255, 255, 255, .16);
      box-shadow: 0 14px 26px rgba(0, 128, 255, .24), inset 0 1px 0 rgba(255, 255, 255, .24);
      font-weight: 800;
      text-shadow: none;
    }

    html.native-mobile-app.mobile-detail-translucent #detailSheet:not(.detail-large) > .actions.has-continue #detailSearchBtn,
    html.native-mobile-app.mobile-detail-translucent #detailSheet:not(.detail-large) > .actions.has-continue #panSearchBtn {
      color: #111827;
      background: rgba(255, 255, 255, .97);
      border-color: rgba(255, 255, 255, .72);
      box-shadow: 0 12px 24px rgba(0, 0, 0, .14), inset 0 1px 0 rgba(255, 255, 255, .72);
      font-weight: 800;
      text-shadow: none;
    }

    html.native-mobile-app.mobile-detail-translucent #detailSheet:not(.detail-large) > .actions .btn.primary {
      background: var(--control-active);
      border-color: var(--line-strong);
    }

    html.native-mobile-app.mobile-detail-translucent #detailSheet:not(.detail-large) > .actions .icon {
      width: 19px;
      height: 19px;
    }

    html.native-mobile-app.mobile-detail-translucent #detailSheet:not(.detail-large) .detail-block {
      margin-top: 18px;
    }

    html.native-mobile-app.mobile-detail-translucent #detailSheet:not(.detail-large) .detail-block h3 {
      margin: 0 0 10px;
      color: var(--text);
      font-size: 17px;
      line-height: 1.2;
      font-weight: 760;
      text-shadow: none;
    }

    html.native-mobile-app.mobile-detail-translucent #detailSheet:not(.detail-large) .rail {
      width: 100%;
      max-width: 100%;
      gap: 12px;
      margin: 0;
      padding: 2px 0 5px;
      scroll-padding-left: 0;
    }

    html.native-mobile-app.mobile-detail-translucent #detailSheet:not(.detail-large) #seasonTabs {
      width: 100%;
      max-width: 100%;
      margin: 0;
      padding-right: 0;
      padding-left: 0;
      scroll-padding-left: 0;
    }

    html.native-mobile-app.mobile-detail-translucent #detailSheet:not(.detail-large) .episode-card {
      flex: 0 0 230px;
      max-width: 260px;
      min-height: 138px;
      display: flex;
      flex-direction: column;
      border-radius: var(--radius);
      background: var(--panel);
      border-color: var(--line);
      box-shadow: none;
    }

    html.native-mobile-app.mobile-detail-translucent #detailSheet:not(.detail-large) .episode-still-wrap {
      height: 130px;
      min-height: 130px;
      flex-basis: 130px;
    }

    html.native-mobile-app.mobile-detail-translucent #detailSheet:not(.detail-large) .episode-card b {
      font-size: 14px;
      line-height: 1.18;
    }

    html.native-mobile-app.mobile-detail-translucent #detailSheet:not(.detail-large) .person-card {
      flex: 0 0 116px;
      max-width: 128px;
      height: 244px;
      align-items: stretch;
      background: var(--panel);
      border-color: var(--line);
      box-shadow: none;
      text-align: left;
    }

    html.native-mobile-app.mobile-detail-translucent #detailSheet:not(.detail-large) .person-card img {
      width: calc(100% + 2px);
      max-width: calc(100% + 2px);
      height: 176px;
      flex-basis: 176px;
      margin: -1px -1px 0;
      border-radius: 0;
      object-position: center top;
      box-shadow: none;
    }

    html.native-mobile-app.mobile-detail-translucent #detailSheet:not(.detail-large) .person-card div {
      width: auto;
      min-width: 0;
      padding: 8px 9px 9px;
      text-align: left;
    }

    html.native-mobile-app.mobile-detail-translucent #detailSheet:not(.detail-large) .person-card b {
      width: auto;
      color: var(--text);
      font-size: 14px;
      font-weight: 760;
      text-align: left;
    }

    html.native-mobile-app.mobile-detail-translucent #detailSheet:not(.detail-large) .person-card span {
      width: auto;
      margin-top: 3px;
      color: var(--muted);
      font-size: 12px;
      text-align: left;
      -webkit-line-clamp: 2;
    }

    html.native-mobile-app .image-viewer.episode-mode {
      display: none;
      grid-template-rows: minmax(0, 1fr);
      gap: 0;
      background: #081016;
      padding: 0 0 calc(28px + var(--safe-bottom));
      overflow: hidden;
    }

    html.native-mobile-app .image-viewer.episode-mode.active {
      display: grid;
    }

    html.native-mobile-app .image-viewer.episode-mode #closeImageBtn {
      display: none;
    }

    html.native-mobile-app .image-viewer.episode-mode .mobile-detail-back {
      position: fixed;
      top: max(14px, var(--active-safe-top));
      left: 16px;
      width: 54px;
      height: 54px;
      z-index: 95;
      color: rgba(255, 255, 255, .96);
      background: rgba(25, 35, 44, .28);
      border-color: rgba(255, 255, 255, .22);
      box-shadow: 0 12px 30px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .12);
      backdrop-filter: blur(14px) saturate(1.08);
    }

    html.native-mobile-app .image-viewer.episode-mode .mobile-detail-back .icon {
      width: 25px;
      height: 25px;
      stroke-width: 2.4;
    }

    html.native-mobile-app .image-viewer.episode-mode .image-content {
      width: 100%;
      height: 100%;
      display: block;
      overflow-y: auto;
      overscroll-behavior: contain;
      background: #081016;
    }

    html.native-mobile-app .image-viewer.episode-mode .episode-view {
      width: 100%;
      min-height: var(--fm-web-height);
      display: block;
      padding: 0 22px calc(34px + var(--safe-bottom));
      border: 0;
      border-radius: 0;
      background: #081016;
      box-shadow: none;
    }

    html.native-mobile-app .image-viewer.episode-mode .episode-view img {
      width: calc(100% + 44px);
      max-width: none;
      height: min(64vh, 620px);
      max-height: none;
      margin: 0 -22px;
      aspect-ratio: auto;
      object-fit: cover;
      object-position: center top;
      border: 0;
      border-radius: 0;
      filter: saturate(.94) contrast(.98) brightness(.84);
    }

    html.native-mobile-app .image-viewer.episode-mode .episode-view::before {
      content: "";
      position: fixed;
      top: 0;
      right: 0;
      left: 0;
      height: min(68vh, 660px);
      z-index: 1;
      pointer-events: none;
      background:
        linear-gradient(180deg, rgba(2, 5, 8, .02) 0%, rgba(2, 5, 8, .1) 42%, rgba(5, 10, 15, .72) 76%, #081016 100%),
        linear-gradient(90deg, rgba(3, 7, 11, .28), transparent 42%, rgba(3, 7, 11, .22));
    }

    html.native-mobile-app .image-viewer.episode-mode .episode-view > div,
    html.native-mobile-app .image-viewer.episode-mode .episode-view > p {
      position: relative;
      z-index: 2;
      text-shadow: 0 2px 12px rgba(0, 0, 0, .58);
    }

    html.native-mobile-app .image-viewer.episode-mode .episode-view > div {
      margin-top: -142px;
      padding-bottom: 18px;
    }

    html.native-mobile-app .image-viewer.episode-mode .episode-view.no-still {
      padding-top: max(96px, var(--active-safe-top));
      background:
        linear-gradient(180deg, rgba(12, 20, 28, .96), #081016 42%),
        var(--detail-hero-bg, none);
      background-size: cover;
      background-position: center top;
    }

    html.native-mobile-app .image-viewer.episode-mode .episode-view.no-still > div {
      margin-top: 0;
    }

    html.native-mobile-app .image-viewer.episode-mode .episode-view h3 {
      margin: 0 0 10px;
      color: rgba(255, 255, 255, .98);
      font-size: 30px;
      line-height: 1.14;
      font-weight: 900;
      letter-spacing: 0;
    }

    html.native-mobile-app .image-viewer.episode-mode .episode-view span {
      display: inline-flex;
      min-height: 30px;
      align-items: center;
      padding: 0 11px;
      border-radius: 999px;
      color: rgba(245, 248, 251, .76);
      background: rgba(255, 255, 255, .12);
      font-size: 14px;
      line-height: 1;
      backdrop-filter: blur(10px) saturate(1.04);
    }

    html.native-mobile-app .image-viewer.episode-mode .episode-view p {
      margin: 0;
      color: rgba(246, 249, 252, .84);
      font-size: 17px;
      line-height: 1.78;
      white-space: pre-wrap;
    }

    .sync-panel {
      display: grid;
      gap: 12px;
      padding: 12px;
      border-radius: var(--radius);
      background: var(--panel);
      border: 1px solid var(--line);
    }

    .hint {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.55;
    }

    .mono {
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      word-break: break-all;
    }

    .toast {
      position: fixed;
      left: 50%;
      bottom: max(18px, var(--safe-bottom));
      z-index: 90;
      transform: translateX(-50%) translateY(24px);
      max-width: calc(100vw - 28px);
      padding: 10px 12px;
      border-radius: var(--radius);
      background: rgba(6, 8, 10, .86);
      border: 1px solid var(--line);
      color: var(--text);
      box-shadow: var(--shadow);
      opacity: 0;
      pointer-events: none;
      transition: .18s ease;
      font-size: 13px;
    }

    .toast.show {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    .back-top {
      position: fixed;
      right: max(14px, var(--safe-right));
      bottom: max(76px, calc(58px + var(--safe-bottom)));
      z-index: 55;
      width: 44px;
      height: 44px;
      display: grid;
      place-items: center;
      border-radius: var(--radius);
      background: rgba(34, 43, 51, .68);
      border: 1px solid var(--line);
      color: var(--text);
      box-shadow: 0 12px 32px rgba(0, 0, 0, .24);
      backdrop-filter: blur(12px) saturate(1.05);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transform: translateY(10px);
      transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
    }

    .back-top.show {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: translateY(0);
    }

    .connection-dock {
      position: relative;
      z-index: 50;
      width: auto;
      width: fit-content;
      max-width: 100%;
      justify-self: end;
      margin-left: auto;
      margin: 0;
      border-radius: var(--radius);
      border: 1px solid var(--line);
      background: var(--control);
      box-shadow: 0 12px 32px rgba(0, 0, 0, .2);
      backdrop-filter: blur(12px) saturate(1.05);
      overflow: visible;
    }

    .connection-toggle {
      width: auto;
      min-height: 34px;
      display: inline-flex;
      align-items: center;
      display: grid;
      grid-template-columns: auto auto auto;
      align-items: center;
      gap: 7px;
      padding: 0 9px;
      background: transparent;
      color: var(--text);
      text-align: left;
    }

    .connection-title {
      font-size: 13px;
      font-weight: 800;
      white-space: nowrap;
    }

    .connection-arrow {
      color: var(--muted);
      font-size: 13px;
      transition: transform .16s ease;
    }

    .connection-dock.open .connection-arrow {
      transform: rotate(180deg);
    }

    .connection-body {
      display: none;
      position: absolute;
      right: 0;
      top: calc(100% + 8px);
      z-index: 80;
      width: 420px;
      max-width: 92vw;
      max-width: calc(100vw - 28px);
      max-width: calc(var(--fm-web-width, 100vw) - 28px);
      width: min(calc(var(--fm-web-width, 100vw) - 28px), 420px);
      max-width: calc(var(--fm-web-width, 100vw) - 28px);
      margin: 0;
      padding: 11px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: rgb(34, 43, 51);
      box-shadow: 0 14px 36px rgba(0, 0, 0, .24);
      backdrop-filter: blur(14px) saturate(1.05);
      transform: translateX(var(--connection-shift, 0px));
    }

    .connection-body.open {
      display: block;
    }

    .connection-grid {
      display: block;
      display: grid;
      gap: 8px;
      margin-top: 10px;
    }

    .connection-item {
      display: flex;
      align-items: baseline;
      display: grid;
      grid-template-columns: minmax(56px, 74px) minmax(0, 1fr);
      gap: 8px;
      align-items: baseline;
      font-size: 12px;
      line-height: 1.45;
    }

    .connection-item b {
      flex: 0 0 74px;
      color: var(--muted);
      font-weight: 700;
    }

    .connection-item span,
    .connection-item > .detail-style-segmented {
      flex: 1 1 auto;
      min-width: 0;
      word-break: break-word;
    }

    .connection-item.refresh-progress {
      align-items: start;
    }

    .connection-item.refresh-progress span {
      white-space: pre-line;
    }

    .detail-style-segmented {
      min-width: 0;
      display: inline-flex;
      display: inline-grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 2px;
      padding: 2px;
      border-radius: 8px;
      border: 1px solid rgba(255, 255, 255, .14);
      background: rgba(255, 255, 255, .06);
    }

    .detail-style-option {
      min-width: 0;
      min-height: 28px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0 8px;
      border-radius: 6px;
      border: 1px solid transparent;
      color: rgba(244, 247, 251, .7);
      font-size: 12px;
      font-weight: 760;
      line-height: 1;
      white-space: nowrap;
    }

    .detail-style-option.active {
      color: var(--text);
      background: rgba(184, 226, 255, .2);
      border-color: rgba(184, 226, 255, .34);
    }

    .relay-mirror-config {
      display: grid;
      gap: 8px;
      margin-top: 10px;
      padding-top: 10px;
      border-top: 1px solid rgba(255, 255, 255, .12);
    }

    .relay-mirror-config label {
      display: grid;
      gap: 5px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
    }

    .relay-mirror-config .field {
      width: 100%;
      min-height: 36px;
      padding: 8px 10px;
      font-size: 12px;
    }

    .relay-mirror-config textarea.field {
      min-height: 68px;
    }

    .relay-mirror-progress {
      min-height: 58px;
      padding: 8px 10px;
      border: 1px solid rgba(255, 255, 255, .12);
      border-radius: var(--radius);
      color: var(--text);
      background: rgba(0, 0, 0, .16);
      font-size: 12px;
      line-height: 1.45;
      white-space: pre-line;
      word-break: break-word;
    }

    .connection-body .actions {
      display: flex;
      flex-wrap: wrap;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
      gap: 8px;
    }

    .connection-body .btn {
      min-width: 0;
      padding: 0 10px;
      font-size: 12px;
      white-space: nowrap;
    }

    html.tv-mode .search {
      display: flex;
      align-items: stretch;
      gap: 0;
    }

    html.tv-mode .search .field {
      flex: 1 1 auto;
      min-width: 0;
    }

    html.tv-mode .search .btn,
    html.tv-mode .search .icon-btn,
    html.tv-mode .search > .connection-dock {
      flex: 0 0 auto;
      margin-left: 10px;
    }

    html.tv-mode .search .btn,
    html.tv-mode .search .icon-btn {
      height: 44px;
      min-height: 44px;
      align-self: stretch;
    }

    html.tv-mode .search #searchSubmitBtn {
      box-sizing: border-box;
      min-width: 98px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0 16px;
      line-height: 1;
      white-space: nowrap;
    }

    html.tv-mode .search #searchSubmitBtn .icon {
      display: block;
      flex: 0 0 auto;
      margin-right: 7px;
    }


    html.tv-mode .search > .connection-dock {
      box-sizing: border-box;
      width: 104px;
      min-width: 104px;
      max-width: 104px;
      flex-basis: 104px;
      height: 44px;
      min-height: 44px;
      align-self: stretch;
      justify-self: auto;
      overflow: visible;
    }

    html.tv-mode .search > .connection-dock .connection-toggle {
      box-sizing: border-box;
      width: 100%;
      min-width: 104px;
      max-width: 104px;
      height: 44px;
      min-height: 44px;
      display: flex;
      flex-direction: row;
      flex-wrap: nowrap;
      align-items: center;
      justify-content: center;
      padding: 0 11px;
      white-space: nowrap;
      line-height: 1;
    }

    html.tv-mode .search > .connection-dock .dot,
    html.tv-mode .search > .connection-dock .connection-title,
    html.tv-mode .search > .connection-dock .connection-arrow {
      flex: 0 0 auto;
      display: inline-block;
      line-height: 1;
      white-space: nowrap;
    }

    html.tv-mode .search > .connection-dock .dot {
      width: 10px;
      height: 10px;
      margin-right: 8px;
      vertical-align: middle;
    }

    html.tv-mode .search > .connection-dock .connection-title {
      font-size: 15px;
      font-weight: 800;
      margin-right: 7px;
      vertical-align: middle;
    }

    html.tv-mode .search > .connection-dock .connection-arrow {
      font-size: 15px;
      margin-left: 0;
      vertical-align: middle;
    }

    .pan-config {
      display: grid;
      gap: 8px;
      margin-top: 10px;
      padding-top: 10px;
      border-top: 1px solid rgba(255, 255, 255, .12);
    }

    .pan-config label {
      display: grid;
      gap: 5px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.35;
    }

    .pan-config .field {
      min-height: 38px;
      font-size: 12px;
    }

    .pan-disk-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
      gap: 6px;
    }

    .pan-disk-grid label {
      min-width: 0;
      min-height: 32px;
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 0 8px;
      border-radius: var(--radius);
      border: 1px solid rgba(255, 255, 255, .14);
      background: rgba(255, 255, 255, .04);
      color: var(--text);
      font-size: 12px;
      font-weight: 720;
    }

    .pan-disk-grid input {
      width: 14px;
      height: 14px;
      accent-color: rgba(244, 247, 251, .82);
    }

    .pan-disk-grid label:focus-within {
      background: rgba(70, 85, 96, .72);
      border-color: var(--focus-line);
      color: var(--text);
    }

    .panel-editing {
      background: rgba(24, 36, 46, .88) !important;
      border-color: rgba(184, 226, 255, .9) !important;
    }

    .pan-search-block {
      display: none;
      margin-top: 18px;
    }

    .pan-search-block.active {
      display: block;
    }

    .pan-result-list {
      display: grid;
      gap: 9px;
      align-content: flex-start;
      align-items: start;
      grid-auto-rows: max-content;
      height: 52vh;
      max-height: 560px;
      min-height: 260px;
      overflow-y: auto;
      overscroll-behavior-y: contain;
      -webkit-overflow-scrolling: touch;
      touch-action: pan-y;
      padding-right: 2px;
      scrollbar-width: none;
    }

    .pan-result-list::-webkit-scrollbar { display: none; }

    .pan-tabs {
      margin: 0 0 9px;
    }

    .pan-tabs:empty { display: none; }

    .pan-tabs .chip {
      min-height: 30px;
      padding: 0 10px;
      font-size: 12px;
    }

    .pan-tabs .chip.active {
      background: rgba(82, 98, 108, .82);
      border-color: rgba(184, 226, 255, .74);
    }

    .pan-result-item {
      width: 100%;
      min-width: 0;
      display: grid;
      gap: 7px;
      padding: 11px;
      border-radius: var(--radius);
      border: 1px solid var(--line);
      background: var(--panel);
      color: var(--text);
      text-align: left;
      backdrop-filter: blur(10px) saturate(1.05);
      contain: layout style;
      touch-action: pan-y;
    }

    .pan-result-list.mouse-dragging,
    .collect-result-list.mouse-dragging { cursor: grabbing; user-select: none; }

    .pan-result-item.is-bad {
      opacity: .58;
    }

    .pan-result-title {
      display: flex;
      min-width: 0;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      font-weight: 800;
      line-height: 1.3;
    }

    .pan-result-title span:first-child {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .pan-result-meta,
    .pan-result-url {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.35;
    }

    .pan-result-url {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .pan-health {
      flex: 0 0 auto;
      display: inline-block;
      width: .55rem;
      height: .55rem;
      border-radius: 999px;
      background: #94a3b8;
      box-shadow: 0 0 0 1px rgba(255, 255, 255, .18);
    }

    .pan-health.ok { background: #22c55e; }
    .pan-health.bad { background: #ef4444; }
    .pan-health.locked { background: #f59e0b; }
    .pan-health.pending {
      background: #60a5fa;
      animation: pulse-dot 1.1s ease-in-out infinite;
    }

    .pan-health.uncertain,
    .pan-health.unsupported { background: #94a3b8; }

    @keyframes pulse-dot {
      0%, 100% { opacity: .45; transform: scale(.92); }
      50% { opacity: 1; transform: scale(1.08); }
    }

    .dot {
      width: 9px;
      height: 9px;
      border-radius: 999px;
      background: var(--muted);
    }

    .dot.ok { background: var(--ok); }
    .dot.warn { background: #ffcc4d; }
    .dot.bad { background: var(--danger); }

    .image-viewer {
      display: none;
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      inset: 0;
      z-index: 100;
      height: 100vh;
      min-height: var(--fm-web-height);
      background: var(--panel-strong);
      backdrop-filter: blur(8px) saturate(1.05);
      padding: max(14px, var(--active-safe-top)) 14px calc(18px + var(--safe-bottom));
    }

    .image-viewer.episode-mode {
      background: transparent;
      backdrop-filter: none;
    }

    .image-viewer.active {
      display: grid;
      grid-template-rows: auto minmax(0, 1fr);
      gap: 14px;
    }

    .image-content {
      min-width: 0;
      min-height: 0;
      display: grid;
      place-items: center;
      overflow-y: auto;
      scrollbar-width: none;
    }

    .image-content::-webkit-scrollbar { display: none; }

    .image-content img {
      align-self: center;
      justify-self: center;
      width: 100%;
      height: 100%;
      max-height: calc(var(--fm-web-height) - 86px - var(--safe-bottom));
      object-fit: contain;
      background: transparent;
    }

    .episode-view {
      width: min(860px, 100%);
      min-width: 0;
      align-self: start;
      display: grid;
      gap: 12px;
      padding: 12px;
      padding-bottom: 20px;
      border-radius: var(--radius);
      border: 1px solid var(--line);
      background: var(--panel);
      box-shadow: var(--shadow);
    }

    .episode-view img {
      width: 100%;
      height: auto;
      max-height: min(48vh, 460px);
      aspect-ratio: 16 / 9;
      object-fit: cover;
      border-radius: var(--radius);
      border: 1px solid var(--line);
      background: rgba(0, 0, 0, .18);
    }

    .episode-view h3 {
      margin: 0;
      font-size: 19px;
      line-height: 1.3;
    }

    .episode-view span {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.4;
    }

    .episode-view p {
      margin: 0;
      color: rgba(244, 247, 251, .9);
      font-size: 15px;
      line-height: 1.65;
      white-space: pre-wrap;
    }

    .focusable:focus,
    button:focus,
    input:focus,
    textarea:focus {
      outline: none;
      border-color: var(--focus-line);
      box-shadow: none;
      z-index: 5;
      transition: none;
    }

    .focusable:not(.back-top):focus,
    button:not(.back-top):focus,
    input:focus,
    textarea:focus {
      position: relative;
    }

    .back-top:focus {
      position: fixed;
      z-index: 55;
    }

    .card:focus,
    .episode-card:focus,
    .person-card:focus {
      transform: translateY(-1px) scale(1.035);
      border-color: var(--focus-line);
      background: rgba(var(--panel-rgb), .66);
      box-shadow: none;
    }

    .card:focus img,
    .episode-card:focus img,
    .person-card:focus img {
      filter: brightness(1.06) saturate(1.04);
    }

    html.tv-mode .card:focus,
    html.tv-mode .episode-card:focus,
    html.tv-mode .person-card:focus {
      transform: translateY(-1px) scale(1.025);
      outline: 2px solid rgba(255, 255, 255, .9);
      outline-offset: -2px;
      border-color: rgba(255, 255, 255, .96);
      background: rgba(var(--panel-rgb), .72);
      box-shadow: inset 0 0 0 1px rgba(168, 218, 255, .72);
      transition: none;
      z-index: 12;
    }

    html.tv-mode .episode-card:focus {
      transform: translateY(-1px) scale(1.03);
    }

    html.tv-mode .card:focus {
      border-color: rgba(255, 255, 255, .98);
      box-shadow: inset 0 0 0 1px rgba(168, 218, 255, .74);
    }

    html.tv-mode .card,
    html.tv-mode .chip,
    html.tv-mode .btn,
    html.tv-mode .mini-icon-btn,
    html.tv-mode .connection-toggle,
    html.tv-mode .field,
    html.tv-mode .pan-result-item,
    html.tv-mode .person-info,
    html.tv-mode .rating-badge,
    html.tv-mode .recent-badge,
    html.tv-mode .live-entry-card {
      backdrop-filter: none;
    }

    html.tv-mode .card:focus img,
    html.tv-mode .episode-card:focus img,
    html.tv-mode .person-card:focus img {
      filter: none;
    }

    .pan-result-item:focus {
      outline: 2px solid rgba(168, 218, 255, .86);
      outline-offset: -2px;
      border-color: rgba(188, 228, 255, .9);
      background: rgba(82, 100, 112, .86);
      box-shadow: none;
    }

    .pan-result-item:focus .pan-result-title {
      color: #fff;
    }

    .chip:focus,
    .btn:focus,
    .mini-icon-btn:focus,
    .connection-toggle:focus,
    .detail-style-option:focus {
      transform: translateY(-1px);
      background: rgba(70, 85, 96, .72);
      border-color: var(--focus-line);
      box-shadow: none;
    }

    .chip.active:focus {
      background: rgba(82, 98, 108, .78);
      border-color: rgba(184, 226, 255, .8);
    }

    input.focusable:focus,
    textarea.focusable:focus,
    .field:focus {
      transform: none;
      background: rgba(28, 38, 46, .72);
      border-color: var(--focus-line);
      box-shadow: none;
    }

    .suggest-item:focus {
      background: rgba(60, 76, 90, .82);
      border-color: var(--focus-line);
      box-shadow: none;
    }

    .image-content:focus {
      border-radius: var(--radius);
      box-shadow: none;
    }

    .focusable:active,
    button:active {
      transform: translateY(1px);
    }

    @media (min-width: 720px) {
      .app,
      .sheet {
        --sheet-x: 34px;
        padding-left: 34px;
        padding-right: 34px;
      }

      .detail-cover {
        width: min(100%, 78vw, 960px);
        max-width: calc(100vw - 68px);
        height: auto;
        aspect-ratio: 16 / 9;
        min-height: 180px;
        max-height: none;
        margin: 14px 0;
        border-radius: var(--radius);
      }

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

      .rail {
        gap: 14px;
      }

      .card {
        flex-basis: 176px;
      }

      .media-grid {
        gap: 14px;
        grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
      }
    }

    @media (min-width: 1180px) {
      .app,
      .sheet {
        --sheet-x: 56px;
        padding-left: 56px;
        padding-right: 56px;
      }

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

      .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
      }
    }

    /* TV navigation promotes only the focused tile, not every poster at once. */
    html.tv-mode .card:focus {
      transform: translateY(-1px) scale(1.025) translateZ(0);
    }

    html.tv-mode .episode-card:focus,
    html.tv-mode .person-card:focus {
      transform: translateY(-1px) scale(1.03) translateZ(0);
    }

    html.tv-mode .media-grid,
    html.tv-mode .rail {
      contain: layout style;
    }

    html.no-layout-gap .search .btn {
      margin-left: 10px !important;
    }

    html.no-layout-gap .search .icon-btn {
      margin-left: 10px !important;
    }

    html.no-layout-gap .btn .icon {
      margin-right: 7px;
    }

    html.no-layout-gap .btn .icon:only-child {
      margin-right: 0;
    }

    html.no-layout-gap .chips > .chip {
      margin-right: 8px;
    }

    html.no-layout-gap .chips > .chip:last-child {
      margin-right: 0;
    }

    html.no-layout-gap .rail > .card,
    html.no-layout-gap .rail > .episode-card,
    html.no-layout-gap .rail > .person-card {
      margin-right: 12px;
    }

    html.no-layout-gap .rail > .card:last-child,
    html.no-layout-gap .rail > .episode-card:last-child,
    html.no-layout-gap .rail > .person-card:last-child {
      margin-right: 0;
    }

    html.no-layout-gap .media-grid {
      margin: -5px;
    }

    html.no-layout-gap .media-grid > .card {
      width: auto;
      margin: 5px;
    }

    html.no-layout-gap .actions > .btn {
      margin: 0 10px 10px 0;
    }

    html.no-layout-gap .detail-meta > .meta-pill {
      margin: 0 8px 8px 0;
    }

    html.no-layout-gap .detail-title-row > * {
      margin-right: 8px;
    }

    html.no-layout-gap .detail-title-row > *:last-child {
      margin-right: 0;
    }

    html.no-layout-gap .connection-grid > .connection-item,
    html.no-layout-gap .pan-config > *,
    html.no-layout-gap .relay-mirror-config > * {
      margin-top: 8px;
    }

    html.no-layout-gap .connection-body .actions > .btn {
      margin: 4px;
    }

    html.no-layout-gap .connection-grid > .connection-item:first-child,
    html.no-layout-gap .pan-config > *:first-child,
    html.no-layout-gap .relay-mirror-config > *:first-child {
      margin-top: 0;
    }

    html.no-layout-gap .connection-item > b {
      margin-right: 8px;
    }

    html.no-css-functions .connection-body {
      width: 420px;
      max-width: calc(100vw - 28px);
    }

    html.no-layout-gap .pan-disk-grid {
      margin: -3px;
    }

    html.no-layout-gap .pan-disk-grid > label {
      margin: 3px;
    }

    html.no-layout-gap #detailSheet.detail-large .rail > .episode-card,
    html.no-layout-gap #detailSheet.detail-large .rail > .person-card,
    html.no-layout-gap #detailSheet.detail-large .rail > .card {
      margin-right: 18px;
    }

    html.no-layout-gap #detailSheet.detail-large .rail > .episode-card:last-child,
    html.no-layout-gap #detailSheet.detail-large .rail > .person-card:last-child,
    html.no-layout-gap #detailSheet.detail-large .rail > .card:last-child {
      margin-right: 0;
    }

    html.no-layout-gap #detailSheet.detail-large > .actions > .btn {
      margin-right: 16px;
      margin-bottom: 16px;
    }

    html.no-layout-gap #detailSheet.detail-large .detail-meta > .meta-pill {
      margin-right: 10px;
      margin-bottom: 10px;
    }

    html.no-aspect-ratio .poster-wrap {
      position: relative;
      display: block;
      height: 0;
      padding-top: 150%;
      overflow: hidden;
      border-radius: var(--radius) var(--radius) 0 0;
    }

    html.no-aspect-ratio .poster-wrap .poster {
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      width: 100%;
      max-width: 100%;
      height: 100%;
      margin: 0;
      object-fit: cover;
      border-radius: inherit;
    }

    html.no-aspect-ratio .card.landscape-card .poster-wrap {
      padding-top: 56.25%;
    }

    html.no-aspect-ratio .media-grid > .card,
    html.no-aspect-ratio .rail > .card {
      overflow: hidden;
      border-radius: var(--radius);
    }

    html.no-aspect-ratio #detailSheet.detail-large .episode-card {
      height: 141px;
    }

    html.no-aspect-ratio #detailSheet.detail-large .episode-still,
    html.no-aspect-ratio #detailSheet.detail-large .landscape-card .poster {
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      width: 100%;
      max-width: 100%;
      height: 100%;
      margin: 0;
      object-fit: cover;
    }

    html.no-aspect-ratio #detailSheet.detail-large .card.landscape-card {
      height: 146px;
    }

    html.no-css-functions #detailSheet.detail-large,
    html.legacy-detail-layout #detailSheet.detail-large {
      --detail-side-pad: 64px;
      --detail-top-pad: 56px;
      padding: 56px 64px 54px;
    }

    html.no-css-functions #detailSheet.detail-large .detail-cover,
    html.legacy-detail-layout #detailSheet.detail-large .detail-cover {
      width: 870px;
      height: 560px;
    }

    html.no-css-functions #detailSheet.detail-large .detail-info,
    html.no-css-functions #detailSheet.detail-large > .actions,
    html.no-css-functions #detailSheet.detail-large .detail-block,
    html.legacy-detail-layout #detailSheet.detail-large .detail-info,
    html.legacy-detail-layout #detailSheet.detail-large > .actions,
    html.legacy-detail-layout #detailSheet.detail-large .detail-block {
      max-width: 720px;
    }

    html.no-css-functions #detailSheet.detail-large .detail-info h2,
    html.legacy-detail-layout #detailSheet.detail-large .detail-info h2 {
      font-size: 52px;
    }

    html.no-css-functions #detailSheet.detail-large .detail-title-meta,
    html.legacy-detail-layout #detailSheet.detail-large .detail-title-meta {
      font-size: 24px;
    }

    html.no-css-functions #detailSheet.detail-large .detail-info p,
    html.legacy-detail-layout #detailSheet.detail-large .detail-info p {
      font-size: 17px;
    }

    html.no-css-functions #detailSheet.detail-large > .actions .btn,
    html.legacy-detail-layout #detailSheet.detail-large > .actions .btn {
      font-size: 20px;
    }

    html.no-css-functions #detailSheet.detail-large #seasonBlock,
    html.legacy-detail-layout #detailSheet.detail-large #seasonBlock {
      margin-top: 46px;
    }

    html.no-css-functions #detailSheet.detail-large .detail-block h3,
    html.legacy-detail-layout #detailSheet.detail-large .detail-block h3 {
      font-size: 25px;
    }

    html.no-css-functions #detailSheet.detail-large #seasonTabs,
    html.legacy-detail-layout #detailSheet.detail-large #seasonTabs {
      max-width: 720px;
    }

    html.no-css-functions #detailSheet.detail-large .episode-card,
    html.legacy-detail-layout #detailSheet.detail-large .episode-card {
      flex: 0 0 250px;
      max-width: 250px;
      height: 141px;
    }

    html.no-css-functions #detailSheet.detail-large .episode-card b,
    html.legacy-detail-layout #detailSheet.detail-large .episode-card b {
      font-size: 17px;
    }

    html.no-css-functions #detailSheet.detail-large .person-card,
    html.legacy-detail-layout #detailSheet.detail-large .person-card {
      flex: 0 0 280px;
      max-width: 280px;
    }

    html.no-css-functions #detailSheet.detail-large .person-card b,
    html.legacy-detail-layout #detailSheet.detail-large .person-card b {
      font-size: 22px;
    }

    html.no-css-functions #detailSheet.detail-large .person-card span,
    html.legacy-detail-layout #detailSheet.detail-large .person-card span {
      font-size: 16px;
    }

    html.no-css-functions #detailSheet.detail-large .card.landscape-card,
    html.legacy-detail-layout #detailSheet.detail-large .card.landscape-card {
      flex: 0 0 260px;
      max-width: 260px;
      height: 146px;
    }
  #liveOfficialLink[hidden],.live-video-wrap video[hidden]{display:none}
.live-official-frame{display:block;width:100%;height:100%;border:0;background:#000}
.live-tree-toggle{display:block;width:100%;padding:11px 8px;text-align:left;background:transparent;color:inherit;border:0;border-radius:6px;cursor:pointer;font-size:14px}
.live-tree-toggle:hover{background:rgba(255,255,255,.1)}
.live-tree-children{padding-left:10px;display:flex;flex-direction:column;gap:5px}
.live-tree-branch{width:100%;min-width:0}
.live-probe-note{font-size:12px;line-height:1.5;opacity:.65;margin:0}

    .connection-body .admin-only-config,
    .connection-body .pan-config,
    .connection-body .relay-mirror-config,
    .connection-body > .actions { display: none !important; }
    .connection-admin-link { display: inline-block; margin-top: 12px; color: #b9d5f8; font-size: 12px; text-decoration: none; }
    /* 海报列表滚动时保持不透明、轻量的绘制路径。 */
    .app .card, .app .card .card-meta, .collect-result-list .pan-result-item { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
    .app .card { background: var(--panel); }

    /* Stremio-style media tiles: transparent wrapper, rounded 2:3 poster,
       centered two-line title in a 4rem title bar. */
    #home .media-grid {
      grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
      gap: 0;
    }
    #home .rail { gap: 0; }
    #home .media-grid > .stremio-card,
    #home .rail > .stremio-card {
      min-width: 0;
      max-width: none;
      padding: 16px;
      overflow: visible;
      border: 0;
      border-radius: 0;
      background: transparent;
      text-align: center;
      cursor: default;
    }
    #home .card { cursor: default; }
    #home .card .poster-wrap,
    #home .card .card-title { cursor: pointer; }
    #home .stremio-card:hover { transform: none; }
    #home .rail > .stremio-card {
      flex: 0 0 236px;
      width: 236px;
    }
    #home .stremio-card .poster-wrap {
      width: 100%;
      max-width: 100%;
      margin: 0;
      overflow: hidden;
      border-radius: 8px;
      isolation: isolate;
      cursor: pointer;
    }
    #home .stremio-card .poster {
      display: block;
      width: 100%;
      /* Override the snapshot's intrinsic height as its width shrinks. */
      height: auto;
      aspect-ratio: 2 / 3;
      object-fit: cover;
      opacity: .9;
      transition: transform 100ms ease-out;
    }
    #home .stremio-card .card-body {
      height: 64px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      border: 0;
      background: transparent;
    }
    #home .stremio-card .card-title {
      display: -webkit-box;
      width: 100%;
      min-height: 0;
      max-height: 2.5em;
      padding: 0 24px;
      overflow: hidden;
      color: rgba(255, 255, 255, .9);
      font-size: 16px;
      font-weight: 600;
      line-height: 1.25;
      text-align: center;
      text-overflow: clip;
      text-shadow: none;
      white-space: normal;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      cursor: pointer;
    }
    #home .stremio-card .card-meta,
    #home .stremio-card .rating-badge,
    #home .stremio-card .card-people { display: none; }
    #home .stremio-card:focus,
    #home .stremio-card:focus-visible {
      transform: none;
      border-color: transparent;
      background: transparent;
      box-shadow: none;
      outline: 0;
    }
    #home .stremio-card:focus .poster { filter: none; }
    #home .stremio-card:focus-visible .poster { transform: none; }
    #home .stremio-card:focus-visible .poster-wrap { box-shadow: 0 0 0 2px rgba(245, 245, 250, .85); }
    @media (hover: hover) and (pointer: fine) {
      #home .stremio-card .poster-wrap:hover .poster { transform: scale(1.05); }
      #home .stremio-card .poster-wrap:hover { box-shadow: 0 0 0 3px rgba(245, 245, 250, .95); }
    }
    html.tv-mode #home .stremio-card:focus .poster { transform: none; filter: none; }
    html.tv-mode #home .stremio-card:focus .poster-wrap { box-shadow: 0 0 0 2px rgba(245, 245, 250, .85); }
    @media (max-width: 760px) {
      #home .media-grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
      #home .stremio-card { padding: 8px; }
      #home .rail > .stremio-card { flex-basis: 168px; width: 168px; }
      #home .stremio-card .card-title { padding: 0 12px; }
    }

    .pan-resource-modal{position:fixed;inset:0;z-index:140;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(4,7,13,.76);backdrop-filter:blur(13px);-webkit-backdrop-filter:blur(13px);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .22s ease,visibility .22s ease}
    .pan-resource-modal.open{opacity:1;visibility:visible;pointer-events:auto}
    .pan-resource-dialog{width:min(520px,100%);max-height:min(720px,calc(100dvh - 40px));overflow:auto;border:1px solid rgba(255,255,255,.16);border-radius:22px;background:linear-gradient(155deg,rgba(29,35,50,.98),rgba(11,16,27,.98));box-shadow:0 28px 90px rgba(0,0,0,.55);transform:translateY(18px) scale(.97);opacity:0;transition:transform .34s cubic-bezier(.2,.85,.25,1.15),opacity .2s ease}
    .pan-resource-modal.open .pan-resource-dialog{transform:translateY(0) scale(1);opacity:1}
    .pan-resource-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:12px;padding:16px 18px;border-bottom:1px solid rgba(255,255,255,.1);background:rgba(15,20,32,.94);backdrop-filter:blur(12px)}
    .pan-resource-head h2{flex:1;margin:0;font-size:17px;line-height:1.35}
    .pan-resource-body{min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:26px 24px 30px;text-align:center;animation:pan-resource-content-in .24s ease both}
    .pan-resource-progress{display:flex;align-items:center;justify-content:center;gap:12px;font-size:15px}
    .pan-resource-spinner{width:24px;height:24px;flex:0 0 24px;border:3px solid rgba(255,255,255,.16);border-top-color:#7dd3fc;border-radius:50%;animation:pan-resource-spin .8s linear infinite}
    .pan-resource-steps{width:100%;max-width:400px;display:grid;gap:8px;margin:6px 0 0;padding:0;list-style:none;text-align:left}
    .pan-resource-steps li{display:grid;grid-template-columns:20px 1fr;gap:8px;align-items:start;color:var(--muted);font-size:13px;line-height:1.45;animation:pan-resource-step-in .22s ease both}
    .pan-resource-steps li.done{color:rgba(204,224,235,.72)}
    .pan-resource-steps li.active{color:#e9f8ff;font-weight:700}
    .pan-resource-steps li.done>span:first-child{color:#5ee7a5}.pan-resource-steps li.active>span:first-child{color:#7dd3fc}
    .pan-resource-countdown,.pan-resource-tip{margin:0;color:var(--muted);font-size:12px;line-height:1.55}
    .pan-resource-notice{width:100%;margin:0;padding:10px 12px;border:1px solid rgba(125,211,252,.18);border-radius:12px;background:rgba(125,211,252,.07);color:var(--text);font-size:13px;line-height:1.6}
    .pan-resource-link{width:100%;max-height:130px;overflow:auto;padding:13px 14px;border:1px solid rgba(255,255,255,.13);border-radius:12px;background:rgba(0,0,0,.22);color:#dff6ff;font:12px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace;text-align:left;overflow-wrap:anywhere;user-select:text}
    .pan-resource-password{color:var(--text);font-size:14px}.pan-resource-password b{font-size:17px;letter-spacing:.08em;color:#fde68a}
    .pan-resource-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:2px}
    .pan-resource-actions .btn{min-width:118px;text-decoration:none}
    .pan-resource-qr{width:min(260px,72vw);height:auto;padding:10px;border-radius:16px;background:#fff;box-shadow:0 14px 42px rgba(0,0,0,.34);animation:pan-resource-qr-in .3s cubic-bezier(.2,.8,.2,1.15) both}
    body.pan-resource-modal-active{overflow:hidden}
    @keyframes pan-resource-spin{to{transform:rotate(360deg)}}
    @keyframes pan-resource-content-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
    @keyframes pan-resource-step-in{from{opacity:0;transform:translateX(-5px)}to{opacity:1;transform:none}}
    @keyframes pan-resource-qr-in{from{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}
    @media(max-width:640px){.pan-resource-modal{padding:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom))}.pan-resource-dialog{max-height:calc(100dvh - 24px);border-radius:18px}.pan-resource-head{padding:12px 14px}.pan-resource-body{min-height:210px;padding:22px 16px 25px}.pan-resource-actions{width:100%}.pan-resource-actions .btn{flex:1}}
    @media(prefers-reduced-motion:reduce){.pan-resource-modal,.pan-resource-dialog,.pan-resource-body,.pan-resource-steps li,.pan-resource-qr{transition:none;animation:none}}

    /* Detail actions use Stremio's neutral resting state. */
    .app .btn:not(.link),
    #detailSheet .actions .btn:not(.link) {
      border-radius: 999px;
      transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
    }
    #detailSheet .actions .btn.primary,
    #detailSheet .actions .btn.blue {
      color: rgba(246,248,252,.94);
      background: rgba(255,255,255,.09);
      border-color: rgba(255,255,255,.08);
      text-shadow: none;
      backdrop-filter: none;
    }
    #detailSheet .actions .btn:not(.link):hover {
      color: #fff;
      background: rgba(255,255,255,.15);
      border-color: rgba(255,255,255,.1);
      box-shadow: none;
    }
    #detailSheet .actions .btn:not(.link):active { transform: scale(.97); }
    #detailSheet.detail-large > .actions .btn:focus-visible {
      color: #fff;
      background: rgba(255,255,255,.09);
      border-color: rgba(255,255,255,.1);
      box-shadow: none;
      outline: 2px solid rgba(255,255,255,.45);
      outline-offset: 2px;
    }

    html:not(.fm-native) body.detail-active #detailSheet #mobileDetailBackBtn {
      position: fixed;
      top: max(14px, var(--active-safe-top, 0px));
      left: max(14px, var(--safe-left, 0px));
      z-index: 70;
      display: grid;
      width: 44px;
      height: 44px;
      color: #fff;
      border: 1px solid rgba(255,255,255,.22);
      background: rgba(26,23,62,.78);
      box-shadow: 0 10px 28px rgba(0,0,0,.35);
      backdrop-filter: blur(14px) saturate(1.1);
    }
    html body.detail-active #detailSheet #mobileDetailBackBtn {
      width: 44px;
      height: 44px;
      padding: 0;
      color: rgba(255,255,255,.94);
      border: 0 !important;
      background: transparent !important;
      box-shadow: none !important;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
    }
    #detailSheet #mobileDetailBackBtn .icon { width: 25px; height: 25px; stroke-width: 2.2; }

    /* Home and disk-source tabs share the player route/episode button treatment. */
    #chips > .chip,
    .category-tabs > .chip,
    .pan-tabs > .chip,
    .sg-player-pill,
    .sg-player-episode {
      min-height: 38px;
      padding-left: 12px;
      padding-right: 12px;
      border: 1px solid rgba(255,255,255,.1);
      border-radius: 12px;
      background: rgba(255,255,255,.09);
      color: #f4f2ff;
      text-shadow: none;
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
      font-size: 12px;
      font-weight: 660;
      line-height: 1;
    }
    #chips > .chip:hover,
    .category-tabs > .chip:hover,
    .pan-tabs > .chip:hover,
    .sg-player-pill:hover,
    .sg-player-episode:hover { background: rgba(255,255,255,.15); }
    #chips > .chip.active,
    .category-tabs > .chip.active,
    .pan-tabs > .chip.active {
      border-color: rgba(255,255,255,.16);
      background: rgba(255,255,255,.18);
      color: #fff;
    }
    .sg-player-pill.active,
    .sg-player-episode.active {
      border-color: rgba(165,243,252,.82);
      background: linear-gradient(135deg,rgba(61,145,160,.32),rgba(82,127,164,.28));
      color: #fff;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
      font-weight: 800;
    }

    @media (max-width: 760px) {
      #home .section { margin-top: 17px; }
      #home .section-head { margin-bottom: 6px; }
      #home .media-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px 2px;
      }
      #home .media-grid > .stremio-card { padding: 4px; }
      #home .stremio-card { padding: 4px; }
      #home .rail > .stremio-card {
        flex-basis: calc((100vw - 28px) / 3);
        width: calc((100vw - 28px) / 3);
      }
      #home .stremio-card .card-body { height: 44px; }
      #home .stremio-card .card-title {
        padding: 0 4px;
        font-size: 13px;
        line-height: 1.2;
      }

      #detailSheet:not(.detail-large) {
        padding-top: max(68px, calc(58px + var(--active-safe-top, 0px)));
      }
      #detailSheet.detail-large {
        --detail-side-pad: 14px;
        --detail-top-pad: max(68px, calc(58px + var(--active-safe-top, 0px)));
      }
      #detailSheet.detail-large::before { inset: var(--detail-top-pad) 0 0; }
      #detailSheet.detail-large .detail-info,
      #detailSheet.detail-large > .actions,
      #detailSheet.detail-large .detail-block,
      #detailSheet.detail-large #seasonTabs {
        width: 100%;
        max-width: 100%;
      }
      html body.detail-active #detailSheet #mobileDetailBackBtn {
        top: max(8px, var(--active-safe-top, 0px));
        left: max(12px, var(--safe-left, 0px));
      }
    }

    .collect-search-block { display: none; margin-top: 18px; }
    .collect-search-block.active { display: block; }
    .collect-source-tabs { margin: 0 0 9px; }
    .collect-result-list { display: grid; gap: 9px; align-content: flex-start; max-height: 52vh; min-height: 160px; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
    .collect-result-list .pan-result-item { touch-action: pan-y; }
    .collect-result-list .pan-result-item { cursor: pointer; }
    .collect-result-list .pan-result-item:hover { border-color: rgba(184,226,255,.65); background: rgba(60,82,98,.9); }
    .home-collect-block[hidden] { display: none !important; }
    .home-collect-block .subsection-head { margin-top: 4px; }
    .home-collect-captcha { display: flex; align-items: center; gap: 8px; min-width: min(420px, 100%); padding: 10px; }
    .home-collect-captcha .field { width: 120px; }
    .collect-source-badge { position:absolute;z-index:4;top:7px;right:7px;max-width:calc(100% - 14px);padding:4px 8px;border:1px solid rgba(255,255,255,.24);border-radius:999px;background:rgba(10,16,28,.72);backdrop-filter:blur(10px);color:#f7f9fc;font-size:11px;font-weight:700;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none;box-shadow:0 3px 12px rgba(0,0,0,.24)}
    html:not(.native-mobile-app) #detailSheet.external-glass-bg:not(.detail-large)::before,
    html:not(.native-mobile-app) #detailSheet.external-glass-bg:not(.detail-large)::after {
      content: "";
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
    }
    html:not(.native-mobile-app) #detailSheet.external-glass-bg:not(.detail-large)::before {
      background-image: var(--detail-hero-bg, none);
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      filter: blur(28px) saturate(1.25) brightness(.48);
      transform: scale(1.1);
    }
    html:not(.native-mobile-app) #detailSheet.external-glass-bg:not(.detail-large)::after {
      background: linear-gradient(180deg, rgba(8, 12, 20, .42), rgba(7, 13, 21, .82));
      -webkit-backdrop-filter: blur(12px) saturate(1.12);
      backdrop-filter: blur(12px) saturate(1.12);
    }
    html:not(.native-mobile-app) #detailSheet.external-glass-bg:not(.detail-large) > * { position: relative; z-index: 2; }
    html:not(.native-mobile-app) #detailSheet.external-glass-bg:not(.detail-large) .detail-cover img {
      filter: blur(8px) brightness(.62) saturate(1.12);
      transform: scale(1.06);
    }
    #detailSheet.external-glass-bg.detail-large::before {
      filter: blur(28px) saturate(1.25) brightness(.48);
      transform: scale(1.1);
    }
    #detailSheet.external-glass-bg.detail-large::after {
      background:
        linear-gradient(90deg, rgba(6, 17, 27, .82), rgba(6, 17, 27, .52) 48%, rgba(6, 17, 27, .36)),
        linear-gradient(180deg, rgba(6, 17, 27, .18), rgba(6, 17, 27, .86));
      -webkit-backdrop-filter: blur(12px) saturate(1.12);
      backdrop-filter: blur(12px) saturate(1.12);
    }
    html.native-mobile-app #detailSheet.external-glass-bg:not(.detail-large) .detail-cover img {
      filter: blur(18px) brightness(.68) saturate(1.16);
      transform: scale(1.12);
    }
    body.guestbook-active #guestbookSheet{left:var(--app-sidebar-width)!important;width:calc(100% - var(--app-sidebar-width))!important;z-index:20!important}body.sidebar-collapsed.guestbook-active #guestbookSheet{left:72px!important;width:calc(100% - 72px)!important}.guestbook-panel{width:min(860px,100%);margin:0 auto;padding:18px 18px 48px}.guestbook-head{display:flex;align-items:center;gap:12px;margin-bottom:18px}.guestbook-head h2{margin:0;flex:1}.guestbook-form{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:16px;border:1px solid var(--border);border-radius:16px;background:rgba(255,255,255,.05)}.guestbook-form label{display:grid;gap:6px;color:var(--muted);font-size:12px}.guestbook-form textarea{min-height:120px;resize:vertical}.guestbook-form .guestbook-wide{grid-column:1/-1}.guestbook-captcha-row{display:flex;align-items:center;gap:10px}.guestbook-captcha-row .field{width:120px}.guestbook-question{min-width:100px;color:var(--text);font-weight:700}.guestbook-status{min-height:22px;color:var(--muted);font-size:13px}.guestbook-list{display:grid;gap:10px;margin-top:18px}.guestbook-message{padding:14px 16px;border:1px solid var(--border);border-radius:14px;background:rgba(255,255,255,.045)}.guestbook-message-head{display:flex;justify-content:space-between;gap:12px;margin-bottom:7px}.guestbook-message-time{color:var(--muted);font-size:12px}.guestbook-message-content{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}@media(max-width:640px){body.guestbook-active #appSidebar{display:none}body.guestbook-active #guestbookSheet,body.sidebar-collapsed.guestbook-active #guestbookSheet{left:0!important;width:100%!important;z-index:60!important}.guestbook-panel{padding:12px 12px 36px}.guestbook-form{grid-template-columns:1fr}.guestbook-form .guestbook-wide{grid-column:auto}.guestbook-captcha-row{align-items:stretch;flex-wrap:wrap}}

.media-page-input { width:74px; padding:9px; color:inherit; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.2); border-radius:10px; }

/* Administrator replies belong to their visitor message. */
.guestbook-admin-reply { margin-top: 14px; padding: 12px 14px; border-left: 3px solid #b9a5ee; border-radius: 8px; background: rgba(185,165,238,.08); }
.guestbook-admin-reply strong { color: #d5c7ff; }
.guestbook-admin-reply .guestbook-message-content { font-size: 14px; }
@media (max-width:640px) { .guestbook-admin-reply .guestbook-message-head { flex-wrap: wrap; } }
