.watch-main { width: min(1320px, calc(100% - 48px)); margin: 0 auto; padding-bottom: 64px; }
.watch-crumb-name { max-width: 38vw; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: block !important; align-content: center; }
.watch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "player sidebar" "info info"; }
.watch-player-column { grid-area: player; min-width: 0; align-self: start; border: 1px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px; overflow: hidden; }
.watch-screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; isolation: isolate; background: #16151c; color: #f7f3f4; }
.watch-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 24px; text-align: center; background: radial-gradient(ellipse at 50% 0, #2d252e 0%, #17161c 65%); }
.watch-placeholder-icon { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 16px; border: 1px solid #51424c; border-radius: 22px; color: #d4a2b0; background: #ffffff04; }
.watch-placeholder-icon svg { width: 32px; height: 32px; }
.watch-placeholder h2 { margin: 0; font-size: 20px; font-weight: 600; }
.watch-placeholder p { margin: 10px 0 6px; color: #b9b1bb; font-size: 13px; }
.watch-placeholder a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #efacbc; font-size: 13px; }
.watch-player-mount { position: absolute; inset: 0; }
.watch-player-mount .MacPlayer, .watch-player-mount #playleft, .watch-player-mount table, .watch-player-mount iframe, .watch-player-mount video { width: 100% !important; height: 100% !important; border: 0; }
.watch-player-mount table { position: absolute; inset: 0; }
.watch-player-mount td { padding: 0 !important; }
.watch-player-failure { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 20px; text-align: center; background: #16151c; }
.watch-player-failure p { margin: 0; font-size: 18px; }
.watch-player-failure span { color: #b9b1bb; font-size: 13px; }
.watch-player-failure button { min-height: 44px; padding: 0 18px; margin-top: 8px; border: 1px solid #69515e; border-radius: 6px; background: transparent; color: #efacbc; }
.watch-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 20px; min-height: 58px; padding: 6px 18px; border-top: 1px solid #302c35; background: #211e26; color: #d2cbd4; }
.watch-tools { padding-left: 16px; border-left: 1px solid #49414b; }
.watch-tools button:disabled { color: #948b98; cursor: default; }
.watch-episode-nav { margin-left: auto; }
.watch-tools, .watch-episode-nav { display: flex; align-items: center; gap: 16px; }
.watch-tools button, .watch-episode-nav > a, .watch-episode-nav > span { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0; border: 0; background: transparent; color: inherit; font-size: 12px; white-space: nowrap; }
.watch-tools svg { width: 16px; height: 16px; }
.watch-tools button:hover, .watch-episode-nav a:hover { color: #efacbc; }
.watch-reactions { display: flex; align-items: center; gap: 4px; }
.watch-reactions button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 10px; border: 1px solid transparent; border-radius: 6px; color: inherit; background: transparent; font: inherit; font-size: 12px; }
.watch-reactions svg { width: 17px; height: 17px; flex-shrink: 0; }
.watch-reactions [data-reaction-count] { font-variant-numeric: tabular-nums; }
.watch-reactions button:hover { color: #efacbc; background: #ffffff08; }
.watch-reactions button[aria-pressed="true"] { color: #ffc0d0; border-color: #754354; background: #b83e5b26; }
.watch-reactions button[aria-pressed="true"] svg { fill: #efacbc26; }
.watch-reactions button:disabled { cursor: wait; opacity: .6; }
.watch-toolbar button:focus-visible, .watch-toolbar a:focus-visible { outline: 2px solid #efacbc; outline-offset: 2px; }
.watch-reaction-feedback { position: fixed; z-index: 80; left: 50%; bottom: 24px; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); margin: 0; padding: 12px 18px; border: 1px solid #69515e; border-radius: 8px; color: #efacbc; background: #211e26; box-shadow: 0 6px 24px #17161c26; font-size: 13px; text-align: center; }
.watch-episode-nav > a, .watch-episode-nav > span { padding: 0 8px; border-radius: 6px; font-weight: 500; }
.watch-episode-nav > a:hover { background: #b83e5b26; }
.watch-episode-nav > span[aria-disabled] { opacity: .35; }
.watch-episode-nav > a > span, .watch-episode-nav > span > span { font-size: 20px; }
.watch-sidebar { grid-area: sidebar; display: flex; flex-direction: column; height: var(--watch-sidebar-height, 560px); min-height: 0; min-width: 0; border: 1px solid var(--line); border-radius: 0 12px 12px 0; background: var(--surface); padding: 18px 18px 16px; }
.watch-sidebar-heading { display: flex; align-items: baseline; gap: 8px; flex-shrink: 0; }
.watch-sidebar-heading h2 { margin: 0; font-size: 18px; font-weight: 750; }
.watch-sidebar-heading > span { color: var(--muted); font-size: 12px; }
.watch-sidebar-heading button { min-height: 44px; margin-left: auto; padding: 0 3px; border: 0; background: transparent; color: var(--muted); font-size: 12px; }
.watch-sources { display: flex; gap: 8px; flex-shrink: 0; overflow-x: auto; padding: 8px 0 14px; scrollbar-width: thin; }
.watch-sources a { display: inline-flex; align-items: center; flex-shrink: 0; min-height: 44px; max-width: 100%; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; color: #625b60; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.watch-sources a.is-active { color: var(--pink-text); background: var(--schedule-updated-bg); border-color: var(--schedule-updated-border); }
.watch-list-meta { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; flex-wrap: wrap; gap: 4px; padding-bottom: 14px; color: var(--muted); font-size: 12px; }
.watch-list-meta strong { color: var(--pink-text); font-weight: 600; margin-left: 5px; }
.watch-single-source { display: block; margin: 2px 0 5px; color: #625b60; }
.watch-list-meta select { max-width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); padding: 0 6px; color: #625b60; font: inherit; }
.watch-episode-scroll { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c39aa5 transparent; padding-right: 4px; }
.watch-episode-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; align-content: start; padding: 2px 0; }
.watch-episode-grid a { display: grid; place-items: center; min-width: 0; min-height: 44px; padding: 9px 5px; border: 1px solid transparent; border-radius: 6px; background: var(--surface-soft); color: #625b60; font-size: 12px; line-height: 1.5; text-align: center; overflow-wrap: anywhere; }
.watch-episode-grid a.is-current { color: var(--pink-text); background: var(--schedule-updated-bg); border-color: var(--schedule-updated-border); font-weight: 700; box-shadow: inset 0 -2px 0 var(--pink-text); }
.watch-episode-grid a:hover { color: var(--pink-text); border-color: var(--schedule-updated-border); }
.watch-sidebar-foot { flex-shrink: 0; margin: 16px 0 0; padding: 14px 0; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.watch-no-episodes { font-size: 13px; color: var(--muted); text-align: center; padding: 20px; }
.watch-info { grid-area: info; display: flex; justify-content: space-between; gap: 32px; padding: 24px 4px 0; }
.watch-synopsis summary { display: none; min-height: 44px; align-items: center; width: fit-content; color: var(--pink-text); font-size: 13px; cursor: pointer; list-style: none; }
.watch-synopsis summary::-webkit-details-marker { display: none; }
.watch-synopsis summary::after { content: "⌄"; margin-left: 8px; }
.watch-synopsis[open] summary::after { content: "⌃"; }
.watch-player-status { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; background: #211e26; border-top: 1px solid #35303a; color: #cfc4d1; }
.watch-player-status p { flex: 1; margin: 0; font-size: 12px; line-height: 1.6; }
.watch-player-status button { flex-shrink: 0; min-width: 44px; min-height: 44px; border: 0; padding: 0 8px; background: transparent; color: #efacbc; font: inherit; font-size: 13px; }
.watch-player-status [data-watch-status-dismiss] { font-size: 20px; }
.watch-player-status[data-state="error"] { color: #ffc0d0; }
.watch-player-status button:focus-visible { outline: 2px solid #efacbc; outline-offset: -3px; }
.watch-info-main { min-width: 0; max-width: 900px; }
.watch-now { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); }
.watch-now span:first-child { color: var(--pink-text); font-weight: 650; }
.watch-info h1 { margin: 8px 0 10px; font-size: 28px; line-height: 1.4; overflow-wrap: anywhere; }
.watch-description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; color: #625b60; font-size: 13px; line-height: 1.85; overflow-wrap: anywhere; }
.watch-detail-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--pink-text); font-size: 12px; }
.watch-info-actions { display: flex; align-items: flex-end; flex-direction: column; flex-shrink: 0; gap: 8px; padding-top: 4px; }
.watch-info-actions .anime-follow { min-width: 120px; }
.watch-info-actions .anime-rating-widget { margin: 0; }
.watch-page .detail-related { margin-top: 36px; }
.watch-layout [hidden] { display: none !important; }
@media (min-width: 1024px) {
  .watch-layout.is-wide { grid-template-columns: minmax(0,1fr); }
  .watch-layout.is-wide { grid-template-areas: "player" "info"; }
  .watch-layout.is-wide .watch-player-column { border-right: 1px solid var(--line); border-radius: 12px; }
  .watch-layout.is-wide .watch-sidebar { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .watch-reactions button { transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease; }
  .watch-reactions svg { transition: transform 160ms ease; }
  .watch-reactions button:hover svg { transform: translateY(-2px); }
  .watch-episode-grid a, .watch-sources a { transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease; }
}
@media (max-width: 1023px) {
  .watch-main { width: calc(100% - 32px); }
  .watch-layout { grid-template-columns: minmax(0,1fr); grid-template-areas: "player" "info" "sidebar"; }
  .watch-player-column { border-right: 1px solid var(--line); border-radius: 10px; }
  .watch-sidebar { height: 350px; margin-top: 18px; padding: 12px 18px 16px; border-radius: 10px; }
  .watch-synopsis summary { display: flex; }
  .watch-synopsis .watch-description { display: block; padding-bottom: 8px; }
  .watch-episode-grid { grid-template-columns: repeat(6,minmax(0,1fr)); }
  .watch-wide-button { display: none !important; }
}
@media (max-width: 767px) {
  .watch-main { width: calc(100% - 24px); padding-bottom: 36px; }
  .watch-main .detail-breadcrumb { gap: 6px; flex-wrap: nowrap; min-height: 52px; font-size: 11px; }
  .watch-crumb-name { min-width: 0; flex: 1; }
  .watch-main .detail-breadcrumb > :not(.watch-crumb-name) { flex-shrink: 0; }
  .watch-layout { border-radius: 8px; }
  .watch-placeholder { padding: 12px; }
  .watch-placeholder-icon { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 8px; }
  .watch-placeholder-icon svg { width: 22px; height: 22px; }
  .watch-placeholder h2 { font-size: 15px; }
  .watch-placeholder p { margin: 6px 0 0; font-size: 11px; }
  .watch-placeholder a { font-size: 12px; min-height: 36px; }
  .watch-toolbar { min-height: 54px; padding: 4px 12px; gap: 4px; }
  .watch-tools { padding-left: 0; border-left: 0; }
  .watch-tools, .watch-episode-nav { gap: 14px; }
  .watch-reactions { flex: 1; }
  .watch-reactions button { padding: 0 8px; }
  .watch-episode-nav { flex-basis: 100%; justify-content: space-between; border-top: 1px solid #35303a; }
  .watch-sidebar { height: 310px; padding: 10px 12px 12px; }
  .watch-sidebar-heading h2 { font-size: 17px; }
  .watch-sources { padding-top: 2px; padding-bottom: 10px; }
  .watch-list-meta { padding-bottom: 10px; }
  .watch-episode-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .watch-sidebar-foot { margin-top: 10px; padding: 10px 0; }
  .watch-info { flex-direction: column; gap: 10px; padding: 18px 2px 0; }
  .watch-info h1 { margin: 6px 0 4px; font-size: 22px; }
  .watch-info-main { position: relative; padding-bottom: 44px; }
  .watch-synopsis { margin-bottom: -44px; }
  .watch-detail-link { position: absolute; right: 0; bottom: 0; }
  .watch-page .anime-comments { padding: 20px 16px; }
  .watch-info-actions { flex-direction: row; align-items: center; flex-wrap: wrap; justify-content: space-between; padding: 0; gap: 8px; }
  .watch-info-actions .anime-follow { min-width: 88px; min-height: 44px; }
}
.watch-page .comment-editor { border: 0; border-radius: 0; padding: 0; background: transparent; }
.watch-page .comment-editor textarea { min-height: 72px; }
.watch-page .comment-editor.is-editing textarea { min-height: 120px; }
.watch-page .comment-editor.is-compact .comment-editor-meta,
.watch-page .comment-editor.is-compact .comment-editor-actions { display: none; }
.watch-page .comments-empty { padding: 20px 8px 2px; }
.watch-page .comments-empty svg { width: 24px; height: 24px; margin-bottom: 4px; }

.watch-screen.has-artplayer { aspect-ratio: auto; padding-top: 56.25%; }

.watch-player-column.is-web-fullscreen { position:fixed;inset:0;z-index:2000;width:100vw;height:100dvh;border:0;border-radius:0;background:#111116; }
.watch-player-column.is-web-fullscreen .watch-screen { height:100%;padding-top:0;aspect-ratio:auto; }
.watch-player-column.is-web-fullscreen .watch-toolbar,.watch-player-column.is-web-fullscreen .watch-player-status { display:none!important; }

.watch-screen>.watch-player-status{position:absolute;left:18px;bottom:64px;z-index:5;width:max-content;max-width:calc(100% - 36px);margin:0;padding:0;border:0;background:transparent;box-shadow:none;color:#eee;gap:10px;font-size:13px}
.watch-screen>.watch-player-status p{background:#15131cbb;border-radius:4px;padding:5px 9px;text-shadow:0 1px 3px #000}.watch-loading-gif{width:44px;height:60px;object-fit:contain;flex:none}
.watch-player-status:not([data-state=loading]):not([data-state=waiting]) .watch-loading-gif{display:none}
@media(max-width:600px){.watch-screen>.watch-player-status{left:10px;bottom:54px;max-width:calc(100% - 20px);gap:6px;font-size:12px}.watch-loading-gif{width:34px;height:46px}}
@media(prefers-reduced-motion:reduce){.watch-loading-gif{display:none}}

.watch-screen>.watch-loading-gif{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:80px;height:110px;z-index:5;display:none;pointer-events:none}
.watch-screen:has(>.watch-player-status:not([hidden])[data-state=loading])>.watch-loading-gif,.watch-screen:has(>.watch-player-status:not([hidden])[data-state=waiting])>.watch-loading-gif{display:block}
@media(max-width:600px){.watch-screen>.watch-loading-gif{width:44px;height:60px}}
@media(prefers-reduced-motion:reduce){.watch-screen>.watch-loading-gif{display:none!important}}
