:root {
    --rose-950: #4c0519;
    --rose-900: #881337;
    --rose-800: #9f1239;
    --rose-700: #be123c;
    --rose-600: #e11d48;
    --amber-700: #b45309;
    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --amber-300: #fcd34d;
    --surface: #ffffff;
    --ink: #1f2937;
    --muted: #6b7280;
    --soft: #fff7ed;
    --ring: rgba(245, 158, 11, 0.35);
    --shadow: 0 24px 60px rgba(136, 19, 55, 0.18);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--rose-950), var(--rose-800), #78350f);
    box-shadow: 0 12px 35px rgba(76, 5, 25, 0.28);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

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

.brand-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #fb7185, var(--amber-500));
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.35);
    transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
    transform: scale(1.08) rotate(4deg);
}

.brand-text {
    font-size: 22px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: rgba(255, 255, 255, 0.92);
}

.desktop-nav a,
.nav-dropdown > button {
    border: 0;
    background: transparent;
    color: inherit;
    padding: 22px 0;
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.nav-dropdown:hover > button {
    color: var(--amber-300);
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 156px;
    display: grid;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.22s ease;
}

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

.dropdown-menu a {
    color: #374151;
    padding: 10px 12px;
    border-radius: 12px;
}

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

.header-search {
    position: relative;
    display: flex;
    width: min(300px, 28vw);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.header-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 11px 84px 11px 18px;
    color: #374151;
}

.header-search button {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    border: 0;
    border-radius: 999px;
    padding: 0 15px;
    color: white;
    background: linear-gradient(135deg, var(--rose-700), var(--amber-600));
}

.mobile-toggle {
    display: none;
    border: 0;
    color: #ffffff;
    background: transparent;
    font-size: 30px;
    line-height: 1;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

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

.mobile-panel form {
    display: flex;
    gap: 8px;
    margin: 12px 0;
}

.mobile-panel input {
    flex: 1;
    border: 0;
    border-radius: 999px;
    padding: 12px 16px;
    outline: 0;
}

.mobile-panel button {
    border: 0;
    border-radius: 999px;
    padding: 0 16px;
    color: #ffffff;
    background: var(--amber-600);
}

.mobile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mobile-links a {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.08);
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    isolation: isolate;
    background: #14020a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 26%, rgba(245, 158, 11, 0.32), transparent 28%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.14));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 48px;
    color: white;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--amber-300);
    font-weight: 700;
}

.hero-title {
    max-width: 740px;
    margin: 0 0 16px;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.05em;
    font-weight: 900;
}

.hero-movie-title {
    margin: 0 0 18px;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
    font-weight: 800;
}

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

.hero-meta,
.detail-meta,
.card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta span,
.detail-meta span {
    border-radius: 999px;
    padding: 8px 13px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    color: rgba(255, 255, 255, 0.92);
}

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

.btn-primary,
.btn-secondary,
.btn-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    font-weight: 800;
    transition: all 0.25s ease;
}

.btn-primary {
    color: #ffffff;
    padding: 15px 28px;
    background: linear-gradient(135deg, var(--rose-600), var(--amber-600));
    box-shadow: 0 20px 35px rgba(225, 29, 72, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 24px 45px rgba(225, 29, 72, 0.45);
}

.btn-secondary {
    color: #ffffff;
    padding: 14px 24px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-soft {
    color: var(--rose-900);
    padding: 11px 18px;
    background: #fff1f2;
}

.hero-card {
    align-self: center;
    border-radius: 30px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(22px);
    box-shadow: var(--shadow);
}

.hero-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.hero-card p {
    margin: 14px 4px 4px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    line-height: 1.7;
}

.hero-control {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
    transform: translateY(-50%);
    transition: background 0.2s ease;
}

.hero-control:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

.hero-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.46);
    transition: all 0.2s ease;
}

.hero-dot.active {
    width: 34px;
    background: var(--amber-300);
}

.section,
.detail-wrap,
.category-hero,
.search-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.section {
    padding: 58px 0;
}

.section.alt {
    width: 100%;
    padding: 58px max(16px, calc((100% - 1180px) / 2));
    background: linear-gradient(90deg, #ffe4e6, #fef3c7);
}

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

.section-title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.1;
    font-weight: 900;
    color: #1f2937;
}

.section-title::before {
    content: "";
    width: 10px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--rose-600), var(--amber-500));
}

.section-desc {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 14px 34px rgba(136, 19, 55, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 52px rgba(136, 19, 55, 0.2);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #fecdd3, #fde68a);
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.poster-glow {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.72));
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-glow {
    opacity: 1;
}

.poster-badge,
.play-pill {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.poster-badge {
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    color: #ffffff;
    background: rgba(225, 29, 72, 0.9);
    backdrop-filter: blur(12px);
}

.play-pill {
    left: 50%;
    bottom: 14px;
    color: #ffffff;
    padding: 9px 14px;
    background: linear-gradient(135deg, var(--rose-600), var(--amber-600));
    opacity: 0;
    transform: translate(-50%, 10px);
    transition: all 0.25s ease;
}

.movie-card:hover .play-pill {
    opacity: 1;
    transform: translate(-50%, 0);
}

.card-body {
    padding: 18px;
}

.card-body h3 {
    margin: 0 0 9px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 850;
}

.card-body h3 a:hover {
    color: var(--rose-800);
}

.card-body p {
    min-height: 45px;
    margin: 0 0 13px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

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

.card-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 8px;
    background: #f9fafb;
}

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

.category-tile {
    position: relative;
    min-height: 160px;
    overflow: hidden;
    border-radius: 26px;
    padding: 24px;
    color: #ffffff;
    background:
        radial-gradient(circle at 90% 12%, rgba(252, 211, 77, 0.45), transparent 32%),
        linear-gradient(135deg, var(--rose-900), var(--amber-700));
    box-shadow: var(--shadow);
    transition: transform 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
}

.category-tile h3 {
    margin: 0 0 12px;
    font-size: 24px;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 86px 1fr;
    gap: 16px;
    align-items: center;
    border-radius: 22px;
    padding: 13px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 30px rgba(136, 19, 55, 0.11);
}

.rank-no {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: white;
    font-weight: 900;
    background: linear-gradient(135deg, var(--rose-600), var(--amber-600));
}

.rank-item img {
    width: 86px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 14px;
}

.rank-item h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.rank-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.category-hero,
.search-hero {
    padding: 54px 0 20px;
}

.page-panel {
    border-radius: 32px;
    padding: clamp(28px, 5vw, 52px);
    color: #ffffff;
    background:
        radial-gradient(circle at 84% 18%, rgba(252, 211, 77, 0.4), transparent 28%),
        linear-gradient(135deg, var(--rose-950), var(--rose-800) 56%, #92400e);
    box-shadow: var(--shadow);
}

.page-panel h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.08;
}

.page-panel p {
    max-width: 860px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.85;
    font-size: 18px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 26px 0 12px;
}

.filter-button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: var(--rose-900);
    background: #fff1f2;
    transition: all 0.2s ease;
}

.filter-button.active,
.filter-button:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose-600), var(--amber-600));
}

.search-tools {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin: 26px 0;
}

.search-tools input {
    width: 100%;
    border: 0;
    outline: 0;
    border-radius: 999px;
    padding: 15px 20px;
    background: white;
    box-shadow: 0 12px 30px rgba(136, 19, 55, 0.1);
}

.search-tools button {
    border: 0;
    border-radius: 999px;
    padding: 0 24px;
    color: white;
    font-weight: 800;
    background: linear-gradient(135deg, var(--rose-600), var(--amber-600));
}

.empty-state {
    display: none;
    margin: 32px 0;
    border-radius: 24px;
    padding: 32px;
    text-align: center;
    color: var(--muted);
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(136, 19, 55, 0.1);
}

.empty-state.show {
    display: block;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px 0;
    color: var(--muted);
    font-size: 14px;
}

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

.detail-wrap {
    padding-bottom: 62px;
}

.detail-top {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) 360px;
    gap: 30px;
    align-items: start;
}

.player-shell {
    overflow: hidden;
    border-radius: 30px;
    background: #09090b;
    box-shadow: var(--shadow);
}

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

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 50% 50%, rgba(225, 29, 72, 0.22), transparent 36%),
        rgba(0, 0, 0, 0.38);
    transition: opacity 0.25s ease;
}

.play-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-overlay span {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-size: 34px;
    background: linear-gradient(135deg, var(--rose-600), var(--amber-600));
    box-shadow: 0 24px 48px rgba(225, 29, 72, 0.38);
}

.player-caption {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 22px;
    color: rgba(255, 255, 255, 0.84);
    background: linear-gradient(90deg, #111827, #3f0d1e);
}

.detail-side {
    border-radius: 30px;
    padding: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.detail-side img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 22px;
    background: linear-gradient(135deg, #fecdd3, #fde68a);
}

.detail-side .btn-primary {
    width: 100%;
    margin-top: 16px;
}

.detail-title {
    margin: 26px 0 16px;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.08;
    font-weight: 900;
    color: #1f2937;
}

.detail-meta span {
    color: var(--rose-900);
    background: #fff1f2;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0 0;
}

.tag {
    display: inline-flex;
    border-radius: 999px;
    padding: 7px 11px;
    color: var(--amber-700);
    background: #fffbeb;
    font-size: 13px;
    font-weight: 700;
}

.article-block {
    margin: 34px 0;
    border-radius: 28px;
    padding: clamp(24px, 4vw, 36px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 32px rgba(136, 19, 55, 0.1);
}

.article-block h2 {
    margin: 0 0 16px;
    font-size: 28px;
    color: #1f2937;
}

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

.site-footer {
    color: rgba(255, 255, 255, 0.82);
    background: linear-gradient(90deg, var(--rose-950), #451a03);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
}

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

.footer-inner p {
    max-width: 520px;
    margin: 10px 0 0;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    gap: 10px 16px;
}

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

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

    .mobile-toggle {
        display: block;
    }

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

    .hero-card {
        display: none;
    }

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

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

@media (max-width: 760px) {
    .brand-text {
        font-size: 18px;
    }

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

    .hero-control {
        display: none;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .section {
        padding: 42px 0;
    }

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

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

    .rank-item {
        grid-template-columns: 44px 74px 1fr;
    }

    .rank-item img {
        width: 74px;
    }

    .search-tools {
        grid-template-columns: 1fr;
    }

    .search-tools button {
        padding: 13px 18px;
    }

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

    .footer-links {
        justify-content: start;
    }
}
