* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: #1f2937;
    background: linear-gradient(180deg, #fff7fb 0%, #ffffff 35%, #fff1f2 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 241, 242, 0.94), rgba(253, 242, 248, 0.96));
    border-bottom: 1px solid rgba(244, 114, 182, 0.18);
    box-shadow: 0 10px 35px rgba(190, 24, 93, 0.08);
    backdrop-filter: blur(18px);
}

.header-inner {
    max-width: 1240px;
    height: 74px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #1f2937;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

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

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: #4b5563;
    font-weight: 650;
}

.main-nav a,
.mobile-nav a,
.footer-links a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover {
    color: #db2777;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    color: #be185d;
    background: #fff;
    border: 1px solid rgba(219, 39, 119, 0.18);
    border-radius: 14px;
}

.mobile-nav {
    display: none;
    padding: 0 22px 18px;
    text-align: center;
}

.mobile-nav a {
    display: block;
    padding: 11px 0;
    color: #4b5563;
    font-weight: 650;
}

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

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 58px 22px 48px;
    background: linear-gradient(120deg, #ffe4e6 0%, #fdf2f8 48%, #ffffff 100%);
}

.hero-bg {
    position: absolute;
    border-radius: 999px;
    filter: blur(8px);
    opacity: 0.42;
}

.hero-bg-one {
    width: 230px;
    height: 230px;
    left: 7%;
    top: 48px;
    background: #f472b6;
}

.hero-bg-two {
    width: 290px;
    height: 290px;
    right: 4%;
    bottom: 30px;
    background: #fb7185;
}

.hero-shell {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
}

.hero-carousel {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    border: 1px solid rgba(244, 114, 182, 0.22);
    border-radius: 36px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 36px 80px rgba(190, 24, 93, 0.14);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(290px, 0.85fr);
    gap: 38px;
    align-items: center;
    padding: 56px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px) scale(0.985);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

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

.hero-eyebrow,
.section-head span,
.page-hero p {
    display: inline-flex;
    color: #db2777;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h1 {
    max-width: 720px;
    margin: 14px 0 18px;
    color: #111827;
    font-size: clamp(38px, 5.6vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.hero-copy p {
    max-width: 700px;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.9;
}

.hero-tags,
.tag-row,
.detail-meta,
.card-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hero-tags {
    margin-top: 22px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 11px;
    color: #be185d;
    background: rgba(253, 242, 248, 0.92);
    border: 1px solid rgba(244, 114, 182, 0.2);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

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

.btn-primary,
.btn-secondary,
.search-line button,
.filter-row button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    border: 0;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn-primary,
.search-line button,
.filter-row button {
    color: #fff;
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    box-shadow: 0 14px 26px rgba(244, 63, 94, 0.25);
}

.btn-secondary {
    color: #be185d;
    background: #ffffff;
    border: 1px solid rgba(244, 114, 182, 0.28);
}

.btn-primary:hover,
.btn-secondary:hover,
.search-line button:hover,
.filter-row button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(244, 63, 94, 0.3);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    max-width: 370px;
    margin-left: auto;
    border-radius: 32px;
    box-shadow: 0 34px 70px rgba(127, 29, 29, 0.25);
    transform: rotate(2deg);
}

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

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

.hero-dots {
    position: absolute;
    left: 56px;
    bottom: 34px;
    display: flex;
    gap: 10px;
    z-index: 5;
}

.hero-dot {
    width: 36px;
    height: 8px;
    padding: 0;
    background: rgba(219, 39, 119, 0.2);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}

.hero-dot.is-active {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
}

.quick-search,
.section-wrap,
.filter-panel,
.detail-content,
.player-section,
.category-preview {
    max-width: 1240px;
    margin: 0 auto;
    padding: 46px 22px;
}

.quick-search {
    display: grid;
    grid-template-columns: 0.7fr 1fr;
    gap: 24px;
    align-items: center;
}

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

.section-head h2 {
    margin: 6px 0 0;
    color: #111827;
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.section-head a {
    color: #db2777;
    font-weight: 800;
}

.section-head.compact {
    display: block;
    margin-bottom: 0;
}

.search-line,
.filter-row {
    display: flex;
    gap: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(244, 114, 182, 0.18);
    border-radius: 24px;
    box-shadow: 0 16px 38px rgba(190, 24, 93, 0.08);
}

.search-line input,
.filter-row input,
.filter-row select {
    width: 100%;
    min-height: 46px;
    padding: 0 16px;
    color: #374151;
    background: #fff;
    border: 1px solid rgba(244, 114, 182, 0.16);
    border-radius: 16px;
    outline: none;
}

.filter-row.wide {
    flex-wrap: wrap;
}

.filter-row.wide input {
    min-width: min(420px, 100%);
    flex: 2 1 420px;
}

.filter-row.wide select,
.filter-row select {
    flex: 1 1 150px;
}

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

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

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

.movie-card {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(244, 114, 182, 0.16);
    border-radius: 24px;
    box-shadow: 0 14px 35px rgba(190, 24, 93, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    border-color: rgba(236, 72, 153, 0.42);
    box-shadow: 0 24px 52px rgba(190, 24, 93, 0.15);
    transform: translateY(-7px);
}

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    background: #fce7f3;
}

.poster-wrap img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.38s ease;
}

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

.poster-year,
.poster-play {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.poster-year {
    top: 12px;
    left: 12px;
    min-width: 54px;
    min-height: 28px;
    color: #fff;
    background: rgba(17, 24, 39, 0.72);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.poster-play {
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    color: #fff;
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(244, 63, 94, 0.28);
}

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

.card-meta-row {
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
}

.category-pill {
    color: #db2777;
}

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

.movie-card p {
    margin: 0 0 12px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.7;
}

.soft-panel {
    max-width: none;
    margin-top: 20px;
    background: linear-gradient(180deg, rgba(253, 242, 248, 0.86), rgba(255, 255, 255, 0.76));
}

.soft-panel > .section-head,
.soft-panel > .category-overview-grid {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}

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

.category-overview-card {
    padding: 20px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(244, 114, 182, 0.18);
    border-radius: 24px;
    box-shadow: 0 14px 34px rgba(190, 24, 93, 0.08);
}

.category-overview-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #111827;
    font-size: 18px;
    font-weight: 850;
}

.category-overview-head em {
    color: #db2777;
    font-size: 13px;
    font-style: normal;
}

.category-overview-card p {
    min-height: 68px;
    margin: 12px 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.75;
}

.category-sample-links {
    display: grid;
    gap: 8px;
}

.category-sample-links a {
    color: #4b5563;
    font-size: 13px;
}

.rank-panel {
    padding-top: 60px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 62px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 88px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(244, 114, 182, 0.16);
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(190, 24, 93, 0.08);
}

.rank-num {
    color: #f43f5e;
    font-size: 24px;
    font-weight: 900;
    text-align: center;
}

.rank-item img {
    width: 62px;
    height: 82px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-main {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.rank-main strong {
    overflow: hidden;
    color: #111827;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-main em {
    overflow: hidden;
    color: #6b7280;
    font-size: 13px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-hero {
    margin: 0;
    padding: 72px 22px;
    background: radial-gradient(circle at 14% 20%, rgba(244, 114, 182, 0.22), transparent 26%), linear-gradient(120deg, #fff1f2, #fdf2f8 48%, #ffffff);
}

.page-hero > div {
    max-width: 1240px;
    margin: 0 auto;
}

.page-hero h1 {
    margin: 10px 0 12px;
    color: #111827;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.page-hero span {
    display: block;
    max-width: 760px;
    color: #4b5563;
    font-size: 17px;
    line-height: 1.8;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    padding: 62px 22px;
}

.detail-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.12);
}

.detail-shell {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 30px 70px rgba(127, 29, 29, 0.22);
}

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

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

.breadcrumb a {
    color: #db2777;
}

.breadcrumb em {
    font-style: normal;
}

.detail-copy h1 {
    margin: 18px 0 14px;
    color: #111827;
    font-size: clamp(36px, 5vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.detail-one-line {
    max-width: 820px;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.9;
}

.detail-meta {
    margin: 18px 0;
}

.detail-meta span {
    display: inline-flex;
    min-height: 30px;
    padding: 5px 12px;
    color: #7f1d1d;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(244, 114, 182, 0.2);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.large-tags {
    margin-bottom: 26px;
}

.player-section {
    padding-top: 24px;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    background: #111827;
    border-radius: 30px;
    box-shadow: 0 28px 70px rgba(17, 24, 39, 0.22);
}

.movie-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111827;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    color: #fff;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.22), rgba(17, 24, 39, 0.78));
    border: 0;
    cursor: pointer;
}

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

.big-play {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    padding-left: 5px;
    color: #fff;
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    border-radius: 999px;
    box-shadow: 0 20px 42px rgba(244, 63, 94, 0.38);
    font-size: 34px;
}

.player-overlay strong {
    font-size: 18px;
}

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

.content-card {
    padding: 28px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(244, 114, 182, 0.16);
    border-radius: 26px;
    box-shadow: 0 16px 38px rgba(190, 24, 93, 0.08);
}

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

.content-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.95;
}

.site-footer {
    margin-top: 30px;
    padding: 42px 22px;
    background: linear-gradient(180deg, #fff7fb, #ffe4e6);
    border-top: 1px solid rgba(244, 114, 182, 0.18);
}

.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    color: #4b5563;
}

.footer-inner strong {
    color: #111827;
    font-size: 20px;
}

.footer-inner p {
    max-width: 520px;
    margin: 10px 0 0;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-content: start;
    font-weight: 750;
}

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

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

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

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

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

    .hero-carousel {
        min-height: 760px;
    }

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

    .hero-poster {
        width: min(320px, 100%);
        margin: 0 auto;
    }

    .hero-dots {
        left: 34px;
    }

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

    .search-line,
    .filter-row {
        flex-direction: column;
    }

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

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

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

    .detail-shell {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        max-width: 270px;
    }

    .detail-content {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
    }
}

@media (max-width: 540px) {
    .header-inner {
        height: 66px;
        padding: 0 16px;
    }

    .logo {
        font-size: 18px;
    }

    .logo-mark {
        width: 34px;
        height: 34px;
        border-radius: 12px;
    }

    .hero-section,
    .page-hero,
    .detail-hero {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-carousel {
        min-height: 700px;
        border-radius: 26px;
    }

    .hero-slide {
        padding: 26px;
    }

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

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

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

    .quick-search,
    .section-wrap,
    .filter-panel,
    .detail-content,
    .player-section,
    .category-preview {
        padding-left: 16px;
        padding-right: 16px;
    }
}