:root {
    --orange: #ea580c;
    --orange-dark: #c2410c;
    --red: #dc2626;
    --blue: #2563eb;
    --cyan: #0891b2;
    --dark: #111827;
    --muted: #6b7280;
    --light: #f9fafb;
    --line: #e5e7eb;
    --radius: 18px;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.13);
}

* {
    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(--dark);
    background: #f3f4f6;
    line-height: 1.6;
}

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

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

svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    color: #fff;
    background: linear-gradient(90deg, var(--orange), var(--red));
    box-shadow: 0 10px 28px rgba(194, 65, 12, 0.28);
}

.site-header-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    transition: transform 0.25s ease;
}

.site-logo:hover .logo-icon {
    transform: scale(1.08) rotate(-3deg);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-weight: 650;
}

.nav-link {
    opacity: 0.94;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fed7aa;
    opacity: 1;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    border-radius: 999px;
    background: #fff;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 14px;
}

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

.mobile-nav-link {
    display: block;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
}

.hero-carousel {
    position: relative;
    height: 560px;
    overflow: hidden;
    background: linear-gradient(135deg, #7c2d12, #991b1b);
}

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.52) 50%, rgba(0, 0, 0, 0.18));
}

.hero-content {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 72px;
    max-width: 1180px;
}

.hero-content > * {
    max-width: 760px;
}

.hero-tag,
.movie-category {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    padding: 9px 14px;
}

.hero-content h1 {
    margin: 18px 0 16px;
    color: #fff;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-content p {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 19px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.hero-meta span {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 7px 12px;
    backdrop-filter: blur(10px);
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 12px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #fff;
    background: var(--orange);
    box-shadow: 0 12px 24px rgba(234, 88, 12, 0.32);
}

.primary-button:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
}

.ghost-button {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    font-size: 34px;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-prev {
    left: 26px;
}

.hero-next {
    right: 26px;
}

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

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

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

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

.home-search-wrap {
    margin-top: -36px;
    position: relative;
    z-index: 8;
}

.search-panel {
    padding: 18px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f9fafb;
    padding: 0 14px;
}

.search-box span {
    display: inline-flex;
    color: var(--muted);
    font-size: 20px;
}

.search-box input {
    width: 100%;
    min-height: 48px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--dark);
    font-size: 16px;
}

.quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.quick-filters button {
    border: 0;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    padding: 8px 14px;
    cursor: pointer;
    font-weight: 650;
    transition: background 0.2s ease, color 0.2s ease;
}

.quick-filters button:hover,
.quick-filters button.active {
    color: #fff;
    background: var(--orange);
}

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

.section-heading h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #1f2937;
    font-size: clamp(25px, 4vw, 34px);
    line-height: 1.15;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--muted);
}

.heading-icon {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    color: var(--orange);
    background: #ffedd5;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.16);
}

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

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

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

.card-shade {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.32);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .card-shade {
    opacity: 1;
}

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-mark {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.category-pill,
.duration,
.rank-badge {
    position: absolute;
    z-index: 2;
    color: #fff;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    padding: 7px 9px;
}

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

.duration {
    right: 10px;
    bottom: 10px;
    background: rgba(0, 0, 0, 0.76);
}

.rank-badge {
    right: 10px;
    top: 10px;
    background: #dc2626;
}

.card-body {
    padding: 15px 16px 16px;
}

.card-body h3,
.horizontal-info h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

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

.card-body p,
.horizontal-info p {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
}

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

.card-meta svg {
    color: #facc15;
}

.blue-band {
    color: #fff;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.blue-band .section-heading h2,
.blue-band .section-heading p {
    color: #fff;
}

.blue-band .heading-icon {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

.scroll-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 290px);
    gap: 22px;
    overflow-x: auto;
    padding: 2px 0 18px;
    scrollbar-width: thin;
}

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

.category-tile {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-radius: var(--radius);
    color: #fff;
    background: #111827;
    box-shadow: var(--shadow);
}

.category-tile img {
    width: 100%;
    height: 100%;
    min-height: 210px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.category-tile span {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.18));
}

.category-tile strong,
.category-tile em {
    position: absolute;
    left: 20px;
    right: 20px;
}

.category-tile strong {
    bottom: 66px;
    font-size: 24px;
    line-height: 1.2;
}

.category-tile em {
    bottom: 22px;
    display: -webkit-box;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.86);
    font-style: normal;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.two-column-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 32px;
    align-items: start;
}

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

.horizontal-card {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
}

.horizontal-cover {
    position: relative;
    min-height: 150px;
    overflow: hidden;
    background: #111827;
}

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

.horizontal-card:hover .horizontal-cover img {
    transform: scale(1.05);
}

.horizontal-info {
    padding: 18px;
}

.ranking-panel {
    position: sticky;
    top: 92px;
    padding: 22px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

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

.ranking-head h2 {
    margin: 0;
    font-size: 26px;
}

.ranking-head a {
    color: var(--orange);
    font-weight: 750;
}

.page-hero {
    color: #fff;
    padding: 64px 0;
    background: linear-gradient(90deg, var(--orange), var(--red));
}

.page-hero h1 {
    margin: 14px 0 12px;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.1;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 18px;
}

.crumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
}

.crumb a:hover {
    color: #fff;
}

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

.overview-card {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    overflow: hidden;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.overview-cover {
    position: relative;
    min-height: 180px;
    background: #111827;
}

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

.overview-cover span {
    position: absolute;
    left: 14px;
    bottom: 14px;
    color: #fff;
    background: var(--orange);
    border-radius: 999px;
    padding: 7px 12px;
    font-weight: 800;
}

.overview-body {
    padding: 22px;
}

.overview-body h2 {
    margin: 0 0 10px;
}

.overview-body p {
    margin: 0 0 14px;
    color: var(--muted);
}

.sample-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sample-links span {
    max-width: 100%;
    overflow: hidden;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    padding: 6px 10px;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 13px;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: #0f172a;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.32;
    filter: blur(8px);
    transform: scale(1.05);
}

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

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.48));
}

.detail-head {
    position: relative;
    z-index: 1;
    padding: 42px 0 48px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 34px;
    align-items: end;
    margin-top: 24px;
}

.detail-cover {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
    background: #111827;
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

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

.detail-one-line {
    max-width: 780px;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 20px;
}

.detail-tags span {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    padding: 7px 12px;
    backdrop-filter: blur(10px);
}

.detail-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.9);
}

.detail-stats span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #020617;
    box-shadow: 0 26px 64px rgba(15, 23, 42, 0.22);
}

.player-shell video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 14px;
    border: 0;
    color: #fff;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.78));
    cursor: pointer;
}

.player-overlay span {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border-radius: 999px;
    background: rgba(234, 88, 12, 0.92);
    box-shadow: 0 20px 50px rgba(234, 88, 12, 0.28);
    font-size: 42px;
    transition: transform 0.2s ease;
}

.player-overlay:hover span {
    transform: scale(1.08);
}

.player-overlay strong {
    max-width: 80%;
    overflow: hidden;
    font-size: clamp(22px, 4vw, 38px);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.player-shell.playing .player-overlay {
    display: none;
}

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

.content-card,
.side-card {
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    padding: 28px;
}

.content-card h2,
.side-card h2 {
    margin: 0 0 16px;
    font-size: 25px;
}

.content-card p {
    margin: 0 0 24px;
    color: #374151;
    font-size: 17px;
}

.side-card dl {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px 16px;
    margin: 0;
}

.side-card dt {
    color: var(--muted);
}

.side-card dd {
    margin: 0;
    color: #111827;
    font-weight: 650;
}

.site-footer {
    margin-top: 40px;
    color: #d1d5db;
    background: #111827;
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    padding: 52px 0 34px;
}

.footer-logo {
    color: #fff;
    font-size: 22px;
    margin-bottom: 14px;
}

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

.site-footer p,
.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li {
    margin: 9px 0;
}

.site-footer a:hover {
    color: #fb923c;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 16px;
    color: #9ca3af;
    text-align: center;
}

.is-hidden {
    display: none !important;
}

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

    .two-column-layout,
    .detail-content {
        grid-template-columns: 1fr;
    }

    .ranking-panel {
        position: static;
    }

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

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

    .menu-toggle {
        display: block;
    }

    .site-logo {
        font-size: 22px;
    }

    .hero-carousel {
        height: 520px;
    }

    .hero-content {
        padding-bottom: 74px;
    }

    .hero-arrow {
        display: none;
    }

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

    .overview-card,
    .horizontal-card,
    .detail-layout {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 560px) {
    .container,
    .site-header-inner,
    .mobile-nav,
    .footer-grid {
        width: min(100% - 24px, 1180px);
    }

    .hero-carousel {
        height: 500px;
    }

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

    .hero-meta span {
        font-size: 13px;
    }

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

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

    .scroll-row {
        grid-auto-columns: minmax(230px, 84vw);
    }

    .page-hero {
        padding: 46px 0;
    }

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

    .content-card,
    .side-card {
        padding: 22px;
    }
}
