* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #2b1708;
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fff7ed 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 237, 213, 0.96));
    border-bottom: 1px solid rgba(217, 119, 6, 0.22);
    box-shadow: 0 12px 35px rgba(146, 64, 14, 0.12);
    backdrop-filter: blur(14px);
}

.nav-shell {
    max-width: 1320px;
    height: 72px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(90deg, #92400e, #ea580c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #d97706, #ea580c);
    box-shadow: 0 12px 24px rgba(217, 119, 6, 0.28);
    font-size: 14px;
}

.header-search {
    flex: 1;
    max-width: 520px;
    display: flex;
    align-items: center;
}

.header-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 2px solid rgba(217, 119, 6, 0.28);
    border-radius: 999px;
    padding: 12px 18px;
    color: #7c2d12;
    background: #ffffff;
    outline: none;
    transition: 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.header-search button,
.mobile-search button,
.small-btn {
    border: 0;
    margin-left: -86px;
    padding: 9px 18px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    font-weight: 800;
    cursor: pointer;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-weight: 700;
    color: #78350f;
}

.main-nav a,
.mobile-links a {
    padding: 8px 2px;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active,
.mobile-links a:hover,
.mobile-links a.active {
    color: #ea580c;
    border-color: #f59e0b;
}

.menu-toggle {
    display: none;
    border: 0;
    background: #fff7ed;
    color: #92400e;
    border-radius: 12px;
    padding: 9px 12px;
    font-size: 22px;
}

.mobile-panel {
    display: none;
    padding: 16px 22px 20px;
    border-top: 1px solid rgba(217, 119, 6, 0.18);
}

.mobile-panel.open {
    display: block;
}

.mobile-search {
    display: flex;
    max-width: 720px;
}

.mobile-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 14px;
    color: #78350f;
    font-weight: 800;
}

main {
    min-height: 70vh;
}

.home-hero {
    max-width: 1320px;
    margin: 28px auto 0;
    padding: 0 22px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
}

.hero-stage {
    position: relative;
    min-height: 68vh;
    border-radius: 34px;
    overflow: hidden;
    background: #431407;
    box-shadow: 0 28px 70px rgba(146, 64, 14, 0.24);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.55s ease, transform 0.8s ease;
}

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

.hero-slide img,
.detail-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay,
.detail-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 22% 22%, rgba(251, 191, 36, 0.42), transparent 34%),
        linear-gradient(90deg, rgba(67, 20, 7, 0.94) 0%, rgba(120, 53, 15, 0.68) 44%, rgba(67, 20, 7, 0.24) 100%);
}

.hero-content {
    position: absolute;
    left: clamp(28px, 6vw, 84px);
    bottom: clamp(34px, 8vw, 96px);
    width: min(680px, calc(100% - 56px));
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fbbf24;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.hero-content p,
.page-hero p,
.detail-one-line {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 247, 237, 0.92);
}

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

.primary-btn,
.ghost-btn,
.section-more,
.wide-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: 0.2s ease;
}

.primary-btn,
.wide-link {
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 14px 28px rgba(234, 88, 12, 0.3);
}

.ghost-btn {
    color: #fff7ed;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover,
.wide-link:hover,
.small-btn:hover {
    transform: translateY(-2px);
}

.hero-tags,
.detail-meta,
.movie-meta,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.hero-tags span,
.detail-meta span,
.tag-row span,
.movie-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

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

.hero-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(120, 53, 15, 0.48);
    backdrop-filter: blur(8px);
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

.hero-control.prev {
    left: 20px;
}

.hero-control.next {
    right: 20px;
}

.hero-dots {
    position: absolute;
    left: clamp(28px, 6vw, 84px);
    bottom: 28px;
    z-index: 6;
    display: flex;
    gap: 8px;
}

.hero-dots button {
    width: 34px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

.hero-dots button.active {
    background: #fbbf24;
}

.hero-side {
    border-radius: 30px;
    padding: 26px;
    color: #fff7ed;
    background: linear-gradient(160deg, #78350f, #431407);
    box-shadow: 0 24px 54px rgba(67, 20, 7, 0.22);
}

.hero-side h2 {
    margin: 0 0 20px;
    font-size: 28px;
}

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

.hero-rank-list a {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    transition: 0.2s ease;
}

.hero-rank-list a:hover {
    background: rgba(251, 191, 36, 0.18);
}

.hero-rank-list strong {
    color: #fbbf24;
    font-size: 18px;
}

.hero-rank-list span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}

.hero-rank-list em {
    color: #fed7aa;
    font-style: normal;
}

.wide-link {
    width: 100%;
    margin-top: 18px;
}

.category-strip,
.section-block,
.page-hero,
.detail-shell,
.player-section {
    max-width: 1320px;
    margin: 28px auto 0;
    padding: 0 22px;
}

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

.category-chip,
.category-box a {
    display: block;
    min-height: 116px;
    border: 1px solid rgba(217, 119, 6, 0.18);
    border-radius: 26px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 44px rgba(146, 64, 14, 0.1);
    transition: 0.2s ease;
}

.category-chip:hover,
.category-box a:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 54px rgba(146, 64, 14, 0.16);
}

.category-chip span {
    display: block;
    color: #9a3412;
    font-weight: 900;
    font-size: 18px;
}

.category-chip em {
    display: block;
    margin-top: 8px;
    color: #7c2d12;
    font-style: normal;
    line-height: 1.55;
}

.section-block {
    padding-top: 20px;
}

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

.section-head h2,
.article-section h2,
.category-box h2 {
    margin: 0 0 8px;
    color: #431407;
    font-size: clamp(26px, 3.2vw, 42px);
    letter-spacing: -0.03em;
}

.section-head p,
.category-box p,
.article-section p {
    margin: 0;
    color: #7c2d12;
    line-height: 1.8;
}

.section-more {
    color: #9a3412;
    background: #ffedd5;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(217, 119, 6, 0.16);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(146, 64, 14, 0.09);
    transition: 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 60px rgba(146, 64, 14, 0.16);
}

.poster-wrap {
    position: relative;
    display: block;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #fef3c7, #fdba74);
}

.card-large .poster-wrap {
    height: 280px;
}

.poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.45s ease;
}

.movie-card:hover .poster-wrap img {
    transform: scale(1.08);
}

.poster-badge,
.play-mark {
    position: absolute;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
    background: rgba(67, 20, 7, 0.72);
    backdrop-filter: blur(8px);
}

.poster-badge {
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    font-size: 12px;
}

.play-mark {
    right: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.movie-title {
    display: block;
    color: #431407;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.35;
}

.movie-title:hover {
    color: #ea580c;
}

.movie-line {
    min-height: 48px;
    margin: 10px 0;
    color: #7c2d12;
    font-size: 14px;
    line-height: 1.7;
}

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

.tag-row {
    margin-top: 10px;
}

.feature-band {
    display: grid;
    grid-template-columns: 0.86fr 1.14fr;
    gap: 26px;
    align-items: center;
    border-radius: 32px;
    margin-bottom: 34px;
    padding: 34px;
    color: #ffffff;
    background:
        radial-gradient(circle at 10% 20%, rgba(251, 191, 36, 0.42), transparent 32%),
        linear-gradient(135deg, #78350f, #431407);
}

.feature-copy h2 {
    margin: 14px 0;
    font-size: clamp(30px, 4vw, 54px);
    line-height: 1.12;
}

.feature-copy p {
    color: #fed7aa;
    line-height: 1.9;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    padding: 58px;
    color: #ffffff;
    background:
        radial-gradient(circle at 18% 20%, rgba(251, 191, 36, 0.5), transparent 30%),
        linear-gradient(135deg, #78350f, #431407);
}

.small-hero h1 {
    max-width: 880px;
}

.small-hero p {
    max-width: 880px;
}

.category-grid-page {
    max-width: 1320px;
    margin: 28px auto 0;
    padding: 0 22px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.filter-bar select {
    width: 220px;
    appearance: none;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 74px 96px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
}

.rank-index {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #d97706, #ea580c);
    font-size: 20px;
    font-weight: 900;
}

.rank-poster {
    height: 116px;
    border-radius: 16px;
    overflow: hidden;
}

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

.rank-info p {
    color: #7c2d12;
    line-height: 1.6;
}

.small-btn {
    margin: 0;
    white-space: nowrap;
}

.detail-hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: #ffffff;
    background: #431407;
}

.detail-bg,
.detail-shade {
    position: absolute;
    inset: 0;
}

.detail-bg {
    filter: blur(4px) saturate(1.06);
    transform: scale(1.02);
    opacity: 0.76;
}

.detail-shell {
    position: relative;
    z-index: 2;
    padding-top: 40px;
    padding-bottom: 52px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 28px;
    color: #fed7aa;
    font-weight: 800;
}

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

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

.detail-poster {
    position: relative;
    height: 470px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
}

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

.detail-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(234, 88, 12, 0.86);
    box-shadow: 0 18px 44px rgba(234, 88, 12, 0.35);
}

.detail-copy h1 {
    max-width: 920px;
}

.detail-meta span {
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.14);
}

.player-section {
    scroll-margin-top: 90px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background: #0f0a06;
    box-shadow: 0 30px 70px rgba(67, 20, 7, 0.24);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: #ffffff;
    background: rgba(15, 10, 6, 0.28);
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.big-play {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 20px 44px rgba(234, 88, 12, 0.35);
    font-size: 30px;
}

.player-cover strong {
    font-size: clamp(22px, 4vw, 42px);
}

.article-section {
    padding-top: 32px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.article-grid article {
    padding: 26px;
    border: 1px solid rgba(217, 119, 6, 0.16);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(146, 64, 14, 0.09);
}

.article-grid p {
    font-size: 16px;
}

.site-footer {
    margin-top: 56px;
    padding: 46px 22px 26px;
    color: #fed7aa;
    background: linear-gradient(135deg, #78350f, #431407);
}

.footer-grid {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.9fr 1fr;
    gap: 32px;
}

.footer-grid h3 {
    margin: 0 0 14px;
    color: #fde68a;
}

.footer-grid a,
.footer-grid p {
    display: block;
    margin: 8px 0;
    color: #fed7aa;
    line-height: 1.7;
}

.footer-grid a:hover {
    color: #ffffff;
}

.footer-bottom {
    max-width: 1320px;
    margin: 28px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(254, 215, 170, 0.22);
    text-align: center;
    color: #fdba74;
}

.no-results {
    grid-column: 1 / -1;
    padding: 32px;
    border-radius: 24px;
    text-align: center;
    color: #7c2d12;
    background: #ffedd5;
}

@media (max-width: 1180px) {
    .home-hero {
        grid-template-columns: 1fr;
    }

    .hero-side {
        order: 2;
    }

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

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

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

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

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

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .home-hero,
    .category-strip,
    .section-block,
    .page-hero,
    .detail-shell,
    .player-section,
    .category-grid-page {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-stage {
        min-height: 620px;
        border-radius: 26px;
    }

    .hero-control {
        display: none;
    }

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

    .poster-wrap {
        height: 230px;
    }

    .category-grid-page,
    .article-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .rank-row {
        grid-template-columns: 52px 78px 1fr;
    }

    .rank-row .small-btn {
        grid-column: 3;
        width: max-content;
    }

    .detail-poster {
        max-width: 320px;
        height: 448px;
    }

    .filter-bar {
        flex-direction: column;
    }

    .filter-bar select {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .nav-shell {
        height: 64px;
        padding: 0 14px;
    }

    .brand {
        font-size: 20px;
    }

    .mobile-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-stage {
        min-height: 560px;
    }

    .hero-content {
        left: 22px;
        bottom: 56px;
        width: calc(100% - 44px);
    }

    .hero-content p,
    .page-hero p,
    .detail-one-line {
        font-size: 15px;
    }

    .category-strip,
    .feature-cards {
        grid-template-columns: 1fr;
    }

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

    .poster-wrap {
        height: 360px;
    }

    .page-hero {
        padding: 34px 22px;
        border-radius: 26px;
    }

    .rank-row {
        grid-template-columns: 42px 1fr;
    }

    .rank-poster {
        display: none;
    }

    .rank-info {
        min-width: 0;
    }

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

    .detail-shell {
        padding-top: 28px;
    }

    .detail-poster {
        width: 100%;
        max-width: none;
        height: 520px;
    }
}
