/*
Theme Name: BPP
Theme URI: https://bedboundedpotato.com/
Description: Main theme for BBP Translations
Author: Sammie
Template: twentytwentyfive
Version: 1.0.0
Text Domain: bpp
*/

/* ----------------------------------------
   Design tokens
---------------------------------------- */

:root {
    --bn-bg: #0b0f17;
    --bn-surface: #101826;
    --bn-surface-2: #0f1522;
    --bn-card: #111827;
    --bn-card-hover: #162033;
    --bn-text: #f3f6fb;
    --bn-text-soft: #a8b3c7;
    --bn-muted: #7f8aa3;
    --bn-line: rgba(255, 255, 255, 0.08);
    --bn-accent: #4f8cff;
    --bn-accent-2: #7c4dff;
    --bn-gold: #ffb341;
    --bn-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);

    --bn-radius-lg: 24px;
    --bn-radius-md: 18px;
    --bn-radius-sm: 12px;

    --bn-container: 1320px;
    --bn-featured-shell-width: 1700px;

    --bn-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --bn-line-base: 1.6;
    --bn-letter-tight: -0.03em;
    --bn-letter-normal: -0.01em;

    --bn-gutter: clamp(16px, 2.4vw, 24px);
    --bn-section-gap: clamp(24px, 3vw, 34px);

    --bn-text-base: clamp(15px, 0.92rem + 0.12vw, 16px);
    --bn-h1: clamp(2rem, 1.42rem + 1.9vw, 3.75rem);
    --bn-h2: clamp(1.4rem, 1.08rem + 1.05vw, 2.4rem);
    --bn-h3: clamp(1.05rem, 0.94rem + 0.55vw, 1.5rem);

    --bn-featured-padding: clamp(18px, 2.2vw, 32px);
    --bn-featured-gap: clamp(16px, 2vw, 32px);
    --bn-featured-cover-width: clamp(150px, 23vw, 320px);

    --bn-featured-center-width: clamp(320px, 72vw, 820px);
    --bn-featured-card-height: clamp(330px, 42vw, 500px);
    --bn-featured-viewport-height: clamp(370px, 47vw, 560px);
    --bn-featured-carousel-gap: clamp(16px, 1.6vw, 24px);
    --bn-featured-arrow-gap: clamp(8px, 1vw, 18px);

    --bn-featured-scale-focus: 1;
    --bn-featured-scale-rest: 0.72;
    --bn-featured-scale-duration: 420ms;
    --bn-featured-scale-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --bn-featured-rest-opacity: 0.58;
    --bn-featured-focus-opacity: 1;

    --bn-row-card-width: clamp(170px, 16vw, 224px);
    --bn-row-card-height: clamp(338px, 37vw, 432px);
    --bn-row-card-cover-height: clamp(228px, 26vw, 304px);
    --bn-row-card-body-height: calc(var(--bn-row-card-height) - var(--bn-row-card-cover-height));
    --bn-row-card-title-rows: 2;
    --bn-row-card-title-height: calc((1.4em * var(--bn-row-card-title-rows)) + 0.22em);
    --bn-row-card-meta-height: 22px;
    --bn-row-gap: 14px;
}

/* ----------------------------------------
   Base
---------------------------------------- */

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html,
body {
    overflow-x: hidden;
}

body {
    background: linear-gradient(180deg, #080c13 0%, #0b1019 100%);
    color: var(--bn-text);
    font-family: var(--bn-font-sans);
    font-size: var(--bn-text-base);
    line-height: var(--bn-line-base);
    font-weight: 400;
    letter-spacing: var(--bn-letter-normal);
}

button,
input,
select,
textarea {
    font: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.wp-site-blocks,
main.wp-block-group,
main.wp-block-post-content {
    background: transparent;
}

/* ----------------------------------------
   Typography
---------------------------------------- */

p,
li,
ul,
ol,
blockquote,
.wp-block-paragraph,
.wp-block-list,
.wp-block-post-excerpt,
.wp-block-navigation-item,
.wp-block-site-title,
.wp-block-search__input,
.wp-block-button__link {
    font-family: var(--bn-font-sans);
}

h1,
h2,
h3,
h4,
h5,
h6,
.wp-block-post-title,
.wp-block-query-title,
.wp-block-site-title,
.bn-row-title,
.bn-card-title,
.bn-featured-content h1,
.bn-featured-content h2,
.bn-featured-content h3 {
    font-family: var(--bn-font-sans);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: var(--bn-letter-tight);
    text-wrap: balance;
}

h1,
.wp-block-post-title {
    font-size: var(--bn-h1);
}

h2,
.wp-block-query-title,
.bn-row-title {
    font-size: var(--bn-h2);
}

h3,
.bn-featured-content h3 {
    font-size: var(--bn-h3);
}

h4 {
    font-size: 1.125rem;
}

h5 {
    font-size: 1rem;
}

h6 {
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

p,
li,
.wp-block-paragraph,
.wp-block-post-excerpt,
.bn-card-meta,
.bn-featured-meta {
    line-height: 1.6;
}

small,
.wp-caption-text,
figcaption,
.bn-card-meta {
    font-size: 0.88rem;
}

strong,
b {
    font-weight: 700;
}

em,
i {
    font-style: italic;
}

/* ----------------------------------------
   Layout centering
---------------------------------------- */

header.wp-block-template-part > *,
header.site-header > * {
    width: min(100% - (var(--bn-gutter) * 2), var(--bn-container));
    max-width: var(--bn-container);
    margin-inline: auto;
    box-sizing: border-box;
}

header.wp-block-template-part *,
header.site-header * {
    min-width: 0;
    box-sizing: border-box;
}

/* ----------------------------------------
   Site header and nav
---------------------------------------- */

.wp-block-site-title,
.site-title {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.wp-block-navigation-item__label {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

header.wp-block-template-part,
header.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(8, 12, 19, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

footer.wp-block-template-part,
footer.site-footer {
    margin-top: clamp(40px, 5vw, 60px);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* ----------------------------------------
   Search
---------------------------------------- */

.bn-site-search input,
.wp-block-search__input {
    min-height: clamp(42px, 3vw, 46px);
    padding: 0 clamp(14px, 1.2vw, 18px);
    border: 1px solid var(--bn-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--bn-text);
    font-size: 0.95rem;
    font-weight: 500;
}

.bn-site-search button,
.wp-block-search__button {
    min-height: clamp(42px, 3vw, 46px);
    padding: 0 clamp(14px, 1.2vw, 18px);
    border: none;
    border-radius: 999px;
    background: var(--bn-accent);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
}

/* ----------------------------------------
   Featured hero card
---------------------------------------- */

.bn-featured-card {
    --bn-featured-bg: none;
    --bn-featured-card-fixed-height: clamp(290px, 38vw, 460px);
    --bn-featured-cover-column: clamp(150px, 24vw, 320px);

    --bn-featured-row-label: clamp(16px, 1.2vw, 22px);
    --bn-featured-row-title: clamp(70px, 8.6vw, 118px);
    --bn-featured-row-original-title: clamp(18px, 1.4vw, 24px);
    --bn-featured-row-author: clamp(18px, 1.4vw, 24px);
    --bn-featured-row-meta: clamp(24px, 1.8vw, 34px);
    --bn-featured-row-tags: clamp(28px, 2.1vw, 40px);

    --bn-featured-title-size: clamp(1.15rem, 0.86rem + 1.45vw, 2.55rem);
    --bn-featured-body-size: clamp(0.84rem, 0.8rem + 0.2vw, 1rem);
    --bn-featured-meta-size: clamp(0.78rem, 0.75rem + 0.16vw, 0.94rem);
    --bn-featured-tag-size: clamp(0.74rem, 0.72rem + 0.14vw, 0.9rem);

    position: relative;
    overflow: hidden;
    isolation: isolate;
    height: var(--bn-featured-card-fixed-height);
    min-height: var(--bn-featured-card-fixed-height);
    padding: var(--bn-featured-padding);
    border: 1px solid var(--bn-line);
    border-radius: var(--bn-radius-lg);
    background: #0d1420;
    box-shadow: var(--bn-shadow);
    box-sizing: border-box;
}

.bn-featured-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.75;
    pointer-events: none;
    background-image: var(--bn-featured-bg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.bn-featured-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(7, 10, 16, 0.96) 0%, rgba(7, 10, 16, 0.88) 34%, rgba(7, 10, 16, 0.64) 62%, rgba(7, 10, 16, 0.46) 100%),
        linear-gradient(180deg, rgba(8, 12, 19, 0.28) 0%, rgba(8, 12, 19, 0.42) 100%),
        radial-gradient(circle at 20% 20%, rgba(79, 140, 255, 0.08), transparent 30%),
        radial-gradient(circle at 80% 10%, rgba(124, 77, 255, 0.08), transparent 30%);
}

.bn-featured-card > * {
    position: relative;
    z-index: 2;
}

.bn-featured-card .wp-block-columns {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) var(--bn-featured-cover-column);
    align-items: stretch;
    gap: var(--bn-featured-gap);
    width: 100%;
    height: 100%;
    min-height: 0;
    margin-bottom: 0;
    box-sizing: border-box;
}

.bn-featured-card .wp-block-column {
    min-width: 0;
    min-height: 0;
    margin: 0 !important;
    flex-basis: auto !important;
}

.bn-featured-content {
    display: grid;
    grid-template-rows:
        var(--bn-featured-row-label)
        var(--bn-featured-row-title)
        var(--bn-featured-row-original-title)
        var(--bn-featured-row-author)
        var(--bn-featured-row-meta)
        minmax(0, 1fr)
        minmax(var(--bn-featured-row-tags), auto);
    align-content: stretch;
    row-gap: clamp(4px, 0.7vw, 10px);
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.bn-featured-slot {
    min-width: 0;
    min-height: 0;
}

.bn-featured-slot--label,
.bn-featured-slot--original-title,
.bn-featured-slot--author,
.bn-featured-slot--meta,
.bn-featured-slot--tags {
    overflow: hidden;
}

.bn-featured-slot--label,
.bn-featured-slot--original-title,
.bn-featured-slot--author,
.bn-featured-meta-text,
.bn-featured-original-title-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bn-featured-content > * {
    min-width: 0;
    max-width: 100%;
}

.bn-featured-content h1,
.bn-featured-content h2,
.bn-featured-content h3 {
    display: flex;
    align-items: center;
    height: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
    font-size: var(--bn-featured-title-size);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.bn-featured-content h1 a,
.bn-featured-content h2 a,
.bn-featured-content h3 a {
    display: -webkit-box;
    width: 100%;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    text-overflow: ellipsis;
    word-break: break-word;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.bn-featured-content h1 a:hover,
.bn-featured-content h2 a:hover,
.bn-featured-content h3 a:hover {
    color: inherit;
    text-decoration: none;
}

.bn-featured-content p {
    margin: 0;
    min-width: 0;
    max-width: 100%;
    color: var(--bn-text-soft);
    font-size: var(--bn-featured-body-size);
    line-height: 1.45;
}

.bn-featured-content .bn-featured-label {
    align-self: center;
    color: var(--bn-muted);
    font-size: clamp(0.72rem, 0.7rem + 0.14vw, 0.9rem);
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.bn-featured-content .bn-featured-author,
.bn-featured-content .bn-featured-original-title {
    align-self: center;
    color: var(--bn-text-soft);
    font-size: clamp(0.82rem, 0.78rem + 0.14vw, 0.96rem);
    line-height: 1.3;
}

.bn-featured-content .bn-featured-original-title {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--bn-muted);
}

.bn-featured-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    color: var(--bn-muted);
    font-size: var(--bn-featured-meta-size);
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

.bn-featured-meta > * {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bn-featured-description {
    display: -webkit-box;
    align-self: start;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    line-height: 1.45;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.bn-score {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    min-height: 28px;
    max-width: 100%;
    padding: 0 clamp(9px, 0.9vw, 14px);
    border: 1px solid rgba(255, 179, 65, 0.18);
    border-radius: 999px;
    background: rgba(255, 179, 65, 0.12);
    color: #ffd08a;
    font-weight: 600;
    line-height: 1;
    box-sizing: border-box;
}

.bn-tag-list {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    white-space: nowrap;
}

.bn-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 auto;
    min-height: clamp(26px, 2vw, 34px);
    max-width: 100%;
    padding: 0 clamp(8px, 0.9vw, 14px);
    border: 1px solid var(--bn-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--bn-text-soft);
    font-size: var(--bn-featured-tag-size);
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bn-featured-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.bn-featured-media a {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.bn-featured-media img {
    position: relative;
    z-index: 3;
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

/* ----------------------------------------
   Full-width book rows / slider
---------------------------------------- */

.bn-row-section {
    width: 100%;
}

.bn-row-section--bleed {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    padding-left: max(var(--bn-gutter), calc((100vw - var(--bn-container)) / 2));
    padding-right: max(var(--bn-gutter), calc((100vw - var(--bn-container)) / 2));
    overflow: visible;
    box-sizing: border-box;
}

.bn-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin-bottom: clamp(14px, 1.5vw, 18px);
    overflow: visible;
    box-sizing: border-box;
}

.bn-row-title {
    flex: 1 1 auto;
    min-width: 0;
}

.bn-row-more {
    flex: 0 0 auto;
    min-width: max-content;
    padding-left: 12px;
    text-align: right;
}

.bn-row-more a {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    max-width: 100%;
    white-space: nowrap;
}

.bn-row-slider {
    position: relative;
    width: 100%;
    min-height: calc(var(--bn-row-card-height) + 6px);
    overflow: visible;
}

.bn-row-slider__viewport {
    width: 100%;
    min-height: calc(var(--bn-row-card-height) + 6px);
    overflow-x: auto;
    overflow-y: visible;
    padding-top: 4px;
    padding-bottom: 0;
    box-sizing: border-box;
    cursor: grab;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scrollbar-gutter: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.28) rgba(255, 255, 255, 0.06);
    -webkit-overflow-scrolling: touch;
}

.bn-row-slider__viewport.is-dragging,
.bn-row-slider__viewport:active {
    cursor: grabbing;
    scroll-behavior: auto;
}

.bn-row-slider__viewport::-webkit-scrollbar {
    height: 12px;
}

.bn-row-slider__viewport::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

.bn-row-slider__viewport::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    background-clip: padding-box;
}

.bn-row-slider__viewport::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
    background-clip: padding-box;
}

.bn-card-grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: var(--bn-row-gap);
    width: max-content;
    min-width: 100%;
    min-height: calc(var(--bn-row-card-height) + 2px);
    padding-top: 2px;
    padding-bottom: 2px;
}

.bn-row-slider:not(.is-overflowing) .bn-card-grid {
    width: max-content;
    min-width: 100%;
    justify-content: flex-start;
}

.bn-card {
    position: relative;
    display: grid;
    grid-template-rows: var(--bn-row-card-cover-height) minmax(0, 1fr);
    flex: 0 0 var(--bn-row-card-width);
    width: var(--bn-row-card-width);
    max-width: var(--bn-row-card-width);
    height: var(--bn-row-card-height);
    min-height: var(--bn-row-card-height);
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--bn-line);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)), var(--bn-card);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
    scroll-snap-align: start;
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    box-sizing: border-box;
}

.bn-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.13);
    background: var(--bn-card-hover);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.bn-row-slider__viewport .bn-card:hover {
    transform: translateY(-4px);
}

.bn-card-cover {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0a0e16;
}

.bn-card-cover a {
    display: block;
    width: 100%;
    height: 100%;
}

.bn-card-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.bn-rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 12px;
    color: #161616;
    font-size: 0.92rem;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

.bn-rank-badge--1 {
    color: #241700;
    background: linear-gradient(180deg, #ffd95a, #ffb800);
    box-shadow: 0 8px 20px rgba(255, 184, 0, 0.30);
}

.bn-rank-badge--2 {
    color: #1b2430;
    background: linear-gradient(180deg, #e8edf5, #b8c2d1);
    box-shadow: 0 8px 20px rgba(184, 194, 209, 0.28);
}

.bn-rank-badge--3 {
    color: #fff7f0;
    background: linear-gradient(180deg, #d59a6a, #a86132);
    box-shadow: 0 8px 20px rgba(168, 97, 50, 0.28);
}

.bn-card-body {
    display: grid;
    grid-template-rows: 1fr var(--bn-row-card-title-height) var(--bn-row-card-meta-height) 1fr;
    align-items: center;
    row-gap: 8px;
    min-width: 0;
    min-height: 0;
    height: 100%;
    padding: 12px 12px 18px;
    text-align: center;
    box-sizing: border-box;
}

.bn-card-title {
    position: relative;
    z-index: 1;
    grid-row: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    color: var(--bn-text);
    font-size: clamp(0.92rem, 0.86rem + 0.18vw, 1rem);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.bn-card-title a {
    display: -webkit-box;
    width: 100%;
    overflow: hidden;
    color: inherit;
    text-align: center;
    text-decoration: none;
    text-overflow: ellipsis;
    word-break: break-word;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--bn-row-card-title-rows);
}

.bn-card-meta {
    position: relative;
    z-index: 1;
    grid-row: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
    min-height: var(--bn-row-card-meta-height);
    margin: 0;
    overflow: hidden;
    color: var(--bn-muted);
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    text-align: center;
    text-overflow: ellipsis;
}

.bn-card-meta.is-rating {
    justify-self: center;
    align-self: center;
    width: auto;
    max-width: 100%;
    min-height: 18px;
    margin-top: 4px;
    margin-bottom: 2px;
    padding: 3px 7px;
    border: 1px solid rgba(255, 179, 65, 0.18);
    border-radius: 999px;
    background: rgba(255, 179, 65, 0.12);
    color: #ffd08a;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.1;
}

/* ----------------------------------------
   Featured carousel
---------------------------------------- */

.bn-featured-carousel {
    --bn-featured-arrow-offset-left: 0px;
    --bn-featured-arrow-offset-right: 0px;

    position: relative;
    width: min(96vw, var(--bn-featured-shell-width));
    max-width: var(--bn-featured-shell-width);
    margin-inline: auto;
    padding-bottom: clamp(20px, 2.5vw, 34px);
    overflow: visible;
}

.bn-featured-carousel,
.bn-featured-carousel__shell,
.bn-featured-carousel__viewport,
.bn-featured-carousel__track,
.bn-featured-carousel__slide {
    box-sizing: border-box;
}

.bn-featured-carousel__shell {
    position: relative;
    overflow: visible;
}

.bn-featured-carousel__viewport {
    position: relative;
    width: 100%;
    min-height: var(--bn-featured-viewport-height);
    overflow: hidden;
    overflow-x: clip;
    padding-block: 6px;
}

.bn-featured-carousel__track {
    display: flex;
    align-items: stretch;
    gap: var(--bn-featured-carousel-gap);
    padding-left: max(0px, calc((100% - var(--bn-featured-center-width)) / 2));
    padding-right: max(0px, calc((100% - var(--bn-featured-center-width)) / 2));
    will-change: transform;
    transform: translate3d(0, 0, 0);
    transition-property: transform;
    backface-visibility: hidden;
}

.bn-featured-carousel__slide {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex: 0 0 var(--bn-featured-center-width);
    width: var(--bn-featured-center-width);
    max-width: 100%;
    min-width: 0;
    overflow: visible;
    z-index: 1;
}

.bn-featured-carousel__slide.is-focus {
    z-index: 3;
}

.bn-featured-carousel .bn-featured-card {
    width: 100%;
    max-width: 100%;
    height: var(--bn-featured-card-height);
    min-height: var(--bn-featured-card-height);
    margin: 0;
    padding: var(--bn-featured-padding);
    transform: scale(var(--bn-featured-scale-rest));
    transform-origin: center;
    opacity: var(--bn-featured-rest-opacity);
    transition:
        transform var(--bn-featured-scale-duration) var(--bn-featured-scale-ease),
        opacity var(--bn-featured-scale-duration) var(--bn-featured-scale-ease),
        box-shadow var(--bn-featured-scale-duration) var(--bn-featured-scale-ease),
        filter var(--bn-featured-scale-duration) var(--bn-featured-scale-ease);
    will-change: transform, opacity;
}

.bn-featured-carousel .bn-featured-card .wp-block-columns {
    height: 100%;
    min-height: 100%;
    gap: clamp(18px, 2vw, 36px);
}

.bn-featured-carousel__slide.is-focus .bn-featured-card {
    transform: scale(var(--bn-featured-scale-focus));
    opacity: var(--bn-featured-focus-opacity);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

.bn-featured-carousel__slide:not(.is-focus) .bn-featured-card {
    filter: saturate(0.88);
}

.bn-featured-carousel .bn-featured-card::before {
    transform: scale(1.04);
    filter: blur(2px);
}

.bn-featured-carousel .bn-featured-content {
    padding-right: 2px;
}

.bn-featured-carousel .bn-featured-content .bn-featured-label {
    color: #b7c4d8;
}

.bn-featured-carousel .bn-featured-media img {
    transition:
        transform var(--bn-featured-scale-duration) var(--bn-featured-scale-ease),
        box-shadow var(--bn-featured-scale-duration) var(--bn-featured-scale-ease),
        opacity var(--bn-featured-scale-duration) var(--bn-featured-scale-ease);
}

.bn-featured-carousel__slide.is-focus .bn-featured-media img {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
}

.bn-featured-carousel__slide:not(.is-focus) .bn-featured-media img {
    transform: scale(0.96);
    opacity: 0.95;
}

.bn-featured-carousel__slide:not(.is-focus) .bn-featured-content {
    opacity: 0.92;
}

.bn-featured-carousel__slide.is-focus .bn-featured-content {
    opacity: 1;
}

.bn-featured-carousel.is-snapping .bn-featured-carousel__track,
.bn-featured-carousel.is-snapping .bn-featured-carousel__slide,
.bn-featured-carousel.is-snapping .bn-featured-card,
.bn-featured-carousel.is-snapping .bn-featured-media img,
.bn-featured-carousel.is-snapping .bn-featured-content {
    transition: none !important;
}

.bn-featured-carousel__button {
    position: absolute;
    top: calc(var(--bn-featured-card-height) / 2);
    z-index: 6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(42px, 3.6vw, 54px);
    height: clamp(42px, 3.6vw, 54px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    cursor: pointer;
    transform: translateY(-50%);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(8px);
    transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.bn-featured-carousel__button:hover {
    background: rgba(0, 0, 0, 0.75);
    border-color: rgba(255, 255, 255, 0.18);
}

.bn-featured-carousel__button:active {
    transform: translateY(-50%);
}

.bn-featured-carousel__button span {
    font-size: clamp(1.45rem, 1.15rem + 0.7vw, 2rem);
    line-height: 1;
    font-weight: 400;
    transform: translateY(-1px);
}

.bn-featured-carousel__button--prev {
    left: clamp(8px, calc(var(--bn-featured-arrow-offset-left) + var(--bn-featured-arrow-gap)), 96px);
}

.bn-featured-carousel__button--next {
    right: clamp(8px, calc(var(--bn-featured-arrow-offset-right) + var(--bn-featured-arrow-gap)), 96px);
}

.bn-featured-carousel__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: clamp(10px, 1.2vw, 16px);
    width: max-content;
    max-width: 100%;
    margin: clamp(14px, 1.5vw, 20px) auto 0;
}

.bn-featured-carousel__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 0;
}

.bn-featured-carousel__dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    opacity: 0.85;
    transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.bn-featured-carousel__dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

.bn-featured-carousel__dot.is-active {
    background: rgba(255, 255, 255, 0.96);
    opacity: 1;
}

/* ----------------------------------------
   Editor compatibility
---------------------------------------- */

.editor-styles-wrapper {
    font-family: var(--bn-font-sans);
}

.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper h4,
.editor-styles-wrapper h5,
.editor-styles-wrapper h6,
.editor-styles-wrapper p,
.editor-styles-wrapper li,
.editor-styles-wrapper input,
.editor-styles-wrapper button,
.editor-styles-wrapper textarea,
.editor-styles-wrapper select {
    font-family: var(--bn-font-sans);
}

/* ----------------------------------------
   Responsive
---------------------------------------- */

@media (max-width: 1024px) {
    .bn-featured-card::before {
        opacity: 0.26;
    }

    .bn-featured-card::after {
        background:
            linear-gradient(90deg, rgba(7, 10, 16, 0.95) 0%, rgba(7, 10, 16, 0.86) 38%, rgba(7, 10, 16, 0.66) 68%, rgba(7, 10, 16, 0.52) 100%),
            radial-gradient(circle at 20% 20%, rgba(79, 140, 255, 0.08), transparent 30%),
            radial-gradient(circle at 80% 10%, rgba(124, 77, 255, 0.08), transparent 30%);
    }

    .bn-featured-card {
        --bn-featured-card-fixed-height: clamp(250px, 38vw, 360px);
        --bn-featured-cover-column: clamp(148px, 25vw, 230px);
    }
}

@media (max-width: 768px) {
    .bn-featured-carousel {
        width: 100%;
        max-width: 100%;
        --bn-featured-center-width: 100%;
        --bn-featured-card-height: 236px;
        --bn-featured-viewport-height: 236px;
    }

    .bn-featured-carousel__viewport {
        min-height: var(--bn-featured-viewport-height);
        padding-block: 0;
        padding-inline: 1px;
        overflow-x: hidden;
    }

    .bn-featured-carousel__track {
        gap: 12px;
        padding-left: 0;
        padding-right: 0;
    }

    .bn-featured-carousel__slide {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }

    .bn-featured-carousel .bn-featured-card,
    .bn-featured-carousel__slide.is-focus .bn-featured-card,
    .bn-featured-carousel__slide:not(.is-focus) .bn-featured-card {
        width: 100%;
        max-width: 100%;
        height: var(--bn-featured-card-height);
        min-height: var(--bn-featured-card-height);
        margin-inline: 0;
        transform: none;
        opacity: 1;
        filter: none;
    }

    .bn-featured-card {
        --bn-featured-padding: 14px;
        --bn-featured-gap: 12px;
        --bn-featured-card-fixed-height: 236px;
        --bn-featured-cover-column: 118px;

        --bn-featured-row-label: 14px;
        --bn-featured-row-title: 52px;
        --bn-featured-row-original-title: 14px;
        --bn-featured-row-author: 15px;
        --bn-featured-row-meta: 24px;
        --bn-featured-row-tags: 20px;

        --bn-featured-title-size: 1rem;
        --bn-featured-body-size: 0.77rem;
        --bn-featured-meta-size: 0.72rem;
        --bn-featured-tag-size: 0.66rem;
    }

    .bn-featured-card .wp-block-columns,
    .bn-featured-carousel .bn-featured-card .wp-block-columns {
        grid-template-columns: minmax(0, 1fr) var(--bn-featured-cover-column);
        gap: var(--bn-featured-gap);
    }

    .bn-featured-content {
        row-gap: 4px;
    }

    .bn-featured-content h1 a,
    .bn-featured-content h2 a,
    .bn-featured-content h3 a {
        line-height: 1.08;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .bn-featured-description {
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .bn-featured-meta {
        gap: 6px;
    }

    .bn-score {
        min-height: 24px;
        padding-left: 8px;
        padding-right: 8px;
        font-size: 0.72rem;
    }

    .bn-tag-list {
        gap: 6px;
    }

    .bn-tag {
        min-height: 20px;
        padding: 0 7px;
    }

    .bn-featured-carousel__controls {
        max-width: calc(100% - 8px);
        margin: 14px auto 0;
        gap: 10px;
    }

    .bn-featured-carousel__controls .bn-featured-carousel__button {
        position: static;
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.10);
        box-shadow: none;
        backdrop-filter: none;
        transform: none;
    }

    .bn-featured-carousel__controls .bn-featured-carousel__button span {
        font-size: 1.25rem;
        transform: none;
    }

    .bn-featured-carousel__controls .bn-featured-carousel__dots {
        gap: 8px;
        flex-wrap: nowrap;
    }

    .bn-card {
        --bn-row-card-width: 186px;
        --bn-row-card-height: 348px;
        --bn-row-card-cover-height: 242px;
    }

    .bn-card-body {
        padding: 8px 10px 10px;
        row-gap: 3px;
    }

    .bn-card-title {
        font-size: 0.92rem;
    }

    .bn-card-meta {
        font-size: 0.8rem;
    }
}

@media (max-width: 640px) {
    .bn-featured-carousel {
        --bn-featured-card-height: 222px;
        --bn-featured-viewport-height: 222px;
    }

    .bn-featured-card {
        --bn-featured-padding: 12px;
        --bn-featured-gap: 10px;
        --bn-featured-card-fixed-height: 222px;
        --bn-featured-cover-column: 108px;

        --bn-featured-row-label: 13px;
        --bn-featured-row-title: 48px;
        --bn-featured-row-original-title: 13px;
        --bn-featured-row-author: 14px;
        --bn-featured-row-meta: 22px;
        --bn-featured-row-tags: 18px;

        --bn-featured-title-size: 0.95rem;
        --bn-featured-body-size: 0.73rem;
        --bn-featured-meta-size: 0.69rem;
        --bn-featured-tag-size: 0.63rem;
    }

    .bn-featured-content .bn-featured-author,
    .bn-featured-content .bn-featured-original-title {
        font-size: 0.72rem;
    }

    .bn-featured-content .bn-featured-label {
        font-size: 0.64rem;
        letter-spacing: 0.05em;
    }

    .bn-featured-description {
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .bn-featured-media img {
        border-radius: 12px;
    }

    .bn-score {
        min-height: 22px;
        padding-left: 7px;
        padding-right: 7px;
        font-size: 0.69rem;
    }
}

@media (max-width: 480px) {
    :root {
        --bn-gutter: 14px;
    }

    .bn-featured-carousel {
        --bn-featured-card-height: 206px;
        --bn-featured-viewport-height: 206px;
    }

    .bn-featured-card {
        --bn-featured-padding: 10px;
        --bn-featured-gap: 8px;
        --bn-featured-card-fixed-height: 206px;
        --bn-featured-cover-column: 96px;

        --bn-featured-row-label: 12px;
        --bn-featured-row-title: 44px;
        --bn-featured-row-original-title: 12px;
        --bn-featured-row-author: 13px;
        --bn-featured-row-meta: 20px;
        --bn-featured-row-tags: 17px;

        --bn-featured-title-size: 0.89rem;
        --bn-featured-body-size: 0.69rem;
        --bn-featured-meta-size: 0.65rem;
        --bn-featured-tag-size: 0.59rem;

        border-radius: 16px;
    }

    .bn-featured-content {
        row-gap: 3px;
    }

    .bn-featured-meta {
        gap: 5px;
    }

    .bn-featured-media img {
        border-radius: 10px;
    }

    .bn-card {
        --bn-row-card-width: 174px;
        --bn-row-card-height: 298px;
        --bn-row-card-cover-height: 206px;
    }

    .bn-card-body {
        padding: 7px 8px 9px;
        row-gap: 2px;
    }

    .bn-rank-badge {
        top: 8px;
        left: 8px;
        min-width: 30px;
        height: 30px;
        font-size: 0.82rem;
    }

    .bn-score {
        min-height: 20px;
        padding-left: 7px;
        padding-right: 7px;
        font-size: 0.65rem;
    }

    .bn-featured-carousel__controls {
        gap: 8px;
        max-width: 100%;
    }

    .bn-featured-carousel__controls .bn-featured-carousel__button {
        width: 34px;
        height: 34px;
        min-width: 34px;
        min-height: 34px;
    }

    .bn-featured-carousel__controls .bn-featured-carousel__dots {
        gap: 7px;
    }

    .bn-row-header {
        gap: 12px;
    }

    .bn-row-more {
        padding-left: 8px;
    }

    .bn-row-more a {
        font-size: 0.9rem;
    }
}

@media (max-width: 380px) {
    .bn-featured-carousel {
        --bn-featured-card-height: 192px;
        --bn-featured-viewport-height: 192px;
    }

    .bn-featured-card {
        --bn-featured-card-fixed-height: 192px;
        --bn-featured-cover-column: 88px;

        --bn-featured-row-label: 11px;
        --bn-featured-row-title: 40px;
        --bn-featured-row-original-title: 11px;
        --bn-featured-row-author: 12px;
        --bn-featured-row-meta: 19px;
        --bn-featured-row-tags: 16px;

        --bn-featured-title-size: 0.83rem;
        --bn-featured-body-size: 0.64rem;
        --bn-featured-meta-size: 0.61rem;
        --bn-featured-tag-size: 0.56rem;
    }

    .bn-score {
        min-height: 19px;
        padding-left: 6px;
        padding-right: 6px;
        font-size: 0.61rem;
    }

    .bn-featured-carousel__controls {
        gap: 6px;
    }

    .bn-featured-carousel__controls .bn-featured-carousel__button {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
    }

    .bn-featured-carousel__controls .bn-featured-carousel__button span {
        font-size: 1.1rem;
    }

    .bn-featured-carousel__controls .bn-featured-carousel__dots {
        gap: 6px;
    }

    .bn-featured-carousel__dot {
        width: 10px;
        height: 10px;
    }

    .bn-card {
        --bn-row-card-height: 274px;
        --bn-row-card-cover-height: 188px;
    }

    .bn-card-title {
        font-size: 0.86rem;
    }

    .bn-card-meta {
        font-size: 0.76rem;
    }
}

@media (min-width: 769px) {
    .bn-featured-carousel__controls {
        display: block;
        width: auto;
        max-width: none;
        margin-top: 0;
    }

    .bn-featured-carousel__controls .bn-featured-carousel__dots {
        margin-top: clamp(14px, 1.5vw, 20px);
        gap: 10px;
    }

    .bn-featured-carousel__controls .bn-featured-carousel__button {
        position: absolute;
        top: calc(var(--bn-featured-card-height) / 2);
        width: clamp(42px, 3.6vw, 54px);
        height: clamp(42px, 3.6vw, 54px);
        transform: translateY(-50%);
    }

    .bn-featured-carousel__controls .bn-featured-carousel__button--prev {
        left: clamp(8px, calc(var(--bn-featured-arrow-offset-left) + var(--bn-featured-arrow-gap)), 96px);
    }

    .bn-featured-carousel__controls .bn-featured-carousel__button--next {
        right: clamp(8px, calc(var(--bn-featured-arrow-offset-right) + var(--bn-featured-arrow-gap)), 96px);
    }

    .bn-featured-carousel__controls .bn-featured-carousel__button:active {
        transform: translateY(-50%);
    }
}

/* ----------------------------------------
   Global loading screen
---------------------------------------- */

body:not(.bn-site-ready) {
    overflow: hidden;
}

.bn-site-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 20% 20%, rgba(79, 140, 255, 0.06), transparent 30%),
        radial-gradient(circle at 80% 10%, rgba(124, 77, 255, 0.05), transparent 30%),
        linear-gradient(180deg, #080c13 0%, #0b1019 100%);
    opacity: 1;
    visibility: visible;
    transition:
        opacity 380ms cubic-bezier(0.22, 1, 0.36, 1),
        visibility 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.bn-site-ready .bn-site-loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.bn-site-loader__inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bn-site-loader__mark {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bn-site-loader__mark::before,
.bn-site-loader__mark::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
}

.bn-site-loader__mark::before {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.02) inset,
        0 8px 24px rgba(0, 0, 0, 0.28);
}

.bn-site-loader__mark::after {
    border: 2px solid transparent;
    border-top-color: rgba(79, 140, 255, 0.9);
    border-right-color: rgba(124, 77, 255, 0.6);
    animation: bn-spin 1s linear infinite;
}

.bn-site-loader__mark span {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow:
        0 0 10px rgba(255, 255, 255, 0.18),
        0 0 18px rgba(79, 140, 255, 0.12);
}

/* ----------------------------------------
   Soft loading state for carousels / rows
---------------------------------------- */

.bn-featured-carousel,
.bn-row-slider {
    position: relative;
}

body:not(.bn-site-ready) .bn-featured-carousel__viewport,
body:not(.bn-site-ready) .bn-row-slider__viewport {
    opacity: 0;
}

body:not(.bn-site-ready) .bn-featured-carousel::before,
body:not(.bn-site-ready) .bn-row-slider::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    border-radius: 24px;
    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.02) 0%,
            rgba(255, 255, 255, 0.05) 18%,
            rgba(255, 255, 255, 0.02) 36%
        ),
        rgba(255, 255, 255, 0.02);
    background-size: 220% 100%;
    animation: bn-shimmer 1.4s linear infinite;
}

body:not(.bn-site-ready) .bn-row-slider {
    min-height: calc(var(--bn-row-card-height) + 6px);
}

body:not(.bn-site-ready) .bn-featured-carousel {
    min-height: calc(var(--bn-featured-viewport-height) + 40px);
}

@keyframes bn-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes bn-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -20% 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bn-site-loader,
    .bn-site-loader__mark::after,
    body:not(.bn-site-ready) .bn-featured-carousel::before,
    body:not(.bn-site-ready) .bn-row-slider::before {
        animation: none !important;
        transition: none !important;
    }
}

/* ----------------------------------------
   Hide front page title
---------------------------------------- */

.home .wp-block-post-title,
.home .entry-title,
.home .page-title {
    display: none !important;
}

/* ----------------------------------------
   Single Series Template
---------------------------------------- */

.bn-series-page {
    width: 100%;
}

.bn-series-main {
    width: min(100% - (var(--bn-gutter) * 2), 980px);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.bn-series-banner {
    --bn-series-banner-bg: none;
    position: relative;
    width: 100%;
    min-height: clamp(180px, 28vw, 360px);
    overflow: hidden;
    isolation: isolate;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bn-series-banner--full {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.bn-series-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--bn-series-banner-bg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: scale(1.08);
    filter: blur(12px);
    opacity: 0.7;
}

.bn-series-banner__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 12, 19, 0.34) 0%, rgba(8, 12, 19, 0.74) 100%),
        radial-gradient(circle at 20% 20%, rgba(79, 140, 255, 0.08), transparent 30%),
        radial-gradient(circle at 80% 20%, rgba(124, 77, 255, 0.08), transparent 30%);
}

.bn-series-cover-wrap {
    display: flex;
    justify-content: center;
    margin-top: clamp(-84px, -10vw, -140px);
    margin-bottom: clamp(18px, 2vw, 24px);
    position: relative;
    z-index: 3;
}

.bn-series-cover {
    width: clamp(160px, 24vw, 260px);
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
    border-radius: clamp(12px, 1vw, 18px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.bn-series-header {
    text-align: center;
    display: grid;
    gap: clamp(10px, 1.5vw, 16px);
    align-items: center;
    justify-items: center;
    margin-bottom: clamp(24px, 3vw, 34px);
}

.bn-series-title {
    margin: 0;
    font-size: clamp(1.8rem, 1.25rem + 2.2vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.bn-series-original-title {
    margin: 0;
    color: var(--bn-muted);
    font-size: clamp(0.92rem, 0.84rem + 0.25vw, 1.05rem);
    line-height: 1.4;
}

.bn-series-author {
    margin: 0;
    color: var(--bn-text-soft);
    font-size: clamp(0.95rem, 0.9rem + 0.24vw, 1.08rem);
    line-height: 1.4;
    font-weight: 500;
}

.bn-series-feature-row {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 1vw, 14px);
    margin-top: 2px;
}

.bn-series-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--bn-line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--bn-text);
    font-size: 0.9rem;
    font-weight: 600;
}

.bn-series-genres {
    color: var(--bn-text);
    font-size: clamp(0.96rem, 0.9rem + 0.22vw, 1.08rem);
    line-height: 1.5;
}

.bn-series-tags-block {
    width: min(100%, 760px);
    display: grid;
    gap: 10px;
}

.bn-series-details {
    width: min(100%, 760px);
    border: 1px solid var(--bn-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
    text-align: left;
}

.bn-series-details--tags {
    width: 100%;
}

.bn-series-details__summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 18px;
    color: var(--bn-text);
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bn-series-details__summary::-webkit-details-marker {
    display: none;
}

.bn-series-details__summary::after {
    content: "+";
    color: var(--bn-muted);
    font-size: 1.2rem;
    line-height: 1;
}

.bn-series-details[open] .bn-series-details__summary::after {
    content: "–";
}

.bn-series-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.bn-series-tags-block > .bn-series-tags {
    padding: 0;
}

.bn-series-tags--expanded {
    padding: 0 18px 18px;
    justify-content: flex-start;
}

.bn-series-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--bn-line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--bn-text-soft);
    font-size: 0.88rem;
}

.bn-series-meta-row {
    width: min(100%, 760px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.bn-series-meta-item {
    display: grid;
    gap: 5px;
    padding: 14px 16px;
    border: 1px solid var(--bn-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
}

.bn-series-meta-label {
    color: var(--bn-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.bn-series-meta-value {
    color: var(--bn-text);
    font-size: 0.96rem;
    font-weight: 600;
    line-height: 1.4;
}

.bn-series-action-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 2px;
}

.bn-series-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--bn-accent);
    border: 1px solid transparent;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.bn-series-button:hover {
    color: #fff;
    opacity: 0.96;
    transform: translateY(-1px);
}

.bn-series-button--secondary {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--bn-line);
    color: var(--bn-text);
}

.bn-series-button--secondary:hover {
    color: var(--bn-text);
}

.bn-series-body {
    width: min(100%, 900px);
    margin: 0 auto 18px;
}

.bn-series-body__inner {
    padding: 22px;
    border: 1px solid var(--bn-line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.02);
}

.bn-series-body__inner > *:first-child {
    margin-top: 0;
}

.bn-series-body__inner > *:last-child {
    margin-bottom: 0;
}

.bn-series-ratings-section {
    width: min(100%, 900px);
    margin: 0 auto;
    display: grid;
    gap: 18px;
}

.bn-series-ratings-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 20px 18px;
    border: 1px solid var(--bn-line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
}

.bn-series-ratings-icon {
    color: var(--bn-gold);
    font-size: clamp(1.2rem, 1rem + 0.7vw, 1.6rem);
    line-height: 1;
}

.bn-series-ratings-score {
    color: var(--bn-text);
    font-size: clamp(1.35rem, 1rem + 1vw, 2rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
}

.bn-series-ratings-reviews {
    color: var(--bn-text-soft);
    font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
    line-height: 1.4;
}

.bn-series-discussion {
    border: 1px solid var(--bn-line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.bn-series-discussion__top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid var(--bn-line);
}

.bn-series-discussion__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.bn-series-discussion__tab,
.bn-series-filter,
.bn-series-filter-trigger {
    appearance: none;
    border: 1px solid var(--bn-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--bn-text-soft);
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.bn-series-discussion__tab.is-active,
.bn-series-filter.is-active,
.bn-series-filter-trigger:hover {
    background: rgba(79, 140, 255, 0.16);
    border-color: rgba(79, 140, 255, 0.35);
    color: var(--bn-text);
}

.bn-series-discussion__filters {
    position: relative;
    margin-left: auto;
    flex: 0 0 auto;
}

.bn-series-filter-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    min-width: 36px;
    padding: 0;
}

.bn-series-filter-trigger__icon {
    display: inline-flex;
    width: 16px;
    height: 16px;
}

.bn-series-filter-trigger__icon svg {
    width: 100%;
    height: 100%;
}

.bn-series-filter-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 10;
    display: grid;
    gap: 6px;
    min-width: 132px;
    padding: 8px;
    border: 1px solid var(--bn-line);
    border-radius: 14px;
    background: rgba(12, 18, 28, 0.98);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
}

.bn-series-filter-menu[hidden] {
    display: none;
}

.bn-series-filter-menu .bn-series-filter {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
}

.bn-series-discussion__panel {
    display: none;
    padding: 18px;
}

.bn-series-discussion__panel.is-active {
    display: block;
}

.bn-series-comments-list {
    display: grid;
    gap: 14px;
}

.bn-series-comment-card {
    padding: 16px;
    border: 1px solid var(--bn-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
}

.bn-series-comment-card__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.bn-series-comment-card__author {
    color: var(--bn-text);
    font-size: 0.95rem;
    font-weight: 600;
}

.bn-series-comment-card__date {
    color: var(--bn-muted);
    font-size: 0.84rem;
}

.bn-series-comment-card__rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    width: fit-content;
    margin-bottom: 10px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 179, 65, 0.12);
    border: 1px solid rgba(255, 179, 65, 0.18);
    color: #ffd08a;
    font-size: 0.84rem;
    font-weight: 600;
}

.bn-series-comment-card__content {
    color: var(--bn-text-soft);
    line-height: 1.7;
}

.bn-series-comment-card__content p {
    margin: 0;
}

.bn-series-empty {
    margin: 0;
    color: var(--bn-muted);
}

.bn-series-comment-form {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--bn-line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
}

.bn-series-comment-form__title {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: clamp(1.1rem, 1rem + 0.4vw, 1.35rem);
    line-height: 1.2;
}

.bn-comment-form p {
    margin-bottom: 12px;
}

.bn-comment-form label {
    display: block;
    margin-bottom: 6px;
    color: var(--bn-text-soft);
    font-size: 0.9rem;
    font-weight: 500;
}

.bn-comment-form input[type="text"],
.bn-comment-form input[type="email"],
.bn-comment-form input[type="url"],
.bn-comment-form textarea {
    width: 100%;
    border: 1px solid var(--bn-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--bn-text);
    padding: 12px 14px;
    box-sizing: border-box;
}

.bn-comment-form textarea {
    min-height: 130px;
    resize: vertical;
}

@media (max-width: 768px) {
    .bn-series-cover-wrap {
        margin-top: clamp(-64px, -9vw, -96px);
    }

    .bn-series-meta-row {
        grid-template-columns: 1fr;
    }

    .bn-series-discussion__top {
        align-items: stretch;
    }

    .bn-series-discussion__tabs,
    .bn-series-discussion__filters {
        width: 100%;
    }

    .bn-series-tags {
        justify-content: center;
    }

    .bn-series-tags--expanded {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .bn-series-main {
        width: min(100% - 28px, 980px);
    }

    .bn-series-banner {
        min-height: 160px;
    }

    .bn-series-cover {
        width: 156px;
    }

    .bn-series-comment-card,
    .bn-series-comment-form,
    .bn-series-body__inner {
        padding: 16px;
    }

    .bn-series-discussion__panel {
        padding: 16px;
    }
}

/* ----------------------------------------
   Series comment / review forms
---------------------------------------- */

.bn-comment-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.bn-comment-form__field {
    min-width: 0;
}

.bn-comment-form__field--full {
    grid-column: 1 / -1;
}

.bn-comment-form__actions {
    margin-top: 16px;
    display: flex;
    justify-content: flex-start;
}

@media (max-width: 640px) {
    .bn-comment-form__grid {
        grid-template-columns: 1fr;
    }

    .bn-series-comment-form__panel {
        padding: 16px;
    }
}

/* ----------------------------------------
   Series ratings enhancements
---------------------------------------- */

.bn-stars {
    position: relative;
    display: inline-block;
    line-height: 1;
    letter-spacing: 0.08em;
    font-size: clamp(1rem, 0.92rem + 0.3vw, 1.15rem);
}

.bn-stars__base,
.bn-stars__fill {
    display: block;
    white-space: nowrap;
}

.bn-stars__base {
    color: rgba(255, 255, 255, 0.16);
}

.bn-stars__fill {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    color: #ffd08a;
}

.bn-series-ratings-header {
    display: grid;
    justify-items: center;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 18px 18px 16px;
}

.bn-series-ratings-main {
    display: grid;
    justify-items: center;
    align-items: center;
    text-align: center;
    gap: 8px;
    width: 100%;
}

.bn-series-ratings-main__score {
    font-size: clamp(2.35rem, 1.9rem + 1.65vw, 3.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--bn-text);
    text-align: center;
}

.bn-series-ratings-main__stars {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.bn-series-ratings-reviews {
    color: var(--bn-text-soft);
    font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.18rem);
    line-height: 1.35;
    text-align: center;
}

.bn-series-rating-breakdown {
    display: grid;
    gap: 9px;
    width: min(100%, 500px);
    margin-inline: auto;
}

.bn-series-rating-breakdown__row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 36px;
    gap: 10px;
    align-items: center;
}

.bn-series-rating-breakdown__label,
.bn-series-rating-breakdown__count {
    color: var(--bn-text-soft);
    font-size: 0.95rem;
    font-weight: 700;
}

.bn-series-rating-breakdown__bar {
    position: relative;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.bn-series-rating-breakdown__fill {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(255, 179, 65, 0.95), rgba(255, 208, 138, 0.95));
}

/* ----------------------------------------
   Series comment / review forms
---------------------------------------- */

.bn-series-comment-form {
    border-top: 1px solid var(--bn-line);
    padding: 14px;
    background: rgba(255, 255, 255, 0.02);
}

.bn-series-comment-form__stack {
    display: block;
}

.bn-series-comment-form__panel {
    display: none;
}

.bn-series-comment-form__panel.is-active {
    display: block;
}

.bn-comment-form__shell {
    display: grid;
    gap: 10px;
    padding: 13px 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
        rgba(9, 13, 21, 0.88);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.bn-comment-form__header {
    display: grid;
    gap: 1px;
}

.bn-comment-form__eyebrow {
    color: var(--bn-muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bn-series-comment-form__title {
    margin: 0;
    font-size: clamp(1.04rem, 1rem + 0.38vw, 1.24rem);
    line-height: 1.15;
}

.bn-comment-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
}

.bn-comment-form__field {
    min-width: 0;
}

.bn-comment-form__field--full {
    grid-column: 1 / -1;
}

.bn-comment-form label {
    display: block;
    margin-bottom: 4px;
    color: var(--bn-text);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.2;
}

.bn-comment-form__optional {
    color: var(--bn-muted);
    font-weight: 500;
}

.bn-comment-form input[type="text"],
.bn-comment-form input[type="email"],
.bn-comment-form textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--bn-text);
    padding: 12px 13px;
    box-sizing: border-box;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.bn-comment-form input[type="text"]:focus,
.bn-comment-form input[type="email"]:focus,
.bn-comment-form textarea:focus {
    outline: none;
    border-color: rgba(79, 140, 255, 0.52);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.10);
}

.bn-comment-form textarea {
    min-height: 132px;
    resize: none;
    overflow: hidden;
    line-height: 1.65;
}

.bn-comment-form__meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 5px;
    color: var(--bn-muted);
    font-size: 0.77rem;
}

.bn-comment-form__hint,
.bn-comment-form__count {
    line-height: 1.3;
}

.bn-comment-form__checks {
    display: grid;
    gap: 7px;
    padding-top: 0;
}

.bn-comment-form__check-row {
    display: grid;
    grid-template-columns: 18px auto;
    align-items: center;
    justify-content: start;
    column-gap: 10px;
    color: var(--bn-text-soft);
    font-size: 0.92rem;
    line-height: 1.35;
}

.bn-comment-form__check-row input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--bn-accent);
}

.bn-comment-form__check-row > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.bn-comment-form__policy-link {
    color: #9fc0ff;
    text-decoration: none;
    font-weight: 600;
}

.bn-comment-form__policy-link:hover {
    color: #c7daff;
    text-decoration: underline;
}

.bn-comment-form__actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 0;
}

/* ----------------------------------------
   Interactive rating input
---------------------------------------- */

.bn-rating-input {
    display: grid;
    gap: 4px;
    justify-items: center;
    text-align: center;
    width: 100%;
}

.bn-comment-form__center-label {
    text-align: center;
    margin-bottom: 4px;
}

.bn-rating-input__stars {
    display: inline-flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.bn-rating-input__star {
    appearance: none;
    border: none;
    background: transparent;
    padding: 0 2px;
    cursor: pointer;
    font-size: clamp(1.95rem, 1.7rem + 0.75vw, 2.5rem);
    line-height: 1;
    color: rgba(255, 255, 255, 0.18);
    transition: transform 0.16s ease, color 0.16s ease, opacity 0.16s ease;
}

.bn-rating-input__star:hover {
    transform: translateY(-1px) scale(1.04);
}

.bn-rating-input__star.is-active {
    color: #ffd08a;
}

.bn-rating-input__text {
    color: var(--bn-muted);
    font-size: 0.86rem;
    font-weight: 500;
    text-align: center;
}

/* ----------------------------------------
   Responsive additions
---------------------------------------- */

@media (max-width: 768px) {
    .bn-series-discussion__top {
        align-items: center;
        gap: 8px;
    }

    .bn-series-discussion__tabs {
        flex: 1 1 auto;
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .bn-comment-form__grid {
        grid-template-columns: 1fr;
    }

    .bn-comment-form__meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .bn-comment-form__shell {
        padding: 13px;
        border-radius: 16px;
    }

    .bn-series-discussion__panel,
    .bn-series-comment-form {
        padding: 12px;
    }

    .bn-comment-form__check-row {
        grid-template-columns: 18px minmax(0, 1fr);
        align-items: center;
    }
}

/* ----------------------------------------
   Final discussion / form alignment fixes
---------------------------------------- */

/* 1 + 4: truly center average rating + review count */
.bn-series-ratings-header {
    justify-items: center !important;
    align-items: center !important;
    text-align: center !important;
}

.bn-series-ratings-main {
    width: 100% !important;
    justify-items: center !important;
    align-items: center !important;
    text-align: center !important;
    margin-inline: auto !important;
}

.bn-series-ratings-main__score,
.bn-series-ratings-main__stars,
.bn-series-ratings-reviews {
    width: 100%;
    text-align: center !important;
    justify-content: center !important;
}

.bn-series-ratings-reviews {
    display: block;
    margin: 0 auto;
}

/* 1: labels closer to inputs */
.bn-comment-form__field {
    display: grid;
    gap: 3px;
}

.bn-comment-form label {
    margin-bottom: 0 !important;
    line-height: 1.15;
}

/* tighten general form spacing a bit more */
.bn-comment-form__shell {
    gap: 8px !important;
}

.bn-comment-form__grid {
    gap: 6px 12px !important;
}

.bn-comment-form__meta {
    margin-top: 4px !important;
}

/* 2: move submit button much closer */
.bn-comment-form__checks {
    margin-bottom: 0 !important;
    gap: 6px !important;
}

.bn-comment-form__actions {
    margin-top: 2px !important;
    padding-top: 0 !important;
    align-self: start;
}

/* 3: checkbox text beside checkbox, not wrapping under it weirdly */
.bn-comment-form__check-row {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    min-width: 0;
}

.bn-comment-form__check-row input {
    flex: 0 0 16px;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
}

.bn-comment-form__check-row > span {
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: wrap;
    gap: 4px;
    min-width: 0;
    line-height: 1.3;
}

.bn-comment-form__policy-link {
    display: inline;
    white-space: nowrap;
}

/* 5: rating heading larger and closer to stars */
.bn-comment-form__center-label {
    margin-bottom: 2px !important;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.15;
}

.bn-rating-input {
    gap: 2px !important;
}

.bn-rating-input__stars {
    gap: 10px !important;
}

.bn-rating-input__star {
    font-size: clamp(2.2rem, 1.95rem + 0.9vw, 2.9rem) !important;
}

.bn-rating-input__text {
    margin-top: 0 !important;
}

/* 6: filter menu closer to trigger */
.bn-series-discussion__filters {
    position: relative;
}

.bn-series-filter-menu {
    top: calc(100% + 1px) !important;
    right: 0 !important;
}

/* mobile safety for checkbox rows */
@media (max-width: 640px) {
    .bn-comment-form__check-row {
        align-items: flex-start !important;
    }

    .bn-comment-form__check-row input {
        margin-top: 2px !important;
    }
}

/* force the average rating block to sit in the exact horizontal center */
.bn-series-ratings-header {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-content: center !important;
    justify-items: center !important;
    align-items: center !important;
    text-align: center !important;
}

.bn-series-ratings-main {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}

.bn-series-ratings-main__score,
.bn-series-ratings-main__stars,
.bn-series-ratings-reviews {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

.bn-series-ratings-reviews {
    width: auto !important;
}

/* ----------------------------------------
   Ratings block centering fix
---------------------------------------- */

.bn-series-ratings-header {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    gap: 10px !important;
    padding: 16px 18px !important;
}

.bn-series-ratings-main {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 420px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    gap: 4px !important;
}

.bn-series-ratings-main__score {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    text-align: center !important;
}

.bn-series-ratings-main__stars {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.bn-series-ratings-main__stars .bn-stars {
    display: inline-block !important;
    margin: 0 !important;
    line-height: 1 !important;
    font-size: clamp(2rem, 1.6rem + 1.2vw, 3rem) !important;
}

.bn-series-ratings-reviews {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.15 !important;
    text-align: center !important;
}

.bn-series-rating-breakdown {
    width: min(100%, 500px) !important;
    margin: 0 auto !important;
}

.bn-series-rating-breakdown:empty {
    display: none !important;
}

.bn-series-ratings-header > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.bn-series-ratings-header p,
.bn-series-ratings-main p,
.bn-series-ratings-main div {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* ----------------------------------------
   Final form + filter polish
---------------------------------------- */

/* 1 + 2: move comment/review label + textarea block slightly lower,
   and keep meta directly under textarea */
.bn-comment-form__field--full {
    margin-top: 4px;
}

.bn-comment-form__field--full > label[for="bpp-comment-comment"],
.bn-comment-form__field--full > label[for="bpp-review-comment"] {
    margin-bottom: 6px !important;
}

#bpp-comment-comment,
#bpp-review-comment {
    display: block;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

#bpp-comment-comment + .bn-comment-form__meta,
#bpp-review-comment + .bn-comment-form__meta {
    margin-top: 6px !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
}

/* 3: put submit button directly below the checkbox group */
.bn-comment-form__checks {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    gap: 8px !important;
}

.bn-comment-form__actions {
    margin-top: 6px !important;
    padding-top: 0 !important;
    justify-content: flex-start !important;
}

.bn-comment-form__actions .bn-series-button {
    margin-top: 0 !important;
    align-self: flex-start;
}

/* tighten shell flow so button sits closer to the checks */
.bn-comment-form__shell {
    gap: 9px !important;
}

/* 4: larger Rating label, directly above rating input */
.bn-comment-form__center-label {
    display: block !important;
    width: 100%;
    margin: 0 0 4px !important;
    font-size: clamp(1.12rem, 1rem + 0.45vw, 1.38rem) !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    text-align: center !important;
    color: var(--bn-text) !important;
}

.bn-rating-input {
    gap: 3px !important;
    margin-top: 0 !important;
}

.bn-rating-input__stars {
    gap: 10px !important;
}

.bn-rating-input__text {
    margin-top: 2px !important;
}

/* 5: minimalist filter menu centered below trigger */
.bn-series-discussion__filters {
    position: relative !important;
}

.bn-series-filter-menu {
    top: calc(100% + 6px) !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    min-width: 118px !important;
    padding: 4px !important;
    gap: 4px !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 12px !important;
    background: rgba(10, 15, 24, 0.96) !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18) !important;
    backdrop-filter: blur(10px);
}

.bn-series-filter-menu .bn-series-filter {
    min-height: 32px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    color: var(--bn-text-soft) !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    justify-content: center !important;
    text-align: center !important;
    box-shadow: none !important;
}

.bn-series-filter-menu .bn-series-filter:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    color: var(--bn-text) !important;
}

.bn-series-filter-menu .bn-series-filter.is-active {
    background: rgba(79, 140, 255, 0.12) !important;
    border-color: rgba(79, 140, 255, 0.22) !important;
    color: var(--bn-text) !important;
}

/* keep mobile behavior stable */
@media (max-width: 640px) {
    .bn-comment-form__field--full {
        margin-top: 3px;
    }

    .bn-comment-form__actions {
        margin-top: 6px !important;
    }

    .bn-series-filter-menu {
        min-width: 112px !important;
    }
}