:root {
    --site-orange: #f97316;
    --site-red: #dc2626;
    --site-pink: #db2777;
    --site-blue: #2563eb;
    --site-green: #16a34a;
    --site-dark: #111827;
    --site-gray: #4b5563;
    --site-light: #f9fafb;
    --site-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #f9fafb;
    color: #111827;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 23px;
    font-weight: 900;
    letter-spacing: -0.04em;
    white-space: nowrap;
    background: linear-gradient(90deg, #ea580c, #dc2626);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #f97316, #dc2626);
    box-shadow: 0 14px 24px rgba(249, 115, 22, 0.32);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    color: #374151;
    font-weight: 700;
}

.nav-links a {
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #ea580c;
    transition: width 0.25s ease;
}

.nav-links a:hover {
    color: #ea580c;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.header-search {
    position: relative;
    width: min(280px, 24vw);
}

.header-search input,
.filter-input {
    width: 100%;
    border: 0;
    outline: 0;
    border-radius: 999px;
    background: #f3f4f6;
    padding: 12px 48px 12px 18px;
    color: #111827;
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.header-search input:focus,
.filter-input:focus {
    background: #fff;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.24);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
}

.search-btn:hover {
    color: #ea580c;
}

.menu-btn {
    display: none;
    border: 0;
    background: transparent;
    color: #374151;
    font-size: 26px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    padding: 18px 24px 24px;
}

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

.mobile-links {
    display: grid;
    gap: 12px;
    margin-top: 16px;
    color: #374151;
    font-weight: 700;
}

.hero {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(115deg, #ea580c, #dc2626 48%, #db2777);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.24), transparent 28%), radial-gradient(circle at 10% 85%, rgba(255, 255, 255, 0.18), transparent 35%), rgba(0, 0, 0, 0.28);
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image: linear-gradient(rgba(255, 255, 255, 0.32) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.32) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    min-height: 600px;
    margin: 0 auto;
    padding: 96px 24px 64px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 470px);
    align-items: center;
    gap: 54px;
}

.hero-copy h1 {
    margin: 0 0 24px;
    font-size: clamp(46px, 7vw, 82px);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: -0.07em;
}

.hero-copy p {
    margin: 0 0 30px;
    max-width: 720px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(18px, 2vw, 26px);
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.hero-button,
.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.hero-button {
    min-height: 58px;
    padding: 0 32px;
    color: #ea580c;
    background: #fff;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.24);
}

.hero-button:hover,
.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-2px) scale(1.02);
}

.secondary-button {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.12);
}

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

.hero-card {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 30px;
    background: rgba(17, 24, 39, 0.3);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.36);
    opacity: 0;
    transform: translateX(28px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.hero-card:hover img {
    transform: scale(1.06);
}

.hero-card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.2) 55%, rgba(0, 0, 0, 0.08));
}

.hero-card-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 34px;
}

.hero-card-body h2 {
    margin: 12px 0;
    font-size: 30px;
    line-height: 1.18;
}

.hero-card-body p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.75;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 12px;
    border-radius: 999px;
    color: #fff;
    background: #f97316;
    font-size: 13px;
    font-weight: 800;
}

.hero-dots {
    position: absolute;
    right: 28px;
    bottom: 26px;
    z-index: 5;
    display: flex;
    gap: 8px;
}

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

.hero-dot.active {
    background: #fff;
}

.section {
    padding: 72px 24px;
}

.section.tint-blue {
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.section.tint-orange {
    background: linear-gradient(135deg, #fff7ed, #fef2f2);
}

.section.tint-purple {
    background: linear-gradient(135deg, #faf5ff, #fdf2f8);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

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

.section-head h2,
.page-title {
    margin: 0;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.15;
    font-weight: 950;
    color: #111827;
}

.section-head p,
.page-lead {
    margin: 10px 0 0;
    color: #6b7280;
    line-height: 1.75;
}

.more-link {
    color: #ea580c;
    font-weight: 900;
    white-space: nowrap;
}

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

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

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

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

.movie-card,
.category-card,
.rank-card,
.detail-panel {
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover,
.category-card:hover,
.rank-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--site-shadow);
}

.poster {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #fb923c, #dc2626);
}

.poster.wide {
    aspect-ratio: 16 / 9;
}

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

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

.poster-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    transition: background 0.25s ease;
}

.movie-card:hover .poster-overlay,
.rank-card:hover .poster-overlay {
    background: rgba(0, 0, 0, 0.28);
}

.play-chip {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.92);
    color: #f97316;
    transform: scale(0.75);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-chip,
.rank-card:hover .play-chip {
    opacity: 1;
    transform: scale(1);
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 900;
    color: #111827;
}

.card-body p {
    margin: 0 0 14px;
    color: #6b7280;
    line-height: 1.65;
    font-size: 14px;
}

.meta-row,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: #6b7280;
    font-size: 13px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 12px;
    font-weight: 800;
}

.tag.hot {
    background: linear-gradient(90deg, #f97316, #ef4444);
    color: #fff;
}

.line-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.line-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.filter-bar {
    margin: 28px 0 34px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-pill {
    border: 0;
    border-radius: 999px;
    padding: 10px 15px;
    color: #374151;
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    font-weight: 800;
}

.filter-pill.active,
.filter-pill:hover {
    color: #fff;
    background: linear-gradient(90deg, #f97316, #dc2626);
}

.category-card {
    display: block;
    padding: 28px;
    min-height: 210px;
    color: #fff;
    background: linear-gradient(135deg, #f97316, #dc2626);
}

.category-card:nth-child(2n) {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
}

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

.category-card h2 {
    margin: 20px 0 12px;
    font-size: 26px;
}

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.75;
}

.rank-list {
    display: grid;
    gap: 18px;
}

.rank-card {
    display: grid;
    grid-template-columns: 86px minmax(0, 180px) minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 14px;
}

.rank-number {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 950;
    font-size: 22px;
    background: linear-gradient(135deg, #f97316, #dc2626);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 22px;
}

.breadcrumb a:hover {
    color: #ea580c;
}

.detail-hero {
    padding: 48px 24px 74px;
    background: linear-gradient(135deg, #111827, #7f1d1d 55%, #111827);
    color: #fff;
}

.detail-layout {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.75fr);
    gap: 32px;
    align-items: start;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.player-box video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.28);
}

.player-cover.hidden {
    display: none;
}

.big-play {
    width: 86px;
    height: 86px;
    border: 0;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #f97316;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.32);
    cursor: pointer;
}

.detail-side {
    border-radius: 24px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.detail-side h1 {
    margin: 0 0 14px;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.18;
}

.detail-side p {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.8;
}

.detail-main {
    padding: 70px 24px;
}

.detail-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
}

.article-block {
    margin-bottom: 24px;
    padding: 28px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.article-block h2 {
    margin: 0 0 16px;
    font-size: 25px;
}

.article-block p {
    margin: 0;
    color: #4b5563;
    line-height: 1.9;
}

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

.side-link {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

.side-link img {
    width: 74px;
    height: 96px;
    border-radius: 12px;
    object-fit: cover;
}

.side-link h3 {
    margin: 2px 0 8px;
    font-size: 15px;
    line-height: 1.35;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937, #111827);
}

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

.footer-inner h3 {
    margin: 0 0 16px;
    color: #fff;
}

.footer-inner p,
.footer-inner a {
    color: #9ca3af;
    line-height: 1.75;
    font-size: 14px;
}

.footer-inner a:hover {
    color: #f97316;
}

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

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 24px 32px;
    color: #6b7280;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
}

.back-top {
    position: fixed;
    right: 26px;
    bottom: 26px;
    z-index: 40;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 999px;
    display: none;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #f97316, #dc2626);
    box-shadow: 0 18px 35px rgba(249, 115, 22, 0.35);
    cursor: pointer;
}

.back-top.show {
    display: grid;
}

.empty-state {
    display: none;
    padding: 36px;
    border-radius: 18px;
    background: #fff;
    color: #6b7280;
    text-align: center;
}

@media (max-width: 1100px) {
    .hero-inner,
    .detail-layout,
    .detail-grid {
        grid-template-columns: 1fr;
    }

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

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

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

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

@media (max-width: 820px) {
    .nav-links,
    .header-search {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .hero-inner {
        padding-top: 72px;
    }

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

    .section {
        padding: 50px 16px;
    }

    .section-head,
    .filter-bar {
        display: grid;
        grid-template-columns: 1fr;
    }

    .rank-card {
        grid-template-columns: 56px 90px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-number {
        width: 46px;
        height: 46px;
        font-size: 18px;
    }

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

@media (max-width: 520px) {
    .nav-wrap {
        height: 66px;
        padding: 0 16px;
    }

    .logo {
        font-size: 19px;
    }

    .logo-mark {
        width: 34px;
        height: 34px;
    }

    .hero {
        min-height: auto;
    }

    .hero-inner {
        min-height: auto;
        padding: 54px 16px 44px;
        gap: 28px;
    }

    .hero-copy h1 {
        font-size: 42px;
    }

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

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

    .hero-card-body h2 {
        font-size: 24px;
    }

    .card-grid,
    .card-grid.compact,
    .feature-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .detail-hero,
    .detail-main {
        padding-left: 16px;
        padding-right: 16px;
    }

    .rank-card {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .rank-card .poster {
        display: none;
    }
}
