
:root {
    --orange: #ea580c;
    --orange-dark: #c2410c;
    --red: #dc2626;
    --gold: #f59e0b;
    --blue: #2563eb;
    --green: #16a34a;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(17, 24, 39, 0.10);
    --shadow-lg: 0 20px 45px rgba(17, 24, 39, 0.16);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
    color: var(--gray-900);
    line-height: 1.6;
}

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

img {
    display: block;
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--orange), var(--red));
    box-shadow: 0 10px 24px rgba(127, 29, 29, 0.22);
}

.header-inner {
    max-width: 1180px;
    height: 72px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    flex: 0 0 auto;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-weight: 800;
    box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.18);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-copy strong {
    font-size: 1.2rem;
    font-weight: 800;
}

.brand-copy em {
    margin-top: 4px;
    font-size: 0.72rem;
    font-style: normal;
    opacity: 0.88;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.nav-link,
.nav-drop-button {
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--white);
    font: inherit;
    font-weight: 650;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-drop-button:hover {
    background: rgba(255, 255, 255, 0.16);
}

.nav-drop {
    position: relative;
}

.nav-drop-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 220px;
    padding: 10px;
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.nav-drop:hover .nav-drop-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-drop-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--gray-700);
    font-size: 0.94rem;
}

.nav-drop-menu a:hover {
    background: #fff7ed;
    color: var(--orange);
}

.top-search {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-search input,
.mobile-panel input,
.home-search-block input,
.filter-panel input,
.filter-panel select {
    border: 0;
    outline: none;
    font: inherit;
}

.top-search input {
    width: 230px;
    padding: 10px 14px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.20);
    border-radius: 999px;
    backdrop-filter: blur(7px);
}

.top-search input::placeholder {
    color: rgba(255, 255, 255, 0.78);
}

.top-search button,
.mobile-panel button,
.home-search-block button,
.filter-panel button {
    border: 0;
    border-radius: 999px;
    background: var(--white);
    color: var(--orange-dark);
    font-weight: 750;
    padding: 10px 14px;
    cursor: pointer;
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
    padding: 10px 12px;
    font-size: 1.25rem;
}

.mobile-panel {
    display: none;
    padding: 14px 22px 22px;
    background: var(--orange-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.mobile-panel.is-open {
    display: grid;
    gap: 8px;
}

.mobile-panel a {
    color: var(--white);
    padding: 10px 12px;
    border-radius: 10px;
}

.mobile-panel a:hover {
    background: rgba(255, 255, 255, 0.12);
}

.mobile-panel form {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.mobile-panel input {
    flex: 1;
    border-radius: 999px;
    padding: 10px 14px;
}

.hero {
    position: relative;
    height: 520px;
    overflow: hidden;
    background: linear-gradient(90deg, #111827, #1f2937);
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.50), rgba(0, 0, 0, 0.05));
}

.hero-content {
    position: absolute;
    inset: 0;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 16px;
    border-radius: 999px;
    background: var(--orange);
    color: var(--white);
    padding: 6px 12px;
    font-size: 0.9rem;
    font-weight: 750;
}

.hero-content h1 {
    max-width: 720px;
    margin: 0 0 18px;
    color: var(--white);
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 680px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.15rem;
}

.hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.primary-button,
.ghost-button,
.section-head a,
.category-overview-head a {
    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;
}

.primary-button {
    background: linear-gradient(90deg, var(--orange), var(--red));
    color: var(--white);
    padding: 13px 26px;
    box-shadow: 0 16px 30px rgba(234, 88, 12, 0.32);
}

.ghost-button {
    border: 1px solid rgba(255, 255, 255, 0.42);
    color: var(--white);
    padding: 12px 22px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(8px);
}

.primary-button:hover,
.ghost-button:hover,
.category-tile:hover,
.movie-card:hover,
.compact-card:hover {
    transform: translateY(-3px);
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
    transition: all 0.2s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: var(--white);
}

.home-search-block,
.section-wrap,
.page-main,
.footer-inner,
.footer-bottom {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.home-search-block {
    margin-top: -54px;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr minmax(280px, 520px);
    gap: 24px;
    align-items: center;
    padding: 26px;
    border-radius: 26px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.home-search-block h2,
.section-head h2,
.page-hero h1,
.detail-info h1,
.detail-content h2,
.player-section h2 {
    margin: 0;
    line-height: 1.15;
}

.home-search-block p {
    margin: 8px 0 0;
    color: var(--gray-600);
}

.home-search-block form {
    display: flex;
    gap: 10px;
}

.home-search-block input {
    flex: 1;
    min-width: 0;
    border-radius: 999px;
    background: var(--gray-100);
    padding: 14px 18px;
}

.home-search-block button {
    background: linear-gradient(90deg, var(--orange), var(--red));
    color: var(--white);
    padding-left: 20px;
    padding-right: 20px;
}

.section-wrap {
    padding: 54px 22px 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 24px;
}

.section-kicker {
    display: block;
    color: var(--orange);
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-bottom: 4px;
}

.section-head h2 {
    font-size: clamp(1.7rem, 4vw, 2.45rem);
}

.section-head a,
.category-overview-head a {
    color: var(--orange);
    background: #fff7ed;
    padding: 10px 16px;
}

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

.category-tile {
    min-height: 160px;
    border-radius: 22px;
    padding: 22px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile span {
    font-size: 2.25rem;
}

.category-tile strong {
    font-size: 1.18rem;
}

.category-tile em {
    font-style: normal;
    font-size: 0.86rem;
    opacity: 0.86;
}

.blue { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.orange { background: linear-gradient(135deg, #f97316, #dc2626); }
.red { background: linear-gradient(135deg, #ef4444, #991b1b); }
.pink { background: linear-gradient(135deg, #ec4899, #be123c); }
.amber { background: linear-gradient(135deg, #f59e0b, #b45309); }
.green { background: linear-gradient(135deg, #22c55e, #15803d); }
.violet { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.cyan { background: linear-gradient(135deg, #06b6d4, #0e7490); }
.teal { background: linear-gradient(135deg, #14b8a6, #0f766e); }
.slate { background: linear-gradient(135deg, #64748b, #334155); }

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

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.movie-card {
    overflow: hidden;
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 3px 10px rgba(17, 24, 39, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    box-shadow: var(--shadow-lg);
}

.card-cover {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #111827;
}

.movie-card.featured .card-cover,
.movie-card.ranking .card-cover {
    aspect-ratio: 4 / 3;
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.movie-card:hover img {
    transform: scale(1.06);
    opacity: 0.92;
}

.card-category,
.card-year,
.rank-number {
    position: absolute;
    border-radius: 999px;
    color: var(--white);
    font-size: 0.76rem;
    font-weight: 760;
    padding: 5px 9px;
}

.card-category {
    top: 10px;
    left: 10px;
    background: var(--orange);
}

.card-year {
    right: 10px;
    bottom: 10px;
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(4px);
}

.rank-number {
    top: 10px;
    right: 10px;
    min-width: 34px;
    text-align: center;
    background: linear-gradient(135deg, #facc15, #f97316);
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
}

.card-body h3 a:hover {
    color: var(--orange);
}

.card-body p {
    min-height: 44px;
    margin: 8px 0 0;
    color: var(--gray-600);
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta,
.tag-row,
.detail-meta,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-meta {
    margin-top: 12px;
    color: var(--gray-500);
    font-size: 0.78rem;
}

.card-meta span,
.tag-row span,
.detail-meta span,
.detail-tags a {
    border-radius: 999px;
    background: var(--gray-100);
    padding: 4px 8px;
}

.tag-row {
    margin-top: 10px;
    color: var(--orange-dark);
    font-size: 0.78rem;
}

.soft-panel {
    margin-top: 56px;
    padding: 34px 22px;
    border-radius: 28px;
    background: linear-gradient(135deg, #fff7ed, #fef2f2);
}

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

.compact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(17, 24, 39, 0.06);
    transition: all 0.2s ease;
}

.compact-card img {
    width: 116px;
    height: 76px;
    object-fit: cover;
    border-radius: 12px;
    flex: 0 0 auto;
}

.compact-card strong,
.compact-card em {
    display: block;
}

.compact-card strong {
    line-height: 1.35;
}

.compact-card em {
    margin-top: 5px;
    color: var(--gray-500);
    font-style: normal;
    font-size: 0.84rem;
}

.compact-rank {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #facc15, #f97316);
    color: var(--white);
    font-weight: 850;
    flex: 0 0 auto;
}

.rank-panel {
    margin-bottom: 70px;
}

.rank-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 24px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.page-main {
    padding: 34px 22px 76px;
}

.page-hero {
    border-radius: 30px;
    padding: clamp(32px, 7vw, 70px);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.small-hero {
    background: linear-gradient(135deg, #111827, #374151);
}

.page-hero h1 {
    font-size: clamp(2.1rem, 5vw, 4rem);
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 760px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.08rem;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 190px 190px;
    gap: 12px;
    margin-bottom: 24px;
    padding: 18px;
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border-radius: 14px;
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 12px 14px;
}

.category-movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-overview-list {
    display: grid;
    gap: 22px;
    margin-top: 34px;
}

.category-overview-card {
    border-radius: 26px;
    padding: 26px;
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.category-overview-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.category-overview-head > span {
    font-size: 2.4rem;
}

.category-overview-head h2,
.category-overview-head p {
    margin: 0;
}

.category-overview-head p {
    opacity: 0.86;
}

.category-overview-head a {
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--gray-500);
    margin-bottom: 20px;
}

.breadcrumb a:hover {
    color: var(--orange);
}

.detail-hero {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 34px;
    padding: 28px;
    border-radius: 30px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
}

.detail-info {
    align-self: center;
}

.detail-info .eyebrow {
    margin-bottom: 14px;
}

.detail-info h1 {
    font-size: clamp(2.1rem, 5vw, 4.4rem);
    letter-spacing: -0.05em;
}

.detail-one-line {
    max-width: 780px;
    margin: 18px 0;
    color: var(--gray-600);
    font-size: 1.12rem;
}

.detail-meta,
.detail-tags {
    margin-top: 14px;
}

.detail-tags a {
    color: var(--orange-dark);
}

.player-section,
.detail-content,
.related-section {
    margin-top: 34px;
}

.player-section {
    padding: 28px;
    border-radius: 30px;
    background: #0b1020;
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.player-section h2 {
    margin-bottom: 18px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #020617;
    aspect-ratio: 16 / 9;
}

.player-shell video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle at center, rgba(249, 115, 22, 0.18), rgba(0, 0, 0, 0.62));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-ring {
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 16px 36px rgba(234, 88, 12, 0.36);
    font-size: 2rem;
    text-indent: 5px;
}

.player-overlay strong {
    font-size: 1.2rem;
}

.detail-content {
    padding: 30px;
    border-radius: 26px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.detail-content h2 + p {
    margin-top: 12px;
}

.detail-content p {
    color: var(--gray-700);
    font-size: 1.04rem;
}

.site-footer {
    margin-top: 70px;
    background: #111827;
    color: rgba(255, 255, 255, 0.84);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    padding: 42px 22px;
}

.footer-logo {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 850;
}

.footer-inner p {
    max-width: 460px;
    color: rgba(255, 255, 255, 0.66);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.footer-links a {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 12px;
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.16);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 22px 24px;
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.9rem;
}

[data-card].is-hidden {
    display: none;
}

@media (max-width: 1080px) {
    .desktop-nav,
    .top-search {
        display: none;
    }

    .mobile-toggle {
        display: inline-flex;
    }

    .category-grid,
    .movie-grid,
    .category-movie-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .header-inner {
        height: 66px;
        padding: 0 16px;
    }

    .brand-copy strong {
        font-size: 1rem;
    }

    .hero {
        height: 520px;
    }

    .hero-content {
        padding: 0 18px;
    }

    .hero-shade {
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.34));
    }

    .home-search-block {
        grid-template-columns: 1fr;
        margin: 18px 16px 0;
    }

    .home-search-block form,
    .mobile-panel form {
        flex-direction: column;
    }

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

    .section-head,
    .category-overview-head {
        grid-template-columns: 1fr;
        display: grid;
        align-items: start;
    }

    .category-grid,
    .movie-grid,
    .featured-grid,
    .compact-grid,
    .rank-list,
    .category-movie-grid {
        grid-template-columns: 1fr;
    }

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

    .detail-hero {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .detail-poster img {
        aspect-ratio: 16 / 11;
    }

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

    .footer-links {
        justify-content: flex-start;
    }
}
