:root {
    --orange: #f97316;
    --orange-dark: #ea580c;
    --amber: #f59e0b;
    --rose: #f43f5e;
    --red: #fb7185;
    --ink: #111827;
    --muted: #6b7280;
    --soft: #fff7ed;
    --line: #fed7aa;
    --card: #ffffff;
    --shadow: 0 20px 45px rgba(154, 52, 18, 0.13);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 36%, #fffaf5 100%);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 251, 235, 0.86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(253, 186, 116, 0.62);
}

.header-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.26);
}

.brand-text strong {
    display: block;
    font-size: 23px;
    line-height: 1;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #b45309, var(--orange-dark));
    -webkit-background-clip: text;
    color: transparent;
}

.brand-text em {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1 1 auto;
}

.nav-link {
    color: #374151;
    font-weight: 650;
    transition: color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

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

.nav-link:hover {
    transform: translateY(-1px);
}

.nav-link-soft {
    font-size: 14px;
    color: #6b7280;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid rgba(253, 186, 116, 0.8);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 25px rgba(251, 146, 60, 0.08);
}

.header-search input {
    width: 170px;
    border: 0;
    outline: none;
    background: transparent;
    padding: 6px 8px 6px 12px;
}

.header-search button,
.btn-primary,
.btn-ghost,
.btn-light,
.search-panel button,
.back-top {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.btn-primary,
.search-panel button {
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--rose));
    box-shadow: 0 12px 24px rgba(244, 63, 94, 0.2);
}

.header-search button {
    padding: 8px 16px;
}

.btn-primary,
.btn-ghost,
.btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
}

.btn-primary:hover,
.header-search button:hover,
.search-panel button:hover,
.back-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(244, 63, 94, 0.26);
}

.btn-ghost {
    color: #9a3412;
    border: 1px solid rgba(251, 146, 60, 0.4);
    background: rgba(255, 255, 255, 0.76);
}

.btn-light {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #9a3412;
    background: rgba(255, 237, 213, 0.86);
}

.mobile-nav {
    display: none;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 14px;
    border-top: 1px solid var(--line);
}

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

.main-wrap {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    background: radial-gradient(circle at top left, rgba(251, 146, 60, 0.65), transparent 34%), linear-gradient(120deg, #92400e 0%, #f97316 45%, #fb7185 100%);
    color: #ffffff;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.76), rgba(17, 24, 39, 0.25), rgba(154, 52, 18, 0.64));
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    transition: opacity 0.55s ease, visibility 0.55s ease, transform 1.2s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.12) contrast(1.06);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) 380px;
    align-items: center;
    gap: 52px;
    padding: 72px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 22px;
    border-radius: 999px;
    color: #fff7ed;
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(12px);
    font-weight: 800;
    letter-spacing: 0.03em;
}

.hero h1 {
    margin: 0;
    max-width: 780px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.03;
    letter-spacing: -0.05em;
}

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

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

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-meta span,
.tag-row span,
.detail-tags span,
.breadcrumbs a,
.breadcrumbs span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
}

.hero-meta span {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-poster {
    position: relative;
    padding: 18px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.17);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 30px 70px rgba(17, 24, 39, 0.34);
    backdrop-filter: blur(18px);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 22px;
}

.hero-score {
    position: absolute;
    top: 30px;
    right: 30px;
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    color: #ffffff;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--amber), var(--rose));
    font-size: 20px;
    font-weight: 900;
    box-shadow: 0 18px 30px rgba(244, 63, 94, 0.32);
}

.hero-controls {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 34px;
    width: min(1240px, calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-dots {
    display: flex;
    gap: 9px;
}

.hero-dot,
.hero-arrow {
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.hero-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border-radius: 999px;
}

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

.hero-arrows {
    display: flex;
    gap: 12px;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 22px;
}

.section {
    margin-top: 64px;
}

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

.section-heading h2,
.page-title h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

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

.feature-band {
    margin-top: -36px;
    position: relative;
    z-index: 4;
    padding: 32px;
    border-radius: 28px;
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    box-shadow: var(--shadow);
}

.feature-grid,
.movie-grid,
.category-grid {
    display: grid;
    gap: 22px;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(154, 52, 18, 0.1);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 45px rgba(154, 52, 18, 0.18);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #fed7aa, #fff7ed);
}

.poster-link img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.score {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    border-radius: 10px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.66);
    backdrop-filter: blur(9px);
    font-size: 13px;
    font-weight: 900;
}

.card-body {
    padding: 14px;
}

.card-body h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
}

.card-body h3 a:hover {
    color: var(--orange-dark);
}

.card-body p {
    min-height: 44px;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

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

.tag-row span,
.detail-tags span {
    padding: 4px 8px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 12px;
    font-weight: 750;
}

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    padding: 26px;
    border-radius: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.92), rgba(244, 63, 94, 0.88));
    box-shadow: var(--shadow);
}

.category-card img {
    position: absolute;
    right: -20px;
    bottom: -38px;
    width: 150px;
    height: 220px;
    object-fit: cover;
    border-radius: 22px;
    transform: rotate(8deg);
    opacity: 0.42;
}

.category-card h2,
.category-card h3 {
    position: relative;
    margin: 0 0 10px;
    font-size: 24px;
}

.category-card p {
    position: relative;
    max-width: 78%;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
}

.category-card strong {
    position: absolute;
    left: 26px;
    bottom: 22px;
}

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

.rank-item,
.latest-item,
.compact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(154, 52, 18, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item,
.latest-item {
    padding: 14px;
}

.rank-item:hover,
.latest-item:hover,
.compact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(154, 52, 18, 0.14);
}

.rank-no {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--orange), var(--rose));
    font-weight: 900;
    font-size: 20px;
}

.rank-item img,
.latest-item img,
.compact-card img {
    flex: 0 0 76px;
    width: 76px;
    height: 106px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-item h3,
.latest-item h3 {
    margin: 0;
    font-size: 17px;
}

.rank-item p,
.latest-item p,
.compact-card em {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.page-hero {
    padding: 64px 0 26px;
}

.page-title {
    padding: 38px;
    border-radius: 28px;
    color: #ffffff;
    background: linear-gradient(135deg, #d97706, #f97316, #fb7185);
    box-shadow: var(--shadow);
}

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

.page-title p {
    color: rgba(255, 255, 255, 0.88);
    max-width: 820px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px 0 18px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumbs a,
.breadcrumbs span {
    padding: 6px 10px;
    background: #ffffff;
    border: 1px solid #ffedd5;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #000000;
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.32);
}

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(249, 115, 22, 0.22), rgba(17, 24, 39, 0.78));
}

.play-layer span {
    display: inline-grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--rose));
    box-shadow: 0 20px 45px rgba(244, 63, 94, 0.38);
    font-size: 32px;
}

.player-shell.is-playing .play-layer {
    display: none;
}

.detail-panel,
.side-panel,
.text-panel,
.search-panel {
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.detail-panel,
.text-panel,
.search-panel {
    padding: 28px;
}

.detail-panel {
    margin-top: 24px;
}

.detail-panel h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    letter-spacing: -0.035em;
    line-height: 1.16;
}

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

.stat-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 22px 0;
}

.stat-bar span {
    padding: 10px 14px;
    border-radius: 14px;
    background: #fff7ed;
    color: #9a3412;
    font-weight: 800;
}

.text-panel {
    margin-top: 24px;
}

.text-panel h2,
.side-panel h2 {
    margin: 0 0 16px;
    font-size: 24px;
    letter-spacing: -0.02em;
}

.text-panel p {
    margin: 0;
    color: #374151;
    font-size: 16px;
}

.text-panel p + p {
    margin-top: 14px;
}

.side-panel {
    padding: 18px;
}

.side-panel + .side-panel {
    margin-top: 20px;
}

.side-poster {
    overflow: hidden;
    border-radius: 20px;
}

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

.compact-card {
    padding: 10px;
    box-shadow: none;
    border: 1px solid #ffedd5;
}

.compact-card + .compact-card {
    margin-top: 10px;
}

.compact-card strong {
    display: block;
    line-height: 1.35;
}

.search-panel {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, minmax(130px, 0.4fr)) auto;
    gap: 12px;
    align-items: center;
    margin: 28px 0;
}

.search-panel input,
.search-panel select {
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    outline: none;
    background: #fffaf5;
}

.search-panel button {
    min-height: 46px;
    padding: 0 24px;
}

.hidden-by-search {
    display: none !important;
}

.no-results {
    display: none;
    padding: 28px;
    border-radius: 20px;
    color: #9a3412;
    background: #ffedd5;
    font-weight: 800;
}

.no-results.show {
    display: block;
}

.site-footer {
    margin-top: 78px;
    padding: 46px 0 26px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, #fff7ed, #ffedd5);
}

.footer-grid,
.footer-bottom {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 38px;
}

.footer-grid h2,
.footer-grid h3 {
    margin: 0 0 12px;
}

.footer-grid p {
    margin: 0;
    color: #6b7280;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    color: #9a3412;
    background: rgba(255, 255, 255, 0.62);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 14px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid #fed7aa;
    color: #6b7280;
}

.back-top {
    padding: 8px 14px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--rose));
}

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

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

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-poster {
        max-width: 320px;
    }

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

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

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

    .side-panel {
        display: none;
    }

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

@media (max-width: 720px) {
    .header-inner {
        min-height: 68px;
        gap: 12px;
    }

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

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

    .hero-content {
        padding: 46px 0 80px;
    }

    .hero-poster {
        display: none;
    }

    .hero-controls {
        bottom: 22px;
    }

    .section {
        margin-top: 42px;
    }

    .section-heading {
        display: block;
    }

    .feature-band,
    .page-title,
    .detail-panel,
    .text-panel,
    .search-panel {
        padding: 20px;
        border-radius: 20px;
    }

    .feature-grid,
    .category-grid,
    .rank-list,
    .footer-grid,
    .search-panel {
        grid-template-columns: 1fr;
    }

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

    .card-body p {
        min-height: auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
    }
}
