.home-page {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: #05070a;
    color: #edf7ff;
    font-family: system-ui, -apple-system, "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.home-page *,
.home-page *::before,
.home-page *::after {
    box-sizing: border-box;
    font-family: inherit;
    font-size: inherit;
}

.home-page a {
    color: #71d5ff;
    text-decoration: none;
}

.home-page a:hover,
.home-page a:focus {
    color: #f2c66d;
    text-decoration: none;
}

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

.home-video-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .58;
}

.home-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(5, 7, 10, .46), rgba(5, 7, 10, .76) 56%, rgba(5, 7, 10, .94) 100%),
        radial-gradient(circle at 20% 10%, rgba(36, 134, 168, .34), transparent 36%),
        radial-gradient(circle at 82% 8%, rgba(196, 72, 48, .24), transparent 32%);
    pointer-events: none;
}

.home-hero,
.home-layout,
.home-footer {
    width: min(1380px, calc(100% - 48px));
    margin: 0 auto;
}

.home-hero {
    padding: 24px 0 36px;
}

.home-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.home-brand {
    display: inline-flex;
    align-items: center;
    min-width: 180px;
}

.home-brand img {
    width: clamp(168px, 18vw, 260px);
    filter: drop-shadow(0 16px 34px rgba(0, 0, 0, .52));
}

.home-nav__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.home-nav__links a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid rgba(139, 186, 210, .22);
    border-radius: 6px;
    background: rgba(9, 20, 29, .66);
    color: #e9f7ff;
    font-size: 14px;
    font-weight: 700;
}

.home-nav__links a:hover,
.home-nav__links a:focus {
    border-color: rgba(242, 198, 109, .7);
    background: rgba(32, 36, 31, .9);
}

.home-nav__links .home-nav__cta {
    border-color: rgba(218, 67, 52, .58);
    background: linear-gradient(180deg, #c63b2f, #76231f);
}

.home-hero__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 28px;
    padding-top: clamp(48px, 9vw, 118px);
}

.home-kicker,
.home-card__eyebrow {
    margin: 0 0 8px;
    color: #f2c66d;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.home-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(42px, 8vw, 96px);
    line-height: .92;
    letter-spacing: 0;
    text-shadow: 0 18px 36px rgba(0, 0, 0, .65);
}

.home-hero__lead {
    max-width: 680px;
    margin: 18px 0 0;
    color: #cde5f0;
    font-size: 19px;
}

.home-hero__actions,
.home-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.home-action-row--stacked {
    flex-direction: column;
}

.home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 16px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
    transition: border-color .16s ease, filter .16s ease, transform .16s ease;
}

.home-button--primary {
    background: linear-gradient(180deg, #e04736, #8f2922);
    border-color: rgba(255, 156, 105, .34);
    box-shadow: 0 16px 30px rgba(125, 29, 24, .28);
}

.home-button--secondary {
    background: linear-gradient(180deg, #1788ac, #0b506f);
    border-color: rgba(125, 218, 255, .28);
}

.home-button--ghost {
    background: rgba(14, 30, 41, .78);
    border-color: rgba(141, 190, 213, .28);
}

.home-button:hover,
.home-button:focus {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.home-client .home-action-row--stacked {
    align-items: flex-start;
    gap: 9px;
}

.home-client .home-button {
    min-width: 160px;
    min-height: 38px;
    padding: 8px 14px;
    font-size: 13px;
    box-shadow: none;
}

.home-client .home-button--secondary {
    min-width: 178px;
}

.home-layout {
    display: grid;
    grid-template-columns: minmax(230px, 280px) minmax(0, 1fr) minmax(280px, 340px);
    align-items: start;
    gap: 18px;
    padding-bottom: 36px;
}

.home-layout__left,
.home-layout__right,
.home-layout__main {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.home-card,
.home-layout__main {
    border: 1px solid rgba(139, 186, 210, .18);
    border-radius: 8px;
    background: rgba(8, 17, 25, .82);
    box-shadow: 0 22px 58px rgba(0, 0, 0, .34);
    backdrop-filter: blur(10px);
}

.home-card {
    padding: 18px;
}

.home-layout__main {
    min-width: 0;
    padding: 20px;
}

.home-card h2,
.home-section-heading h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 23px;
    line-height: 1.2;
    font-weight: 800;
}

.home-card p {
    margin: 0 0 14px;
    color: #c9d9df;
}

.home-section-heading {
    min-width: 0;
    padding-bottom: 8px;
}

.home-account__user {
    display: grid;
    gap: 4px;
    margin-bottom: 14px;
}

.home-account__label,
.home-muted {
    color: #9fb8c4;
}

.home-login-form {
    display: grid;
    gap: 12px;
}

.home-login-form label,
.home-comment-form label {
    display: grid;
    gap: 6px;
    color: #d8ecf4 !important;
    font-weight: 700;
}

.home-login-form label span,
.home-comment-form label span {
    color: #d8ecf4 !important;
}

.home-login-form input,
.home-comment-form textarea {
    width: 100%;
    border: 1px solid rgba(139, 186, 210, .28);
    border-radius: 6px;
    background: rgba(4, 8, 12, .86);
    color: #ffffff;
    font: inherit;
}

.home-login-form input {
    min-height: 42px;
    padding: 10px 12px;
}

.home-comment-form textarea {
    min-height: 120px;
    padding: 12px;
    resize: vertical;
}

.home-login-form input:focus,
.home-comment-form textarea:focus {
    outline: 2px solid rgba(113, 213, 255, .38);
    border-color: rgba(113, 213, 255, .75);
}

.home-login-form__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
}

.home-fast-news__list,
.home-news-strip,
.home-news-strip__more {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.home-fast-news__item,
.home-news-strip__item {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(139, 186, 210, .14);
    border-radius: 6px;
    background: rgba(18, 36, 48, .64);
    overflow-wrap: anywhere;
}

.home-fast-news__item span,
.home-news-strip__item span {
    color: #d6e9f1;
}

.home-fast-news__item time,
.home-news-strip__item time,
.home-news-card__header time {
    color: #8fd7ef;
    font-size: 12px;
    font-weight: 800;
}

.home-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    margin-top: 14px;
    border: 1px solid rgba(113, 213, 255, .30);
    border-radius: 6px;
    background: rgba(20, 62, 90, .62);
    font-weight: 800;
}

.home-news-strip {
    margin-bottom: 16px;
}

.home-news-strip__more {
    border: 0;
}

.home-news-strip__more summary {
    display: inline-flex;
    width: max-content;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(23, 136, 172, .24);
    color: #d9f5ff;
    cursor: pointer;
}

.home-news-card {
    display: grid;
    gap: 16px;
    min-width: 0;
    overflow: hidden;
    padding: 18px;
    border: 1px solid rgba(139, 186, 210, .16);
    border-radius: 8px;
    background: rgba(9, 24, 35, .82);
}

.home-news-card > * {
    min-width: 0;
}

.home-news-card + .home-news-card {
    margin-top: 14px;
}

.home-news-card--featured {
    border-color: rgba(242, 198, 109, .24);
    background: rgba(16, 28, 36, .86);
}

.home-news-card__header {
    display: grid;
    gap: 7px;
}

.home-news-card__header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.24;
}

.home-news-card__header h2 a {
    color: #ffffff;
}

.home-news-card__body,
.home-comment__body {
    max-width: 100% !important;
    color: #edf7ff !important;
    font-size: 16px !important;
    line-height: 1.72;
    overflow-wrap: anywhere;
}

.home-news-card__body *,
.home-comment__body * {
    max-width: 100% !important;
    color: inherit !important;
    font-size: inherit !important;
    line-height: inherit;
    overflow-wrap: anywhere;
}

.home-news-card__body a,
.home-comment__body a {
    color: #8fd7ef !important;
    font-weight: 700;
}

.home-news-card__body table {
    width: 100% !important;
    table-layout: auto;
}

.home-news-card__body tbody,
.home-news-card__body tr,
.home-news-card__body td {
    max-width: 100% !important;
}

.home-news-card__body iframe,
.home-news-card__body object,
.home-news-card__body embed {
    max-width: 100% !important;
}

.home-news-card__body img {
    max-width: 100%;
    height: auto !important;
    border-radius: 6px;
    object-fit: contain !important;
    vertical-align: middle;
}

.home-news-card__body img[src*="/for_news/"],
.home-news-card__body img[src*="/for_best/"],
.home-news-card__body img[src*="/images/common/"] {
    display: block;
    width: auto !important;
    max-width: min(100%, 560px) !important;
    margin: 18px auto;
    border: 1px solid rgba(139, 186, 210, .18);
    border-radius: 8px;
    background: rgba(2, 8, 13, .36);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .26);
}

.home-news-card__body img[src*="race"] {
    display: inline-block;
    width: 14px !important;
    height: 14px !important;
    margin: 0 2px;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.home-news-card__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(139, 186, 210, .14);
}

.home-comment-form {
    display: grid;
    width: 100%;
    gap: 10px;
}

.home-comment-form__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

#commentSize {
    color: #9fb8c4;
    font-size: 13px;
}

.home-comment {
    padding: 14px;
    border: 1px solid rgba(139, 186, 210, .14);
    border-radius: 6px;
    background: rgba(4, 8, 12, .48);
}

.home-comment__header {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
    color: #9fb8c4;
    font-size: 13px;
}

.home-comment__delete {
    margin-left: auto;
    color: #ff9b8f !important;
}

.home-back-row,
.home-pagination {
    display: flex;
    justify-content: center;
    margin: 16px 0 0;
}

.home-ratings {
    overflow: hidden;
}

.home-rating-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.home-rating-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 7px 10px;
    border: 1px solid rgba(139, 186, 210, .18);
    border-radius: 6px;
    background: rgba(11, 28, 39, .84);
    color: #dff6ff !important;
    font-size: 12px;
    font-weight: 800;
}

.home-rating-button.active {
    border-color: rgba(242, 198, 109, .58);
    background: rgba(116, 69, 31, .72);
    color: #fff3cf !important;
}

.home-rating-controls--compact .home-rating-button {
    flex: 1 1 auto;
}

.home-rating-list {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-rating-list__item {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 9px;
    border: 1px solid rgba(139, 186, 210, .11);
    border-radius: 6px;
    background: rgba(18, 39, 53, .72);
    color: #edf7ff;
}

.home-rating-list__num {
    color: #f2c66d;
    font-size: 13px;
    font-weight: 800;
}

.home-rating-list__name {
    min-width: 0;
    overflow: hidden;
    color: #edf7ff !important;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-rating-list__name,
.home-rating-list__name * {
    color: #edf7ff !important;
    font-size: 13px !important;
}

.home-rating-list__name .text-rating-bb,
.home-rating-list__name .b_ui_link {
    color: #ffffff !important;
    font-weight: 800;
}

.home-rating-list__name img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    vertical-align: -2px;
}

.home-rating-list__name .b-icon-32x32 {
    width: 16px;
    height: 16px;
    background-size: auto;
    vertical-align: -3px;
}

.home-rating-list__name--clan {
    display: flex;
    align-items: center;
    gap: 6px;
}

.home-rating-list__name--clan img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.home-rating-list__name--clan .home-rating-list__rank {
    width: 13px;
    height: 13px;
}

.home-rating-list__name--clan button {
    overflow: hidden;
    border: 0;
    background: none;
    color: #dff6ff;
    font: inherit;
    font-weight: 800;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.home-rating-list__race {
    display: inline-flex;
    justify-content: flex-end;
}

.home-footer {
    display: grid;
    grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
    gap: 20px;
    padding: 22px 0 38px;
    color: #8da5b1;
    font-size: 13px;
}

.home-footer p {
    margin: 0;
}

.home-footer strong {
    color: #4cd5f4;
}

.pg,
.pg td {
    color: #dcecf2;
}

@media (max-width: 1180px) {
    .home-layout {
        grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    }

    .home-layout__right {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .home-hero,
    .home-layout,
    .home-footer {
        width: min(100% - 28px, 680px);
    }

    .home-nav,
    .home-hero__content,
    .home-footer,
    .home-layout,
    .home-layout__right {
        grid-template-columns: 1fr;
    }

    .home-nav {
        display: grid;
        justify-items: center;
    }

    .home-nav__links {
        justify-content: center;
    }

    .home-hero {
        padding-top: 16px;
    }

    .home-hero__content {
        padding-top: 34px;
    }

    .home-hero__actions,
    .home-action-row {
        width: 100%;
    }

    .home-button {
        flex: 1 1 180px;
    }

    .home-client .home-action-row--stacked {
        align-items: stretch;
    }

    .home-client .home-button {
        flex: 0 0 auto;
        width: 100%;
    }

    .home-layout__main {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .home-hero,
    .home-layout,
    .home-footer {
        width: calc(100% - 20px);
    }

    .home-nav__links {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-nav__links a,
    .home-button {
        width: 100%;
    }

    .home-hero h1 {
        font-size: 34px;
    }

    .home-hero__lead {
        font-size: 16px;
    }

    .home-news-card,
    .home-card,
    .home-layout__main {
        border-radius: 6px;
    }

    .home-news-card__header h2 {
        font-size: 20px;
    }

    .home-news-card__body,
    .home-comment__body {
        font-size: 15px !important;
        line-height: 1.66;
    }

    .home-rating-list__item {
        grid-template-columns: 24px minmax(0, 1fr) 20px;
        gap: 6px;
        padding: 7px 6px;
    }

    .home-rating-list__name,
    .home-rating-list__name * {
        font-size: 12px !important;
    }
}
