* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: #172033;
    background: linear-gradient(135deg, #fff7ed 0%, #fff 45%, #fffbeb 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

main {
    overflow: hidden;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 45%, #0f172a 100%);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
}

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

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

.logo-mark {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #0f172a;
    background: linear-gradient(135deg, #fb923c, #facc15);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(251, 146, 60, 0.42);
}

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

.desktop-nav a,
.mobile-nav a {
    padding: 10px 14px;
    color: rgba(255, 255, 255, 0.82);
    border-radius: 999px;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 9px;
    background: rgba(255, 255, 255, 0.12);
    border: 0;
    border-radius: 12px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    background: #ffffff;
    border-radius: 999px;
    transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

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

.hero-slider {
    position: relative;
    height: min(760px, 75vh);
    min-height: 560px;
    color: #ffffff;
    background: #0f172a;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    min-height: 100%;
    padding: 80px max(24px, calc((100vw - 1180px) / 2)) 90px;
    background-position: center;
    background-size: cover;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 900ms ease, transform 1300ms ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay,
.detail-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 36%, rgba(251, 146, 60, 0.28), transparent 34%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.72) 46%, rgba(15, 23, 42, 0.24) 100%),
        linear-gradient(0deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.18));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(680px, 100%);
}

.hero-kicker,
.detail-label,
.page-hero span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    color: #fed7aa;
    background: rgba(251, 146, 60, 0.16);
    border: 1px solid rgba(251, 146, 60, 0.34);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.hero-content h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.96;
    letter-spacing: -0.06em;
    text-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
}

.hero-content p {
    max-width: 620px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
}

.hero-tags,
.tag-list,
.movie-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.hero-tags span,
.tag-list span,
.movie-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    color: #7c2d12;
    background: #ffedd5;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

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

.primary-button,
.ghost-button,
.site-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button,
.site-search button {
    color: #0f172a;
    background: linear-gradient(135deg, #fb923c, #facc15);
    box-shadow: 0 16px 36px rgba(251, 146, 60, 0.36);
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.primary-button:hover,
.ghost-button:hover,
.site-search button:hover {
    transform: translateY(-2px);
}

.hero-dots {
    position: absolute;
    right: max(24px, calc((100vw - 1180px) / 2));
    bottom: 42px;
    z-index: 3;
    display: flex;
    gap: 10px;
}

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

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

.home-search-panel,
.content-section,
.player-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.home-search-panel {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 480px);
    gap: 28px;
    align-items: center;
    margin-top: -52px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(251, 146, 60, 0.18);
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(20px);
}

.home-search-panel h2,
.section-head h2,
.detail-text h2,
.category-overview-card h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.2;
}

.home-search-panel p,
.section-head p,
.category-overview-card p,
.detail-text p {
    margin: 10px 0 0;
    color: #64748b;
    line-height: 1.8;
}

.site-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.site-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    outline: 0;
    box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.04);
}

.site-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: #fb923c;
    box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.16);
}

.content-section,
.player-section {
    padding: 72px 0 0;
}

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

.section-more,
.text-link {
    color: #ea580c;
    font-weight: 800;
}

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

.category-tile,
.category-overview-card,
.movie-card {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(251, 146, 60, 0.16);
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.category-tile:hover,
.category-overview-card:hover,
.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(251, 146, 60, 0.42);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

.category-tile {
    min-height: 220px;
    padding: 18px;
    color: #ffffff;
    background: #0f172a;
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.48;
}

.category-tile:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.18));
}

.category-tile span,
.category-tile p {
    position: relative;
    z-index: 1;
}

.category-tile span {
    display: block;
    margin-top: 92px;
    font-size: 22px;
    font-weight: 900;
}

.category-tile p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    line-height: 1.7;
}

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

.movie-card.is-hidden {
    display: none;
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    background: #0f172a;
    overflow: hidden;
}

.movie-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 360ms ease, filter 360ms ease;
}

.movie-card:hover .movie-cover img {
    transform: scale(1.06);
    filter: saturate(1.08) contrast(1.04);
}

.cover-shadow {
    position: absolute;
    inset: auto 0 0;
    height: 48%;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.82), transparent);
}

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 2;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    border-radius: 999px;
}

.play-chip {
    right: 14px;
    bottom: 14px;
    padding: 8px 12px;
    background: rgba(251, 146, 60, 0.92);
}

.rank-badge {
    top: 14px;
    left: 14px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #0f172a;
    background: linear-gradient(135deg, #fde68a, #fb923c);
    box-shadow: 0 10px 24px rgba(251, 146, 60, 0.34);
}

.movie-info {
    padding: 16px;
}

.movie-info h3 {
    margin: 12px 0 0;
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
}

.movie-info p {
    min-height: 72px;
    margin: 10px 0 12px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.72;
}

.page-hero,
.detail-hero {
    position: relative;
    color: #ffffff;
    background: #0f172a;
    background-position: center;
    background-size: cover;
    overflow: hidden;
}

.small-hero {
    padding: 88px max(24px, calc((100vw - 1180px) / 2));
    background:
        radial-gradient(circle at top right, rgba(251, 146, 60, 0.32), transparent 34%),
        linear-gradient(135deg, #0f172a, #1e293b 52%, #431407);
}

.page-hero div {
    width: min(760px, 100%);
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 68px);
    letter-spacing: -0.05em;
}

.page-hero p {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
    line-height: 1.8;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 16px;
    width: min(1180px, calc(100% - 32px));
    margin: -32px auto 0;
    padding: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(251, 146, 60, 0.18);
    border-radius: 24px;
    box-shadow: 0 20px 56px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(18px);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: #92400e;
    font-size: 13px;
    font-weight: 800;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 20px;
    padding: 18px;
}

.category-cover {
    display: block;
    height: 240px;
    border-radius: 18px;
    overflow: hidden;
}

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

.category-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.category-preview span {
    padding: 6px 10px;
    color: #9a3412;
    background: #ffedd5;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 58px 1fr minmax(220px, auto);
    gap: 18px;
    align-items: center;
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid rgba(251, 146, 60, 0.16);
    border-radius: 18px;
}

.ranking-row span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #0f172a;
    background: #fed7aa;
    border-radius: 999px;
    font-weight: 900;
}

.ranking-row strong {
    color: #111827;
}

.ranking-row em {
    color: #64748b;
    font-style: normal;
    text-align: right;
}

.detail-hero {
    min-height: 660px;
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0 78px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 34px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

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

.detail-head-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 42px;
    align-items: end;
}

.detail-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border: 8px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.42);
}

.detail-copy h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.detail-copy p {
    max-width: 760px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.82;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 26px 0 22px;
    padding: 0;
    list-style: none;
}

.detail-meta li {
    padding: 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    backdrop-filter: blur(14px);
}

.detail-meta span,
.detail-meta strong {
    display: block;
}

.detail-meta span {
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
}

.detail-meta strong {
    margin-top: 4px;
    color: #ffffff;
    font-size: 14px;
}

.video-shell {
    position: relative;
    background: #020617;
    border-radius: 30px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
    overflow: hidden;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    width: 100%;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0.56));
    border: 0;
    cursor: pointer;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.player-overlay span {
    display: grid;
    place-items: center;
    width: 94px;
    height: 94px;
    color: #0f172a;
    background: linear-gradient(135deg, #fb923c, #facc15);
    border-radius: 999px;
    box-shadow: 0 22px 44px rgba(251, 146, 60, 0.38);
    font-size: 34px;
    transform: translateX(3px);
}

.player-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

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

.detail-text h2 {
    margin-top: 28px;
}

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

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

.next-links a {
    padding: 18px 20px;
    color: #9a3412;
    background: #ffffff;
    border: 1px solid rgba(251, 146, 60, 0.18);
    border-radius: 18px;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.site-footer {
    margin-top: 92px;
    color: rgba(255, 255, 255, 0.76);
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 52%, #0f172a 100%);
}

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

.footer-brand p {
    max-width: 420px;
    line-height: 1.8;
}

.footer-links h2 {
    margin: 0 0 16px;
    color: #fb923c;
    font-size: 18px;
}

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

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

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

    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .detail-head-layout {
        grid-template-columns: 240px 1fr;
    }

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

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

    .menu-toggle {
        display: flex;
    }

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

    .hero-slider {
        height: 680px;
        min-height: 680px;
    }

    .hero-slide {
        padding-top: 78px;
        padding-bottom: 84px;
    }

    .hero-content p,
    .detail-copy p,
    .page-hero p {
        font-size: 16px;
    }

    .hero-dots {
        left: 24px;
        right: auto;
    }

    .home-search-panel,
    .site-search,
    .filter-panel,
    .section-head,
    .footer-inner,
    .detail-head-layout,
    .next-links {
        grid-template-columns: 1fr;
    }

    .home-search-panel {
        margin-top: -36px;
        padding: 20px;
    }

    .section-head {
        display: grid;
        align-items: start;
    }

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

    .movie-info {
        padding: 13px;
    }

    .movie-info h3 {
        font-size: 16px;
    }

    .movie-info p {
        min-height: auto;
        font-size: 13px;
    }

    .category-overview-card {
        grid-template-columns: 120px 1fr;
        gap: 14px;
    }

    .category-cover {
        height: 168px;
    }

    .ranking-row {
        grid-template-columns: 44px 1fr;
    }

    .ranking-row em {
        grid-column: 2;
        text-align: left;
    }

    .detail-poster {
        width: min(260px, 100%);
    }

    .player-overlay span {
        width: 76px;
        height: 76px;
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .header-inner {
        height: 62px;
    }

    .logo {
        font-size: 19px;
    }

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

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

    .category-overview-card {
        grid-template-columns: 1fr;
    }

    .category-cover {
        height: 220px;
    }

    .detail-meta {
        grid-template-columns: 1fr;
    }
}
