:root {
    --bg-900: #130606;
    --bg-800: #1b0a0a;
    --bg-700: #2a0d0f;
    --bg-600: #3b1115;
    --accent-red: #ff2d55;
    --text: #ffffff;
    --muted: #b9bdc3;
    --acc: #ffffff;
    --acc-ink: #000000;
    --panel: rgba(255, 255, 255, 0.06);
    --panel-bd: rgba(255, 255, 255, 0.10);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.30);
    --page-max: 1500px;
}

*,
*:before,
*:after {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text);
    background:
        radial-gradient(80% 60% at 50% 10%, var(--bg-600), var(--bg-900) 70%),
        var(--bg-900);
    background-attachment: fixed;
    font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-text-size-adjust: 100%;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
li,
form,
button,
input,
textarea {
    margin: 0;
    padding: 0;
}

ul,
ol,
li {
    list-style: none;
}

a {
    color: var(--acc);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

img,
svg {
    display: block;
}

img {
    max-width: 100%;
}

:focus-visible {
    outline: 2px solid var(--accent-red);
    outline-offset: 2px;
}

.skip-to-main-content {
    position: fixed;
    left: 12px;
    top: 12px;
    z-index: 1000;
    transform: translateY(-160%);
    border-radius: 999px;
    background: var(--accent-red);
    color: #fff;
    font-weight: 800;
    padding: 8px 13px;
}

.skip-to-main-content:focus {
    transform: translateY(0);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.25) 60%, transparent);
    backdrop-filter: blur(2px);
}

.nav-inner {
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) auto auto;
    gap: 18px;
    align-items: center;
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 16px clamp(16px, 6vw, 36px);
}

.brand {
    min-width: 0;
    overflow: hidden;
    color: var(--text);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand:hover {
    text-decoration: none;
}

.top-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.top-links a {
    color: #eee;
    font-weight: 600;
    opacity: 0.85;
    text-decoration: none;
}

.top-links a:hover {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 6px;
}

.search-wrap {
    position: relative;
    width: 100%;
    max-width: 780px;
    justify-self: stretch;
}

.search-wrap form {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 44px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 6px 24px rgba(0, 0, 0, 0.35);
}

.search-wrap form:focus-within {
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 0 2px rgba(255, 45, 85, 0.25), 0 10px 30px rgba(0, 0, 0, 0.45);
}

.search-input {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-size: 15px;
    padding: 0 48px 0 20px;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.search-btn {
    position: absolute;
    top: 50%;
    right: 14px;
    display: flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border: 0;
    background: none;
    color: #fff;
    opacity: 0.9;
    padding: 0;
    transform: translateY(-50%);
}

.search-btn:hover {
    opacity: 1;
}

.site-header-auth {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    border-left: 1px solid var(--panel-bd);
    padding-left: 20px;
}

.site-header-auth .btn-signup {
    display: inline-flex;
    align-items: center;
    border: 0;
    border-radius: 999px;
    background: var(--accent-red);
    color: #fff;
    font-weight: 700;
    line-height: 1;
    padding: 9px 18px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(255, 45, 85, 0.35);
}

.site-header-auth .btn-signup:hover {
    filter: brightness(1.08);
    text-decoration: none;
}

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 80;
    display: none;
    min-width: 170px;
    max-height: 340px;
    overflow: auto;
    border: 1px solid var(--panel-bd);
    border-radius: 10px;
    background: var(--bg-800);
    box-shadow: var(--shadow);
    padding: 8px;
}

.js-lang-holder.open .lang-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lang-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-radius: 7px;
    color: var(--text);
    padding: 8px 10px;
}

.lang-menu a:hover,
.lang-menu a.is-active {
    background: var(--panel);
    color: #fff;
    text-decoration: none;
}

.lang-menu strong {
    color: var(--accent-red);
    font-size: 10px;
    text-transform: uppercase;
}

.burger {
    display: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 4px;
}

.burger span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    margin: 5px 0;
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-inner {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    width: 85%;
    max-width: 360px;
    height: 100%;
    flex-direction: column;
    background: #0f0f0f;
    padding: 24px;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
}

.menu-close {
    position: relative;
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: #fff;
    padding: 0;
}

.menu-close span {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: #fff;
}

.menu-close span:first-child {
    transform: rotate(45deg);
}

.menu-close span:last-child {
    transform: rotate(-45deg);
}

.menu-close:hover span {
    background: var(--accent-red);
}

.mobile-nav,
.mobile-auth {
    display: flex;
    flex-direction: column;
}

.mobile-nav {
    gap: 18px;
}

.mobile-nav a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 16px;
    padding: 12px 0;
    text-decoration: none;
}

.mobile-auth {
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 24px;
    padding-top: 20px;
}

.mobile-auth a {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 8px 0;
}

.mobile-auth .mobile-signup {
    color: var(--accent-red);
}

/* Page */
.page {
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 24px clamp(16px, 6vw, 36px);
}

.ad-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 18px;
}

.ad-row--bottom {
    margin: 34px 0 0;
}

.ad-slot {
    overflow: hidden;
    border: 1px solid var(--panel-bd);
    border-radius: 14px;
    background: var(--panel);
}

.ad-slot iframe,
.ad-slot img {
    max-width: 100%;
}

.section-title {
    color: var(--text);
    font-size: 22px;
    line-height: 1.2;
    margin: 0 0 20px;
}

.section-title--sm {
    font-size: 18px;
    margin: 0 0 16px;
}

.section-title--related {
    margin: 30px 0 15px;
}

.section-title-count {
    color: #888;
    font-weight: 400;
}

.category-intro {
    max-width: 900px;
    color: var(--muted);
    line-height: 1.7;
    margin: 0 0 22px;
}

.category-intro p,
.category-intro div {
    margin: 0 0 10px;
}

.category-intro a,
.entry-content a {
    color: #ff6b82;
}

/* Search controls */
.search-controls {
    --sc-accent: #ffd166;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 14px 0 18px;
}

.search-segments {
    display: inline-flex;
    gap: 2px;
    border: 1px solid var(--panel-bd);
    border-radius: 10px;
    background: var(--panel);
    padding: 3px;
}

.search-seg {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    border-radius: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.005em;
    line-height: 1.3;
    padding: 6px 12px;
    text-decoration: none;
}

.search-seg .count {
    border-radius: 999px;
    background: var(--bg-900);
    color: var(--muted);
    font-size: 10.5px;
    font-variant-numeric: tabular-nums;
    padding: 1px 6px;
}

.search-seg:hover {
    color: var(--text);
    text-decoration: none;
}

.search-seg.is-active {
    background: var(--sc-accent);
    color: var(--bg-900);
}

.search-seg.is-active .count {
    background: rgba(0, 0, 0, 0.2);
    color: rgba(0, 0, 0, 0.7);
}

.search-sort-wrap {
    position: relative;
    margin-left: auto;
}

.search-sort-wrap ~ .search-sort-wrap {
    margin-left: 0;
}

.search-sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px dashed var(--panel-bd);
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    font-size: 12.5px;
    padding: 6px 10px 6px 12px;
}

.search-sort-btn:hover {
    border-color: var(--sc-accent);
}

.search-sort-btn .label {
    color: var(--muted);
    font-size: 9.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.search-sort-btn .value {
    font-weight: 600;
}

.search-sort-btn svg {
    opacity: 0.55;
    transition: transform 0.15s ease;
}

.search-sort-btn[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.search-sort-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 60;
    display: none;
    min-width: 200px;
    flex-direction: column;
    border: 1px solid var(--panel-bd);
    border-radius: 10px;
    background: var(--bg-700);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
    padding: 5px;
}

.search-sort-menu.is-open {
    display: flex;
}

.search-sort-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 7px;
    color: var(--text);
    font-size: 12.5px;
    line-height: 1.3;
    padding: 7px 10px;
    text-decoration: none;
}

.search-sort-item:hover {
    background: var(--panel);
    text-decoration: none;
}

.search-sort-item .num {
    color: var(--muted);
    font-size: 9.5px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.08em;
}

.search-sort-item.is-active {
    background: var(--sc-accent);
    color: var(--bg-900);
}

.did-you-mean {
    border: 1px solid var(--panel-bd);
    border-left: 3px solid #ffd166;
    border-radius: 8px;
    background: var(--panel);
    color: var(--muted);
    font-size: 14px;
    margin: 0 0 12px;
    padding: 10px 14px;
}

/* Grid and cards */
.grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 28px;
}

.grid-empty,
.empty-state {
    grid-column: 1 / -1;
    border: 1px solid var(--panel-bd);
    border-radius: 16px;
    background: var(--panel);
    color: var(--muted);
    padding: 40px;
    text-align: center;
}

a.card {
    display: flex;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    color: inherit;
    box-shadow: var(--shadow);
    padding-bottom: 12px;
    text-decoration: none;
}

.card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: #111;
}

.card-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 15%;
    transition: transform 0.25s ease;
}

a.card:hover .card-thumb img {
    transform: scale(1.04);
}

.card-no-thumb {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-weight: 700;
}

.card-src,
.card-top,
.card-views,
.card-duration {
    position: absolute;
    z-index: 2;
    font-feature-settings: "tnum" 1;
    pointer-events: none;
}

.card-src {
    left: 10px;
    top: 10px;
    border-radius: 5px;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.card-src.cb {
    background: #ff6b35;
}

.card-src.bc {
    background: #ff3e80;
}

.card-src.mfc {
    background: #19b6c8;
}

.card-src.static {
    position: static;
    display: inline-flex;
}

.card-top {
    right: 10px;
    top: 10px;
    border-radius: 5px;
    background: linear-gradient(135deg, #ffe17a, #d4a437);
    color: #1a0d00;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(212, 164, 55, 0.4);
}

.card-views {
    left: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
}

.card-views svg {
    width: 12px;
    height: 12px;
    opacity: 0.85;
}

.card-duration {
    right: 10px;
    bottom: 10px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
}

.card-fav {
    position: absolute;
    top: 42px;
    right: 10px;
    z-index: 3;
    display: flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    opacity: 0.85;
}

.card-line {
    display: flex;
    min-height: 20px;
    align-items: baseline;
    gap: 10px;
    padding: 10px 12px 0;
}

.card-title {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-time {
    flex: 0 0 auto;
    color: var(--muted);
    cursor: help;
    font-size: 12px;
    line-height: 20px;
    opacity: 0.7;
    white-space: nowrap;
}

/* Pagination */
.pagination-wrap {
    margin-top: 34px;
}

.pagination,
.pagination ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.pagination ul {
    flex-wrap: wrap;
}

.pagination li {
    display: inline-flex;
}

.pagination-link,
.pagination .page_link,
.pagination .current,
.pagination .pagination-ellipsis span {
    display: flex;
    min-width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    background: #e9e9e9;
    color: #111;
    font-size: 16px;
    font-weight: 600;
    padding: 0 16px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination .page_link:hover {
    background: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

.pagination .chosen .current,
.pagination .current {
    border: 2px solid var(--accent-red);
    background: #000;
    color: var(--accent-red);
    pointer-events: none;
}

/* Watch page */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    color: var(--muted);
    font-size: 13px;
    margin: 0 0 16px;
}

.breadcrumbs a {
    color: var(--muted);
}

.breadcrumbs a:hover {
    color: var(--accent-red);
    text-decoration: none;
}

.breadcrumbs .sep {
    opacity: 0.4;
    margin: 0 2px;
}

.breadcrumbs .current {
    color: var(--text);
    font-weight: 500;
}

.video-wrap {
    max-width: 1100px;
    margin: 0 auto;
}

.xplayer {
    position: relative;
    display: flex;
    overflow: hidden;
    width: 100%;
    max-width: 1100px;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    background: #000;
    margin: 0 auto 24px;
}

.xplayer #player,
.xplayer .jwplayer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    min-height: 100%;
    background: #000;
}

.video-title {
    color: var(--text);
    font-size: clamp(23px, 3vw, 34px);
    line-height: 1.18;
    margin: 12px 0 6px;
}

.video-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid var(--panel-bd);
    border-radius: 10px;
    background: var(--panel);
    margin: 12px 0 16px;
    padding: 8px 14px;
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    color: var(--muted);
    font-size: 14px;
    line-height: 30px;
}

.vote-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vote-btn,
.dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--panel-bd);
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    padding: 6px 12px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.vote-btn:hover,
.dl-btn:hover {
    border-color: var(--accent-red);
    color: #fff;
    text-decoration: none;
}

.video-info-block {
    border: 1px solid var(--panel-bd);
    border-radius: 10px;
    background: var(--panel);
    font-size: 14px;
    line-height: 1.7;
    margin: 16px 0;
    padding: 12px 14px;
}

.video-info-line {
    margin: 0 0 8px;
}

.video-info-label {
    color: var(--muted);
    margin-right: 4px;
}

.share-input-inline {
    width: min(100%, 760px);
    height: 36px;
    border: 1px solid var(--panel-bd);
    border-radius: 8px;
    outline: 0;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    padding: 0 10px;
}

.share-input-inline:focus {
    border-color: var(--accent-red);
}

.entry-content {
    color: #ddd;
}

.entry-content p,
.entry-content div {
    margin: 0 0 10px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.chip {
    border: 1px solid #333;
    border-radius: 999px;
    background: #111;
    color: #eee;
    cursor: pointer;
    padding: 8px 12px;
}

.chip:hover {
    border-color: #666;
    text-decoration: none;
}

/* Footer */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: #1a0808;
    margin-top: 40px;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 24px clamp(16px, 6vw, 36px);
}

.footer-heading {
    color: #ddd;
    font-size: 14px;
    font-weight: 700;
    margin: 0.2rem 0 0.7rem;
}

.footer-col a {
    color: #e0e0e0;
}

.footer-col a:hover {
    color: #fff;
}

.footer-col li {
    margin: 0.35rem 0;
}

.footer-counters {
    color: #ccc;
    font-size: 12px;
}

.footer-bottom {
    color: #ccc;
    padding: 16px 16px 2rem;
    text-align: center;
}

/* Directory and 404 compatibility */
.directory-page,
.error-hero {
    max-width: var(--page-max);
    margin: 0 auto;
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.section-head h1,
.error-hero h1 {
    color: var(--text);
    font-size: 24px;
}

.section-head span {
    color: var(--muted);
}

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

.directory-card,
.model-tile {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--panel-bd);
    border-radius: 14px;
    background: var(--panel);
    color: var(--text);
    padding: 12px;
}

.directory-card:hover,
.model-tile:hover {
    border-color: var(--accent-red);
    text-decoration: none;
}

.directory-card__letter,
.model-tile__placeholder {
    display: inline-flex;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--accent-red);
    color: #fff;
    font-weight: 800;
}

.directory-card__content,
.directory-card__title,
.directory-card__meta {
    display: block;
    min-width: 0;
}

.directory-card__title,
.model-tile__title {
    overflow: hidden;
    color: #fff;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.directory-card__meta {
    color: var(--muted);
    font-size: 12px;
}

.model-tile {
    display: grid;
    text-align: center;
}

.model-tile__media {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border-radius: 14px;
    background: #111;
}

.model-tile__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.load-more-row {
    margin-top: 22px;
}

.error-hero__panel {
    display: grid;
    gap: 18px;
    border: 1px solid var(--panel-bd);
    border-radius: 18px;
    background: var(--panel);
    padding: clamp(24px, 5vw, 54px);
    text-align: center;
}

.error-hero__code {
    color: var(--accent-red);
    font-size: clamp(72px, 15vw, 170px);
    font-weight: 900;
    line-height: 0.9;
}

.error-hero__content {
    display: grid;
    gap: 14px;
}

.error-hero__eyebrow,
.error-hero__text {
    color: var(--muted);
}

.error-hero__search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    max-width: 560px;
    margin: 0 auto;
}

.error-hero__search input {
    min-width: 0;
    border: 1px solid var(--panel-bd);
    border-radius: 10px 0 0 10px;
    outline: 0;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    padding: 0 12px;
}

.error-hero__search button,
.error-button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0 10px 10px 0;
    background: var(--accent-red);
    color: #fff;
    font-weight: 700;
    padding: 0 16px;
}

.error-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.error-button {
    border-radius: 10px;
}

/* RTL */
.is-rtl .search-btn {
    right: auto;
    left: 14px;
}

.is-rtl .search-input {
    padding: 0 20px 0 48px;
}

.is-rtl .site-header-auth {
    border-right: 1px solid var(--panel-bd);
    border-left: 0;
    padding-right: 20px;
    padding-left: 0;
}

.is-rtl .lang-menu,
.is-rtl .search-sort-menu {
    right: auto;
    left: 0;
}

.is-rtl .mobile-menu-inner {
    right: auto;
    left: 0;
}

.is-rtl .card-src,
.is-rtl .card-views {
    right: 10px;
    left: auto;
}

.is-rtl .card-top,
.is-rtl .card-duration,
.is-rtl .card-fav {
    right: auto;
    left: 10px;
}

@media (max-width: 1250px) {
    .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .top-links,
    .site-header-auth {
        display: none;
    }

    .nav-inner {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        padding: 10px 12px;
    }

    .brand {
        font-size: 25px;
    }

    .search-wrap {
        grid-column: 1 / -1;
        order: 3;
        max-width: 100%;
        margin-top: 4px;
    }

    .search-wrap form {
        height: 38px;
    }

    .burger {
        display: block;
        justify-self: end;
    }

    .page {
        padding: 14px 10px;
    }

    .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .search-controls {
        gap: 8px;
    }

    .search-segments {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .search-segments::-webkit-scrollbar {
        display: none;
    }

    .search-seg {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .search-sort-wrap {
        width: 100%;
        margin-left: 0;
    }

    .search-sort-btn {
        width: 100%;
        justify-content: space-between;
    }

    .search-sort-menu {
        right: 0;
        left: 0;
    }
}

@media (max-width: 700px) {
    .grid,
    .ad-row,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .pagination,
    .pagination ul {
        gap: 8px;
    }

    .pagination .page_link,
    .pagination .current,
    .pagination .pagination-ellipsis span {
        min-width: 40px;
        height: 40px;
        border-radius: 10px;
        font-size: 14px;
        padding: 0 12px;
    }

    .video-actions {
        align-items: stretch;
    }

    .vote-buttons {
        width: 100%;
    }

    .vote-btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    .error-hero__search {
        grid-template-columns: 1fr;
    }

    .error-hero__search input,
    .error-hero__search button {
        border-radius: 10px;
    }
}
