:root {
    --pink: #ec4899;
    --pink-dark: #db2777;
    --purple: #8b5cf6;
    --blue: #3b82f6;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: rgba(236, 72, 153, 0.16);
    --glass: rgba(255, 255, 255, 0.82);
    --shadow: 0 20px 55px rgba(219, 39, 119, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(236, 72, 153, 0.13);
    box-shadow: 0 10px 30px rgba(148, 163, 184, 0.12);
}

.header-inner {
    height: 68px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-mark {
    width: 35px;
    height: 35px;
    fill: var(--pink);
    filter: drop-shadow(0 8px 16px rgba(236, 72, 153, 0.26));
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

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

.desktop-nav a:hover,
.mobile-panel a:hover {
    color: var(--pink);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.big-search input,
.toolbar input,
.toolbar select {
    border: 1px solid rgba(236, 72, 153, 0.22);
    background: rgba(255, 255, 255, 0.84);
    outline: none;
    color: var(--ink);
    border-radius: 999px;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    width: 230px;
    padding: 10px 16px;
}

.header-search input:focus,
.big-search input:focus,
.toolbar input:focus,
.toolbar select:focus {
    border-color: rgba(236, 72, 153, 0.55);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.14);
}

.header-search button,
.big-search button,
.primary-btn,
.ghost-btn,
.toolbar-link {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.big-search button,
.primary-btn {
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.25);
}

.header-search button {
    padding: 10px 18px;
}

.header-search button:hover,
.big-search button:hover,
.primary-btn:hover,
.ghost-btn:hover,
.toolbar-link:hover {
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(236, 72, 153, 0.1);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--pink);
    border-radius: 9px;
}

.mobile-panel {
    display: none;
    padding: 0 18px 18px;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid rgba(236, 72, 153, 0.12);
}

.mobile-panel.is-open {
    display: grid;
    gap: 14px;
}

.hero-wrap {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    isolation: isolate;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.68fr);
    align-items: center;
    gap: 50px;
    padding: 64px max(32px, calc((100vw - 1180px) / 2)) 88px;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.03);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.76), rgba(88, 28, 135, 0.48), rgba(236, 72, 153, 0.22)), var(--hero-image) center / cover;
    filter: saturate(1.08);
    z-index: -2;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.2), transparent 28%), linear-gradient(180deg, rgba(255,255,255,0), rgba(253,242,248,0.96));
    z-index: -1;
}

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

.hero-copy {
    color: #fff;
    max-width: 760px;
    text-shadow: 0 8px 24px rgba(15, 23, 42, 0.28);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.26);
    font-weight: 800;
    margin-bottom: 22px;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 88px);
    line-height: 0.94;
    letter-spacing: -0.07em;
    font-weight: 950;
}

.hero-copy p {
    max-width: 650px;
    font-size: clamp(18px, 2.2vw, 24px);
    line-height: 1.75;
    margin: 26px 0 0;
    color: rgba(255, 255, 255, 0.92);
}

.hero-tags,
.tag-row,
.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags {
    margin: 26px 0;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
}

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

.primary-btn,
.ghost-btn,
.toolbar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
}

.ghost-btn,
.toolbar-link {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px);
}

.hero-poster {
    display: block;
    transform: rotate(2deg);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 34px;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
    z-index: 5;
}

.hero-dots button {
    width: 38px;
    height: 7px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    cursor: pointer;
}

.hero-dots button.is-active {
    background: #fff;
}

.quick-search-panel,
.section-block {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.quick-search-panel {
    margin-top: -42px;
    position: relative;
    z-index: 10;
    padding: 24px;
}

.big-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.big-search input {
    padding: 16px 20px;
    font-size: 17px;
}

.big-search button {
    padding: 0 28px;
}

.quick-links {
    margin-top: 18px;
}

.quick-links a {
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(236, 72, 153, 0.1);
    color: var(--pink-dark);
    font-weight: 800;
}

.section-block {
    margin-top: 34px;
    padding: 28px;
}

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

.section-title h2 {
    margin: 0;
    font-size: clamp(25px, 3.4vw, 38px);
    letter-spacing: -0.04em;
}

.section-title a {
    color: var(--pink-dark);
    font-weight: 900;
}

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

.category-grid.large {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.category-tile {
    min-height: 138px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px;
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.92), rgba(139, 92, 246, 0.86), rgba(59, 130, 246, 0.76));
    box-shadow: 0 18px 40px rgba(139, 92, 246, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 48px rgba(139, 92, 246, 0.27);
}

.category-tile strong {
    font-size: 24px;
    line-height: 1.1;
}

.category-tile span {
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.65;
}

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

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

.movie-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(148, 163, 184, 0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 24px 50px rgba(236, 72, 153, 0.19);
}

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

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.72));
    opacity: 0.75;
}

.play-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0;
    background: rgba(236, 72, 153, 0.9);
    color: #fff;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(236, 72, 153, 0.92);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.card-body {
    padding: 16px;
}

.card-body h2 {
    margin: 0 0 9px;
    font-size: 18px;
    line-height: 1.35;
}

.card-body h2 a:hover {
    color: var(--pink-dark);
}

.card-body p {
    margin: 0 0 13px;
    color: var(--muted);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 12px;
}

.tag-row span {
    color: var(--pink-dark);
    background: rgba(236, 72, 153, 0.1);
    border-color: rgba(236, 72, 153, 0.14);
}

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

.mini-card {
    display: grid;
    grid-template-columns: 58px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(236, 72, 153, 0.1);
    transition: transform 0.2s ease, background 0.2s ease;
}

.mini-card:hover {
    transform: translateX(5px);
    background: #fff;
}

.mini-card img {
    width: 58px;
    height: 76px;
    object-fit: cover;
    border-radius: 12px;
}

.mini-info {
    min-width: 0;
}

.mini-info strong,
.mini-info em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-info strong {
    font-size: 15px;
}

.mini-info em {
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
    margin-top: 4px;
}

.rank-number {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.sub-hero,
.detail-hero {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.94), rgba(139, 92, 246, 0.88), rgba(59, 130, 246, 0.72));
    color: #fff;
}

.sub-hero::after,
.detail-hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -60% -10%;
    height: 180px;
    background: rgba(255, 255, 255, 0.2);
    filter: blur(60px);
}

.sub-hero p,
.detail-copy p:first-child {
    margin: 0 0 10px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.83);
}

.sub-hero h1 {
    position: relative;
    z-index: 1;
    margin: 0 0 18px;
    font-size: clamp(36px, 6vw, 70px);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.sub-hero span {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 720px;
    font-size: 18px;
    line-height: 1.8;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.toolbar input {
    flex: 1 1 260px;
    padding: 13px 16px;
}

.toolbar select {
    padding: 13px 16px;
}

.toolbar-link {
    color: var(--pink-dark);
    border: 1px solid rgba(236, 72, 153, 0.22);
    background: rgba(236, 72, 153, 0.09);
}

.detail-head {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 38px;
    align-items: center;
}

.crumb {
    position: relative;
    z-index: 2;
    display: inline-flex;
    color: rgba(255, 255, 255, 0.84);
    font-weight: 800;
}

.detail-head > span {
    color: rgba(255, 255, 255, 0.58);
}

.detail-poster {
    grid-row: span 2;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

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

.detail-copy h1 {
    margin: 0 0 20px;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.detail-tags {
    margin-bottom: 20px;
}

.detail-tags span {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.24);
}

.lead-text {
    max-width: 820px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.91);
    font-size: 18px;
    line-height: 1.8;
}

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

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

.play-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 0;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.76));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-cover span {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 18px 44px rgba(236, 72, 153, 0.36);
    font-size: 32px;
}

.play-cover strong {
    font-size: 20px;
}

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

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

.article-text h2,
.side-links h2 {
    margin: 0 0 16px;
    font-size: 28px;
}

.article-text p {
    margin: 0 0 26px;
    color: #4b5563;
    line-height: 2;
    font-size: 17px;
}

.info-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.info-list div {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(236, 72, 153, 0.1);
}

.info-list dt {
    color: var(--muted);
    font-weight: 900;
}

.info-list dd {
    margin: 0;
    color: var(--ink);
}

.site-footer {
    margin-top: 50px;
    padding: 46px 0 24px;
    background: linear-gradient(90deg, rgba(252, 231, 243, 0.82), rgba(237, 233, 254, 0.9), rgba(219, 234, 254, 0.82));
    border-top: 1px solid rgba(236, 72, 153, 0.12);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 28px;
}

.footer-grid h2,
.footer-grid h3 {
    margin: 0 0 14px;
}

.footer-grid p,
.footer-grid a {
    display: block;
    color: #5b6472;
    line-height: 1.8;
    margin-bottom: 7px;
}

.footer-grid a:hover {
    color: var(--pink-dark);
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 0;
    padding-top: 22px;
    text-align: center;
    color: #64748b;
    border-top: 1px solid rgba(236, 72, 153, 0.14);
}

.is-filtered-out {
    display: none !important;
}

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

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .header-search {
        display: none;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        padding-top: 54px;
        min-height: 660px;
    }

    .hero-poster {
        display: none;
    }

    .home-columns,
    .detail-layout {
        grid-template-columns: 1fr;
    }

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

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

    .header-inner {
        height: 62px;
    }

    .brand {
        font-size: 22px;
    }

    .hero-wrap {
        min-height: 610px;
    }

    .hero-slide {
        padding: 48px 18px 86px;
    }

    .hero-copy h1 {
        font-size: 46px;
    }

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

    .big-search {
        grid-template-columns: 1fr;
    }

    .section-block,
    .quick-search-panel {
        padding: 20px;
        border-radius: 22px;
    }

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

    .card-body {
        padding: 13px;
    }

    .card-body h2 {
        font-size: 16px;
    }

    .card-body p {
        font-size: 13px;
    }

    .sub-hero,
    .detail-hero {
        padding: 54px 0;
    }

    .detail-head {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .detail-poster {
        width: min(260px, 80vw);
    }

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

@media (max-width: 430px) {
    .movie-grid {
        grid-template-columns: 1fr;
    }
}
