/* Runtime browse page ownership. */

/* BEGIN source style.css:871-1152 browse-page */
/* Browse Page */
.page-shell:has(.browse-page) {
    padding: 26px 32px 34px;
}

.browse-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 16px;
    width: 100%;
    min-height: calc(100vh - 184px);
    margin: 0;
    font-size: 0.88rem;
}

.browse-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.browse-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.browse-header h1 {
    margin: 0;
    font-size: 1.34rem;
    font-weight: 650;
}

.browse-filter-toggle,
.browse-filter-header {
    display: none;
}

.sort-control {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.82rem;
}

.sort-control .filter-select {
    min-width: 118px;
    min-height: 34px;
    border-color: rgba(47, 128, 255, 0.72);
    background-color: rgba(24, 38, 62, 0.86);
    font-size: 0.82rem;
}

.result-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 14px;
}

.result-summary {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: rgba(17, 26, 45, 0.45);
    color: var(--muted);
    font-size: 0.84rem;
}

.result-summary strong {
    color: var(--text);
}

.browse-results {
    border-top: 1px solid var(--line);
    margin-top: 0;
}

.browse-result {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: stretch;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.browse-result .result-poster {
    display: flex;
    align-items: flex-start;
    width: fit-content;
    height: 204px;
    min-width: 0;
}

.browse-result .result-poster img {
    display: block;
    box-sizing: border-box;
    width: auto;
    height: 204px !important;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(160deg, rgba(239, 244, 255, 0.2), rgba(239, 244, 255, 0.02) 38%),
        linear-gradient(135deg, #1b2b4b, #0d1524 68%);
}

.result-body {
    display: flex;
    min-height: 204px;
    flex-direction: column;
    min-width: 0;
}

.result-body h2 {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 650;
}

.result-meta {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.result-description {
    max-width: var(--layout-browse-copy);
    width: 100%;
    min-height: 74px;
    display: -webkit-box;
    flex: 1 1 auto;
    margin: 8px 0 12px;
    padding: 10px 12px;
    border: 1px solid rgba(115, 137, 177, 0.28);
    border-radius: 4px;
    overflow: hidden;
    background: rgba(17, 26, 45, 0.56);
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.result-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    flex-wrap: wrap;
}

.result-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 104px;
    min-height: 38px;
    padding: 9px 16px;
    border-radius: 4px;
    border: 1px solid rgba(47, 128, 255, 0.55);
    background: linear-gradient(180deg, #347dff, #1e55b7);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 22px rgba(0, 0, 0, 0.24);
}

.result-action:hover {
    color: #fff;
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.result-primary {
    border-color: rgba(47, 128, 255, 0.55);
    background: linear-gradient(180deg, #347dff, #1e55b7);
}

.result-purchase {
    border-color: rgba(201, 255, 38, 0.36);
    background: linear-gradient(180deg, #9ed02f 0%, #5c7e10 100%);
}

.browse-filters {
    align-self: start;
    position: sticky;
    top: 76px;
    overflow: hidden;
    border: 0;
    border-radius: 4px;
    background: rgba(11, 22, 41, 0.92);
    font-size: 0.8rem;
}

.browse-filter-content {
    display: block;
}

.filter-section {
    display: grid;
    gap: 9px;
    padding: 12px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
}

.filter-section:last-child {
    border-bottom: 0;
}

.filter-section h2 {
    margin: -12px -12px 0;
    padding: 11px 12px;
    background: rgba(29, 44, 69, 0.98);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 650;
}

.filter-section label {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 20px;
    color: var(--text);
}

.filter-section label.selected {
    margin: 0 -3px;
    padding: 6px 7px;
    border-radius: 4px;
    background: rgba(47, 128, 255, 0.18);
}

.browse-keyword-form .filter-button {
    width: 100%;
}

.filter-section input[type="checkbox"],
.filter-section input[type="radio"] {
    width: 14px;
    height: 14px;
    accent-color: var(--blue);
}

.filter-section input[type="range"] {
    width: 100%;
    accent-color: var(--blue);
}

.price-note {
    margin: 0;
    color: var(--muted);
    text-align: center;
    font-size: 0.7rem;
}

.tag-filter label {
    justify-content: space-between;
}

.tag-filter label input {
    margin-right: 8px;
}

.tag-filter label span {
    margin-left: auto;
    color: #7f8da5;
    font-size: 0.66rem;
}

.tag-search {
    margin-top: 4px;
}

.filter-content {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(17, 26, 45, 0.68);
}

.filter-input,
.filter-select,
.filter-button {
    margin: 0;
}

/* END source style.css:871-1152 browse-page */

/* BEGIN source style.css:3295-3411 mobile-browse */
@media (max-width: 900px) {
    .filter-content {
        grid-template-columns: 1fr;
    }

    .browse-page {
        grid-template-columns: 1fr;
        gap: 12px;
        min-height: 0;
    }

    .result-toolbar {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .browse-header {
        align-items: center;
        flex-direction: row;
    }

    .browse-header h1 {
        font-size: 1.12rem;
        line-height: 1.2;
    }

    .browse-filter-toggle {
        display: inline-flex;
        min-width: 92px;
        min-height: 36px;
        padding: 8px 12px;
        border-radius: 4px;
        font-size: 0.78rem;
        text-transform: uppercase;
    }

    .browse-filters {
        order: -1;
        position: static;
        border: 1px solid rgba(47, 128, 255, 0.34);
        background: rgba(11, 22, 41, 0.96);
    }

    .browse-filter-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 42px;
        padding: 10px 12px;
        border: 0;
        border-radius: 0;
        background: rgba(29, 44, 69, 0.98);
        color: var(--text);
        font-size: 0.82rem;
        text-transform: uppercase;
    }

    .browse-filter-state {
        color: var(--muted);
        font-size: 0.72rem;
        font-weight: 700;
    }

    .browse-filter-content {
        display: none;
    }

    .browse-filters.is-open .browse-filter-content {
        display: block;
    }

    .browse-filters.is-open .browse-filter-header {
        border-bottom: 1px solid var(--line);
    }

    .filter-section {
        padding: 12px;
    }

    .filter-section h2 {
        margin: -12px -12px 0;
    }

    .browse-result {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 12px;
        padding: 12px 0;
    }

    .browse-result .result-poster {
        height: 144px;
    }

    .browse-result .result-poster img {
        width: auto;
        height: 144px !important;
    }

    .result-body {
        min-height: 144px;
    }

    .result-body h2 {
        font-size: 0.92rem;
    }

    .result-description {
        min-height: 58px;
        margin-bottom: 10px;
        padding: 8px 10px;
        -webkit-line-clamp: 2;
    }

    .result-actions {
        justify-content: flex-start;
        gap: 6px;
    }

    .result-action {
        min-width: 0;
        min-height: 34px;
        padding: 8px 10px;
        font-size: 0.7rem;
    }
}
/* END source style.css:3295-3411 mobile-browse */

/* BEGIN source style.css:3548-3586 small-mobile-browse */
@media (max-width: 560px) {
    .page-shell:has(.browse-page) {
        padding: 18px 12px 28px;
    }

    .browse-result {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 10px;
    }

    .browse-result .result-poster {
        height: 123px;
    }

    .browse-result .result-poster img {
        width: auto;
        height: 123px !important;
    }

    .result-body {
        min-height: 123px;
    }

    .result-meta {
        font-size: 0.72rem;
    }

    .result-description {
        display: none;
    }

    .result-actions {
        margin-top: 8px;
    }

    .sort-control {
        justify-content: space-between;
    }

    .sort-control .filter-select {
        width: min(180px, 58vw);
    }
}
/* END source style.css:3548-3586 small-mobile-browse */
