body {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: #1f2937;
}

.site-header {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(244, 63, 94, 0.14);
    backdrop-filter: blur(14px);
}

.header-inner {
    min-height: 72px;
}

.brand {
    color: #111827;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #e11d48, #f97316);
    box-shadow: 0 15px 35px rgba(225, 29, 72, 0.3);
}

.brand-text {
    font-size: 1.35rem;
}

.nav-link {
    color: #4b5563;
    font-weight: 700;
    transition: color 0.2s ease;
}

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

.menu-button {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    color: #e11d48;
    background: #fff1f2;
    font-size: 1.25rem;
}

.mobile-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.25s ease;
}

.mobile-panel.is-open {
    grid-template-rows: 1fr;
    padding-bottom: 1rem;
}

.mobile-panel > * {
    overflow: hidden;
}

.mobile-panel a {
    display: block;
    padding: 0.75rem 0;
    color: #4b5563;
    font-weight: 700;
    border-top: 1px solid rgba(244, 63, 94, 0.12);
}

.hero-carousel {
    position: relative;
    height: 620px;
    overflow: hidden;
    background: linear-gradient(120deg, #be123c, #db2777 50%, #f97316);
}

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

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

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.28;
    transform: scale(1.04);
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.08));
}

.hero-shell {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 46rem;
    color: #ffffff;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.8rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    font-weight: 700;
}

.hero-content h1,
.hero-content h2 {
    font-size: clamp(2.4rem, 6vw, 5.1rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.hero-content p {
    max-width: 42rem;
    margin-top: 1.25rem;
    font-size: 1.15rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.8rem 1.25rem;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    color: #e11d48;
    background: #ffffff;
    box-shadow: 0 20px 45px rgba(255, 255, 255, 0.25);
}

.btn-secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

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

.hero-dots {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 2rem;
    display: flex;
    gap: 0.6rem;
    transform: translateX(-50%);
}

.hero-dots button {
    width: 2.2rem;
    height: 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
}

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

.section-shell {
    padding: 4rem 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-heading h2,
.page-title h1 {
    color: #111827;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.035em;
}

.section-heading p,
.page-title p {
    margin-top: 0.4rem;
    color: #6b7280;
    line-height: 1.8;
}

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

.card-cover {
    aspect-ratio: 2 / 3;
    background: #111827;
}

.card-play {
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.48));
    opacity: 0;
}

.movie-card:hover .card-play {
    opacity: 1;
}

.play-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.3rem;
    height: 3.3rem;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(225, 29, 72, 0.92);
    box-shadow: 0 16px 35px rgba(225, 29, 72, 0.35);
}

.movie-title {
    min-height: 3rem;
    font-size: 1rem;
    line-height: 1.45;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 1.5rem;
    padding: 0 0.55rem;
    border-radius: 999px;
    color: #be123c;
    background: #fff1f2;
    font-size: 0.75rem;
    font-weight: 700;
}

.rank-badge {
    position: absolute;
    left: 0.65rem;
    bottom: 0.65rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #e11d48);
    font-size: 0.75rem;
    font-weight: 900;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 12rem;
    padding: 1.5rem;
    border-radius: 1.2rem;
    color: #ffffff;
    background: linear-gradient(135deg, #be123c, #f97316);
    box-shadow: 0 20px 45px rgba(225, 29, 72, 0.16);
}

.category-card:nth-child(2n) {
    background: linear-gradient(135deg, #db2777, #7c3aed);
}

.category-card:nth-child(3n) {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.category-card h2,
.category-card h3 {
    position: relative;
    z-index: 1;
    font-size: 1.45rem;
    font-weight: 900;
}

.category-card p {
    position: relative;
    z-index: 1;
    margin-top: 0.65rem;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.75;
}

.category-card::after {
    content: "";
    position: absolute;
    right: -2rem;
    bottom: -2rem;
    width: 8rem;
    height: 8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
}

.filter-panel {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0 2rem;
    padding: 1rem;
    border: 1px solid rgba(244, 63, 94, 0.14);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 20px 45px rgba(17, 24, 39, 0.05);
}

.search-input {
    width: 100%;
    min-height: 3rem;
    padding: 0 1rem;
    border: 1px solid rgba(244, 63, 94, 0.18);
    border-radius: 999px;
    outline: none;
    background: #ffffff;
}

.search-input:focus {
    border-color: #e11d48;
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.filter-buttons button {
    min-height: 2.5rem;
    padding: 0 1rem;
    border-radius: 999px;
    color: #be123c;
    background: #fff1f2;
    font-weight: 800;
}

.filter-buttons button.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, #e11d48, #f97316);
}

.filter-card.is-hidden {
    display: none;
}

.rank-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.rank-list {
    display: grid;
    gap: 0.75rem;
}

.rank-item {
    display: grid;
    grid-template-columns: auto 4.5rem 1fr auto;
    align-items: center;
    gap: 0.9rem;
    padding: 0.75rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 35px rgba(17, 24, 39, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(17, 24, 39, 0.1);
}

.rank-number {
    width: 2.3rem;
    color: #e11d48;
    font-size: 1.1rem;
    font-weight: 900;
    text-align: center;
}

.rank-item img {
    width: 4.5rem;
    height: 6.2rem;
    border-radius: 0.75rem;
    object-fit: cover;
    background: #111827;
}

.rank-info {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.rank-info strong {
    overflow: hidden;
    color: #111827;
    font-weight: 900;
    white-space: nowrap;
    text-overflow: ellipsis;
}

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

.rank-heat {
    color: #f97316;
    font-weight: 900;
}

.page-hero {
    padding: 5rem 0 2rem;
}

.page-title {
    max-width: 52rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1rem;
    color: #6b7280;
    font-size: 0.92rem;
}

.breadcrumb a {
    color: #e11d48;
    font-weight: 700;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 4rem;
}

.player-frame {
    position: relative;
    overflow: hidden;
    border-radius: 1.4rem;
    background: #050505;
    box-shadow: 0 28px 70px rgba(17, 24, 39, 0.28);
}

.player-frame video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #050505;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    z-index: 2;
}

.player-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.7));
}

.player-overlay.is-hidden {
    display: none;
}

.player-button {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #e11d48, #f97316);
    font-size: 2rem;
    box-shadow: 0 20px 50px rgba(225, 29, 72, 0.42);
}

.detail-card {
    padding: 1.5rem;
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
}

.detail-card h2 {
    margin-bottom: 1rem;
    color: #111827;
    font-size: 1.45rem;
    font-weight: 900;
}

.detail-card p {
    color: #4b5563;
    line-height: 1.95;
}

.info-table {
    display: grid;
    gap: 0.75rem;
}

.info-row {
    display: grid;
    grid-template-columns: 5rem 1fr;
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(244, 63, 94, 0.12);
}

.info-row span:first-child {
    color: #9f1239;
    font-weight: 900;
}

.pagination-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.pagination-links a {
    display: inline-flex;
    align-items: center;
    min-height: 2.8rem;
    padding: 0 1rem;
    border-radius: 999px;
    color: #e11d48;
    background: #fff1f2;
    font-weight: 800;
}

.site-footer {
    margin-top: 3rem;
    color: #d1d5db;
    background: #111827;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.site-footer p {
    max-width: 28rem;
    color: #9ca3af;
    line-height: 1.8;
}

.site-footer h3 {
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 900;
}

.site-footer a {
    display: block;
    margin: 0.45rem 0;
    color: #d1d5db;
}

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

.footer-bottom {
    padding: 1.25rem;
    color: #9ca3af;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 640px) {
    .movie-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (min-width: 1024px) {
    .movie-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

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

    .rank-layout {
        grid-template-columns: 1.2fr 0.8fr;
    }

    .detail-layout {
        grid-template-columns: minmax(0, 1fr) 22rem;
    }

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

@media (max-width: 767px) {
    .hero-carousel {
        height: 560px;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-heading {
        display: block;
    }

    .rank-item {
        grid-template-columns: auto 3.8rem 1fr;
    }

    .rank-heat {
        display: none;
    }

    .rank-item img {
        width: 3.8rem;
        height: 5.2rem;
    }
}

.detail-card .btn-secondary,
.filter-panel .btn-secondary {
    color: #e11d48;
    background: #fff1f2;
    border-color: rgba(244, 63, 94, 0.18);
}

.category-sample-links {
    display: grid;
    gap: 0.45rem;
    margin-top: 1rem;
}

.category-sample-links a {
    color: #e11d48;
    font-weight: 700;
}

.category-sample-links a:hover {
    color: #be123c;
}
