* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #18302f;
    background: #f4f7f4;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.65;
}

body.no-scroll {
    overflow: hidden;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(35, 79, 70, 0.1);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(31, 68, 62, 0.08);
}

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    height: 70px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
    color: #17443d;
    font-weight: 800;
}

.brand-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #2f6f62, #c89d62);
    border-radius: 13px;
    box-shadow: 0 12px 24px rgba(47, 111, 98, 0.28);
}

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

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

.nav-link {
    padding: 9px 11px;
    color: #315c55;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #173f38;
    background: #e8f1ed;
    transform: translateY(-1px);
}

.top-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 260px;
}

.top-search input,
.hero-search input,
.filter-bar input,
.search-box input {
    width: 100%;
    border: 1px solid rgba(47, 111, 98, 0.18);
    outline: none;
    color: #1d3c38;
    background: rgba(255, 255, 255, 0.86);
    border-radius: 999px;
    padding: 12px 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.top-search input:focus,
.hero-search input:focus,
.filter-bar input:focus,
.search-box input:focus {
    border-color: #2f6f62;
    box-shadow: 0 0 0 4px rgba(47, 111, 98, 0.14);
}

.top-search button,
.hero-search button,
.primary-btn,
.secondary-btn,
.filter-chip,
.play-button {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-search button,
.hero-search button,
.primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, #2f6f62, #1d4f47);
    padding: 12px 18px;
    box-shadow: 0 14px 24px rgba(47, 111, 98, 0.24);
}

.top-search button:hover,
.hero-search button:hover,
.primary-btn:hover,
.play-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(47, 111, 98, 0.3);
}

.secondary-btn {
    color: #1c554b;
    background: #ffffff;
    padding: 12px 18px;
    border: 1px solid rgba(47, 111, 98, 0.16);
}

.secondary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(31, 68, 62, 0.12);
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    background: #e8f1ed;
    color: #17443d;
    border-radius: 12px;
    width: 42px;
    height: 42px;
    font-size: 22px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 16px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 18px 42px rgba(31, 68, 62, 0.14);
}

.mobile-nav a {
    display: block;
    padding: 12px 14px;
    color: #27534c;
    border-radius: 12px;
    font-weight: 700;
}

.mobile-nav a:hover {
    background: #eef5f1;
}

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

.main-wrap,
.section,
.footer-grid,
.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    padding: 54px 0 48px;
    background:
        radial-gradient(circle at 20% 20%, rgba(227, 196, 133, 0.38), transparent 28%),
        radial-gradient(circle at 82% 24%, rgba(84, 137, 125, 0.34), transparent 30%),
        linear-gradient(135deg, #173f38 0%, #25594f 48%, #f2ead9 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11, 35, 31, 0.82), rgba(11, 35, 31, 0.34), rgba(255, 255, 255, 0.08));
    pointer-events: none;
}

.hero-shell {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 34px;
    align-items: center;
}

.hero-copy {
    color: #ffffff;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f8e4b8;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 8px 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero h1 {
    margin: 20px 0 14px;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-lead {
    max-width: 720px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

.hero-search {
    display: flex;
    gap: 10px;
    max-width: 620px;
    margin: 24px 0;
    padding: 8px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    backdrop-filter: blur(14px);
}

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

.hero-tags,
.tag-row,
.detail-tags,
.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.hero-tags a,
.tag-row span,
.detail-tags span,
.quick-links a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    color: #24554c;
    background: #edf4ef;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-stage {
    position: relative;
    min-height: 520px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(34px) scale(0.98);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

.hero-card {
    overflow: hidden;
    height: 100%;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 34px;
    box-shadow: 0 26px 70px rgba(9, 31, 28, 0.38);
    backdrop-filter: blur(18px);
}

.hero-card img {
    height: 300px;
    object-fit: cover;
    background: linear-gradient(135deg, #2f6f62, #d2b276);
}

.hero-card-body {
    padding: 24px;
}

.hero-card-body h2 {
    margin: 0 0 10px;
    color: #173f38;
    font-size: 28px;
    line-height: 1.2;
}

.hero-card-body p {
    margin: 0 0 18px;
    color: #52706b;
}

.hero-dots {
    position: absolute;
    right: 24px;
    bottom: 24px;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 50%;
    background: rgba(23, 63, 56, 0.24);
    cursor: pointer;
}

.hero-dot.is-active {
    width: 30px;
    border-radius: 999px;
    background: #2f6f62;
}

.section {
    padding: 54px 0 0;
}

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

.section-heading h1,
.section-heading h2 {
    margin: 0;
    color: #173f38;
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.18;
}

.section-heading p {
    max-width: 720px;
    margin: 8px 0 0;
    color: #5a746f;
}

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

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

.movie-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(47, 111, 98, 0.1);
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(31, 68, 62, 0.09);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(47, 111, 98, 0.26);
    box-shadow: 0 22px 50px rgba(31, 68, 62, 0.16);
}

.movie-cover {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #dceae4, #f6eddc);
}

.movie-cover img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.cover-glow {
    position: absolute;
    inset: auto 0 0;
    height: 58%;
    background: linear-gradient(to top, rgba(6, 24, 22, 0.7), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.movie-card:hover .cover-glow {
    opacity: 1;
}

.type-badge,
.rank-badge {
    position: absolute;
    top: 12px;
    z-index: 2;
    padding: 5px 9px;
    color: #ffffff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.type-badge {
    right: 12px;
    background: rgba(6, 24, 22, 0.62);
}

.rank-badge {
    left: 12px;
    background: linear-gradient(135deg, #d19b54, #ad7032);
}

.movie-body {
    padding: 17px;
}

.movie-body h2 {
    margin: 0 0 8px;
    color: #173f38;
    font-size: 18px;
    line-height: 1.35;
}

.movie-body h2 a:hover {
    color: #2f6f62;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: #6d817c;
    font-size: 13px;
    font-weight: 700;
}

.movie-meta span {
    padding: 3px 8px;
    background: #f0f5f1;
    border-radius: 999px;
}

.movie-body p {
    min-height: 48px;
    margin: 0 0 13px;
    color: #5a746f;
    font-size: 14px;
}

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

.category-card {
    display: block;
    min-height: 190px;
    padding: 22px;
    color: #ffffff;
    background: linear-gradient(135deg, #285f55, #c19b61);
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(31, 68, 62, 0.16);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:nth-child(2n) {
    background: linear-gradient(135deg, #17443d, #5f9a8a);
}

.category-card:nth-child(3n) {
    background: linear-gradient(135deg, #7a6439, #2f6f62);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 58px rgba(31, 68, 62, 0.2);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
}

.rank-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.ranking-list {
    display: grid;
    gap: 14px;
}

.ranking-item {
    display: grid;
    grid-template-columns: 64px 120px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    background: #ffffff;
    border: 1px solid rgba(47, 111, 98, 0.1);
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(31, 68, 62, 0.08);
}

.ranking-num {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    color: #ffffff;
    background: linear-gradient(135deg, #d19b54, #2f6f62);
    border-radius: 16px;
    font-size: 20px;
    font-weight: 900;
}

.ranking-item img {
    height: 74px;
    object-fit: cover;
    border-radius: 15px;
    background: #e7efe9;
}

.ranking-item h2 {
    margin: 0 0 6px;
    color: #173f38;
    font-size: 19px;
}

.ranking-item p {
    margin: 0;
    color: #617a75;
}

.side-panel {
    position: sticky;
    top: 96px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid rgba(47, 111, 98, 0.1);
    border-radius: 24px;
    box-shadow: 0 16px 42px rgba(31, 68, 62, 0.1);
}

.side-panel h2 {
    margin: 0 0 16px;
    color: #173f38;
}

.mini-card {
    display: grid;
    grid-template-columns: auto 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.mini-card:hover {
    background: #eef5f1;
    transform: translateX(3px);
}

.mini-card img {
    height: 54px;
    object-fit: cover;
    border-radius: 12px;
    background: #e7efe9;
}

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

.mini-card strong {
    color: #173f38;
    line-height: 1.35;
}

.mini-card em {
    color: #78908b;
    font-size: 13px;
    font-style: normal;
}

.mini-rank {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    color: #ffffff;
    background: #2f6f62;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 900;
}

.filter-bar,
.search-box {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid rgba(47, 111, 98, 0.1);
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(31, 68, 62, 0.08);
}

.filter-chip {
    color: #24554c;
    background: #edf4ef;
    padding: 10px 14px;
}

.filter-chip:hover,
.filter-chip.is-active {
    color: #ffffff;
    background: #2f6f62;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 26px auto 0;
    color: #6b827d;
    width: min(1180px, calc(100% - 32px));
    font-size: 14px;
}

.breadcrumb a {
    color: #2f6f62;
    font-weight: 700;
}

.detail-hero {
    padding: 30px 0 0;
}

.detail-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) 380px;
    gap: 28px;
    align-items: start;
}

.player-card,
.detail-info {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(47, 111, 98, 0.1);
    border-radius: 28px;
    box-shadow: 0 18px 50px rgba(31, 68, 62, 0.12);
}

.video-box {
    position: relative;
    overflow: hidden;
    background: #061816;
    aspect-ratio: 16 / 9;
}

.video-box video {
    width: 100%;
    height: 100%;
    display: block;
    background: #061816;
    object-fit: contain;
    cursor: pointer;
}

.play-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.08), rgba(6, 24, 22, 0.56));
    pointer-events: none;
}

.play-button {
    pointer-events: auto;
    width: 92px;
    height: 92px;
    color: #ffffff;
    background: linear-gradient(135deg, #d19b54, #2f6f62);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    font-size: 30px;
}

.play-layer.is-hidden {
    display: none;
}

.player-title {
    padding: 24px;
}

.player-title h1 {
    margin: 0 0 12px;
    color: #173f38;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
}

.player-title p {
    margin: 0;
    color: #58736e;
    font-size: 17px;
}

.detail-info {
    padding: 24px;
}

.detail-info img {
    height: 260px;
    object-fit: cover;
    border-radius: 22px;
    background: #e7efe9;
    margin-bottom: 18px;
}

.info-list {
    display: grid;
    gap: 10px;
    margin: 0 0 18px;
}

.info-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #edf2ee;
}

.info-list dt {
    color: #78908b;
    font-weight: 700;
}

.info-list dd {
    margin: 0;
    color: #173f38;
    text-align: right;
    font-weight: 800;
}

.article-block {
    padding: 32px;
    background: #ffffff;
    border: 1px solid rgba(47, 111, 98, 0.1);
    border-radius: 28px;
    box-shadow: 0 18px 50px rgba(31, 68, 62, 0.1);
}

.article-block h2 {
    margin: 0 0 14px;
    color: #173f38;
    font-size: 28px;
}

.article-block p {
    margin: 0 0 18px;
    color: #4d6863;
    font-size: 17px;
}

.search-results-empty {
    padding: 28px;
    color: #607873;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(31, 68, 62, 0.08);
}

.site-footer {
    margin-top: 70px;
    color: #d8e7e1;
    background: #12332e;
}

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

.footer-brand {
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 18px;
}

.site-footer p {
    margin: 0;
    color: #bad0c9;
}

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

.footer-links.vertical {
    display: grid;
}

.footer-links a {
    color: #d8e7e1;
    padding: 5px 0;
}

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

.footer-bottom {
    padding: 20px 0 28px;
    color: #9dbab1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

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

    .mobile-toggle {
        display: block;
    }

    .hero-shell,
    .detail-shell,
    .rank-layout {
        grid-template-columns: 1fr;
    }

    .side-panel {
        position: static;
    }

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

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

@media (max-width: 760px) {
    .nav-shell {
        height: 62px;
    }

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

    .hero {
        min-height: auto;
        padding: 38px 0 42px;
    }

    .hero-shell {
        gap: 28px;
    }

    .hero-search,
    .filter-bar,
    .search-box {
        flex-direction: column;
        border-radius: 24px;
    }

    .hero-search button,
    .search-box button,
    .filter-bar input {
        width: 100%;
    }

    .hero-stage {
        min-height: 500px;
    }

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

    .section-heading {
        display: block;
    }

    .ranking-item {
        grid-template-columns: 46px 88px minmax(0, 1fr);
    }

    .ranking-item .secondary-btn {
        grid-column: 1 / -1;
        text-align: center;
    }

    .detail-info img {
        height: 220px;
    }

    .article-block,
    .player-title,
    .detail-info {
        padding: 20px;
    }
}
