.home-page {
    min-height: 100vh;
}

.home-page .main-content {
    min-width: 0;
}

.home-content-header {
    margin-bottom: 20px;
}

.home-search-box {
    min-width: 360px;
}

.home-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 56px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 22px;
    width: 100%;
    max-width: 100%;
    position: relative;
}

.home-tabs-indicator {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: #ff6b35;
    transform: translateX(0);
    transition:
        transform 420ms cubic-bezier(0.22, 1.35, 0.36, 1),
        width 420ms cubic-bezier(0.22, 1.35, 0.36, 1);
    will-change: transform, width;
}

.home-tabs-indicator.no-transition {
    transition: none;
}

.home-tab {
    transition: color 0.2s ease;
}

.home-panels-container {
    position: relative;
}

.home-tab-panel {
    display: none;
}

.home-tab-panel.home-tab-panel-active {
    display: block;
}

.home-games-teaser {
    border-radius: 20px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.04);
}

.home-games-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 10px;
    margin-bottom: 22px;
}

.home-games-headline {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    grid-column: 1;
    justify-self: start;
    max-width: 560px;
    min-width: 0;
}

.home-games-logo-wrap {
    grid-column: 2;
    width: 220px;
    height: 220px;
    border-radius: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 16px;
    animation: homeGamesLogoFloat 3.2s ease-in-out infinite;
}

.home-games-logo {
    width: 172px;
    height: 172px;
    object-fit: contain;
    filter: drop-shadow(0 6px 20px rgba(255, 107, 53, 0.45));
}

@keyframes homeGamesLogoFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-4px) scale(1.03);
    }
}

.home-games-badge {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 107, 53, 0.35);
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 107, 53, 0.08);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.home-games-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff6b35;
    box-shadow: 0 0 0 rgba(255, 107, 53, 0.7);
    animation: homeGamesPulse 1.9s ease-in-out infinite;
}

@keyframes homeGamesPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
        transform: scale(1);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(255, 107, 53, 0);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
        transform: scale(1);
    }
}

.home-games-title {
    margin: 0;
    color: #fff;
    font-size: 29px;
    font-weight: 700;
}

.home-games-features {
    margin-bottom: 24px;
}

.home-games-features-title {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 24px;
    font-weight: 600;
}

.home-games-feature-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 28px;
}

.home-games-feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 24px;
    font-weight: 500;
}

.home-games-feature-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    opacity: 0.95;
}

.home-games-cards {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
}

.home-games-card {
    max-width: 242px;
}

.home-games-poster {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 25%, rgba(255, 107, 53, 0.38), transparent 50%),
        radial-gradient(circle at 80% 10%, rgba(255, 107, 53, 0.16), transparent 55%),
        linear-gradient(165deg, rgba(13, 24, 36, 0.95), rgba(8, 14, 24, 0.98));
}

.home-games-poster-title {
    position: absolute;
    left: 16px;
    bottom: 14px;
    right: 16px;
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.home-tab {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.72);
    font-size: 19px;
    line-height: 1;
    padding: 0 0 10px;
    cursor: default;
    position: relative;
    font-weight: 500;
}

.home-tab.active {
    color: #ffffff;
}

.home-section {
    margin-bottom: 34px;
    width: 100%;
    max-width: 100%;
}

.home-section-link {
    display: inline-block;
    text-decoration: none;
}

.home-section-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    width: 100%;
}

.home-slider-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-slider-btn {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.home-slider-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
}

.home-slider-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.home-slider-btn:disabled:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
}

.home-section-link:hover .home-section-title,
.home-section-link:hover .home-section-arrow {
    color: #ff6b35;
}

.home-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-section-title {
    color: #ffffff;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.1;
    margin: 0;
}

.home-section-arrow {
    color: rgba(255, 255, 255, 0.8);
    font-size: 35px;
    line-height: 1;
}

.home-slider-track {
    display: flex;
    gap: 24px;
    padding-top: 15px;
    padding-left: 12px;
    padding-right: 12px;
    scroll-padding-left: 12px;
    scroll-padding-right: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.home-slider-track::-webkit-scrollbar {
    display: none;
}

.home-slider-track .catalog-item {
    flex: 0 0 242px;
    max-width: 242px;
}

.home-genre-card {
    text-decoration: none;
}

.home-genre-poster {
    position: relative;
    overflow: hidden;
    background: linear-gradient(165deg, rgba(20, 27, 40, 0.98), rgba(12, 18, 30, 0.98));
}

.home-genre-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-genre-poster::after {
    content: none;
}

.home-genre-name {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.1;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.85),
        0 4px 12px rgba(0, 0, 0, 0.58);
}

.home-coming-banner {
    flex: 0 0 calc(100% - 24px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 107, 53, 0.25), transparent 45%),
        linear-gradient(145deg, rgba(18, 26, 39, 0.98), rgba(10, 17, 28, 0.98));
    padding: 24px 28px;
    min-height: 170px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

.home-coming-banner-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 107, 53, 0.75);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    margin-bottom: 12px;
}

.home-coming-banner-title {
    color: #fff;
    font-size: 34px;
    line-height: 1.08;
    font-weight: 700;
    margin-bottom: 10px;
}

.home-coming-banner-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.45;
    max-width: 860px;
}

.home-empty {
    color: rgba(255, 255, 255, 0.65);
    margin: 10px 0;
    grid-column: 1 / -1;
}

@media (max-width: 1600px) {
    .home-tab {
        font-size: 26px;
    }

    .home-section-title {
        font-size: 25px;
    }
}

@media (max-width: 1200px) {
    .home-search-box {
        min-width: 280px;
    }
}

@media (max-width: 992px) {
    .home-tabs {
        gap: 24px;
    }

    .home-tab {
        font-size: 22px;
    }
}

@media (max-width: 720px) {
    .home-page .mobile-profile-avatar {
        position: absolute !important;
        top: 0;
        right: 0;
        transform: none !important;
        transition: none !important;
    }

    .home-page .mobile-profile-avatar:hover,
    .home-page .mobile-profile-avatar:active,
    .home-page a.mobile-profile-avatar:hover,
    .home-page a.mobile-profile-avatar:active {
        transform: none !important;
    }

    body.mobile-header-scrolled .home-page .mobile-profile-avatar,
    body.mobile-header-scrolled .home-page a.mobile-profile-avatar {
        transform: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    body.mobile-header-scrolled .home-page .mobile-profile-avatar-img,
    body.mobile-header-scrolled .home-page a.mobile-profile-avatar svg {
        transform: none !important;
        opacity: 1 !important;
    }

    .home-page .main-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .home-games-header {
        display: flex;
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    .home-games-headline {
        width: 100%;
    }

    .home-slider-track {
        gap: 10px;
        padding-top: 8px;
        padding-left: 0;
        padding-right: 0;
        scroll-padding-left: 0;
        scroll-padding-right: 0;
    }

    .home-slider-track .catalog-item {
        flex: 0 0 95px;
        max-width: 95px;
    }

    .home-games-card {
        display: block;
        position: relative;
    }

    .home-games-card .poster-image {
        width: 100%;
        height: 133px;
        border-radius: 13px;
    }

    .home-games-card .poster-content {
        position: absolute;
        left: 8px;
        right: 8px;
        bottom: 8px;
        z-index: 2;
        padding: 0;
        display: block;
        background: transparent;
    }

    .home-games-card .poster-details {
        gap: 0;
    }

    .home-games-card .detail-type-mobile {
        display: none;
    }

    .home-games-card .detail-title {
        font-size: 13px;
        font-weight: 600;
        color: #fff;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-shadow:
            0 1px 2px rgba(0, 0, 0, 0.9),
            0 4px 12px rgba(0, 0, 0, 0.7);
    }

    .home-games-card .catalog-divider {
        display: none;
    }

    .home-content-header {
        margin-bottom: 10px;
    }

    .home-tabs {
        justify-content: center;
        gap: 30px;
        margin-top: 40px;
        margin-bottom: 30px;
    }

    .home-tab {
        font-size: 15px;
        padding-bottom: 12px;
    }

    .home-section {
        margin-bottom: 24px;
    }

    .home-section-top {
        margin-bottom: 8px;
    }

    .home-section-title {
        font-size: 20px;
    }

    .home-search-box {
        min-width: 200px;
        width: 100%;
    }

    .home-slider-btn {
        width: 30px;
        height: 30px;
        font-size: 20px;
    }

    .home-slider-controls {
        display: none;
    }

    .home-games-title {
        font-size: 22px;
    }

    .home-coming-banner {
        flex-basis: 100%;
        padding: 18px 18px;
        min-height: 150px;
    }

    .home-coming-banner-title {
        font-size: 24px;
    }

    .home-coming-banner-text {
        font-size: 14px;
    }

    .home-games-logo-wrap {
        width: 150px;
        height: 150px;
        border-radius: 28px;
    }

    .home-games-logo {
        width: 118px;
        height: 118px;
    }

    .home-games-feature-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .home-games-feature-item {
        font-size: 18px;
    }

    .home-games-feature-icon {
        width: 28px;
        height: 28px;
    }

    .home-games-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .home-genre-name {
        font-size: 13px;
        left: 6px;
        right: 6px;
        bottom: 8px;
        line-height: 1.2;
    }

    .home-games-poster-title {
        font-size: 21px;
    }
}
