/* Miruro browse area (loaded after miruro.css on browse.*, schedule, request-anime).
   Everything here is scoped to the browse markup (.mrb*, .mrs*, .mrq*, or the body classes
   mrb-body / schedule-page / request-page), so shell rules elsewhere are untouched.
   Measured against the reference: container 1600 / px 8 → 16 at 1000, title 24/32 750,
   36px selects with 8px corners, 3/4/5/6/7-column poster grid, 1/2/3-column cover grid. */

.mrb, .mrs, .mrq {
    --b-bg65: rgba(var(--mr-rgb), 0.65);
    --b-ring: inset 0 0 0 0.5px rgba(var(--mr-border-rgb), 0.6);
}

/* ============ page frame ============ */
.mrb-page {
    display: flex; flex-direction: column; gap: 20px; width: 100%; max-width: 1600px; margin: 0 auto;
    padding: 8px 8px 32px; font-family: var(--hs-f-body); color: var(--hs-tx);
}
.mrb-page.mrb-cover { gap: 24px; padding-bottom: 24px; }
@media (min-width: 1000px) { .mrb-page { padding: 16px 16px 32px; } .mrb-page.mrb-cover { padding-bottom: 24px; } }
.mrb-page > * { min-width: 0; }

/* ============ header ============ */
.mrb-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-width: 0; }
.mrb-head-text { flex: 1 0 0%; min-width: 0; }
.mrb-h1 { margin: 0; font: 750 24px/32px var(--hs-f-head); letter-spacing: -0.025em; color: var(--hs-tx); overflow-wrap: anywhere; }
.mrb-sub { margin: 0; font-size: 14px; font-weight: 400; line-height: 20px; color: var(--hs-tx-3); }

/* search: quick-list tabs (>= 1000) / compact select (< 1000) */
.mrb-tabs { display: none; align-items: center; gap: 4px; padding: 4px; border-radius: var(--mr-r-lg); background: var(--b-bg65); }
.mrb-tab {
    display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--mr-r-md);
    font-size: 14px; font-weight: 600; line-height: 20px; white-space: nowrap; color: var(--hs-tx-3) !important; transition: color 0.15s, background-color 0.15s;
}
.mrb-tab:hover { color: var(--hs-tx) !important; }
.mrb-tab.is-on { background: var(--hs-bg); color: var(--hs-tx) !important; box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1); }
.mrb-tab svg { flex: none; }
.mrb-tabs-dd { position: relative; flex: none; }
.mrb-selbtn {
    display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; min-width: 0;
    border: 1px solid rgba(var(--mr-border-rgb), 0.8); border-radius: var(--mr-r-md); background: var(--b-bg65);
    font: 500 14px/20px var(--hs-f-body); color: var(--hs-tx-3) !important; white-space: nowrap; cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}
.mrb-selbtn:hover { border-color: var(--mr-primary); color: var(--mr-primary) !important; }
.mrb-tabs-btn { width: 144px; justify-content: space-between; gap: 6px; border-color: var(--mr-border); font-size: 12px; line-height: 16px; font-weight: 600; }
.mrb-tabs-cur { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: left; }
@media (min-width: 1000px) {
    .mrb-tabs { display: flex; }
    .mrb-tabs-dd { display: none; }
}

/* cover lists: letter-spaced tabs + a select-style button on the right */
.mrb-stabs { order: 99; display: flex; align-items: center; gap: 4px; width: 100%; }
.mrb-stab {
    flex: 1 1 0%; min-width: 0; padding: 8px; text-align: center; white-space: nowrap;
    font-size: 14px; font-weight: 800; line-height: 20px; text-transform: uppercase; letter-spacing: 0.16em;
    color: var(--hs-tx-3) !important; transition: color 0.15s;
}
.mrb-stab:hover { color: rgba(var(--mr-fg-rgb), 0.7) !important; }
.mrb-stab span { position: relative; display: inline-block; line-height: 1; }
.mrb-stab.is-on { color: var(--hs-tx) !important; }
.mrb-stab.is-on span::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: -5px; height: 3px; border-radius: 999px; background: var(--hs-tx); }
.mrb-head-end { display: flex; flex: none; justify-content: flex-end; }
@media (max-width: 500px) { .mrb-stab { padding: 8px 4px; letter-spacing: 0.12em; } }
@media (min-width: 1000px) {
    .mrb-stabs { order: 0; width: auto; gap: 8px; }
    .mrb-stab { flex: none; padding: 8px 16px; font-size: 16px; line-height: 24px; }
    .mrb-head-end { flex: 1 0 0%; }
}

/* ============ filter row (frontend/partials/filter-form) ============ */
.mr .mrb-filters.hs-filters { display: block !important; margin: 0; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0; }
.mr .mrb-filters .mrb-f-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mr .mrb-filters .filter { min-width: 0; }
.mr .mrb-filters .mrb-f-tools { grid-column: span 2; grid-row-start: 1; }
.mr .mrb-filters .mrb-f-sort { display: none; }
.mr .mrb-filters .mrb-f-tools ~ .filter { display: none; }
.mr .mrb-filters.is-more .mrb-f-tools ~ .filter, .mr .mrb-filters.is-more .mrb-f-sort { display: block; }
@media (min-width: 1000px) {
    .mr .mrb-filters .mrb-f-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .mr .mrb-filters .mrb-f-tools { grid-column: auto; grid-row-start: auto; }
    .mr .mrb-filters .mrb-f-sort { display: block; }
}
.mr .mrb-filters.is-busy { opacity: 0.6; pointer-events: none; }

.mr .mrb-filters .hs-fb {
    display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%; height: 36px; padding: 0 12px;
    border: 1px solid var(--mr-border); border-radius: var(--mr-r-lg); background: var(--b-bg65); box-shadow: none;
    font: 500 14px/20px var(--hs-f-body); color: var(--hs-tx-3); text-align: left; cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}
.mr .mrb-filters .hs-fb::after { content: none; display: none; }
.mr .mrb-filters .hs-fb.has-ic { justify-content: flex-start; gap: 8px; }
.mr .mrb-filters .hs-fb.has-ic .value { flex: 1; }
.mr .mrb-filters .hs-fb .value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mr .mrb-filters .hs-fb .mrb-fi { flex: none; transition: transform 0.15s; }
.mr .mrb-filters .hs-fb:hover, .mr .mrb-filters .dropdown.show .hs-fb { border-color: var(--mr-primary); color: var(--mr-primary); background: var(--b-bg65); box-shadow: none; }
.mr .mrb-filters .dropdown.show .mrb-chev { transform: rotate(180deg); }
/* a select with something picked (the reference's data-modified tint) */
.mr .mrb-filters .dropdown:has(li > input[type="checkbox"]:checked) .hs-fb, .mr .mrb-filters .filter-ep-range-dd:has(input[type="number"]:not(:placeholder-shown)) .hs-fb { background: color-mix(in srgb, var(--mr-primary) 10%, transparent); }

/* tool group: apply / reset / more */
.mr .mrb-filters .mrb-f-tools {
    display: flex; gap: 0; height: 36px; overflow: hidden; border: 1px solid var(--mr-border); border-radius: var(--mr-r-lg); background: var(--b-bg65);
}
.mr .mrb-ft {
    display: grid; place-items: center; flex: 1 1 0%; height: 100%; min-width: 0; padding: 0; border: 0; border-radius: 0;
    background: none; color: var(--hs-tx-3) !important; cursor: pointer; transition: color 0.15s, background-color 0.15s;
}
.mr .mrb-ft + .mrb-ft { border-left: 1px solid var(--mr-border); }
.mr .mrb-ft:hover { background: var(--mr-muted); color: var(--mr-primary) !important; }
.mr .mrb-more .mrb-fi { transition: transform 0.15s; }
.mr .mrb-filters.is-more .mrb-more .mrb-fi { transform: rotate(180deg); }

/* menus: one column, the trigger's width, 288px tall */
.mr .mrb-filters .dropdown-menu, .mr .mrb-filters .dropdown-menu.lg, .mr .mrb-filters .dropdown-menu.md {
    top: calc(100% + 6px); left: 8px; right: auto; width: calc(100% - 8px); min-width: 0; max-height: 288px; overflow-x: hidden; overflow-y: auto; padding: 4px;
    column-count: 1; border: 1px solid var(--mr-border); border-radius: var(--mr-r-md);
    background: rgba(var(--mr-muted-rgb), 0.65); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
}
.mr .mrb-filters .dropdown-menu-right { left: auto; right: 0; }
.mr .mrb-filters .dropdown-menu.c4 > ul { display: block; }
.mr .mrb-filters .dropdown-menu li > label {
    display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 6px 8px; border-radius: 6px;
    font: 400 14px/20px var(--hs-f-body); color: var(--hs-tx); background: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mr .mrb-filters .dropdown-menu li > label::before { content: none; display: none; }
.mr .mrb-filters .dropdown-menu li > label:hover { background: var(--hs-hover); color: var(--hs-tx); }
.mr .mrb-filters .dropdown-menu li > input:checked + label { background: none; color: var(--mr-primary); font-weight: 600; }
.mr .mrb-filters .dropdown-menu li > input:checked + label::after {
    content: ""; flex: none; width: 14px; height: 14px; margin-left: auto;
    background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.mr .mrb-filters .dropdown-menu li > input:checked + label:hover { background: var(--hs-hover); }
.mr .mrb-filters .dropdown-menu li > input.exclude:checked + label { color: var(--mr-red, #F87171); text-decoration: line-through; background: none; }
.mr .mrb-filters .dropdown-menu li > input.exclude:checked + label::after {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
}
.mr .mrb-filters .filter-ep-range-fields { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 6px; }
.mr .mrb-filters .filter-ep-range-fields .hs-field { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 12px; color: var(--hs-tx-3); }
.mr .mrb-filters .filter-ep-range-fields input { height: 32px; padding: 0 8px; border: 1px solid var(--mr-border); border-radius: 6px; background: var(--hs-bg); color: var(--hs-tx); font: 400 14px var(--hs-f-body); }
.mr .mrb-filters .hs-f-note { padding: 6px 8px; font-size: 13px; color: var(--hs-tx-3); }
@media (max-width: 999px) {
    /* right-hand column opens its menu to the left edge of the trigger */
    .mr .mrb-filters .dropdown-menu, .mr .mrb-filters .dropdown-menu.lg, .mr .mrb-filters .dropdown-menu.md { left: 0; right: auto; width: 100%; }
}

/* quick-list menu (< 1000) */
.mr .mrb-menu { min-width: 180px; padding: 4px; border: 1px solid var(--mr-border); border-radius: var(--mr-r-md); background: rgba(var(--mr-muted-rgb), 0.92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.mr .mrb-menu .dropdown-item { gap: 8px; padding: 6px 8px; border-radius: 6px; font: 400 14px/20px var(--hs-f-body); color: var(--hs-tx); }
.mr .mrb-menu .dropdown-item.active { color: var(--mr-primary); font-weight: 600; }

/* ============ A–Z ============ */
.mrb .hs-az { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.mrb .hs-az a {
    display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 8px; margin: 0;
    border: 1px solid var(--mr-border) !important; border-radius: var(--mr-r-lg) !important; background: var(--b-bg65) !important;
    font: 500 14px/20px var(--hs-f-body) !important; color: var(--hs-tx-3) !important; transition: color 0.15s, border-color 0.15s;
}
.mrb .hs-az a:hover { border-color: var(--mr-primary) !important; color: var(--mr-primary) !important; }
.mrb .hs-az a.on, .mrb .hs-az a.active { background: var(--mr-muted) !important; border-color: var(--mr-border) !important; color: var(--hs-tx) !important; font-weight: 600 !important; }
@media (max-width: 767px) {
    .mrb .hs-az { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -8px; padding: 0 8px; }
    .mrb .hs-az::-webkit-scrollbar { display: none; }
    .mrb .hs-az a { flex: none; }
}

/* ============ Page bar ============ */
.mrb-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 20px; }
.mrb-bar-l { margin: 0; font-size: 14px; font-weight: 400; line-height: 20px; color: var(--hs-tx-3); }
.mrb-bar-r { display: flex; align-items: center; gap: 4px; }
.mrb-vt { display: flex; gap: 4px; margin-right: 8px; }
.mrb-pb {
    display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--mr-border); border-radius: var(--mr-r-lg);
    background: none; color: var(--hs-tx) !important; cursor: pointer; transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}
.mrb-pb:hover { border-color: var(--mr-primary); color: var(--mr-primary) !important; }
.mrb-pb.is-off { color: var(--hs-tx-3) !important; opacity: 0.5; pointer-events: none; }
.mrb-vt .mrb-pb { color: var(--hs-tx-3) !important; }
.mrb-vt .mrb-pb[aria-pressed="true"] { background: var(--mr-muted); color: var(--hs-tx) !important; }

/* ============ results ============ */
.mrb-results { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.mrb-cover .mrb-results { gap: 24px; }

/* search: poster grid (3 · 4 @768 · 5 @1024 · 6 @1280 · 7 @1536) */
.mrb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 6px; align-items: start; }
@media (min-width: 640px) { .mrb-grid { gap: 12px; } }
@media (min-width: 768px) { .mrb-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1024px) { .mrb-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .mrb-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 1536px) { .mrb-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); } }

/* cover cards (cover lists, and the search page's list view): 1 · 2 @768 · 3 @1280 */
.mrb-grid.is-list { grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: stretch; }
@media (min-width: 768px) { .mrb-grid.is-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .mrb-grid.is-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mrb-grid.is-list .mr-pc {
    position: relative; flex-direction: row; align-items: stretch; gap: 12px; min-height: 209px; padding: 10px; overflow: hidden;
    border: 0; border-radius: var(--mr-r-xl); background: var(--mr-card); box-shadow: var(--b-ring); transition: box-shadow 0.15s;
}
.mrb-grid.is-list .mr-pc:hover { background: var(--mr-card); box-shadow: inset 0 0 0 0.5px rgba(var(--mr-fg-rgb), 0.15); }
.mrb-grid.is-list .mr-pc-media { flex: none; align-self: flex-start; width: 126px; border-radius: var(--mr-r-lg); }
.mrb-grid.is-list .mr-pc-media .mr-badge { display: none; }
.mrb-grid.is-list .mr-pc-body { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 0; }
.mrb-grid.is-list .mr-pc-title { order: -1; font-size: 14px; font-weight: 600; line-height: 1.375; -webkit-line-clamp: 2; }
.mrb-grid.is-list .mr-pc-rel { order: -2; }
.mrb-grid.is-list .mr-pc-more { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mrb-grid.is-list .mr-pc-stats { display: none; }
.mrb-grid.is-list .mr-pc-desc {
    margin: 0; font-size: 12px; font-weight: 400; line-height: 19.5px; color: var(--hs-tx-3);
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden;
}

/* ============ empty ============ */
.mrb-empty {
    display: grid; place-items: center; min-height: 208px; padding: 0 16px; text-align: center;
    border: 1px solid var(--mr-border); border-radius: var(--mr-r-xl); background: var(--mr-card);
}
.mrb-empty p { margin: 0; }
.mrb-empty-t { font-size: 16px; font-weight: 600; line-height: 24px; color: var(--hs-tx); }
.mrb-empty-s { margin-top: 4px !important; font-size: 14px; font-weight: 400; line-height: 20px; color: var(--hs-tx-3); }
.mrb-empty-a { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--hs-tx-3) !important; }
.mrb-empty-a:hover { color: var(--mr-primary) !important; }

/* ============ pager: Prev / Next ============ */
.mrb-pager { display: flex; justify-content: center; gap: 8px; padding-top: 12px; }
.mrb-cover .mrb-pager { padding-top: 16px; }
.mrb-nb {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 96px; padding: 8px 16px;
    border: 1px solid var(--mr-border); border-radius: var(--mr-r-xl); background: rgba(var(--mr-rgb), 0.6);
    font: 600 14px/21px var(--hs-f-body); color: var(--hs-tx) !important; transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}
.mrb-cover .mrb-nb { border-radius: var(--mr-r-md); background: var(--hs-bg); font-weight: 500; line-height: 20px; }
.mrb-nb:hover { border-color: var(--mr-primary); color: var(--mr-primary) !important; }
.mrb-nb.is-off { opacity: 0.5; pointer-events: none; }

/* ============ schedule (frontend/schedule + partials/schedule-page*) ============ */
.mrs-page { width: 100%; }
.mrs-root {
    position: relative; display: flex; flex-direction: column; gap: 20px; width: 100%; max-width: 1280px; margin: 0 auto;
    padding: 8px 8px 24px; font-family: var(--hs-f-body); color: var(--hs-tx);
}
@media (min-width: 1000px) { .mrs-root { padding: 16px 16px 24px; } }
.mrs-root > * { min-width: 0; }

/* blurred artwork behind the top of the page */
.mrs-bd { position: fixed; top: 0; left: 0; right: 0; z-index: -1; height: 384px; overflow: hidden; pointer-events: none; }
@media (min-width: 1000px) { .mrs-bd { height: 480px; } }
.mrs-bd img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); filter: blur(4px); }
.mrs-bd i { position: absolute; inset: 0; background: rgba(var(--mr-rgb), 0.72); }
.mrs-bd b { position: absolute; left: 0; right: 0; bottom: 0; height: 75%; background: linear-gradient(to bottom, transparent, var(--hs-bg)); }

.mrs-head { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 768px) { .mrs-head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.mrs-h1 { margin: 0; font: 750 24px/32px var(--hs-f-head); letter-spacing: -0.025em; color: var(--hs-tx); }
.mrs-sub { margin: 0; font-size: 14px; font-weight: 400; line-height: 20px; color: var(--hs-tx-3); }
.mrs-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mrs-seg, .mrs-week {
    display: inline-flex; align-items: center; height: 36px; overflow: hidden; border: 1px solid var(--mr-border); border-radius: var(--mr-r-lg);
    background: var(--b-bg65); transition: border-color 0.15s;
}
.mrs-seg:hover, .mrs-week:hover { border-color: var(--mr-primary); }
.mrs-seg button {
    height: 100%; padding: 0 12px; border: 0; border-radius: 0; background: none; cursor: pointer;
    font: 500 14px/20px var(--hs-f-body); color: var(--hs-tx-3); transition: color 0.15s, background-color 0.15s;
}
.mrs-seg button + button { border-left: 1px solid var(--mr-border); }
.mrs-seg button:hover { color: var(--mr-primary); background: var(--mr-muted); }
.mrs-seg button.on { background: var(--mr-muted); color: var(--hs-tx); }
.mrs-week { font-size: 14px; font-weight: 500; line-height: 20px; color: var(--hs-tx-3); }
.mrs-week button { font: 500 14px/20px var(--hs-f-body); display: grid; place-items: center; width: 36px; height: 100%; padding: 0; border: 0; background: none; color: var(--hs-tx-3); cursor: pointer; }
.mrs-week button:disabled { opacity: 0.3; pointer-events: none; }
.mrs-week span { min-width: 128px; padding: 0 8px; text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 500px) {
    .mrs-ctl { width: 100%; flex-wrap: nowrap; }
    .mrs-seg { flex: 2 1 0%; min-width: 0; }
    .mrs-seg button { flex: 1; padding: 0 6px; }
    .mrs-week { flex: 3 1 0%; min-width: 0; }
    .mrs-week button { width: 28px; flex: none; }
    .mrs-week span { flex: 1; min-width: 0; padding: 0 4px; }
}

/* days: a scrolling strip on phones, a column from 768 */
.mrs-layout { display: block; }
.mrs-days { display: flex; gap: 8px; margin: 0 -8px; padding: 4px 8px; overflow-x: auto; scrollbar-width: none; }
.mrs-days::-webkit-scrollbar { display: none; }
.mrs-day {
    position: relative; display: flex; flex: none; flex-direction: column; align-items: center; gap: 2px; padding: 8px 14px;
    border: 1px solid transparent; border-radius: var(--mr-r-lg); background: none; color: var(--hs-tx-3); cursor: pointer;
    font: 400 16px/24px var(--hs-f-body); text-align: center; transition: color 0.15s, background-color 0.15s;
}
.mrs-day:hover { background: rgba(var(--mr-muted-rgb), 0.5); }
.mrs-day.on { border-color: var(--mr-border); background: var(--mr-muted); color: var(--hs-tx); }
.mrs-day.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 999px; background: var(--hs-tx); }
.mrs-day-tx { display: contents; }
.mrs-day-wd { font-size: 11px; font-weight: 600; line-height: 16.5px; text-transform: uppercase; letter-spacing: 0.05em; }
.mrs-day-long, .mrs-today, .mrs-day-n { display: none; }
.mrs-day-d { font-size: 14px; font-weight: 700; line-height: 20px; }
.mrs-body { margin-top: 12px; min-width: 0; }
@media (min-width: 768px) {
    .mrs-layout { display: flex; gap: 20px; }
    .mrs-days { flex: none; flex-direction: column; gap: 2px; width: 176px; margin: 0; padding: 0; overflow: visible; }
    .mrs-day { flex-direction: row; align-items: center; gap: 12px; padding: 8px 12px; border: 0; text-align: left; }
    .mrs-day.on { background: var(--mr-muted); }
    .mrs-day.on::after { left: 0; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; }
    .mrs-day-tx { display: block; flex: 1; min-width: 0; }
    .mrs-day-wd { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; line-height: 20px; text-transform: none; letter-spacing: 0; }
    .mrs-day-long { display: inline; }
    .mrs-day-short { display: none; }
    .mrs-today { display: inline; font-size: 10px; font-weight: 700; line-height: 14px; text-transform: uppercase; letter-spacing: 0.025em; color: rgba(var(--mr-fg-rgb), 0.45); }
    .mrs-day-d { display: block; font-size: 12px; font-weight: 400; line-height: 16px; color: var(--hs-tx-3); opacity: 0.6; }
    .mrs-day-n { display: inline-block; flex: none; padding: 2px 6px; border-radius: var(--mr-r-sm); background: rgba(var(--mr-fg-rgb), 0.1); font-size: 10px; font-weight: 600; line-height: 15px; color: var(--hs-tx-3); font-variant-numeric: tabular-nums; }
    .mrs-body { flex: 1; margin-top: 0; }
}

/* releases: 1 column, 2 from 1024; time-of-day dividers span the row */
.mrs-tl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-items: start; }
@media (min-width: 1024px) { .mrs-tl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mrs-grp { display: contents; }
.mrs-period, .mrs-now, .mrs-empty { grid-column: 1 / -1; }
.mrs-period { display: flex; align-items: center; gap: 8px; }
.mrs-period span { font-size: 10px; font-weight: 700; line-height: 15px; text-transform: uppercase; letter-spacing: 0.05em; color: color-mix(in srgb, var(--hs-tx-3) 70%, transparent); }
.mrs-period i { flex: 1; height: 1px; background: rgba(var(--mr-border-rgb), 0.7); }
.mrs-card {
    display: flex; align-items: center; gap: 10px; min-width: 0; padding: 6px; border: 1px solid var(--mr-border); border-left-width: 3px;
    border-left-color: rgba(var(--mr-fg-rgb), 0.15); border-radius: var(--mr-r-lg); background: rgba(var(--mr-card-rgb), 0.7);
    color: var(--hs-tx) !important; transition: background-color 0.15s, opacity 0.15s;
}
.mrs-card:hover { background: var(--mr-card); }
.mrs-grp.aired .mrs-card { opacity: 0.55; }
.mrs-grp.aired .mrs-card:hover { opacity: 1; }
.mrs-grp.live .mrs-card { border-left-color: var(--mr-primary); }
.mrs-ps { position: relative; flex: none; width: 44px; aspect-ratio: 2 / 3; overflow: hidden; border-radius: var(--mr-r-md); background: var(--mr-muted); box-shadow: inset 0 0 0 1px rgba(var(--mr-fg-rgb), 0.1); }
.mrs-ps img { width: 100%; height: 100%; object-fit: cover; }
.mrs-tx { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.mrs-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; line-height: 17.5px; color: var(--hs-tx); transition: color 0.15s; }
.mrs-card:hover .mrs-name { color: var(--mr-primary); }
.mrs-meta { display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; min-width: 0; font-size: 12px; font-weight: 400; line-height: 16px; color: var(--hs-tx-3); }
.mrs-meta > i { font-style: normal; opacity: 0.4; }
.mrs-ep { font-variant-numeric: tabular-nums; }
.mrs-meta .sc-go { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; }
.mrs-meta .sc-btn { display: inline; padding: 0; background: none; color: inherit; font: inherit; }
.mrs-meta .sc-btn > i { display: none; }
.mrs-meta .sc-live { color: var(--mr-primary); font-weight: 600; }
.mrs-meta .sc-cd { color: var(--hs-tx-3); }
.mrs-now { display: flex; align-items: center; gap: 8px; }
.mrs-now .sc-nowt { font-size: 10px; font-weight: 700; line-height: 15px; color: var(--mr-primary); }
.mrs-now .sc-nowt small { margin-left: 2px; font-size: 9px; }
.mrs-now .sc-mid { flex: 1; height: 1px; background: color-mix(in srgb, var(--mr-primary) 60%, transparent); }
.mrs-now .sc-lbl { font-size: 10px; font-weight: 700; line-height: 15px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--mr-primary); }
.mrs-empty {
    display: grid; place-items: center; min-height: 208px; padding: 24px 16px; text-align: center;
    border: 1px solid var(--mr-border); border-radius: var(--mr-r-xl); background: var(--mr-card);
}
.mrs-empty p { margin: 0; }
.mrs-empty-t { font-size: 16px; font-weight: 600; line-height: 24px; color: var(--hs-tx); }
.mrs-empty-s { margin-top: 4px !important; font-size: 14px; font-weight: 400; line-height: 20px; color: var(--hs-tx-3); }
.mrs-empty .hs-sch-next { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 8px; margin-top: 14px; padding: 8px 12px; border: 1px solid var(--mr-border); border-radius: var(--mr-r-lg); background: var(--b-bg65); font-size: 13px; color: var(--hs-tx-3) !important; }
.mrs-empty .hs-sch-next .k { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.mrs-empty .hs-sch-next b { color: var(--hs-tx); font-weight: 600; }
.mrs-empty .hs-sch-next:hover b { color: var(--mr-primary); }

/* placeholder until main.js loads the week */
.mrs-sk { display: block; border-radius: var(--mr-r-lg); background: rgba(var(--mr-muted-rgb), 0.6); animation: mrs-pulse 1.4s ease-in-out infinite; }
.mrs-days .mrs-sk { width: 67px; height: 57px; flex: none; }
@media (min-width: 768px) { .mrs-days .mrs-sk { width: 176px; height: 52px; } }
.mrs-tl .mrs-sk { height: 80px; }
@keyframes mrs-pulse { 50% { opacity: 0.5; } }
@media (prefers-reduced-motion: reduce) { .mrs-sk { animation: none; } }

/* ============ request anime (frontend/request-anime; no reference page — browse family look) ============ */
.mrq.pg-page { display: flex; flex-direction: column; gap: 20px; width: 100%; max-width: 1280px; margin: 0 auto; padding: 8px 8px 32px; font-family: var(--hs-f-body); color: var(--hs-tx); }
@media (min-width: 1000px) { .mrq.pg-page { padding: 16px 16px 32px; } }
.mrq-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.mrq-head-text { flex: 1 1 320px; min-width: 0; }
.mrq-h1 { margin: 0; font: 750 24px/32px var(--hs-f-head); letter-spacing: -0.025em; color: var(--hs-tx); }
.mrq-sub { margin: 0; max-width: 640px; font-size: 14px; font-weight: 400; line-height: 20px; color: var(--hs-tx-3); }
.mrq-stat { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--mr-border); border-radius: var(--mr-r-lg); background: var(--b-bg65); font-size: 14px; font-weight: 500; color: var(--hs-tx-3); }
.mrq-stat b { color: var(--hs-tx); font-weight: 600; font-variant-numeric: tabular-nums; }

.mrq .pg-req-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin: 0; }
@media (min-width: 1024px) { .mrq .pg-req-layout { grid-template-columns: minmax(0, 1fr) 368px; } }
.mrq .pg-req-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.mrq .pg-req-side-col { top: calc(var(--mr-top, 56px) + 16px); }
@media (max-width: 1023px) { .mrq .pg-req-side-col { position: static; } }

/* cards */
.mrq .pg-box { overflow: hidden; border: 0; border-radius: var(--mr-r-xl); background: var(--mr-card); box-shadow: var(--b-ring); }
.mrq .pg-box-h { padding: 12px 16px; border-bottom: 1px solid rgba(var(--mr-border-rgb), 0.6); }
.mrq .pg-box-h h2 { gap: 8px; font: 600 16px/24px var(--hs-f-head); letter-spacing: -0.01em; }
.mrq .pg-box-h h2 svg { color: var(--hs-tx-3); }
.mrq .pg-box-h > span { font: 400 12px/16px var(--hs-f-body); color: var(--hs-tx-3); }
.mrq .anime-request-form { padding: 16px; }
.mrq .pg-label { margin-bottom: 6px; font: 700 10px/15px var(--hs-f-body); letter-spacing: 0.05em; color: color-mix(in srgb, var(--hs-tx-3) 70%, transparent); }

/* source: the schedule's segmented control */
.mrq .pg-seg { display: inline-flex; flex-wrap: nowrap; gap: 0; height: 36px; overflow: hidden; border: 1px solid var(--mr-border); border-radius: var(--mr-r-lg); background: var(--b-bg65); }
.mrq .pg-seg .custom-control { display: flex; margin: 0; padding: 0; min-height: 0; }
.mrq .pg-seg .custom-control + .custom-control { border-left: 1px solid var(--mr-border); }
.mrq .pg-seg .custom-control-label { height: 100%; padding: 0 12px; border: 0; border-radius: 0; background: none; font: 500 14px/20px var(--hs-f-body); color: var(--hs-tx-3); cursor: pointer; }
.mrq .pg-seg .custom-control-label::before, .mrq .pg-seg .custom-control-label::after { display: none; }
.mrq .pg-seg .custom-control-label:hover { color: var(--mr-primary); background: var(--mr-muted); }
.mrq .pg-seg .custom-control-input:checked + .custom-control-label { background: var(--mr-muted); color: var(--hs-tx); }

.mrq .pg-id-row { gap: 8px; }
.mrq .pg-id-in { max-width: 360px; }
.mrq .pg-input, .mrq.pg-page .form-control { height: 36px; padding: 0 12px; border: 1px solid var(--mr-border); border-radius: var(--mr-r-lg); background: var(--b-bg65); color: var(--hs-tx); font: 500 14px/20px var(--hs-f-body); box-shadow: none; }
.mrq .pg-input:focus, .mrq.pg-page .form-control:focus { border-color: var(--mr-primary); box-shadow: none; outline: 0; }
.mrq .pg-hint { margin-top: 6px; font: 400 12px/16px var(--hs-f-body); color: var(--hs-tx-3); }
.mrq .pg-hint strong { color: var(--mr-primary); font-weight: 600; }
.mrq .pg-btn-submit.hs-btn {
    height: 36px; padding: 0 16px; border: 1px solid transparent; border-radius: var(--mr-r-lg); background: var(--hs-tx); color: var(--hs-bg) !important;
    font: 600 14px/20px var(--hs-f-body); box-shadow: none;
}
.mrq .pg-btn-submit.hs-btn:hover { background: color-mix(in srgb, var(--hs-tx) 88%, transparent); }
.mrq .alert { margin-top: 12px; border-radius: var(--mr-r-lg); font: 500 13px/20px var(--hs-f-body); }

/* status guide + note */
.mrq .pg-how { gap: 8px; margin: 0; }
@media (max-width: 767px) { .mrq .pg-how { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mrq .pg-how-i { padding: 10px 12px; border: 0; border-radius: var(--mr-r-lg); background: rgba(var(--mr-card-rgb), 0.7); box-shadow: var(--b-ring); }
.mrq .pg-how-i p { margin-top: 6px; font: 400 12px/16px var(--hs-f-body); color: var(--hs-tx-3); }
.mrq .pg-note { margin: 0; font: 400 12px/16px var(--hs-f-body); color: var(--hs-tx-3); }
.mrq .pg-note svg { color: var(--hs-tx-3); }
.mrq.pg-request .badge { height: 20px; padding: 0 6px; border-radius: var(--mr-r-sm); font: 600 10px/15px var(--hs-f-body); letter-spacing: 0.03em; }

/* queue rows: the schedule's row card, inside the queue box */
.mrq .pg-req-list { gap: 8px; padding: 8px; }
.mrq .pg-req {
    grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; padding: 6px; border: 1px solid var(--mr-border); border-left-width: 3px;
    border-left-color: var(--hs-dub); border-radius: var(--mr-r-lg); background: rgba(var(--mr-card-rgb), 0.7);
}
.mrq .pg-req + .pg-req { border-top: 1px solid var(--mr-border); }
.mrq .pg-req::before { display: none; }
.mrq .pg-req.is-approved { border-left-color: var(--mr-primary); }
.mrq .pg-req.is-available { border-left-color: var(--hs-ok); }
.mrq .pg-req.is-rejected { border-left-color: var(--hs-hot); opacity: 0.7; }
.mrq .pg-req:hover { background: var(--mr-card); opacity: 1; }
.mrq .pg-req-ps { width: 44px; border-radius: var(--mr-r-md); background: var(--mr-muted); box-shadow: inset 0 0 0 1px rgba(var(--mr-fg-rgb), 0.1); }
.mrq .pg-req-tx { gap: 2px; }
.mrq .pg-req-t { font: 600 14px/17.5px var(--hs-f-body); }
.mrq .pg-req-m { gap: 0 6px; font: 400 12px/16px var(--hs-f-body); color: var(--hs-tx-3); }
.mrq .pg-id { height: 16px; border-radius: var(--mr-r-sm); background: rgba(var(--mr-muted-rgb), 0.8); color: var(--hs-tx-3); font-size: 10px; }
.mrq .pg-req-time { font: 400 11px/16px var(--hs-f-body); color: var(--hs-tx-4); }
.mrq .pg-req-side { gap: 8px; }
.mrq .pg-req-btn { height: 30px; padding: 0 10px; border: 1px solid var(--mr-border); border-radius: var(--mr-r-lg); background: var(--b-bg65); color: var(--hs-tx) !important; font: 500 13px/20px var(--hs-f-body); }
.mrq .pg-req-btn:hover { border-color: var(--mr-primary); color: var(--mr-primary) !important; }
@media (max-width: 559px) {
    .mrq .pg-req { grid-template-columns: 44px minmax(0, 1fr); }
    .mrq .pg-req-side { grid-column: 2; justify-content: space-between; }
}
.mrq .pg-empty { padding: 36px 16px; text-align: center; font-size: 14px; color: var(--hs-tx-3); }
.mrq-pager { padding-top: 0; }

/* top rated (aside) */
.mrq .pg-top-list { padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.mrq .pg-top-list a { grid-template-columns: 20px 44px minmax(0, 1fr); gap: 10px; padding: 6px; border-radius: var(--mr-r-lg); }
.mrq .pg-top-list a:hover { background: var(--mr-muted); }
.mrq .pg-top-rk { font: 700 14px/20px var(--hs-f-body); color: var(--hs-tx-4); }
.mrq .pg-top-ps { border-radius: var(--mr-r-md); overflow: hidden; }
.mrq .pg-top-t { font: 600 14px/17.5px var(--hs-f-body); color: var(--hs-tx); }
.mrq .pg-top-list a:hover .pg-top-t { color: var(--mr-primary); }
.mrq .pg-top-m { font: 400 12px/16px var(--hs-f-body); color: var(--hs-tx-3); }

/* how-requests-work guide */
.mrq .pg-guide { margin: 0; padding: 16px; border-radius: var(--mr-r-xl); background: var(--mr-card); box-shadow: var(--b-ring); font-size: 14px; line-height: 22px; color: var(--hs-tx-3); }
.mrq .pg-guide .rq-guide-h { margin: 0 0 10px; font: 600 16px/24px var(--hs-f-head); color: var(--hs-tx); }
.mrq .pg-guide h3 { margin: 0 0 4px; font: 600 14px/20px var(--hs-f-body); color: var(--hs-tx); }
.mrq .pg-guide a { color: var(--mr-primary) !important; }

/* details modal */
.mrq .pg-modal .modal-content { border: 1px solid var(--mr-border); border-radius: var(--mr-r-xl); background: var(--mr-card); }
.mrq .pg-modal .modal-header, .mrq .pg-modal .modal-footer { border-color: rgba(var(--mr-border-rgb), 0.6); }
.mrq .pg-modal .modal-title { font: 600 16px/24px var(--hs-f-head); }
.mrq .pg-modal .btn { height: 36px; border-radius: var(--mr-r-lg); font: 500 14px/20px var(--hs-f-body); }
