* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(244, 114, 182, 0.18);
    backdrop-filter: blur(18px);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

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

.logo-mark {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #ec4899, #3b82f6, #10b981);
    box-shadow: 0 16px 36px rgba(236, 72, 153, 0.26);
}

.logo-text {
    font-size: 24px;
    line-height: 1;
    background: linear-gradient(90deg, #ec4899, #3b82f6, #10b981);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.main-nav a {
    color: #4b5563;
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #ec4899;
    transform: translateY(-1px);
}

.top-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 260px;
}

.top-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 2px solid #fbcfe8;
    border-radius: 999px;
    padding: 10px 16px;
    color: #374151;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: #f472b6;
    box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.15);
}

.top-search button,
.primary-btn,
.secondary-btn,
.play-cover button {
    border: 0;
    cursor: pointer;
    color: #ffffff;
    border-radius: 999px;
    padding: 11px 18px;
    font-weight: 800;
    background: linear-gradient(90deg, #ec4899, #3b82f6);
    box-shadow: 0 18px 35px rgba(59, 130, 246, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-search button:hover,
.primary-btn:hover,
.secondary-btn:hover,
.play-cover button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 22px 42px rgba(236, 72, 153, 0.25);
}

.secondary-btn {
    color: #ec4899;
    background: #ffffff;
    border: 1px solid rgba(236, 72, 153, 0.24);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
    font-size: 22px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 34px 20px 64px;
}

.hero-shell {
    margin-bottom: 56px;
    padding: 4px;
    border-radius: 34px;
    background: linear-gradient(110deg, #f472b6, #60a5fa, #34d399);
    box-shadow: 0 26px 70px rgba(59, 130, 246, 0.20);
}

.hero-panel {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    min-height: 480px;
    background: rgba(255, 255, 255, 0.92);
}

.hero-slide {
    display: none;
    grid-template-columns: 1.04fr 0.96fr;
    gap: 40px;
    align-items: center;
    padding: 52px;
}

.hero-slide.is-active {
    display: grid;
}

.hero-copy h1 {
    margin: 0 0 20px;
    max-width: 720px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, #ec4899, #3b82f6, #10b981);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy p {
    margin: 0 0 24px;
    color: #5b6474;
    font-size: 18px;
}

.hero-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 28px;
}

.hero-tags span,
.tag-list span,
.meta-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    color: #be185d;
    background: #fce7f3;
    font-size: 13px;
    font-weight: 800;
}

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

.hero-media {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    min-height: 310px;
    box-shadow: 0 26px 55px rgba(15, 23, 42, 0.20);
}

.hero-media img {
    width: 100%;
    height: 100%;
    min-height: 310px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-media:hover img {
    transform: scale(1.06);
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.76));
}

.hero-caption {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 22px;
    z-index: 2;
    color: #ffffff;
}

.hero-caption strong {
    display: block;
    margin-bottom: 8px;
    font-size: 26px;
}

.hero-dots {
    position: absolute;
    left: 52px;
    bottom: 28px;
    z-index: 3;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 28px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(236, 72, 153, 0.28);
    cursor: pointer;
}

.hero-dot.is-active {
    background: linear-gradient(90deg, #ec4899, #3b82f6);
}

.content-section {
    margin-bottom: 56px;
}

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

.section-head h2,
.page-title h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.2;
}

.section-head p,
.page-title p,
.category-intro {
    margin: 8px 0 0;
    color: #6b7280;
}

.section-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 10px;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #ec4899, #3b82f6);
    box-shadow: 0 14px 30px rgba(236, 72, 153, 0.2);
}

.section-more {
    color: #ec4899;
    font-weight: 800;
    white-space: nowrap;
}

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

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

.movie-card,
.category-card,
.info-card {
    display: block;
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #fdf2f8, #eff6ff);
}

.poster-wrap img,
.compact-cover img,
.rank-row img,
.detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card:hover img,
.compact-card:hover img,
.rank-row:hover img,
.detail-cover:hover img {
    transform: scale(1.08);
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.0), rgba(15, 23, 42, 0.58));
    opacity: 0;
    transition: opacity 0.24s ease;
}

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

.duration,
.badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
}

.duration {
    right: 12px;
    bottom: 12px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.76);
}

.badge {
    top: 12px;
    left: 12px;
    color: #ffffff;
    background: #ec4899;
}

.movie-info {
    display: block;
    padding: 16px;
}

.movie-info strong,
.compact-info strong,
.rank-text strong {
    display: -webkit-box;
    overflow: hidden;
    color: #111827;
    font-size: 17px;
    font-weight: 800;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.movie-card:hover strong,
.compact-card:hover strong,
.rank-row:hover strong {
    color: #ec4899;
}

.movie-info em,
.movie-info small,
.compact-info em,
.compact-info small,
.rank-text em {
    display: block;
    margin-top: 7px;
    color: #6b7280;
    font-style: normal;
    font-size: 13px;
}

.scroll-row {
    overflow-x: auto;
    display: flex;
    gap: 20px;
    padding: 4px 2px 22px;
}

.scroll-row .movie-card {
    width: 310px;
    flex: 0 0 auto;
}

.gradient-panel {
    padding: 30px;
    border-radius: 30px;
    background: linear-gradient(120deg, rgba(255, 237, 213, 0.84), rgba(252, 231, 243, 0.9));
}

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

.category-card {
    min-height: 164px;
    padding: 22px;
    background: linear-gradient(145deg, #ffffff, #f8fbff);
}

.category-card strong {
    display: block;
    color: #111827;
    font-size: 20px;
    margin-bottom: 12px;
}

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

.category-card span {
    display: inline-flex;
    margin-top: 18px;
    color: #ec4899;
    font-weight: 800;
}

.rank-layout {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 24px;
    align-items: start;
}

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

.rank-row,
.compact-card {
    display: grid;
    align-items: center;
    gap: 14px;
    border-radius: 18px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

.rank-row {
    grid-template-columns: 46px 96px 1fr 58px;
}

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

.rank-row img {
    aspect-ratio: 16 / 9;
    border-radius: 12px;
}

.rank-score {
    color: #f97316;
    font-size: 20px;
    font-weight: 900;
    text-align: right;
}

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

.compact-cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
}

.compact-cover b {
    position: absolute;
    right: 8px;
    bottom: 8px;
    border-radius: 999px;
    padding: 3px 8px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.78);
    font-size: 12px;
}

.page-title {
    margin-bottom: 28px;
    padding: 32px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: #6b7280;
    font-size: 14px;
}

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

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 190px 190px;
    gap: 14px;
    margin: 0 0 26px;
}

.filter-note {
    margin: 0 0 18px;
    color: #6b7280;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: stretch;
    margin-bottom: 38px;
}

.player-card,
.detail-side,
.article-card {
    overflow: hidden;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.09);
}

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

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

.play-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.16), rgba(2, 6, 23, 0.66));
}

.play-cover.is-hidden {
    display: none;
}

.play-cover button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    font-size: 18px;
}

.player-info {
    padding: 22px;
}

.player-info h1 {
    margin: 0 0 14px;
    color: #111827;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.16;
}

.player-info p {
    margin: 0;
    color: #4b5563;
}

.detail-side {
    padding: 20px;
}

.detail-cover {
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 16 / 9;
    margin-bottom: 18px;
}

.detail-meta {
    display: grid;
    gap: 10px;
}

.detail-meta span {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: #6b7280;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 8px;
}

.detail-meta b {
    color: #111827;
}

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

.article-card {
    padding: 28px;
    margin-bottom: 24px;
}

.article-card h2 {
    margin: 0 0 16px;
    font-size: 26px;
    color: #111827;
}

.article-card p {
    margin: 0;
    color: #374151;
    font-size: 17px;
}

.side-sticky {
    position: sticky;
    top: 96px;
}

.site-footer {
    background: linear-gradient(180deg, #ffffff, #f3f4f6);
    border-top: 1px solid rgba(209, 213, 219, 0.82);
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 42px 20px;
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1.2fr;
    gap: 28px;
}

.footer-grid strong {
    display: block;
    margin-bottom: 12px;
    color: #111827;
    font-size: 17px;
}

.footer-grid a,
.footer-grid p {
    display: block;
    margin: 6px 0;
    color: #6b7280;
}

.footer-grid a:hover {
    color: #ec4899;
}

.copyright {
    margin: 0;
    padding: 18px 20px 30px;
    color: #6b7280;
    text-align: center;
}

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

.empty-state {
    display: none;
    padding: 28px;
    color: #6b7280;
    text-align: center;
    border-radius: 24px;
    background: #ffffff;
}

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

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

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

@media (max-width: 820px) {
    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .nav-area {
        position: absolute;
        top: 100%;
        left: 14px;
        right: 14px;
        display: none;
        padding: 16px;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 18px 48px rgba(15, 23, 42, 0.13);
    }

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

    .main-nav,
    .top-search {
        display: grid;
        gap: 10px;
        min-width: 0;
    }

    .top-search {
        margin-top: 14px;
        grid-template-columns: 1fr auto;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .hero-dots {
        left: 30px;
        bottom: 18px;
    }

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

    .filter-bar {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 560px) {
    .container {
        padding: 24px 14px 52px;
    }

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

    .hero-panel {
        min-height: 0;
    }

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

    .rank-row {
        grid-template-columns: 38px 86px 1fr;
    }

    .rank-score {
        grid-column: 3;
        text-align: left;
    }

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

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