:root {
  --ink: #0f0f0f;
  --muted: #606060;
  --accent: #262626;
  --tint: #f2f2f2;
  --paper: #ffffff;
  --line: #dedede;
  --header: 56px;
  --rail: 218px;
  font: 15px/1.55 "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.skip { position: fixed; z-index: 12; left: 16px; top: -5rem; background: white; padding: 9px; }
.skip:focus { top: 12px; }
.top {
  position: sticky; z-index: 5; top: 0; height: var(--header); background: #fff;
  display: grid; grid-template-columns: minmax(180px, 1fr) minmax(180px, 560px) minmax(96px, 1fr);
  align-items: center; gap: 24px; padding: 0 28px; border-bottom: 1px solid var(--line);
}
.brand-group, .brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo { display: block; width: 112px; max-width: 100%; height: auto; }
.icon-button { display: inline-grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border: 0; padding: 0; border-radius: 12px; background: transparent; }
.icon-button:hover, .icon-button[aria-pressed=true] { color: var(--accent); background: var(--tint); }
.icon { display: inline-block; position: relative; width: 17px; height: 17px; flex: 0 0 17px; color: inherit; }
.home { background: currentColor; clip-path: polygon(50% 1%, 100% 43%, 87% 43%, 87% 100%, 58% 100%, 58% 66%, 42% 66%, 42% 100%, 13% 100%, 13% 43%, 0 43%); }
.bookmark { display: block; width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
[aria-pressed="true"] .bookmark { fill: currentColor; }
.bookmark .watch-later-selected { opacity: 0; }
[aria-pressed="true"] .bookmark .watch-later-selected { opacity: .28; }
.magnify { border: 2px solid; border-radius: 50%; width: 14px; height: 14px; }
.magnify::after { content: ""; position: absolute; bottom: -4px; right: -4px; width: 7px; height: 2px; background: currentColor; transform: rotate(45deg); }
.top-search-toggle { display: none; }
.search { display: flex; position: relative; min-width: 0; border-radius: 12px; }
.search input { min-width: 0; flex: 1; height: 42px; border: 1px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px; background: var(--paper); padding: 0 14px; color: var(--ink); }
.search > button { display: grid; place-items: center; width: 52px; border: 1px solid var(--line); border-radius: 0 12px 12px 0; background: var(--tint); color: var(--accent); }
.search > input:focus { outline: none; border-color: var(--accent); }
.search > input:focus + button { border-color: var(--accent); }
.search-history { position: absolute; z-index: 2; inset: calc(100% + 5px) 0 auto; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 10px 24px #00000018; }
.search-history p { margin: 4px 8px; color: var(--muted); font-size: 12px; }
.search-history ul { margin: 0; padding: 0; list-style: none; }
.search-history li { display: flex; align-items: stretch; gap: 4px; }
.search-history button { border: 0; border-radius: 7px; background: transparent; color: inherit; min-height: 40px; }
.search-history button:hover { background: var(--tint); }
.search-history button:focus-visible { outline-offset: -2px; }
.search-history-term { flex: 1; min-width: 0; padding-inline: 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: start; }
.search-history-remove { flex: 0 0 44px; color: var(--muted); font-size: 20px; }
.pill, .chips a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 9px; background: white; font-weight: 650; }
.pill:hover, .chips a:hover { border-color: var(--accent); }
.top-save { justify-self: end; color: var(--accent); white-space: nowrap; }
.sidebar { display: flex; flex-direction: column; gap: 20px; position: fixed; inset: var(--header) auto 0 0; width: var(--rail); background: #fff; border-right: 1px solid var(--line); overflow: auto; padding: 20px 14px; z-index: 4; }
.nav-group + .nav-group { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.nav-group p { margin: 0 12px 7px; color: var(--muted); font-size: 12px; font-weight: 750; }
.nav-group a, .nav-group button { display: flex; width: 100%; align-items: center; gap: 13px; min-height: 42px; padding: 8px 12px; border: 0; border-radius: 10px; text-align: left; background: transparent; font-weight: 600; }
.nav-group :is(a,button):hover, .nav-group [aria-current] { background: var(--tint); color: var(--accent); }
.nav-svg { display: block; width: 18px; height: 18px; flex: 0 0 18px; fill: currentColor; }
.nav-group .icon.home { width: 18px; height: 18px; flex-basis: 18px; }
@media (min-width: 821px) {
  .top .brand-group { margin-inline-start: -12px; gap: 3px; }
}
.main { margin-left: var(--rail); padding: 24px clamp(18px, 2.5vw, 48px); }
.nav-collapsed .sidebar { display: none; }
.nav-collapsed .main { margin-left: 0; }
.category-header { position: sticky; top: var(--header); z-index: 2; display: flow-root; padding-top: 4px; background: var(--paper); }
@media (hover: hover) {
  .category-header + .video-grid { margin-top: 10px; }
}
@media (min-width: 821px) {
  .main:has(.category-header) { padding-top: 0; }
  .category-header .section-head { margin-bottom: 6px; }
  .category-header h1 { font-size: 19px; line-height: 1.25; }
  .category-header .chips { gap: 5px; padding-block: 4px 6px; margin-bottom: 6px; }
  .category-header .chips a { font-size: 13px; padding: 4px 9px; border-radius: 7px; }
  .category-header .today-count { font-size: 13px; }
}
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding: 4px 4px 10px; margin: -4px -4px 15px; }
.chips a { white-space: nowrap; background: var(--tint); }
:is(.chips,.episode-grid) [aria-current] { color: white; border-color: #0f0f0f; background: #0f0f0f; }
.sub-chips { margin-bottom: 12px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 17px; }
h1 { margin: 0; font-size: clamp(23px, 2.5vw, 34px); line-height: 1.2; letter-spacing: -.035em; overflow-wrap: anywhere; }
.today-heading { display: flex; align-items: center; flex-wrap: wrap; column-gap: 10px; }
.today-count { color: #000000; font-size: clamp(17px, 1.25vw, 20px); font-weight: 600; white-space: nowrap; }
.today-count > span { color: #ff0000; }
.today-load { text-align: center; }
.section-head > a { flex-shrink: 0; color: var(--accent); font-size: 14px; font-weight: 750; }
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 16px; }
.card { min-width: 0; background: white; border: 1px solid transparent; border-radius: 16px; overflow: hidden; }
.card-hover-backdrop { display: none; }
@media (hover: hover) {
  .card:has(> .card-hover-backdrop) {
    position: relative;
    isolation: isolate;
    overflow: visible;
  }
  .card:hover { z-index: 1; }
  .card-hover-backdrop {
    display: block;
    position: absolute;
    inset: -1px;
    z-index: -1;
    overflow: hidden;
    border-radius: 16px;
    pointer-events: none;
    background: var(--tint);
    opacity: 0;
    transition: inset 180ms ease-out, border-radius 180ms ease-out, opacity 180ms ease-out;
  }
  .card:hover > .card-hover-backdrop {
    inset: var(--backdrop-top, -11px) -11px -11px;
    border-radius: 26px;
    opacity: 1;
  }
  .card-hover-backdrop.has-cover { background: white; }
  .card-hover-backdrop canvas {
    display: block;
    width: 100%;
    height: 100%;
    transform: scale(1.24);
    filter: blur(25px);
    opacity: 0;
    transition: opacity 180ms ease-out;
  }
  .card-hover-backdrop.has-cover canvas { opacity: .17; }
}
@media (prefers-reduced-motion: reduce) {
  .card-hover-backdrop, .card-hover-backdrop canvas { transition: none; }
}
.cover, .detail-cover { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: radial-gradient(ellipse at 80% 15%, #737373, transparent 60%), linear-gradient(135deg, #222222, #444444); }
.card > .cover { border-radius: 15px; }
.card > .cover:has(img:not([hidden])) { background: transparent; }
.cover img, .detail-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.cover:hover img { transform: scale(1.035); }
.cover-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; }
.cover.is-previewing .cover-preview { opacity: 1; }
.cover:is(.is-preview-loading,.is-preview-unavailable)::after { content: "正在加载预览…"; position: absolute; inset: auto auto 9px 9px; padding: 3px 7px; border-radius: 5px; background: #0f0f0fe8; color: white; font-size: 12px; pointer-events: none; }
.cover.is-preview-unavailable::after { content: "预览暂不可用 · 点按观看"; }
.cover-play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; transform: translate(-50%, -50%); background: #171717e0; color: white; }
.cover:has(img:not([hidden])) .cover-play { opacity: 0; }
.cover:hover .cover-play { opacity: 1 !important; }
.duration { position: absolute; bottom: 9px; right: 9px; max-width: 75%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 2px 6px; border-radius: 5px; color: white; background: #0f0f0fe8; font-size: 12px; }
.card-caption { display: flex; align-items: flex-start; gap: 4px; padding: 12px 8px 13px 13px; }
.card-text { flex: 1; min-width: 0; }
.card h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; margin: 0; font-size: 15px; line-height: 1.38; }
.card h3 a:hover { color: var(--accent); }
.card p, .muted, .search-query { color: var(--muted); }
.card p { margin: 5px 0 0; font-size: 12px; }
.icon-button.save { color: var(--ink); border-radius: 50%; background: var(--tint); }
.empty { grid-column: 1 / -1; margin: 0; padding: 52px 20px; text-align: center; background: white; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); }
/* Pagination follows the list layout on both narrow and wide screens. */
.pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; margin-top: 28px; font-size: 13px; }
.page-count { white-space: nowrap; }
.page-links, .page-jump { display: flex; align-items: center; }
.page-links { flex-wrap: wrap; justify-content: center; }
.page-links > * { display: grid; place-items: center; min-width: 32px; min-height: 32px; padding-inline: 6px; border: 1px solid var(--line); background: #fff; }
.page-links > * + * { margin-inline-start: -1px; }
.page-links [aria-current="page"] { position: relative; background: #0f0f0f; color: white; border-color: #0f0f0f; }
.page-links a:hover { color: var(--accent); background: var(--tint); }
.page-links .page-arrow { background: transparent; border-color: transparent; font-size: 18px; }
.page-links [aria-disabled="true"] { color: #767676; }
.page-jump { gap: 7px; color: var(--muted); }
.pages :is(select, input, button) { min-height: 32px; border: 1px solid var(--line); border-radius: 3px; background: white; color: var(--ink); }
.pages :is(select, button) { padding: 3px 7px; }
.page-mobile-label { display: none; }
.page-jump input { width: 58px; padding-inline: 4px; text-align: center; }
@media (max-width: 820px) {
  .pages > :is(.page-count, [data-page-size]),
  .pages .page-links > :not(.page-arrow) { display: none; }
  .pages {
    display: grid;
    grid-template-columns: minmax(36px, 1fr) auto minmax(36px, 1fr);
    column-gap: 8px;
    padding-inline: 12px;
  }
  .pages .page-links { display: contents; }
  .pages .page-arrow {
    grid-row: 1;
    min-width: 36px;
    min-height: 36px;
    margin-inline-start: 0;
    border-color: var(--line);
    border-radius: 3px;
  }
  .pages .page-arrow[aria-label="上一页"] { grid-column: 1; justify-self: start; }
  .pages .page-arrow[aria-label="下一页"] { grid-column: 3; justify-self: end; }
  .pages .page-arrow,
  .pages .page-jump {
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
  }
  .pages .page-arrow { padding-inline: 10px; font-size: 14px; white-space: nowrap; }
  .pages .page-arrow[aria-disabled="true"] { display: none; }
  .pages .page-jump {
    grid-area: 1 / 2;
    gap: 0;
    overflow: hidden;
  }
  .pages .page-jump :is(input, button) {
    min-height: 38px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
  }
  .pages .page-jump input {
    width: 62px;
    padding-inline: 8px 2px;
    font-size: 16px;
    appearance: textfield;
  }
  .pages .page-jump input::-webkit-inner-spin-button { appearance: none; }
  .pages .page-jump button { padding-inline: 4px 9px; color: var(--muted); white-space: nowrap; }
  .pages .page-jump :is(input, button):focus-visible { outline-offset: -3px; outline-color: var(--accent); }
  .pages :is(.page-arrow-icon, .page-jump label, .page-jump-unit, .page-confirm-label) { display: none; }
  .pages .page-mobile-label { display: inline; }
}
@media (any-pointer: coarse) {
  .page-jump input { font-size: max(16px, 1em); }
}

.sidebar .footer { margin-top: auto; padding: 12px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.watch-grid { display: grid; grid-template-columns: minmax(0, 2.6fr) minmax(240px, 1fr); gap: 20px; align-items: start; }
@media (min-width: 821px) {
  .watch-page .main { padding: 12px 18px 24px; }
  .watch-page .watch-grid {
    grid-template-columns: minmax(0, 2.55fr) minmax(240px, 1fr);
    column-gap: 14px;
    /* At 16:9 and this column ratio, the player uses at most about 79% of the viewport height. */
    max-width: max(600px, calc(195.5svh + 14px));
    margin-inline: auto;
  }
}
/* Keep the source order player, episodes, and then video information. */
.watch-page .watch-grid {
  grid-template-areas: "player ." "info .";
  grid-template-rows: auto 1fr;
  row-gap: 14px;
}
.watch-player-group { grid-area: player; min-width: 0; }
@media (min-width: 821px) {
  .watch-page .watch-player-group {
    border-radius: 16px;
    box-shadow: 0 0 0 1px var(--line);
  }
  .watch-player-group .player-stage { border-radius: 16px 16px 0 0; }
  .watch-player-group .play-skip { border-radius: 0; background: #000; }
  .watch-player-group .episodes {
    border: 0;
    border-radius: 0 0 16px 16px;
    background: #000; color: #fff;
  }
  .watch-player-group .episodes .muted { color: #ccc; }
  .watch-player-group .episode-grid { scrollbar-width: thin; scrollbar-color: #707070 #000; }
}
@media (min-width: 821px) {
  .watch-page .watch-grid:has(.watch-comments) {
    grid-template-areas: "player ." "info ." "comments .";
    grid-template-rows: auto auto 1fr;
  }
}
@media (min-width: 821px) {
  .watch-page .watch-grid:has(.watch-related) { grid-template-areas: "player related" "info related"; }
  .watch-page .watch-grid:has(.watch-comments):has(.watch-related) {
    grid-template-areas: "player related" "info related" "comments related";
  }
}
.watch-related { display: block; grid-area: related; min-width: 0; }
.watch-related h2 {
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 12px;
  border-radius: 8px;
  background: #0f0f0f;
  color: #fff;
  font-size: 14px;
  line-height: 20px;
}
.watch-related-list { display: grid; }
.watch-related .card {
  display: grid; grid-template-columns: minmax(0, 56%) minmax(0, 1fr);
  align-items: start; gap: 9px; overflow: visible; border: 0; background: transparent;
}
.watch-related .card {
  border-radius: 10px;
  padding: 4px 6px;
}
.watch-related .card:focus-within { background: var(--tint); }
@media (hover: hover) {
  .watch-related .card > .card-hover-backdrop {
    inset: 0;
    border-radius: inherit;
  }
  .watch-related .card:is(:hover, :focus-within) > .card-hover-backdrop { opacity: 1; }
  @media (prefers-reduced-motion: no-preference) {
    .watch-related .card > .card-hover-backdrop {
      transform: scale(.94);
      transition: transform 180ms ease-out, opacity 180ms ease-out;
    }
    .watch-related .card:is(:hover, :focus-within) > .card-hover-backdrop { transform: scale(1); }
  }
}
.watch-related .card > .cover { border-radius: 8px; }
.watch-related .card-caption { padding: 0; }
.watch-related h3 { font-size: 14px; overflow-wrap: anywhere; }
.watch-related .card-caption .save { display: none; }
.watch-page .video-info { grid-area: info; min-width: 0; margin-top: 0; }
.player-stage, .detail-cover { border-radius: 16px; }
.detail-cover img { object-fit: contain; }
.player-stage, .player-frame { position: relative; overflow: hidden; background: #0f0f0f; color: white; }
.player-stage { aspect-ratio: 16 / 9; }
.player-frame { height: 100dvh; }
.player-stage iframe, .player-stage video, .player-frame iframe, .player-frame video { width: 100% !important; height: 100% !important; display: block; border: 0; }
.watch-player:has(.play-skip) .player-stage { border-radius: 16px 16px 0 0; }
.play-skip { display: flex; justify-content: space-between; gap: clamp(8px, 3vw, 32px); padding: 10px; background: #0f0f0f; border-radius: 0 0 16px 16px; }
.play-skip-group { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); flex: 1; border: 1px solid #f5f5f5; border-radius: 10px; }
.play-skip button { min-width: 0; min-height: 44px; padding: 0 2px; border: 0; background: transparent; color: #fff; font-size: clamp(12px, 1.4vw, 16px); white-space: nowrap; cursor: pointer; }
.play-skip button:first-child { border-radius: 9px 0 0 9px; }
.play-skip button:last-child { border-radius: 0 9px 9px 0; }
.play-skip button + button { border-inline-start: 1px solid #f5f5f5; }
.play-skip button:hover, .play-skip button:focus-visible { background: #303030; }
.player-note { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 18px; margin: 0; }
.panel { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.watch-comments { grid-area: comments; min-width: 0; padding: 0 14px 12px; }
.watch-comments.panel { padding: 0; border: 0; background: var(--tint); }
.comment-preview { display: grid; gap: 8px; width: 100%; padding: 12px 14px; text-align: start; border: 0; border-radius: inherit; background: transparent; }
.comment-preview-title { font-weight: 700; }
.comment-preview [data-comment-count] { color: var(--muted); font-weight: 400; margin-inline-start: 4px; }
.comment-preview-prompt { border-radius: 14px; background: #e7e7e7; padding: 5px 12px; color: var(--muted); font-size: 13px; }
.comment-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.watch-comments h2 .comment-title-mobile { margin: 0; font: inherit; color: inherit; }
.comment-panel-body .comment-compose [type="submit"] { background: #174d98; border-color: #174d98; color: #fff; }
.comment-title-desktop, .comment-sort, .comment-desktop-emoji { display: none; }
@media (min-width: 821px) {
  .watch-comments.panel { background: transparent; }
  .watch-comments .comment-preview, .comment-panel-head .comment-close, .watch-comments h2 .comment-title-mobile { display: none; }
  .watch-comments .comment-panel { border: 0; border-radius: 0; }
  .watch-comments .comment-panel-head { justify-content: flex-start; gap: 18px; padding: 0; border: 0; }
  .watch-comments .comment-panel-head h2 { font-size: 19px; }
  .watch-comments .comment-panel-head h2 span { margin: 0; font: inherit; color: inherit; }
  .comment-title-desktop { display: inline; }
  .comment-sort { display: block; position: relative; font-size: 14px; }
  .comment-sort summary { display: flex; align-items: center; gap: 9px; cursor: pointer; padding: 7px 5px; font-weight: 650; list-style: none; }
  .comment-sort summary::-webkit-details-marker { display: none; }
  .comment-sort-icon { width: 18px; height: 14px; background: linear-gradient(currentColor,currentColor) 0 0 / 18px 2px, linear-gradient(currentColor,currentColor) 0 6px / 12px 2px, linear-gradient(currentColor,currentColor) 0 12px / 6px 2px; background-repeat: no-repeat; }
  .comment-sort-options { position: absolute; z-index: 2; top: calc(100% + 4px); inset-inline-start: 0; width: 220px; padding: 6px 0; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); box-shadow: 0 5px 14px #0002; }
  .comment-sort-options button { display: block; width: 100%; padding: 10px 14px; text-align: start; border: 0; background: transparent; }
  .comment-sort-options button[aria-pressed="true"] { background: #dedede; }
  .comment-sort-options button:hover { background: #ececec; }
  .comment-sort-options small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
  .watch-comments .comment-panel-body { padding: 0; }
  .comment-panel-body .comment-compose textarea { min-height: 34px; height: 34px; padding: 6px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; resize: none; }
  .comment-panel-body .comment-compose textarea { scrollbar-width: none; }
  .comment-panel-body .comment-compose textarea::-webkit-scrollbar { display: none; }
  .comment-panel-body .comment-compose textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 1px var(--ink); }
  .comment-panel-body .comment-compose:not(.comment-inline-reply .comment-compose):has(.comment-cancel-compose[hidden]):has(textarea:placeholder-shown) .comment-actions { display: none; }
  .comment-inline-reply .comment-compose { grid-template-columns: 24px minmax(0, 1fr); padding: 4px 0 0; }
  .comment-inline-reply .comment-compose-avatar { width: 24px; height: 24px; font-size: 12px; }
  .comment-inline-reply [data-comment-cancel-reply] { border: 0; background: transparent; border-radius: 22px; }
  .comment-interactions [data-comment-reply][aria-expanded="true"] { background: var(--tint); }
  .comment-panel-body .comment-desktop-emoji { display: block; position: relative; margin-inline-end: auto; }
  .comment-desktop-emoji summary { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 23px; }
  .comment-desktop-emoji summary::-webkit-details-marker { display: none; }
  .comment-desktop-emoji summary:hover { background: var(--tint); }
  .comment-emoji-picker { position: absolute; z-index: 1; width: 320px; max-height: 280px; overflow-y: auto; overscroll-behavior: contain; padding: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 20px #0001; }
  .comment-emoji-picker h3 { margin: 6px 0; font-size: 13px; }
  .comment-emoji-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 3px; }
  .comment-emoji-grid button { min-height: 32px; border: 0; border-radius: 5px; padding: 0; background: transparent; font-size: 20px; }
  .comment-emoji-grid button:hover { background: var(--tint); }
  .comment-panel-body .comment-compose [type="submit"] { border-radius: 22px; background: var(--ink); border-color: var(--ink); }
  .comment-panel-body .comment-compose:has(textarea:placeholder-shown) [type="submit"] { background: var(--tint); border-color: var(--tint); color: var(--muted); }
  .comment-panel-body .comment-compose .comment-cancel-compose { border-radius: 22px; padding-inline: 12px; }
  .comment-panel-body .watch-comment { border-top: 0; padding-block: 14px; }
  .comment-panel-body .comment-meta { justify-content: flex-start; }
  .comment-panel-body .comment-replies { padding-inline-start: 10px; }

}
.comment-panel-head { flex: 0 0 auto; display: flex; justify-content: space-between; align-items: center; padding-inline: 14px 8px; border-bottom: 1px solid var(--line); }
.comment-close { font-size: 28px; line-height: 1; }
.comment-panel-body { padding: 0 14px 12px; min-height: 0; }
.comment-panel-body .comment-compose { border-top: 0; }
.watch-comments h2 { margin: 0; padding: 12px 0; font-size: 17px; }
.watch-comments h2 span { margin-inline-start: 5px; font-size: 13px; color: var(--muted); font-weight: 400; }
.comment-compose, .watch-comment { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.comment-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--tint); }
.comment-compose-avatar { background: #ede7f1; color: #563d66; font-weight: 700; }
.comment-fields textarea { display: block; width: 100%; min-height: 46px; resize: vertical; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 16px; color: inherit; }
.comment-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 7px; }
.comment-actions input { width: 90px; font-size: 16px; padding: 5px; border: 1px solid var(--line); border-radius: 6px; }
.comment-cancel-compose { background: transparent; border: 0; padding: 6px 8px; font-weight: 650; }
.comment-captcha { padding: 0; background: transparent; border: 0; }
.comment-captcha img { display: block; height: 32px; max-width: 100%; }
.comment-meta { display: flex; flex-wrap: wrap; gap: 2px 8px; justify-content: space-between; font-size: 13px; overflow-wrap: anywhere; }
.comment-meta time { color: var(--muted); }
.watch-comment p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-replies { margin-top: 8px; font-size: 13px; }
.comment-reply-target { color: #065fd4; }
@media (max-width: 820px) {
  .comment-replies [data-reply-depth]:not([data-reply-depth="1"]) { margin-inline-start: clamp(14px, 3vw, 36px); }
}
@media (min-width: 821px) {
  .comment-replies [data-reply-depth] { margin-inline-start: min(var(--reply-indent, 0px), 30%); }
}
.comment-replies summary { cursor: pointer; }
.comment-replies .watch-comment { grid-template-columns: 26px minmax(0, 1fr); margin-top: 8px; }
.comment-replies .comment-avatar { width: 26px; height: 26px; }
.comment-status { margin: 8px 0; font-size: 13px; }
.comment-interactions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.comment-interactions [data-comment-vote] { display: inline-flex; align-items: center; gap: 5px; }
.comment-interactions .vote-thumb { display: block; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.comment-interactions [data-comment-vote="down"] .vote-thumb { transform: rotate(180deg); }
.comment-interactions .comment-vote-label, .comment-interactions [data-vote-count="0"] { display: none; }
.comment-reply-icon { display: none; }
@media (max-width: 820px) {
  .comment-interactions button:is([data-comment-vote], [data-comment-reply]) {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; min-height: 40px; color: var(--muted);
  }
  .comment-interactions .comment-reply-icon {
    display: block; width: 17px; height: 17px; fill: none; stroke: currentColor;
    stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  }
  .comment-interactions .comment-reply-label,
  .comment-interactions [data-comment-vote="down"] [data-vote-count] { display: none; }
}
.comment-interactions button { border: 0; border-radius: 8px; background: transparent; padding: 6px 9px; font-size: 13px; cursor: pointer; }
.comment-interactions button:not([data-comment-vote]):is(:hover, [aria-pressed="true"]) { background: var(--tint); }
.comment-interactions [role="status"] { font-size: 13px; }
.comment-action-sheet, .comment-reply-sheet {
  background: var(--paper); color: var(--ink); border: 0; border-radius: 18px;
  box-shadow: 0 12px 36px #0003;
}
.comment-action-sheet::backdrop, .comment-reply-sheet::backdrop { background: #0007; }
.comment-action-sheet { position: fixed; inset: auto 0 max(12px, env(safe-area-inset-bottom)); margin: 0 auto; width: min(calc(100% - 20px), 480px); padding: 8px; }
.comment-action-sheet button { display: block; width: 100%; min-height: 46px; text-align: start; padding: 8px 12px; border: 0; border-radius: 8px; background: transparent; }
.comment-action-sheet button:hover { background: var(--tint); }
.comment-reply-sheet { width: min(82%, 420px); padding: 18px; }
.comment-reply-sheet .comment-compose { display: block; border: 0; padding: 0; }
.comment-reply-sheet .comment-avatar { display: none; }
.comment-reply-sheet textarea { min-height: 84px; resize: vertical; }
.comment-reply-sheet .comment-actions { margin-top: 14px; }
.comment-reply-sheet .comment-actions .pill { flex: 1 1 40%; justify-content: center; border-radius: 22px; }
.comment-reply-sheet [type="submit"] { background: var(--ink); color: var(--paper); }
.comment-more { cursor: pointer; }
.video-actions { display: flex; flex-shrink: 0; align-items: center; gap: 8px; }
[data-video-vote-status]:empty { display: none; }
[data-video-vote-status] { font-size: 12px; color: var(--muted); }
.video-share-dialog .dialog-head { margin-bottom: 12px; }
.video-share-link { display: flex; gap: 8px; }
.video-share-link input { flex: 1; min-width: 0; padding: 7px; border: 1px solid var(--line); border-radius: 7px; }
.video-actions > .icon-button, .video-votes { background: var(--tint); border-radius: 22px; }
.video-actions > .icon-button { display: inline-grid; }
.video-votes { display: inline-flex; align-items: center; overflow: hidden; }
.video-votes button { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 10px; border: 0; background: transparent; }
.video-votes button + button { border-inline-start: 1px solid var(--line); }
.video-actions > .icon-button:hover { background: #e3e3e3; }
@media (min-width: 821px) and (hover: hover) and (pointer: fine) {
  .video-votes button:not([aria-pressed="true"]):hover { background: #e3e3e3; }
  .comment-interactions [data-comment-vote]:not([aria-pressed="true"]):hover { background: var(--tint); }
}
@media (max-width: 820px), (hover: none), (pointer: coarse) {
  .video-votes [data-video-vote], .comment-interactions [data-comment-vote] {
    -webkit-tap-highlight-color: transparent;
  }
}
.video-actions svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.video-votes [aria-pressed="true"] svg { fill: currentColor; }
.video-votes [data-video-vote="down"] svg { transform: rotate(180deg); }
.watch-page .video-info { padding: 0; border: 0; background: transparent; }
.watch-page .video-info h1 { font-size: 23px; }
.video-description { display: block; margin-top: 8px; border-radius: 12px; background: #f4f4f4; }
.video-description summary { display: grid; gap: 3px; padding: 12px; cursor: pointer; list-style: none; }
.video-description summary::-webkit-details-marker { display: none; }
.video-description[open] summary { padding-bottom: 4px; }
.video-description-meta, .video-description-more { font-weight: 700; }
.video-description-meta span:not([data-play-hits-count]) { margin-inline-start: 6px; }
.video-description-preview { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; white-space: pre-line; overflow-wrap: anywhere; }
.video-description[open] :is(.video-description-preview,.video-description-more) { display: none; }
.video-description-full { padding: 0 12px 12px; }
.video-description-full .synopsis { margin: 0 0 18px; }
.video-description-full h2 { margin: 0; font-size: 18px; }
.video-description-full dl { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 9px 12px; }
.video-description-full dt { color: var(--muted); }
.video-description-full dd { margin: 0; overflow-wrap: anywhere; }
.video-description-sheet-head, .video-description-sheet-title, .video-description-full .video-description-stats { display: none; }
@media (max-width: 820px) {
  .video-description[open] .video-description-full {
    position: fixed; inset: var(--description-top, var(--header)) 0 var(--description-bottom, 0px);
    z-index: 4; display: flex; flex-direction: column; padding: 0;
    border-radius: 16px 16px 0 0; background: var(--paper);
  }
  .video-description-sheet-head { display: flex; align-items: center; justify-content: flex-end; flex: 0 0 auto; padding: 2px 10px; border-bottom: 1px solid var(--line); }
  .video-description-sheet-head, .comment-panel-head { touch-action: none; user-select: none; cursor: grab; }
  .video-description-sheet-head::before, .comment-panel-head::before { content: ""; position: absolute; top: 8px; left: 50%; width: 36px; height: 4px; border-radius: 6px; background: var(--line); transform: translateX(-50%); }
  .video-description-body { min-height: 0; overflow-y: auto; overscroll-behavior-y: none; padding: 10px 14px max(16px, env(safe-area-inset-bottom)); }
  .video-description-sheet-title { display: block; margin: 0; font-size: 20px; line-height: 1.35; font-weight: 750; }
  .video-description-full .video-description-stats { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 8px; text-align: center; }
  .video-description-stats div { display: flex; flex-direction: column-reverse; }
  .video-description-stats dd { font-weight: 750; font-size: 16px; }
  .video-description-full .synopsis { padding: 12px; border-radius: 10px; background: var(--tint); }
  .video-description-collapse { display: none; }
}
.video-info { margin-top: 14px; }
.video-info .section-head { margin-bottom: 0; align-items: center; }
.video-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; min-width: 0; }
.synopsis-toggle { margin-inline-start: 4px; padding: 3px 4px; border: 0; background: transparent; font-weight: 700; white-space: nowrap; color: var(--ink); }
.video-info p { overflow-wrap: anywhere; }
.synopsis { white-space: pre-line; overflow-wrap: anywhere; }
.library h2 { margin: 0; font-size: 20px; }
.source + .source { margin-top: 17px; }
.source h2 { margin: 12px 0 7px; font-size: 14px; }
.watch-page .episodes .source h2 {
  margin: 0 0 6px; font-size: 13px; line-height: 1.3;
}
.watch-page .episodes .source h2::after {
  content: "";
  display: block;
  height: 7px;
  margin-top: 2px;
  background: #f5f5f5;
  clip-path: polygon(
    0 6px, 17px 6px, 25px 0, 33px 6px, 100% 6px,
    100% 100%, 33px 100%, 25px 1.25px, 17px 100%, 0 100%
  );
}
.watch-page .episodes .source + .source { margin-top: 10px; }
.watch-page .episode-source-nav {
  display: flex; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain;
  padding: 4px 4px 10px; margin-bottom: 6px;
  background: linear-gradient(#f5f5f5, #f5f5f5) bottom / 100% 1px no-repeat;
  scrollbar-width: none;
}
.watch-page .episode-source-nav::-webkit-scrollbar { display: none; }
.watch-page .episode-source-nav a {
  flex: 0 0 auto; min-height: 32px; padding: 4px 8px;
  border: 0; background: #292929; color: #fff; font-size: 13px; white-space: nowrap;
}
.watch-page .episode-source-nav a[aria-current] { position: relative; }
.watch-page .episode-source-nav a[aria-current]::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 7px;
  background: #000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 7'%3E%3Cpath d='M0 6.5H1L9 .65 17 6.5H18' fill='none' stroke='%23f5f5f5'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  pointer-events: none;
}
.watch-page .episode-source-nav a:focus-visible { outline-color: #fff; }
.watch-page .episodes .episode-source-nav ~ .source { margin-top: 0; }
.watch-page .episode-source-nav ~ .source:not(.source-current),
.watch-page .episode-source-nav ~ .source > h2 { display: none; }
.episode-grid { display: flex; gap: 7px; flex-wrap: wrap; }
.episode-grid a { max-width: 100%; overflow-wrap: anywhere; }
.library { color: var(--ink); border: 1px solid var(--line); border-radius: 18px; padding: 20px; width: min(520px, calc(100% - 24px)); max-height: 80dvh; }
.library::backdrop, .scrim { background: #000000a0; }
.dialog-head, .library-item { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.library-item { border-top: 1px solid var(--line); padding: 10px 0; }
.library-item a { overflow-wrap: anywhere; }
.library-item button { flex-shrink: 0; }
#library-list { margin-top: 15px; }
.toast:empty { display: none; }
.toast { position: fixed; z-index: 9; right: 18px; bottom: 18px; padding: 10px 16px; background: #262626; color: white; border-radius: 9px; }
.password-form { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.password-form input { padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); }
.watch-page .episode-grid {
  flex-wrap: nowrap; gap: 5px; overflow-x: auto; overscroll-behavior-x: contain;
  padding: 4px;
}
.watch-page .episode-grid a:focus-visible { outline-color: #fff; }
.watch-page .episode-grid a { flex: 0 0 auto; max-width: none; white-space: nowrap; min-height: 32px; padding: 4px 8px; border: 0; background: #292929; color: #fff; font-size: 13px; line-height: 1.25; }
.watch-page .episode-grid a[aria-current] { background: #fff; color: #0f0f0f; }
@media (max-width: 1350px) { .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1060px) { .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (width > 820px) {
  .top { border-bottom: 0; }
  .sidebar { border-right: 0; }
  .mobile-sticky-header { position: static; padding-top: 0; }
  .mobile-sticky-header + .video-grid { margin-top: 0; }
  @media (hover: hover) {
    .category-header + .video-grid { margin-top: 12px; }
  }
}
@media (max-width: 820px) {
  :is(.channel-chips, .sub-chips) { scrollbar-width: none; }
  :is(.channel-chips, .sub-chips)::-webkit-scrollbar { display: none; }
  :root { --header: 64px; }
  body:not(.watch-page, :has(.category-header)) .top { position: relative; }
  .top, .category-header { transition: transform 160ms ease-out; }
  .feed-header-hidden:not(.nav-open, :has(.top-search-toggle[aria-expanded="true"], .top :focus-visible, .category-header :focus-visible)) .top { transform: translateY(-100%); }
  .feed-header-hidden:not(.nav-open, :has(.top-search-toggle[aria-expanded="true"], .top :focus-visible, .category-header :focus-visible)) .category-header { transform: translateY(calc(-100% - var(--header))); }
  .top { grid-template-columns: minmax(130px, auto) minmax(100px, 1fr) auto; gap: 12px; padding-inline: 12px; }
  .sidebar, .nav-collapsed .sidebar { display: none; }
  .nav-open .sidebar { display: flex; }
  .sidebar .nav-group :is(a, button) { padding-inline-start: 8px; }
  .sidebar .nav-group p { margin-inline-start: 8px; }
  .scrim { position: fixed; inset: var(--header) 0 0; z-index: 3; }
  .main { margin-left: 0; }
  .watch-grid { grid-template-columns: minmax(0, 1fr); }
  .episode-grid a { justify-content: center; min-width: 0; min-height: 44px; padding-inline: 4px; text-align: center; }
  .watch-page .top { background: #151515; color: #fff; border-bottom: 0; }
  .watch-page .top .top-save { background: #272727; color: #fff; border-color: #454545; }
  .watch-page .top .icon-button:hover { background: #272727; color: #fff; }
  .watch-page .search-history { color: var(--ink); }
  .watch-page .main { padding: 0 0 16px; }
  .watch-page .watch-grid {
    container-type: inline-size;
    --watch-player-height: clamp(0px, 56.25vw, calc(100svh - var(--header) - 160px));
    grid-template-areas: "player" "skip" "episodes" "info" "related";
    grid-template-rows: auto;
    row-gap: 0;
  }
  @supports (width: 1cqw) {
    .watch-page .watch-grid > * {
      --watch-player-height: clamp(0px, 56.25cqw, calc(100svh - var(--header) - 160px));
    }
  }
  .watch-page .watch-grid:has(.watch-comments) { grid-template-areas: "player" "skip" "episodes" "info" "comments" "related"; }
  .watch-page .watch-comments { margin: 10px 12px 0; border-radius: 12px; }
  .watch-page .watch-related {
    margin-block-start: calc(56px + env(safe-area-inset-bottom, 0px));
  }
  .watch-page .watch-related-header {
    position: sticky;
    top: calc(var(--header) + var(--watch-player-height));
    z-index: 1;
    padding: 10px 14px;
    background: var(--paper);
  }
  .watch-page .watch-related-header h2 { margin: 0; }
  .watch-page .watch-grid:has(.video-description[open]) .watch-related { visibility: hidden; }
  .watch-page .watch-related .card {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 0;
    border-radius: 0;
  }
  .watch-page .watch-related .card > .cover { border-radius: 0; }
  .watch-page .watch-related .card-caption { padding: 12px 14px 16px; }
  .watch-page .watch-related h3 { font-size: 15px; }
  .watch-comments:not([data-open]) .comment-panel { display: none; }
  .comment-panel {
    position: fixed; inset: var(--comment-panel-top, var(--header)) 0 var(--comment-panel-bottom, 0px); z-index: 4;
    display: flex; flex-direction: column; border-radius: 16px 16px 0 0;
    border-width: 1px 0 0;
  }
  .comment-panel-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior-y: none; padding-bottom: max(12px, env(safe-area-inset-bottom)); }

  .watch-page .watch-player-group, .watch-page .watch-player { display: contents; }
  .watch-page .watch-player .player-stage {
    grid-area: player; position: sticky; top: var(--header); z-index: 2; min-width: 0;
    border-radius: 0; height: var(--watch-player-height);
  }
  .watch-page .play-skip {
    grid-area: skip; gap: clamp(16px, 7vw, 28px);
    padding: 12px clamp(10px, 4vw, 16px); border-radius: 0; background: #000;
  }
  .watch-page .play-skip-group { min-width: 0; border-radius: 6px; }
  .watch-page .play-skip button { min-height: 30px; }
  .watch-page .play-skip button:first-child { border-radius: 5px 0 0 5px; }
  .watch-page .play-skip button:last-child { border-radius: 0 5px 5px 0; }
  .watch-page .video-info {
    position: relative; z-index: 1; margin-top: -12px;
    border: 0; border-radius: 14px 14px 0 0;
    padding: 20px 14px 10px; background: var(--paper);
  }
  .watch-page .video-info .section-head { flex-wrap: nowrap; gap: 8px; }
  .watch-page .video-title { display: block; flex: 1 1 0; }
  .watch-page .video-title h1 { font-size: 19px; line-height: 1.25; }
  .watch-page .video-title h1 a {
    display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .watch-page .video-actions { gap: 6px; }
  .watch-page .video-votes button { gap: 4px; padding-inline: 6px; }
  .video-description { font-size: 13px; }
  .watch-page .episodes {
    grid-area: episodes; min-width: 0; margin: 0; padding: 2px 10px 18px; border: 0; border-radius: 0;
    max-height: max(84px, 25svh); overflow-y: auto;
    background: #000; color: #fff;
  }
  .watch-page .episode-source-nav {
    padding-block-start: 0;
    margin-bottom: 3px;
  }
  .watch-page .episode-source-nav a { min-height: 24px; padding-block: 2px; }
  .watch-page .episodes .muted { margin: 0; color: #ccc; }
  .watch-page .episode-grid { scrollbar-width: none; }
  .watch-page .episode-grid::-webkit-scrollbar { display: none; }
}
@media (max-width: 520px) {
  :root { --header: 56px; }
  .top { height: var(--header); grid-template-columns: minmax(0, 1fr) auto auto; grid-template-rows: 44px; gap: 6px; padding: 6px 12px; border-bottom: 0; }
  .brand-group { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 8px; }
  .brand { justify-self: start; max-width: 100%; }
  .top-search-toggle { display: inline-grid; grid-area: 1 / 2; width: 44px; height: 44px; }
  :is(.top-search-toggle, .search > button) .magnify { width: 18px; height: 18px; margin: 0 3px 3px 0; }
  :is(.top-search-toggle, .search > button) .magnify::after { bottom: -3px; right: -5px; width: 8px; border-radius: 1px; }
  .top-save { grid-area: 1 / 3; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; background: var(--tint); }
  .top-save-label { display: none; }
  .search { display: none; position: absolute; inset: 100% 12px auto; box-shadow: 0 4px 12px #00000018; }
  .top:has(.top-search-toggle[aria-expanded="true"]) .search { display: flex; }
  .search input { height: 38px; font-size: 16px; }
  .category-header .chips { gap: 12px; padding-bottom: 6px; margin-bottom: 7px; }
  .category-header .chips a { height: 32px; min-width: 50px; flex-shrink: 0; justify-content: center; padding: 0 11px; border: 0; border-radius: 8px; font-size: 14px; }
  .main { padding-inline: 12px; padding-top: 16px; }
  .main:has(.category-header) { padding-top: 0; }
  .category-header .section-head { margin-bottom: 10px; }
  .category-header .section-head:has(+ .sub-chips) { margin-bottom: 6px; }
  .category-header .sub-chips { padding-bottom: 3px; margin-bottom: 3px; }
  .section-head:has(.search-query) h1 { flex-shrink: 0; }
  .search-query { min-width: 0; margin: 0; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
  .video-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 520px) and (hover: none) {
  .main .video-grid { margin-inline: -12px; }
  .main .category-header { margin-inline: -12px; padding-inline: 12px; }
  .video-grid .card { border: 0; border-radius: 0; }
  .video-grid .card > .cover { border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) { .cover img, .top, .category-header { transition: none; } }
.password-form output { flex-basis: 100%; text-align: center; }
.password-form [data-refresh] { padding: 0; overflow: hidden; }
.password-form [data-refresh] img { display: block; object-fit: contain; }

[data-comment-thread] { position: relative; }
.comment-thread-lines {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; fill: none; stroke: var(--line);
}

.comment-interactions [data-comment-vote][aria-pressed="true"] .comment-vote-outline {
  display: none;
}
.comment-interactions [data-comment-vote][aria-pressed="true"] .comment-vote-solid {
  display: inline;
}

.comment-report-menu { display: none; }
@media (min-width: 821px) {
  .comment-meta { position: relative; padding-inline-end: 36px; min-height: 20px; }
  .comment-report-menu { display: block; position: absolute; inset-block-start: -6px; inset-inline-end: 0; }
  .comment-report-menu summary {
    display: grid; place-items: center; width: 32px; height: 32px;
    list-style: none; border-radius: 50%; cursor: pointer;
  }
  .comment-report-menu summary::-webkit-details-marker { display: none; }
  .comment-report-menu summary svg { width: 18px; height: 18px; }
  .comment-report-menu summary:hover, .comment-report-menu button:hover { background: var(--tint); }
  .comment-report-options {
    position: absolute; z-index: 3; inset-block-start: calc(100% + 4px); inset-inline-end: 0;
    width: 116px; padding: 5px 0; border-radius: 12px;
    background: var(--paper); color: var(--ink); box-shadow: 0 6px 24px #0002;
  }
  .comment-report-menu button {
    display: flex; align-items: center; gap: 12px; width: 100%; min-height: 42px;
    padding: 0 17px; border: 0; border-radius: 0; background: transparent; cursor: pointer;
  }
  .comment-report-menu button svg { width: 20px; height: 20px; }
}

.comment-report-dialog {
  position: fixed; inset: 0; margin: auto; box-sizing: border-box;
  width: min(400px, calc(100% - 32px)); max-height: calc(100% - 32px);
  padding: 24px; border: 0; border-radius: 16px; overflow: auto;
  background: var(--paper); color: var(--ink); box-shadow: 0 12px 36px #0003;
}
.comment-report-dialog::backdrop { background: #0007; }
.comment-report-dialog h2 { margin: 0; font-size: 20px; }
.comment-report-dialog p { margin: 12px 0 20px; }
.comment-report-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.comment-report-dialog-actions .pill { border-radius: 999px; }
.comment-report-dialog .comment-report-confirm { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.top :is(.search > button, .top-search-toggle) .magnify {
  --search-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M11%202a9%209%200%20105.641%2016.01.966.966%200%2000.152.197l3.5%203.5a1%201%200%20101.414-1.414l-3.5-3.5a1%201%200%2000-.197-.153A8.96%208.96%200%200020%2011a9%209%200%2000-9-9Zm0%202a7%207%200%20110%2014%207%207%200%20010-14Z%22%2F%3E%3C%2Fsvg%3E");
  display: block;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: currentColor;
  -webkit-mask: var(--search-icon) center / contain no-repeat;
  mask: var(--search-icon) center / contain no-repeat;
}

.top :is(.search > button, .top-search-toggle) .magnify::before,
.top :is(.search > button, .top-search-toggle) .magnify::after {
  content: none;
}
@media (max-width: 820px) {
  html:has(body.watch-page .video-description[open]) {
    overflow-y: hidden;
    overscroll-behavior-y: none;
  }

  body.watch-page:has(.video-description[open]) {
    overflow: visible;
  }

  .watch-page .video-description[open] .video-description-body {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
  }

  .watch-page .watch-grid:has(.video-description[open]) .watch-related {
    visibility: hidden;
  }
}
@media (max-width: 820px) {
  .watch-page .video-description[open] .video-description-sheet-head {
    position: relative;
    z-index: 2;
    flex: 0 0 22px;
    min-height: 22px;
    padding: 0;
    border-bottom: 0;
    overflow: visible;
  }

  .watch-page .video-description[open] .video-description-sheet-head [data-description-close] {
    position: absolute;
    inset-block-start: 20px;
    inset-inline-end: 14px;
    display: inline-grid;
    place-items: center;
    box-sizing: border-box;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink, #0f0f0f);
    box-shadow: none;
    line-height: 1;
  }

  .watch-page .video-description[open] .video-description-body > :first-child {
    padding-inline-end: 44px;
  }

  .watch-page .video-description[open].description-scrolled [data-description-close] {
    background: var(--paper, #fff);
    box-shadow: 0 3px 10px rgb(0 0 0 / 16%);
  }
}