body {
    --home-bg: #0c111a;
    --home-bg-2: #101827;
    --home-surface: rgba(16, 24, 36, 0.95);
    --home-card: rgba(14, 20, 30, 0.92);
    --home-border: rgba(255, 255, 255, 0.08);
    --home-accent: #f2b65a;
    --home-accent-2: #22c7b8;
    --home-text: #f2f6fb;
    --home-muted: #b9c5d6;
    --home-shadow: rgba(4, 7, 12, 0.55);
    background: radial-gradient(120% 70% at 10% 0%, #1d2a3d 0%, #0b111a 50%, #070b11 100%);
    color: var(--home-text);
    font-family: "roboto", "Helvetica Neue", Arial, sans-serif;
}

html,
body {
    overflow-x: hidden;
}

.banner-footer-desktop {
    width: 100%;
    left: 0;
    right: 0;
}


#main-content.home-view {
    position: relative;
    padding-bottom: 32px;
    overflow-x: hidden;
    overflow-y: visible;
}

#main-content.home-view::before {
    content: "";
    position: absolute;
    inset: -140px -10% auto -10%;
    height: 360px;
    background: radial-gradient(circle at 20% 20%, rgba(34, 199, 184, 0.2), rgba(0, 0, 0, 0) 60%);
    pointer-events: none;
    z-index: 0;
}

#main-content.home-view::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 130px 130px;
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
}

#main-content.home-view > #content {
    position: relative;
    z-index: 1;
}

@media (min-width: 981px) {
    #main-content.home-view .container {
        width: 100%;
        max-width: 1240px;
        margin: 0 auto;
        padding: 0 16px;
        box-sizing: border-box;
    }
}

.home-hero {
    padding: 28px 0 16px;
}

.home-hero .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 28px;
    align-items: center;
    min-width: 0;
}

.home-hero .hero-copy {
    max-width: 540px;
    animation: homeRise 0.7s ease both;
    min-width: 0;
}

.home-hero .hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 11px;
    color: var(--home-accent-2);
    margin: 0 0 10px;
}

.home-hero h1 {
    font-family: "UTM Cafeta", "roboto", sans-serif;
    font-size: 40px;
    line-height: 1.1;
    margin: 0 0 12px;
    color: #f6d28a;
}

.home-hero .hero-sub {
    color: var(--home-muted);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 18px;
}

.home-hero .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.home-hero .hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-size: 12px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-hero .hero-btn.primary {
    background: linear-gradient(135deg, var(--home-accent), #e7923e);
    color: #201206;
    box-shadow: 0 14px 24px rgba(36, 20, 6, 0.35);
}

.home-hero .hero-btn.ghost {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--home-border);
    color: var(--home-text);
}

.home-hero .hero-btn:hover {
    transform: translateY(-1px);
}

.home-hero .hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12px;
    color: var(--home-muted);
}

.home-hero .hero-features i {
    color: var(--home-accent-2);
    margin-right: 6px;
}

.home-hero .hero-showcase {
    animation: homeRise 0.8s ease both;
    min-width: 0;
}

.home-hero .hero-shelf {
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 20px 32px var(--home-shadow);
}

.home-hero .hero-shelf-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--home-muted);
}

.home-hero .hero-shelf-head a {
    color: var(--home-accent);
    text-decoration: none;
    font-weight: 700;
}

#main-content.home-view .home-hero .hero-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

#main-content.home-view .hero-list .film-item img {
    height: 160px;
}

.home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: flex-start;
    min-width: 0;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

#main-content.home-view .home-layout > .left-content {
    min-width: 0;
    grid-column: 1;
}

#main-content.home-view .home-layout > .right-content {
    width: 100%;
    max-width: 320px;
    grid-column: 2;
}

#main-content.home-view .left-content,
#main-content.home-view .right-content {
    float: none;
    width: auto;
    min-width: 0;
}

#main-content.home-view .left-content {
    overflow: visible;
}

#main-content.home-view .home-section {
    background: var(--home-card);
    border: 1px solid var(--home-border);
    border-radius: 20px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 20px 30px var(--home-shadow);
}

#main-content.home-view .block-film {
    clear: none;
    overflow: visible;
}

#main-content.home-view .home-section .caption {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: none;
    border: 0;
    padding: 0 0 12px;
    margin: 0 0 10px;
    font-size: 18px;
    text-transform: none;
    color: var(--home-text);
}

#main-content.home-view .home-section .caption i.fa {
    color: var(--home-accent-2);
}

#main-content.home-view .home-section .caption .view-all {
    margin-left: auto;
    color: var(--home-accent);
    font-weight: 600;
    text-transform: none;
    font-size: 13px;
    float: none;
}

#main-content.home-view .list-film {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#main-content.home-view .list-film .film-item {
    width: auto;
    float: none;
    margin: 0;
    animation: homeCard 0.5s ease forwards;
}

#main-content.home-view .list-film .film-item:nth-child(1) { animation-delay: 0.04s; }
#main-content.home-view .list-film .film-item:nth-child(2) { animation-delay: 0.08s; }
#main-content.home-view .list-film .film-item:nth-child(3) { animation-delay: 0.12s; }
#main-content.home-view .list-film .film-item:nth-child(4) { animation-delay: 0.16s; }
#main-content.home-view .list-film .film-item:nth-child(5) { animation-delay: 0.2s; }
#main-content.home-view .list-film .film-item:nth-child(6) { animation-delay: 0.24s; }

#main-content.home-view .list-film .film-item a {
    display: block;
    position: relative;
    z-index: 1;
    border-radius: 18px;
    overflow: hidden;
    background: #0b1018;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 20px rgba(4, 7, 12, 0.45);
    transform: translateY(0);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#main-content.home-view .list-film .film-item a:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 30px rgba(4, 7, 12, 0.6);
}

#main-content.home-view .list-film .film-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

#main-content.home-view .list-film .film-item a:hover img {
    transform: scale(1.04);
}

#main-content.home-view .list-film .film-item .title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    padding: 12px 44px 10px 12px;
    background: linear-gradient(180deg, rgba(11, 16, 24, 0), rgba(7, 11, 18, 0.92));
}

#main-content.home-view .list-film .film-item .title .name {
    color: #fff3c8;
    font-size: 13px;
    margin: 0 0 4px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#main-content.home-view .list-film .film-item .title .real-name {
    color: var(--home-muted);
    font-size: 12px;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#main-content.home-view .list-film .film-item .current-status {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(242, 182, 90, 0.95);
    color: #241609;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#main-content.home-view .list-film .film-item .current-rating {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: rgba(12, 18, 28, 0.85);
    border: 1px solid rgba(242, 182, 90, 0.5);
    color: #ffe2a7;
    padding: 3px 6px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.3px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

#main-content.home-view .home-sidebar .block,
#main-content.home-view .home-sidebar .most-view,
#main-content.home-view .home-sidebar .tagcloud,
#main-content.home-view .home-sidebar .ads {
    background: var(--home-card);
    border: 1px solid var(--home-border);
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 16px;
    box-shadow: 0 18px 26px var(--home-shadow);
}

#main-content.home-view .home-sidebar .most-view {
    background: var(--home-card);
}

#main-content.home-view .home-sidebar .block .caption,
#main-content.home-view .home-sidebar .most-view .caption {
    background: none;
    border: 0;
    color: var(--home-text);
    font-family: "UTM Cafeta", "roboto", sans-serif;
    font-size: 22px;
    padding: 0 0 10px;
    text-align: left;
}

#main-content.home-view .home-sidebar .most-view .tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

#main-content.home-view .home-sidebar .most-view .tabs .tab {
    flex: 1 1 0;
    background: rgba(255, 255, 255, 0.08);
    color: var(--home-text);
    border-radius: 999px;
    padding: 8px 0;
    font-size: 12px;
    float: none;
    width: auto;
}

#main-content.home-view .home-sidebar .most-view .tabs .tab.active {
    background: linear-gradient(135deg, var(--home-accent), #e7923e);
    color: #201206;
}

#main-content.home-view .home-sidebar .list-film {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
}

#main-content.home-view .home-sidebar .film-item-ver {
    margin: 0 0 12px;
    background: rgba(6, 9, 14, 0.5);
    border-radius: 12px;
    padding: 8px;
}

#main-content.home-view .home-sidebar .film-item-ver img.avatar {
    border-radius: 10px;
    margin: 0 10px 0 0;
}

#main-content.home-view .home-sidebar .film-item-ver .name {
    color: var(--home-text);
}

#main-content.home-view .home-sidebar .film-item-ver .real-name {
    color: var(--home-muted);
}

#main-content.home-view .home-sidebar .film-item-ver .view {
    color: var(--home-muted);
}

#main-content.home-view .home-sidebar .film-item-ver .rating-score {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0 0;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(242, 182, 90, 0.12);
    border: 1px solid rgba(242, 182, 90, 0.35);
    color: #ffe2a7;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

#main-content.home-view .home-sidebar .film-item-ver .rating-score i {
    color: #ffe000;
}

#main-content.home-view .home-sidebar .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

#main-content.home-view .home-sidebar .tags .tag-item a {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--home-text);
    text-decoration: none;
    font-size: 12px;
}

#main-content.home-view .home-sidebar .tags .tag-item a:hover {
    background: rgba(34, 199, 184, 0.2);
    color: #e7fffb;
}

@media (max-width: 1200px) {
    .home-hero .hero-grid {
        grid-template-columns: minmax(0, 1fr) 360px;
    }
}

@media (max-width: 980px) {
    .home-hero .hero-grid {
        grid-template-columns: 1fr;
    }

    .home-hero .hero-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    #main-content.home-view .home-layout > .left-content,
    #main-content.home-view .home-layout > .right-content {
        grid-column: 1;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .home-hero h1 {
        font-size: 32px;
    }

    .home-hero .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    #main-content.home-view .list-film {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #main-content.home-view .list-film .film-item img {
        height: 200px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

@keyframes homeRise {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes homeCard {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
