* {
    box-sizing: border-box;
}

:root {
    --rose-950: #3b0710;
    --rose-900: #58111e;
    --rose-800: #7f1d2d;
    --rose-700: #a02135;
    --amber-500: #f59e0b;
    --amber-300: #fcd34d;
    --ink: #2a1115;
    --muted: #7a4b4f;
    --paper: #fff8ee;
    --white: #ffffff;
    --line: rgba(127, 29, 45, 0.12);
    --shadow: 0 24px 60px rgba(88, 17, 30, 0.18);
    --soft-shadow: 0 16px 36px rgba(88, 17, 30, 0.13);
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 30rem),
        linear-gradient(180deg, #fff7ed 0%, #fff1f2 44%, #ffffff 100%);
    min-height: 100vh;
}

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

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(59, 7, 16, 0.98), rgba(127, 29, 45, 0.98), rgba(146, 64, 14, 0.98));
    box-shadow: 0 14px 28px rgba(59, 7, 16, 0.25);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    max-width: 1240px;
    height: 68px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fb7185, #f59e0b);
    box-shadow: 0 12px 26px rgba(245, 158, 11, 0.35);
    color: #ffffff;
}

.logo-text {
    font-size: 18px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
}

.main-nav > a,
.nav-dropdown > a {
    padding: 22px 0;
    transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: var(--amber-300);
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: 64px;
    left: -18px;
    width: 160px;
    padding: 10px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.dropdown-panel a {
    display: block;
    padding: 9px 12px;
    border-radius: 10px;
    color: var(--ink);
}

.dropdown-panel a:hover {
    background: #fff1f2;
    color: var(--rose-800);
}

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

.nav-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.nav-search input,
.page-filter input,
.quick-search input,
.search-box-large input {
    border: 0;
    outline: 0;
    border-radius: 999px;
    padding: 11px 16px;
    background: #ffffff;
    color: var(--ink);
    min-width: 210px;
}

.nav-search button,
.quick-search button,
.search-box-large button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #e11d48, #f59e0b);
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(225, 29, 72, 0.25);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    cursor: pointer;
}

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

.hero {
    position: relative;
    height: 640px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--rose-950), #8a3b11);
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.55s ease, visibility 0.55s ease;
}

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

.hero-slide img {
    filter: saturate(1.08) contrast(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(20, 5, 10, 0.88), rgba(67, 12, 24, 0.64), rgba(20, 5, 10, 0.2)),
        linear-gradient(0deg, rgba(20, 5, 10, 0.55), transparent 45%);
}

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

.hero-content h1,
.hero-content h2 {
    max-width: 780px;
    margin: 0 0 10px;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-content h3 {
    margin: 0 0 16px;
    font-size: clamp(24px, 3vw, 42px);
    color: #fde68a;
}

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

.hero-kicker,
.eyebrow {
    margin: 0 0 10px;
    color: var(--amber-300);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 13px;
    font-weight: 800;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.15);
    color: #9f5f00;
    font-size: 13px;
}

.hero-tags span {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

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

.primary-btn,
.ghost-btn,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    min-height: 46px;
    padding: 0 22px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, #e11d48, #f59e0b);
    box-shadow: 0 16px 32px rgba(225, 29, 72, 0.28);
}

.ghost-btn,
.section-more {
    color: var(--rose-800);
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.hero .ghost-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover,
.category-tile:hover,
.movie-card:hover,
.rank-card:hover {
    transform: translateY(-3px);
}

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

.hero-dot {
    width: 36px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
}

.hero-dot.is-active {
    background: var(--amber-300);
}

.quick-panel,
.content-section,
.page-main,
.detail-main {
    max-width: 1240px;
    margin: 0 auto;
    padding: 42px 20px;
}

.quick-panel {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 24px;
    margin-top: -56px;
    position: relative;
    z-index: 4;
}

.quick-search,
.quick-links,
.page-hero,
.detail-hero,
.watch-section,
.detail-content,
.index-group {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.quick-search {
    padding: 30px;
}

.quick-search h2,
.section-head h2,
.page-hero h1,
.detail-info h1,
.detail-content h2,
.index-group h2 {
    margin: 0 0 12px;
    color: var(--rose-950);
    letter-spacing: -0.04em;
}

.quick-search p,
.section-head p,
.page-hero p,
.detail-content p,
.card-line,
.rank-card p,
.footer-grid p,
.index-group a span {
    color: var(--muted);
    line-height: 1.75;
}

.quick-search form {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.quick-search input {
    flex: 1;
    border: 1px solid var(--line);
}

.quick-links {
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.quick-links a {
    min-height: 78px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--rose-800), #b45309);
    box-shadow: var(--soft-shadow);
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--soft-shadow);
    border: 1px solid var(--line);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--rose-800), #f59e0b);
}

.movie-card.compact .poster-link {
    aspect-ratio: 16 / 11;
}

.poster-shade,
.tile-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(40, 8, 14, 0.72), transparent 55%);
}

.poster-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 2;
    border-radius: 999px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--rose-900);
    font-size: 12px;
    font-weight: 800;
}

.card-body {
    padding: 16px;
}

.card-title {
    display: block;
    margin-bottom: 8px;
    color: var(--rose-950);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
}

.card-title:hover,
.rank-title:hover,
.index-group a:hover {
    color: var(--rose-700);
}

.card-line {
    margin: 0 0 12px;
    min-height: 50px;
    font-size: 14px;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
    color: #8f4c26;
    font-size: 13px;
}

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

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

.category-tile {
    position: relative;
    min-height: 180px;
    overflow: hidden;
    border-radius: 24px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose-800), #b45309);
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease;
}

.category-tile img {
    position: absolute;
    inset: 0;
}

.category-tile strong,
.category-tile em {
    position: relative;
    z-index: 2;
}

.category-tile strong {
    font-size: 22px;
}

.category-tile em {
    margin-top: 8px;
    font-style: normal;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.6;
}

.page-main {
    padding-top: 34px;
}

.page-hero {
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.24), transparent 18rem),
        rgba(255, 255, 255, 0.92);
}

.small-hero h1 {
    font-size: clamp(32px, 5vw, 58px);
}

.page-filter {
    display: flex;
    gap: 10px;
}

.page-filter input {
    border: 1px solid var(--line);
}

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

.rank-card {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 18px;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease;
}

.rank-poster {
    position: relative;
    overflow: hidden;
    min-height: 132px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--rose-800), #f59e0b);
}

.rank-number {
    position: absolute;
    z-index: 2;
    left: 8px;
    top: 8px;
    width: 38px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #e11d48, #f59e0b);
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.rank-title {
    display: inline-block;
    margin: 6px 0 8px;
    color: var(--rose-950);
    font-size: 20px;
    font-weight: 900;
}

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

.breadcrumb {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--muted);
}

.breadcrumb a:hover {
    color: var(--rose-700);
}

.detail-hero {
    padding: 24px;
    display: grid;
    grid-template-columns: minmax(260px, 380px) 1fr;
    gap: 34px;
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 26px;
    background: linear-gradient(135deg, var(--rose-800), #f59e0b);
    box-shadow: var(--soft-shadow);
}

.detail-info {
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-info h1 {
    font-size: clamp(34px, 5vw, 64px);
}

.lead-text {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

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

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff1f2;
    color: var(--rose-800);
    font-weight: 700;
}

.large-tags {
    margin-bottom: 24px;
}

.watch-section {
    margin-top: 28px;
    padding: 18px;
    background: #160509;
}

.watch-frame {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #000000;
    aspect-ratio: 16 / 9;
}

.watch-frame video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.play-layer {
    position: absolute;
    inset: 0;
    border: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #ffffff;
    cursor: pointer;
    background: radial-gradient(circle, rgba(127, 29, 45, 0.24), rgba(0, 0, 0, 0.58));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-layer span {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e11d48, #f59e0b);
    box-shadow: 0 18px 38px rgba(225, 29, 72, 0.36);
    font-size: 34px;
    padding-left: 4px;
}

.play-layer strong {
    font-size: 20px;
}

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

.detail-content {
    margin-top: 28px;
    padding: 34px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.detail-content article {
    min-width: 0;
}

.related-section {
    padding-left: 0;
    padding-right: 0;
}

.search-results-section .movie-grid:empty::after {
    content: "未找到匹配影片";
    display: block;
    padding: 26px;
    border-radius: 22px;
    background: #ffffff;
    color: var(--muted);
    box-shadow: var(--soft-shadow);
}

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

.index-group {
    padding: 24px;
}

.index-group h2 a {
    color: var(--rose-950);
}

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

.index-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 8px 0;
    border-bottom: 1px solid rgba(127, 29, 45, 0.08);
    color: var(--ink);
}

.index-links a span {
    flex: none;
    font-size: 12px;
}

.site-footer {
    margin-top: 36px;
    padding: 38px 20px;
    color: rgba(255, 255, 255, 0.82);
    background: linear-gradient(90deg, var(--rose-950), var(--rose-800), #78350f);
}

.footer-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.footer-grid p {
    max-width: 620px;
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.72);
}

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

.footer-links a:hover {
    color: var(--amber-300);
}

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

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

    .nav-search {
        display: none;
    }

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

@media (max-width: 820px) {
    .nav-wrap {
        height: auto;
        min-height: 66px;
        flex-wrap: wrap;
    }

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

    .main-nav {
        order: 5;
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0 0 14px;
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav > a,
    .nav-dropdown > a {
        padding: 10px 0;
    }

    .nav-dropdown {
        width: 100%;
    }

    .dropdown-panel {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 4px;
        box-shadow: none;
    }

    .hero {
        height: 560px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .quick-panel,
    .page-hero,
    .detail-hero,
    .detail-content,
    .footer-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .page-hero {
        display: grid;
        padding: 28px;
    }

    .rank-list,
    .index-layout {
        grid-template-columns: 1fr;
    }

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

    .detail-poster {
        max-width: 360px;
    }
}

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

    .quick-panel,
    .content-section,
    .page-main,
    .detail-main {
        padding-left: 14px;
        padding-right: 14px;
    }

    .quick-search form,
    .search-box-large,
    .page-filter {
        flex-direction: column;
    }

    .quick-search input,
    .search-box-large input,
    .page-filter input {
        min-width: 0;
        width: 100%;
    }

    .quick-links,
    .movie-grid,
    .category-grid,
    .index-links,
    .detail-content {
        grid-template-columns: 1fr;
    }

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

    .rank-card {
        grid-template-columns: 96px 1fr;
    }

    .rank-poster {
        min-height: 116px;
    }
}
