:root {
    --orange: #f97316;
    --amber: #f59e0b;
    --yellow: #facc15;
    --ink: #1f2937;
    --muted: #6b7280;
    --soft: #fff7ed;
    --line: #fed7aa;
    --dark: #111827;
    --shadow: 0 20px 45px rgba(17, 24, 39, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 34%, #fffaf0 100%);
    color: var(--ink);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 28px rgba(17, 24, 39, 0.08);
}

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

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

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 12px 25px rgba(249, 115, 22, 0.28);
    transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08) rotate(5deg);
}

.brand-text strong,
.footer-logo strong {
    display: block;
    font-size: 20px;
    line-height: 1.1;
    color: transparent;
    background: linear-gradient(90deg, #ea580c, #d97706);
    -webkit-background-clip: text;
    background-clip: text;
}

.brand-text em,
.footer-logo p {
    display: block;
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--muted);
    font-style: normal;
}

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

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

.nav-link:hover,
.nav-link.active {
    color: var(--orange);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #fff7ed;
    color: #9a3412;
}

.mobile-nav {
    display: none;
    padding: 12px 20px 18px;
    border-top: 1px solid #ffedd5;
}

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

.mobile-nav-link {
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff7ed;
    font-weight: 700;
}

.hero-section {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #fb923c 0%, #f59e0b 48%, #fde047 100%);
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 95px;
    background: linear-gradient(0deg, #fff7ed, transparent);
}

.hero-bg {
    position: absolute;
    color: rgba(255, 255, 255, 0.28);
    font-size: 72px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.12));
    animation: floatGlow 6s ease-in-out infinite;
}

.hero-bg-one {
    top: 72px;
    left: 8%;
}

.hero-bg-two {
    top: 120px;
    right: 12%;
    animation-delay: 1.3s;
}

.hero-bg-three {
    bottom: 120px;
    left: 28%;
    animation-delay: 2.2s;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 82px 20px 110px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 54px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
    backdrop-filter: blur(10px);
}

.hero-copy h1 {
    margin: 24px 0 16px;
    max-width: 760px;
    font-size: clamp(42px, 6vw, 74px);
    line-height: 1.08;
    color: #ffffff;
    text-shadow: 0 12px 30px rgba(124, 45, 18, 0.28);
}

.hero-copy p {
    margin: 0 0 30px;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.94);
    font-size: clamp(18px, 2.2vw, 24px);
}

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

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

.primary-button {
    background: linear-gradient(135deg, #f97316, #f59e0b);
    color: #ffffff;
    box-shadow: 0 18px 34px rgba(249, 115, 22, 0.28);
}

.hero-section .primary-button {
    background: #ffffff;
    color: #ea580c;
}

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

.compact-hero .ghost-button {
    color: #9a3412;
    border-color: #fed7aa;
    background: #fff7ed;
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 45px rgba(17, 24, 39, 0.16);
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-pills a {
    padding: 10px 16px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    font-weight: 700;
}

.hero-slider {
    position: relative;
    min-height: 510px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border-radius: 28px;
    background: #111827;
    box-shadow: 0 28px 75px rgba(124, 45, 18, 0.32);
    opacity: 0;
    transform: translateX(18px) scale(0.98);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.08));
}

.hero-slide-copy {
    position: relative;
    z-index: 2;
    padding: 28px;
    color: #ffffff;
}

.hero-slide-copy span {
    display: inline-block;
    margin-bottom: 10px;
    color: #fed7aa;
    font-weight: 800;
}

.hero-slide-copy h2 {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.2;
}

.hero-slide-copy p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.84);
}

.hero-slide-copy a {
    display: inline-flex;
    padding: 10px 16px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffffff;
    font-weight: 800;
}

.hero-controls {
    position: absolute;
    right: 18px;
    top: 18px;
    z-index: 3;
    display: flex;
    gap: 10px;
}

.hero-controls button,
.rail-button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    color: #9a3412;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.14);
    font-size: 26px;
    line-height: 1;
}

.content-section,
.carousel-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 20px;
}

.home-search-wrap {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: -48px auto 0;
    padding: 0 20px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.section-heading h2,
.filter-heading h2,
.story-card h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.2;
    color: #1f2937;
}

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

.heading-line {
    flex: 1;
    height: 4px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--orange), var(--amber), transparent);
}

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

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

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

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}

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

.movie-cover img,
.list-cover img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.movie-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.movie-badge,
.movie-duration {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.movie-badge {
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    background: linear-gradient(135deg, var(--orange), var(--amber));
}

.movie-duration {
    right: 12px;
    bottom: 12px;
    padding: 5px 9px;
    background: rgba(17, 24, 39, 0.82);
    backdrop-filter: blur(10px);
}

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

.movie-card-body h2,
.list-body h2 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card-body h2 a,
.list-body h2 a {
    transition: color 0.2s ease;
}

.movie-card-body h2 a:hover,
.list-body h2 a:hover {
    color: var(--orange);
}

.movie-card-body p,
.list-body p,
.story-card p {
    margin: 0 0 14px;
    color: var(--muted);
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: #6b7280;
    font-size: 13px;
}

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

.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag-pill,
.detail-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ea580c;
    background: #ffedd5;
    font-size: 12px;
    font-weight: 700;
}

.warm-section,
.carousel-section {
    background: linear-gradient(90deg, rgba(255, 237, 213, 0.78), rgba(254, 252, 232, 0.9));
}

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

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

.category-card a {
    display: flex;
    min-height: 220px;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border-radius: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #fb923c, #f59e0b 58%, #facc15);
    box-shadow: 0 18px 34px rgba(249, 115, 22, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:nth-child(2n) a {
    background: linear-gradient(135deg, #f97316, #ef4444);
}

.category-card:nth-child(3n) a {
    background: linear-gradient(135deg, #f59e0b, #84cc16);
}

.category-card a:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow);
}

.category-icon {
    font-size: 28px;
    opacity: 0.82;
}

.category-card h2 {
    margin: 16px 0 8px;
    font-size: 22px;
}

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
}

.category-samples {
    display: grid;
    gap: 6px;
    margin-top: 18px;
}

.category-samples a {
    min-height: auto;
    display: block;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
}

.category-samples a:hover {
    transform: none;
    box-shadow: none;
    text-decoration: underline;
}

.filter-panel {
    margin-bottom: 30px;
    padding: 24px;
    border: 1px solid #ffedd5;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 32px rgba(17, 24, 39, 0.08);
}

.filter-controls {
    display: grid;
    grid-template-columns: minmax(240px, 2fr) repeat(3, minmax(140px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.filter-controls input,
.filter-controls select {
    width: 100%;
    height: 48px;
    border: 1px solid #fed7aa;
    border-radius: 16px;
    background: #fffaf0;
    color: #374151;
    padding: 0 14px;
    outline: none;
}

.filter-controls input:focus,
.filter-controls select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.rail-wrap {
    position: relative;
}

.movie-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 1fr);
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 6px 4px 24px;
    scrollbar-width: thin;
}

.movie-rail .movie-card {
    scroll-snap-align: start;
}

.rail-button {
    position: absolute;
    top: 40%;
    z-index: 4;
}

.rail-prev {
    left: -18px;
}

.rail-next {
    right: -18px;
}

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

.list-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 20px;
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.list-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

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

.rank-number {
    position: absolute;
    top: 12px;
    left: 12px;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f97316, #facc15);
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.list-body {
    padding: 18px 20px 18px 0;
}

.center-actions {
    justify-content: center;
    margin-top: 30px;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #fb923c, #f59e0b, #facc15);
}

.compact-hero {
    min-height: 330px;
    display: flex;
    align-items: center;
}

.page-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 70px 20px;
}

.page-hero h1 {
    margin: 20px 0 14px;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.08;
}

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

.detail-hero {
    min-height: 620px;
    background: #111827;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.detail-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 52px 20px 80px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 34px;
    color: rgba(255, 255, 255, 0.76);
}

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

.detail-grid {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 44px;
    align-items: center;
}

.detail-poster {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 28px 75px rgba(0, 0, 0, 0.34);
    background: #111827;
}

.detail-copy h1 {
    margin: 22px 0 16px;
    font-size: clamp(38px, 5vw, 66px);
    line-height: 1.08;
}

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

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.detail-tags {
    margin-bottom: 28px;
}

.player-section {
    max-width: 1200px;
    margin: -54px auto 0;
    padding: 0 20px 30px;
    position: relative;
    z-index: 4;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 26px 70px rgba(17, 24, 39, 0.25);
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18));
    cursor: pointer;
    text-align: center;
}

.player-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.player-play-button {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    color: #ea580c;
    background: #ffffff;
    font-size: 38px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.26);
}

.player-overlay strong {
    max-width: min(780px, 90%);
    font-size: clamp(24px, 4vw, 44px);
    line-height: 1.18;
}

.player-overlay em {
    font-style: normal;
    color: #fed7aa;
    font-weight: 800;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.story-card {
    padding: 28px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(17, 24, 39, 0.08);
}

.story-card h2 {
    margin-bottom: 12px;
    font-size: 26px;
}

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

.site-footer {
    margin-top: 40px;
    color: #ffffff;
    background: linear-gradient(180deg, #111827, #1f2937);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 52px 20px;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 34px;
}

.footer-brand p,
.footer-note p {
    color: rgba(255, 255, 255, 0.66);
}

.footer-links {
    display: grid;
    gap: 10px;
    align-content: start;
}

.footer-links h2,
.footer-note h2 {
    margin: 0 0 10px;
    font-size: 18px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.66);
    transition: color 0.2s ease;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 22px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
}

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

@keyframes floatGlow {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-18px) rotate(7deg);
    }
}

@media (max-width: 1060px) {
    .hero-inner,
    .detail-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

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

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

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

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

    .mobile-menu-button {
        display: inline-grid;
        place-items: center;
    }

    .hero-section {
        min-height: auto;
    }

    .hero-inner {
        padding-top: 54px;
        gap: 32px;
    }

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

    .content-section,
    .carousel-inner {
        padding: 48px 16px;
    }

    .movie-grid,
    .featured-grid,
    .related-grid,
    .category-grid,
    .wide-category-grid,
    .detail-content {
        grid-template-columns: 1fr;
    }

    .filter-controls {
        grid-template-columns: 1fr;
    }

    .list-card {
        grid-template-columns: 130px minmax(0, 1fr);
        gap: 14px;
    }

    .list-cover {
        min-height: 160px;
    }

    .list-body {
        padding: 14px 14px 14px 0;
    }

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

    .footer-inner {
        padding: 42px 16px;
    }
}

@media (max-width: 520px) {
    .header-inner {
        min-height: 64px;
        padding: 0 14px;
    }

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

    .hero-copy h1,
    .detail-copy h1,
    .page-hero h1 {
        font-size: 34px;
    }

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

    .hero-slide-copy {
        padding: 20px;
    }

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

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

    .list-body {
        padding: 16px;
    }

    .player-play-button {
        width: 68px;
        height: 68px;
        font-size: 30px;
    }
}
