/* E:\13 community-directory composition, translated to the light SuperBomb palette. */
:root {
    --directory-ink: #182a43;
    --directory-copy: #60738e;
    --directory-muted: #8190a5;
    --directory-line: rgba(45, 67, 98, 0.14);
    --directory-line-strong: rgba(45, 67, 98, 0.22);
    --directory-orange: #f05a2a;
    --directory-blue: #3867e8;
    --directory-surface: rgba(255, 255, 255, 0.84);
}

body.page-live,
body.page-fashion {
    color: var(--directory-ink);
    background:
        radial-gradient(circle at 7% 16%, rgba(240, 90, 42, 0.09), transparent 26rem),
        radial-gradient(circle at 91% 20%, rgba(56, 103, 232, 0.09), transparent 28rem),
        linear-gradient(180deg, #fffdfa 0%, #f5f8fc 52%, #eef3fa 100%);
}

body.page-live main,
body.page-fashion main {
    padding: 118px 0 88px !important;
}

body.page-live main > .container,
body.page-fashion main > .container {
    width: min(calc(100% - 48px), 1400px);
    max-width: 1400px;
}

body.page-live .page-header,
body.page-fashion .page-header {
    padding: 42px 0 20px;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    text-align: left;
}

.directory-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 34px;
}

.directory-intro-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.directory-eyebrow {
    display: block;
    width: 100%;
    margin: 0 0 18px;
    color: var(--directory-orange);
    font-size: 0.76rem;
    font-weight: 850;
    line-height: 1;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.directory-control-label {
    display: block;
    color: var(--directory-orange);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

body.page-live .page-title,
body.page-fashion .page-title {
    margin: 0 0 10px;
    color: var(--directory-ink);
    font-size: clamp(2.65rem, 4vw, 4.15rem);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -0.055em;
}

body.page-live .page-subtitle,
body.page-fashion .page-subtitle {
    max-width: 760px;
    margin: 0;
    color: var(--directory-copy);
    font-size: 0.98rem;
    line-height: 1.8;
}

.directory-result-count {
    --directory-result-accent: var(--directory-orange);
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    margin: 0 0 10px;
    padding: 0;
    color: #5f7088;
    font-size: 0.7rem;
    font-weight: 780;
    line-height: 1;
    white-space: nowrap;
}

body.page-fashion .directory-result-count {
    --directory-result-accent: var(--directory-blue);
}

.directory-result-count::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--directory-result-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--directory-result-accent) 13%, transparent);
}

.directory-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: end;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--directory-line);
}

.directory-control-label {
    margin-bottom: 10px;
    color: var(--directory-muted);
    font-size: 0.65rem;
    letter-spacing: 0.09em;
}

body.page-live .platform-filter,
body.page-fashion .style-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    margin: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
}

.directory-filter-block {
    min-width: 0;
    background: transparent !important;
    box-shadow: none !important;
}

body.page-live .filter-btn,
body.page-fashion .filter-btn {
    min-height: 40px;
    margin: 0;
    padding: 8px 15px;
    border: 1px solid var(--directory-line) !important;
    border-radius: 9px !important;
    color: #617087 !important;
    background: rgba(255, 255, 255, 0.55) !important;
    box-shadow: none !important;
    font-size: 0.82rem;
    font-weight: 720;
    transform: none;
}

body.page-live .filter-btn:hover,
body.page-fashion .filter-btn:hover,
body.page-live .filter-btn:focus-visible,
body.page-fashion .filter-btn:focus-visible {
    color: var(--directory-ink) !important;
    border-color: var(--directory-line-strong) !important;
    background: #ffffff !important;
    outline: none;
    transform: none;
}

body.page-live .filter-btn.active {
    color: #c84b24 !important;
    border-color: rgba(240, 90, 42, 0.34) !important;
    background: rgba(240, 90, 42, 0.1) !important;
}

body.page-fashion .filter-btn.active {
    color: #2f59c8 !important;
    border-color: rgba(56, 103, 232, 0.32) !important;
    background: rgba(56, 103, 232, 0.09) !important;
}

.directory-search-block {
    display: block;
    min-width: 0;
}

.directory-search-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
}

body.page-live .search-container,
body.page-fashion .search-container {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    margin: 0;
    padding: 0 6px 0 16px;
    border: 1px solid var(--directory-line);
    border-radius: 11px;
    color: var(--directory-copy);
    background: rgba(255, 255, 255, 0.64);
    box-shadow: none;
    transform: none;
}

body.page-live .search-container:hover,
body.page-fashion .search-container:hover,
body.page-live .search-container:focus-within,
body.page-fashion .search-container:focus-within {
    border-color: rgba(56, 103, 232, 0.3);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(56, 103, 232, 0.07);
    transform: none;
}

body.page-live .search-input,
body.page-fashion .search-input {
    width: 100%;
    height: 44px;
    min-width: 0;
    margin: 0;
    padding: 0 10px 0 2px;
    border: 0;
    line-height: 1.4;
    color: var(--directory-ink);
    background: transparent;
    box-sizing: border-box;
}

body.page-live .search-btn,
body.page-fashion .search-btn {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    display: grid;
    place-items: center;
}

body.page-live .search-icon,
body.page-fashion .search-icon {
    display: block;
    line-height: 1;
}

.live-submission-trigger {
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    gap: 10px;
    margin: 26px 0;
    padding: 12px 16px;
    border: 1px solid var(--directory-line);
    border-radius: 12px;
    color: var(--directory-ink);
    background: rgba(255, 255, 255, 0.52);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 760;
    text-align: left;
    cursor: pointer;
}

.live-submission-trigger:hover,
.live-submission-trigger:focus-visible {
    color: #c84b24;
    border-color: rgba(240, 90, 42, 0.28);
    background: #ffffff;
    outline: none;
}

body.page-live .live-grid,
body.page-fashion .fashion-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

body.page-live .live-card,
body.page-fashion .fashion-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--directory-line) !important;
    border-radius: 18px !important;
    background: var(--directory-surface) !important;
    box-shadow: 0 14px 34px rgba(35, 55, 84, 0.06) !important;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

body.page-live .live-card:hover,
body.page-fashion .fashion-card:hover {
    border-color: var(--directory-line-strong) !important;
    box-shadow: 0 18px 40px rgba(35, 55, 84, 0.1) !important;
    transform: translateY(-4px);
}

body.page-live .live-card::after {
    display: none !important;
}

body.page-live .prompt-card {
    display: none !important;
}

body.page-live .live-thumbnail,
body.page-fashion .fashion-thumbnail {
    position: relative;
    width: 100%;
    height: auto !important;
    overflow: hidden;
    border-radius: 0 !important;
    background: #edf2f8;
}

body.page-live .live-thumbnail {
    /* The live artwork is supplied at 381x155. Preserve that ratio so the
       browser does not enlarge it vertically and soften the linework. */
    aspect-ratio: 381 / 155;
}

body.page-fashion .fashion-thumbnail {
    aspect-ratio: 16 / 10;
}

body.page-live .live-thumbnail img,
body.page-fashion .fashion-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 260ms ease;
}

body.page-live .live-thumbnail img {
    image-rendering: -webkit-optimize-contrast;
}

body.page-live .live-card:hover .live-thumbnail img {
    transform: none;
}

body.page-fashion .fashion-card:hover .fashion-thumbnail img {
    transform: scale(1.035);
}

body.page-live .live-badge,
body.page-fashion .fashion-badge {
    right: 11px;
    bottom: 11px;
    top: auto;
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #ffffff;
    background: rgba(18, 31, 49, 0.78);
    box-shadow: none;
    backdrop-filter: blur(8px);
}

body.page-live .live-info,
body.page-fashion .fashion-info {
    padding: 17px 18px 19px;
}

body.page-live .live-title,
body.page-fashion .fashion-title {
    height: auto;
    min-height: 0;
    margin: 0 0 12px;
    color: var(--directory-ink);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.45;
    text-align: left;
}

body.page-live .live-streamer,
body.page-fashion .fashion-player {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #42536c;
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

body.page-live .streamer-avatar,
body.page-fashion .player-avatar {
    display: block;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border: 1px solid rgba(240, 90, 42, 0.22);
}

body.page-live .live-stats {
    margin-top: 11px;
    color: var(--directory-muted);
}

body.page-live .live-platform {
    color: #c5532f;
    font-size: 0;
    font-weight: 780;
}

body.page-live .live-platform::before {
    content: "观看直播 ↗";
    font-size: 0.78rem;
}

body.page-live .live-id {
    color: #738198;
    font-size: 0.72rem;
    font-weight: 600;
}

body.page-fashion .fashion-tags {
    gap: 6px;
    margin-top: 12px;
}

body.page-fashion .fashion-tag {
    color: #5f7088;
    border: 1px solid rgba(95, 112, 136, 0.13);
    background: rgba(95, 112, 136, 0.07);
}

body.page-live .pagination,
body.page-fashion .pagination {
    position: static;
    display: flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 30px auto 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

body.page-live .page-number,
body.page-live .page-btn,
body.page-fashion .page-item,
body.page-fashion .page-btn {
    min-width: 38px;
    min-height: 38px;
    border: 1px solid var(--directory-line);
    border-radius: 9px;
    color: var(--directory-copy);
    background: rgba(255, 255, 255, 0.52);
    box-shadow: none;
}

body.page-live .page-number.active,
body.page-fashion .page-item.active {
    color: #ffffff;
    border-color: transparent;
    background: var(--directory-orange);
}

body.page-fashion .page-item.active {
    background: var(--directory-blue);
}

body.page-live .empty-state,
body.page-fashion .empty-state {
    min-height: 240px;
    margin-top: 24px;
    border: 1px dashed var(--directory-line-strong);
    border-radius: 16px;
    color: var(--directory-copy);
    background: rgba(255, 255, 255, 0.44);
}

@media (max-width: 980px) {
    body.page-live main > .container,
    body.page-fashion main > .container {
        width: min(calc(100% - 32px), 920px);
    }

    .directory-controls {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    body.page-live .live-grid,
    body.page-fashion .fashion-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    body.page-live main,
    body.page-fashion main {
        padding-top: 92px !important;
    }

    body.page-live main > .container,
    body.page-fashion main > .container {
        width: calc(100% - 24px);
    }

    .directory-intro {
        display: block;
        margin-bottom: 28px;
    }

    .directory-result-count {
        margin-top: 14px;
    }

    body.page-live .page-title,
    body.page-fashion .page-title {
        font-size: clamp(2.35rem, 13vw, 3.2rem);
    }

    body.page-live .live-grid,
    body.page-fashion .fashion-grid {
        grid-template-columns: 1fr;
    }

    body.page-live .pagination,
    body.page-fashion .pagination {
        max-width: 100%;
        flex-wrap: wrap;
    }
}
