:root {
    --primary-50: #f4f7f5;
    --primary-100: #e4eee7;
    --primary-300: #a2c5a9;
    --primary-400: #5d9b69;
    --primary-500: #4a7c54;
    --primary-600: #3d6744;
    --primary-800: #233d26;
    --accent-50: #fef7ed;
    --accent-500: #f59e0b;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow-soft: 0 18px 45px rgba(17, 24, 39, 0.12);
    --shadow-card: 0 12px 32px rgba(17, 24, 39, 0.10);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    color: var(--gray-900);
    background: linear-gradient(180deg, var(--primary-50) 0%, var(--white) 34%, var(--gray-50) 100%);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(209, 213, 219, 0.6);
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 20px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--gray-900);
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-500), var(--primary-800));
    box-shadow: 0 10px 22px rgba(61, 103, 68, 0.28);
}

.brand-name {
    font-size: 22px;
    letter-spacing: -0.02em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link,
.mobile-link {
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--gray-600);
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: var(--primary-600);
    background: var(--primary-50);
}

.nav-link:hover {
    transform: translateY(-1px);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--primary-50);
    cursor: pointer;
    padding: 10px;
}

.menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--primary-600);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
    border-top: 1px solid var(--gray-200);
}

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

.hero-slider {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    background: var(--gray-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease;
}

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

.hero-image,
.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.62) 42%, rgba(17, 24, 39, 0.14) 100%), linear-gradient(0deg, rgba(17, 24, 39, 0.68), rgba(17, 24, 39, 0.08));
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 72vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 84px 0;
    color: var(--white);
}

.hero-kicker,
.detail-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-100);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content h1,
.hero-content h2 {
    max-width: 760px;
    margin: 18px 0 18px;
    font-size: clamp(40px, 8vw, 78px);
    line-height: 1;
    letter-spacing: -0.06em;
}

.hero-content p {
    max-width: 680px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-row span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: inherit;
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-500), var(--primary-800));
    box-shadow: 0 14px 26px rgba(61, 103, 68, 0.34);
}

.btn-ghost {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.14);
}

.btn-light {
    color: var(--primary-800);
    background: rgba(255, 255, 255, 0.92);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(17, 24, 39, 0.38);
    cursor: pointer;
    font-size: 38px;
    line-height: 1;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(61, 103, 68, 0.86);
    transform: translateY(-50%) scale(1.04);
}

.hero-prev {
    left: 24px;
    transform: translateY(-50%);
}

.hero-next {
    right: 24px;
    transform: translateY(-50%);
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

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

.search-band {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}

.search-band-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: center;
    padding: 30px 0;
}

.search-band h2,
.section-heading h2,
.page-hero h1,
.movie-article h2,
.side-panel h2 {
    margin: 0;
    color: var(--gray-900);
    line-height: 1.15;
}

.search-band p,
.section-heading p,
.page-hero p {
    margin: 8px 0 0;
    color: var(--gray-600);
}

.quick-search {
    display: flex;
    padding: 8px;
    border-radius: 18px;
    background: var(--primary-50);
    border: 1px solid var(--primary-100);
}

.quick-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 14px;
}

.quick-search button {
    border: 0;
    border-radius: 14px;
    padding: 12px 20px;
    color: var(--white);
    background: var(--primary-600);
    cursor: pointer;
    font-weight: 800;
}

.section-block {
    padding: 64px 0;
}

.section-soft {
    background: rgba(244, 247, 245, 0.72);
}

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

.section-heading h2 {
    font-size: clamp(26px, 4vw, 42px);
    letter-spacing: -0.04em;
}

.section-heading.compact h2 {
    font-size: 30px;
}

.section-heading a,
.text-link {
    color: var(--primary-600);
    font-weight: 800;
}

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

.category-tile {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border-radius: var(--radius-lg);
    color: var(--white);
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.22), transparent 34%), linear-gradient(135deg, var(--primary-600), var(--primary-800));
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-card-large:hover,
.rank-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.category-tile span {
    font-size: 22px;
    font-weight: 900;
}

.category-tile strong {
    color: rgba(255, 255, 255, 0.86);
    font-weight: 600;
}

.category-tile em {
    display: grid;
    gap: 4px;
    color: rgba(255, 255, 255, 0.76);
    font-style: normal;
    font-size: 13px;
}

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

.catalog-grid {
    margin-top: 24px;
}

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

.movie-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 10px 26px rgba(17, 24, 39, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-wrap {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--primary-50);
}

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

.movie-card:hover .poster-wrap img {
    transform: scale(1.08);
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 44%, rgba(17, 24, 39, 0.78) 100%);
    opacity: 0.82;
}

.watch-badge,
.year-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.watch-badge {
    left: 12px;
    bottom: 12px;
    padding: 7px 12px;
    color: var(--white);
    background: var(--primary-500);
}

.year-badge {
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    color: var(--white);
    background: rgba(17, 24, 39, 0.76);
}

.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}

.card-body strong {
    color: var(--gray-900);
    font-size: 18px;
    line-height: 1.25;
}

.card-desc {
    color: var(--gray-600);
    font-size: 14px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.card-meta em {
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--primary-50);
    color: var(--primary-600);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.split-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 34px;
    align-items: start;
}

.rank-list,
.rank-page-list {
    display: grid;
    gap: 12px;
}

.rank-row,
.rank-card {
    display: grid;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row {
    grid-template-columns: 42px 58px 1fr auto;
    padding: 10px 14px;
    border-radius: 18px;
}

.rank-row img {
    width: 58px;
    height: 78px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-row span,
.rank-number {
    color: var(--primary-600);
    font-weight: 900;
}

.rank-row strong,
.rank-card strong {
    line-height: 1.25;
}

.rank-row em,
.rank-card em,
.rank-card small {
    color: var(--gray-500);
    font-style: normal;
}

.rank-row b,
.rank-card b {
    color: var(--accent-500);
}

.page-hero {
    padding: 72px 0;
    color: var(--gray-900);
    background: radial-gradient(circle at 20% 20%, rgba(162, 197, 169, 0.48), transparent 34%), linear-gradient(135deg, var(--primary-50), var(--white));
    border-bottom: 1px solid var(--gray-200);
}

.page-hero h1 {
    max-width: 760px;
    font-size: clamp(36px, 7vw, 64px);
    letter-spacing: -0.06em;
}

.page-hero p {
    max-width: 760px;
    font-size: 18px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
    color: var(--gray-500);
    font-size: 14px;
    font-weight: 700;
}

.breadcrumbs a {
    color: var(--primary-600);
}

.breadcrumbs.light {
    color: rgba(255, 255, 255, 0.74);
}

.breadcrumbs.light a {
    color: var(--white);
}

.category-overview-grid {
    display: grid;
    gap: 24px;
}

.category-card-large {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: center;
    padding: 22px;
    border-radius: var(--radius-xl);
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-cover-stack {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.category-cover-stack img {
    height: 170px;
    width: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.category-card-large h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.category-card-large p {
    margin: 0 0 14px;
    color: var(--gray-600);
}

.inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.inline-links a {
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--primary-600);
    background: var(--primary-50);
    font-size: 13px;
    font-weight: 800;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr 0.8fr;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

.filter-panel label {
    display: grid;
    gap: 6px;
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 46px;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    background: var(--gray-50);
    color: var(--gray-900);
    outline: 0;
    padding: 0 12px;
}

.rank-card {
    grid-template-columns: 58px 86px 1fr 64px;
    padding: 14px;
    border-radius: 22px;
}

.rank-card img {
    width: 86px;
    height: 118px;
    border-radius: 16px;
    object-fit: cover;
}

.rank-content {
    display: grid;
    gap: 6px;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    color: var(--white);
    background: var(--gray-900);
}

.detail-bg {
    position: absolute;
    inset: 0;
    opacity: 0.36;
    filter: blur(1px);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.78) 42%, rgba(17, 24, 39, 0.28));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 56px 0 72px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 36px;
    align-items: center;
}

.detail-poster {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.detail-info h1 {
    max-width: 820px;
    margin: 16px 0;
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.detail-info .lead {
    max-width: 780px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 19px;
}

.player-block {
    padding: 20px;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--gray-900);
    aspect-ratio: 16 / 9;
}

.video-shell video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--gray-900);
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    border: 0;
    margin: 0;
    padding: 0;
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

.player-cover.is-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.player-cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.72), rgba(61, 103, 68, 0.38));
}

.play-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 92px;
    height: 92px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--primary-600);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 42px rgba(17, 24, 39, 0.32);
    transform: translate(-50%, -50%);
    font-size: 34px;
    line-height: 1;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: start;
}

.movie-article,
.side-panel {
    padding: 28px;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

.movie-article h2 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 28px;
}

.movie-article p {
    margin: 0 0 26px;
    color: var(--gray-700);
    font-size: 17px;
}

.side-panel dl {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 10px 14px;
    margin: 18px 0 0;
}

.side-panel dt {
    color: var(--gray-500);
    font-weight: 800;
}

.side-panel dd {
    margin: 0;
    color: var(--gray-900);
}

.site-footer {
    color: rgba(255, 255, 255, 0.74);
    background: var(--gray-900);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
    gap: 34px;
    padding: 52px 0 34px;
}

.footer-brand {
    color: var(--white);
    font-size: 22px;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 16px;
}

.site-footer p {
    margin: 12px 0 0;
}

.site-footer ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer a:hover {
    color: var(--primary-300);
}

.footer-bottom {
    padding: 20px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 14px;
}

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

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

    .split-layout,
    .article-layout {
        grid-template-columns: 1fr;
    }

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

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

    .menu-button {
        display: block;
    }

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

    .hero-slider,
    .hero-content {
        min-height: 660px;
    }

    .hero-content {
        padding: 72px 0 94px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-arrow {
        display: none;
    }

    .search-band-inner,
    .filter-panel,
    .detail-layout,
    .category-card-large,
    .rank-card {
        grid-template-columns: 1fr;
    }

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

    .category-cover-stack {
        grid-template-columns: repeat(4, 1fr);
    }

    .category-cover-stack img {
        height: 140px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .detail-poster {
        max-width: 260px;
    }

    .rank-card img {
        width: 100%;
        height: 220px;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .header-inner {
        min-height: 64px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .brand-name {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .hero-content h1,
    .hero-content h2,
    .detail-info h1,
    .page-hero h1 {
        letter-spacing: -0.04em;
    }

    .hero-actions,
    .detail-actions,
    .quick-search {
        width: 100%;
        flex-direction: column;
    }

    .btn,
    .quick-search button {
        width: 100%;
    }

    .section-block,
    .page-hero {
        padding: 44px 0;
    }

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

    .rank-row {
        grid-template-columns: 34px 52px 1fr;
    }

    .rank-row b,
    .rank-row em {
        display: none;
    }

    .category-cover-stack {
        grid-template-columns: repeat(2, 1fr);
    }

    .play-ring {
        width: 72px;
        height: 72px;
        font-size: 26px;
    }

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