.search-page {
    background: #f6f8fb;
}
.search-page-wrap {
    --rt-search-width: 1040px;
    --rt-blue: #2563eb;
    --rt-blue-soft: #eef5ff;
    --rt-text: #111827;
    --rt-sub: #617086;
    --rt-muted: #8793a6;
    --rt-line: #dfe7f1;
    --rt-line-soft: #edf2f7;
    --rt-surface: rgba(255,255,255,.92);
    --rt-surface-solid: #fff;
    --rt-radius-lg: 22px;
    --rt-radius-md: 16px;
    --rt-radius-sm: 12px;
    width: 100%;
    margin: 0 auto;
    padding: 0 0 72px;
    color: var(--rt-text);
}
.search-page-wrap * {
    box-sizing: border-box;
}
.rt-search-shell {
    width: 100%;
}
.rt-search-panel,
.rt-search-toolbar,
.rt-filter-panel,
.rt-search-popular,
.rt-search-active-filters,
.rt-search-summary,
.rt-search-results,
.rt-search-pagination {
    max-width: var(--rt-search-width);
    margin-left: auto;
    margin-right: auto;
}
.rt-search-panel {
    margin-top: 34px;
}
.rt-search-heading {
    margin-bottom: 18px;
}
.rt-search-title {
    width: auto;
    margin: 0;
    color: var(--rt-text);
    font-family: "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "游明朝", YuMincho, serif;
    font-size: clamp(1.55rem, 2.2vw, 1.9rem);
    line-height: 1.45;
    font-weight: 400;
    letter-spacing: -.02em;
}
.rt-search-form {
    display: grid;
    grid-template-columns: minmax(0,1fr) 64px;
    gap: 12px;
    align-items: stretch;
}
.rt-search-input-wrap {
    min-height: 64px;
    display: grid;
    grid-template-columns: 26px minmax(0,1fr) 34px;
    gap: 12px;
    align-items: center;
    padding: 0 18px;
    border: 1px solid var(--rt-line);
    border-radius: 20px;
    background: var(--rt-surface-solid);
    box-shadow: 0 10px 28px rgba(15,23,42,.055);
}
.rt-search-input-wrap > i {
    color: var(--rt-muted);
    font-size: 1.35rem;
}
.rt-search-input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--rt-text);
    font: inherit;
    font-size: 1.05rem;
    line-height: 1.3;
    letter-spacing: .01em;
}
.rt-search-input::placeholder {
    color: #9aa4b3;
}
.rt-search-clear,
.rt-search-submit,
.rt-filter-launch,
.rt-search-reset-inline,
.rt-filter-close,
.rt-filter-reset,
.rt-filter-apply,
.rt-search-tab,
.rt-field-chip,
.rt-search-choice button,
.rt-search-filter-buttons button,
.rt-select-button,
.rt-select-option {
    appearance: none;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.rt-search-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--rt-muted);
}
.rt-search-clear:hover,
.rt-filter-close:hover {
    background: #f3f6fb;
    color: var(--rt-text);
}
.rt-search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    min-height: 64px;
    border: 1px solid var(--rt-line);
    border-radius: 20px;
    background: var(--rt-surface-solid);
    color: var(--rt-text);
    box-shadow: 0 10px 28px rgba(15,23,42,.055);
}
.rt-search-submit i {
    font-size: 1.7rem;
}
.rt-search-toolbar {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 14px;
    align-items: center;
    margin-top: 16px;
}
.rt-search-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
    min-height: 48px;
    padding: 4px;
    border: 1px solid var(--rt-line);
    border-radius: 18px;
    background: rgba(255,255,255,.84);
    box-shadow: 0 10px 24px rgba(15,23,42,.045);
}
.rt-search-tab {
    min-height: 40px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--rt-sub);
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .92rem;
}
.rt-search-tab i {
    font-size: 1.2rem;
}
.rt-search-tab.active {
    background: #111827;
    color: #fff;
}
.rt-search-actions {
    display: inline-flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.rt-filter-launch,
.rt-search-reset-inline {
    min-height: 44px;
    border: 1px solid var(--rt-line);
    border-radius: 15px;
    background: rgba(255,255,255,.88);
    color: var(--rt-text);
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(15,23,42,.035);
}
.rt-filter-launch i {
    color: var(--rt-blue);
    font-size: 1.2rem;
}
.rt-filter-launch em {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--rt-blue);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    font-size: .78rem;
}
.rt-search-reset-inline {
    color: var(--rt-sub);
}
.rt-filter-launch:hover,
.rt-search-reset-inline:hover,
.rt-search-submit:hover {
    border-color: #c8d3e2;
    background: #fff;
}
.rt-search-popular {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    min-width: 0;
}
.rt-search-popular-label {
    flex: 0 0 auto;
    color: var(--rt-sub);
    font-size: .84rem;
}
.rt-search-popular-items {
    width: 100%;
    min-width: 0;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}
.rt-search-popular-items::-webkit-scrollbar {
    display: none;
}
.rt-search-popular-items button,
.rt-search-active-filters span,
.rt-search-badge,
.rt-search-stat {
    border: 1px solid var(--rt-line);
    background: rgba(255,255,255,.88);
    color: var(--rt-sub);
    border-radius: 999px;
}
.rt-search-popular-items button {
    min-height: 36px;
    padding: 0 14px;
    font: inherit;
    font-weight: 500;
    white-space: nowrap;
    flex: 0 0 auto;
    scroll-snap-align: start;
}
.rt-search-active-filters {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.rt-search-active-filters span {
    min-height: 30px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .78rem;
}
.rt-filter-panel {
    margin-top: 16px;
    border: 1px solid var(--rt-line);
    border-radius: var(--rt-radius-lg);
    background: var(--rt-surface-solid);
    box-shadow: 0 20px 52px rgba(15,23,42,.075);
    overflow: visible;
}
.rt-filter-panel[hidden] {
    display: none;
}
.rt-filter-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px 18px;
    border-bottom: 1px solid var(--rt-line-soft);
}
.rt-filter-head h2 {
    margin: 0;
    color: var(--rt-text);
    font-family: NotoSansJP, "Helvetica Neue", Roboto, Arial, sans-serif;
    font-size: 1.25rem;
    line-height: 1.25;
    font-weight: 500;
}
.rt-filter-head p {
    margin: 6px 0 0;
    color: var(--rt-sub);
    font-size: .86rem;
    line-height: 1.55;
}
.rt-filter-close {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 1px solid var(--rt-line);
    border-radius: 14px;
    background: #fff;
    color: var(--rt-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.rt-filter-close i {
    font-size: 1.35rem;
}
.rt-filter-toolbar {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--rt-line-soft);
}
.rt-search-control {
    display: grid;
    gap: 8px;
}
.rt-search-control-label,
.rt-filter-group h3 {
    color: var(--rt-sub);
    font-size: .78rem;
    line-height: 1.3;
    font-weight: 500;
}
.rt-select {
    position: relative;
}
.rt-select-button {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--rt-line);
    border-radius: 14px;
    background: #fff;
    color: var(--rt-text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
    font-size: .92rem;
}
.rt-select-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    border: 1px solid var(--rt-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(15,23,42,.12);
    padding: 6px;
}
.rt-select-option {
    width: 100%;
    min-height: 38px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--rt-sub);
    text-align: left;
    padding: 0 12px;
    font-size: .88rem;
}
.rt-select-option:hover,
.rt-select-option.is-active {
    background: #f3f6fb;
    color: var(--rt-text);
}
.rt-filter-groups {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px;
    padding: 18px 24px 24px;
}
.rt-filter-group {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--rt-line-soft);
    border-radius: var(--rt-radius-md);
    background: #fbfdff;
}
.rt-filter-group.is-wide {
    grid-column: 1 / -1;
}
.rt-filter-group[hidden] {
    display: none;
}
.rt-filter-group h3 {
    margin: 0 0 10px;
}
.rt-search-chip-row,
.rt-search-choice,
.rt-search-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.rt-field-chip,
.rt-search-choice button,
.rt-search-filter-buttons button {
    min-height: 34px;
    border: 1px solid var(--rt-line);
    border-radius: 999px;
    background: #fff;
    color: var(--rt-text);
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: .84rem;
    line-height: 1;
}
.rt-field-chip.is-active,
.rt-search-choice button.is-active,
.rt-search-filter-buttons button.is-active {
    background: #111827;
    border-color: #111827;
    color: #fff;
}
.rt-field-chip i,
.rt-search-choice button i,
.rt-search-filter-buttons button i {
    font-size: .96rem;
}
.rt-filter-foot {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 24px 22px;
    border-top: 1px solid var(--rt-line-soft);
}
.rt-filter-reset,
.rt-filter-apply {
    min-height: 44px;
    border: 1px solid var(--rt-line);
    border-radius: 14px;
    background: #fff;
    color: var(--rt-text);
    padding: 0 16px;
}
.rt-filter-apply {
    background: var(--rt-blue);
    border-color: var(--rt-blue);
    color: #fff;
}
.rt-search-summary {
    margin-top: 26px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--rt-sub);
    font-size: .9rem;
}
.rt-search-results {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 16px;
}
.rt-search-item {
    display: grid;
    grid-template-columns: 112px minmax(0,1fr);
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--rt-line);
    border-radius: 20px;
    background: var(--rt-surface-solid);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(15,23,42,.045);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.rt-search-item:hover {
    text-decoration: none;
    transform: translateY(-1px);
    border-color: #cbd8e8;
    box-shadow: 0 18px 42px rgba(15,23,42,.075);
}
.rt-search-thumb {
    width: 112px;
    height: 70px;
    border-radius: 14px;
    object-fit: cover;
    background: #eef3f8;
    display: block;
}
.rt-search-thumb.channel {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    justify-self: center;
}
.rt-search-body {
    min-width: 0;
    display: grid;
    gap: 8px;
}
.rt-search-badges,
.rt-search-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    min-width: 0;
}
.rt-search-badge {
    min-height: 25px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    font-size: .74rem;
    line-height: 1;
    white-space: nowrap;
}
.rt-search-badge.is-type {
    color: var(--rt-blue);
    background: var(--rt-blue-soft);
    border-color: #cbdcff;
}
.rt-search-name {
    color: var(--rt-text);
    font-size: 1.03rem;
    line-height: 1.48;
    font-weight: 500;
    letter-spacing: -.015em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rt-search-sub {
    color: var(--rt-sub);
    font-size: .86rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rt-search-stats {
    margin-top: 2px;
}
.rt-search-stat {
    min-height: 28px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .76rem;
    line-height: 1;
    white-space: nowrap;
}
.rt-search-stat span {
    color: var(--rt-muted);
}
.rt-search-stat strong {
    color: var(--rt-text);
    font-size: .82rem;
    font-weight: 500;
}
.rt-search-empty {
    padding: 40px 18px;
    border: 1px dashed var(--rt-line);
    border-radius: 18px;
    background: rgba(255,255,255,.58);
    text-align: center;
    color: var(--rt-sub);
}
.rt-search-pagination {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex-wrap: wrap;
}
.rt-search-pagination a,
.rt-search-pagination span {
    min-width: 38px;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--rt-line);
    border-radius: 12px;
    background: #fff;
    color: var(--rt-sub);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: .86rem;
}
.rt-search-pagination a[aria-current="page"] {
    background: #111827;
    border-color: #111827;
    color: #fff;
}
.rt-search-pagination .is-disabled {
    opacity: .45;
    pointer-events: none;
}
@media screen and (max-width: 1120px) {
    .rt-search-panel,
    .rt-search-toolbar,
    .rt-filter-panel,
    .rt-search-popular,
    .rt-search-active-filters,
    .rt-search-summary,
    .rt-search-results,
    .rt-search-pagination {
        margin-left: 18px;
        margin-right: 18px;
    }
}
@media screen and (max-width: 860px) {
    .rt-filter-groups {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
    .rt-search-toolbar {
        grid-template-columns: 1fr;
    }
    .rt-search-actions {
        justify-content: flex-start;
    }
}
@media screen and (max-width: 680px) {
    .search-page-wrap {
        padding-bottom: 56px;
    }
    .rt-search-panel {
        margin-top: 22px;
    }
    .rt-search-heading {
        margin-bottom: 14px;
    }
    .rt-search-title {
        font-size: 1.45rem;
        line-height: 1.45;
    }
    .rt-search-form {
        grid-template-columns: minmax(0,1fr) 58px;
        gap: 8px;
    }
    .rt-search-input-wrap {
        min-height: 58px;
        border-radius: 17px;
        grid-template-columns: 24px minmax(0,1fr) 32px;
        padding: 0 14px;
    }
    .rt-search-submit {
        width: 58px;
        min-height: 58px;
        border-radius: 17px;
    }
    .rt-search-toolbar {
        margin-top: 12px;
        gap: 10px;
    }
    .rt-search-switch,
    .rt-search-actions {
        width: 100%;
    }
    .rt-search-switch {
        justify-content: space-between;
        border-radius: 16px;
    }
    .rt-search-tab {
        flex: 1;
        justify-content: center;
        padding: 0 10px;
    }
    .rt-search-actions {
        display: grid;
        grid-template-columns: minmax(0,1fr) auto;
    }
    .rt-filter-launch,
    .rt-search-reset-inline {
        min-height: 42px;
        border-radius: 14px;
    }
    .rt-search-popular {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        margin-top: 14px;
    }
    .rt-search-popular-items {
        max-width: 100%;
        padding: 0 2px 2px 0;
    }
    .rt-filter-head,
    .rt-filter-toolbar,
    .rt-filter-groups,
    .rt-filter-foot {
        padding-left: 14px;
        padding-right: 14px;
    }
    .rt-filter-toolbar,
    .rt-filter-groups {
        grid-template-columns: 1fr;
    }
    .rt-filter-panel {
        border-radius: 18px;
    }
    .rt-filter-head h2 {
        font-size: 1.08rem;
    }
    .rt-filter-head p {
        font-size: .78rem;
    }
    .rt-filter-foot {
        position: sticky;
        bottom: 0;
        background: #fff;
        border-radius: 0 0 18px 18px;
    }
    .rt-search-summary {
        margin-top: 20px;
        font-size: .82rem;
    }
    .rt-search-item {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 14px;
        padding: 18px 14px;
        border-radius: 18px;
        text-align: center;
    }
    .rt-search-thumb {
        width: min(100%, 300px);
        height: auto;
        aspect-ratio: 16 / 9;
        border-radius: 14px;
    }
    .rt-search-thumb.channel {
        width: clamp(120px, 36vw, 152px);
        height: clamp(120px, 36vw, 152px);
    }
    .rt-search-body {
        width: 100%;
        justify-items: center;
    }
    .rt-search-badges {
        justify-content: center;
    }
    .rt-search-name {
        width: 100%;
        font-size: .98rem;
        -webkit-line-clamp: 3;
    }
    .rt-search-sub {
        width: 100%;
        font-size: .8rem;
    }
    .rt-search-stats {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 6px;
    }
    .rt-search-stat {
        width: 100%;
        justify-content: space-between;
        min-height: 30px;
        min-width: 0;
    }
    .rt-search-stat span,
    .rt-search-stat strong {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
@media screen and (max-width: 420px) {
    .rt-search-panel,
    .rt-search-toolbar,
    .rt-filter-panel,
    .rt-search-popular,
    .rt-search-active-filters,
    .rt-search-summary,
    .rt-search-results,
    .rt-search-pagination {
        margin-left: 12px;
        margin-right: 12px;
    }
    .rt-search-item {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px 12px;
    }
    .rt-search-thumb {
        width: min(100%, 280px);
        height: auto;
    }
    .rt-search-thumb.channel {
        width: clamp(116px, 42vw, 144px);
        height: clamp(116px, 42vw, 144px);
    }
    .rt-search-badges {
        gap: 5px;
    }
    .rt-search-badge:nth-child(n+4) {
        display: none;
    }
    .rt-search-stat {
        font-size: .72rem;
        padding: 0 8px;
    }
}
@media (prefers-reduced-motion: no-preference) {
    .rt-search-switch {
        position: relative;
        isolation: isolate;
        overflow: hidden;
    }
    .rt-search-switch::before {
        content: "";
        position: absolute;
        z-index: 0;
        left: 4px;
        top: 4px;
        bottom: 4px;
        width: calc((100% - 12px) / 2);
        border-radius: 14px;
        background: #111827;
        transform: translateX(0);
        transition: transform .28s cubic-bezier(.22, 1, .36, 1), opacity .2s ease;
    }
    .rt-search-switch.is-video::before {
        transform: translateX(calc(100% + 4px));
    }
    .rt-search-switch.is-channel::before {
        transform: translateX(0);
    }
    .rt-search-tab {
        position: relative;
        z-index: 1;
        background: transparent;
        transition: color .22s ease, transform .22s ease;
    }
    .rt-search-tab.active {
        background: transparent;
        color: #fff;
    }
    .rt-search-tab:not(.active) {
        background: transparent;
    }
.rt-filter-panel {
        transition: opacity .22s cubic-bezier(.22, 1, .36, 1), transform .22s cubic-bezier(.22, 1, .36, 1), box-shadow .22s ease;
    }
    .rt-filter-panel.is-motion-ready {
        opacity: 0;
        transform: translateY(8px) scale(.985);
        pointer-events: none;
    }
    .rt-filter-panel.is-open {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }
    .rt-filter-panel.is-closing {
        opacity: 0;
        transform: translateY(6px) scale(.985);
        pointer-events: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    .rt-search-switch::before,
    .rt-search-tab,
    .rt-filter-panel,
    .rt-filter-launch,
    .rt-search-reset-inline {
        transition: none;
    }
}
@media (prefers-reduced-motion: no-preference) {
    .rt-search-tab,
    .rt-filter-launch,
    .rt-search-reset-inline {
        transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, opacity .18s ease;
    }
    .rt-search-tab:hover,
    .rt-search-tab:focus-visible,
    .rt-filter-launch:hover,
    .rt-search-reset-inline:hover {
        transform: none;
    }
    .rt-search-switch::before {
        will-change: transform;
    }
    .rt-filter-panel.is-motion-ready {
        overflow: hidden;
        will-change: height, opacity, transform;
        transition: height .24s cubic-bezier(.22, 1, .36, 1), opacity .18s ease, transform .24s cubic-bezier(.22, 1, .36, 1);
    }
    .rt-filter-panel.is-open {
        opacity: 1;
        transform: translateY(0);
    }
    .rt-filter-panel.is-closing {
        opacity: 0;
        transform: translateY(8px);
    }
}
@media (prefers-reduced-motion: reduce) {
    .rt-search-switch::before,
    .rt-search-tab,
    .rt-filter-panel,
    .rt-filter-launch,
    .rt-search-reset-inline {
        transition: none !important;
    }
}
@media screen and (max-width: 680px) {
    .rt-search-pagination {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
    }
    .rt-search-pagination::-webkit-scrollbar {
        display: none;
    }
    .rt-search-pagination a,
    .rt-search-pagination span {
        flex: 0 0 auto;
        scroll-snap-align: center;
    }
}
