* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #ffffff;
    color: #111827;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.container {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    box-shadow: 0 4px 22px rgba(15, 23, 42, 0.08);
}

.nav-wrap {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    white-space: nowrap;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    box-shadow: 0 12px 28px rgba(244, 63, 94, 0.32);
    font-size: 16px;
}

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

.desktop-nav a,
.mobile-panel a {
    color: #4b5563;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.25s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
    color: #f43f5e;
}

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #f9fafb;
    overflow: hidden;
}

.header-search input,
.mobile-search input {
    width: 190px;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 10px 14px;
    color: #111827;
}

.header-search button,
.mobile-search button,
.btn-primary {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    color: #ffffff;
    font-weight: 700;
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(244, 63, 94, 0.28);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 10px 18px;
    color: #111827;
    font-weight: 700;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
    transition: transform 0.25s ease, color 0.25s ease;
}

.btn-secondary:hover {
    color: #f43f5e;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #fff1f2;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #e11d48;
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    padding: 0 16px 18px;
}

.mobile-panel nav {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}

.gradient-text {
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 0.9s ease, transform 1.2s ease;
}

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

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

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

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    z-index: 2;
    pointer-events: none;
}

.hero-copy {
    max-width: 660px;
    color: #ffffff;
    pointer-events: auto;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero p {
    margin: 0 0 28px;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 20px;
}

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

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

.hero-dots button {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

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

.section {
    padding: 64px 0;
}

.section.soft {
    background: linear-gradient(180deg, #ffffff, #fff1f2);
}

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

.section-head h2,
.page-title h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.18;
    font-weight: 900;
}

.section-head p,
.page-title p {
    margin: 8px 0 0;
    color: #6b7280;
}

.more-link {
    color: #f43f5e;
    font-weight: 800;
    white-space: nowrap;
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: linear-gradient(135deg, #fff1f2, #fdf2f8);
}

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.poster-shade {
    position: absolute;
    inset: auto 0 0;
    height: 46%;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7));
}

.type-badge,
.year-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.type-badge {
    left: 12px;
    top: 12px;
    padding: 6px 10px;
    background: rgba(244, 63, 94, 0.9);
}

.year-badge {
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
    background: rgba(17, 24, 39, 0.66);
}

.rank-badge {
    left: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    box-shadow: 0 10px 20px rgba(244, 63, 94, 0.28);
}

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

.movie-card h2 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 800;
}

.movie-card h2 a:hover {
    color: #f43f5e;
}

.movie-meta {
    margin: 0 0 8px;
    color: #6b7280;
    font-size: 13px;
}

.movie-line {
    margin: 0 0 12px;
    color: #4b5563;
    font-size: 14px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-row span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 9px;
    color: #e11d48;
    font-size: 12px;
    font-weight: 700;
    background: #fff1f2;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 170px;
    border-radius: 24px;
    padding: 22px;
    color: #ffffff;
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    box-shadow: 0 20px 42px rgba(244, 63, 94, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:nth-child(3n + 2) {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

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

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 56px rgba(244, 63, 94, 0.28);
}

.category-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 24px;
    line-height: 1.2;
}

.category-card span {
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
}

.page-hero {
    padding: 72px 0;
    color: #ffffff;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.22), transparent 32%), linear-gradient(135deg, #f43f5e, #ec4899);
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
}

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

.filter-bar {
    position: sticky;
    top: 78px;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 28px;
    padding: 14px;
    border: 1px solid #f3f4f6;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.filter-bar input,
.filter-bar select {
    min-height: 44px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0 12px;
    outline: 0;
    background: #ffffff;
}

.filter-bar input {
    flex: 1 1 260px;
}

.empty-state {
    display: none;
    padding: 64px 20px;
    text-align: center;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 22px;
}

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

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

.detail-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px) saturate(1.05);
    transform: scale(1.04);
}

.detail-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.62), rgba(17, 24, 39, 0.28));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 36px;
    align-items: end;
    padding: 76px 0 56px;
    color: #ffffff;
}

.detail-poster {
    overflow: hidden;
    border: 6px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
}

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

.detail-info h1 {
    margin: 0 0 16px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.03em;
}

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

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

.detail-meta span {
    border-radius: 999px;
    padding: 7px 12px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.player-section {
    padding: 60px 0 30px;
    background: linear-gradient(180deg, #111827, #ffffff 58%);
}

.player-shell {
    overflow: hidden;
    border-radius: 26px;
    background: #000000;
    box-shadow: 0 34px 70px rgba(15, 23, 42, 0.28);
}

.player-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(244, 63, 94, 0.22), rgba(0, 0, 0, 0.58));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
    width: 82px;
    height: 82px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    box-shadow: 0 20px 42px rgba(244, 63, 94, 0.42);
    font-size: 30px;
    padding-left: 4px;
}

.player-cover strong {
    font-size: 20px;
    letter-spacing: 0.08em;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
    padding: 34px 0 70px;
}

.article-panel,
.side-panel {
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.article-panel {
    padding: 30px;
}

.article-panel h2,
.side-panel h2 {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 900;
}

.article-panel p {
    margin: 0 0 20px;
    color: #374151;
    font-size: 17px;
}

.side-panel {
    padding: 18px;
}

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

.info-list div {
    padding: 12px;
    border-radius: 14px;
    background: #f9fafb;
}

.info-list span {
    display: block;
    color: #6b7280;
    font-size: 12px;
}

.info-list strong {
    display: block;
    margin-top: 2px;
    color: #111827;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
    padding-bottom: 72px;
}

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

.mini-card {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: #f9fafb;
    transition: background 0.25s ease, transform 0.25s ease;
}

.mini-card:hover {
    background: #fff1f2;
    transform: translateX(2px);
}

.mini-card img {
    width: 74px;
    height: 92px;
    border-radius: 12px;
    object-fit: cover;
}

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

.mini-card strong {
    margin-bottom: 4px;
    font-size: 15px;
    line-height: 1.35;
}

.mini-card span {
    color: #6b7280;
    font-size: 12px;
}

.mini-rank {
    width: fit-content;
    margin-bottom: 5px;
    border-radius: 999px;
    padding: 2px 8px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    background: #f43f5e;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 56px 112px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.rank-num {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #f43f5e, #ec4899);
}

.rank-row img {
    width: 112px;
    height: 140px;
    border-radius: 14px;
    object-fit: cover;
}

.rank-row h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.rank-row p {
    margin: 0;
    color: #6b7280;
}

.site-footer {
    padding: 54px 0 22px;
    color: #4b5563;
    background: #f9fafb;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 32px;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #111827;
    font-size: 17px;
}

.site-footer p {
    max-width: 520px;
}

.site-footer a:not(.footer-logo) {
    display: block;
    margin-bottom: 8px;
    color: #4b5563;
}

.site-footer a:hover {
    color: #f43f5e;
}

.footer-bottom {
    width: min(1280px, calc(100% - 32px));
    margin: 34px auto 0;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 14px;
}

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

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

    .header-search {
        display: none;
    }

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

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

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

@media (max-width: 860px) {
    .hero {
        height: 560px;
    }

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

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

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

    .detail-hero-inner,
    .content-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: min(260px, 70vw);
    }

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

    .rank-row .btn-primary {
        grid-column: 2 / -1;
        justify-self: start;
    }

    .rank-row img {
        width: 88px;
        height: 110px;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 24px, 1280px);
    }

    .nav-wrap {
        min-height: 64px;
    }

    .logo {
        font-size: 18px;
    }

    .logo-mark {
        width: 34px;
        height: 34px;
        border-radius: 12px;
    }

    .hero {
        height: 520px;
    }

    .section {
        padding: 46px 0;
    }

    .section-head {
        align-items: start;
        flex-direction: column;
    }

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

    .movie-card.compact {
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .movie-card.compact .poster-link {
        aspect-ratio: auto;
        height: 100%;
    }

    .detail-info h1 {
        font-size: 34px;
    }

    .article-panel {
        padding: 22px;
    }

    .filter-bar {
        top: 70px;
    }
}
