* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #020617;
    color: #f8fafc;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 999px;
    color: #fff7ed;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    box-shadow: 0 0 28px rgba(249, 115, 22, 0.4);
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #cbd5e1;
    font-size: 14px;
    flex: 1;
}

.desktop-nav a {
    transition: color 0.2s ease;
}

.desktop-nav a:hover {
    color: #fb923c;
}

.nav-search {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
}

.nav-search input {
    width: 190px;
    border: 0;
    outline: 0;
    color: #f8fafc;
    background: transparent;
    padding: 10px 12px 10px 16px;
}

.nav-search button,
.wide-search button,
.filter-bar button {
    border: 0;
    color: #fff7ed;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    padding: 10px 16px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button:hover,
.wide-search button:hover,
.filter-bar button:hover,
.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(249, 115, 22, 0.28);
}

.menu-toggle {
    display: none;
    border: 0;
    color: #fff;
    background: rgba(148, 163, 184, 0.14);
    border-radius: 12px;
    padding: 9px 12px;
}

.mobile-nav {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.94);
}

.mobile-nav a {
    display: block;
    padding: 10px;
    color: #cbd5e1;
}

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

.hero {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    background: #020617;
}

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

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

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.32;
    transform: scale(1.04);
    filter: saturate(1.08);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.35), transparent 34%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.78) 46%, rgba(2, 6, 23, 0.55) 100%),
        linear-gradient(0deg, #020617 0%, transparent 38%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: center;
    gap: 46px;
    padding: 86px 0 150px;
}

.hero-kicker,
.section-kicker {
    margin: 0 0 12px;
    color: #fb923c;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1,
.hero h2 {
    margin: 0;
    font-size: clamp(44px, 7vw, 88px);
    line-height: 0.95;
    letter-spacing: -0.06em;
    max-width: 880px;
}

.hero-summary {
    margin: 22px 0 0;
    max-width: 760px;
    color: #cbd5e1;
    font-size: 18px;
}

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

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
    border: 1px solid rgba(251, 146, 60, 0.28);
    border-radius: 999px;
    color: #fed7aa;
    background: rgba(249, 115, 22, 0.12);
    padding: 5px 10px;
    font-size: 13px;
}

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

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

.primary-btn {
    color: #fff7ed;
    background: linear-gradient(135deg, #f97316, #f59e0b);
}

.ghost-btn {
    border: 1px solid rgba(148, 163, 184, 0.28);
    color: #f8fafc;
    background: rgba(15, 23, 42, 0.58);
}

.ghost-btn:hover {
    background: rgba(30, 41, 59, 0.84);
}

.hero-poster {
    overflow: hidden;
    border: 1px solid rgba(251, 146, 60, 0.22);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.7);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

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

.hero-dots button {
    width: 34px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.32);
    cursor: pointer;
}

.hero-dots button.is-active {
    background: #fb923c;
}

.hero-strip {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 18px;
    width: min(1120px, calc(100% - 32px));
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    transform: translateX(-50%);
}

.hero-mini-card {
    display: grid;
    grid-template-columns: 56px 1fr;
    align-items: center;
    gap: 10px;
    min-width: 0;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.72);
    padding: 8px;
    backdrop-filter: blur(14px);
}

.hero-mini-card img {
    width: 56px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
}

.hero-mini-card span {
    min-width: 0;
    overflow: hidden;
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-main {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0 86px;
}

.inner-page {
    padding-top: 42px;
}

.search-panel {
    margin-top: -12px;
    margin-bottom: 54px;
}

.wide-search,
.filter-bar {
    display: flex;
    gap: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.72));
    padding: 12px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

.wide-search input,
.filter-bar input,
.filter-bar select {
    min-width: 0;
    flex: 1;
    border: 1px solid rgba(148, 163, 184, 0.22);
    outline: 0;
    border-radius: 16px;
    color: #f8fafc;
    background: rgba(2, 6, 23, 0.62);
    padding: 12px 14px;
}

.filter-bar select {
    max-width: 220px;
}

.content-section {
    margin-top: 58px;
}

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

.section-head h2,
.page-hero h1,
.detail-info h1,
.detail-text h2 {
    margin: 0;
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-head h2 {
    font-size: clamp(26px, 4vw, 42px);
}

.section-head p,
.page-hero p,
.category-overview-card p,
.detail-text p,
.rank-card p {
    margin: 8px 0 0;
    color: #94a3b8;
}

.section-head a {
    flex: 0 0 auto;
    color: #fb923c;
    font-weight: 800;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.92));
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    border-color: rgba(251, 146, 60, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.3);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    transition: transform 0.35s ease;
}

.movie-card:hover .poster-link img {
    transform: scale(1.06);
}

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(2, 6, 23, 0.9));
    opacity: 0;
    transition: opacity 0.24s ease;
}

.movie-card:hover .poster-link::after {
    opacity: 1;
}

.poster-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(249, 115, 22, 0.92);
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: translateY(0);
}

.card-content {
    padding: 14px;
}

.card-title {
    display: block;
    overflow: hidden;
    color: #f8fafc;
    font-size: 16px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-title:hover {
    color: #fb923c;
}

.card-meta {
    margin: 5px 0 0;
    color: #cbd5e1;
    font-size: 13px;
}

.card-desc {
    display: -webkit-box;
    height: 42px;
    overflow: hidden;
    margin: 8px 0 10px;
    color: #94a3b8;
    font-size: 13px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.compact-card .card-desc {
    display: none;
}

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

.category-tile,
.category-overview-card {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 22px;
    background:
        radial-gradient(circle at 90% 10%, rgba(249, 115, 22, 0.23), transparent 34%),
        linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.94));
    padding: 20px;
}

.category-tile span,
.category-overview-title {
    display: block;
    color: #fb923c;
    font-size: 20px;
    font-weight: 900;
}

.category-tile strong {
    display: block;
    margin-top: 12px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 500;
}

.category-preview-links {
    display: grid;
    gap: 6px;
    margin-top: 14px;
    color: #cbd5e1;
    font-size: 14px;
}

.category-preview-links a:hover {
    color: #fb923c;
}

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

.rank-list a,
.rank-card {
    display: grid;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.82);
    padding: 12px;
}

.rank-list a {
    grid-template-columns: 42px 1fr auto;
}

.rank-list span,
.rank-num {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    color: #fff7ed;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    font-weight: 900;
}

.rank-list strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-list em {
    color: #94a3b8;
    font-size: 13px;
    font-style: normal;
}

.page-hero,
.detail-hero {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 30px;
    background:
        radial-gradient(circle at 78% 0%, rgba(249, 115, 22, 0.26), transparent 36%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.78));
    padding: 34px;
}

.small-hero h1 {
    font-size: clamp(34px, 5vw, 58px);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    color: #94a3b8;
    font-size: 14px;
}

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

.all-grid {
    align-items: stretch;
}

.rank-page-list {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.rank-card {
    grid-template-columns: 52px 82px 1fr;
}

.rank-cover img {
    width: 82px;
    height: 112px;
    border-radius: 14px;
    object-fit: cover;
}

.rank-title {
    color: #f8fafc;
    font-size: 20px;
    font-weight: 900;
}

.rank-title:hover {
    color: #fb923c;
}

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

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.detail-info h1 {
    font-size: clamp(34px, 6vw, 68px);
}

.detail-one-line {
    margin: 18px 0 0;
    max-width: 860px;
    color: #cbd5e1;
    font-size: 18px;
}

.detail-meta {
    margin: 18px 0;
}

.large-tags span {
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.22);
    background: rgba(148, 163, 184, 0.12);
}

.detail-info .primary-btn {
    margin-top: 24px;
}

.player-section {
    margin-top: 34px;
}

.video-box {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(251, 146, 60, 0.28);
    border-radius: 28px;
    background: #000;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.44);
}

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

.video-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.22), rgba(2, 6, 23, 0.82));
    cursor: pointer;
}

.video-overlay.is-hidden {
    display: none;
}

.big-play {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    box-shadow: 0 0 36px rgba(249, 115, 22, 0.42);
    font-size: 30px;
}

.video-overlay strong {
    margin-top: 120px;
    font-size: 20px;
}

.detail-text {
    max-width: 960px;
}

.detail-text h2 {
    margin-top: 28px;
    color: #f8fafc;
    font-size: 28px;
}

.detail-text p {
    color: #cbd5e1;
    font-size: 17px;
}

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    background: #020617;
    padding: 42px 0 26px;
}

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

.footer-grid p,
.copyright {
    color: #94a3b8;
}

.footer-grid h2 {
    margin: 0 0 12px;
    color: #f8fafc;
    font-size: 16px;
}

.footer-grid a:not(.footer-brand) {
    display: block;
    margin-top: 7px;
    color: #cbd5e1;
    font-size: 14px;
}

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

.copyright {
    width: min(1280px, calc(100% - 32px));
    margin: 28px auto 0;
    font-size: 14px;
}

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

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

    .menu-toggle {
        display: block;
    }

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

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

    .hero-inner {
        grid-template-columns: 1fr 260px;
    }
}

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

    .hero {
        min-height: 820px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        padding: 54px 0 220px;
    }

    .hero-poster {
        display: none;
    }

    .hero-strip {
        grid-template-columns: 1fr;
        bottom: 18px;
    }

    .hero-mini-card:nth-child(n + 4) {
        display: none;
    }

    .hero-dots {
        bottom: 270px;
    }

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

    .section-head,
    .wide-search,
    .filter-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-bar select {
        max-width: none;
    }

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

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

    .rank-card {
        grid-template-columns: 44px 68px 1fr;
    }

    .rank-cover img {
        width: 68px;
        height: 92px;
    }
}

@media (max-width: 560px) {
    .page-main,
    .nav-wrap,
    .mobile-nav,
    .footer-grid,
    .copyright {
        width: min(100% - 22px, 1280px);
    }

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

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

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

    .page-hero,
    .detail-hero {
        padding: 24px;
        border-radius: 22px;
    }
}
