
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: #fafafa;
    color: #262626;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #f58b1f, #e6751a);
    box-shadow: 0 12px 28px rgba(245, 139, 31, 0.35);
    font-size: 14px;
}

.brand-name {
    color: #262626;
    font-size: 20px;
}

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

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

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

.nav-search,
.mobile-search {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid #d4d4d4;
    border-radius: 999px;
    background: #ffffff;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.nav-search:focus-within,
.mobile-search:focus-within,
.listing-tools input:focus,
.listing-tools select:focus {
    border-color: #f58b1f;
    box-shadow: 0 0 0 4px rgba(245, 139, 31, 0.16);
    outline: none;
}

.nav-search input,
.mobile-search input {
    width: 220px;
    border: 0;
    padding: 10px 14px;
    outline: none;
}

.nav-search button,
.mobile-search button {
    border: 0;
    padding: 10px 16px;
    color: #ffffff;
    background: #f58b1f;
    cursor: pointer;
}

.menu-button {
    display: none;
    border: 0;
    color: #404040;
    background: transparent;
    font-size: 26px;
    cursor: pointer;
}

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

.mobile-link {
    display: block;
    padding: 12px 0;
    color: #404040;
    font-weight: 650;
}

.mobile-search {
    margin-top: 12px;
}

.mobile-search input {
    flex: 1;
    width: auto;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.is-active {
    opacity: 1;
    z-index: 1;
}

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(245, 139, 31, 0.36), transparent 35%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.55) 48%, rgba(0, 0, 0, 0.18)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.76), transparent 48%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1180px;
    height: 100%;
    margin: 0 auto;
    padding: 72px 24px 96px;
    color: #ffffff;
}

.hero-labels,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-labels span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(245, 139, 31, 0.92);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.hero-content h1 {
    max-width: 760px;
    margin: 22px 0 14px;
    font-size: clamp(38px, 7vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

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

.hero-actions,
.page-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.primary-button,
.ghost-button,
.panel-link,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    padding: 0 20px;
    font-weight: 750;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, #f58b1f, #e6751a);
    box-shadow: 0 16px 34px rgba(245, 139, 31, 0.35);
}

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

.ghost-button.dark {
    color: #262626;
    border-color: #e5e7eb;
    background: #ffffff;
}

.primary-button:hover,
.ghost-button:hover,
.panel-link:hover,
.section-more:hover {
    transform: translateY(-2px);
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
    width: 34px;
    background: #ffffff;
}

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

.section-head {
    position: relative;
    margin-bottom: 24px;
}

.section-head span,
.page-hero span,
.rank-panel-head span {
    display: inline-block;
    margin-bottom: 8px;
    color: #e6751a;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.section-head h2,
.page-hero h1,
.rank-panel-head h2 {
    margin: 0;
    color: #262626;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.16;
}

.section-head p,
.page-hero p {
    max-width: 760px;
    margin: 10px 0 0;
    color: #666666;
}

.section-more {
    position: absolute;
    right: 0;
    top: 6px;
    min-height: 38px;
    color: #e6751a;
    background: #fff3e6;
}

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

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

.movie-card {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.14);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #fde2bd, #fff7ed);
}

.poster-wrap img,
.category-tile img,
.category-card-images img,
.mini-card img,
.rank-card img,
.detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover .poster-wrap img,
.category-tile:hover img,
.mini-card:hover img,
.rank-card:hover img {
    transform: scale(1.06);
}

.duration-pill {
    position: absolute;
    top: 10px;
    right: 10px;
    border-radius: 8px;
    padding: 4px 8px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.72);
    font-size: 12px;
    font-weight: 750;
}

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

.movie-card-body strong {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    color: #262626;
    font-size: 16px;
    line-height: 1.45;
    transition: color 0.2s ease;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card:hover strong {
    color: #e6751a;
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    color: #737373;
    font-size: 12px;
}

.movie-meta span {
    border-radius: 999px;
    padding: 4px 9px;
    background: #f5f5f5;
}

.category-band {
    max-width: 1180px;
}

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

.category-tile {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border-radius: 24px;
    background: #111827;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.12));
}

.category-tile span {
    position: absolute;
    inset: auto 16px 16px;
    z-index: 1;
    color: #ffffff;
}

.category-tile strong,
.category-card-body strong {
    display: block;
    font-size: 20px;
}

.category-tile em,
.category-card-body em {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    font-style: normal;
}

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

.rank-panel {
    position: sticky;
    top: 90px;
    border-radius: 28px;
    padding: 24px;
    background: linear-gradient(180deg, #ffffff, #fff7ed);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
}

.rank-panel-head h2 {
    font-size: 26px;
}

.mini-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.mini-card {
    position: relative;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) 32px;
    gap: 12px;
    align-items: center;
    overflow: hidden;
    border-radius: 14px;
    padding: 8px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.mini-card img {
    width: 92px;
    height: 62px;
    border-radius: 10px;
}

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

.mini-info strong {
    overflow: hidden;
    color: #262626;
    font-size: 14px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mini-info span {
    margin-top: 4px;
    color: #737373;
    font-size: 12px;
}

.mini-rank {
    color: #f58b1f;
    font-weight: 900;
}

.panel-link {
    width: 100%;
    margin-top: 18px;
    color: #ffffff;
    background: #262626;
}

.page-hero {
    display: flex;
    align-items: center;
    min-height: 320px;
    padding: 78px 24px;
    color: #262626;
    background:
        radial-gradient(circle at 18% 22%, rgba(245, 139, 31, 0.22), transparent 34%),
        linear-gradient(135deg, #fff7ed 0%, #ffffff 48%, #f5f5f5 100%);
}

.page-hero > div {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.compact-hero {
    min-height: 260px;
}

.hot-hero {
    background:
        radial-gradient(circle at 82% 22%, rgba(245, 139, 31, 0.24), transparent 32%),
        linear-gradient(135deg, #171717, #3b250d 58%, #f58b1f 160%);
}

.hot-hero h1,
.hot-hero p {
    color: #ffffff;
}

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

.category-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 44px rgba(15, 23, 42, 0.13);
}

.category-card-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 190px;
    background: #f5f5f5;
}

.category-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
}

.category-card-body em {
    color: #666666;
}

.listing-tools {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 170px 170px;
    gap: 14px;
    margin-bottom: 24px;
}

.wide-tools {
    grid-template-columns: minmax(260px, 1fr) 190px 190px;
}

.listing-tools input,
.listing-tools select {
    width: 100%;
    border: 1px solid #d4d4d4;
    border-radius: 16px;
    padding: 12px 14px;
    background: #ffffff;
    color: #262626;
    outline: none;
}

.empty-state {
    display: none;
    border-radius: 18px;
    padding: 22px;
    text-align: center;
    color: #737373;
    background: #ffffff;
}

.empty-state.is-visible {
    display: block;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 58px 138px minmax(0, 1fr) 70px;
    gap: 16px;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 20px;
    padding: 12px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.rank-number {
    color: #f58b1f;
    font-size: 24px;
    font-weight: 950;
    text-align: center;
}

.rank-card img {
    width: 138px;
    height: 88px;
    border-radius: 14px;
}

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

.rank-body strong {
    color: #262626;
    font-size: 17px;
}

.rank-body em {
    display: -webkit-box;
    margin: 5px 0;
    overflow: hidden;
    color: #666666;
    font-size: 13px;
    font-style: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-body span {
    color: #737373;
    font-size: 12px;
}

.rank-score {
    border-radius: 999px;
    padding: 8px 0;
    color: #ffffff;
    background: #262626;
    font-weight: 850;
    text-align: center;
}

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

.detail-backdrop {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    filter: blur(22px) scale(1.08);
    opacity: 0.5;
}

.detail-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 18%, rgba(245, 139, 31, 0.24), transparent 30%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.65) 55%, rgba(0, 0, 0, 0.42));
}

.detail-inner {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    padding: 42px 24px 66px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 26px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.breadcrumbs a:hover {
    color: #f9b651;
}

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

.detail-cover {
    aspect-ratio: 3 / 4.15;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.detail-info h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

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

.detail-meta span {
    border-radius: 999px;
    padding: 7px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.detail-info p {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
}

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

.player-section {
    padding-top: 42px;
}

.compact-head p {
    max-width: 920px;
}

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 8px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.62));
    cursor: pointer;
}

.player-overlay span {
    display: inline-grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f58b1f, #e6751a);
    box-shadow: 0 18px 42px rgba(245, 139, 31, 0.36);
    font-size: 30px;
}

.player-overlay strong {
    font-size: 18px;
}

.player-box.is-playing .player-overlay {
    display: none;
}

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

.detail-article {
    border-radius: 28px;
    padding: 34px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.detail-article h2 {
    margin: 0 0 12px;
    color: #262626;
    font-size: 26px;
}

.detail-article h2:not(:first-child) {
    margin-top: 30px;
}

.detail-article p {
    margin: 0;
    color: #525252;
    font-size: 16px;
}

.site-footer {
    margin-top: 28px;
    color: #d4d4d4;
    background: #262626;
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) 1fr 1fr;
    gap: 40px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 46px 24px;
}

.footer-logo {
    color: #ffffff;
    font-size: 20px;
}

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

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

.footer-column a {
    display: block;
    margin: 8px 0;
    color: #d4d4d4;
    font-size: 14px;
}

.footer-column a:hover {
    color: #f9b651;
}

@media (max-width: 1080px) {
    .movie-grid,
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

    .rank-panel {
        position: static;
    }
}

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

    .menu-button {
        display: block;
    }

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

    .hero-carousel {
        height: 560px;
    }

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

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

    .listing-tools,
    .wide-tools {
        grid-template-columns: 1fr;
    }

    .rank-card {
        grid-template-columns: 44px 92px minmax(0, 1fr);
    }

    .rank-card img {
        width: 92px;
        height: 66px;
    }

    .rank-score {
        grid-column: 3;
        width: 68px;
    }

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

    .detail-cover {
        width: min(320px, 100%);
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

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

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

    .hero-carousel {
        height: 540px;
    }

    .hero-content {
        padding: 54px 18px 88px;
    }

    .hero-actions,
    .page-actions,
    .detail-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .content-section {
        padding: 40px 16px;
    }

    .section-more {
        position: static;
        margin-top: 14px;
    }

    .movie-grid,
    .featured-grid,
    .category-grid,
    .category-card-grid {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding: 58px 18px;
    }

    .rank-card {
        grid-template-columns: 38px 86px minmax(0, 1fr);
        gap: 10px;
    }

    .rank-number {
        font-size: 18px;
    }

    .detail-inner {
        padding: 30px 18px 48px;
    }

    .detail-info p {
        font-size: 16px;
    }

    .detail-article {
        padding: 24px;
    }
}
