html {
    background: #020817;
}

body {
    margin: 0;
    padding: 0;
    color: #dbeafe;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.28), transparent 330px),
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.16), transparent 360px),
        #020817;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.45;
}

* {
    box-sizing: border-box;
}

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

img {
    max-width: 100%;
    vertical-align: middle;
    border: 0;
}

.xl-page {
    width: 100%;
    max-width: 1120px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 0 14px 18px;
    background: rgba(7, 17, 31, 0.96);
    box-shadow: 0 0 46px rgba(0, 0, 0, 0.55);
}

.xl-header {
    padding: 12px 0 0;
    text-align: center;
}

.xl-logo {
    display: inline-block;
    padding: 4px 0 10px;
}

.xl-logo img {
    max-height: 76px;
}

.xl-hero {
    margin: 0 0 12px;
    padding: 16px 18px;
    text-align: left;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #0e2b46 0%, #123b5b 52%, #0d2942 100%);
    border: 1px solid rgba(125, 211, 252, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 24px rgba(0, 0, 0, 0.25);
}

.xl-hero h1 {
    margin: 0 0 5px;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
}

.xl-hero p {
    margin: 0;
    color: #b9d6f2;
    font-size: 14px;
}

.xl-adbox {
    margin: 12px 0;
    padding: 12px;
    overflow: hidden;
    color: #eaf4ff;
    border-radius: 14px;
    background: #0b1628;
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.xl-adbox a {
    color: #eaf4ff;
}

.xl-adbox a:hover {
    color: #7dd3fc;
}

.xl-nav {
    display: table;
    width: 100%;
    margin: 12px 0;
    table-layout: fixed;
    border-spacing: 8px 0;
}

.xl-nav a {
    display: table-cell;
    padding: 13px 8px;
    text-align: center;
    color: #ffffff;
    font-weight: 700;
    border-radius: 13px;
    background: linear-gradient(180deg, #1d4f78 0%, #143b5f 100%);
    border: 1px solid rgba(147, 197, 253, 0.2);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.24);
}

.xl-nav a:hover {
    background: linear-gradient(180deg, #256899 0%, #1d527e 100%);
}

.xl-section {
    margin: 14px 0;
}

.xl-section-title {
    margin: 0 0 12px;
    padding: 12px 14px;
    color: #ffffff;
    font-weight: 700;
    border-radius: 14px;
    background: linear-gradient(180deg, #153b5b 0%, #102d47 100%);
    border: 1px solid rgba(147, 197, 253, 0.18);
}

.xl-video-grid {
    display: block;
    margin: 0 -7px;
    font-size: 0;
}

.xl-video-card {
    display: inline-block;
    width: 33.3333%;
    padding: 7px;
    vertical-align: top;
    font-size: 15px;
}

.xl-video-card a {
    display: block;
    height: 100%;
    padding: 10px;
    border-radius: 16px;
    color: #f8fafc;
    background: #0d1b2f;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 9px 20px rgba(0, 0, 0, 0.28);
}

.xl-video-card a:hover {
    background: #10213a;
    border-color: rgba(96, 165, 250, 0.44);
}

.xl-video-name {
    display: block;
    min-height: 42px;
    padding: 2px 3px 9px;
    color: #f8fafc;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
}

.xl-thumb {
    display: block;
    overflow: hidden;
    border-radius: 13px;
    background: #020817;
    border: 1px solid rgba(96, 165, 250, 0.28);
}

.xl-thumb img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.xl-video-info {
    display: block;
    min-height: 34px;
    padding: 9px 3px 0;
    color: #b9d6f2;
    font-size: 13px;
}

.xl-time,
.xl-loads {
    display: inline-block;
}

.xl-time img,
.xl-loads img {
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

.xl-loads {
    float: right;
}

.xl-cat-grid {
    margin: 0 -6px;
    font-size: 0;
}

.xl-cat-card {
    display: inline-block;
    width: 25%;
    padding: 6px;
    vertical-align: top;
    font-size: 14px;
}

.xl-cat-card .xl-cat-name,
.xl-cat-card .xl-cat-count {
    vertical-align: middle;
}

.xl-cat-card {
    color: #eaf4ff;
}

.xl-cat-card:before {
    content: '';
}

.xl-cat-card > span:first-child,
.xl-cat-card > span:last-child {
    position: relative;
    z-index: 1;
}

.xl-cat-card {
    min-height: 58px;
    text-align: center;
    border-radius: 14px;
    background: linear-gradient(180deg, #0f2238 0%, #0c1c30 100%);
    border: 1px solid rgba(148, 163, 184, 0.18);
    padding-top: 16px;
}

.xl-cat-card:hover {
    color: #ffffff;
    border-color: rgba(96, 165, 250, 0.45);
    background: linear-gradient(180deg, #16375a 0%, #102a47 100%);
}

.xl-cat-count {
    display: inline-block;
    min-width: 28px;
    margin-left: 5px;
    padding: 2px 7px;
    color: #061327;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    background: #7dd3fc;
}

.xl-text-box {
    padding: 14px;
    color: #cfe7ff;
    border-radius: 14px;
    background: #0b1628;
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.xl-empty {
    margin: 7px;
    padding: 14px;
    color: #b9d6f2;
    border-radius: 14px;
    background: #0b1628;
    border: 1px solid rgba(148, 163, 184, 0.16);
    font-size: 14px;
}

/* старый футер из foot.php */
.foot {
    max-width: 1120px;
    margin: 0 auto;
    padding: 18px 14px;
    color: #cfe7ff;
    background: #0d2942;
}

.foots {
    display: block;
    padding: 12px;
    color: #ffffff;
    border-radius: 14px;
    background: #0b1628;
    border: 1px solid rgba(147, 197, 253, 0.18);
}

.foots a,
.foot a {
    color: #7dd3fc;
}

@media (max-width: 980px) {
    .xl-page {
        max-width: 760px;
    }

    .xl-video-card {
        width: 50%;
    }

    .xl-cat-card {
        width: 33.3333%;
    }
}

@media (max-width: 620px) {
    body {
        background: #020817;
        font-size: 15px;
    }

    .xl-page {
        max-width: 100%;
        padding: 0 10px 14px;
        box-shadow: none;
    }

    .xl-logo img {
        max-height: 70px;
    }

    .xl-hero {
        padding: 14px;
        border-radius: 13px;
    }

    .xl-hero h1 {
        font-size: 20px;
    }

    .xl-nav {
        border-spacing: 5px 0;
    }

    .xl-nav a {
        padding: 12px 5px;
        font-size: 14px;
    }

    .xl-video-grid {
        margin: 0;
    }

    .xl-video-card {
        display: block;
        width: 100%;
        padding: 0 0 12px;
    }

    .xl-video-name {
        min-height: 0;
        font-size: 15px;
    }

    .xl-thumb img {
        height: auto;
        min-height: 180px;
    }

    .xl-cat-card {
        width: 50%;
        min-height: 52px;
        padding: 13px 6px 6px;
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .xl-cat-card {
        width: 100%;
    }

    .xl-nav a {
        font-size: 13px;
    }
}

/* -------- Video page -------- */
.xl-video-page {
    padding-bottom: 22px;
}

.xl-nav-video {
    border-spacing: 6px 0;
}

.xl-search-panel {
    margin: 12px 0 14px;
    padding: 12px;
    border-radius: 14px;
    background: #0b1628;
    border: 1px solid rgba(96, 165, 250, 0.20);
}

.xl-search-panel form {
    margin: 0;
}

.xl-search-row {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.xl-search-row input,
.xl-search-row button {
    height: 44px;
    border: 0;
    outline: 0;
    font: inherit;
}

.xl-search-row input {
    display: table-cell;
    width: 100%;
    padding: 0 13px;
    color: #eaf4ff;
    background: #071426;
    border: 1px solid rgba(125, 211, 252, 0.25);
    border-right: 0;
    border-radius: 12px 0 0 12px;
}

.xl-search-row input::placeholder {
    color: #7c93ad;
}

.xl-search-row button {
    display: table-cell;
    width: 96px;
    color: #061327;
    font-weight: 700;
    background: #7dd3fc;
    border-radius: 0 12px 12px 0;
    cursor: pointer;
}

.xl-search-row button:hover {
    background: #bae6fd;
}

.xl-breadcrumbs {
    margin: 6px 0 12px;
    padding: 10px 12px;
    color: #9fbed8;
    font-size: 13px;
    border-radius: 12px;
    background: rgba(11, 22, 40, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.xl-breadcrumbs a {
    color: #7dd3fc;
}

.xl-breadcrumbs span {
    display: inline-block;
    margin: 0 7px;
    color: #64748b;
}

.xl-watch-card {
    display: block;
    margin: 14px 0;
    padding: 14px;
    color: #eaf4ff;
    border-radius: 18px;
    background: linear-gradient(180deg, #0d1b2f 0%, #081527 100%);
    border: 1px solid rgba(96, 165, 250, 0.22);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

.xl-watch-title {
    margin: 0 0 13px;
    color: #ffffff;
    font-size: 26px;
    line-height: 1.22;
    font-weight: 800;
}

.xl-player-box {
    overflow: hidden;
    position: relative;
    margin: 0 0 14px;
    border-radius: 18px;
    background: #000;
    border: 1px solid rgba(125, 211, 252, 0.30);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.42);
}

.xl-player {
    display: block;
    width: 100%;
    min-height: 260px;
    max-height: 650px;
    background: #000;
    aspect-ratio: 16 / 9;
}

.xl-watch-stats {
    display: table;
    width: 100%;
    margin: 12px 0;
    table-layout: fixed;
    border-spacing: 8px 0;
}

.xl-watch-stats div {
    display: table-cell;
    padding: 11px 8px;
    text-align: center;
    border-radius: 13px;
    background: #0b1628;
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.xl-watch-stats span {
    display: block;
    margin-bottom: 3px;
    color: #93aeca;
    font-size: 12px;
}

.xl-watch-stats b {
    display: block;
    color: #ffffff;
    font-size: 14px;
}

.xl-info-box,
.xl-tags-box,
.xl-downloads,
.xl-admin-box {
    margin: 12px 0 0;
    padding: 14px;
    border-radius: 15px;
    background: #0b1628;
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.xl-info-box p {
    margin: 10px 0 0;
    color: #cfe7ff;
}

.xl-info-line {
    color: #9fbed8;
}

.xl-info-line span {
    margin-right: 6px;
}

.xl-pill {
    display: inline-block;
    padding: 5px 10px;
    color: #061327;
    font-weight: 700;
    border-radius: 999px;
    background: #7dd3fc;
}

.xl-pill:hover {
    background: #bae6fd;
}

.xl-mini-title {
    margin: 0 0 10px;
    color: #ffffff;
    font-weight: 700;
}

.xl-tags a,
.xl-tags .as_botton {
    display: inline-block;
    margin: 0 6px 7px 0;
    padding: 7px 10px;
    color: #dbeafe;
    border-radius: 999px;
    background: #10213a;
    border: 1px solid rgba(96, 165, 250, 0.22);
}

.xl-tags a:hover,
.xl-tags .as_botton:hover {
    color: #ffffff;
    border-color: rgba(125, 211, 252, 0.55);
    background: #16375a;
}

.xl-rate-row {
    display: table;
    width: 100%;
    margin: 12px 0 0;
    table-layout: fixed;
    border-spacing: 8px 0;
}

.xl-rate-row a {
    display: table-cell;
    padding: 12px 8px;
    text-align: center;
    color: #ffffff;
    font-weight: 700;
    border-radius: 13px;
    background: linear-gradient(180deg, #163b5d 0%, #0f2b46 100%);
    border: 1px solid rgba(147, 197, 253, 0.18);
}

.xl-rate-row a:hover {
    background: linear-gradient(180deg, #1e5b86 0%, #16466b 100%);
}

.xl-rate-row span {
    display: inline-block;
    min-width: 28px;
    margin-left: 6px;
    padding: 2px 7px;
    color: #061327;
    font-size: 12px;
    border-radius: 999px;
    background: #7dd3fc;
}

.xl-downloads {
    display: block;
    font-size: 0;
}

.xl-downloads a {
    display: inline-block;
    width: 50%;
    padding: 13px 10px;
    color: #061327;
    font-size: 15px;
    font-weight: 800;
    text-align: center;
    border-radius: 13px;
    background: linear-gradient(180deg, #7dd3fc 0%, #38bdf8 100%);
    border: 5px solid #0b1628;
}

.xl-downloads a:hover {
    background: linear-gradient(180deg, #bae6fd 0%, #7dd3fc 100%);
}

.xl-downloads span {
    font-weight: 700;
    opacity: 0.82;
}

.xl-admin-box {
    text-align: center;
}

.xl-admin-box a {
    display: inline-block;
    margin: 4px;
    padding: 9px 12px;
    color: #ffffff;
    border-radius: 10px;
    background: #1d4f78;
}

.xl-admin-box a:hover {
    background: #256899;
}

@media (max-width: 760px) {
    .xl-watch-title {
        font-size: 21px;
    }

    .xl-watch-card {
        padding: 10px;
        border-radius: 15px;
    }

    .xl-player-box {
        border-radius: 14px;
    }

    .xl-player {
        min-height: 190px;
    }

    .xl-watch-stats {
        display: block;
        border-spacing: 0;
        margin: 10px 0 0;
        font-size: 0;
    }

    .xl-watch-stats div {
        display: inline-block;
        width: 50%;
        margin: 0;
        border: 5px solid #0d1b2f;
        font-size: 14px;
        vertical-align: top;
    }

    .xl-nav-video {
        display: block;
        border-spacing: 0;
        font-size: 0;
    }

    .xl-nav-video a {
        display: inline-block;
        width: 50%;
        margin: 0;
        border: 5px solid #07111f;
        font-size: 14px;
        vertical-align: top;
    }
}

@media (max-width: 430px) {
    .xl-watch-title {
        font-size: 19px;
    }

    .xl-search-row input,
    .xl-search-row button {
        height: 42px;
    }

    .xl-search-row button {
        width: 78px;
    }

    .xl-downloads a {
        display: block;
        width: 100%;
    }

    .xl-rate-row {
        display: block;
        border-spacing: 0;
    }

    .xl-rate-row a {
        display: block;
        margin: 0 0 8px;
    }
}

/* -------- v4: compact video page + one-line search -------- */
.xl-search-panel {
    padding: 10px 12px;
}

.xl-search-row {
    display: flex;
    width: 100%;
    align-items: stretch;
}

.xl-search-row input,
.xl-search-row button {
    display: block;
    height: 44px;
    margin: 0;
    border: 0;
    outline: 0;
    font: inherit;
}

.xl-search-row input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    padding: 0 14px;
    color: #eaf4ff;
    background: #071426;
    border: 1px solid rgba(125, 211, 252, 0.25);
    border-right: 0;
    border-radius: 12px 0 0 12px;
}

.xl-search-row button {
    flex: 0 0 92px;
    width: 92px;
    color: #061327;
    font-weight: 800;
    background: #7dd3fc;
    border-radius: 0 12px 12px 0;
    cursor: pointer;
}

.xl-watch-card {
    padding: 12px;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.30);
}

.xl-watch-title {
    margin: 0 0 11px;
    font-size: 23px;
    line-height: 1.22;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.xl-player-box {
    max-width: 960px;
    margin: 0 auto 12px;
    border-radius: 16px;
}

.xl-player {
    min-height: 220px;
}

.xl-compact-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 10px 0 0;
}

.xl-compact-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 34px;
    padding: 7px 10px;
    color: #dbeafe;
    font-size: 13px;
    border-radius: 11px;
    background: rgba(11, 22, 40, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.xl-compact-meta em {
    color: #8fb3d1;
    font-style: normal;
    font-weight: 400;
}

.xl-info-compact,
.xl-tags-compact {
    padding: 12px;
    border-radius: 13px;
}

.xl-info-compact p {
    margin: 9px 0 0;
    color: #c7ddf3;
    font-size: 14px;
    line-height: 1.55;
}

.xl-info-line {
    font-size: 14px;
}

.xl-pill {
    padding: 4px 10px;
    font-size: 13px;
}

.xl-mini-title {
    margin-bottom: 8px;
    font-size: 14px;
}

.xl-tags a,
.xl-tags .as_botton {
    padding: 6px 9px;
    font-size: 13px;
}

.xl-rate-compact a {
    padding: 10px 8px;
    font-size: 14px;
    font-weight: 700;
}

.xl-downloads a {
    padding: 12px 10px;
    font-size: 14px;
}

@media (min-width: 981px) {
    .xl-video-page {
        max-width: 1180px;
    }

    .xl-watch-card {
        padding: 16px;
    }
}

@media (max-width: 760px) {
    .xl-watch-title {
        font-size: 20px;
        line-height: 1.25;
    }

    .xl-player {
        min-height: 180px;
    }

    .xl-compact-meta {
        gap: 6px;
    }

    .xl-compact-meta span {
        width: calc(50% - 3px);
        justify-content: center;
        padding: 7px 6px;
        font-size: 12px;
    }
}

@media (max-width: 430px) {
    .xl-search-panel {
        padding: 10px;
    }

    .xl-search-row input,
    .xl-search-row button {
        height: 42px;
    }

    .xl-search-row button {
        flex-basis: 78px;
        width: 78px;
        font-size: 14px;
    }

    .xl-watch-card {
        padding: 10px;
    }

    .xl-watch-title {
        font-size: 19px;
    }

    .xl-compact-meta span {
        width: 100%;
        justify-content: space-between;
    }
}


/* -------- v5: category listing page -------- */
.xl-category-head {
    margin: 14px 0 12px;
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(15, 39, 66, 0.94) 0%, rgba(12, 31, 54, 0.98) 100%);
    border: 1px solid rgba(125, 211, 252, 0.18);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.xl-category-title {
    margin: 8px 0 0;
    color: #ffffff;
    font-size: 24px;
    line-height: 1.22;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.xl-category-note {
    margin-top: 7px;
    color: #a8c7e6;
    font-size: 14px;
}

.xl-category-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.xl-category-bar .xl-section-title {
    margin: 0;
}

.xl-category-count {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    color: #bde6ff;
    font-size: 13px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(125, 211, 252, 0.18);
}

/* -------- pagination for category and tag pages -------- */

.xl-pages {
    margin: 14px 0;
    padding: 12px;
    text-align: center;
    border-radius: 16px;
    background: rgba(8, 18, 34, 0.94);
    border: 1px solid rgba(96, 165, 250, 0.16);
}

.xl-pages:empty {
    display: none;
}

.xl-pages ul,
.xl-pages ol,
.xl-pages .st {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin: 0;
    padding: 0;
    list-style: none;
}

.xl-pages li {
    display: inline-flex;
    margin: 0;
    padding: 0;
    list-style: none;
    background: transparent;
    border: 0;
}

.xl-pages li::marker,
.xl-pages li::before,
.xl-pages li::after {
    display: none;
    content: none;
}

/* Обычные страницы */
.xl-pages li > a,
.xl-pages li > span,
.xl-pages li > strong,
.xl-pages li > b {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 38px;
    height: 38px;
    padding: 0 13px;

    color: #dbeafe;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;

    border-radius: 11px;
    background: #102743;
    border: 1px solid #28557b;
    text-decoration: none;
}

.xl-pages li > a:hover {
    color: #ffffff;
    background: #1d5b86;
    border-color: #72d0ff;
}

/* Активная страница */
.xl-pages li.active,
.xl-pages li.activ,
.xl-pages li.current {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.xl-pages li.active > span,
.xl-pages li.active > a,
.xl-pages li.activ > span,
.xl-pages li.activ > a,
.xl-pages li.current > span,
.xl-pages li.current > a,
.xl-pages li > strong,
.xl-pages li > b {
    min-width: 42px;
    height: 42px;

    color: #03111f;
    font-size: 16px;
    font-weight: 900;

    background: #73cffd;
    border: 2px solid #ffffff;
    border-radius: 12px;

    box-shadow:
        0 0 0 3px rgba(115, 207, 253, 0.25),
        0 0 16px rgba(115, 207, 253, 0.65);

    transform: translateY(-2px);
    cursor: default;
}

@media (max-width: 430px) {
    .xl-pages {
        padding: 9px;
    }

    .xl-pages ul,
    .xl-pages ol,
    .xl-pages .st {
        gap: 6px;
    }

    .xl-pages li > a,
    .xl-pages li > span,
    .xl-pages li > strong,
    .xl-pages li > b {
        min-width: 34px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }

    .xl-pages li.active > span,
    .xl-pages li.active > a,
    .xl-pages li.activ > span,
    .xl-pages li.activ > a,
    .xl-pages li.current > span,
    .xl-pages li.current > a,
    .xl-pages li > strong,
    .xl-pages li > b {
        min-width: 38px;
        height: 40px;
        font-size: 15px;
    }
}

/* -------- v6: tag page + pagination list reset -------- */
.xl-tag-head {
    background: linear-gradient(135deg, rgba(15, 39, 66, 0.96) 0%, rgba(9, 26, 47, 0.98) 100%);
}

.xl-tag-label {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 11px;
    color: #061524;
    font-size: 13px;
    font-weight: 800;
    border-radius: 999px;
    background: #7dd3fc;
    box-shadow: 0 8px 22px rgba(125, 211, 252, 0.18);
}

.xl-search-panel--tag {
    margin-bottom: 12px;
}

.xl-pages ul,
.xl-pages ol,
.xl-pages .st {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.xl-pages li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
}

.xl-pages li:before,
.xl-pages li:after {
    display: none !important;
    content: none !important;
}

.xl-pages a,
.xl-pages span,
.xl-pages strong,
.xl-pages b,
.xl-pages .current,
.xl-pages .active,
.xl-pages .activ,
.xl-pages li.active a,
.xl-pages li.active span {
    min-width: 38px;
    height: 38px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    text-decoration: none;
}

@media (max-width: 430px) {
    .xl-tag-label {
        font-size: 12px;
        min-height: 26px;
        padding: 4px 9px;
    }

    .xl-pages ul,
    .xl-pages ol,
    .xl-pages .st {
        gap: 6px;
    }
}

/* -------- best.php final fix -------- */

.xl-best-page .xl-best-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
    align-items: start !important;
}

.xl-best-page .xl-best-card {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 16px !important;
    background: #0d2036 !important;
    border: 1px solid rgba(125, 211, 252, 0.18) !important;
}

.xl-best-page .xl-best-card > a {
    display: flex !important;
    flex-direction: column !important;
    gap: 9px !important;
    width: 100% !important;
    height: auto !important;
    padding: 12px !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.xl-best-page .xl-best-title {
    display: block !important;
    width: 100% !important;
    min-height: 38px !important;
    max-height: 42px !important;
    overflow: hidden !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}

.xl-best-page .xl-best-thumb {
    display: block !important;
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    background: #061527 !important;
    border: 1px solid rgba(125, 211, 252, 0.16) !important;
}

.xl-best-page .xl-best-thumb img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
}

.xl-best-page .xl-best-meta {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 0 !important;
    padding-top: 2px !important;
    color: #bfe8ff !important;
    font-size: 13px !important;
}

.xl-best-page .xl-best-meta span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    white-space: nowrap !important;
}

.xl-best-page .xl-best-meta img {
    width: 15px !important;
    height: 15px !important;
}

.xl-best-page .xl-best-extra {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding-top: 8px !important;
    border-top: 1px solid rgba(125, 211, 252, 0.10) !important;
    color: #9fc4e8 !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
}

/* pagination final fix */
.xl-pagination {
    margin: 24px 0 !important;
    padding: 16px !important;
    background: #071527 !important;
    border: 1px solid #17395c !important;
    border-radius: 14px !important;
    text-align: center !important;
}

.xl-pagination ul,
.xl-pagination ol {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
}

.xl-pagination li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    background: transparent !important;
    border: 0 !important;
}

.xl-pagination li::marker {
    content: "" !important;
    display: none !important;
}

/* Обычные кнопки пагинации */
.xl-pagination li > a,
.xl-pagination li > span,
.xl-pagination li > b,
.xl-pagination li > strong {
    min-width: 38px !important;
    height: 38px !important;
    box-sizing: border-box !important;
    padding: 0 13px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 11px !important;
    background: #102743 !important;
    border: 1px solid #28557b !important;

    color: #d8f1ff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-decoration: none !important;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease !important;
}

/* Наведение на обычную страницу */
.xl-pagination li > a:hover {
    background: #1d5b86 !important;
    border-color: #72d0ff !important;
    color: #ffffff !important;

    transform: translateY(-2px) !important;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.28) !important;
}

/* Убираем оформление с самого li активной страницы */
.xl-pagination li.active,
.xl-pagination li.activ,
.xl-pagination li.current {
    min-width: 0 !important;
    height: auto !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Активная страница */
.xl-pagination li.active > a,
.xl-pagination li.active > span,
.xl-pagination li.active > b,
.xl-pagination li.active > strong,
.xl-pagination li.activ > a,
.xl-pagination li.activ > span,
.xl-pagination li.activ > b,
.xl-pagination li.activ > strong,
.xl-pagination li.current > a,
.xl-pagination li.current > span,
.xl-pagination li.current > b,
.xl-pagination li.current > strong {
    min-width: 42px !important;
    height: 42px !important;
    padding: 0 14px !important;

    background: #73cffd !important;
    border: 2px solid #ffffff !important;
    border-radius: 12px !important;

    color: #061524 !important;
    font-size: 16px !important;
    font-weight: 900 !important;

    transform: scale(1.08) !important;
    box-shadow:
        0 0 0 3px rgba(115, 207, 253, 0.22),
        0 0 18px rgba(115, 207, 253, 0.72),
        0 6px 14px rgba(0, 0, 0, 0.35) !important;

    position: relative !important;
    z-index: 2 !important;
    cursor: default !important;
}

/* Активная страница не меняется при наведении */
.xl-pagination li.active > a:hover,
.xl-pagination li.activ > a:hover,
.xl-pagination li.current > a:hover {
    background: #73cffd !important;
    border-color: #ffffff !important;
    color: #061524 !important;
    transform: scale(1.08) !important;
}

/* Сетка лучших видео */
@media (max-width: 900px) {
    .xl-best-page .xl-best-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 540px) {
    .xl-best-page .xl-best-grid {
        grid-template-columns: 1fr !important;
    }

    .xl-best-page .xl-best-title {
        min-height: 0 !important;
        max-height: none !important;
    }

    .xl-pagination {
        padding: 13px 10px !important;
    }

    .xl-pagination ul,
    .xl-pagination ol {
        gap: 7px !important;
    }

    .xl-pagination li > a,
    .xl-pagination li > span,
    .xl-pagination li > b,
    .xl-pagination li > strong {
        min-width: 36px !important;
        height: 36px !important;
        padding: 0 10px !important;
        font-size: 13px !important;
    }

    .xl-pagination li.active > a,
    .xl-pagination li.active > span,
    .xl-pagination li.active > b,
    .xl-pagination li.active > strong,
    .xl-pagination li.activ > a,
    .xl-pagination li.activ > span,
    .xl-pagination li.activ > b,
    .xl-pagination li.activ > strong,
    .xl-pagination li.current > a,
    .xl-pagination li.current > span,
    .xl-pagination li.current > b,
    .xl-pagination li.current > strong {
        min-width: 40px !important;
        height: 40px !important;
        font-size: 15px !important;
    }
}
/* -------- new.php final fix -------- */

.xl-new-page .xl-nav .is-active {
    color: #061327;
    background: #7dd3fc;
    border-color: #7dd3fc;
    box-shadow: 0 10px 24px rgba(125, 211, 252, 0.18);
}

.xl-new-page .xl-new-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
    align-items: start !important;
}

.xl-new-page .xl-new-card {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 16px !important;
    background: #0d2036 !important;
    border: 1px solid rgba(125, 211, 252, 0.18) !important;
}

.xl-new-page .xl-new-card > a {
    display: flex !important;
    flex-direction: column !important;
    gap: 9px !important;
    width: 100% !important;
    height: auto !important;
    padding: 12px !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.xl-new-page .xl-new-title {
    display: block !important;
    width: 100% !important;
    min-height: 38px !important;
    max-height: 42px !important;
    overflow: hidden !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}

.xl-new-page .xl-new-thumb {
    display: block !important;
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    background: #061527 !important;
    border: 1px solid rgba(125, 211, 252, 0.16) !important;
}

.xl-new-page .xl-new-thumb img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
}

.xl-new-page .xl-new-meta {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 0 !important;
    padding-top: 2px !important;
    color: #bfe8ff !important;
    font-size: 13px !important;
}

.xl-new-page .xl-new-meta span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    white-space: nowrap !important;
}

.xl-new-page .xl-new-meta img {
    width: 15px !important;
    height: 15px !important;
}

.xl-new-page .xl-new-extra {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding-top: 8px !important;
    border-top: 1px solid rgba(125, 211, 252, 0.10) !important;
    color: #9fc4e8 !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
}

@media (max-width: 900px) {
    .xl-new-page .xl-new-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 540px) {
    .xl-new-page .xl-new-grid {
        grid-template-columns: 1fr !important;
    }

    .xl-new-page .xl-new-title {
        min-height: 0 !important;
        max-height: none !important;
    }
}

/* -------- footer back button -------- */

.xl-footer-back {
    max-width: 1180px;
    margin: 18px auto 0;
    padding: 0 16px;
}

.xl-footer-back a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 13px;
    background: #102743;
    border: 1px solid #28557b;
    color: #d8f1ff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.xl-footer-back a:hover {
    background: #1d5b86;
    border-color: #72d0ff;
    color: #ffffff;
}

@media (max-width: 540px) {
    .xl-footer-back {
        margin-top: 14px;
        padding: 0 10px;
    }

    .xl-footer-back a {
        width: 100%;
    }
}

/* -------- category page hard width fix -------- */

.xl-cats-page .xl-cats-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: 100% !important;
    align-items: stretch !important;
}

.xl-cats-page .xl-cat-card {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 54px !important;
    padding: 13px 14px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-align: center !important;
    border-radius: 14px !important;
    background: #0d2036 !important;
    border: 1px solid rgba(125, 211, 252, 0.18) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
}

.xl-cats-page .xl-cat-card:hover {
    background: #143554 !important;
    border-color: #72d0ff !important;
    color: #ffffff !important;
}

.xl-cats-page .xl-cat-name {
    display: inline !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

.xl-cats-page .xl-cat-count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 32px !important;
    padding: 4px 8px !important;
    margin-left: 4px !important;
    border-radius: 999px !important;
    background: #73cffd !important;
    color: #061524 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

@media (min-width: 1100px) {
    .xl-cats-page .xl-cats-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    .xl-cats-page .xl-cats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 420px) {
    .xl-cats-page .xl-cats-grid {
        grid-template-columns: 1fr !important;
    }
}

/* -------- search.php -------- */

.xl-search-page .xl-nav .is-active {
    color: #061327;
    background: #7dd3fc;
    border-color: #7dd3fc;
}

.xl-search-head b {
    color: #7dd3fc;
}

.xl-search-big-form {
    padding: 18px;
    border-radius: 16px;
    background: #0d2036;
    border: 1px solid rgba(125, 211, 252, 0.18);
}

.xl-search-big-form label {
    display: block;
    margin-bottom: 10px;
    color: #d8f1ff;
    font-size: 14px;
    font-weight: 700;
}

.xl-search-big-row {
    display: flex;
    gap: 10px;
    width: 100%;
}

.xl-search-big-row input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid #28557b;
    background: #071527;
    color: #ffffff;
    outline: none;
    box-sizing: border-box;
}

.xl-search-big-row input:focus {
    border-color: #72d0ff;
    box-shadow: 0 0 0 3px rgba(114, 208, 255, 0.12);
}

.xl-search-big-row button {
    height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    background: #73cffd;
    color: #061524;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.xl-search-big-row button:hover {
    background: #9be0ff;
}

.xl-form-error {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 80, 80, 0.12);
    border: 1px solid rgba(255, 100, 100, 0.25);
    color: #ffb4b4;
    font-size: 13px;
    font-weight: 700;
}

.xl-search-history {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.xl-search-history a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 13px;
    border-radius: 999px;
    background: #102743;
    border: 1px solid #28557b;
    color: #d8f1ff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.xl-search-history a:hover {
    background: #1d5b86;
    border-color: #72d0ff;
    color: #ffffff;
}

.xl-search-history span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #73cffd;
    color: #061524;
    font-size: 11px;
    font-weight: 800;
}

.xl-search-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
}

.xl-search-card {
    width: 100% !important;
    min-width: 0 !important;
}

@media (max-width: 900px) {
    .xl-search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 540px) {
    .xl-search-big-row {
        flex-direction: column;
    }

    .xl-search-big-row button {
        width: 100%;
    }

    .xl-search-grid {
        grid-template-columns: 1fr !important;
    }
}

/* -------- contrast fix for Google/PageSpeed -------- */

html,
body {
    background: #06111f !important;
    color: #e6f6ff !important;
}

.xl-page {
    color: #e6f6ff !important;
}

.xl-page p,
.xl-page div,
.xl-page span,
.xl-page li {
    color: inherit;
}

.xl-breadcrumbs {
    color: #d8f1ff !important;
    background: #0d2036 !important;
    border: 1px solid rgba(125, 211, 252, 0.22) !important;
}

.xl-breadcrumbs a,
.xl-breadcrumbs span[itemprop="name"] {
    color: #ffffff !important;
    font-weight: 700 !important;
}

.xl-breadcrumbs a:hover {
    color: #7dd3fc !important;
}

.xl-bc-sep,
.xl-breadcrumbs > span {
    color: #bfe8ff !important;
}

.xl-info-box,
.xl-category-desc,
.xl-video-info,
.xl-compact-meta,
.xl-best-extra,
.xl-new-extra {
    color: #d8f1ff !important;
}

.xl-info-box p {
    color: #e6f6ff !important;
}

.xl-info-line span,
.xl-compact-meta em {
    color: #bfe8ff !important;
}

.xl-video-name,
.xl-best-title,
.xl-new-title,
.xl-category-title,
.xl-section-title {
    color: #ffffff !important;
}

/* -------- like / dislike counter contrast fix -------- */

.xl-rate-row a {
    color: #ffffff !important;
    background: #102743 !important;
    border: 1px solid #2d5f89 !important;
}

.xl-rate-row a:hover {
    color: #ffffff !important;
    background: #1d5b86 !important;
    border-color: #72d0ff !important;
}

.xl-rate-row a span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 30px !important;
    height: 22px !important;
    margin-left: 7px !important;
    padding: 0 8px !important;
    border-radius: 999px !important;
    background: #9be0ff !important;
    color: #061524 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

.xl-rate-row a:hover span {
    background: #ffffff !important;
    color: #061524 !important;
}

/* -------- homepage bottom polish -------- */

.xl-desc-box,
.xl-info-box,
.xl-section .xl-text-box {
    background: #0d2036 !important;
    border: 1px solid rgba(125, 211, 252, 0.18) !important;
    border-radius: 16px !important;
    padding: 18px 20px !important;
    color: #e6f6ff !important;
    font-size: 15px !important;
    line-height: 1.65 !important;
}

.xl-desc-box p,
.xl-info-box p,
.xl-section .xl-text-box p {
    margin: 0 !important;
    color: #e6f6ff !important;
}

.xl-section-title,
.xl-block-title {
    margin-top: 18px !important;
}

.xl-footer,
.footer,
.foots {
    margin-top: 22px !important;
}

/* -------- category counters contrast hard fix -------- */

.xl-cat-count,
.xl-cats-page .xl-cat-count,
.xl-category-count,
.xl-cat-card .xl-cat-count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-width: 30px !important;
    height: 22px !important;
    padding: 0 8px !important;
    margin-left: 7px !important;

    border-radius: 999px !important;
    background: #ffffff !important;
    color: #00111f !important;
    border: 1px solid #ffffff !important;

    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-shadow: none !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #00111f !important;
}

.xl-cat-card:hover .xl-cat-count {
    background: #ffffff !important;
    color: #00111f !important;
    border-color: #ffffff !important;
    -webkit-text-fill-color: #00111f !important;
}

.xl-logo img {
    display: block;
    width: 245px;
    max-width: 100%;
    height: auto;
}