* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #1f2937;
    background: linear-gradient(180deg, #fff1f2 0%, #fffbeb 38%, #ffffff 100%);
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, #881337 0%, #9f1239 48%, #78350f 100%);
    box-shadow: 0 18px 40px rgba(127, 29, 29, 0.22);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #7f1d1d;
    background: linear-gradient(135deg, #fbbf24, #fb7185);
    box-shadow: 0 12px 30px rgba(251, 191, 36, 0.25);
}

.brand-text {
    white-space: nowrap;
    font-size: 19px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #ffffff;
    font-size: 15px;
}

.desktop-nav a,
.nav-drop > a {
    opacity: 0.92;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.nav-drop > a.active {
    color: #fde68a;
    opacity: 1;
}

.nav-drop {
    position: relative;
    padding: 24px 0;
}

.drop-menu {
    position: absolute;
    top: 60px;
    left: -18px;
    min-width: 150px;
    padding: 10px;
    display: grid;
    gap: 4px;
    border-radius: 16px;
    color: #374151;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 60px rgba(80, 25, 25, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.2s ease;
}

.nav-drop:hover .drop-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.drop-menu a {
    padding: 9px 12px;
    border-radius: 10px;
}

.drop-menu a:hover {
    color: #9f1239;
    background: #fff1f2;
}

.site-search {
    position: relative;
    display: flex;
    align-items: center;
    width: min(300px, 30vw);
}

.site-search input {
    width: 100%;
    height: 40px;
    border: none;
    outline: none;
    border-radius: 999px;
    padding: 0 78px 0 16px;
    color: #111827;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.site-search button {
    position: absolute;
    right: 4px;
    height: 32px;
    border: none;
    border-radius: 999px;
    padding: 0 14px;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(135deg, #be123c, #d97706);
}

.mobile-toggle {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 12px;
    display: none;
    place-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.12);
}

.mobile-toggle span {
    width: 20px;
    height: 2px;
    display: block;
    background: #ffffff;
}

.mobile-panel {
    display: none;
    padding: 0 16px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    background: #881337;
}

.mobile-panel.is-open {
    display: grid;
    gap: 8px;
}

.mobile-panel a {
    color: #ffffff;
    padding: 8px 4px;
}

.mobile-search {
    width: 100%;
    margin-top: 8px;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.75s ease, visibility 0.75s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

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

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

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 20%, rgba(251, 191, 36, 0.24), transparent 28%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.64) 46%, rgba(0, 0, 0, 0.16) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 620px;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 680px;
    padding: 80px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border: 1px solid rgba(253, 230, 138, 0.42);
    border-radius: 999px;
    color: #fde68a;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

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

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

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.hero-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #111827;
    background: rgba(254, 243, 199, 0.94);
}

.hero-actions,
.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #e11d48, #d97706);
    box-shadow: 0 18px 40px rgba(190, 18, 60, 0.3);
}

.btn-light {
    color: #7f1d1d;
    background: rgba(255, 255, 255, 0.9);
}

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

.hero-dot {
    width: 28px;
    height: 5px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.38);
}

.hero-dot.is-active {
    background: #fbbf24;
}

.main-section {
    padding: 72px 0;
}

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

.section-head h2,
.section-head h1 {
    margin: 0 0 8px;
    color: #111827;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.03em;
}

.section-head p {
    margin: 0;
    max-width: 720px;
    color: #6b7280;
    line-height: 1.8;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 50px rgba(127, 29, 29, 0.1);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 70px rgba(127, 29, 29, 0.17);
}

.poster-link {
    position: relative;
    display: block;
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4.2;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 20%, rgba(251, 191, 36, 0.45), transparent 35%),
        linear-gradient(135deg, #9f1239, #78350f);
}

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

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

.poster-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.52) 100%);
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #e11d48, #f59e0b);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.card-body {
    padding: 18px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    color: #9f1239;
    font-size: 12px;
    font-weight: 700;
}

.card-meta span {
    padding: 5px 8px;
    border-radius: 999px;
    background: #fff1f2;
}

.movie-card h3 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: #be123c;
}

.movie-card p {
    margin: 0 0 14px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.tag-row span {
    padding: 5px 8px;
    border-radius: 999px;
    color: #92400e;
    background: #fffbeb;
    font-size: 12px;
}

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

.category-card {
    min-height: 180px;
    padding: 24px;
    border-radius: 24px;
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.34), transparent 30%),
        linear-gradient(135deg, #9f1239, #78350f);
    box-shadow: 0 22px 50px rgba(127, 29, 29, 0.16);
    transition: transform 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
}

.category-card h3 {
    margin: 0 0 12px;
    font-size: 22px;
}

.category-card p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

.category-card span {
    color: #fde68a;
    font-weight: 800;
}

.banner {
    padding: 56px 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 80% 10%, rgba(251, 191, 36, 0.28), transparent 30%),
        linear-gradient(135deg, #7f1d1d, #9f1239 48%, #78350f);
}

.banner h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 56px);
}

.banner p {
    margin: 0;
    max-width: 780px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.75;
}

.filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 0 26px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 46px rgba(127, 29, 29, 0.08);
}

.filter-bar input {
    flex: 1;
    min-width: 240px;
    height: 44px;
    border: 1px solid #fecdd3;
    border-radius: 999px;
    padding: 0 16px;
    outline: none;
}

.filter-bar input:focus {
    border-color: #fb7185;
    box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.16);
}

.detail-hero {
    color: #ffffff;
    background:
        radial-gradient(circle at 76% 18%, rgba(251, 191, 36, 0.28), transparent 32%),
        linear-gradient(135deg, #111827, #7f1d1d 58%, #78350f);
}

.detail-hero-inner {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 34px;
    align-items: center;
    padding: 54px 0;
}

.detail-cover {
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 3 / 4.15;
    background: linear-gradient(135deg, #9f1239, #78350f);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

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

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
}

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

.detail-title h1 {
    margin: 0 0 16px;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.08;
}

.detail-title p {
    max-width: 780px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #111827;
    background: #fef3c7;
    font-weight: 700;
}

.player-section {
    padding: 46px 0 18px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.22);
}

.player-box video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #020617;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.44));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-layer.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-button {
    width: 88px;
    height: 88px;
    border: none;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    font-size: 30px;
    background: linear-gradient(135deg, #e11d48, #f59e0b);
    box-shadow: 0 18px 50px rgba(225, 29, 72, 0.38);
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 30px;
    padding: 40px 0 72px;
}

.article-panel,
.side-panel {
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 22px 55px rgba(127, 29, 29, 0.08);
}

.article-panel {
    padding: 34px;
}

.article-panel h2,
.side-panel h2 {
    margin: 0 0 18px;
    color: #111827;
    font-size: 26px;
}

.article-panel p {
    margin: 0 0 22px;
    color: #4b5563;
    font-size: 17px;
    line-height: 1.9;
}

.side-panel {
    padding: 22px;
    align-self: start;
    position: sticky;
    top: 90px;
}

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

.related-card {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: #fff7ed;
    transition: background 0.2s ease, transform 0.2s ease;
}

.related-card:hover {
    transform: translateX(3px);
    background: #ffe4e6;
}

.related-poster {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    background: linear-gradient(135deg, #9f1239, #78350f);
}

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

.related-info strong {
    display: block;
    margin-bottom: 6px;
    color: #111827;
    line-height: 1.35;
}

.related-info em {
    color: #9f1239;
    font-size: 12px;
    font-style: normal;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 72px 120px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 46px rgba(127, 29, 29, 0.08);
}

.ranking-num {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    background: linear-gradient(135deg, #e11d48, #f59e0b);
}

.ranking-thumb {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    background: linear-gradient(135deg, #9f1239, #78350f);
}

.ranking-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-info h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.ranking-info p {
    margin: 0;
    color: #6b7280;
    line-height: 1.7;
}

.ranking-score {
    color: #be123c;
    font-size: 22px;
    font-weight: 900;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #4c0519 64%, #451a03);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 34px;
    padding: 54px 0;
}

.footer-brand {
    margin-bottom: 16px;
    color: #fde68a;
    font-size: 24px;
    font-weight: 900;
}

.site-footer h3 {
    margin: 0 0 16px;
    color: #fde68a;
}

.site-footer p {
    margin: 0;
    line-height: 1.8;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

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

.footer-pill {
    display: inline-flex;
    margin-top: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #fecdd3;
    background: rgba(255, 255, 255, 0.08);
}

.copyright {
    padding: 18px 0;
    text-align: center;
    color: #9ca3af;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.is-hidden-card {
    display: none !important;
}

.empty-result {
    display: none;
    padding: 60px 20px;
    text-align: center;
    color: #6b7280;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
}

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

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

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

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

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

    .side-panel {
        position: static;
    }

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

@media (max-width: 820px) {
    .desktop-nav,
    .nav-wrap > .site-search {
        display: none;
    }

    .mobile-toggle {
        display: grid;
    }

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

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

    .section-head {
        display: block;
    }

    .ranking-item {
        grid-template-columns: 48px 86px 1fr;
    }

    .ranking-score {
        grid-column: 3;
        font-size: 18px;
    }
}

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

    .hero-copy {
        padding: 56px 0;
    }

    .hero p,
    .banner p,
    .detail-title p {
        font-size: 16px;
    }

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

    .main-section {
        padding: 48px 0;
    }

    .article-panel {
        padding: 24px;
    }

    .ranking-item {
        grid-template-columns: 42px 74px 1fr;
        gap: 12px;
        padding: 12px;
    }

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