* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
}

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

.brand-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 999px;
    background: #f43f5e;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(244, 63, 94, 0.25);
}

.brand-text {
    font-size: 24px;
    letter-spacing: 0.02em;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: #374151;
    font-size: 15px;
    font-weight: 600;
}

.desktop-nav a,
.mobile-nav a,
.site-footer a {
    transition: color 0.2s ease;
}

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

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
}

.menu-button span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #374151;
}

.mobile-nav {
    display: none;
    border-top: 1px solid #e5e7eb;
}

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

.mobile-nav-inner {
    display: grid;
    gap: 14px;
    padding: 18px 0 22px;
    color: #374151;
    font-weight: 600;
}

.hero {
    position: relative;
    height: 600px;
    min-height: 520px;
    overflow: hidden;
    background: radial-gradient(circle at 20% 20%, rgba(244, 63, 94, 0.55), transparent 32%), linear-gradient(120deg, #0f172a, #111827 55%, #4c0519);
}

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

.hero-slide {
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1s ease, transform 1s ease;
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.05));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    height: 100%;
    align-items: center;
}

.hero-copy {
    width: min(680px, 100%);
    color: #ffffff;
}

.hero-kicker,
.movie-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.hero-kicker span,
.movie-meta-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 700;
}

.movie-meta-row span {
    background: #f3f4f6;
    color: #4b5563;
}

.movie-meta-row.light span {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.hero-copy h1 {
    margin: 18px 0 18px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.03;
    letter-spacing: -0.05em;
}

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

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

.tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags .tag,
.detail-tags .tag {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

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

.btn-primary,
.btn-secondary,
.btn-white,
.btn-glass,
.section-action,
.rank-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 11px 22px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-primary {
    background: #f43f5e;
    color: #ffffff;
    box-shadow: 0 14px 26px rgba(244, 63, 94, 0.25);
}

.btn-secondary {
    border: 2px solid #e5e7eb;
    background: #ffffff;
    color: #111827;
}

.btn-white {
    background: #ffffff;
    color: #111827;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.16);
}

.btn-glass {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-white:hover,
.btn-glass:hover,
.section-action:hover,
.rank-action:hover {
    transform: translateY(-2px) scale(1.02);
}

.btn-white:hover,
.section-action:hover,
.rank-action:hover {
    background: #f43f5e;
    color: #ffffff;
}

.hero-control {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 14px;
    transform: translateX(-50%);
}

.hero-control button {
    border: 0;
}

.hero-control > button {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 26px;
    backdrop-filter: blur(8px);
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
}

.hero-dot.is-active {
    width: 28px;
    background: #ffffff;
}

.category-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    padding: 48px 0 26px;
}

.category-card,
.category-overview-card,
.card,
.movie-card,
.player-card,
.detail-block,
.filter-panel,
.rank-item {
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card {
    display: flex;
    min-height: 160px;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    color: #ffffff;
}

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

.category-icon {
    font-size: 34px;
    line-height: 1;
}

.category-card strong {
    margin-top: 16px;
    font-size: 21px;
}

.category-card em {
    display: -webkit-box;
    margin-top: 8px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.84);
    font-size: 13px;
    font-style: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.color-red { background: linear-gradient(135deg, #fb7185, #e11d48); }
.color-purple { background: linear-gradient(135deg, #c084fc, #db2777); }
.color-blue { background: linear-gradient(135deg, #60a5fa, #06b6d4); }
.color-green { background: linear-gradient(135deg, #34d399, #059669); }
.color-orange { background: linear-gradient(135deg, #fb923c, #f59e0b); }
.color-teal { background: linear-gradient(135deg, #2dd4bf, #10b981); }
.color-pink { background: linear-gradient(135deg, #f9a8d4, #ec4899); }
.color-slate { background: linear-gradient(135deg, #94a3b8, #475569); }
.color-amber { background: linear-gradient(135deg, #facc15, #f97316); }
.color-rose { background: linear-gradient(135deg, #fb7185, #f43f5e); }
.color-indigo { background: linear-gradient(135deg, #818cf8, #4f46e5); }
.color-cyan { background: linear-gradient(135deg, #22d3ee, #2563eb); }
.color-dark { background: linear-gradient(135deg, #475569, #111827); }

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

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    background: linear-gradient(90deg, #f43f5e, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-heading p {
    margin: 8px 0 0;
    color: #6b7280;
}

.section-action,
.rank-action {
    background: #fff1f2;
    color: #e11d48;
}

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

.movie-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.movie-card.is-hidden {
    display: none;
}

.movie-poster {
    position: relative;
    display: block;
    height: 320px;
    overflow: hidden;
    background: linear-gradient(135deg, #1f2937, #be123c);
}

.movie-poster img,
.detail-poster img,
.rank-cover img,
.category-collage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.2s ease;
}

.movie-card:hover .movie-poster img,
.rank-item:hover .rank-cover img {
    transform: scale(1.08);
}

.poster-region,
.poster-year {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 800;
}

.poster-region {
    top: 12px;
    left: 12px;
    background: #f43f5e;
    color: #ffffff;
}

.poster-year {
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.62);
    color: #ffffff;
}

.play-hover {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #f43f5e;
    font-size: 24px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px;
}

.movie-card-body h3 {
    margin: 10px 0 8px;
    overflow: hidden;
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

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

.movie-genre {
    margin-top: auto;
    color: #9ca3af;
    font-size: 12px;
}

.page-hero {
    padding: 60px 0;
    background: linear-gradient(90deg, #f43f5e, #ec4899);
    color: #ffffff;
}

.page-hero-soft {
    position: relative;
}

.page-hero h1 {
    margin: 12px 0 12px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.1;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 700;
}

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

.category-title-line {
    display: flex;
    gap: 14px;
    align-items: center;
}

.category-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    padding: 54px 0;
}

.category-overview-card {
    display: block;
    color: #ffffff;
}

.category-collage {
    display: grid;
    height: 190px;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    padding: 2px;
    background: rgba(255, 255, 255, 0.2);
}

.category-overview-body {
    padding: 24px;
}

.category-overview-body h2 {
    margin: 12px 0 8px;
    font-size: 26px;
}

.category-overview-body p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
}

.filter-panel {
    margin: 36px 0 30px;
    padding: 22px;
}

.filter-search input {
    width: 100%;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    outline: none;
    padding: 14px 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-search input:focus,
.filter-selects select:focus {
    border-color: #f43f5e;
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.filter-selects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 16px;
}

.filter-selects label {
    display: grid;
    gap: 8px;
    color: #4b5563;
    font-size: 13px;
    font-weight: 800;
}

.filter-selects select {
    width: 100%;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    outline: none;
    padding: 12px 14px;
}

.filter-empty {
    display: none;
    margin: 18px 0 0;
    color: #e11d48;
    font-weight: 800;
}

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

.rank-list {
    display: grid;
    gap: 18px;
    padding: 44px 0;
}

.rank-item {
    display: grid;
    grid-template-columns: 72px 110px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
}

.rank-number {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 16px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 22px;
    font-weight: 900;
}

.top-one .rank-number,
.top-two .rank-number,
.top-three .rank-number {
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    color: #ffffff;
}

.rank-cover {
    width: 110px;
    height: 146px;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, #1f2937, #be123c);
}

.rank-info h2 {
    margin: 8px 0;
    font-size: 24px;
}

.rank-info p {
    display: -webkit-box;
    margin: 0 0 12px;
    overflow: hidden;
    color: #6b7280;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 46px 0 62px;
    background: #111827;
    color: #ffffff;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    filter: blur(6px);
    transform: scale(1.04);
}

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

.detail-hero::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.98), rgba(17, 24, 39, 0.76), rgba(190, 18, 60, 0.55));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
}

.detail-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 34px;
    align-items: center;
    margin-top: 28px;
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border: 4px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    background: linear-gradient(135deg, #1f2937, #be123c);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.detail-copy h1 {
    margin: 20px 0 14px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.05;
}

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

.detail-main {
    padding: 44px 0 64px;
}

.detail-content {
    display: grid;
    gap: 26px;
}

.player-card {
    background: #0f172a;
}

.video-shell {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.site-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: radial-gradient(circle at center, rgba(244, 63, 94, 0.1), rgba(0, 0, 0, 0.34));
    color: #ffffff;
    transition: opacity 0.25s ease;
}

.player-overlay span {
    display: grid;
    width: 92px;
    height: 92px;
    place-items: center;
    border-radius: 999px;
    background: #f43f5e;
    font-size: 34px;
    box-shadow: 0 16px 42px rgba(244, 63, 94, 0.35);
}

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

.detail-block {
    padding: 28px;
}

.detail-block h2 {
    margin: 0 0 12px;
    color: #111827;
    font-size: 26px;
}

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

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

.info-list div {
    display: grid;
    gap: 6px;
    border-radius: 14px;
    background: #f9fafb;
    padding: 14px;
}

.info-list dt {
    color: #9ca3af;
    font-size: 13px;
    font-weight: 800;
}

.info-list dd {
    margin: 0;
    color: #111827;
    font-weight: 800;
}

.related-section {
    width: 100%;
    padding: 22px 0 0;
}

.site-footer {
    position: relative;
    margin-top: 30px;
    background: linear-gradient(180deg, #f9fafb, #f3f4f6);
    color: #4b5563;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 36px;
    padding: 48px 0;
}

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

.site-footer p {
    margin: 12px 0 0;
}

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

.back-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 40;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: #f43f5e;
    color: #ffffff;
    font-size: 22px;
    box-shadow: 0 12px 26px rgba(244, 63, 94, 0.35);
}

.fade-in {
    animation: fade-in 0.65s ease both;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

    .menu-button {
        display: inline-flex;
    }

    .hero {
        height: 560px;
    }

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

    .footer-grid,
    .detail-layout,
    .filter-selects {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: min(260px, 100%);
    }

    .rank-item {
        grid-template-columns: 52px 92px 1fr;
    }

    .rank-action {
        grid-column: 3;
        width: max-content;
    }
}

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

    .header-inner {
        min-height: 64px;
    }

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

    .hero {
        height: 540px;
        min-height: 500px;
    }

    .hero-copy h1,
    .detail-copy h1 {
        font-size: 38px;
    }

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

    .hero-control {
        width: calc(100% - 24px);
        justify-content: space-between;
    }

    .hero-dots {
        max-width: 180px;
        overflow: hidden;
    }

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

    .movie-poster {
        height: 380px;
    }

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

    .rank-item {
        grid-template-columns: 44px 82px 1fr;
        gap: 12px;
        padding: 12px;
    }

    .rank-number {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .rank-cover {
        width: 82px;
        height: 112px;
    }

    .rank-info h2 {
        font-size: 18px;
    }

    .rank-info p,
    .rank-info .tag-list {
        display: none;
    }

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

    .player-overlay span {
        width: 72px;
        height: 72px;
        font-size: 28px;
    }
}
