
:root {
    --bn-bg: #0f172a;
    --bn-surface: #1e293b;
    --bn-elevated: #334155;
    --bn-line: rgba(148, 163, 184, 0.12);
    --bn-text: #f8fafc;
    --bn-muted: #94a3b8;
    --bn-accent: #38bdf8;
    --bn-accent-2: #fb7185;
    --bn-radius: 20px;
    --bn-max: 1320px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }

body {
    background: var(--bn-bg);
    color: var(--bn-text);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.55;
}

a { text-decoration: none; color: inherit; }

.bn-container { max-width: var(--bn-max); margin: 0 auto; padding: 0 20px; }

/* Header — centered search, segment nav */
.bn-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--bn-line);
    padding: 16px 0 0;
}
.bn-header-top {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    padding-bottom: 14px;
}
.bn-brand {
    font-size: 1.125rem; font-weight: 800; letter-spacing: -0.03em;
    flex-shrink: 0;
}
.bn-brand span { color: var(--bn-accent); }

.bn-search {
    flex: 1; min-width: 200px; max-width: 480px; margin: 0 auto;
    display: flex; align-items: center; gap: 10px;
    background: var(--bn-surface); border: 1px solid var(--bn-line);
    border-radius: 999px; height: 44px; padding: 0 18px;
}
.bn-search:focus-within { border-color: var(--bn-accent); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15); }
.bn-search input { flex: 1; border: none; background: transparent; outline: none; color: var(--bn-text); font-size: 0.875rem; }
.bn-search i { color: var(--bn-muted); }

/* Segmented control */
.bn-segments {
    display: flex; gap: 4px; overflow-x: auto; padding-bottom: 12px;
    scrollbar-width: none;
}
.bn-segments::-webkit-scrollbar { display: none; }
.bn-seg {
    flex-shrink: 0;
    padding: 8px 18px; border-radius: 999px;
    font-size: 0.8125rem; font-weight: 600;
    color: var(--bn-muted); background: transparent;
    border: 1px solid transparent;
    transition: all 0.15s;
}
.bn-seg:hover { color: var(--bn-text); background: var(--bn-surface); }
.bn-seg.is-active {
    background: var(--bn-accent); color: #0f172a; border-color: var(--bn-accent);
    font-weight: 700;
}

/* Bento grid */
.bn-main { padding: 28px 0 72px; }

.bn-block-label {
    font-size: 0.6875rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--bn-accent); margin: 36px 0 16px;
}
.bn-block-label:first-child { margin-top: 8px; }

.bn-bento {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.bn-card {
    background: var(--bn-surface);
    border: 1px solid var(--bn-line);
    border-radius: var(--bn-radius);
    overflow: hidden;
    transition: transform 0.22s, border-color 0.22s;
    display: flex; flex-direction: column;
    min-height: 0;
}
.bn-card:hover {
    transform: scale(1.02);
    border-color: rgba(56, 189, 248, 0.4);
}
.bn-card:nth-child(6n+1) { grid-column: span 2; }
.bn-card:nth-child(6n+1) .bn-card-visual { aspect-ratio: 21/9; }

.bn-card-visual {
    aspect-ratio: 16/10; background: var(--bn-elevated); overflow: hidden; position: relative;
}
.bn-card-visual img { width: 100%; height: 100%; object-fit: cover; }
.bn-card-visual::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.85) 0%, transparent 55%);
}
.bn-card-body { padding: 14px 16px 16px; margin-top: -48px; position: relative; z-index: 1; }
.bn-card-body h3 {
    font-size: 0.9375rem; font-weight: 700; line-height: 1.3;
    margin-bottom: 6px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bn-card-desc {
    font-size: 0.75rem; color: var(--bn-muted); line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    margin-bottom: 10px;
}
.bn-card-stats {
    display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.6875rem; font-weight: 600;
}
.bn-genre { color: var(--bn-accent-2); text-transform: uppercase; letter-spacing: 0.04em; }
.bn-online { color: #4ade80; }
.bn-score { color: #fbbf24; }

/* Uniform grid for search/tags */
.bn-uniform {
    display: grid; grid-template-columns: 1fr; gap: 12px;
}
.bn-uniform .bn-card:nth-child(6n+1) { grid-column: span 1; }
.bn-uniform .bn-card:nth-child(6n+1) .bn-card-visual { aspect-ratio: 16/10; }

.bn-page-head { padding: 28px 0 8px; }
.bn-page-head h1 { font-size: 1.625rem; font-weight: 800; letter-spacing: -0.03em; }
.bn-page-head p { font-size: 0.875rem; color: var(--bn-muted); margin-top: 6px; }

.bn-prose {
    background: var(--bn-surface); border: 1px solid var(--bn-line);
    border-radius: var(--bn-radius); padding: 28px; margin: 24px 0;
}
.bn-prose h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 12px; color: var(--bn-accent); }
.bn-prose p { font-size: 0.9375rem; color: var(--bn-muted); line-height: 1.7; }

/* Footer */
.bn-footer {
    border-top: 1px solid var(--bn-line);
    padding: 48px 0 36px; margin-top: 16px;
    background: linear-gradient(to bottom, transparent, rgba(30, 41, 59, 0.5));
}
.bn-footer h2 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 12px; }
.bn-footer p { font-size: 0.8125rem; color: var(--bn-muted); line-height: 1.65; max-width: 720px; }
.bn-footer-bottom {
    margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--bn-line);
    display: flex; flex-direction: column; gap: 12px; align-items: center;
    font-size: 0.75rem; color: var(--bn-muted); text-align: center;
}
.bn-footer-links { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.bn-footer-links a { color: var(--bn-muted); font-weight: 600; }
.bn-footer-links a:hover { color: var(--bn-accent); }

#bnScrollTop {
    position: fixed; bottom: 24px; right: 20px; width: 46px; height: 46px;
    background: var(--bn-accent); color: #0f172a; border-radius: 14px;
    display: none; align-items: center; justify-content: center;
    cursor: pointer; z-index: 1001; font-size: 1rem;
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.25);
}

.privacy-con {
    background: var(--bn-surface); border: 1px solid var(--bn-line);
    border-radius: var(--bn-radius); padding: 28px; min-height: 480px;
}
.privacy-con ul { width: 100% !important; }
.privacy-con h1, .privacy-con h2, .privacy-con h3, .privacy-con div,
.privacy-con ul, .privacy-con ul li, .privacy-con p, .privacy-con span {
    word-wrap: break-word !important; text-wrap: initial !important; margin-left: 0 !important;
}
.privacy-con h2 { margin-top: 24px; color: var(--bn-text); }
.privacy-con p { line-height: 1.65; margin: 14px 0; color: var(--bn-muted); }

@media (min-width: 768px) {
    .bn-bento { grid-template-columns: repeat(4, 1fr); gap: 16px; }
    .bn-uniform { grid-template-columns: repeat(2, 1fr); }
    .bn-footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (min-width: 1024px) {
    .bn-uniform { grid-template-columns: repeat(3, 1fr); }
}
