* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f9fafb;
    color: #111827;
    line-height: 1.6;
}

body.nav-open {
    overflow: hidden;
}

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

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

button,
input {
    font: inherit;
}

[hidden] {
    display: none !important;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    box-shadow: 0 16px 28px rgba(249, 115, 22, 0.26);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong,
.footer-logo strong {
    font-size: 21px;
    font-weight: 800;
    color: #111827;
    transition: color 0.2s ease;
}

.brand:hover strong {
    color: #ea580c;
}

.brand-text small {
    margin-top: 5px;
    color: #6b7280;
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 23px;
    color: #374151;
    font-weight: 650;
}

.desktop-nav a,
.mobile-nav a,
.footer-links a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover {
    color: #ea580c;
}

.mobile-menu-button {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    background: #f3f4f6;
    cursor: pointer;
}

.mobile-menu-button span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #374151;
}

.mobile-nav {
    display: none;
    border-top: 1px solid #e5e7eb;
    padding: 14px 24px 22px;
    background: #ffffff;
}

.mobile-nav a {
    display: block;
    padding: 12px 0;
    color: #374151;
    font-weight: 650;
}

.page-main {
    min-height: 70vh;
}

.hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 20% 20%, rgba(251, 146, 60, 0.36), transparent 34%), linear-gradient(135deg, #111827 0%, #7c2d12 52%, #ea580c 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.24));
    z-index: 1;
}

.hero-shell {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    min-height: 620px;
    margin: 0 auto;
    padding: 72px 24px 110px;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1fr) 440px;
    align-items: center;
    gap: 54px;
    min-height: 460px;
}

.hero-slide.is-active {
    display: grid;
    animation: fadeUp 0.6s ease both;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fed7aa;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.hero-title {
    max-width: 780px;
    margin: 22px 0 18px;
    color: #ffffff;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.04em;
    font-weight: 900;
}

.hero-summary {
    max-width: 720px;
    margin: 0 0 24px;
    color: #f3f4f6;
    font-size: 18px;
}

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

.hero-meta span,
.detail-tags span,
.tag-row span,
.filter-chips button {
    border-radius: 999px;
}

.hero-meta span {
    padding: 8px 13px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
}

.hero-actions,
.section-head,
.card-grid,
.category-grid,
.movie-meta,
.detail-actions,
.breadcrumb,
.poster-meta,
.hero-controls,
.hero-dots,
.filter-chips,
.footer-bottom {
    display: flex;
}

.hero-actions {
    flex-wrap: wrap;
    gap: 14px;
}

.primary-button,
.secondary-button,
.text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    padding: 13px 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    box-shadow: 0 18px 30px rgba(239, 68, 68, 0.28);
}

.secondary-button {
    padding: 12px 22px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(12px);
}

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

.hero-poster-wrap {
    position: relative;
}

.hero-poster-wrap::before {
    content: "";
    position: absolute;
    inset: 28px -16px -18px 24px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.16);
    filter: blur(2px);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    height: 560px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
    transform: rotate(2deg);
}

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

.hero-poster-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent 54%);
}

.hero-card-title {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    color: #ffffff;
}

.hero-card-title strong {
    display: block;
    font-size: 24px;
    line-height: 1.2;
}

.hero-card-title span {
    display: block;
    color: #fed7aa;
    margin-top: 6px;
}

.hero-controls {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 36px;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
}

.hero-arrow-group {
    display: flex;
    gap: 10px;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    backdrop-filter: blur(12px);
}

.hero-dots {
    gap: 9px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
}

.hero-dot.is-active {
    width: 32px;
    border-radius: 999px;
    background: #ffffff;
}

.content-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 24px;
}

.content-section.tight {
    padding-top: 32px;
}

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

.section-kicker {
    display: inline-block;
    color: #ea580c;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.section-head h1,
.section-head h2,
.page-title h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.12;
    color: #111827;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-head p,
.page-title p {
    max-width: 720px;
    margin: 10px 0 0;
    color: #6b7280;
}

.text-button {
    color: #ea580c;
    font-weight: 850;
}

.category-strip {
    max-width: 1180px;
    margin: -54px auto 0;
    position: relative;
    z-index: 10;
    padding: 0 24px;
}

.category-strip-inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 22px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 70px rgba(17, 24, 39, 0.14);
    backdrop-filter: blur(18px);
}

.category-pill {
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, #fff7ed, #ffffff);
    border: 1px solid #fed7aa;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-pill:hover,
.category-card:hover,
.movie-card:hover,
.rank-row:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(17, 24, 39, 0.12);
}

.category-pill strong,
.category-card strong {
    display: block;
    color: #111827;
    font-size: 18px;
    font-weight: 850;
}

.category-pill span,
.category-card span {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 14px;
}

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

.movie-card {
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card-link,
.movie-cover,
.movie-card-body {
    display: block;
}

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

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

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

.cover-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.58), transparent 62%);
}

.category-badge,
.year-badge {
    position: absolute;
    top: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
}

.category-badge {
    left: 12px;
    background: rgba(255, 247, 237, 0.96);
    color: #c2410c;
}

.year-badge {
    right: 12px;
    background: rgba(17, 24, 39, 0.78);
    color: #ffffff;
}

.movie-card-body {
    padding: 18px;
}

.movie-card-body strong {
    display: block;
    min-height: 48px;
    color: #111827;
    font-size: 18px;
    font-weight: 850;
    line-height: 1.32;
    transition: color 0.2s ease;
}

.movie-card:hover strong,
.rank-row:hover strong,
.related-card:hover strong {
    color: #ea580c;
}

.movie-desc {
    display: -webkit-box;
    min-height: 44px;
    margin-top: 9px;
    overflow: hidden;
    color: #6b7280;
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-meta {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.movie-meta em {
    font-style: normal;
    color: #4b5563;
    font-size: 13px;
}

.movie-meta em::after {
    content: "·";
    margin-left: 8px;
    color: #d1d5db;
}

.movie-meta em:last-child::after {
    content: "";
    margin-left: 0;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.tag-row span {
    padding: 4px 8px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 12px;
}

.feature-band {
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

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

.category-card {
    min-height: 210px;
    padding: 24px;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 35px rgba(17, 24, 39, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 22px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffedd5, #fee2e2);
    color: #ea580c;
    font-weight: 900;
    font-size: 22px;
}

.filter-scope {
    position: relative;
}

.filter-panel {
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}

.search-box {
    display: grid;
    grid-template-columns: 72px 1fr;
    align-items: center;
    gap: 12px;
}

.search-box span {
    color: #374151;
    font-weight: 850;
}

.search-box input {
    width: 100%;
    min-height: 48px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 0 16px;
    color: #111827;
    outline: 0;
    background: #f9fafb;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.filter-chips {
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.filter-chips button {
    border: 1px solid #fed7aa;
    padding: 8px 14px;
    color: #9a3412;
    background: #fff7ed;
    font-weight: 750;
    cursor: pointer;
}

.filter-chips button.is-active,
.filter-chips button:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444);
}

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

.rank-row {
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.rank-row a {
    display: grid;
    grid-template-columns: 68px 112px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
}

.rank-no {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #f97316, #ef4444);
}

.rank-cover {
    height: 70px;
    border-radius: 14px;
    overflow: hidden;
    background: #111827;
}

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

.rank-info strong,
.rank-info span {
    display: block;
}

.rank-info strong {
    color: #111827;
    font-size: 17px;
    line-height: 1.35;
}

.rank-info span,
.rank-tags {
    color: #6b7280;
    font-size: 14px;
}

.rank-tags {
    white-space: nowrap;
}

.page-hero {
    background: linear-gradient(135deg, #111827, #7c2d12 58%, #ea580c);
    color: #ffffff;
}

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

.page-title h1,
.page-title p {
    color: #ffffff;
}

.page-title p {
    color: #ffedd5;
}

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

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

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

.detail-card,
.side-card,
.player-card {
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 14px 38px rgba(17, 24, 39, 0.08);
    overflow: hidden;
}

.player-card {
    margin-bottom: 28px;
}

.player-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #030712;
}

.player-frame video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #030712;
}

.play-overlay {
    position: absolute;
    inset: 0;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.18), rgba(0, 0, 0, 0.42));
    cursor: pointer;
    transition: opacity 0.22s ease;
}

.play-overlay span {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f97316, #ef4444);
    box-shadow: 0 22px 38px rgba(239, 68, 68, 0.34);
    font-size: 32px;
    padding-left: 5px;
}

.player-frame.is-playing .play-overlay {
    opacity: 0;
    pointer-events: none;
}

.player-caption {
    padding: 22px 24px 24px;
}

.player-caption h1 {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.player-caption p {
    margin: 0;
    color: #6b7280;
}

.detail-card {
    padding: 28px;
}

.detail-card h2,
.side-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 900;
}

.detail-card p {
    margin: 0 0 18px;
    color: #4b5563;
}

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

.info-box {
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff7ed, #ffffff);
    border: 1px solid #fed7aa;
}

.info-box span,
.poster-meta span {
    display: block;
    color: #6b7280;
    font-size: 13px;
}

.info-box strong,
.poster-meta strong {
    display: block;
    margin-top: 4px;
    color: #ea580c;
    font-size: 17px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 18px 0 26px;
}

.detail-tags span {
    padding: 7px 11px;
    background: #f3f4f6;
    color: #374151;
    font-size: 14px;
}

.review-box {
    margin-top: 26px;
    padding: 22px;
    border-radius: 22px;
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
    border: 1px solid #bfdbfe;
}

.review-box p {
    margin-bottom: 0;
    color: #374151;
}

.side-card {
    padding: 22px;
    position: sticky;
    top: 96px;
}

.poster-card {
    border-radius: 22px;
    overflow: hidden;
    background: #111827;
    margin-bottom: 22px;
}

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

.poster-meta {
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
    background: #ffffff;
}

.poster-meta div {
    flex: 1 1 42%;
}

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

.related-card {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 12px;
    align-items: center;
}

.related-thumb {
    height: 74px;
    border-radius: 14px;
    overflow: hidden;
    background: #111827;
}

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

.related-card strong,
.related-card span {
    display: block;
}

.related-card strong {
    color: #111827;
    line-height: 1.35;
}

.related-card span {
    margin-top: 4px;
    color: #6b7280;
    font-size: 13px;
}

.more-grid {
    margin-top: 44px;
}

.empty-state {
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    color: #6b7280;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(17, 24, 39, 0.06);
}

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

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 54px 24px 34px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 42px;
}

.footer-logo strong {
    color: #ffffff;
}

.footer-brand p {
    max-width: 420px;
    color: #9ca3af;
}

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

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

.footer-links a {
    color: #d1d5db;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 24px 28px;
    border-top: 1px solid #1f2937;
    justify-content: space-between;
    gap: 16px;
    color: #9ca3af;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .mobile-menu-button {
        display: flex;
    }

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

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

    .hero-poster {
        height: 380px;
        transform: none;
    }

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

    .side-card {
        position: static;
    }
}

@media (max-width: 720px) {
    .header-inner {
        height: 66px;
        padding: 0 16px;
    }

    .brand-text strong {
        font-size: 18px;
    }

    .brand-text small {
        display: none;
    }

    .hero-shell {
        min-height: 0;
        padding: 46px 18px 96px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-summary {
        font-size: 16px;
    }

    .hero-poster {
        height: 300px;
    }

    .hero-controls {
        bottom: 24px;
    }

    .category-strip {
        margin-top: 0;
        padding: 24px 18px 0;
    }

    .content-section {
        padding: 44px 18px;
    }

    .section-head {
        display: block;
    }

    .section-head .text-button {
        margin-top: 12px;
    }

    .card-grid,
    .category-grid,
    .category-strip-inner,
    .detail-info-grid {
        grid-template-columns: 1fr;
    }

    .rank-row a {
        grid-template-columns: 44px 86px minmax(0, 1fr);
    }

    .rank-tags {
        grid-column: 3;
        white-space: normal;
    }

    .search-box {
        grid-template-columns: 1fr;
    }

    .detail-card {
        padding: 20px;
    }

    .related-card {
        grid-template-columns: 96px 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        padding: 42px 18px 28px;
    }

    .footer-bottom {
        display: grid;
        padding: 18px;
    }
}
