* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

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

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

button,
input,
select {
    font: inherit;
}

button {
    border: 0;
}

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

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

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

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #f43f5e, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.logo-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    box-shadow: 0 14px 30px rgba(244, 63, 94, 0.28);
}

.logo-mark svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    position: relative;
    color: #374151;
    font-size: 15px;
    font-weight: 700;
    transition: color 0.25s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f43f5e, #ec4899);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #e11d48;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border-radius: 12px;
    background: #f9fafb;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 999px;
    background: #374151;
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
    border-top: 1px solid #f3f4f6;
}

.mobile-nav.open {
    display: grid;
    gap: 6px;
}

.mobile-nav-link {
    padding: 12px 14px;
    border-radius: 12px;
    color: #374151;
    font-weight: 700;
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
    color: #e11d48;
    background: #fff1f2;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    background:
        radial-gradient(circle at 18% 16%, rgba(244, 63, 94, 0.26), transparent 34%),
        radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.24), transparent 28%),
        linear-gradient(135deg, #111827 0%, #301128 52%, #111827 100%);
    color: #ffffff;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.28));
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    align-items: center;
    gap: 52px;
    min-height: 620px;
    padding: 70px 0;
}

.hero-copy {
    position: relative;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffe4e6;
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(12px);
}

.hero h1 {
    margin: 0;
    max-width: 820px;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.065em;
}

.hero h1 span {
    background: linear-gradient(90deg, #ffffff, #fecdd3, #f9a8d4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-summary {
    max-width: 720px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
}

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

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

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

.btn-primary {
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    color: #ffffff;
    box-shadow: 0 18px 38px rgba(244, 63, 94, 0.36);
}

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

.btn-light {
    background: #ffffff;
    color: #e11d48;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

.hero-search {
    display: flex;
    width: min(620px, 100%);
    margin-top: 32px;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 16px;
    color: #ffffff;
    background: transparent;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.68);
}

.hero-search button {
    border-radius: 13px;
    background: #ffffff;
    color: #e11d48;
    padding: 10px 18px;
    font-weight: 800;
    cursor: pointer;
}

.hero-panel {
    position: relative;
}

.hero-slider {
    position: relative;
    min-height: 520px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-rows: 1fr auto;
    overflow: hidden;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.33);
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

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

.hero-slide-content {
    position: relative;
    padding: 26px;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.78), rgba(17, 24, 39, 0.94));
}

.hero-slide-content h2 {
    margin: 0 0 8px;
    font-size: 26px;
    line-height: 1.18;
}

.hero-slide-content p {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.78);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.hero-tags span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    color: #ffe4e6;
    font-size: 13px;
    font-weight: 700;
}

.hero-dots {
    position: absolute;
    right: 24px;
    bottom: -20px;
    z-index: 3;
    display: flex;
    gap: 8px;
    padding: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    background: #fecdd3;
    cursor: pointer;
}

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

.section {
    padding: 72px 0;
}

.section-soft {
    background: linear-gradient(180deg, #ffffff, #fff7f8);
}

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

.section-kicker {
    margin: 0 0 8px;
    color: #e11d48;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.section-title {
    margin: 0;
    color: #111827;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.section-desc {
    margin: 10px 0 0;
    max-width: 720px;
    color: #6b7280;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 156px;
    padding: 22px;
    border: 1px solid #f3f4f6;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card::before {
    content: "";
    position: absolute;
    inset: auto -30px -50px auto;
    width: 130px;
    height: 130px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.18), rgba(236, 72, 153, 0.18));
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.1);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
    font-size: 21px;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.12);
}

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: #f3f4f6;
}

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

.movie-card:hover .poster-wrap img,
.compact-card:hover img,
.rank-item:hover img {
    transform: scale(1.06);
}

.poster-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.72);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.poster-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    color: #ffffff;
    box-shadow: 0 14px 26px rgba(244, 63, 94, 0.35);
}

.movie-card-body {
    padding: 18px;
}

.movie-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 48px;
    color: #111827;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-title:hover {
    color: #e11d48;
}

.movie-meta {
    margin: 8px 0;
    color: #9ca3af;
    font-size: 13px;
}

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

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.tag-row span {
    padding: 5px 8px;
    border-radius: 999px;
    background: #fff1f2;
    color: #e11d48;
    font-size: 12px;
    font-weight: 800;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid #f3f4f6;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.compact-card img {
    width: 76px;
    height: 94px;
    object-fit: cover;
    border-radius: 14px;
    transition: transform 0.3s ease;
}

.compact-card strong {
    display: -webkit-box;
    overflow: hidden;
    color: #111827;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.compact-card em {
    display: block;
    margin-top: 8px;
    color: #9ca3af;
    font-size: 13px;
    font-style: normal;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px 180px;
    gap: 12px;
    margin: 26px 0 30px;
    padding: 14px;
    border: 1px solid #f3f4f6;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    outline: none;
    padding: 0 14px;
    color: #111827;
    background: #ffffff;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 56px 96px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
}

.rank-index {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    color: #ffffff;
    font-weight: 900;
}

.rank-poster {
    overflow: hidden;
    width: 96px;
    height: 116px;
    border-radius: 16px;
    background: #f3f4f6;
}

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

.rank-info a {
    display: -webkit-box;
    overflow: hidden;
    color: #111827;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

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

.rank-info span {
    color: #9ca3af;
    font-size: 13px;
}

.page-hero {
    padding: 70px 0 44px;
    color: #ffffff;
    background:
        radial-gradient(circle at 24% 18%, rgba(244, 63, 94, 0.32), transparent 32%),
        radial-gradient(circle at 82% 14%, rgba(236, 72, 153, 0.26), transparent 30%),
        linear-gradient(135deg, #111827, #2b1224 58%, #111827);
}

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

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #fecdd3;
    font-size: 14px;
    font-weight: 800;
}

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

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #030712;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.25);
}

.movie-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #030712;
    cursor: pointer;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 14px;
    padding: 24px;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(3, 7, 18, 0.18), rgba(3, 7, 18, 0.68));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    color: #ffffff;
    font-size: 30px;
    box-shadow: 0 18px 42px rgba(244, 63, 94, 0.38);
}

.play-layer strong {
    max-width: min(640px, 92%);
    text-align: center;
    font-size: clamp(22px, 4vw, 38px);
    line-height: 1.2;
}

.detail-card,
.side-card {
    border: 1px solid #f3f4f6;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.07);
}

.detail-card {
    margin-top: 24px;
    padding: 28px;
}

.detail-card h2,
.side-card h2 {
    margin: 0 0 14px;
    color: #111827;
    font-size: 24px;
}

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

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

.info-box {
    padding: 14px;
    border-radius: 18px;
    background: #fff1f2;
}

.info-box span {
    display: block;
    color: #e11d48;
    font-size: 12px;
    font-weight: 900;
}

.info-box strong {
    display: block;
    margin-top: 4px;
    color: #111827;
}

.side-card {
    padding: 18px;
}

.side-card + .side-card {
    margin-top: 18px;
}

.side-poster {
    overflow: hidden;
    border-radius: 22px;
    background: #f3f4f6;
}

.side-poster img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

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

.related-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    align-items: center;
}

.related-item img {
    width: 64px;
    height: 78px;
    object-fit: cover;
    border-radius: 12px;
    background: #f3f4f6;
}

.related-item strong {
    display: -webkit-box;
    overflow: hidden;
    color: #111827;
    font-size: 14px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-item span {
    display: block;
    margin-top: 4px;
    color: #9ca3af;
    font-size: 12px;
}

.pagination-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.pagination-links a {
    padding: 10px 14px;
    border-radius: 14px;
    background: #fff1f2;
    color: #e11d48;
    font-weight: 800;
}

.site-footer {
    margin-top: 80px;
    background: linear-gradient(180deg, #fff7f8, #f3f4f6);
}

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

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

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

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

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a {
    color: #6b7280;
    font-weight: 700;
}

.footer-links a:hover {
    color: #e11d48;
}

.footer-bottom {
    padding: 18px 16px;
    text-align: center;
    border-top: 1px solid rgba(229, 231, 235, 0.9);
}

.footer-bottom p {
    margin: 0;
    color: #9ca3af;
    font-size: 14px;
}

.hide-by-filter {
    display: none !important;
}

@media (max-width: 1120px) {
    .hero-inner,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        max-width: 620px;
    }

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

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

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

    .nav-toggle {
        display: block;
    }

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

    .hero-slider {
        min-height: 480px;
    }

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

    .rank-list,
    .footer-grid,
    .filter-bar,
    .info-grid {
        grid-template-columns: 1fr;
    }

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

    .rank-poster {
        width: 82px;
        height: 100px;
    }
}

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

    .site-logo {
        font-size: 20px;
    }

    .hero {
        min-height: auto;
    }

    .hero-search {
        display: grid;
        gap: 8px;
    }

    .hero-search input {
        min-height: 42px;
    }

    .hero-slide img {
        height: 280px;
    }

    .hero-slide-content {
        padding: 20px;
    }

    .movie-grid {
        gap: 14px;
    }

    .movie-card-body {
        padding: 14px;
    }

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

    .section {
        padding: 54px 0;
    }
}
