@charset "UTF-8";
:root {
  --cream: #fffbf6;
  --beige: #f7ebdd;
  --ink: #3e2920;
  --muted: #7d695e;
  --green: #356f60;
  --green-hover: #295a4d;
  --mint: #5cc6b7;
  --pale-green: #e5f0e7;
  --apricot: #ffb366;
  --line: #e8dfd5;
  --white: #fffefd;
  --danger: #a94732;
  --shadow: 0 7px 26px #64402709;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  accent-color: var(--green);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input, textarea, select { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
button:disabled, input:disabled, select:disabled { cursor: default; opacity: .52; }
button { border: 0; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 650; }
h1 { font-size: 30px; line-height: 1.35; letter-spacing: -.8px; }
h2 { font-size: 20px; line-height: 1.5; letter-spacing: -.25px; }
h3 { font-size: 16px; line-height: 1.5; }
p { line-height: 1.75; }
ul, ol { margin: 0; padding: 0; list-style: none; }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
input[type="checkbox"] { width: 19px; height: 19px; flex: 0 0 auto; }
input, textarea { min-width: 0; }
textarea { resize: vertical; }
small { font-size: 12px; }
::selection { color: #26473d; background: #d8eed9; }
:focus-visible { outline: 3px solid #427e6f; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 100; background: var(--green); color: white; padding: 12px 20px; border-radius: 12px; }
.skip-link:focus { top: 12px; }
.icon { flex: 0 0 auto; vertical-align: middle; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.text-green { color: var(--green); }
.text-danger { color: var(--danger); }
.nowrap { white-space: nowrap; }
.site-header { background: #fffbf6f5; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 48px; max-width: 1456px; margin: auto; min-height: 88px; padding: 0 40px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; border-radius: 12px; }
.brand-logo { width: 48px; height: 48px; object-fit: contain; }
.brand-name { font-size: 23px; font-weight: 650; letter-spacing: -.4px; white-space: nowrap; }
.brand-divider { display: inline-block; padding: 0 8px; font-weight: 400; color: #b5a292; }
.brand-product { font-weight: 450; }
.primary-nav { align-self: stretch; display: flex; align-items: stretch; gap: 28px; }
.nav-link { min-width: 48px; position: relative; display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--muted); transition: color .15s; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--green); }
.nav-link[aria-current="page"] { font-weight: 650; }
.nav-link[aria-current="page"]::after { content: ""; position: absolute; bottom: 0; height: 3px; left: 11px; right: 11px; background: var(--green); border-radius: 3px 3px 0 0; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-actions .button { font-size: 13px; }
.owner-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 2px; }
#app { min-height: calc(100dvh - 180px); outline: none; }
.page { max-width: 1456px; padding: 38px 40px 40px; margin: 0 auto; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.heading-description { margin-top: 7px; color: var(--muted); font-size: 14px; }
.heading-actions { display: flex; gap: 10px; align-items: center; }
.count-emphasis { color: var(--green); font-variant-numeric: tabular-nums; }
.button, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 12px; padding: 11px 17px; font-size: 14px; font-weight: 500; line-height: 1.45; transition: background .15s, color .15s, border-color .15s; text-align: center; }
.button-primary { background: var(--green); color: white; border: 1px solid var(--green); }
.button-primary:hover:not(:disabled) { background: var(--green-hover); border-color: var(--green-hover); }
.button-secondary { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.button-secondary:hover:not(:disabled) { background: #f6f0e9; border-color: #d9cbbb; }
.button-soft { color: var(--green); background: var(--pale-green); border: 1px solid transparent; }
.button-soft:hover:not(:disabled) { background: #d6e8db; }
.button-ghost { background: transparent; border: 1px solid transparent; color: var(--muted); }
.button-ghost:hover:not(:disabled) { background: #f3eadd; color: var(--ink); }
.button-danger { background: #fbede7; color: var(--danger); border: 1px solid #efd3c7; }
.button-danger:hover:not(:disabled) { background: #f6ded1; }
.button-small { min-height: 40px; padding: 8px 13px; font-size: 13px; border-radius: 10px; }
.icon-button { width: 44px; padding: 10px; background: transparent; border: 1px solid transparent; color: var(--muted); }
.icon-button:hover:not(:disabled) { background: #efe7dc; color: var(--ink); }
.icon-button.is-active { color: var(--green); background: var(--pale-green); }
.icon-button.is-favorite .icon { fill: currentColor; }
.search-row { display: flex; align-items: center; gap: 12px; margin-bottom: 21px; }
.search-box { display: flex; align-items: center; flex: 1; gap: 12px; min-height: 54px; padding: 4px 8px 4px 18px; background: var(--white); border: 1px solid #ddd1c3; border-radius: 14px; box-shadow: 0 2px 6px #573a2003; }
.search-box:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px #356f6010; }
.search-box > .icon { color: #8c7a6c; width: 21px; height: 21px; }
.search-input { width: 100%; border: none; outline: none; background: transparent; color: var(--ink); font-size: 15px; padding: 9px 0; line-height: 1.6; }
.search-input:focus-visible { outline: none; }
.search-input::placeholder { color: #99897c; }
.search-box .icon-button { width: 36px; min-height: 36px; padding: 8px; border-radius: 9px; }
.search-shortcut { display: flex; align-items: center; justify-content: center; width: 24px; height: 25px; margin-right: 8px; border: 1px solid var(--line); border-radius: 5px; color: #ab9b8d; font-size: 13px; }
.filter-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 27px; }
.quick-filters { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.filter-pill { padding: 10px 15px; min-height: 44px; border-radius: 10px; background: transparent; color: var(--muted); display: flex; gap: 7px; align-items: center; font-size: 14px; white-space: nowrap; }
.filter-pill:hover { background: #f3ece1; color: var(--ink); }
.filter-pill.is-active { background: var(--green); color: white; font-weight: 550; }
.filter-pill .icon { width: 16px; height: 16px; }
.filter-number { font-size: 12px; opacity: .72; }
.filter-spacer { flex: 1; }
.filter-divider { width: 1px; height: 23px; background: var(--line); margin: 0 5px; }
.select-wrap { display: inline-flex; position: relative; align-items: center; min-width: 0; background: transparent; }
.select-wrap select { -webkit-appearance: none; appearance: none; min-height: 44px; border: 1px solid var(--line); border-radius: 11px; padding: 10px 34px 10px 13px; color: var(--muted); background: var(--white); font-size: 13px; max-width: 100%; }
.select-wrap > .icon { position: absolute; right: 11px; pointer-events: none; width: 15px; height: 15px; color: var(--muted); }
.select-wrap select:hover { border-color: #cdbda9; }
.view-switch { display: inline-flex; border: 1px solid var(--line); padding: 2px; background: #f2eade; border-radius: 11px; flex-shrink: 0; }
.view-switch .icon-button { width: 40px; min-height: 38px; border-radius: 8px; }
.view-switch .is-active { background: var(--white); color: var(--ink); box-shadow: 0 1px 4px #5538240c; }
.active-filter-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -10px 0 24px; }
.filter-chip { font-size: 12px; color: var(--green); background: #e8f1e9; border: 1px solid #d5e3d5; border-radius: 8px; display: inline-flex; align-items: center; min-height: 36px; padding: 4px 10px; gap: 8px; }
.filter-chip .icon { width: 13px; height: 13px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 0 15px; gap: 16px; }
.section-heading h2 { font-size: 17px; }
.section-heading .small { color: var(--muted); }
.continue-section { margin: 0 0 32px; }
.continue-strip { display: flex; gap: 14px; }
.continue-card { display: flex; align-items: center; gap: 16px; width: min(100%, 480px); background: #f2ecdf; border: 1px solid #e7ddca; border-radius: 16px; padding: 12px; transition: background .15s; }
.continue-card:hover { background: #ece4d4; }
.continue-cover { position: relative; width: 128px; aspect-ratio: 16/9; flex: 0 0 auto; background: #d9d3c7; overflow: hidden; border-radius: 9px; }
.continue-cover img { width: 100%; height: 100%; object-fit: contain; }
.continue-cover .mini-play { position: absolute; inset: 0; display: grid; place-items: center; background: #00000016; color: white; }
.mini-play .icon { border-radius: 50%; width: 30px; height: 30px; padding: 8px; background: #181b1ccc; fill: white; }
.continue-text { min-width: 0; flex: 1; }
.continue-text h3 { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.continue-text p { font-size: 12px; color: var(--muted); margin-top: 5px; }
.continue-card > .icon { color: var(--green); margin-right: 5px; }
.work-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 29px 22px; }
.work-card { min-width: 0; position: relative; }
.work-link { display: block; border-radius: 16px; }
.cover-frame { aspect-ratio: 16/10; position: relative; overflow: hidden; border-radius: 16px; background: #e6e2d8; box-shadow: var(--shadow); border: 1px solid #46342b0b; isolation: isolate; }
.cover-frame img { width: 100%; height: 100%; object-fit: contain; }
.cover-frame::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, #0b151e45); pointer-events: none; z-index: 1; }
.cover-frame.cover-empty { background: #f1e5d5; display: flex; align-items: center; justify-content: center; }
.cover-empty > .icon { width: 42px; height: 42px; color: #baa78f; }
.card-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #fffbf6ed; color: var(--green); opacity: 0; transition: opacity .18s; z-index: 3; box-shadow: 0 3px 15px #0002; }
.card-play .icon { width: 18px; height: 18px; fill: currentColor; margin-left: 2px; }
.work-link:hover .card-play, .work-link:focus-visible .card-play { opacity: 1; }
.duration-badge { position: absolute; bottom: 10px; right: 10px; background: #111b20ba; color: white; backdrop-filter: blur(8px); font-size: 11px; letter-spacing: .25px; line-height: 1.4; padding: 4px 6px; border-radius: 5px; font-variant-numeric: tabular-nums; z-index: 2; }
.card-state { position: absolute; top: 10px; left: 10px; background: #fffbf6ee; color: var(--ink); border: 1px solid #ffffff70; font-size: 11px; font-weight: 550; padding: 4px 8px; border-radius: 6px; z-index: 2; }
.card-state.is-new { color: #2e614e; background: #e8f3e5ed; }
.card-state.is-update { color: #7c4b18; background: #ffdeb7f0; }
.card-progress { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; z-index: 3; background: #ffffff35; }
.card-progress > span { display: block; height: 100%; background: var(--apricot); max-width: 100%; }
.card-content { position: relative; padding: 13px 37px 0 1px; }
.card-title { font-size: 15px; line-height: 1.6; letter-spacing: -.1px; font-weight: 600; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.work-link:hover .card-title { color: var(--green); }
.card-meta { color: var(--muted); font-size: 12px; line-height: 1.7; margin-top: 5px; display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.card-meta .dot { color: #c1b1a1; }
.card-favorite { position: absolute; right: -6px; top: 8px; width: 40px; min-height: 40px; border-radius: 50%; }
.card-favorite .icon { width: 18px; height: 18px; }
.card-favorite.is-favorite { color: #b86a48; }
.card-favorite.is-favorite:hover { background: #f7e7dc; }
.card-bottom-line { display: flex; align-items: center; justify-content: space-between; color: #968575; margin-top: 8px; font-size: 11px; }
.library-count { font-size: 12px; color: var(--muted); margin-top: 30px; text-align: center; }
.library-results { min-height: 240px; }
.work-list { display: flex; flex-direction: column; gap: 10px; }
.work-list .work-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.work-list .work-link { display: flex; align-items: center; gap: 22px; padding: 12px; }
.work-list .cover-frame { width: 180px; aspect-ratio: 16/9; border-radius: 10px; flex: 0 0 auto; }
.work-list .card-content { flex: 1; padding: 0 46px 0 0; min-width: 0; }
.work-list .card-title { font-size: 16px; }
.work-list .card-meta { margin-top: 7px; }
.work-list .card-favorite { right: 10px; top: 50%; transform: translateY(-50%); }
.work-list .card-bottom-line { display: none; }
.public-note { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin-top: 24px; padding: 14px 17px; background: #f5eee4; border-radius: 12px; }
.public-note > .icon { color: #9b8b73; width: 16px; height: 16px; }
.public-note .text-link { margin-left: auto; }
.text-link { display: inline-flex; align-items: center; gap: 5px; color: var(--green); font-size: 13px; min-height: 36px; background: transparent; font-weight: 550; padding: 5px 0; }
.text-link:hover { text-decoration: underline; }
.text-link .icon { width: 15px; height: 15px; }
.collection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.collection-card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: border-color .18s, transform .18s; }
.collection-card:hover { border-color: #b4c9b6; transform: translateY(-2px); }
.collection-art { height: 176px; display: flex; align-items: center; justify-content: center; background: #e9ecdf; padding: 18px; gap: 8px; overflow: hidden; }
.collection-art img { height: 100%; max-width: 45%; object-fit: contain; border-radius: 7px; box-shadow: 0 4px 15px #44382c18; background: #d2d8c8; }
.collection-art > .icon { width: 47px; height: 47px; color: #96aa8d; }
.collection-content { padding: 18px 20px; }
.collection-content h2 { font-size: 17px; }
.collection-content p { margin-top: 5px; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.collection-count { display: flex; align-items: center; justify-content: space-between; color: var(--green); font-size: 12px; margin-top: 15px; }
.collection-count .icon { width: 17px; height: 17px; }
.collection-heading { margin: 4px 0 28px; }
.collection-heading h1 { margin-top: 18px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); min-height: 44px; border-radius: 8px; }
.back-link:hover { color: var(--green); }
.back-link .icon { width: 18px; height: 18px; }
.watch-page { max-width: 1376px; padding-top: 20px; }
.watch-topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.watch-top-actions { display: flex; align-items: center; gap: 8px; }
.watch-top-actions .button { min-height: 40px; padding-top: 8px; padding-bottom: 8px; font-size: 13px; }
.player-frame { position: relative; background: #171b1b; overflow: hidden; border-radius: 20px; box-shadow: 0 12px 45px #28302712; }
.player-surface { position: relative; min-height: 120px; display: flex; align-items: center; justify-content: center; }
.player-surface video { width: 100%; max-height: 70dvh; min-height: 200px; aspect-ratio: 16/9; object-fit: contain; background: #131717; }
.player-surface video.is-portrait { aspect-ratio: 9/16; }
.player-frame:fullscreen { display: flex; flex-direction: column; justify-content: center; border-radius: 0; }
.player-frame:fullscreen .player-surface video { max-height: calc(100dvh - 58px); }
.player-tools { min-height: 54px; display: flex; align-items: center; gap: 10px; padding: 8px 17px; background: #202626; color: #d1d8d4; flex-wrap: wrap; }
.player-tools .select-wrap select { color: #e2e7e3; background: #2e3634; border: 1px solid #414a45; border-radius: 8px; min-height: 36px; padding: 6px 30px 6px 10px; font-size: 12px; }
.player-tools .select-wrap > .icon { color: #bdc7c0; right: 9px; width: 13px; }
.player-tools .select-wrap select:hover { border-color: #738b7b; }
.player-tools .icon-button { color: #d1d8d4; min-height: 36px; width: 38px; border-radius: 8px; }
.player-tools .icon-button:hover { background: #38423d; }
.player-tools .tool-label { font-size: 11px; color: #a8b4ac; }
.player-tools .tools-spacer { flex: 1; }
.subtitle-note { display: inline-flex; align-items: center; gap: 6px; color: #b1beb5; font-size: 11px; }
.subtitle-note .icon { width: 17px; height: 17px; }
.player-error { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; background: #161d1deb; padding: 24px; z-index: 6; }
.player-error p { color: #c8d1c9; font-size: 14px; margin: 13px 0 18px; max-width: 430px; }
.player-error .icon { color: #d5c197; }
.player-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 320px; color: #bec9c0; gap: 12px; padding: 30px; text-align: center; }
.player-empty > .icon { width: 40px; height: 40px; color: #768e7e; }
.watch-info { display: grid; grid-template-columns: minmax(0, 1fr) 315px; gap: 32px; margin-top: 27px; }
.watch-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.watch-title-row h1 { font-size: 27px; line-height: 1.5; }
.watch-meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; color: var(--muted); font-size: 12px; margin-top: 10px; }
.watch-meta .meta-dot { color: #bba995; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; line-height: 1.5; padding: 4px 8px; border-radius: 6px; background: #f0e6d8; color: #806144; white-space: nowrap; }
.tag-green { background: #e8f1e7; color: var(--green); }
.tag-orange { background: #ffedda; color: #9d6027; }
.tag-muted { background: #eee9e3; color: #7d7065; }
.tag .icon { width: 12px; height: 12px; }
.watch-description { color: var(--muted); font-size: 14px; margin-top: 19px; white-space: pre-wrap; overflow-wrap: anywhere; }
.watch-details { margin-top: 25px; border-top: 1px solid var(--line); padding-top: 3px; }
.watch-details summary { list-style: none; cursor: pointer; min-height: 48px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); }
.watch-details summary::-webkit-details-marker { display: none; }
.watch-details summary .icon { width: 16px; height: 16px; transition: transform .15s; }
.watch-details[open] summary .icon { transform: rotate(180deg); }
.detail-grid { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 12px 14px; font-size: 12px; margin: 10px 0 18px; }
.detail-grid dt { color: #978371; }
.detail-grid dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.version-panel { background: #f4eee3; padding: 18px; border: 1px solid #e8dcc9; border-radius: 15px; align-self: start; }
.version-panel .panel-heading { display: flex; align-items: center; justify-content: space-between; font-size: 13px; margin-bottom: 11px; }
.version-panel .select-wrap { width: 100%; }
.version-panel .select-wrap select { width: 100%; font-size: 13px; color: var(--ink); }
.version-summary { color: var(--muted); font-size: 12px; line-height: 1.85; margin-top: 11px; white-space: pre-wrap; overflow-wrap: anywhere; }
.version-date { color: #968370; font-size: 11px; margin-top: 9px; }
.version-note { padding-top: 12px; margin-top: 13px; border-top: 1px solid #e3d7c5; font-size: 11px; color: #8c735c; line-height: 1.7; }
.feedback-area { margin: 30px 0 0; background: var(--white); border: 1px solid var(--line); border-radius: 17px; padding: 19px 22px; }
.feedback-main { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.feedback-heading h2 { font-size: 15px; }
.feedback-heading p { color: var(--muted); font-size: 12px; margin-top: 4px; }
.feedback-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.feedback-actions .button { font-size: 13px; }
.feedback-records { display: flex; flex-direction: column; gap: 10px; margin-top: 17px; border-top: 1px solid var(--line); padding-top: 15px; }
.feedback-item { display: grid; grid-template-columns: 100px minmax(0, 1fr) auto; gap: 12px; align-items: start; font-size: 12px; }
.feedback-item .feedback-text { color: var(--muted); line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.feedback-item .feedback-date { color: #a18c77; font-size: 11px; }
.time-link { color: var(--green); background: #e8f0e6; font-variant-numeric: tabular-nums; padding: 5px 8px; border-radius: 6px; font-size: 11px; margin-right: 7px; min-height: 32px; }
.related-section { margin-top: 35px; }
.related-section .work-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pairing-intro { display: flex; align-items: center; gap: 15px; padding-bottom: 20px; }
.pairing-icon { width: 62px; height: 62px; display: grid; place-items: center; flex: 0 0 auto; background: var(--pale-green); color: var(--green); border-radius: 18px; }
.pairing-icon .icon { width: 28px; height: 28px; }
.pairing-intro p { font-size: 13px; color: var(--muted); }
.pairing-code { display: flex; align-items: center; justify-content: space-between; padding: 17px 20px; border: 1px solid #d6e0cb; border-radius: 13px; background: #eff3e8; margin: 12px 0 18px; gap: 10px; }
.pairing-code strong { font-size: 28px; letter-spacing: 4px; color: var(--green); font-variant-numeric: tabular-nums; font-weight: 650; overflow-wrap: anywhere; }
.pairing-steps { list-style: decimal; padding-left: 19px; color: var(--muted); font-size: 13px; line-height: 1.95; }
.pairing-steps li { padding-left: 3px; margin-bottom: 5px; }
.pairing-status { display: flex; align-items: center; justify-content: center; gap: 9px; padding-top: 18px; font-size: 12px; color: var(--muted); }
.pairing-status .spinner { width: 16px; height: 16px; }
.device-summary { display: flex; align-items: center; gap: 14px; padding: 12px 0 22px; }
.device-summary .pairing-icon { background: #e6efdf; }
.device-summary h3 { font-size: 16px; }
.device-summary p { color: var(--muted); font-size: 13px; margin-top: 5px; }
.dialog { width: min(540px, calc(100% - 32px)); max-height: min(90dvh, 860px); border: 1px solid #e7dccd; border-radius: 22px; box-shadow: 0 25px 100px #3f2b2035; padding: 0; color: var(--ink); background: var(--cream); overflow: auto; }
.dialog::backdrop { background: #241f195e; backdrop-filter: blur(3px); }
.dialog-wide { width: min(680px, calc(100% - 32px)); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 20px 17px 26px; border-bottom: 1px solid var(--line); }
.dialog-heading h2 { font-size: 19px; }
.dialog-body { padding: 23px 26px 26px; }
.dialog-body > p + p { margin-top: 12px; }
.dialog-intro { margin-bottom: 18px; }
.dialog-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 17px 26px 22px; border-top: 1px solid var(--line); }
.dialog-footer .button { min-width: 90px; }
.dialog .field + .field { margin-top: 17px; }
.has-dialog { overflow: hidden; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field-label { font-size: 13px; font-weight: 550; }
.field-help { color: var(--muted); font-size: 12px; line-height: 1.75; }
.text-input, .field textarea, .field select { border: 1px solid #dcd0c1; border-radius: 11px; min-height: 46px; background: var(--white); color: var(--ink); width: 100%; padding: 11px 13px; font-size: 14px; line-height: 1.6; }
.text-input::placeholder, .field textarea::placeholder { color: #ac9985; }
.field textarea { min-height: 112px; }
.field .select-wrap { width: 100%; }
.field .select-wrap select { width: 100%; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.field-grid + .field, .field + .field-grid, .field-grid + .field-grid { margin-top: 17px; }
.checkbox-row { display: flex; gap: 9px; align-items: center; font-size: 13px; color: var(--muted); min-height: 44px; }
.checkbox-row input { margin: 0; }
.form-message { color: var(--danger); background: #fbefe7; border: 1px solid #edd2c0; border-radius: 10px; font-size: 13px; line-height: 1.8; padding: 10px 13px; margin-top: 16px; }
.form-message:empty { display: none; }
.share-created { padding: 15px; background: #edf3e7; border: 1px solid #d8e4cb; border-radius: 12px; margin: 19px 0; }
.share-created p { font-size: 12px; color: var(--green); margin-bottom: 10px; }
.share-url-row { display: flex; gap: 8px; }
.share-url-row input { font-size: 12px; min-height: 42px; }
.share-list { margin-top: 22px; }
.share-list h3 { font-size: 13px; margin-bottom: 10px; }
.share-list-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding: 10px 0; }
.share-list-item p { font-size: 12px; color: var(--muted); }
.share-list-item .button { font-size: 12px; min-height: 38px; padding: 8px 12px; }
.manage-tabs { display: flex; gap: 5px; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 24px; }
.manage-notice { display: flex; align-items: center; gap: 12px; background: #edf2e4; border: 1px solid #dce5ce; border-radius: 14px; padding: 16px 19px; margin-bottom: 22px; }
.manage-notice .icon { color: var(--green); }
.manage-notice p { font-size: 13px; color: #657052; }
.manage-notice strong { color: #3b5e3f; font-weight: 550; }
.manage-list { display: flex; flex-direction: column; gap: 9px; }
.manage-item { display: flex; align-items: center; gap: 17px; background: var(--white); border: 1px solid var(--line); padding: 13px 17px; border-radius: 14px; }
.manage-cover { width: 94px; aspect-ratio: 16/10; object-fit: contain; border-radius: 8px; background: #e8e3da; flex-shrink: 0; }
.manage-item-content { flex: 1; min-width: 0; }
.manage-item h3 { font-size: 14px; overflow-wrap: anywhere; }
.manage-item-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 11px; color: var(--muted); margin-top: 6px; }
.manage-item-actions { display: flex; align-items: center; gap: 5px; }
.manage-item-actions .button { font-size: 12px; }
.upload-row { display: flex; align-items: center; gap: 16px; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 13px; margin-bottom: 10px; }
.upload-icon { width: 44px; height: 44px; border-radius: 12px; background: #f3eadd; color: #9b7854; display: grid; place-items: center; flex-shrink: 0; }
.upload-content { flex: 1; min-width: 0; }
.upload-content h3 { font-size: 13px; overflow-wrap: anywhere; }
.upload-content p { font-size: 11px; color: var(--muted); margin-top: 4px; }
.upload-progress { height: 4px; border-radius: 2px; background: #e9e3d9; overflow: hidden; margin-top: 9px; max-width: 440px; }
.upload-progress span { display: block; height: 100%; background: var(--green); max-width: 100%; }
.management-hint { margin-top: 28px; padding: 20px 23px; background: #f2ecdf; border-radius: 14px; }
.management-hint h3 { font-size: 14px; margin-bottom: 6px; }
.management-hint p { font-size: 13px; color: var(--muted); }
.prompt-example { margin-top: 12px; display: inline-flex; background: var(--white); border: 1px solid #e1d5c5; border-radius: 9px; padding: 10px 14px; font-size: 13px; color: var(--green); }
.loading-state { min-height: 240px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; color: var(--muted); padding: 50px 24px; font-size: 13px; }
.spinner { display: inline-block; width: 25px; height: 25px; border: 2px solid #d5e0d4; border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { min-height: 320px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; border: 1px dashed #dfd3c3; background: #faf6ee; border-radius: 18px; padding: 35px 24px; }
.empty-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: #efe6d8; color: #a98c6c; margin-bottom: 19px; }
.empty-icon .icon { width: 27px; height: 27px; }
.empty-state h2 { font-size: 18px; }
.empty-state p { color: var(--muted); font-size: 13px; max-width: 450px; margin: 9px 0 20px; }
.empty-state p:last-child { margin-bottom: 0; }
.site-footer { max-width: 1456px; display: flex; justify-content: center; align-items: center; gap: 10px; margin: 0 auto; padding: 27px 32px 32px; color: #a08c77; font-size: 11px; line-height: 1.8; }
.footer-dot { color: #cfbdab; }
.toast-region { position: fixed; bottom: max(27px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 1000; max-width: calc(100% - 32px); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 13px 19px; font-size: 13px; line-height: 1.65; border: 1px solid #ffffff2e; background: #35483ff5; color: white; border-radius: 13px; box-shadow: 0 5px 25px #23372926; animation: toast-enter .18s ease-out; }
.toast-error { background: #734435f7; }
.toast .icon { width: 18px; height: 18px; }
@keyframes toast-enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.noscript-message { padding: 20px; background: var(--beige); position: fixed; bottom: 0; left: 0; right: 0; text-align: center; }
@media (min-width: 1500px) { .page { padding-top: 42px; } .work-grid { gap: 32px 24px; } }
@media (max-width: 1199px) { .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .header-inner { gap: 35px; padding: 0 30px; } .page { padding-left: 30px; padding-right: 30px; } .watch-info { grid-template-columns: minmax(0, 1fr) 285px; gap: 25px; } .filter-bar { gap: 9px; } .filter-pill { padding-left: 12px; padding-right: 12px; } .filter-divider { display: none; } }
@media (max-width: 900px) { .header-inner { min-height: 80px; gap: 25px; padding: 0 24px; } .brand-name { font-size: 21px; } .brand-logo { width: 44px; height: 44px; } .primary-nav { gap: 18px; } .header-actions { gap: 5px; } .page { padding: 30px 24px; } .work-grid { gap: 25px 17px; } .filter-spacer { display: none; } .filter-bar .select-wrap { margin-left: auto; } .filter-bar .view-switch { margin-left: 0; } .watch-info { grid-template-columns: minmax(0, 1fr) 250px; gap: 24px; } .feedback-main { align-items: flex-start; flex-direction: column; gap: 14px; } .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .related-section .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .watch-page { padding-top: 17px; } }
@media (max-width: 700px) { h1 { font-size: 26px; } .header-inner { padding: 0 20px; min-height: 74px; gap: 22px; flex-wrap: wrap; } .brand { gap: 7px; } .brand-name { font-size: 20px; } .brand-logo { width: 40px; height: 40px; } .brand-divider { padding: 0 5px; } .primary-nav { gap: 12px; min-height: 74px; } .nav-link { font-size: 14px; min-width: 40px; } .header-actions .button { min-height: 40px; padding: 9px 11px; font-size: 12px; gap: 6px; } .header-actions .button .icon { width: 17px; height: 17px; } .header-actions .manage-link { display: none; } .header-actions .connected-label { display: none; } .page { padding: 28px 20px 32px; } .page-heading { margin-bottom: 21px; gap: 12px; } .heading-description { font-size: 12px; margin-top: 6px; } .heading-actions .button { padding: 9px 12px; font-size: 12px; } .search-row { gap: 9px; margin-bottom: 16px; } .search-box { min-height: 50px; padding-left: 14px; gap: 9px; border-radius: 13px; } .search-input { font-size: 14px; } .search-shortcut { display: none; } .search-row > .select-wrap select { min-height: 50px; max-width: 120px; } .filter-bar { row-gap: 14px; margin-bottom: 23px; } .quick-filters { width: 100%; gap: 4px; } .filter-pill { flex: 1; justify-content: center; padding: 9px 6px; font-size: 13px; min-height: 42px; } .filter-pill .icon { width: 15px; height: 15px; } .filter-bar .select-wrap { margin-left: 0; } .filter-bar .view-switch { margin-left: auto; } .filter-bar > .filter-spacer { display: flex; } .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; } .cover-frame { border-radius: 12px; } .card-content { padding-top: 10px; padding-right: 28px; } .card-title { font-size: 14px; line-height: 1.65; } .card-meta { font-size: 11px; gap: 5px; margin-top: 4px; } .card-state { left: 7px; top: 7px; padding: 3px 6px; font-size: 10px; } .duration-badge { right: 7px; bottom: 7px; font-size: 10px; padding: 3px 5px; } .card-favorite { top: 4px; right: -9px; width: 38px; min-height: 44px; } .card-favorite .icon { width: 16px; height: 16px; } .card-bottom-line { font-size: 10px; } .continue-section { margin-bottom: 25px; } .continue-card { padding: 10px; gap: 12px; border-radius: 13px; } .continue-cover { width: 105px; } .continue-text h3 { font-size: 13px; } .continue-text p { font-size: 11px; } .continue-strip > .continue-card:nth-child(n+2) { display: none; } .section-heading { margin-bottom: 11px; } .section-heading h2 { font-size: 15px; } .section-heading .small { font-size: 11px; } .public-note { padding: 12px 13px; flex-wrap: wrap; font-size: 11px; gap: 8px; } .public-note .text-link { margin-left: 25px; font-size: 12px; min-height: 25px; padding: 0; } .work-list .cover-frame { width: 122px; } .work-list .work-link { gap: 13px; padding: 10px; } .work-list .card-title { font-size: 14px; } .work-list .card-content { padding-right: 33px; } .work-list .card-favorite { right: 1px; } .work-list .card-meta { margin-top: 4px; } .collection-grid { gap: 14px; } .collection-art { height: 144px; padding: 14px; gap: 5px; } .collection-content { padding: 14px; } .collection-content h2 { font-size: 15px; } .collection-content p { font-size: 12px; } .collection-count { font-size: 11px; margin-top: 12px; } .watch-page { padding-top: 13px; } .watch-topbar { margin-bottom: 10px; } .watch-top-actions { gap: 3px; } .watch-top-actions .button { padding: 8px 10px; } .watch-top-actions .button span { display: none; } .watch-top-actions .button .icon { width: 17px; height: 17px; } .player-frame { border-radius: 14px; } .player-surface video { min-height: 150px; max-height: 67dvh; } .player-tools { gap: 7px; padding: 8px 10px; min-height: 51px; } .player-tools .tool-label { display: none; } .player-tools .select-wrap select { font-size: 11px; padding-left: 8px; padding-right: 27px; } .subtitle-note { font-size: 10px; } .subtitle-note .icon { width: 14px; height: 14px; } .player-tools .icon-button { width: 32px; padding: 7px; } .watch-info { display: flex; flex-direction: column; gap: 21px; margin-top: 22px; } .watch-title-row h1 { font-size: 23px; } .watch-meta { font-size: 11px; gap: 7px; margin-top: 8px; } .watch-description { font-size: 13px; margin-top: 16px; } .watch-details { margin-top: 18px; } .version-panel { width: 100%; padding: 15px 17px; } .version-panel .panel-heading { margin-bottom: 10px; } .version-summary { margin-top: 10px; } .feedback-area { margin-top: 21px; padding: 17px; } .feedback-actions { gap: 7px; width: 100%; } .feedback-actions .button { flex: 1; padding: 10px 10px; font-size: 12px; white-space: nowrap; } .feedback-actions .button .icon { width: 16px; height: 16px; } .feedback-item { grid-template-columns: 88px minmax(0, 1fr); gap: 7px; } .feedback-item .feedback-date { grid-column: 2; } .related-section { margin-top: 26px; } .related-section .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dialog-heading { padding: 15px 15px 14px 21px; } .dialog-heading h2 { font-size: 18px; } .dialog-body { padding: 20px 21px 23px; } .dialog-footer { padding: 16px 21px 20px; } .pairing-code { padding: 14px 15px; } .pairing-code strong { font-size: 25px; letter-spacing: 3px; } .site-footer { font-size: 10px; padding: 22px 20px 28px; gap: 8px; } .manage-item { gap: 12px; padding: 12px; flex-wrap: wrap; } .manage-cover { width: 80px; } .manage-item-content { min-width: calc(100% - 94px); } .manage-item-actions { width: 100%; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 10px; } .manage-item h3 { font-size: 13px; } .manage-notice { padding: 13px 15px; } .manage-notice p { font-size: 12px; } .upload-row { gap: 11px; padding: 14px; flex-wrap: wrap; } .upload-row > .tag { margin-left: 55px; } .management-hint { padding: 18px; } }
@media (max-width: 430px) { .header-inner { gap: 13px; padding: 0 16px; } .brand-name { font-size: 18px; } .brand-logo { width: 36px; height: 36px; } .brand-divider { padding: 0 4px; } .primary-nav { gap: 5px; } .nav-link { min-width: 35px; font-size: 13px; } .header-actions .button { padding: 8px; } .header-actions .button .device-label { display: none; } .header-actions .button .icon { width: 19px; height: 19px; } .page { padding-left: 16px; padding-right: 16px; } .work-grid { gap: 23px 12px; } .filter-pill { gap: 5px; font-size: 12px; } .filter-number { font-size: 10px; } .search-row > .select-wrap select { max-width: 108px; padding-left: 10px; font-size: 12px; } .card-meta .meta-extra { display: none; } .player-tools { gap: 5px; } .player-tools .subtitle-note { max-width: 120px; } .field-grid { grid-template-columns: 1fr; gap: 16px; } .pairing-code strong { font-size: 22px; } .pairing-code .button { padding: 9px 10px; font-size: 12px; } .collection-art { height: 122px; } .collection-content { padding: 12px; } .feedback-actions .button { gap: 5px; } .watch-topbar .back-link { font-size: 12px; } }
@media (max-width: 350px) { .header-inner { gap: 9px; } .brand { gap: 4px; } .brand-name { font-size: 17px; } .brand-logo { width: 34px; height: 34px; } .nav-link { min-width: 31px; font-size: 12px; } .work-grid, .collection-grid, .related-section .work-grid { grid-template-columns: minmax(0, 1fr); } .cover-frame { aspect-ratio: 16/9; } .work-list .cover-frame { width: 100px; } .card-content { padding-right: 37px; } .card-title { font-size: 15px; } .card-meta { font-size: 12px; } .card-favorite { right: -3px; } .filter-pill .icon { display: none; } .search-row { flex-wrap: wrap; } .search-box { min-width: 100%; } .search-row > .select-wrap { display: none; } .feedback-actions { flex-direction: column; } .player-tools .subtitle-note { max-width: 95px; } .collection-art { height: 190px; } .pairing-code { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* A consistent touch area also benefits mouse and keyboard users. */
.button, .button-small, .button-ghost, .text-link, .filter-pill, .filter-chip,
.icon-button, .search-box .icon-button, .view-switch .icon-button,
.player-tools .icon-button, .time-link, .nav-link, .card-favorite,
.header-actions .button, .watch-top-actions .button, .share-list-item .button {
  min-height: 44px;
  min-width: 44px;
}
.button, .button-small, .filter-pill, .text-link, .header-actions .button,
.watch-top-actions .button, .heading-actions .button, .manage-item-actions .button,
.share-list-item .button, .feedback-actions .button, .pairing-code .button {
  font-size: 14px;
}
.select-wrap select, .search-row > .select-wrap select, .player-tools .select-wrap select { min-height: 44px; }
.card-meta, .card-bottom-line, .duration-badge, .card-state, .tag,
.subtitle-note, .player-tools .tool-label, .player-tools .select-wrap select,
.filter-number, .continue-text p, .collection-count, .section-heading .small,
.watch-meta, .version-date, .version-note, .feedback-item .feedback-date,
.site-footer, .public-note, .upload-content p, .manage-item-meta, .time-link {
  font-size: 12px;
}
.work-grid .card-content { padding-right: 1px; }
.work-grid .outside-favorite { top: 5px; right: 5px; width: 44px; min-height: 44px; border-radius: 50%; background: #fffbf6ed; color: #75695b; z-index: 4; }
.work-grid .outside-favorite:hover { background: var(--cream); color: #ad6342; }
.work-grid .outside-favorite.is-favorite { color: #b56745; }
.work-list .outside-favorite { top: 50%; right: 9px; transform: translateY(-50%); }
.button.is-favorite .icon { fill: currentColor; color: #b56745; }
.device-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.load-more { display: flex; justify-content: center; margin-top: 24px; }
.load-more:empty { display: none; }
.manage-cover-empty { display: grid; place-items: center; color: #ad9680; }
.library-results[aria-busy="true"] > .work-grid, .library-results[aria-busy="true"] > .work-list { opacity: .55; }
[hidden] { display: none !important; }
@media (max-width: 430px) { .header-inner { column-gap: 9px; } .primary-nav { gap: 0; } .header-actions .button { padding: 8px; } .player-tools .subtitle-note { max-width: none; } .player-tools { row-gap: 6px; } .card-state { max-width: calc(100% - 65px); } }
@media (max-width: 350px) { .header-inner { padding: 0 12px; column-gap: 5px; } .brand-name { font-size: 16px; } .brand-divider { padding: 0 3px; } .brand-logo { width: 36px; height: 36px; } .nav-link { font-size: 13px; } .filter-pill { padding-left: 4px; padding-right: 4px; } }
