* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #1f2937;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #fff7ed 0%, #fdf2f8 42%, #eff6ff 100%);
}

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

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

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

.page-shell {
    min-height: 100vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
}

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

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, #f472b6, #fb923c);
    box-shadow: 0 12px 24px rgba(236, 72, 153, 0.25);
    transition: transform 0.25s ease;
}

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

.brand-text {
    font-size: 24px;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #ec4899, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    position: relative;
    color: #4b5563;
    font-weight: 650;
    transition: color 0.25s ease;
}

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

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

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

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: #374151;
    background: #f9fafb;
    cursor: pointer;
    font-size: 22px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

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

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

.mobile-link:hover {
    color: #ec4899;
    background: #fdf2f8;
}

.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.72fr);
    gap: 28px;
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 0;
}

.hero-carousel {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border-radius: 32px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.22);
    background: #111827;
}

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

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.32) 54%, rgba(0, 0, 0, 0.12)), linear-gradient(0deg, rgba(0, 0, 0, 0.42), transparent 45%);
}

.hero-copy {
    position: absolute;
    bottom: 0;
    left: 0;
    max-width: 680px;
    padding: 44px;
    color: #fff;
}

.eyebrow,
.panel-label {
    display: inline-flex;
    align-items: center;
    width: max-content;
    margin-bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(90deg, #ec4899, #f97316);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.hero-copy h1 {
    margin: 0 0 14px;
    font-size: clamp(36px, 5vw, 68px);
    line-height: 1.03;
    letter-spacing: -0.05em;
}

.hero-copy p {
    margin: 0;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 17px;
    line-height: 1.8;
}

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

.hero-tags span,
.tag-row span,
.detail-tags span {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    color: #be185d;
    background: #fce7f3;
    font-size: 12px;
    font-weight: 750;
}

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

.primary-btn,
.ghost-btn,
.hero-side-actions a,
.player-cover span:last-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
}

.primary-btn {
    color: #fff;
    background: linear-gradient(90deg, #ec4899, #f97316);
    box-shadow: 0 18px 35px rgba(236, 72, 153, 0.28);
}

.ghost-btn {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.hero-controls {
    position: absolute;
    right: 34px;
    bottom: 34px;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
    transition: width 0.3s ease, background 0.3s ease;
}

.hero-dot.active {
    width: 34px;
    background: #fff;
}

.hero-side {
    display: grid;
    gap: 20px;
}

.hero-panel {
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(10px);
}

.hero-panel h2 {
    margin: 0 0 12px;
    font-size: 30px;
    line-height: 1.16;
    color: #111827;
}

.hero-panel p {
    margin: 0;
    color: #6b7280;
    line-height: 1.75;
}

.hero-side-actions a {
    color: #fff;
    background: linear-gradient(90deg, #60a5fa, #22d3ee);
}

.hero-thumbs {
    display: grid;
    gap: 14px;
}

.hero-thumb {
    display: grid;
    grid-template-columns: 86px 1fr;
    align-items: center;
    gap: 14px;
    min-height: 86px;
    padding: 10px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-thumb:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 38px rgba(15, 23, 42, 0.12);
}

.hero-thumb img {
    width: 86px;
    height: 66px;
    border-radius: 16px;
    object-fit: cover;
}

.hero-thumb span {
    color: #374151;
    font-weight: 800;
    line-height: 1.35;
}

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

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

.section-heading h1,
.section-heading h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-heading p,
.lead-text {
    margin: 10px 0 0;
    color: #6b7280;
    line-height: 1.8;
}

.section-more {
    flex: 0 0 auto;
    color: #ec4899;
    font-weight: 800;
}

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

.category-tile {
    min-height: 138px;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 237, 0.92));
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.09);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.13);
}

.category-tile span {
    display: block;
    margin-bottom: 10px;
    color: #111827;
    font-size: 20px;
    font-weight: 850;
}

.category-tile p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.65;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 180px;
    gap: 12px;
    margin-bottom: 22px;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    border-radius: 18px;
    background: #f9fafb;
}

.search-box span {
    color: #ec4899;
    font-size: 22px;
    font-weight: 900;
}

.search-input,
.type-filter,
.year-filter {
    width: 100%;
    min-height: 48px;
    border: 0;
    outline: 0;
    color: #374151;
    background: transparent;
    font: inherit;
}

.type-filter,
.year-filter {
    padding: 0 14px;
    border-radius: 18px;
    background: #f9fafb;
}

.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.92);
    box-shadow: 0 13px 28px rgba(15, 23, 42, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster {
    position: relative;
    display: block;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #fce7f3, #ffedd5);
}

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

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

.poster-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 7px 11px;
    border-radius: 999px;
    color: #be185d;
    background: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.card-body {
    padding: 18px;
}

.card-meta,
.mini-meta,
.detail-meta {
    color: #ec4899;
    font-size: 13px;
    font-weight: 800;
}

.card-body h3 {
    margin: 8px 0 8px;
    color: #111827;
    font-size: 20px;
    line-height: 1.35;
}

.card-body h3 a:hover,
.rank-title:hover {
    color: #ec4899;
}

.card-body p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0;
    overflow: hidden;
    color: #6b7280;
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.58fr);
    gap: 24px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 16px;
    padding: 12px;
    border-radius: 22px;
}

.rank-cover img {
    width: 110px;
    height: 86px;
    border-radius: 16px;
    object-fit: cover;
}

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

.rank-title {
    color: #111827;
    font-size: 18px;
    font-weight: 850;
    line-height: 1.35;
}

.breadcrumb {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 0;
    color: #6b7280;
    font-size: 14px;
}

.breadcrumb a {
    color: #ec4899;
    font-weight: 750;
}

.detail-hero {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 28px;
    width: min(1180px, calc(100% - 32px));
    margin: 22px auto 0;
    padding: 26px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.13);
}

.detail-cover img {
    width: 100%;
    height: 480px;
    border-radius: 26px;
    object-fit: cover;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
}

.detail-copy h1 {
    margin: 8px 0 14px;
    color: #111827;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.detail-copy p {
    margin: 0 0 20px;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.85;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}

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

.info-list div {
    padding: 14px;
    border-radius: 18px;
    background: #f9fafb;
    color: #4b5563;
}

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

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

.player-card,
.text-card {
    overflow: hidden;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000;
    aspect-ratio: 16 / 9;
}

.video-player {
    width: 100%;
    height: 100%;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 16px;
    border: 0;
    color: #fff;
    background: radial-gradient(circle at center, rgba(236, 72, 153, 0.15), rgba(0, 0, 0, 0.66));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    padding-left: 6px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #ec4899, #f97316);
    box-shadow: 0 18px 38px rgba(236, 72, 153, 0.38);
    font-size: 32px;
}

.text-card {
    padding: 30px;
}

.text-card h2 {
    margin: 0 0 14px;
    color: #111827;
    font-size: 28px;
}

.text-card p {
    margin: 0 0 22px;
    color: #4b5563;
    line-height: 1.9;
    font-size: 17px;
}

.no-results {
    display: none;
    padding: 32px;
    border-radius: 24px;
    color: #6b7280;
    text-align: center;
    background: rgba(255, 255, 255, 0.84);
}

.no-results.show {
    display: block;
}

.site-footer {
    margin-top: 70px;
    color: #e5e7eb;
    background: linear-gradient(90deg, #1f2937, #111827);
}

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

.footer-brand {
    margin-bottom: 14px;
    color: #fff;
    font-size: 22px;
    font-weight: 850;
}

.site-footer p,
.site-footer a {
    display: block;
    margin: 8px 0;
    color: #9ca3af;
    line-height: 1.7;
}

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

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #9ca3af;
    font-size: 14px;
}

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

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

    .hero-side {
        grid-template-columns: 1fr;
    }
}

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

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

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

    .hero-section {
        margin-top: 20px;
    }

    .hero-carousel,
    .hero-slide img {
        min-height: 480px;
    }

    .hero-copy {
        padding: 28px;
    }

    .hero-copy p {
        font-size: 15px;
    }

    .hero-controls {
        right: 24px;
        bottom: 22px;
    }

    .category-grid,
    .movie-grid,
    .footer-grid,
    .filter-panel {
        grid-template-columns: 1fr;
    }

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

    .poster {
        height: 280px;
    }

    .detail-hero {
        padding: 18px;
    }

    .detail-cover img {
        height: auto;
        max-height: 520px;
    }

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

    .rank-item {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .rank-cover img {
        width: 96px;
        height: 76px;
    }
}
