* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Manrope", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(1200px 700px at 88% -12%, #32283a 0%, rgba(50, 40, 58, 0) 72%),
        radial-gradient(900px 620px at -12% 8%, #27242f 0%, rgba(39, 36, 47, 0) 74%),
        linear-gradient(180deg, #1d2026 0%, #15171b 100%);
    color: #eef1f5;
    min-height: 100vh;
    padding: 30px 18px;
}

.container {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 16px;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0 0 30px;
}

.site-brand {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    line-height: 1;
}

.site-title-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    line-height: 1;
    color: #f3f6fb;
    text-decoration: none;
    transition: color 0.18s ease, text-shadow 0.18s ease, transform 0.18s ease;
}

.site-title-link:hover {
    color: #ffd6eb;
    text-shadow: 0 0 16px rgba(255, 140, 197, 0.3);
    transform: translateY(-1px);
}

.site-title-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffe8f4;
    background: linear-gradient(140deg, #ff4fa0 0%, #ff7fbd 100%);
    box-shadow: 0 8px 18px rgba(255, 79, 160, 0.24);
    font-size: 0.88rem;
}

.header-subtitle {
    margin: 7px 0 0;
    color: #b8c0cc;
    font-size: 0.92rem;
}

.topnav-bar {
    margin-top: 0;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 10px 18px;
    border-top: 1px solid #3f4754;
    border-bottom: 1px solid #3f4754;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    background: linear-gradient(180deg, rgba(36, 41, 49, 0.92) 0%, rgba(30, 34, 41, 0.92) 100%);
}

.gender-filter,
.topnav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gender-pill,
.topnav-link,
.gender-menu-toggle,
.page-link,
.scroll-btn {
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.gender-pill {
    height: 36px;
    border: 1px solid #5f4a67;
    background: rgba(48, 54, 64, 0.8);
    color: #dbe2ec;
    text-decoration: none;
    border-radius: 999px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    font-weight: 600;
}

.topnav-link {
    height: 36px;
    border: 0;
    background: transparent;
    color: #cfd7e3;
    text-decoration: none;
    border-radius: 0;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    font-weight: 600;
    position: relative;
    transition: color 0.18s ease, transform 0.18s ease, text-shadow 0.18s ease;
}

.topnav-link i {
    font-size: 0.8rem;
}

.topnav-link::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #ff4fa0 0%, #ff7fbd 100%);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.gender-pill:hover {
    background: rgba(58, 64, 76, 0.9);
    border-color: #8b6e99;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(255, 127, 189, 0.18);
}

.topnav-link:hover {
    color: #ffe8f4;
    transform: translateY(-1px);
    text-shadow: 0 0 14px rgba(255, 127, 189, 0.35);
}

.topnav-link:hover::after,
.topnav-link:focus-visible::after {
    transform: scaleX(1);
}

.gender-pill.is-active {
    background: linear-gradient(90deg, #ff4fa0 0%, #ff7fbd 100%);
    border-color: #ce7dac;
    color: #fff;
}

.topnav-link.is-active {
    color: #ffd4e9;
    text-shadow: 0 0 12px rgba(255, 127, 189, 0.28);
}

.topnav-link.is-active::after {
    transform: scaleX(1);
}

.gender-menu-toggle {
    display: none;
    height: 36px;
    border: 1px solid #5f4a67;
    background: rgba(48, 54, 64, 0.8);
    color: #dbe2ec;
    border-radius: 10px;
    padding: 0 12px;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
}

.gender-menu-toggle:hover {
    background: rgba(58, 64, 76, 0.92);
    border-color: #8b6e99;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.gender-menu-panel {
    display: block;
}

.gender-menu-head {
    display: none;
}

.gender-menu-close {
    border: 0;
    background: transparent;
    color: #e5ecf6;
    font-size: 1rem;
    cursor: pointer;
}

.gender-menu-backdrop {
    display: none;
}

.list-heading {
    margin: 0 0 14px;
    font-size: 1rem;
    color: #cbd4e0;
}

.grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
    justify-content: center;
    background: linear-gradient(180deg, #23262d 0%, #1d2026 100%);
    border: 1px solid #3c4450;
    border-radius: 16px;
    padding: 18px;
}

.card {
    position: relative;
    background: linear-gradient(180deg, #2b313a 0%, #272c34 100%);
    border-radius: 14px;
    overflow: hidden;
    isolation: isolate;
    padding: 12px 12px 10px;
    width: min(348px, 100%);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(120% 80% at 8% 0%, rgba(255, 127, 189, 0.22) 0%, rgba(255, 127, 189, 0) 55%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.card:hover,
.card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
    background: linear-gradient(180deg, #323944 0%, #2a2f38 100%);
}

.card:hover::before,
.card:focus-within::before {
    opacity: 1;
}

.thumb-link {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    border-radius: 10px;
}

.thumb-link:focus-visible,
.user a:focus-visible,
.gender-pill:focus-visible,
.topnav-link:focus-visible,
.gender-menu-toggle:focus-visible,
.page-link:focus-visible,
.scroll-btn:focus-visible,
.similar-card:focus-visible {
    outline: 2px solid #ff7fbd;
    outline-offset: 2px;
}

.thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #3c4451;
    margin-bottom: 10px;
    border-radius: 10px;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.card:hover .thumb img {
    transform: scale(1.03);
}

.thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6b4c68 0%, #8b5f86 100%);
    color: #f7fafc;
    font-weight: 800;
}

.badge-live {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(90deg, #ff4fa0 0%, #ff7fbd 100%);
    color: #fff;
    padding: 5px 9px;
    font-size: 0.72rem;
    font-weight: 800;
    border-radius: 6px;
    box-shadow: 0 8px 16px rgba(255, 79, 160, 0.34);
}

.content {
    padding: 12px 12px 14px;
}

.user {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user a {
    color: #eef1f5;
    text-decoration: none;
}

.user a:hover {
    color: #ff8cc5;
    text-shadow: 0 0 14px rgba(255, 140, 197, 0.24);
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #a9b0bc;
    font-size: 0.84rem;
}

.meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.empty-state {
    width: 100%;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #4a5461;
    border-radius: 12px;
    color: #c4ccd8;
}

.pagination {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-link {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 8px;
    border: 1px solid #4a5461;
    background: rgba(39, 45, 54, 0.74);
    color: #eef1f5;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
}

.page-link:hover {
    background: rgba(57, 64, 76, 0.9);
    border-color: #7a647f;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(255, 127, 189, 0.16);
}

.page-link.is-active {
    background: linear-gradient(90deg, #ff4fa0 0%, #ff7fbd 100%);
    border-color: #c56fa0;
    color: #fff;
}

.page-link.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.results-summary {
    margin-top: 12px;
    text-align: center;
    color: #9fa7b3;
    font-size: 0.84rem;
}

.site-footer {
    margin-top: 18px;
    padding: 10px 4px 2px;
    text-align: center;
    color: #8f99a7;
    font-size: 0.76rem;
    text-transform: none;
}

.site-description {
    margin: 14px auto 0;
    width: 100%;
    max-width: none;
    text-align: left;
    color: #7f8896;
    font-size: 0.84rem;
    line-height: 1.6;
}

.external-links {
    margin-top: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.external-link {
    height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    color: #b7c0cf;
    background: rgba(22, 26, 32, 0.9);
    border: 1px solid #313a46;
    font-size: 0.8rem;
    font-weight: 700;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.external-link i {
    font-size: 0.84rem;
}

.external-link:hover {
    color: #e8edf6;
    background: rgba(30, 35, 43, 0.98);
    border-color: #4f4356;
    transform: translateY(-1px);
}

.scroll-controls {
    position: fixed;
    right: 14px;
    bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1400;
}

.scroll-btn {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(20, 25, 33, 0.45);
    color: #f0f4fa;
    border-radius: 10px;
    cursor: pointer;
}

.scroll-btn:hover {
    background: rgba(44, 50, 62, 0.75);
    border-color: rgba(255, 255, 255, 0.32);
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.22);
}

.chat-page-layout {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.stream-section,
.similar-section {
    background: linear-gradient(180deg, #23262d 0%, #1d2026 100%);
    border: 1px solid #3c4450;
    border-radius: 16px;
}

.stream-section {
    padding: 14px;
}

.stream-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.stream-head-left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 79, 160, 0.18);
    color: #ff98ca;
    font-size: 0.78rem;
    font-weight: 800;
}

.stream-user {
    margin: 0;
    font-weight: 700;
    color: #eef1f5;
    font-size: 1rem;
    line-height: 1.2;
}

.stream-player-wrap {
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #1b1f27;
}

.stream-embed {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.stream-stats-row {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: #aeb6c3;
    font-size: 0.86rem;
}

.stream-stats-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.broadcaster-details {
    margin-top: 14px;
}

.details-title {
    margin: 0 0 12px;
    font-size: 1rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px 14px;
}

.detail-item {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-item--wide {
    grid-column: 1 / -1;
}

.detail-label {
    color: #99a6b6;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.45px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.detail-value {
    color: #ebf0f6;
    font-size: 0.95rem;
    font-weight: 600;
    word-break: break-word;
    line-height: 1.25;
}

.details-empty {
    color: #a7b0bc;
    font-size: 0.9rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-chip {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #d7deea;
    font-size: 0.78rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.tag-chip:hover {
    background: rgba(255, 127, 189, 0.2);
    color: #fff0f7;
    transform: translateY(-1px);
}

.similar-section {
    margin-top: 16px;
    padding: 14px;
}

.similar-title {
    margin: 0 0 12px;
    font-size: 1.05rem;
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
}

.similar-card {
    display: block;
    text-decoration: none;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    isolation: isolate;
    background: #262c35;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.similar-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(120% 80% at 8% 0%, rgba(255, 127, 189, 0.22) 0%, rgba(255, 127, 189, 0) 55%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.similar-card:hover,
.similar-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34);
    background: #303845;
}

.similar-card:hover::before,
.similar-card:focus-visible::before {
    opacity: 1;
}

.similar-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #333b47;
}

.similar-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #333b47;
    transition: transform 0.3s ease;
}

.similar-card:hover .similar-thumb {
    transform: scale(1.03);
}

.similar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(140deg, #3a2f43 0%, #2a313c 100%);
    color: #dbe2eb;
    font-size: 0.82rem;
    font-weight: 700;
}

.similar-body {
    padding: 8px 10px 10px;
}

.similar-user {
    color: #edf2f7;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 4px;
    word-break: break-word;
}

.similar-meta {
    color: #aeb6c3;
    font-size: 0.8rem;
}

.chat-back-row {
    margin-top: 14px;
    display: flex;
    justify-content: flex-start;
}

@media (max-width: 560px) {
    body {
        padding: 20px 12px;
    }

    .site-brand {
        font-size: 1.5rem;
    }

    .gender-menu-toggle {
        display: inline-flex;
    }

    .topnav-bar {
        margin-top: 0;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .gender-menu-panel {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 88vw);
        height: 100vh;
        z-index: 1400;
        background: linear-gradient(180deg, #23262d 0%, #1d2026 100%);
        border-left: 1px solid #3c4450;
        padding: 14px;
        transform: translateX(100%);
        transition: none;
        overflow-y: auto;
    }

    .gender-menu-panel.is-open {
        transform: translateX(0);
        transition: transform 0.2s ease;
    }

    .gender-menu-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 12px;
    }

    .gender-menu-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1350;
        background: rgba(9, 12, 17, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .gender-menu-backdrop.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .gender-filter,
    .topnav {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .gender-pill,
    .topnav-link {
        width: 100%;
        justify-content: center;
        min-height: 40px;
    }

    .pagination {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .page-link {
        flex: 0 0 auto;
        min-width: 44px;
        height: 44px;
        font-size: 0.82rem;
    }

}

body.age-gate-open {
    overflow: hidden;
}

.age-gate-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(10, 12, 16, 0.82);
    backdrop-filter: blur(4px);
}

.age-gate-card {
    width: min(560px, 100%);
    border-radius: 16px;
    border: 1px solid #4b5260;
    background: linear-gradient(180deg, #292d35 0%, #22262d 100%);
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.46);
    padding: 22px;
    text-align: center;
}

.age-gate-title {
    margin: 0 0 10px;
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff2fa;
}

.age-gate-text {
    margin: 0;
    color: #d6deea;
    font-size: 0.95rem;
    line-height: 1.45;
}

.age-gate-actions {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.age-gate-btn {
    height: 40px;
    border-radius: 10px;
    padding: 0 14px;
    border: 1px solid #566073;
    background: rgba(53, 60, 72, 0.88);
    color: #eef3fa;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.age-gate-btn:hover {
    transform: translateY(-1px);
    border-color: #8b7395;
    background: rgba(64, 72, 86, 0.92);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.24);
}

.age-gate-btn--primary {
    border-color: #cc78a6;
    background: linear-gradient(90deg, #ff4fa0 0%, #ff7fbd 100%);
    color: #fff;
}

.age-gate-btn--primary:hover {
    border-color: #e59bc5;
    box-shadow: 0 14px 26px rgba(255, 79, 160, 0.35);
}

.age-gate-btn--ghost {
    background: rgba(45, 52, 63, 0.85);
}

@supports not (aspect-ratio: 1 / 1) {
    .thumb,
    .similar-thumb-wrap,
    .stream-player-wrap {
        height: 0;
    }

    .thumb::before,
    .similar-thumb-wrap::before,
    .stream-player-wrap::before {
        content: "";
        display: block;
    }

    .thumb::before,
    .similar-thumb-wrap::before {
        padding-top: 75%;
    }

    .stream-player-wrap::before {
        padding-top: 56.25%;
    }

    .thumb > *,
    .similar-thumb-wrap > *,
    .stream-player-wrap > * {
        position: absolute;
        inset: 0;
    }

}
