.browse .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.browse .card { font: inherit; color: inherit; text-decoration: none; text-align: left; padding: 0; cursor: pointer; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; transition: transform .15s, border-color .15s; }
.browse .card:hover { border-color: var(--p5); transform: translateY(-2px); }
.browse .poster { width: 100%; aspect-ratio: 4 / 5; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; }
.browse .poster.has-img { position: relative; padding: 0; background: var(--line); }
.browse :is(.poster, .browse .ship-placeholder, .browse .ship-cover-text).c0 { background: linear-gradient(160deg, #fde3d9, #f6b5a3); }
.browse :is(.poster, .browse .ship-placeholder, .browse .ship-cover-text).c1 { background: linear-gradient(160deg, #feecdc, #fad1ad); }
.browse :is(.poster, .browse .ship-placeholder, .browse .ship-cover-text).c2 { background: linear-gradient(160deg, #fbe5f0, #efb8d6); }
.browse :is(.poster, .browse .ship-placeholder, .browse .ship-cover-text).c3 { background: linear-gradient(160deg, #f5e4ef, #d9a3c4); }
.browse .poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.browse .poster .pt { font-family: var(--display); font-size: 1.2rem; line-height: 1.15; }
.browse .poster .py { font-size: .75rem; letter-spacing: .12em; opacity: .7; }
.browse .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.browse .meta { display: flex; justify-content: space-between; gap: 8px; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.browse .meta .type { color: var(--accent); font-weight: 700; }
.browse .card h2 { font-family: var(--display); font-weight: 400; font-size: 1.2rem; line-height: 1.2; margin: 0; }
.browse .couple { font-size: .88rem; color: var(--muted); margin: 0; }
.browse .couple b { color: var(--ink); font-weight: 600; }
.browse .badge { align-self: flex-start; font-size: .68rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; color: #7a5a6c; background: #f3eef1; border: 1px dashed var(--p5); }
.browse .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.browse .tag { font-size: .72rem; font-weight: 500; padding: 3px 8px; border-radius: 4px; background: var(--peach-soft); }
.browse .tag.tw { background: #fff4e0; color: #8a5a12; border: 1px solid #f0d3a0; }
.browse .more { font-size: .78rem; color: var(--accent); }
.browse .controls { display: grid; grid-template-columns: 1fr repeat(4, auto); gap: 10px; padding: 16px 0; border-top: 1px solid var(--line); }
.browse .pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 32px; }
.browse .pager .chip[aria-current="page"] { background: #fbeaf3; border-color: var(--accent); color: var(--accent); font-weight: 600; }
.browse .pager .gap { color: var(--muted); padding: 0 4px; }
@media (max-width: 820px) {
  .browse .controls { grid-template-columns: 1fr 1fr; }
  .browse .controls .search { grid-column: 1 / -1; }
}
.browse .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.browse .chip { font: inherit; font-size: .88rem; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; cursor: pointer; transition: border-color .15s, background .15s; }
.browse .chip:hover { border-color: var(--p5); }
.browse .chip:is([aria-pressed="true"], .browse .on) { background: #fbeaf3; border-color: var(--accent); color: var(--accent); font-weight: 600; }
.browse #hide .chip:is([aria-pressed="true"], .browse .on), .browse #chips-hide .chip.on { background: #fff4e0; border-color: #e6b866; color: #8a5a12; text-decoration: line-through; }
.browse .sheet .meta, .browse .sheet h2 { padding-right: 40px; }
.browse header.page-head { display: block; padding: 20px 0 8px; }
.browse .page-head h1 { font-size: clamp(2rem, 5vw, 3rem); }
.browse a.chip { text-decoration: none; display: inline-block; }
.browse a.chip span { color: var(--muted); }
.browse .featured-poster .poster { padding: 10px; }
.browse .featured-poster .pt { font-size: 1rem; }
.browse .featured .meta { display: block; }
.browse .featured .tag { background: var(--surface); }
.browse .tile .poster { border-radius: 10px; overflow: hidden; padding: 10px; transition: transform .15s; }
.browse .tile .pt { font-size: 1rem; }
.browse .tile:hover .poster { transform: translateY(-2px); }
.browse .sheet .tags { margin-bottom: 4px; }
@media (max-width: 620px) {
  .browse .sheet-poster .pt, .browse .sheet-poster .py { display: none; }
}
.browse .surprise .chip:has(input:checked) { background: #fff4e0; border-color: #e6b866; color: #8a5a12; text-decoration: line-through; }
:root[data-theme="dark"] .browse .card, :root[data-theme="dark"] .browse .search, :root[data-theme="dark"] .browse select, :root[data-theme="dark"] .browse .chip, :root[data-theme="dark"] .browse .clear, :root[data-theme="dark"] .browse .reveal, :root[data-theme="dark"] .browse .sheet { background: var(--surface); }
:root[data-theme="dark"] .browse .chip:is([aria-pressed="true"], .browse .on), :root[data-theme="dark"] .browse .pager .chip[aria-current="page"], :root[data-theme="dark"] .browse .clear:hover, :root[data-theme="dark"] .browse .reveal:hover, :root[data-theme="dark"] .browse .spoilers:not(.open) { background: var(--soft); }
:root[data-theme="dark"] .browse .poster { color: #3a2433; }
:root[data-theme="dark"] .browse .badge { background: #2f242b; color: #d8bfcd; }
:root[data-theme="dark"] .browse .tag.tw, :root[data-theme="dark"] .browse #hide .chip:is([aria-pressed="true"], .browse .on), .browse #chips-hide .chip.on { background: #3a2d17; color: #f2c879; border-color: #6b5326; }
:root[data-theme="dark"] .browse .surprise .chip:has(input:checked) { background: #3a2d17; color: #f2c879; border-color: #6b5326; }
.browse a.tile, .browse a.ship-card, .browse a.chip, .browse a.clear, .browse a.reveal, .browse a.send { text-decoration: none; }
.browse .surprise .chip { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.browse .surprise .chip input { margin: 0; accent-color: #8a5a12; }
.js .browse .controls .go { display: none; }
.browse .controls .go { font: inherit; font-weight: 600; color: #fff; background: var(--accent); border: 0; border-radius: 10px; padding: 0 16px; cursor: pointer; }
.browse .title-body .meta a, .browse .title-body dd a { color: inherit; text-decoration: none; }
.browse .title-body .meta a:hover, .browse .title-body dd a:hover { text-decoration: underline; }
.browse a.tag { text-decoration: none; color: inherit; }
.browse a.tag:hover { filter: brightness(.95); outline: 1px solid currentColor; }
@media (max-width: 560px) {
  .browse .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .browse .grid .poster { padding: 10px; }
  .browse .grid .poster .pt { font-size: 1rem; }
  .browse .grid .body { padding: 10px 10px 12px; gap: 4px; }
  .browse .grid .meta { flex-direction: column; gap: 2px; font-size: .62rem; }
  .browse .grid .card h2 { font-size: 1rem; }
  .browse .grid .couple { font-size: .78rem; }
  .browse .grid .tags .tag { font-size: .66rem; padding: 2px 6px; }
  .browse .grid .badge { font-size: .62rem; }
}
.browse .more { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; background: #fff; }
.browse .more summary { cursor: pointer; padding: 11px 0; font-weight: 600; font-size: .9rem; list-style: none; display: flex; align-items: center; gap: 8px; }
.browse .more summary::-webkit-details-marker { display: none; }
.browse .more summary::before { content: '+'; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--peach-soft, #fdeee8); color: var(--accent); font-weight: 700; }
.browse .more[open] summary::before { content: '−'; }
.browse .more .count-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.browse .more .hint { margin: 4px 0 12px; font-size: .78rem; color: var(--muted); }
.browse .spoiler-mark { display: inline-block; margin-left: 4px; font-size: .62rem; padding: 1px 6px; border-radius: 999px; background: #fff4e0; color: #8a5a12; letter-spacing: .04em; }
:root[data-theme="dark"] .browse .more { background: var(--surface); }
:root[data-theme="dark"] .browse .spoiler-mark { background: #3a2d17; color: #f2c879; }
.browse .with-role > .card { height: 100%; }
.browse .people-hint { margin: 0 0 16px; padding: 10px 14px; border-radius: 12px; background: var(--peach-soft); font-size: .9rem; }
.browse .people-hint a { color: var(--accent); text-decoration: none; }
.browse .people-hint a:hover { text-decoration: underline; }
.browse .poster { position: relative; }
.browse .age-badge { position: absolute; right: 8px; bottom: 8px; z-index: 1; min-width: 26px; height: 26px; padding: 0 5px; border-radius: 6px; display: inline-grid; place-items: center; font: 800 .8rem/1 Figtree, system-ui, sans-serif; color: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); letter-spacing: 0; }
.browse .age-badge.inline { position: static; box-shadow: none; vertical-align: middle; }
.browse .imdb, .browse .community { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.browse .imdb i, .browse .community i { font-style: normal; color: #e0a800; }
.browse .imdb .out-of, .browse .community .out-of { font-size: .78em; font-weight: 600; opacity: .7; margin-left: 1px; }
.browse .card .meta .imdb { margin-right: auto; letter-spacing: 0; text-transform: none; font-size: .8rem; }
.browse .star-1 { --star: #d52d00; }
.browse .star-2 { --star: #ef7627; }
.browse .star-3 { --star: #ff9a56; }
.browse .star-4 { --star: #d162a4; }
.browse .star-5 { --star: #b55690; }
.browse .star-6 { --star: #a30262; }
:root[data-theme="dark"] .browse .star-6 { --star: #e0479a; }
.browse .imdb[class*="star-"] i, .browse .community[class*="star-"] i { color: var(--star); }
.browse .tag.rep { border: 1.5px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(90deg, #d52d00, #ff9a56, #d162a4, #a30262) border-box; color: var(--ink); text-decoration: none; }
.browse .my-mark { position: absolute; top: 8px; left: 8px; z-index: 1; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: #fff; background: var(--accent); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.browse .my-mark[data-state="seen"] { background: #0a8f3c; }
.browse .grid-end, .browse .grid-fill { grid-column: 1 / -1; }
@supports (width: calc(mod(5, 3) * 1px)) {
  .browse .grid-end, .browse .grid-fill { grid-column: span calc(var(--cols) - mod(var(--n, 0), var(--cols))); }
}
.browse .grid-end { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; min-height: 110px; padding: 20px 24px; border: 2px dashed color-mix(in srgb, var(--p5) 55%, var(--line)); border-radius: 12px; list-style: none; }
.browse .grid-end p { margin: 0; color: var(--muted); max-width: 42ch; }
.browse .grid-end b { display: block; color: var(--ink); font: 400 1.2rem var(--display); margin-bottom: 2px; }
.browse .grid-end .send { flex: none; text-decoration: none; }
@media (max-width: 560px) {
  .browse .grid-end { padding: 16px; min-height: 0; }
}
.browse .community i { font-size: .95em; }
.browse .community.big { font-size: 1.5rem; font-family: var(--display); font-weight: 400; gap: 6px; }
.browse .card .meta .community { margin-left: -4px; }
.browse .series-tag { margin: -2px 0 4px; font-size: .78rem; font-weight: 700; color: var(--accent); letter-spacing: .02em; }
.browse .dated > .card { flex: 1; }
.browse .empty.small { padding: 16px 0; text-align: left; }
.browse .more-chips > summary .count-n { background: var(--accent); color: #fff; border-radius: 999px; font-size: .72rem; padding: 1px 7px; }
@media (max-width: 620px) {
  .browse .sheet-top .sheet-info > .meta, .browse .sheet-top .sheet-info > h1, .browse .sheet-top .sheet-info > h2, .browse .sheet-top .sheet-info > .orig { grid-column: 2; }
  .browse .sheet-top .sheet-info > :not(.meta):not(h1):not(h2):not(.orig) { grid-column: 1 / -1; }
  .browse .sheet-top .sheet-info > .meta { flex-wrap: wrap; gap: 2px 8px; }
}
.browse .chips:not(#hide, .browse #focus) .chip.on:not(.all)::before, .browse .legend .chip.on::before { content: "✓ "; }
.browse .chip.out { background: #fdecec; border-color: #e3a1a1; color: #a23434; text-decoration: line-through; font-weight: 600; }
.browse .chip.small { font-size: .78rem; padding: 3px 10px; }
.browse .legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 12px; }
.browse .legend .chip { cursor: default; }
.browse .match-mode { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-size: .8rem; margin-left: 4px; }
.browse .match-mode a { padding: 5px 11px; text-decoration: none; color: var(--muted); }
.browse .match-mode a + a { border-left: 1px solid var(--line); }
.browse .match-mode a.on { background: #fbeaf3; color: var(--accent); font-weight: 600; }
.browse .picked .chip { text-decoration: none; }
.browse .years { display: flex; align-items: center; gap: 6px; }
.browse .years input { width: 100%; min-width: 0; font: inherit; font-size: 1rem; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
:root[data-theme="dark"] .browse .chip.out { background: #3a1f22; color: #f0a3a3; border-color: #6b3434; }
:root[data-theme="dark"] .browse .match-mode a.on { background: var(--soft); }
:root[data-theme="dark"] .browse .years input { background: var(--surface); }
.browse .chip.check { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.browse .chip.check input { accent-color: var(--accent); margin: 0; }
.browse .chip.check:has(input:checked) { background: #fbeaf3; border-color: var(--accent); color: var(--accent); }
:root[data-theme="dark"] .browse .chip.check:has(input:checked) { background: var(--soft); }
.browse .avatar.small { width: 34px; height: 34px; font-size: 1rem; }
.browse .page-head.profile-head { display: flex; gap: 22px; align-items: center; justify-content: flex-start; flex-wrap: wrap; }
.browse .avatar.couple { overflow: hidden; padding: 0; background: #f3e6ee; }
.browse .avatar.couple img { width: 100%; height: 100%; object-fit: cover; display: block; }
.browse .account-link .avatar.couple img { border-radius: 50%; }
.browse .profile-actions .chip { text-decoration: none; }
.browse .badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--peach-soft); font-size: .82rem; font-weight: 600; cursor: default; }
.browse .badge.locked { background: none; border: 1px dashed var(--line); color: var(--muted); filter: grayscale(1); opacity: .6; }
.browse .rewatch .chip { font-size: .8rem; }
.browse .badge-toast.out { opacity: 0; transform: translateY(10px); }
.browse .share-dots i.on { background: var(--accent); }
.browse .only-head .only-tagline { font-family: var(--display); font-size: clamp(1.15rem, 2.6vw, 1.5rem); line-height: 1.35; max-width: 34ch; margin: 6px 0 10px; color: var(--accent); }
.browse-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; }
.browse .side-filters { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; scrollbar-width: thin; border: 1px solid var(--line); border-radius: 16px; padding: 6px 16px 14px; background: #fff; }
.browse .side-head { display: none; }
.browse .fgroup { border-bottom: 1px solid var(--line); }
.browse .fgroup > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 12px 0; font-weight: 600; font-size: .92rem; }
.browse .fgroup > summary::-webkit-details-marker { display: none; }
.browse .fgroup > summary::after { content: '+'; margin-left: auto; color: var(--accent); font-weight: 700; font-size: 1.05rem; }
.browse .fgroup[open] > summary::after { content: '−'; }
.browse .fgroup .count-n, .browse .filters-btn .count-n { background: var(--accent); color: #fff; border-radius: 999px; font-size: .72rem; padding: 1px 7px; font-weight: 700; }
.browse .fbody { padding: 0 0 14px; display: grid; gap: 10px; }
.browse .fbody .chips { gap: 6px; }
.browse .fbody .chip { font-size: .82rem; padding: 5px 11px; }
.browse .fbody .hint { margin: 0; }
.browse .fbody .sublabel { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.browse .fbody .field { display: grid; gap: 4px; font-size: .78rem; font-weight: 600; color: var(--muted); }
.browse .fbody .field select, .browse .fbody .field input { font-weight: 400; font-size: .92rem; color: var(--ink); min-width: 0; padding: 8px 10px; }
.browse .fbody .years { display: flex; align-items: center; gap: 6px; }
.browse .fbody .years input { width: 100%; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.browse .side-filters .legend { margin: 12px 0 0; font-size: .74rem; line-height: 1.9; }
.browse .side-foot { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.browse .btn-show { display: none; }
.browse-main .controls { grid-template-columns: 1fr auto; padding: 0 0 12px; border-top: 0; }
.browse-main .controls select { min-width: 170px; }
.browse .filters-btn { display: none; }
.browse .quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.browse .quick .chip { font-size: .84rem; }
.browse .quick .pick-only { color: var(--accent); border-color: var(--p4); font-weight: 600; }
.browse .active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 0 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); font-size: .85rem; color: var(--muted); min-height: 34px; }
.browse .active .n { margin-right: 4px; }
.browse .active .n b { color: var(--ink); }
.browse .active .clear { padding: 4px 12px; }
:root[data-theme="dark"] .browse .side-filters { background: var(--surface); }
@media (max-width: 900px) {
  .browse-layout { grid-template-columns: minmax(0, 1fr); }
  .browse-main .controls { grid-template-columns: 1fr auto auto; }
  .browse-main .controls .search { grid-column: 1 / -1; }
  .browse-main .controls select { min-width: 0; }
  .browse .filters-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-weight: 600; color: var(--accent); background: #fff; border: 1px solid var(--p4); border-radius: 10px; padding: 0 14px; cursor: pointer; }
  .browse .side-filters { display: none; }
  .filters-open .browse .side-filters { display: block; position: fixed; inset: 0; z-index: 60; max-height: none; border-radius: 0; border: 0; padding: 0 18px 90px; overflow-y: auto; }
  .filters-open body { overflow: hidden; }
  .browse .side-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: inherit; padding: 14px 0; border-bottom: 1px solid var(--line); z-index: 1; font-size: 1.1rem; }
  .browse .side-close { font-size: 1.2rem; }
  .browse .side-foot { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 18px; background: inherit; border-top: 1px solid var(--line); }
  .filters-open .browse .side-foot { background: var(--bg); }
  .browse .btn-show { display: block; flex: 1; font: inherit; font-weight: 700; color: #fff; background: var(--accent); border: 0; border-radius: 12px; padding: 12px; cursor: pointer; }
}
.browse-main .grid { --cols: 4; }
@media (min-width: 1700px) {
  .browse-main .grid { --cols: 5; }
}
@media (max-width: 1280px) {
  .browse-main .grid { --cols: 3; }
}
.browse .fbody .hint a { color: var(--accent); }
@media (max-width: 900px) {
  .browse .quick { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .browse .quick::-webkit-scrollbar { display: none; }
  .browse .quick .chip { white-space: nowrap; flex: none; }
}
@media (max-width: 560px) {
  .browse-main .grid { --cols: 2; gap: 12px; }
}
.browse .card .card-line { margin: 0; font-size: .8rem; font-weight: 600; color: var(--muted); }
