.fullstory {
    min-width: 0;
}

.fullstory__head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.fullstory__title {
    flex: 1;
    margin: 0;
    color: var(--color-text);
    font-size: clamp(26px, 3.2vw, 38px);
    font-weight: 800;
    line-height: 1.2;
}

.fullstory__edit {
    flex: 0 0 40px;
    width: 40px;
    min-height: 40px;
    padding: 8px;
    border-radius: 50%;
}

.fullstory__edit svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fullstory__edit .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.fullstory__content {
    margin-top: 28px;
    color: var(--color-text-secondary);
    font-size: 16px;
    line-height: 1.7;
}

.fullstory__content :is(p, ul, ol, blockquote) + :is(p, ul, ol, blockquote) {
    margin-top: 16px;
}

.fullstory__content :is(h2, h3, h4) {
    margin: 32px 0 12px;
    color: var(--color-text);
    font-weight: 800;
    line-height: 1.3;
}

.fullstory__content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.fullstory__content img {
    display: block;
}

.fullstory__content br {
    display: none;
}

.fullstory__content p:has(img) {
    margin: 0;
    line-height: 0;
}

.fullstory__content p:has(img) + p:has(img) {
    margin-top: 0;
}

.fullstory__content :is(p, ul, ol, blockquote, h2, h3, h4):not(:has(img)) + p:has(img), .fullstory__content :is(p, ul, ol, blockquote, h2, h3, h4):not(:has(img)) + img {
    margin-top: 24px;
}

.fullstory__content p:has(img) + :is(p, ul, ol, blockquote):not(:has(img)) {
    margin-top: 24px;
}

.fullstory__pages {
    margin-top: 28px;
}

.fullstory__details {
    display: grid;
    gap: 16px;
    margin-top: 56px;
    padding: 20px;
    border-radius: 12px;
    background: var(--color-surface-deep);
}

.fullstory__detail {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.fullstory__label {
    color: var(--color-text);
    font-size: 14px;
    font-weight: 800;
}

.fullstory__value, .fullstory__categories a {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 7px;
    background: var(--color-surface);
    color: var(--color-text-soft);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.fullstory__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fullstory__categories a:hover {
    color: var(--color-primary);
}

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

.fullstory__value:has(a):hover {
    color: var(--color-primary);
}

.fullstory__details-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: calc(100% + 10px);
    gap: 12px;
    margin: 30px 0 0 -10px;
    padding: 0;
}

.fullstory__rating {
    margin-left: 0;
}
.fullstory__share {
    color: var(--color-primary);    
}
.fullstory__likes, .fullstory__comments, .fullstory__views {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 9px;
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.fullstory__comments {
    margin-left: 0 !important;
}

.fullstory__views svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fullstory__likes svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 2;
}

.fullstory__complaint {
    flex: 0 0 auto;
    width: auto;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 9px;
    gap: 7px;
    font-size: 13px;
}

.fullstory__complaint svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fullstory__views {
    margin-left: auto;
}

.fullstory__comments span {
    display: grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-ink);
    font-size: 12px;
}

.fullstory__tags {
    display: block;
    font-size: 0;
    line-height: 0;
}

.fullstory__tags a, .tags-cloud a {
    display: inline-flex;
    margin-right: 8px;
    padding: 5px 9px;
    border-radius: 7px;
    background: var(--color-surface);
    color: var(--color-text-soft);
    font-size: 13px;
    font-weight: 700;
    line-height: normal;
    text-decoration: none;
}

.fullstory__tags a:hover, .tags-cloud a:hover { color: var(--color-primary); }

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    font-size: 0;
    line-height: 0;
}

.tags-cloud a {
    margin: 0;
    font-size: 13px !important;
}

.fullstory__related {
    margin-top: 3rem;
}

.fullstory__related h3 {
    color: var(--color-white);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.fullstory__related h3 span {
    color: var(--color-primary);
}

.story-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 32px;
}

.story-nav__item {
    display: grid;
    gap: 4px;
    padding: 16px;
    border-radius: 12px;
    background: var(--color-surface-deep);
    color: var(--color-text);
    text-decoration: none;
}

.story-nav__item--next {
    text-align: right;
}

.story-nav__item > span {
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.story-nav__item strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.discussion {
    margin-top: 48px;
    padding: 24px;
    border-radius: 12px;
    background: var(--color-surface-deep);
}

.discussion__head {
    margin-bottom: 24px;
}

.discussion__head h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--color-text);
    font-size: 22px;
    font-weight: 800;
}

.discussion__head h2 span {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    margin-left: 0;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--color-primary);
    color: #092128;
    font-size: 13px;
}

.discussion__head p {
    margin-top: 6px;
    color: var(--color-muted);
}

.reply-form {
    margin-bottom: 24px;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.reply-form__title {
    margin: 0 0 20px;
    color: var(--color-text);
    font-size: 18px;
}

.reply-form__note {
    margin-bottom: 20px;
    color: var(--color-muted);
    font-size: 14px;
}

.reply-form .form-grid {
    display: grid;
    gap: 16px;
}

.reply-form #comment-editor {
    display: block;
    margin-top: 20px;
}

.reply-form #comment-editor > * {
    display: block;
    width: 100% !important;
    min-width: 0;
}

.reply-form #comment-editor ~ .form-row {
    margin-top: 24px;
}

.reply-form #comment-editor :is(.bb-editor, .wysiwyg, .dle-editor) {
    overflow: hidden;
    width: 100% !important;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-surface);
}

.reply-form #comment-editor :is(textarea, iframe, [contenteditable="true"]) {
    width: 100% !important;
    min-height: 190px;
    border: 0;
    background: var(--color-surface);
    color: var(--color-text);
}

.reply-form #comment-editor :is(.bb-editor-toolbar, .editor-toolbar, .toolbar) {
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface-hover);
}

.reply-form .form-actions {
    margin-top: 24px;
    padding-left: 0;
}

.reply-form .form-actions .btn {
    min-width: 160px;
}

.thread {
    display: grid;
    gap: 0;
}

.thread__item {
    min-width: 0;
    padding: 20px 0;
    border: 0;
    border-top: 1px solid var(--color-border-soft);
    border-radius: 0;
    background: transparent;
}

.thread__item--reply {
    margin-left: 32px;
    background: transparent;
}

.thread__top {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.thread__avatar {
    position: relative;
    display: block;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--color-surface-hover);
}

.thread__avatar .avatar {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    object-fit: cover;
}

.thread__avatar .avatar--initial {
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 800;
}

.thread__online {
    display: none;
}

.thread__ident {
    min-width: 0;
}

.thread__who {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.thread__author {
    overflow: hidden;
    color: var(--color-text);
    font-size: 15px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.thread__badge {
    padding: 3px 7px;
    border-radius: 6px;
    background: var(--color-surface);
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 800;
}

.thread__when {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-top: 3px;
    color: var(--color-muted);
    font-size: 12px;
}

.thread__news-mobile {
    display: none;
}

.thread__group {
    color: #6f8990;
}

.thread__mass {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    color: var(--color-muted);
    font-size: 12px;
}

.thread__mass .form-check-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    transition: background-color 180ms ease;
}

.thread__mass .form-check-label:hover {
    background: transparent;
}

.thread__mass .form-check-input {
    appearance: none;
    width: 15px;
    height: 15px;
    margin: 0;
    border: 1px solid #46656b;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
}

.thread__mass .form-check-input:checked {
    border-color: var(--color-primary);
    background-color: var(--color-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23092128' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.2' d='m3 8 3 3 7-7'/%3E%3C/svg%3E");
}

.thread__ip {
    color: var(--color-muted);
    font-size: 12px;
    white-space: nowrap;
}

.thread__moderation {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.thread__ip a {
    color: inherit;
    text-decoration: none;
    pointer-events: none;
    cursor: default;
}

.thread__text {
    margin-top: 16px;
    color: var(--color-text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.thread__text :is(p, ul, ol, blockquote) + :is(p, ul, ol, blockquote) {
    margin-top: 10px;
}

.thread__text :is(ul, ol) {
    padding-left: 20px;
}

.thread__text a, .thread__signature a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.thread__images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.thread__images img {
    display: block;
    max-width: 100%;
    border-radius: 8px;
}

.thread__signature {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--color-border-soft);
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.5;
}

.thread__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-top: 4px;
    border-top: 0;
}

.thread__btn, .thread__replies, .vote-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--color-surface);
    color: #b8c9cd;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    transition: background-color 180ms ease, color 180ms ease;
}

.thread__btn {
    cursor: pointer;
}

.thread__btn:hover, .thread__replies:hover, .vote-pill:hover {
    background: var(--color-surface-hover);
    color: var(--color-primary);
}

.thread__btn--danger:hover {
    color: var(--color-danger);
}

.thread__btn .icon, .thread__replies .icon, .vote-pill .icon {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.thread__rate {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.thread__top .thread__rate {
    flex-wrap: nowrap;
    gap: 0;
    overflow: hidden;
    border-radius: 8px;
    background: var(--color-surface);
}

.thread__top .vote-pill {
    min-height: 32px;
    padding: 6px 9px;
    border-radius: 0;
    background: transparent;
}

.thread__top .vote-pill svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    stroke: none;
}

.thread__top .vote-pill + .vote-pill {
    border-left: 1px solid var(--color-border);
}

.thread__top .vote-score {
    min-width: 26px;
    text-align: center;
}

.thread__reply {
    min-height: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 5px;
}

.thread__reply:hover {
    background: transparent;
    color: var(--color-text);
}

.thread__text-action {
    padding-inline: 4px;
    background: transparent;
}

.thread__text-action:hover {
    background: transparent;
}

.thread__stars, .vote-score {
    color: var(--color-text);
    font-size: 13px;
    font-weight: 800;
}

.thread__rate.is-positive .vote-score {
    color: var(--color-primary);
}

.thread__rate.is-negative .vote-score {
    color: var(--color-danger);
}

.info {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    border-radius: 12px;
    background: var(--color-surface-deep);
}

.info__icon {
    display: grid;
    flex: 0 0 36px;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--color-surface);
    color: var(--color-primary);
}

.info__icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.info__body {
    min-width: 0;
}

.info__title {
    margin: 0;
    color: var(--color-text);
    font-size: 16px;
    font-weight: 800;
    line-height: 24px;
}

.info__text {
    margin-top: 4px;
    color: #b6c7cb;
    font-size: 14px;
    line-height: 1.6;
}

.info__text :is(p, ul, ol) {
    margin: 12px 0 0;
}

.info__text :is(ul, ol) {
    padding-left: 20px;
}

.info__text li + li {
    margin-top: 4px;
}

.info__text a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 180ms ease;
}

.info__text a:hover, .info__text a:focus-visible {
    color: var(--color-text);
}

.searchpage {
    min-width: 0;
}

.searchpage__header {
    margin-bottom: 24px;
}

.searchpage__header h1 {
    margin: 0;
    color: var(--color-text);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    line-height: 1.2;
}

.searchpage__header p {
    margin-top: 8px;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.5;
}

.searchpage__form {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: none;
}

.searchpage__input {
    position: relative;
    flex: 1;
    min-width: 0;
}

.searchpage__input > svg {
    position: absolute;
    top: 50%;
    left: 14px;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--color-muted);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: translateY(-50%);
    pointer-events: none;
}

.searchpage__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.searchpage__input input {
    display: block;
    width: 100%;
    min-height: 40px;
    padding: 10px 14px 10px 44px;
    border: 0;
    border-radius: 12px;
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 12px;
    line-height: 18px;
}

.searchpage__input input::placeholder {
    color: var(--color-muted);
    opacity: 1;
}

.searchpage__input input:hover {
    background: var(--color-surface);
}

.searchpage__input input:focus-visible {
    outline: none;
    background-color: var(--color-surface-input);
}

.search-result-msg {
    margin-top: 8px;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.5;
}

.feedback {
    max-width: 820px;
}

.feedback__header {
    margin-bottom: 28px;
}

.feedback__header h1 {
    margin: 0;
    color: var(--color-text);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    line-height: 1.2;
}

.feedback__header p {
    margin-top: 8px;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.5;
}

.feedback__body {
    display: grid;
    gap: 20px;
}

.feedback__grid {
    display: contents;
}

.form-row {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: center;
    gap: 20px;
}

.form-row--message {
    align-items: start;
}

.form-label {
    color: var(--color-text);
    font-size: 15px;
    font-weight: 700;
    line-height: 20px;
}

.form-req {
    margin-left: 4px;
    color: var(--color-danger);
}

.form-input, .form-textarea, .form-select select, .form-file {
    width: 100%;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 14px;
    line-height: 20px;
}

.form-input, .form-select select {
    min-height: 44px;
    padding: 12px 14px;
}

textarea.form-textarea {
    display: block;
    min-height: 180px;
    padding: 12px 14px;
    resize: vertical;
}

.form-input::placeholder, .form-textarea::placeholder {
    color: var(--color-muted);
    opacity: 1;
}

.form-input:focus-visible, .form-textarea:focus-visible, .form-select select:focus-visible, .form-file:focus-visible {
    outline: 0;
    border-color: var(--color-primary);
    background: var(--color-surface-hover);
    box-shadow: 0 0 0 3px rgb(80 223 189 / 12%);
}

.form-select {
    position: relative;
}

.form-select select {
    appearance: none;
    padding-right: 44px;
    cursor: pointer;
}

.form-select::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 16px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--color-muted);
    border-bottom: 2px solid var(--color-muted);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

.form-file {
    min-height: 44px;
    padding: 6px;
    color: var(--color-muted);
}

.form-file::file-selector-button {
    margin-right: 10px;
    padding: 7px 10px;
    border: 0;
    border-radius: 7px;
    background: var(--color-border);
    color: var(--color-text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 180ms ease, color 180ms ease;
}

.form-file::file-selector-button:hover {
    background: var(--color-surface-hover);
    color: var(--color-primary);
}

.form-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 8px;
    padding-left: 200px;
}

.form-actions .btn {
    padding-inline: 28px;
}

.static {
    min-width: 0;
}

.static__title {
    margin-bottom: 24px;
    color: var(--color-text);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    line-height: 1.2;
}

.static__description {
    color: var(--color-text-subtle);
    font-size: 16px;
    line-height: 1.65;
}

.static__description p + p, .static__description p + :is(h2, h3, h4, h5, h6, ul, ol) {
    margin-top: 16px;
}

.static__description :is(h2, h3, h4, h5, h6) {
    margin: 32px 0 12px;
    color: var(--color-text);
    font-weight: 800;
    line-height: 1.3;
}

.static__description h2 {
    font-size: 24px;
}

.static__description h3 {
    font-size: 21px;
}

.static__description h4 {
    font-size: 19px;
}

.static__description h5, .static__description h6 {
    font-size: 17px;
}

.static__description :is(ul, ol) {
    margin: 16px 0;
    padding-left: 24px;
}

.static__description li + li {
    margin-top: 6px;
}

.static__description a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 180ms ease;
}

.static__description a:hover, .static__description a:focus-visible {
    color: var(--color-text);
}

.static__footer {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.static__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.static__meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 20px;
}

.static__meta-icon {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.static__edit {
    margin-left: auto !important;
}

.static__footer > :last-child {
    margin-left: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    isolation: isolate;
    font-family: var(--font-family);
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 90px;
    margin: -1.2rem -1.2rem 0;
    padding: 12px 1.2rem;
    background: transparent;
    border-radius: 1rem 1rem 0 0;
    transition: min-height 200ms ease, padding-block 200ms ease;
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background-color: var(--color-ink);
    background-image: linear-gradient(to bottom, rgb(12 25 29 / 42%), var(--color-ink)), url("../img/elements-bg.png");
    background-repeat: no-repeat, repeat;
    background-size: 100% 100%, 400px 400px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
}

.site-header--compact::before {
    opacity: 1;
}

.site-header--compact {
    min-height: 60px;
    padding-block: 8px;
}

.site-header__brand {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.site-header__logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.site-header__wordmark {
    color: var(--color-text-bright);
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.site-header__wordmark span {
    color: var(--color-primary);
}

.site-header__menu-toggle, .mobile-menu, .mobile-menu__backdrop {
    display: none;
}

.site-header__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.site-header__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 14px;
    color: var(--color-text-subtle);
    font-size: 13px;
    font-weight: 800;
    line-height: 20px;
    text-decoration: none;
}

.site-header__icon {
    transition: color 180ms ease;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    color: var(--color-muted);
}

.site-header__link:hover .site-header__icon, .site-header__link.is-active .site-header__icon {
    color: #cce8e3;
}

.site-header__link:hover, .site-header__link.is-active {
    background-color: rgb(23 44 53 / 70%);
    color: var(--color-text-highlight);
}

.site-header__link {
    transition: color 180ms ease, background-color 180ms ease;
}

.site-header__genres {
    position: relative;
}

.site-header__genres-toggle {
    border: 0;
    background: transparent;
}

.site-header__genres-chevron {
    width: 14px;
    height: 14px;
    margin-left: -3px;
    fill: none;
    stroke: var(--color-muted-deep);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 180ms ease;
}

.site-header__genres-toggle[aria-expanded="true"] {
    background-color: rgb(23 44 53 / 70%);
    color: var(--color-text-highlight);
}

.site-header__genres-toggle[aria-expanded="true"] .site-header__genres-chevron {
    transform: rotate(180deg);
}

.site-header__genres-panel {
    position: absolute;
    z-index: 20;
    top: 100%;
    left: 0;
    width: 600px;
    max-width: calc(100vw - 48px);
    padding-top: 14px;
    animation: genres-appear 180ms ease-out both;
}

.site-header__genres-panel::before {
    content: "";
    position: absolute;
    top: 6px;
    left: var(--arrow-left, 50%);
    width: 16px;
    height: 8px;
    background: var(--color-surface);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    transform: translateX(-50%);
}

.site-header__genres-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px 8px;
    max-height: min(480px, 65vh);
    overflow-y: auto;
    margin: 0;
    padding: 16px;
    list-style: none;
    border-radius: 12px;
    background: var(--color-surface);
    box-shadow: 0 14px 32px #0006;
}

.site-header__genres-list a {
    display: block;
    padding: 8px 12px;
    border-radius: 14px;
    color: var(--color-text-subtle);
    font-size: 15px;
    text-decoration: none;
    transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.site-header__genres-list a:hover, .site-header__genres-list a:focus-visible {
    background: var(--color-surface-raised);
    color: var(--color-primary);
}

@keyframes genres-appear {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-header__search {
    position: relative;
    flex: 1 1 260px;
    min-width: 180px;
    max-width: 350px;
    margin: 0 0 0 auto;
}

.site-header__search-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.site-header__search-input {
    display: block;
    width: 100%;
    min-height: 40px;
    padding: 10px 14px 10px 44px;
    border: 0;
    border-radius: 12px;
    background-color: rgb(23 44 53 / 70%);
    color: var(--color-text);
    font-size: 12px;
    line-height: 18px;
}

.site-header__search-input::placeholder {
    color: var(--color-muted);
    opacity: 1;
}

.site-header__search-input::-webkit-search-cancel-button {
    display: none;
    appearance: none;
}

.site-header__search-button {
    position: absolute;
    inset: 0 auto 0 0;
    display: grid;
    place-items: center;
    width: 40px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
}

.site-header__search-button:hover .site-header__icon {
    color: var(--color-primary);
}

.site-header__admin {
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    margin-left: -16px;
    border-radius: 12px;
    background-color: rgb(23 44 53 / 70%);
    text-decoration: none;
}

.site-header:has(> .site-header__admin) .site-header__search {
    max-width: 302px;
}

.site-header__admin:hover .site-header__icon,
.site-header__admin:focus-visible .site-header__icon {
    color: var(--color-primary);
}

.site-header__admin:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.site-header__search-input:focus-visible {
    outline: none;
    background-color: rgb(27 51 59 / 70%);
}

.shortstory {
    min-width: 0;
}

.shortstory__media {
    position: relative;
}

.shortstory__cover {
    position: relative;
    display: block;
    overflow: hidden;
    isolation: isolate;
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    clip-path: inset(0 round 12px);
    background: var(--color-surface);
    text-decoration: none;
}

.shortstory__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: filter 180ms ease;
}

.shortstory:hover .shortstory__image, .shortstory:focus-within .shortstory__image {
    filter: brightness(0.7);
}

.shortstory__placeholder {
    display: grid;
    place-items: center;
    height: 100%;
    padding: 16px;
    color: var(--color-muted);
    font-size: 13px;
}

.shortstory__overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgb(4 48 38 / 68%);
    opacity: 0;
    pointer-events: none;
    border-radius: 0;
    transition: opacity 180ms ease;
}

.shortstory:hover .shortstory__overlay, .shortstory:focus-within .shortstory__overlay {
    opacity: 1;
}

.shortstory__read-icon, .shortstory__like-icon {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    color: var(--color-primary);
}

.shortstory__read-icon {
    width: 40px;
    height: 40px;
}

.shortstory__rating {
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 1;
}

.shortstory__rating a {
    display: block;
    border-radius: 8px;
    text-decoration: none;
}

.shortstory__likes {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgb(5 20 18 / 88%);
    color: var(--color-text-bright);
    font-size: 13px;
    font-weight: 800;
    line-height: 20px;
    cursor: pointer;
    transition: background-color 180ms ease;
}

.shortstory__rating a:hover .shortstory__likes, .shortstory__rating a:focus-visible .shortstory__likes {
    background: #1b4a3e;
}

.shortstory__like-icon {
    width: 16px;
    height: 16px;
}

.shortstory__title {
    margin-top: 10px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}

.shortstory__meta {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 5px;
    color: var(--color-muted);
    font-size: 12px;
    line-height: 1.5;
}

.shortstory__meta:not(:has(> span)) {
    display: none;
}

.shortstory__author, .shortstory__series {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shortstory__separator {
    flex-shrink: 0;
}

.shortstory__link {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    color: var(--color-text);
    text-decoration: none;
    transition: color 180ms ease;
}

.shortstory__link:hover, .shortstory__link:focus-visible {
    color: var(--color-primary);
}

.seo-text {
    margin-top: 5rem;
    color: #8c9fa3;
    font-size: 14px;
    line-height: 1.75;
}

.seo-text h1 {
    margin-bottom: 12px;
    color: #a7b7ba;
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 800;
    line-height: 1.35;
}

.seo-text h1 span {
    color: var(--color-primary);
}

.seo-text p + p {
    margin-top: 12px;
}

.footer {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 40px;
    padding: 28px 24px;
    border-radius: 12px;
    background-color: var(--color-surface-deep);
    background-image: linear-gradient(rgb(16 31 37 / 68%), rgb(16 31 37 / 68%)), url("../img/elements-bg.png");
    background-repeat: repeat;
    background-size: auto, 400px 400px;
}

.footer__brand {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.footer__image {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.footer__wordmark {
    color: var(--color-text-bright);
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.footer__accent {
    color: var(--color-primary);
}

.footer__content {
    flex: 1;
    min-width: 0;
    padding-left: 32px;
    border-left: 1px solid var(--color-border-dark);
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer__link {
    display: inline-block;
    padding-block: 6px;
    color: #b6c2cb;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: color 180ms ease;
}

.footer__link:hover, .footer__link:focus-visible {
    color: var(--color-primary);
}

.footer__legal {
    margin-top: 10px;
    color: #899ba6;
    font-size: 14px;
}

.gotop {
    position: fixed;
    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 90;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--color-ink);
    color: var(--color-text);
    box-shadow: 0 6px 20px #0005;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease, background-color 180ms ease, color 180ms ease;
}

.gotop--visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.gotop:hover {
    background-color: var(--color-primary);
    color: var(--color-ink);
}

.gotop:focus-visible {
    outline-color: var(--color-primary);
}

.gotop__icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero {
    min-width: 0;
    margin-top: 24px;
}

.hero__slider {
    overflow: hidden;
    cursor: grab;
}

.hero__slider:active {
    cursor: grabbing;
}

.hero__card {
    height: auto;
}

.hero__card a {
    cursor: inherit;
}

.hero__card .shortstory__title {
    font-size: 14px;
}

.hero__card .shortstory__link {
    -webkit-line-clamp: 2;
}

.hero__controls {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

.hero__arrow {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 8px;
    border: 0;
    border-radius: 10px;
    background: var(--color-surface);
    color: var(--color-text);
    transition: background-color 180ms ease, color 180ms ease;
}

.hero__arrow:hover:not(:disabled) {
    background: var(--color-surface-hover);
    color: var(--color-primary);
}

.hero__arrow:hover, .hero__arrow:active {
    padding: 8px;
    border: 0;
    transform: none;
}

.hero__arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

.hero__arrow.swiper-button-lock {
    display: none;
}

.hero__arrow svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero__arrow svg, .hero__arrow:hover svg, .hero__arrow:active svg {
    transform: none;
    translate: none;
    scale: none;
    transition: none;
    animation: none;
}

.pagination {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    border: 0;
}

.pagination__pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.pagination--split {
    display: flex;
    justify-content: center;
    width: 100%;
}

.pagination--split .pagination__pages {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.pagination--split .pagination__pages > * {
    flex: 0 0 auto;
}

.pagination__pages > a, .pagination__pages > span, .pagination__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 0;
    border-radius: 10px;
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease;
}

.pagination__pages > span:not(.nav_ext) {
    background: var(--color-primary);
    color: var(--color-ink);
}

.pagination__pages > .nav_ext {
    min-width: 24px;
    padding: 0 4px;
    background: transparent;
    color: var(--color-muted);
}

.pagination__edge > a {
    display: flex;
    border: 0;
    border-radius: 10px;
    text-decoration: none;
}

.pagination__pages > a:hover, .pagination__edge > a:hover .pagination__arrow {
    background: var(--color-surface-hover);
    color: var(--color-primary);
}

.pagination__edge > span,
.pagination__edge:not(:has(a)) {
    display: none;
}

.pagination__arrow {
    width: 40px;
    padding: 8px;
}

.pagination__arrow svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.layout__grid {
    align-self: start;
    align-content: start;
}

.top-week {
    padding: 16px;
    border-radius: 14px;
    background: var(--color-surface-deep);
}

.sidebar__more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 20px;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    text-decoration: none;
}

.sidebar__more:hover span, .sidebar__more:focus-visible span {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sidebar__more svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: rotate(-90deg);
}

.top-week__heading {
    display: flex;
    align-items: center;
    margin: 0 0 24px;
    color: var(--color-text);
    font-size: 18px;
    font-weight: 800;
    line-height: 24px;
    text-transform: uppercase;
}

.top-week__heading > span > span {
    color: var(--color-primary);
}

.top-week__flame, .top-week__views svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.top-week__list {
    counter-reset: top-week;
}

.top-week__item {
    position: relative;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid rgb(143 177 180 / 12%);
    counter-increment: top-week;
}

.top-week__item:first-child {
    padding-top: 0;
    border-top: 0;
}

.top-week__item:last-child {
    padding-bottom: 0;
}

.top-week__cover {
    position: relative;
    display: block;
    overflow: hidden;
    height: 88px;
    border-radius: 8px;
    background: var(--color-surface);
}

.top-week__item::before {
    content: counter(top-week);
    position: absolute;
    z-index: 1;
    top: 14px;
    left: -10px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-surface-hover);
    color: var(--color-text);
    font-size: 12px;
    font-weight: 900;
}

.top-week__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-week__body {
    min-width: 0;
}

.top-week__title {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    line-height: 18px;
}

.top-week__title a {
    display: block;
    overflow: hidden;
    color: var(--color-text);
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-week__title a:hover, .top-week__title a:focus-visible {
    color: var(--color-primary);
}

.top-week__genre {
    overflow: hidden;
    margin-top: 6px;
    color: var(--color-muted);
    font-size: 12px;
    line-height: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-week__genre a + a::before {
    content: " · ";
    color: var(--color-muted);
}

.top-week__views {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    color: #c7d5d7;
    font-size: 11px;
    font-weight: 800;
    line-height: 16px;
}

.top-week__views svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.last-comments {
    margin-top: 48px;
}

.last-comments__heading {
    margin: 0 0 28px;
    color: var(--color-text);
    font-size: 18px;
    font-weight: 800;
    line-height: 24px;
    text-transform: uppercase;
}

.last-comments__heading span {
    color: var(--color-primary);
}

.last-comments__list {
    display: grid;
    gap: 22px;
}

.last-comments__item {
    min-width: 0;
}

.last-comments__meta {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    margin-bottom: 8px;
}

.last-comments__avatar {
    display: inline-block;
    flex: 0 0 30px;
    overflow: hidden;
    width: 30px;
    height: 30px;
    padding: 5px 0;
    border-radius: 50%;
    background: #7540c5;
    color: var(--color-white);
    font-size: 14px;
    font-weight: 800;
    line-height: 20px;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
}

.last-comments__author, .last-comments__date {
    overflow: hidden;
    color: #d2dde0;
    font-size: 12px;
    line-height: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.last-comments__author {
    flex: 0 1 auto;
}

.last-comments__avatar a, .last-comments__author a {
    pointer-events: none;
    color: inherit;
    text-decoration: none;
}

.last-comments__date {
    color: #a8b7bc;
}

.last-comments__message {
    display: block;
    max-height: 86px;
    overflow: hidden;
    padding: 10px 10px 0;
    border-radius: 10px 10px 0 0;
    background-color: var(--color-surface-deep);
    color: var(--color-text-bright);
    font-size: 14px;
    font-weight: 700;
    line-height: 19px;
}

.last-comments__news {
    display: flex;
    align-items: center;
    gap: 7px;
    overflow: hidden;
    padding: 8px 10px 10px;
    border-radius: 0 0 10px 10px;
    background-color: var(--color-surface-deep);
    color: #e5eef0;
    font-size: 12px;
    line-height: 18px;
}

.last-comments__content {
    overflow: hidden;
    border-radius: 10px;
    background: var(--color-surface-deep);
}

.last-comments__news svg {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.last-comments__news span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.last-comments__news a {
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.last-comments__news a:hover, .last-comments__news a:focus-visible {
    color: var(--color-primary);
}

@media (max-width: 540px) {
    .discussion {
        padding: 16px;
    }

    .thread__item {
        padding: 16px;
    }

    .thread__item--reply {
        margin-left: 16px;
    }

    .thread__avatar {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
    }

    .thread__avatar .avatar--initial {
        font-size: 13px;
    }

    .thread__moderation {
        width: 100%;
        margin-left: 0;
    }

    .thread__rate {
        flex: 0 0 auto;
        width: auto;
        margin-left: auto;
    }

    .thread__news-inline {
        display: none;
    }

    .thread__news-mobile {
        display: block;
        margin-top: 10px;
        color: var(--color-muted);
        font-size: 12px;
        line-height: 1.5;
    }

    .thread__news-mobile a:hover,
    .thread__news-mobile a:focus-visible {
        color: var(--color-primary);
    }
}

@media (max-width: 540px) {
    .fullstory__details {
        padding: 16px;
    }

    .story-nav {
        grid-template-columns: 1fr;
    }

    .story-nav__item--next {
        text-align: left;
    }
}

@media (max-width: 540px) {
    .info {
        gap: 12px;
        padding: 16px;
    }

    .info__icon {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 540px) {
    .searchpage__form {
        align-items: stretch;
        flex-direction: column;
    }

    .searchpage__form .btn {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .form-actions {
        padding-left: 0;
    }
}

@media (max-width: 540px) {
    .static__footer {
        flex-wrap: wrap;
    }

    .static__edit {
        margin-left: 0;
    }

    .static__footer > :last-child {
        margin-left: 0;
    }
}

@media (max-width: 700px) {
    .footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 24px 20px;
    }

    .footer__content {
        width: 100%;
        padding-top: 16px;
        padding-left: 0;
        border-top: 1px solid var(--color-border-dark);
        border-left: 0;
    }

    .footer__links {
        column-gap: 20px;
    }

    .footer__wordmark {
        font-size: 22px;
    }
}

@media (max-width: 1190px) {
    .site-header {
        flex-wrap: wrap;
        gap: 16px;
    }

    .site-header__nav {
        order: 1;
        width: 100%;
    }
}

@media (max-width: 1040px) {
    .site-header__search {
        flex: 0 1 320px;
        max-width: 320px;
    }

    .site-header:has(> .site-header__admin) .site-header__search {
        max-width: 272px;
    }
}

@media (max-width: 800px) {
    .site-header {
        margin-top: 0;
        margin-inline: -14px;
        padding-inline: 14px;
    }
}

@media (max-width: 700px) {
    .site-header {
        gap: 14px;
    }

    .site-header--compact {
        min-height: 90px;
        padding-block: 12px;
    }

    .site-header__logo {
        width: 36px;
        height: 36px;
    }

    .site-header__brand {
        gap: 8px;
    }

    .site-header__wordmark {
        font-size: 20px;
    }

    .site-header__menu-toggle {
        display: grid;
        place-items: center;
        width: 42px;
        height: 40px;
        padding: 0;
        margin-left: auto;
        border: 0;
        border-radius: 12px;
        color: var(--color-muted);
        cursor: pointer;
    }

    .site-header__nav {
        display: none;
    }

    .site-header__search {
        order: 1;
        flex: 0 0 100%;
        width: 100%;
        min-width: 0;
        max-width: none;
        margin: 0;
    }

    .site-header__admin {
        order: 1;
        margin-left: 0;
    }

    .site-header:has(> .site-header__admin) .site-header__search {
        flex-basis: calc(100% - 54px);
        width: calc(100% - 54px);
        max-width: none;
    }

    .mobile-menu__backdrop:not([hidden]) {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 101;
        width: 100%;
        border: 0;
        background: #0009;
    }

    .mobile-menu {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 102;
        display: flex;
        flex-direction: column;
        gap: 4px;
        width: min(320px, calc(100vw - 48px));
        height: 100vh;
        height: 100dvh;
        padding: 20px;
        overflow: hidden;
        background: var(--color-ink);
        box-shadow: 10px 0 30px #0007;
        transform: translateX(-105%);
        visibility: hidden;
        transition: transform 220ms ease, visibility 220ms ease;
    }

    .site-header--menu-open .mobile-menu {
        transform: translateX(0);
        visibility: visible;
    }

    .mobile-menu__top {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        margin-bottom: 12px;
    }

    .mobile-menu__close {
        width: 36px;
        height: 36px;
        border: 0;
        border-radius: 10px;
        background: var(--color-surface);
        color: var(--color-muted);
        font-size: 28px;
        line-height: 1;
        cursor: pointer;
    }

    .mobile-menu__link, .mobile-menu__genres-list a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 10px;
        border-radius: 10px;
        color: var(--color-text-subtle);
        font-size: 14px;
        text-decoration: none;
    }

    .mobile-menu__icon {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
        fill: none;
        stroke: var(--color-muted);
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .mobile-menu__link:hover, .mobile-menu__link.is-active,
    .mobile-menu__genres-list a:hover, .mobile-menu__genres-list a[aria-current="page"] {
        background: var(--color-surface);
        color: var(--color-primary);
    }

    .mobile-menu__genres {
        display: flex;
        flex: 1;
        flex-direction: column;
        min-height: 0;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid var(--color-border-dark);
    }

    .mobile-menu__heading {
        margin: 0 0 8px 10px;
        color: var(--color-muted-deep);
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    .mobile-menu__genres-list {
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        margin: 0;
        padding: 0;
        list-style: none;
    }
}

@media (max-width: 600px) {
    .site-header {
        margin-inline: -12px;
        padding-inline: 12px;
    }

    .pagination {
        gap: 8px;
    }

    .pagination__pages {
        gap: 4px;
    }

    .pagination__pages > a,
    .pagination__pages > span,
    .pagination__arrow {
        min-width: 34px;
        height: 34px;
        padding-inline: 7px;
        font-size: 12px;
    }

    .pagination__arrow {
        width: 34px;
        padding: 7px;
    }

    .pagination__arrow svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 630px) {
    .hero__controls {
        display: none;
    }
}
/* Cookie notice */
.cookie-notice[hidden] {
    display: none;
}

.cookie-notice {
    position: fixed;
    z-index: 1000;
    bottom: 24px;
    left: 50%;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 12px;
    width: min(480px, calc(100% - 32px));
    padding: 18px 20px;
    border-radius: 16px;
    background: rgb(16 31 37 / 92%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 18px 48px var(--color-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, calc(100% + 48px));
    transition: transform 300ms ease, opacity 300ms ease, visibility 300ms ease;
}

.cookie-notice--visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.cookie-notice__image {
    grid-row: 1 / 3;
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.cookie-notice__content {
    min-width: 0;
}

.cookie-notice__title {
    margin: 0 0 4px;
    color: var(--color-text);
    font-size: 16px;
    font-weight: 800;
}

.cookie-notice__text {
    margin: 0;
    color: var(--color-text-soft);
    font-size: 14px;
    line-height: 1.5;
}

.cookie-notice__text a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-notice__actions {
    grid-column: 2;
    display: flex;
    gap: 8px;
}

@media (max-width: 700px) {
    .cookie-notice {
        bottom: 16px;
        grid-template-columns: 48px minmax(0, 1fr);
        column-gap: 12px;
        padding: 16px;
    }

    .cookie-notice__image {
        width: 48px;
        height: 48px;
    }

    .cookie-notice__actions .btn {
        flex: 1;
    }
}
@media (prefers-reduced-motion: reduce) {
      .cookie-notice {
        transition: none;
    }
    .gotop, .site-header, .shortstory *, .footer__link, .site-header *, .site-header *::before {
        transition: none;
        animation: none;
    }
}
