* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #1f2937;
    background: #fff7ed;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(251, 146, 60, 0.18);
    backdrop-filter: blur(18px);
}

.header-inner {
    max-width: 1240px;
    margin: 0 auto;
    min-height: 72px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ec4899);
    box-shadow: 0 16px 30px rgba(236, 72, 153, 0.22);
}

.brand-text {
    font-size: 20px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.nav-link {
    color: #4b5563;
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #f97316;
}

.header-search {
    width: 310px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.08);
}

.header-search input,
.mobile-search input,
.big-search input,
.local-filter-input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #111827;
    background: transparent;
}

.header-search input {
    padding: 8px 10px 8px 14px;
}

.header-search button,
.mobile-search button,
.big-search button {
    border: 0;
    border-radius: 999px;
    padding: 8px 16px;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, #f97316, #ec4899);
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.22);
}

.menu-button {
    display: none;
    border: 0;
    color: #111827;
    background: transparent;
    font-size: 28px;
}

.mobile-menu {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px 18px;
}

.mobile-search {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #fed7aa;
}

.mobile-menu-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mobile-menu-link {
    padding: 12px 14px;
    border-radius: 16px;
    color: #374151;
    background: #ffffff;
    font-weight: 800;
}

.hero-carousel {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    background: #111827;
}

.hero-track,
.hero-slide,
.hero-backdrop {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
    transform: scale(1.02);
}

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

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) brightness(0.55);
}

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.35), transparent 36%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.96) 0%, rgba(17, 24, 39, 0.74) 45%, rgba(17, 24, 39, 0.28) 100%),
        linear-gradient(0deg, rgba(17, 24, 39, 0.92) 0%, transparent 42%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    min-height: 600px;
    margin: 0 auto;
    padding: 76px 20px 78px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) 360px;
    align-items: center;
    gap: 50px;
}

.hero-copy {
    color: #ffffff;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #fff7ed;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.88), rgba(236, 72, 153, 0.88));
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(42px, 7vw, 74px);
    line-height: 1.04;
    letter-spacing: -0.06em;
    text-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.hero-copy p {
    max-width: 700px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 20px;
}

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

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

.hero-tags span,
.detail-meta span,
.tag-row span,
.feature-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.hero-tags span {
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

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

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

.primary-button,
.quick-link {
    padding: 13px 22px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ec4899);
    box-shadow: 0 18px 34px rgba(236, 72, 153, 0.28);
}

.ghost-button {
    padding: 12px 22px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.12);
}

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

.hero-poster {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.46);
    transform: rotate(2deg);
}

.hero-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: inherit;
}

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

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

.hero-mini-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
}

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

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    font-size: 36px;
    line-height: 1;
    transform: translateY(-50%);
    backdrop-filter: blur(12px);
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

.quick-panel,
.section-block,
.page-main,
.footer-inner {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}

.quick-panel {
    margin-top: -38px;
    padding: 0 20px;
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: 1fr repeat(3, auto);
    align-items: stretch;
    gap: 14px;
}

.quick-card,
.quick-link,
.feature-panel,
.category-tile,
.movie-card,
.rank-card,
.page-hero,
.filter-panel,
.detail-hero,
.player-box,
.detail-article,
.detail-side,
.category-overview-card {
    border: 1px solid rgba(251, 146, 60, 0.18);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 22px 50px rgba(249, 115, 22, 0.12);
}

.quick-card {
    padding: 22px;
    border-radius: 26px;
}

.quick-card span {
    color: #f97316;
    font-weight: 900;
}

.quick-card strong {
    display: block;
    margin-top: 4px;
    color: #111827;
    font-size: 22px;
}

.quick-card p {
    margin: 8px 0 0;
    color: #6b7280;
}

.quick-link {
    min-width: 118px;
    padding: 0 22px;
    border-radius: 26px;
}

.section-block {
    padding: 64px 20px 0;
}

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

.section-heading.compact {
    align-items: center;
}

.section-heading h2,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    color: #111827;
    font-weight: 950;
    letter-spacing: -0.045em;
}

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

.section-heading a,
.text-link {
    color: #f97316;
    font-weight: 900;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 65px rgba(249, 115, 22, 0.2);
}

.movie-cover {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #f97316);
}

.movie-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.cover-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.74);
    font-weight: 900;
    font-size: 12px;
    backdrop-filter: blur(8px);
}

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

.movie-meta-line {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #f97316;
    font-size: 12px;
    font-weight: 900;
}

.movie-card h3 {
    margin: 8px 0 8px;
    color: #111827;
    font-size: 18px;
    line-height: 1.32;
}

.movie-card p {
    min-height: 48px;
    margin: 0 0 12px;
    color: #6b7280;
    font-size: 14px;
}

.tag-row span {
    color: #9a3412;
    background: #ffedd5;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 10px;
    border-radius: 20px;
}

.rank-cover {
    overflow: hidden;
    border-radius: 16px;
}

.rank-cover img {
    width: 84px;
    height: 112px;
    object-fit: cover;
}

.rank-title {
    display: block;
    color: #111827;
    font-size: 17px;
    font-weight: 900;
}

.rank-card p {
    margin: 6px 0;
    color: #6b7280;
    font-size: 14px;
}

.rank-meta {
    color: #f97316;
    font-size: 12px;
    font-weight: 900;
}

.feature-panel {
    position: sticky;
    top: 98px;
    align-self: start;
    padding: 32px;
    border-radius: 32px;
    background:
        radial-gradient(circle at 0 0, rgba(236, 72, 153, 0.16), transparent 36%),
        #ffffff;
}

.feature-panel > span {
    color: #f97316;
    font-weight: 900;
}

.feature-panel h2 {
    margin: 10px 0 12px;
    color: #111827;
    font-size: 32px;
    line-height: 1.15;
}

.feature-panel p {
    color: #6b7280;
}

.feature-tags a {
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ec4899);
}

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

.category-tile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    border-radius: 26px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.category-tile:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ec4899);
    transform: translateY(-5px);
}

.category-tile strong {
    font-size: 22px;
}

.category-tile span {
    color: #6b7280;
}

.category-tile:hover span,
.category-tile:hover em {
    color: rgba(255, 255, 255, 0.86);
}

.category-tile em {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #f97316;
    font-style: normal;
    font-size: 13px;
    font-weight: 900;
}

.page-main {
    padding: 42px 20px 72px;
}

.page-hero {
    overflow: hidden;
    padding: 46px;
    border-radius: 34px;
    background:
        radial-gradient(circle at 18% 10%, rgba(236, 72, 153, 0.16), transparent 32%),
        linear-gradient(135deg, #ffffff, #fff7ed);
}

.page-hero h1 {
    max-width: 880px;
    font-size: clamp(34px, 6vw, 58px);
}

.page-hero p {
    max-width: 760px;
    margin: 16px 0 0;
    color: #6b7280;
    font-size: 18px;
}

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

.breadcrumb a {
    color: #f97316;
    font-weight: 800;
}

.filter-panel {
    margin: 24px 0;
    padding: 18px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.filter-search {
    flex: 1;
    padding: 12px 16px;
    border-radius: 999px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

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

.filter-buttons button {
    border: 0;
    padding: 10px 16px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-weight: 900;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
    border-radius: 28px;
}

.category-cover-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.category-cover-stack img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
}

.category-overview-card h2 {
    margin: 0 0 8px;
    color: #111827;
}

.category-overview-card p {
    margin: 0 0 12px;
    color: #6b7280;
}

.ranking-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.ranking-item > span {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ec4899);
    font-weight: 950;
}

.big-search {
    max-width: 680px;
    margin-top: 26px;
    padding: 8px;
    display: flex;
    gap: 10px;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    background: #ffffff;
}

.big-search input {
    padding: 14px 18px;
}

.big-search button {
    padding-left: 26px;
    padding-right: 26px;
}

.detail-main {
    max-width: 1180px;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
    align-items: center;
    padding: 34px;
    border-radius: 34px;
    background:
        radial-gradient(circle at 0 0, rgba(236, 72, 153, 0.14), transparent 34%),
        linear-gradient(135deg, #ffffff, #fff7ed);
}

.detail-copy h1 {
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.08;
}

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

.detail-meta span {
    color: #9a3412;
    background: #ffedd5;
}

.detail-tags {
    margin-top: 18px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(249, 115, 22, 0.2);
}

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

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

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    background: #111827;
}

.movie-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111827;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.28));
}

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

.play-icon {
    width: 78px;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ec4899);
    box-shadow: 0 22px 60px rgba(236, 72, 153, 0.38);
    font-size: 30px;
}

.player-overlay strong {
    max-width: 80%;
    text-align: center;
    font-size: 24px;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    margin-top: 28px;
}

.detail-article,
.detail-side {
    padding: 28px;
    border-radius: 28px;
}

.detail-article h2,
.detail-side h2 {
    margin: 0 0 14px;
    color: #111827;
    font-size: 26px;
}

.detail-article p {
    margin: 0 0 24px;
    color: #4b5563;
    font-size: 17px;
}

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

.detail-side dt {
    color: #f97316;
    font-weight: 900;
}

.detail-side dd {
    margin: 0;
    color: #374151;
}

.detail-side a {
    color: #f97316;
    font-weight: 900;
}

.site-footer {
    margin-top: 72px;
    color: #4b5563;
    background: #ffffff;
    border-top: 1px solid #fed7aa;
}

.footer-inner {
    padding: 34px 20px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 28px;
}

.footer-brand {
    color: #111827;
    font-size: 22px;
}

.footer-inner p {
    margin: 10px 0 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-weight: 800;
}

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

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

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

    .feature-panel {
        position: static;
    }
}

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

    .menu-button {
        display: block;
        margin-left: auto;
    }

    .hero-carousel,
    .hero-content {
        min-height: 720px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 26px;
        padding-top: 54px;
    }

    .hero-poster {
        max-width: 260px;
        margin: 0 auto;
    }

    .hero-poster img {
        height: 340px;
    }

    .quick-panel {
        grid-template-columns: 1fr;
    }

    .quick-link {
        min-height: 56px;
    }

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

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

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

@media (max-width: 640px) {
    .header-inner {
        min-height: 64px;
    }

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

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

    .hero-copy p {
        font-size: 17px;
    }

    .hero-control {
        display: none;
    }

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

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

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

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

    .section-block,
    .page-main {
        padding-left: 14px;
        padding-right: 14px;
    }

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

    .filter-panel,
    .big-search,
    .footer-inner {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

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

    .footer-inner {
        display: block;
    }

    .footer-links {
        justify-content: flex-start;
        margin-top: 20px;
    }
}
