/* ===== Shared secondary surfaces (watch / admin) ===== */
.my-secondary { min-height: 100svh; color: var(--text); }
.my-secondary h1, .my-secondary h2, .my-secondary p, .my-secondary dl, .my-secondary dd { margin: 0; }
.my-secondary a, .my-sponsor a { text-decoration: none; }
.my-masthead {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 18px; min-height: 66px; padding: 0 clamp(18px, 4vw, 70px);
  border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(5, 7, 15, .85), rgba(5, 7, 15, .6));
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
}
.my-masthead::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(129, 140, 248, .6) 35%, rgba(103, 232, 249, .6) 65%, transparent); opacity: .6; }
.my-masthead > a:first-child { display: inline-flex; align-items: center; }
.my-masthead img { display: block; width: 118px; height: 38px; object-fit: contain; filter: drop-shadow(0 0 12px rgba(129, 140, 248, .35)); }
.my-masthead > span { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.my-masthead .mh-nav { display: flex; align-items: center; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.my-masthead .mh-nav::-webkit-scrollbar { display: none; }
.my-masthead .mh-nav a { padding: 8px 12px; font-size: 14px; color: var(--muted-2); border-radius: 8px; white-space: nowrap; text-decoration: none; transition: color .2s, background .2s; }
.my-masthead .mh-nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.my-home-link { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--muted-2); transition: color .2s, border-color .2s, background .2s; }
.my-home-link:hover { color: #fff; border-color: rgba(129, 140, 248, .5); background: var(--surface-2); }
.my-watch-main, .my-admin-main { width: min(100%, 1720px); padding: clamp(18px, 2.4vw, 34px) clamp(18px, 4vw, 70px) 70px; margin: auto; }

/* ===== Watch ===== */
.my-watch { position: relative; }
.my-watch::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 70vh; z-index: -1; pointer-events: none; background: radial-gradient(60% 50% at 40% 0%, rgba(129, 140, 248, .22), transparent 70%); }
.my-watch-columns { display: grid; grid-template-columns: minmax(0, 1fr) clamp(280px, 24vw, 360px); grid-template-rows: auto 1fr; gap: clamp(20px, 2.6vw, 40px); align-items: start; }
.my-feature { min-width: 0; display: contents; }
.my-video-stage {
  grid-column: 1; grid-row: 1; position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: var(--radius); background: #000;
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 1), 0 0 0 1px rgba(129, 140, 248, .15);
}
.my-video-stage video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.my-video-stage { touch-action: manipulation; }
.my-video-stage video { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.my-hold { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 2; margin: 0; padding: 5px 12px; border-radius: 999px; background: rgba(0, 0, 0, .62); color: #fff; font-size: 13px; pointer-events: none; }
.my-hold[hidden] { display: none; }
/* 横屏 laid across an upright phone: the stage fills the screen, turned a quarter clockwise. */
.my-video-stage.my-turned { position: fixed; z-index: 1000; top: 0; left: 0; margin: 0; border: 0; border-radius: 0; box-shadow: none; aspect-ratio: auto;
  width: var(--turn-w, 100vh); height: var(--turn-h, 100vw); transform-origin: top left; transform: translateX(var(--turn-h, 100vw)) rotate(90deg); }
.my-video-stage.my-turned.my-turned-flat { width: 100vw; height: 100vh; transform: none; }
.my-turned-page, .my-turned-page body { overflow: hidden; }
.my-video-stage:fullscreen { width: 100%; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; }
.my-landscape-exit { position: absolute; top: 10px; right: 10px; z-index: 3; padding: 6px 12px; border: 0; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 13px; }
.my-landscape-exit[hidden] { display: none; }
.my-info dd a { color: #a5b4fc; text-decoration: none; border-radius: 6px; transition: color .15s, background .15s; }
.my-info dd a:hover, .my-info dd a:focus-visible { color: #fff; background: rgba(129, 140, 248, .2); box-shadow: 0 0 0 3px rgba(129, 140, 248, .2); }
.my-episodes button { position: relative; }
.my-episodes button[data-seen="done"]:not([aria-current]) { color: var(--muted); opacity: .62; }
.my-episodes button[data-seen="part"]:not([aria-current])::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 4px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent) var(--seen), rgba(255, 255, 255, .15) var(--seen)); }
.my-favorite[aria-pressed="true"] { color: #fcd34d; border-color: rgba(251, 191, 36, .45); }
.my-video-stage iframe { display: block; width: 100%; height: 100%; border: 0; }
.my-player-overlay {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; color: var(--muted-2); font-size: 14px; letter-spacing: .04em;
  background: radial-gradient(60% 60% at 50% 40%, rgba(129, 140, 248, .18), transparent), linear-gradient(170deg, rgba(10, 14, 28, .92), rgba(5, 7, 15, .96));
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.my-player-overlay p::before { content: ""; display: block; width: 44px; height: 44px; margin: 0 auto 16px; border-radius: 50%; border: 2px solid rgba(129, 140, 248, .25); border-top-color: var(--accent); animation: my-spin 1s linear infinite; }
@keyframes my-spin { to { transform: rotate(360deg); } }
.my-source-note { margin: 0 0 8px; padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(251, 191, 36, .28); background: rgba(251, 191, 36, .08); color: #fcd34d; }
.my-source-note[hidden] { display: none; }
.my-adult-gate { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 20px; text-align: center; color: var(--muted-2); background: linear-gradient(170deg, rgba(10, 14, 28, .97), rgba(5, 7, 15, .99)); }
.my-adult-gate[hidden] { display: none; }
.my-adult-gate strong { color: #fff; font-size: 18px; }
.my-adult-gate p { margin: 0 0 8px; font-size: 14px; }
.my-adult-gate div { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; }
.my-adult-leave { color: var(--muted-2); font-size: 14px; text-decoration: underline; }
.my-info { grid-column: 1; grid-row: 2; min-width: 0; }
.my-primary, .my-outlined { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; min-height: 40px; padding: 0 18px; border: 1px solid transparent; font-weight: 650; font-size: 13px; transition: transform .25s var(--ease), box-shadow .25s, background .2s, border-color .2s, color .2s; }
.my-primary { color: #06070f; background: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .4), 0 16px 40px -16px #fff; }
.my-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px #fff, 0 20px 50px -16px #fff; }
.my-outlined { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.my-outlined:hover { background: var(--surface-2); border-color: rgba(129, 140, 248, .6); }
.my-outlined:disabled { opacity: .4; cursor: default; }
.my-watch-title { grid-column: 1; grid-row: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 4px 0 14px; }
.my-kicker { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); }
.my-kicker::before { content: ""; width: 22px; height: 1px; background: var(--accent); }
.my-watch-title h1 { font-size: clamp(30px, 3.2vw, 50px); font-weight: 800; letter-spacing: -.025em; line-height: 1.12; margin-top: 12px; }
.my-facts { margin-top: 12px; font-size: 13px; letter-spacing: .04em; color: var(--muted-2); }
.my-facts:empty { display: none; }
.my-synopsis { grid-column: 1; max-width: 76ch; color: var(--muted-2); font-size: 14.5px; line-height: 1.9; overflow-wrap: anywhere; padding-top: 16px; border-top: 1px solid var(--line); }
.my-synopsis:empty { display: none; }
.my-feature > .my-feedback { grid-column: 1; }
.my-queue { grid-column: 2; grid-row: 1 / 3; min-width: 0; display: grid; gap: 14px; align-self: start; position: sticky; top: 84px; max-height: calc(100svh - 100px); overflow-y: auto; scrollbar-width: thin; padding-right: 2px; }
.my-queue > section, .my-queue > .my-series-coverage { padding: clamp(14px, 1.4vw, 20px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.my-queue h2 { position: relative; padding-left: 12px; color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .02em; margin-bottom: 12px; }
.my-queue h2::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 3px; border-radius: 3px; background: var(--gradient); }
.my-queue nav { display: grid; gap: 6px; }
.my-featured a { display: grid; grid-template-columns: 84px 1fr; align-items: center; gap: 12px; border: 1px solid transparent; border-radius: 12px; padding: 6px; color: var(--muted-2); transition: background .2s, border-color .2s, color .2s, transform .25s var(--ease); }
.my-featured a:hover { background: var(--surface-2); color: #fff; transform: translateX(2px); }
.my-featured a[aria-current="page"] { color: #fff; border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); }
.my-featured a img { width: 84px; aspect-ratio: 16/9; object-fit: cover; border-radius: 7px; border: 1px solid var(--line); }
.my-featured a strong, .my-featured a small { display: block; }
.my-featured a strong { font-size: 13px; font-weight: 600; }
.my-featured a small { color: var(--muted); margin-top: 3px; font-size: 11px; }
.my-episode-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.my-episode-heading h2 { flex: none; margin: 0; }
.my-episode-heading select { min-width: 0; max-width: 72%; min-height: 32px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); padding: 3px 8px; font: inherit; font-size: 12px; }
.my-episode-heading select option { background: var(--surface-solid); }
.my-episodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; max-height: 260px; overflow-y: auto; padding: 3px; margin: -3px; scrollbar-width: thin; }
.my-episodes button { border: 1px solid var(--line); color: var(--muted-2); background: rgba(255, 255, 255, .03); padding: 5px 6px; min-height: 36px; font-size: 12px; font-family: var(--mono); border-radius: 9px; transition: background .2s, border-color .2s, color .2s; }
.my-episodes button:hover { color: #fff; border-color: var(--line-strong); background: var(--surface-2); }
.my-episodes button[aria-current] { color: #06070f; font-weight: 700; background: #fff; border-color: transparent; }
.my-queue .my-seasons { display: flex; flex-wrap: wrap; gap: 6px; }
.my-queue .my-seasons a { display: inline-flex; min-height: 34px; padding: 5px 12px; font-size: 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--muted-2); }
.my-queue .my-seasons a[aria-current="page"] { color: #fff; border-color: rgba(103, 232, 249, .6); background: rgba(103, 232, 249, .12); }
.my-queue .my-series-coverage { margin: 0; }
.my-feedback:not(:empty) { font-size: 13px; color: var(--accent); margin-top: 12px; }
.my-feedback input { width: min(100%, 450px); margin-top: 6px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-family: var(--mono); font-size: 12px; }

/* ===== Sponsor ===== */
[data-sponsor-slot]:empty { display: none; }
.my-sponsor {
  min-width: 0; display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-top: 8px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: linear-gradient(90deg, rgba(129, 140, 248, .1), rgba(255, 255, 255, .03)); color: var(--muted-2);
}
.my-book-icon { display: none; }
.my-sponsor-copy { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 14px; min-width: 0; }
.my-sponsor-copy strong { font-size: 13px; font-weight: 650; color: #fff; }
.my-sponsor-copy small { font-family: var(--mono); color: var(--accent); font-size: 10px; letter-spacing: .14em; font-weight: 500; }
.my-sponsor-copy > span { font-size: 12px; color: var(--muted); }
.my-sponsor-action { margin-left: auto; white-space: nowrap; border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 14px; color: #fff; background: var(--surface); font-size: 12px; transition: border-color .2s, background .2s; }
.my-sponsor-action:is(a, button):hover { border-color: rgba(129, 140, 248, .7); background: rgba(129, 140, 248, .15); }
.my-book-dialog { width: min(420px, calc(100% - 32px)); border: 1px solid var(--line-strong); border-radius: 20px; padding: 26px; box-shadow: var(--shadow); background: rgba(15, 20, 36, .92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: var(--text); }
.my-book-dialog::backdrop { background: rgba(5, 7, 15, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.my-book-dialog h2 { font-size: 20px; font-weight: 750; margin: 0 0 8px; }
.my-book-dialog p { font-size: 12px; color: var(--muted); }
.my-book-dialog ul { padding-left: 18px; line-height: 1.9; color: var(--muted-2); }
.my-book-dialog form { float: right; }
.my-book-dialog button { background: transparent; border: 0; color: var(--muted-2); font-size: 22px; min-width: 34px; }
.my-book-dialog button:hover { color: #fff; }

/* ===== Admin ===== */
.my-admin-main { max-width: 1440px; display: flex; flex-direction: column; }
.my-admin-title { order: 0; }
.my-stat-section { order: 1; margin: 0 0 18px; }
.my-admin-grid { order: 2; }
.my-admin-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 10px 0 24px; }
.my-admin-title p { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.my-admin-title h1 { margin-top: 6px; font-size: clamp(28px, 3.3vw, 42px); font-weight: 800; letter-spacing: -.02em; }
.my-live { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 12px; color: var(--muted-2); }
.my-live::before { content: ''; width: 7px; height: 7px; background: var(--muted); border-radius: 50%; }
.my-live[data-live="true"]::before { background: #34d399; animation: my-pulse 2s ease-in-out infinite; }
.my-admin-grid { display: grid; gap: 18px; grid-template-columns: 1.08fr .92fr; }
.my-panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 2.1vw, 28px); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.my-panel h2 { font-size: 16px; font-weight: 700; margin-bottom: 18px; }
.my-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 13px; }
.my-form-grid .my-wide { grid-column: 1/-1; }
.my-form-grid label { color: var(--muted-2); font-size: 12px; font-weight: 600; }
.my-form-grid small { color: var(--muted); font-weight: 400; }
.my-form-grid input { width: 100%; min-width: 0; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(5, 7, 15, .6); margin-top: 6px; min-height: 40px; padding: 7px 12px; font-size: 13px; color: var(--text); transition: border-color .2s, box-shadow .2s; }
.my-form-grid input:focus { outline: none; border-color: rgba(129, 140, 248, .8); box-shadow: 0 0 0 3px rgba(129, 140, 248, .18); }
.my-actions { display: flex; gap: 9px; margin-top: 20px; }
.my-placement { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(5, 7, 15, .6); }
.my-placement-header { display: flex; flex-direction: column; justify-content: flex-end; min-height: 190px; padding: 20px; background: linear-gradient(0deg, rgba(5, 7, 15, .95) 0%, rgba(5, 7, 15, .3) 62%), url('assets/hero.webp') 62% 32%/cover; }
.my-placement-header span { font-family: var(--mono); color: var(--accent); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.my-placement-header strong { color: #fff; font-size: 32px; font-weight: 800; letter-spacing: -.02em; margin-top: 7px; }
.my-placement-header small { margin-top: 3px; font-family: var(--mono); font-size: 9px; letter-spacing: .24em; color: var(--muted-2); }
.my-placement [data-preview] { padding: 0 12px 12px; }
.my-placement .my-sponsor-copy { display: grid; }
.my-preview-empty { padding: 14px 0; font-size: 12px; color: var(--muted); }
.my-note { font-size: 12px; color: var(--muted); line-height: 1.6; }
.my-placement + .my-note { margin-top: 10px; }
.my-stat-section header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.my-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.my-stats > div { padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(5, 7, 15, .5); }
.my-stats dt { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.my-stats dd { font-family: var(--mono); color: var(--text); font-size: 30px; font-weight: 800; margin-top: 6px; font-variant-numeric: tabular-nums; }

.my-info-panel { grid-column: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(16px, 2vw, 28px); padding: clamp(16px, 1.8vw, 24px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); position: relative; overflow: hidden; }
.my-info-panel::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 45%; background: radial-gradient(70% 90% at 0% 0%, rgba(129, 140, 248, .16), transparent 70%); pointer-events: none; }
.my-info { grid-column: auto; grid-row: auto; margin: 0; display: grid; gap: 10px; align-content: start; position: relative; }
.my-info > div { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; font-size: 13.5px; line-height: 1.6; }
.my-info dt { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--muted); padding-top: 3px; }
.my-info dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.my-info dd i { font-style: normal; color: var(--muted); padding: 0 .4em; }
.my-synopsis-block { position: relative; min-width: 0; }
.my-synopsis-block h2 { margin: 0 0 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--accent); }
.my-synopsis { padding-top: 0; border-top: 0; max-width: none; }
.my-synopsis-clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden; }
.my-synopsis-more { display: block; justify-self: start; text-align: left; margin-top: 8px; padding: 6px 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: 13px; cursor: pointer; }
.my-synopsis-more:hover { color: #fff; }
.my-synopsis-more[hidden] { display: none; }
.my-related { grid-column: 1; min-width: 0; }
.my-related .mh-module-head h2 { font-size: 18px; }
.my-related .mh-module-head a { font-size: 13px; }
.my-related .mh-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.my-rank-aside { padding: 14px 16px 6px; }
.my-rank-aside[hidden] { display: none; }
.my-rank-aside h3 { font-size: 14px; }
.my-rank-aside ol { min-height: 0; }
.my-rank-aside li a { font-size: 13px; padding: 6px 0; }
@media (max-width: 800px) {
  .my-info-panel, .my-related { grid-column: 1; grid-row: auto; }
  .my-info-panel { grid-template-columns: 1fr; }
  .my-related .mh-row { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(130px, 36%); overflow-x: auto; scrollbar-width: none; }
  .my-watch-columns { grid-template-columns: 1fr; grid-template-rows: none; }
  .my-video-stage, .my-watch-title, .my-synopsis, .my-feature > .my-feedback, .my-queue { grid-column: 1; grid-row: auto; }
  .my-queue { position: static; max-height: none; overflow: visible; padding-right: 0; }
  .my-featured nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .my-admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .my-masthead { flex-wrap: wrap; min-height: 56px; gap: 8px 12px; padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 8px; }
  .my-masthead > a:first-child { flex: 0 0 auto; }
  .my-masthead .mh-nav { order: 3; flex: 1 0 100%; margin: 0 -14px; padding: 0 14px; }
  .my-masthead .mh-nav a { padding: 6px 10px; font-size: 13px; }
  .my-home-link { flex: 0 0 auto; white-space: nowrap; }
  .my-masthead img { width: 100px; height: 32px; }
  .my-home-link { padding: 5px 11px; font-size: 12px; }
  .my-watch-main { padding: 12px 12px 28px; }
  .my-video-stage { border-radius: 14px; }
  .my-watch-title { align-items: flex-start; gap: 8px; margin-top: 16px; }
  .my-watch-title .my-outlined { min-height: 34px; padding-inline: 11px; font-size: 12px; }
  .my-queue { padding: 14px; }
  .my-featured nav { grid-template-columns: 1fr; }
  .my-featured a { min-height: 48px; }
  .my-admin-main { padding: 13px 12px 25px; }
  .my-admin-grid { gap: 12px; }
  .my-sponsor { padding: 12px 14px; gap: 10px; }
  .my-sponsor-copy { display: grid; gap: 2px; }
  .my-sponsor-copy > span { font-size: 11px; }
  .my-form-grid { gap: 11px 8px; }
  .my-form-grid input { font-size: 14px; padding: 6px 10px; }
  .my-stats { grid-template-columns: 1fr; }
  .my-stats dd { font-size: 24px; }
}

/* player extras: next-episode countdown, toast, speed and shortcuts */
.my-video-stage { position: relative; }
.my-next { position: absolute; right: 16px; bottom: 72px; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(10, 14, 28, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-size: 14px; color: #fff; }
.my-next[hidden], .my-toast[hidden] { display: none; }
.my-next button { height: 34px; padding: 0 14px; font-size: 13px; }
.my-toast { position: absolute; left: 50%; top: 18px; z-index: 3; transform: translateX(-50%); padding: 8px 16px; border-radius: 999px; background: rgba(5, 7, 15, .78); border: 1px solid var(--line-strong); color: #fff; font-family: var(--mono); font-size: 13px; pointer-events: none; white-space: nowrap; }
.my-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 12px; font-size: 13px; color: var(--muted-2); }
.my-speed { display: flex; align-items: center; gap: 4px; }
.my-speed span { margin-right: 6px; color: var(--muted); }
.my-speed button, .my-next-button, .my-keys-button { height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--muted-2); font: inherit; font-size: 12px; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.my-speed button { font-family: var(--mono); }
.my-speed button:hover, .my-next-button:hover, .my-keys-button:hover { color: #fff; border-color: var(--line-strong); }
.my-speed button[aria-pressed="true"] { background: #fff; color: #06070f; border-color: #fff; font-weight: 700; }
.my-autonext { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.my-autonext input { accent-color: #818cf8; width: 15px; height: 15px; }
.my-next-button { margin-left: auto; color: #fff; border-color: var(--line-strong); }
.my-keys-button { margin-left: 0; }
.my-next-button[hidden] + .my-keys-button { margin-left: auto; }
.my-keys { margin-top: 10px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--muted-2); font-size: 12px; line-height: 1.8; }
[data-embedded="true"] .my-speed, [data-embedded="true"] .my-sleep, [data-embedded="true"] .my-autonext, [data-embedded="true"] .my-keys-button { display: none; }
@media (max-width: 720px) { .my-keys-button, .my-keys { display: none; } .my-next { left: 12px; right: 12px; bottom: 64px; flex-wrap: wrap; } }
/* The title block also carries the player bar, stacked above the title. */
.my-watch-title { flex-direction: column; align-items: stretch; }
.my-player-bar .my-controls { margin-top: 0; }

/* Phones: the episode picker comes right under the player, ahead of credits and synopsis.
   The side column dissolves so each of its blocks can take its own place in the order. */
@media (max-width: 800px) {
  .my-queue { display: contents; }
  .my-video-stage { order: 1; }
  .my-watch-title { order: 2; }
  .my-queue > [data-series], .my-queue > [data-series-coverage], .my-queue > [data-episodes] { order: 3; }
  .my-info-panel { order: 4; }
  .my-related { order: 5; }
  .my-queue > .sc-side { order: 6; }
  .my-queue > .my-rank-aside, .my-queue > .my-featured { order: 7; }
  .my-queue > * { grid-column: 1; min-width: 0; }
  .my-watch-columns { gap: 16px; }
  /* Long series get room to pick from: about half the screen before the list scrolls. */
  .my-episodes { max-height: min(52vh, 420px); overflow-y: auto; }
  .my-episodes button { min-height: 40px; }
  .my-watch-title { margin-bottom: 0; }
  .my-speed button, .my-next-button { height: 34px; }
}

.my-episodes button { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Player tools: lines, quality, intro and outro marks, picture-in-picture. */
.my-tool, .my-lines button { height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--muted-2); font: inherit; font-size: 12px; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.my-tool:hover, .my-lines button:hover:not(:disabled) { color: #fff; border-color: var(--line-strong); }
.my-tool[aria-expanded="true"] { color: #fff; border-color: var(--line-strong); }
.my-lines { display: flex; align-items: center; gap: 4px; }
.my-lines span { margin-right: 6px; color: var(--muted); }
.my-lines button[data-line] { min-width: 30px; padding: 0 8px; font-family: var(--mono); }
.my-lines button[aria-pressed="true"] { background: #fff; color: #06070f; border-color: #fff; font-weight: 700; }
.my-lines button:disabled { cursor: default; opacity: .7; }
.my-quality { display: inline-flex; align-items: center; gap: 7px; }
.my-quality select { height: 30px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line); background: #0d1222; color: var(--text); font: inherit; font-size: 12px; }
.my-skip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); font-size: 12px; color: var(--muted-2); }
.my-skip p { flex: 1 1 100%; margin: 0; }
.my-skip button { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: none; color: #fff; font: inherit; font-size: 12px; cursor: pointer; }
.my-skip button:hover { background: rgba(255, 255, 255, .08); }
[data-embedded="true"] .my-tool, [data-embedded="true"] .my-lines, [data-embedded="true"] .my-quality { display: none; }
.my-related + .my-related { margin-top: 28px; }
/* The waiting screen's brand line. */
.my-present { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 8px 14px 8px 8px; border-radius: 14px; border: 1px solid var(--line); background: rgba(10, 14, 28, .6); text-align: left; }
.my-present img { width: 64px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; }
.my-present span { display: grid; gap: 1px; }
.my-present small { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; color: var(--muted); }
.my-present b { font-size: 14px; color: #fff; }
.my-present i { font-style: normal; font-size: 12px; color: var(--muted-2); max-width: 28ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) { .my-tool, .my-lines button, .my-skip button { height: 34px; } }

/* Phones: the player tools sit on one line that scrolls sideways instead of stacking into three. */
@media (max-width: 720px) {
  .my-player-bar .my-controls { flex-wrap: nowrap; gap: 14px; margin: 0 -12px; padding: 2px 12px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .my-watch-title, .my-player-bar { min-width: 0; max-width: 100%; }
  .my-player-bar .my-controls::-webkit-scrollbar { display: none; }
  .my-player-bar .my-controls > * { flex: none; white-space: nowrap; }
  .my-player-bar .my-next-button { order: -1; margin-left: 0; }
}

/* Films that play in another site's player say so under the picture. */
.my-embed-note { margin: 0 0 10px; font-size: 12px; color: var(--muted); }

/* iOS zooms the page in when a field with text under 16px takes focus, and does not zoom back.
   On touch screens every field is given that size, so the page stays as it was. */
@media (hover: none) and (pointer: coarse) {
  input, select, textarea { font-size: 16px !important; }
  /* The filter lists were sized for smaller text; let each take the room its label needs. */
  .mh-library-field select { width: auto; min-width: 96px; max-width: 44vw; }
}

/* ---- Under the player: a title row with the work's own actions, then one toolbar. ---- */
.my-watch-columns { grid-template-rows: auto auto auto auto auto 1fr; }
.my-queue { grid-row: 1 / 7; }
.my-info-panel { grid-row: 3; }
.my-related[data-alike] { grid-row: 4; }
.my-related[data-related] { grid-row: 5; }
.my-watch-title { flex-direction: column; align-items: stretch; gap: 14px; margin: 2px 0 6px; }
.my-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.my-title-text { min-width: 0; }
.my-title-text h1 { margin-top: 10px; }
.my-title-actions { display: flex; align-items: center; gap: 10px; flex: none; padding-bottom: 4px; }
.my-glyph { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.my-action { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .05); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s, border-color .2s, transform .15s; }
.my-action:hover { background: rgba(255, 255, 255, .1); }
.my-action:active { transform: scale(.97); }
.my-action[hidden] { display: none; }
.my-action-primary { background: #fff; color: #06070f; border-color: #fff; }
.my-action-primary:hover { background: #e9eaff; }
.my-action-primary .my-glyph { fill: currentColor; stroke-width: 1.5; }
.my-favorite[aria-pressed="true"] { color: #fcd34d; border-color: rgba(251, 191, 36, .5); background: rgba(251, 191, 36, .1); }
.my-favorite[aria-pressed="true"] .my-glyph { fill: currentColor; }

.my-dock { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 5px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.my-dock-sep { width: 1px; height: 18px; margin: 0 4px; background: var(--line-strong); opacity: .6; }
.my-chip, .my-dock .my-tool, .my-dock .my-keys-button { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; margin: 0; border: 0; border-radius: 10px; background: transparent; color: var(--muted-2); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; transition: background .18s, color .18s; }
.my-chip:hover, .my-dock .my-tool:hover, .my-dock .my-keys-button:hover { background: rgba(255, 255, 255, .07); color: #fff; border: 0; }
.my-chip[aria-expanded="true"], .my-dock .my-tool[aria-expanded="true"] { background: rgba(129, 140, 248, .18); color: #fff; }
.my-chip[hidden], .my-dock [hidden] { display: none; }
.my-dock .my-keys-button { margin-left: auto; }
/* Speed: one chip that opens a small menu. */
.my-pop { position: relative; }
.my-speed { gap: 0; }
.my-speed span { margin: 0; color: inherit; }
.my-menu { position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, auto); gap: 4px; padding: 6px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(14, 18, 34, .96); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .8); }
.my-menu[hidden] { display: none; }
.my-menu button { height: 32px; padding: 0 11px; border: 0; border-radius: 8px; background: transparent; color: var(--muted-2); font: inherit; font-family: var(--mono); font-size: 13px; cursor: pointer; }
.my-menu button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.my-menu button[aria-pressed="true"] { background: #fff; color: #06070f; font-weight: 700; }
/* 自动连播 as a switch. */
.my-autonext input { appearance: none; -webkit-appearance: none; position: relative; width: 30px; height: 18px; margin: 0 0 0 2px; border-radius: 999px; background: rgba(255, 255, 255, .18); cursor: pointer; transition: background .2s; }
.my-autonext input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s; }
.my-autonext input:checked { background: var(--accent, #818cf8); }
.my-autonext input:checked::after { transform: translateX(12px); }
.my-autonext:has(input:checked) { color: #fff; }
/* Lines: a label and a small segmented row once more than one is known. */
.my-lines { display: inline-flex; align-items: center; gap: 2px; }
.my-lines .my-lines-label { display: inline-flex; align-items: center; gap: 7px; padding: 0 8px 0 12px; margin: 0; color: var(--muted-2); font-size: 13px; }
.my-lines button[data-line] { height: 28px; min-width: 28px; padding: 0 6px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .05); color: var(--muted-2); font-family: var(--mono); font-size: 12px; cursor: pointer; }
.my-lines button[data-line]:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.my-lines button[aria-pressed="true"] { background: #fff; color: #06070f; font-weight: 700; }
.my-quality select { height: 26px; padding: 0 6px; border: 0; border-radius: 7px; background: rgba(255, 255, 255, .06); color: #fff; font: inherit; font-size: 12px; }
.my-skip, .my-keys { margin-top: 8px; }

@media (max-width: 800px) {
  .my-watch-columns { grid-template-rows: none; }
  .my-queue, .my-info-panel, .my-related[data-alike], .my-related[data-related] { grid-row: auto; }
}
@media (max-width: 720px) {
  .my-title-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .my-title-actions { padding: 0; }
  .my-title-actions .my-action { flex: 1; justify-content: center; height: 42px; }
  .my-player-bar .my-dock { flex-wrap: nowrap; margin: 0; padding: 5px; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); }
  .my-player-bar .my-dock::-webkit-scrollbar { display: none; }
  .my-player-bar .my-dock > * { flex: none; }
  .my-dock .my-keys-button { display: none; }
  .my-menu { position: fixed; left: 12px; right: 12px; bottom: auto; top: auto; grid-template-columns: repeat(5, 1fr); }
}
.my-speed > .my-chip { height: 34px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--muted-2); font-family: inherit; font-size: 13px; }
.my-speed > .my-chip:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.my-speed > .my-chip[aria-expanded="true"] { background: rgba(129, 140, 248, .18); color: #fff; }
.my-lines > .my-chip { height: 34px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--muted-2); font-size: 13px; }
.my-lines > .my-chip:hover:not(:disabled) { background: rgba(255, 255, 255, .07); color: #fff; }
.my-lines > .my-chip:disabled { opacity: .7; }
/* 快捷键 shows as an icon; its name is in the tooltip. */
.my-dock .my-keys-button { width: 34px; padding: 0; justify-content: center; }
.my-dock .my-keys-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- The screen: a quiet frame, light spilling from the picture, and 影院模式. ---- */
.my-video-stage { z-index: 1; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .06); box-shadow: 0 0 0 1px rgba(0, 0, 0, .7), 0 40px 90px -30px rgba(0, 0, 0, .95); }
.my-ambient { grid-column: 1; grid-row: 1; align-self: stretch; justify-self: stretch; width: 100%; height: 100%; z-index: 0; border-radius: 40px; pointer-events: none;
  transform: scale(1.16); filter: blur(52px) saturate(1.6) brightness(1.1); opacity: 0; transition: opacity 1.2s ease; }
.my-ambient.my-ambient-on { opacity: .7; }
.my-cinema-toggle[aria-pressed="true"] { background: rgba(251, 191, 36, .14); color: #fcd34d; }
.my-cinema-page body { background: #020204; transition: background .6s; }
.my-cinema-page .my-masthead { opacity: .18; transition: opacity .4s; }
.my-cinema-page .my-masthead:hover, .my-cinema-page .my-masthead:focus-within { opacity: 1; }
.my-cinema .my-watch-columns { grid-template-columns: minmax(0, 1fr); }
.my-cinema .my-queue { display: none; }
.my-cinema .my-ambient.my-ambient-on { opacity: .95; }
/* The whole screen in view at once: as wide as the window allows without running below it. */
.my-cinema .my-video-stage, .my-cinema .my-ambient { justify-self: center; width: min(100%, calc((100svh - 120px) * 16 / 9)); }
.my-cinema .my-video-stage { border-color: rgba(255, 255, 255, .03); }
.my-cinema .my-watch-title, .my-cinema .my-info-panel, .my-cinema .my-related { opacity: .5; transition: opacity .3s; }
.my-cinema .my-watch-title:hover, .my-cinema .my-watch-title:focus-within, .my-cinema .my-info-panel:hover, .my-cinema .my-related:hover { opacity: 1; }
@media (max-width: 800px) {
  .my-ambient, .my-cinema-toggle { display: none; }
  .my-video-stage { border-radius: 14px; }
}

/* ---- 我的记录 ---- */
.my-masthead .my-history-link { margin-left: 8px; width: 34px; height: 34px; background: var(--surface); border: 1px solid var(--line); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--muted-2); }
.my-masthead .my-history-link:hover { color: #fff; border-color: rgba(129, 140, 248, .5); background: var(--surface-2); }
.my-masthead .my-history-link svg { width: 17px; height: 17px; }
.my-masthead .my-history-link[aria-current="page"] { color: #fff; border-color: rgba(129, 140, 248, .55); background: rgba(129, 140, 248, .14); }
@media (max-width: 720px) { .my-masthead .my-history-link { margin-left: 0; width: 30px; height: 30px; } }
.hs-body { width: min(920px, 100%); margin: 0 auto; padding: clamp(24px, 4vw, 48px) var(--mh-gutter, 20px) 80px; }
.hs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hs-head h1 { margin-top: 10px; font-size: clamp(28px, 3vw, 40px); font-weight: 800; }
.hs-tabs { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: .5px solid rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); }
.hs-tabs button { height: 34px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--muted-2); font: inherit; font-size: 14px; cursor: pointer; }
.hs-tabs button[aria-pressed="true"] { color: #fff; font-weight: 600; background: rgba(255, 255, 255, .2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 2px 8px -2px rgba(0, 0, 0, .5); }
.hs-note { margin: 12px 0 8px; color: var(--muted); font-size: 13px; }
.hs-day { margin: 26px 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--muted-2); }
.hs-group { display: grid; gap: 6px; padding: 6px; border-radius: 18px; border: .5px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .035); }
.hs-item { position: relative; }
.hs-card { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 14px; padding: 8px 48px 8px 8px; border-radius: 13px; transition: background .2s; }
.hs-card:hover { background: rgba(255, 255, 255, .07); }
.hs-thumb { width: 46px; aspect-ratio: 2/3; border-radius: 8px; overflow: hidden; background: var(--surface-solid, #0e1222); }
.hs-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hs-text { display: grid; gap: 4px; min-width: 0; }
.hs-text strong { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-text small { font-size: 12.5px; color: var(--muted); }
.hs-bar { display: block; width: min(220px, 60%); height: 3px; margin-top: 3px; border-radius: 3px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.hs-bar b { display: block; height: 100%; background: var(--gradient, #818cf8); }
.hs-remove { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); cursor: pointer; opacity: .55; }
.hs-remove:hover { opacity: 1; color: #fff; background: rgba(255, 255, 255, .12); }
.hs-empty { margin: 40px 0; text-align: center; color: var(--muted); }
.hs-clear { display: block; margin: 28px auto 0; height: 36px; padding: 0 18px; border-radius: 999px; border: .5px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: var(--muted-2); font: inherit; font-size: 13px; cursor: pointer; }
.hs-clear:hover { color: #fca5a5; border-color: rgba(252, 165, 165, .4); }
.hs-list .hs-day { margin: 26px 4px 10px; font-size: 13px; line-height: 1; }
.hs-list .hs-day:first-child { margin-top: 18px; }
.hs-body .hs-note { margin: 14px 0 4px; }

/* ---- 加载较慢 ---- */
.my-stall { position: absolute; left: 50%; bottom: 72px; z-index: 5; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; border-radius: 999px; background: rgba(12, 14, 24, .72); border: .5px solid rgba(255, 255, 255, .18); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 10px 30px rgba(0, 0, 0, .4); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); color: #fff; font-size: 13px; white-space: nowrap; }
.my-stall[hidden] { display: none; }
.my-stall button { border: 0; border-radius: 999px; font: inherit; cursor: pointer; }
.my-stall [data-stall-switch] { padding: 6px 14px; background: #fff; color: #0b0d17; font-weight: 600; }
.my-stall-close { width: 28px; height: 28px; background: transparent; color: var(--muted-2); }
.my-stall-close:hover { color: #fff; }

.hs-thumb { display: grid; place-items: center; }
.hs-thumb > b { font-size: 18px; font-weight: 700; color: var(--muted-2); background: linear-gradient(160deg, rgba(129, 140, 248, .28), rgba(103, 232, 249, .12)); width: 100%; height: 100%; display: grid; place-items: center; }
.hs-veiled img { filter: blur(8px) saturate(.6); transform: scale(1.15); }

/* ---- 续播 ---- */
.my-stall.my-resumed [data-restart] { padding: 6px 14px; background: rgba(255, 255, 255, .14); color: #fff; font-weight: 600; }
.my-stall.my-resumed [data-restart]:hover { background: rgba(255, 255, 255, .24); }

/* ---- 多设备同步 ---- */
.hs-sync { margin: 18px 0 26px; padding: 20px 22px; border-radius: 22px; background: linear-gradient(160deg, rgba(129, 140, 248, .10), rgba(103, 232, 249, .04)), rgba(255, 255, 255, .03); border: .5px solid rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); scroll-margin-top: 80px; }
.hs-sync-head { display: flex; gap: 14px; align-items: flex-start; }
.hs-sync-head h2 { margin: 0 0 4px; font-size: 17px; font-weight: 700; }
.hs-sync-head p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--muted-2); }
.hs-sync-head b { color: #fff; font-weight: 600; }
.hs-sync-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: rgba(129, 140, 248, .18); color: #c7d2fe; }
.hs-sync-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hs-sync-icon.hs-sync-on { background: rgba(52, 211, 153, .16); color: #6ee7b7; }
.hs-sync-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.hs-sync-actions button, .hs-code-form button { height: 40px; padding: 0 18px; border-radius: 999px; font: inherit; font-size: 14px; color: #fff; background: rgba(255, 255, 255, .08); border: .5px solid rgba(255, 255, 255, .16); cursor: pointer; transition: background .2s; }
.hs-sync-actions button:hover { background: rgba(255, 255, 255, .14); }
.hs-sync .hs-sync-primary { background: #fff; color: #0b0d17; border-color: #fff; font-weight: 600; }
.hs-sync .hs-sync-primary:hover { background: #e8ebff; }
.hs-sync .hs-sync-primary:disabled { opacity: .6; cursor: default; }
.hs-sync .hs-sync-quiet { background: transparent; border-color: transparent; color: var(--muted); }
.hs-sync .hs-sync-quiet:hover { color: #fda4af; background: transparent; }
.hs-sync-msg { margin: 12px 0 0; font-size: 13.5px; color: #6ee7b7; }
.hs-sync-msg:empty { display: none; }
.hs-sync-msg.hs-sync-bad { color: #fda4af; }
.hs-sync-fine { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
.hs-code-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.hs-code-form input { flex: 1 1 200px; min-width: 0; height: 52px; padding: 0 18px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(0, 0, 0, .3); color: #fff; font-family: var(--mono); font-size: 24px; letter-spacing: .28em; text-transform: uppercase; outline: none; }
.hs-code-form input:focus { border-color: rgba(129, 140, 248, .7); box-shadow: 0 0 0 4px rgba(129, 140, 248, .18); }
.hs-code-form input::placeholder { font-size: 15px; letter-spacing: .08em; color: var(--muted); }
.hs-code-form button { height: 52px; padding: 0 24px; }
.hs-code-show { display: flex; align-items: center; gap: 22px; margin-top: 18px; }
.hs-qr { flex: none; width: 148px; height: 148px; padding: 8px; border-radius: 16px; background: #fff; }
.hs-qr svg { display: block; width: 100%; height: 100%; }
.hs-code { margin: 0; font-family: var(--mono); font-size: 38px; font-weight: 700; letter-spacing: .18em; color: #fff; }
.hs-expired .hs-qr, .hs-expired .hs-code { opacity: .25; filter: grayscale(1); }
.hs-sync-wait { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 13px; color: var(--muted-2); }
.hs-sync-wait i { width: 8px; height: 8px; border-radius: 50%; background: #818cf8; }
.hs-devices { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.hs-devices li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); font-size: 14px; }
.hs-devices small { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.hs-devices .hs-here small { color: #a5b4fc; }
@media (max-width: 560px) {
  .hs-sync { padding: 18px 16px; }
  .hs-code-show { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hs-code { font-size: 32px; }
  .hs-sync-actions button { flex: 1 1 auto; }
}

/* ---- 定时 ---- */
.my-sleep-menu { grid-template-columns: 1fr; min-width: 120px; }
.my-sleep-menu button { font-family: inherit; text-align: left; }
.my-chip.my-chip-on { color: #c7d2fe; border-color: rgba(129, 140, 248, .55); background: rgba(129, 140, 248, .14); }
.my-chip.my-chip-on span { font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .my-sleep-menu { top: 0; grid-template-columns: repeat(5, 1fr); min-width: 0; } .my-sleep-menu button { padding: 0 2px; font-size: 12px; text-align: center; white-space: nowrap; } }

/* The poster tapped on a list grows into the player (see viewer.js). */
.my-video-stage { view-transition-name: mh-picture; }

/* ---- 拖动快进 ---- */
.my-seek-drag { position: absolute; left: 50%; top: 50%; z-index: 4; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 2px; margin: 0; padding: 12px 20px; border-radius: 18px; background: rgba(5, 7, 15, .66); border: .5px solid rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #fff; pointer-events: none; font-variant-numeric: tabular-nums; }
.my-seek-drag[hidden] { display: none; }
.my-seek-drag b { font-size: 20px; font-weight: 700; letter-spacing: .02em; }
.my-seek-drag span { font-size: 12px; color: rgba(255, 255, 255, .6); }
.my-seek-drag i { font-style: normal; font-size: 13px; color: #a5b4fc; }
/* 遮挡画面广告: a frosted band over an advert printed into the picture (captionmask.js). */
.my-caption-mask { position: absolute; z-index: 1; pointer-events: none; background: rgba(10, 12, 18, .55); -webkit-backdrop-filter: blur(18px) saturate(.6); backdrop-filter: blur(18px) saturate(.6); animation: my-caption-mask .3s ease-out; }
.my-caption-mask[hidden] { display: none; }
@keyframes my-caption-mask { from { opacity: 0; } }
.my-lines button small { margin-left: 3px; font-family: var(--sans, inherit); font-size: 10px; letter-spacing: .02em; opacity: .75; }
