html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: #f8fafc;
    color: #0f172a;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.brand-mark,
.footer-logo span {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0891b2, #22d3ee);
    color: white;
    font-size: 13px;
    box-shadow: 0 12px 28px rgba(8, 145, 178, 0.35);
}

.brand-name {
    font-size: 20px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link,
.mobile-link {
    color: #475569;
    font-size: 15px;
    font-weight: 650;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
    padding: 10px 14px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: #0891b2;
    background: rgba(8, 145, 178, 0.09);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-button span {
    width: 20px;
    height: 2px;
    background: #0f172a;
    border-radius: 8px;
}

.mobile-nav {
    display: none;
    border-top: 1px solid #e2e8f0;
    padding: 12px 24px 20px;
    background: rgba(255, 255, 255, 0.98);
}

.mobile-link {
    display: block;
    padding: 12px 14px;
}

.hero {
    position: relative;
    height: 620px;
    overflow: hidden;
    background: #0f172a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.16));
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 132px;
    width: min(1180px, calc(100% - 48px));
    transform: translateX(-50%);
    color: white;
    max-width: 760px;
}

.hero-badge,
.section-kicker,
.catalog-body span,
.page-hero span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(8, 145, 178, 0.12);
    color: #0891b2;
    font-size: 13px;
    font-weight: 800;
}

.hero-badge {
    background: #0891b2;
    color: white;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.05em;
    margin-bottom: 18px;
    text-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.hero p {
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.8;
    max-width: 680px;
}

.hero-meta,
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #cbd5e1;
    margin-top: 18px;
    font-weight: 650;
}

.hero-meta span,
.card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-tags,
.card-tags,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.hero-tags span,
.card-tags span,
.tag-cloud span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 650;
}

.card-tags span,
.tag-cloud span {
    background: #f1f5f9;
    color: #475569;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.primary-button,
.ghost-button,
.text-button,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
    padding: 13px 22px;
    background: #0891b2;
    color: white;
    box-shadow: 0 16px 38px rgba(8, 145, 178, 0.36);
}

.primary-button.small {
    padding: 10px 16px;
    font-size: 14px;
}

.ghost-button {
    padding: 13px 22px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.primary-button:hover,
.ghost-button:hover,
.text-button:hover,
.section-more:hover {
    transform: translateY(-2px);
}

.hero-controls {
    position: absolute;
    right: max(24px, calc((100vw - 1180px) / 2));
    bottom: 220px;
    display: flex;
    gap: 12px;
    z-index: 5;
}

.hero-controls button {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: white;
    font-size: 30px;
    backdrop-filter: blur(12px);
    transition: background 0.2s ease;
}

.hero-controls button:hover {
    background: rgba(8, 145, 178, 0.82);
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 96px;
    width: min(1180px, calc(100% - 48px));
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.hero-dot {
    width: 38px;
    height: 4px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.35);
}

.hero-dot.active {
    background: #22d3ee;
}

.hero-search-panel {
    position: absolute;
    left: 50%;
    bottom: 24px;
    width: min(1180px, calc(100% - 48px));
    transform: translateX(-50%);
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(280px, 520px) 1fr;
    gap: 16px;
    align-items: center;
}

.hero-search {
    display: flex;
    padding: 8px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    backdrop-filter: blur(18px);
}

.hero-search input {
    flex: 1;
    color: white;
    padding: 0 16px;
    outline: 0;
}

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

.hero-search button {
    border-radius: 999px;
    background: #22d3ee;
    color: #0f172a;
    padding: 11px 18px;
    font-weight: 900;
}

.hero-category-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.hero-category-row a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 999px;
    color: white;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.page-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px 0;
}

.page-top {
    padding-top: 34px;
}

.content-section {
    margin-bottom: 56px;
}

.intro-section {
    margin-top: 8px;
}

.intro-copy {
    background: white;
    border-radius: 28px;
    padding: 30px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
}

.intro-copy h2,
.section-heading h2,
.page-hero h1,
.detail-card h1 {
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.04em;
}

.intro-copy h2 {
    font-size: clamp(28px, 4vw, 42px);
    margin: 14px 0 12px;
}

.intro-copy p,
.page-hero p,
.catalog-body p,
.detail-card p,
.side-card p {
    color: #64748b;
    line-height: 1.82;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.section-heading h2 {
    font-size: clamp(26px, 3.2vw, 38px);
    margin-top: 10px;
}

.section-more,
.text-button {
    color: #0891b2;
    background: rgba(8, 145, 178, 0.09);
    padding: 11px 16px;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.all-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: white;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.95);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #0f172a;
}

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover .poster-link img {
    transform: scale(1.06);
}

.poster-type,
.rank-badge {
    position: absolute;
    top: 12px;
    border-radius: 999px;
    padding: 6px 10px;
    color: white;
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(12px);
}

.poster-type {
    right: 12px;
    background: rgba(8, 145, 178, 0.9);
}

.rank-badge {
    left: 12px;
    background: rgba(15, 23, 42, 0.82);
}

.card-body {
    padding: 16px;
}

.card-meta {
    color: #0891b2;
    gap: 8px;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 12px;
}

.movie-card h3 {
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 9px;
}

.movie-card h3 a:hover {
    color: #0891b2;
}

.movie-card p {
    color: #64748b;
    line-height: 1.7;
    font-size: 14px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    border-radius: 24px;
    color: white;
    background: #0f172a;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    transition: transform 0.35s ease;
}

.category-card:hover img {
    transform: scale(1.08);
}

.category-card div {
    position: absolute;
    inset: auto 0 0 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0));
}

.category-card span,
.category-card strong {
    color: #67e8f9;
    font-size: 13px;
    font-weight: 800;
}

.category-card h3 {
    font-size: 24px;
    font-weight: 900;
    margin: 8px 0;
}

.category-card p {
    color: #cbd5e1;
    line-height: 1.65;
    font-size: 14px;
    margin-bottom: 10px;
}

.page-hero {
    border-radius: 30px;
    padding: 42px;
    margin-bottom: 34px;
    background: radial-gradient(circle at 18% 20%, rgba(34, 211, 238, 0.2), transparent 30%), linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    overflow: hidden;
    position: relative;
}

.page-hero h1 {
    color: white;
    font-size: clamp(34px, 5vw, 56px);
    margin: 16px 0 12px;
}

.page-hero p {
    color: #cbd5e1;
    max-width: 780px;
    font-size: 17px;
}

.page-hero span {
    background: rgba(34, 211, 238, 0.15);
    color: #67e8f9;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.catalog-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
}

.catalog-cover {
    min-height: 300px;
    background: #0f172a;
}

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

.catalog-body {
    padding: 26px;
}

.catalog-body h2 {
    margin: 12px 0;
    color: #0f172a;
    font-size: 26px;
    font-weight: 900;
}

.catalog-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.catalog-links a {
    padding: 7px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(150px, 0.6fr));
    gap: 12px;
    padding: 16px;
    margin-bottom: 24px;
    border-radius: 22px;
    background: white;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0 14px;
    color: #0f172a;
    outline: 0;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: #22d3ee;
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.16);
}

.filter-empty {
    padding: 28px;
    margin-bottom: 24px;
    text-align: center;
    color: #64748b;
    background: white;
    border-radius: 22px;
    border: 1px dashed #cbd5e1;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: #64748b;
    font-weight: 700;
}

.breadcrumb a:hover {
    color: #0891b2;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}

.detail-main {
    display: grid;
    gap: 24px;
}

.player-card,
.detail-card,
.side-card {
    background: white;
    border-radius: 28px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.video-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.video-element {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 14px;
    color: white;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.28));
    font-size: 18px;
    font-weight: 900;
}

.player-overlay.is-hidden {
    display: none;
}

.play-circle {
    width: 78px;
    height: 78px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0891b2;
    box-shadow: 0 20px 60px rgba(8, 145, 178, 0.42);
    font-size: 28px;
    padding-left: 5px;
}

.detail-card {
    padding: 30px;
}

.detail-title-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.detail-card h1 {
    font-size: clamp(32px, 5vw, 52px);
    margin-top: 12px;
}

.lead-text {
    font-size: 18px;
    color: #334155;
    margin-bottom: 22px;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 26px 0;
}

.detail-meta-grid div {
    padding: 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.detail-meta-grid span {
    display: block;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 6px;
}

.detail-meta-grid strong {
    color: #0f172a;
    font-weight: 900;
}

.article-block {
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.article-block h2,
.side-card h2 {
    font-size: 22px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 12px;
}

.article-block p {
    color: #475569;
    line-height: 1.9;
}

.tag-cloud {
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.prev-next {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.prev-next a {
    max-width: 48%;
    color: #0891b2;
    font-weight: 850;
}

.detail-side {
    display: grid;
    gap: 24px;
    position: sticky;
    top: 96px;
}

.poster-side img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: #0f172a;
}

.poster-side h2,
.poster-side p,
.info-side {
    padding: 20px;
}

.poster-side h2 {
    padding-bottom: 0;
    margin-bottom: 0;
}

.poster-side p {
    padding-top: 8px;
}

.info-side dl {
    display: grid;
    gap: 12px;
}

.info-side div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
}

.info-side dt {
    color: #94a3b8;
    font-weight: 800;
}

.info-side dd {
    color: #0f172a;
    font-weight: 850;
    text-align: right;
}

.site-footer {
    margin-top: 80px;
    background: linear-gradient(135deg, #0f172a, #1e293b, #0f172a);
    color: #cbd5e1;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 16px;
}

.footer-brand p {
    max-width: 520px;
    color: #94a3b8;
    line-height: 1.75;
}

.footer-group h2 {
    color: white;
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 14px;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a:hover {
    color: #67e8f9;
}

.footer-bottom {
    text-align: center;
    color: #94a3b8;
    padding: 20px 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

[hidden] {
    display: none !important;
}

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

    .catalog-grid,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-side {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 880px) {
    .desktop-nav {
        display: none;
    }

    .menu-button {
        display: flex;
    }

    .mobile-nav.open {
        display: block;
    }

    .header-inner {
        height: 66px;
        padding: 0 16px;
    }

    .hero {
        height: 720px;
    }

    .hero-content {
        bottom: 230px;
        width: calc(100% - 32px);
    }

    .hero-search-panel {
        grid-template-columns: 1fr;
        width: calc(100% - 32px);
    }

    .hero-controls {
        right: 16px;
        bottom: 300px;
    }

    .hero-dots {
        bottom: 205px;
        width: calc(100% - 32px);
    }

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

    .movie-grid,
    .all-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .filter-panel {
        grid-template-columns: 1fr;
    }

    .catalog-card {
        grid-template-columns: 1fr;
    }

    .catalog-cover {
        min-height: 260px;
    }

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

    .detail-title-row,
    .section-heading,
    .prev-next {
        align-items: stretch;
        flex-direction: column;
    }

    .prev-next a {
        max-width: 100%;
    }

    .detail-side,
    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .brand-name {
        font-size: 18px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 15px;
    }

    .hero-meta,
    .hero-tags {
        display: none;
    }

    .movie-grid,
    .all-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .page-hero,
    .detail-card,
    .intro-copy {
        padding: 24px;
        border-radius: 22px;
    }

    .detail-meta-grid {
        grid-template-columns: 1fr;
    }
}
