* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

.header-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

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

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    color: #4b5563;
    font-size: 15px;
}

.nav-links a:hover,
.mobile-menu a:hover,
.section-link:hover,
.text-link:hover {
    color: #f43f5e;
}

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

.header-search input {
    width: 180px;
    border: 0;
    outline: 0;
    padding: 9px 12px 9px 16px;
    background: transparent;
}

.header-search button,
.search-box-large button {
    border: 0;
    color: #ffffff;
    background: #f43f5e;
    padding: 9px 16px;
    cursor: pointer;
}

.mobile-toggle {
    display: none;
    border: 0;
    background: transparent;
    font-size: 26px;
    color: #374151;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    padding: 12px 24px 20px;
    border-top: 1px solid #f3f4f6;
    background: #ffffff;
}

.mobile-menu a {
    display: block;
    padding: 10px 0;
    color: #4b5563;
}

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

.hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #f43f5e 0%, #ec4899 52%, #fb923c 100%);
}

.hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(70px);
    opacity: 0.28;
    pointer-events: none;
}

.hero-glow-one {
    top: 56px;
    left: 7%;
    width: 260px;
    height: 260px;
    background: #ffffff;
}

.hero-glow-two {
    right: 8%;
    bottom: 30px;
    width: 360px;
    height: 360px;
    background: #fde047;
}

.hero-content {
    position: relative;
    min-height: 520px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
    align-items: center;
    gap: 56px;
    padding: 82px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.hero h1,
.page-hero h1 {
    margin: 0;
    font-size: clamp(42px, 6vw, 64px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero h1 span {
    color: #fef3c7;
}

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

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

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

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

.btn-light {
    background: #ffffff;
    color: #f43f5e;
    box-shadow: 0 16px 30px rgba(136, 19, 55, 0.18);
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.hero-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 32px 70px rgba(124, 45, 18, 0.28);
    transform: translateZ(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-card:hover {
    transform: scale(1.025);
    box-shadow: 0 38px 90px rgba(124, 45, 18, 0.34);
}

.hero-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.hero-card-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 28px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0));
}

.hero-card-overlay span,
.card-badge,
.detail-label {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #f43f5e;
    color: #ffffff;
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 800;
}

.hero-card-overlay h2 {
    margin: 10px 0 0;
    color: #ffffff;
    font-size: 28px;
    line-height: 1.2;
}

.hero-card-overlay p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 15px;
}

.content-section {
    padding: 64px 0;
}

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

.section-title > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title h2 {
    margin: 0;
    color: #1f2937;
    font-size: 32px;
    line-height: 1.2;
}

.section-icon {
    font-size: 30px;
}

.section-link,
.text-link {
    color: #f43f5e;
    font-weight: 800;
}

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

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

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

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

.poster-link img,
.movie-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.movie-card:hover img {
    transform: scale(1.08);
}

.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    margin: 0;
    color: #1f2937;
    font-size: 18px;
    line-height: 1.35;
}

.card-body h3 a:hover,
.rank-info h3 a:hover {
    color: #f43f5e;
}

.card-body p,
.rank-info p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 44px;
    margin: 8px 0 0;
    color: #6b7280;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

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

.category-band {
    padding: 64px 0;
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

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

.category-card,
.category-overview-card,
.side-card,
.detail-card,
.filter-panel,
.search-box-large {
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    padding: 24px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card h3,
.category-overview-card h2 {
    margin: 8px 0 6px;
    font-size: 22px;
}

.category-card p,
.category-overview-card p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.category-emoji {
    font-size: 30px;
}

.category-card img {
    position: absolute;
    right: -14px;
    bottom: -24px;
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 18px;
    opacity: 0.82;
    transform: rotate(-6deg);
}

.page-hero {
    color: #ffffff;
    padding: 72px 0;
}

.page-hero.rose {
    background: linear-gradient(135deg, #f43f5e, #ec4899, #fb7185);
}

.page-hero.blue {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
}

.page-hero.gold {
    background: linear-gradient(135deg, #f97316, #f59e0b);
}

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

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

.category-overview-grid {
    display: grid;
    gap: 24px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 24px;
    align-items: center;
    padding: 28px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.mini-poster-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.mini-poster-grid a {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.mini-poster-grid img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.mini-poster-grid span {
    position: absolute;
    inset: auto 0 0 0;
    padding: 16px 8px 8px;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
    font-size: 12px;
}

.filter-panel {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
    padding: 16px;
}

.filter-panel input,
.filter-panel select,
.search-box-large input {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    outline: 0;
    padding: 12px 16px;
    background: #ffffff;
}

.filter-panel select {
    max-width: 180px;
}

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

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

.rank-card {
    display: grid;
    grid-template-columns: 58px 132px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

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

.rank-thumb {
    overflow: hidden;
    border-radius: 14px;
}

.rank-thumb img {
    width: 132px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.rank-info h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
}

.search-box-large {
    display: flex;
    gap: 10px;
    padding: 16px;
    margin-bottom: 24px;
}

.search-box-large button {
    min-width: 110px;
    border-radius: 999px;
}

.search-results:empty {
    display: none;
}

.search-page.has-results .search-default {
    display: none;
}

.detail-hero {
    padding: 40px 0 70px;
    background: linear-gradient(180deg, #111827 0%, #1f2937 340px, #f9fafb 340px, #f9fafb 100%);
}

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

.detail-main,
.detail-side {
    display: grid;
    gap: 20px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #000000;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.22));
    cursor: pointer;
    transition: opacity 0.22s ease;
}

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

.play-circle {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #f43f5e;
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
    font-size: 30px;
}

.detail-title-block,
.detail-card,
.side-card {
    padding: 24px;
}

.detail-title-block {
    border-radius: 22px;
    color: #ffffff;
    background: linear-gradient(135deg, #f43f5e, #ec4899);
}

.detail-title-block h1 {
    margin: 12px 0 10px;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.15;
}

.detail-title-block p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

.detail-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-meta-row span,
.tag-list span {
    display: inline-flex;
    border-radius: 999px;
    padding: 8px 12px;
    background: #ffffff;
    color: #4b5563;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    font-size: 14px;
}

.detail-card h2,
.side-card h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.detail-card p {
    margin: 0;
    color: #4b5563;
    font-size: 17px;
}

.detail-poster {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.side-card dl {
    display: grid;
    gap: 10px;
    margin: 0;
}

.side-card dl div {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 12px;
}

.side-card dt {
    color: #9ca3af;
}

.side-card dd {
    margin: 0;
    color: #374151;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

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

.recommend-item {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.recommend-item img {
    width: 74px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 10px;
}

.recommend-item strong {
    display: block;
    color: #1f2937;
    line-height: 1.3;
}

.recommend-item span {
    display: block;
    color: #6b7280;
    font-size: 13px;
    margin-top: 3px;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937, #111827);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    padding: 52px 0;
}

.footer-logo {
    color: #ffffff;
    margin-bottom: 14px;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

.site-footer p {
    margin: 0;
    color: #d1d5db;
}

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

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

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

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

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

    .mobile-toggle {
        display: inline-flex;
        margin-left: auto;
    }

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

    .hero-content {
        gap: 34px;
        padding: 64px 0;
    }

    .rank-list.compact {
        grid-template-columns: 1fr;
    }
}

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

    .hero-content {
        min-height: auto;
        padding: 54px 0;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 40px;
    }

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

    .hero-actions,
    .filter-panel,
    .search-box-large {
        flex-direction: column;
    }

    .filter-panel select {
        max-width: none;
    }

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

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

    .rank-number {
        width: 38px;
        height: 38px;
    }

    .rank-thumb img {
        width: 96px;
    }

    .mini-poster-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-hero {
        background: linear-gradient(180deg, #111827 0%, #1f2937 260px, #f9fafb 260px, #f9fafb 100%);
    }

    .detail-title-block,
    .detail-card,
    .side-card {
        padding: 18px;
    }
}
