/* Approved V2 watch tray. Shared tokens, icons and card family. */
.watch-page button:focus-visible, .watch-page a:focus-visible, .watch-page textarea:focus-visible, .watch-page select:focus-visible, .watch-page summary:focus-visible { outline: 2px solid var(--accent-400); outline-offset: 4px; }
.watch-media > .player-shell { width: 100%; max-width: none; margin: 0; border: 0; padding: 0; box-shadow: none; border-radius: 6px; }
.watch-media > .player-shell::before { content: none; }
.watch-page .pl-queue { margin-top: 20px; }
.watch-page .playlist-button > .tray-button { width: 100%; }
.watch-page .pl-add-menu { inset-inline-start: auto; inset-inline-end: 0; }
.watch-page .player-link { min-width: 0; }
.watch-page .player-link > span:last-child { overflow-wrap: anywhere; }
.watch-page .osu-link { white-space: nowrap; }
.watch-page .osu-link .r3d-icon { --r3d-icon-size: 10px; }
.renderer-credit { margin: 10px 0 0; color: var(--ink-700); font: 400 10px/1.5 var(--font-mono); }
.renderer-credit a { color: var(--accent-400); }
.comment-status { margin: 8px 0 0; color: var(--ink-800); font: 400 12px/1.6 var(--font-body); }
.comment-status:empty, .copy-feedback:empty { display: none; }
.copy-control { position: relative; display: inline-flex; flex: none; }
.copy-feedback { position: absolute; z-index: 5; inset-inline-end: 0; bottom: calc(100% + 8px); padding: 6px 9px; border: 1px solid var(--ink-300); border-radius: 6px; background: var(--ink-100); color: var(--ink-900); box-shadow: 0 4px 12px #0003; font: 400 12px/1.5 var(--font-body); white-space: nowrap; pointer-events: none; }
.comment-length { margin-inline-end: auto; color: var(--ink-700); font: 400 10px/1.5 var(--font-mono); }
.comment-avatar, .player-avatar { position: relative; overflow: hidden; }
.comment-avatar img, .player-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.comment-like:disabled { opacity: .6; }
.watch-embed-dialog { width: min(500px, calc(100% - 32px)); color: var(--ink-900); background: var(--ink-100); border: 1px solid var(--ink-500); border-radius: var(--rad-md); padding: 28px; }
.watch-embed-dialog::backdrop { background: #000a; }
.watch-embed-dialog h2 { margin: 0; font: 900 30px/1.2 var(--font-display); text-transform: uppercase; }
.watch-embed-dialog .dialog-close { position: absolute; inset: 10px 10px auto auto; border: 0; background: none; color: var(--ink-700); font-size: 24px; }
.watch-embed-dialog textarea { display: block; width: 100%; min-height: 115px; resize: vertical; margin-block: 18px; background: var(--ink-0); border: 1px solid var(--ink-300); border-radius: 4px; color: var(--ink-900); padding: 12px; font: 400 11px/1.7 var(--font-mono); }
.watch-page { padding-block: 56px 48px; }
.watch-card { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 0; padding: 12px; border: 1px solid var(--ink-300); border-radius: var(--rad-md); background: var(--ink-100); }
.watch-media { min-width: 0; align-self: stretch; display: flex; align-items: center; justify-content: center; background: #000; border-radius: 6px; overflow: hidden; }
.watch-media video { display: block; width: 100%; aspect-ratio: 16/9; max-height: 100%; object-fit: contain; background: #000; }
.watch-tray { min-width: 0; padding: 10px 12px 0 24px; align-self: stretch; display: flex; flex-direction: column; }
.tray-divider { flex: 1; min-height: 32px; display: flex; align-items: center; }
.tray-divider::before { content: ''; width: 100%; height: 1px; background: var(--ink-300); }
.tray-tags { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; font: 600 10px/1.25 var(--font-mono); letter-spacing: .06em; }
.mode-tag { padding: 4px 6px; color: var(--ink-0); background: var(--ink-900); border-radius: 3px; }
.mod-tag { border: 1px solid var(--ink-500); border-radius: 3px; padding: 3px 6px; color: var(--ink-800); }
.tray-identity h1 { margin: 0 0 7px; font: 600 19px/1.4 var(--font-body); letter-spacing: -.035em; color: var(--ink-900); overflow-wrap: anywhere; }
.difficulty { color: var(--accent-400); font: 400 12px/1.5 var(--font-mono); }
.difficulty .r3d-icon { --r3d-icon-size: 11px; margin-inline-start: 4px; }
.player-row { display: flex; align-items: center; gap: 9px; margin-top: 14px; }
.player-link { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; }
.player-avatar { width: 28px; height: 28px; border: 1px solid var(--ink-300); border-radius: 50%; display: grid; place-items: center; color: var(--accent-400); font: 900 13px/1 var(--font-display); }
.osu-link { font: 400 10px/1 var(--font-mono); color: var(--ink-700); }
.release-meta { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 7px; color: var(--ink-700); font: 400 10px/1.5 var(--font-mono); white-space: nowrap; }
.tray-result { flex: none; }
.score-row { display: flex; align-items: flex-end; gap: 12px; }
.data-label { display: block; font: 400 9px/1.5 var(--font-mono); color: var(--ink-700); letter-spacing: .09em; }
.score-value { display: block; font: 600 27px/1.3 var(--font-mono); letter-spacing: -.06em; color: var(--ink-900); }
.result-grade { display: grid; place-items: center; width: 29px; height: 32px; margin-bottom: 2px; background: var(--result-grade,var(--grade-a)); color: #0c200d; border-radius: 4px; font: 900 27px/1 var(--font-display); }
dl { margin: 0; }
.result-numbers { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 12px; }
.result-numbers dt { color: var(--ink-700); font: 400 10px/1.5 var(--font-mono); }
.result-numbers dd { margin: 3px 0 0; font: 600 16px/1.3 var(--font-mono); color: var(--ink-900); }
.result-numbers dd span { font-size: 12px; color: var(--ink-700); margin-left: 2px; }
.hit-counts { display: grid; grid-template-columns: repeat(var(--hit-columns,4), minmax(0, 1fr)); gap: 8px; margin-top: 15px; }
.hit-counts dt { font: 400 9px/1.5 var(--font-mono); color: var(--ink-700); }
.hit-counts dd { margin: 3px 0 0; font: 400 12px/1.5 var(--font-mono); color: var(--ink-900); }
.hit-counts .miss-count dd { color: var(--danger); }
.tray-actions { padding-bottom: 12px; flex: none; }
.action-row { display: flex; align-items: center; gap: 7px; }
.action-row + .action-row { margin-top: 8px; }
.tray-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 8px 11px; border: 1px solid var(--ink-300); border-radius: 6px; background: var(--ink-200); color: var(--ink-900); font: 400 11px/1.4 var(--font-mono); white-space: nowrap; text-decoration: none; }
.tray-button .r3d-icon { --r3d-icon-size: 17px; }
.tray-button:not(:disabled):hover { border-color: var(--accent-400); color: var(--accent-400); }
.tray-button:not(:disabled):active { background: var(--ink-300); }
.like-button { min-width: 57px; }
.like-button[aria-pressed=true] { color: var(--accent-400); border-color: var(--accent-400); }
.playlist-button { flex: 1; }
.icon-button { width: 39px; padding-inline: 8px; }
.download-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) 39px; align-items: stretch; }
.download-actions > .tray-button { min-width: 0; padding-inline: 8px; gap: 6px; }
.download-actions > .tray-button .r3d-icon { --r3d-icon-size: 15px; }
.tray-button:disabled { opacity: .6; }
.more-control { position: relative; display: flex; }
.more-button { width: 39px; padding: 0 8px 7px; font: 600 22px/1 var(--font-body); }
.more-menu { position: absolute; z-index: 5; inset-inline-end: 0; bottom: calc(100% + 8px); width: 292px; max-width: calc(100vw - 48px); max-height: calc(100vh - 48px); overflow-y: auto; padding: 6px; background: var(--ink-100); border: 1px solid var(--ink-500); border-radius: 8px; box-shadow: 0 8px 24px #0003; }
.more-item { display: flex; width: 100%; align-items: center; gap: 10px; min-height: 40px; padding: 10px; border: 0; border-radius: 4px; background: transparent; color: var(--ink-900); font: 400 12px/1.5 var(--font-body); text-align: start; }
.more-item .r3d-icon { --r3d-icon-size: 17px; }
.more-item:not(:disabled):hover { background: var(--ink-200); color: var(--accent-400); }
.more-item:disabled { color: var(--ink-700); }
.render-info-section { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--ink-300); }
.render-details summary { cursor: pointer; justify-content: space-between; list-style: none; }
.render-details summary::-webkit-details-marker { display: none; }
.detail-chevron { font-size: 15px; }
.render-details[open] .detail-chevron { transform: rotate(45deg); }
.render-details dl { padding: 6px 10px 12px; }
.render-details dl > div { display: flex; justify-content: space-between; gap: 10px; font: 400 10px/1.7 var(--font-mono); }
.render-details dt { color: var(--ink-700); }
.render-details dd { margin: 0; color: var(--ink-900); }
.manage-panel { margin-top: 6px; padding: 14px 10px 10px; border-top: 1px solid var(--ink-300); }
.manage-label { display: block; margin-bottom: 7px; color: var(--ink-700); font: 400 10px/1.5 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.manage-panel select { width: 100%; padding: 8px; background: var(--ink-0); color: var(--ink-900); border: 1px solid var(--ink-300); border-radius: 4px; font: 400 11px/1.5 var(--font-mono); }
.manage-note { margin: 12px 0; color: var(--ink-700); font: 400 11px/1.6 var(--font-mono); }
.delete-button { width: 100%; min-height: 38px; margin-top: 12px; background: transparent; border: 1px solid var(--danger); border-radius: 5px; color: var(--danger); font: 400 11px/1.5 var(--font-mono); }
.watch-comments { margin-top: 36px; width: 100%; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-heading h2 { margin: 0; font: 900 27px/1.1 var(--font-display); text-transform: uppercase; color: var(--ink-900); }
.section-heading h2 > span { font: 400 12px/1 var(--font-mono); color: var(--ink-700); vertical-align: middle; margin-left: 8px; }
.section-note { color: var(--ink-700); font: 400 9px/1.5 var(--font-mono); letter-spacing: .07em; }
.comment-compose { display: flex; gap: 14px; align-items: flex-start; padding: 17px 0; border-block: 1px solid var(--ink-300); }
.comment-avatar { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border: 1px solid var(--ink-300); border-radius: 50%; color: var(--accent-400); font: 700 20px/1 var(--font-display); }
.comment-entry { flex: 1; min-width: 0; }
.comment-entry textarea, .reply-form textarea { display: block; width: 100%; min-height: 76px; padding: 10px 12px; resize: vertical; border: 1px solid var(--ink-300); border-radius: 6px; background: var(--ink-100); color: var(--ink-900); font: 400 13px/1.7 var(--font-body); }
.comment-entry textarea::placeholder, .reply-form textarea::placeholder { color: var(--ink-700); opacity: 1; }
.comment-form-actions { display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin-top: 8px; }
.comment-form-actions .tray-button { min-width: 70px; }
.sample-comment { display: flex; align-items: flex-start; gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--ink-300); }
.sample-comment .comment-avatar { flex: none; width: 36px; height: 36px; color: var(--accent-400); }
.sample-comment-body { min-width: 0; flex: 1; }
.comment-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 10px; }
.comment-author-line { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 10px; min-height: 32px; }
.comment-author { color: var(--ink-900); font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.comment-role { padding: 2px 5px; border: 1px solid currentColor; border-radius: 3px; color: var(--accent-400); font: 500 9px/1.4 var(--font-mono); }
.comment-age { color: var(--ink-700); font: 400 10px/1.5 var(--font-mono); white-space: nowrap; }
.comment-text { max-width: 72ch; margin: 8px 0 4px; color: var(--ink-800); font: 400 13px/1.7 var(--font-body); white-space: pre-line; overflow-wrap: anywhere; }
.comment-actions { display: flex; align-items: center; gap: 12px; }
.comment-actions button, .comment-cancel { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 6px; border: 0; border-radius: 4px; background: transparent; color: var(--ink-700); font: 400 11px/1.5 var(--font-mono); }
.comment-actions button:first-child { margin-inline-start: -6px; }
.comment-actions .r3d-icon { --r3d-icon-size: 16px; }
.comment-actions button:hover, .comment-cancel:hover { background: var(--ink-200); color: var(--ink-900); }
.comment-like[aria-pressed=true] { color: var(--accent-400); }
.comment-overflow { position: relative; }
.comment-more { display: grid; place-items: center; width: 32px; height: 32px; padding: 0 0 6px; border: 0; border-radius: 4px; background: transparent; color: var(--ink-700); font: 600 22px/1 var(--font-body); }
.comment-more:hover, .comment-more[aria-expanded=true] { background: var(--ink-200); color: var(--ink-900); }
.comment-menu { position: absolute; z-index: 6; inset-inline-end: 0; top: calc(100% + 4px); width: 148px; padding: 4px; border: 1px solid var(--ink-500); border-radius: 6px; background: var(--ink-100); box-shadow: 0 8px 24px #0003; }
.comment-menu button { display: block; width: 100%; min-height: 40px; padding: 9px 12px; border: 0; border-radius: 3px; background: transparent; color: var(--ink-900); text-align: start; font: 400 12px/1.5 var(--font-body); }
.comment-menu button:hover { background: var(--ink-200); }
.comment-menu .comment-delete { color: var(--danger); }
.comment-replies:not(:empty) { margin-top: 16px; padding-inline-start: 16px; border-inline-start: 1px solid var(--ink-300); }
.comment-reply { padding: 0; border: 0; }
.comment-reply + .comment-reply { margin-top: 18px; }
.comment-reply .comment-avatar { width: 28px; height: 28px; font-size: 16px; }
.reply-form { margin-top: 14px; }
.reply-label { display: block; margin-bottom: 7px; color: var(--ink-700); font: 400 11px/1.5 var(--font-body); }
@media (max-width: 480px) { .sample-comment { gap: 10px; } .sample-comment .comment-avatar { width: 30px; height: 30px; font-size: 17px; } .comment-reply .comment-avatar { width: 24px; height: 24px; font-size: 15px; } .comment-replies:not(:empty) { padding-inline-start: 10px; } .comment-actions button, .comment-more, .comment-cancel { min-height: 44px; } .comment-more { width: 36px; } .comment-menu button { min-height: 44px; } .comment-entry textarea, .reply-form textarea { font-size: 16px; } }
.related-section { margin-top: 44px; }
.related-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.study-note { margin-top: 32px; color: var(--ink-700); font: 400 10px/1.6 var(--font-mono); }
@media (max-width: 1050px) { .watch-card { grid-template-columns: minmax(0, 1fr) 310px; } .watch-tray { padding-inline: 18px 6px; } .tray-identity h1 { font-size: 17px; } .watch-comments { max-width: 100%; } }
@media (max-width: 1100px) { .watch-card { grid-template-columns: minmax(0, 1fr); gap: 0; } .watch-tray { padding: 22px 12px 3px; } .watch-media { align-self: start; } .tray-identity h1 { font-size: 21px; } .result-numbers { gap: 48px; } .hit-counts { max-width: 360px; } .score-row { max-width: 360px; } .watch-comments { max-width: 100%; } .related-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .watch-page { padding-block-end: 32px; } .watch-card { padding: 7px; } .watch-tray { padding: 19px 12px 2px; } .tray-identity h1 { font-size: 20px; } .tray-button { min-height: 44px; } .watch-comments { margin-top: 30px; } .section-note { font-size: 8px; } .watch-comments .section-note { display: none; } .related-section { margin: 34px 7px 0; } .related-cards { display: flex; gap: 12px; overflow-x: auto; padding: 3px 3px 12px; margin-inline: -3px; scroll-snap-type: x proximity; } html[data-v2-icons] .related-cards .video-card { flex: 0 0 80%; scroll-snap-align: start; } .section-heading h2 { font-size: 25px; } .study-note { margin-inline: 7px; } }
