* {
    box-sizing: border-box;
}

:root {
    --orange: #f97316;
    --pink: #ec4899;
    --rose: #f43f5e;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--slate-900);
    background: linear-gradient(180deg, #fff7ed 0%, #f8fafc 34%, #ffffff 100%);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, #fb923c, #f472b6, #fb7185);
    box-shadow: 0 14px 35px rgba(244, 63, 94, 0.24);
}

.navbar {
    max-width: 1200px;
    height: 66px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links a {
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--orange);
    background: #ffffff;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 22px;
}

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fb923c 0%, #f472b6 48%, #f43f5e 100%);
    color: #ffffff;
}

.hero-inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 640px;
    padding: 88px 20px 78px;
}

.hero-orb {
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    filter: blur(1px);
    animation: floatOrb 8s ease-in-out infinite;
}

.hero-orb-one {
    width: 260px;
    height: 260px;
    top: 48px;
    left: 8%;
}

.hero-orb-two {
    width: 360px;
    height: 360px;
    right: -90px;
    bottom: -90px;
    animation-delay: 1.6s;
}

@keyframes floatOrb {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(18px, -18px, 0) scale(1.08);
    }
}

.hero-slides {
    position: relative;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
    gap: 44px;
    align-items: center;
}

.hero-slide.is-active {
    display: grid;
    animation: heroFade 0.55s ease both;
}

@keyframes heroFade {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.eyebrow {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.86);
}

.eyebrow.dark {
    color: var(--orange);
}

.hero-copy h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.07em;
}

.hero-copy h2 {
    margin: 24px 0 0;
    font-size: clamp(26px, 3vw, 42px);
    letter-spacing: -0.04em;
}

.hero-copy p:not(.eyebrow) {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
    line-height: 1.8;
}

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

.hero-tags span,
.tag-list span {
    border-radius: 999px;
    padding: 8px 13px;
    font-size: 13px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

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

.btn {
    border-radius: 999px;
    padding: 13px 24px;
    font-weight: 900;
    transition: 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.btn-light {
    color: var(--orange);
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 30px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
    transform: rotate(2deg);
}

.hero-poster img {
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

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

.hero-play,
.play-chip {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 74px;
    height: 74px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    font-size: 28px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
}

.hero-dots {
    display: flex;
    gap: 10px;
    margin-top: 34px;
}

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

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

.search-band,
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 20px;
}

.search-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
    gap: 28px;
    align-items: center;
    margin-top: -36px;
    background: #ffffff;
    border-radius: 28px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
}

.search-band h2,
.section-head h2,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    letter-spacing: -0.05em;
}

.search-band h2,
.section-head h2 {
    font-size: clamp(26px, 3vw, 38px);
}

.inline-search,
.filter-bar {
    display: flex;
    gap: 12px;
}

.inline-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 50px;
    border: 1px solid var(--slate-200);
    border-radius: 16px;
    padding: 0 16px;
    color: var(--slate-800);
    background: #ffffff;
    font: inherit;
    outline: none;
}

.inline-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: #fb923c;
    box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.16);
}

.inline-search button {
    min-width: 96px;
    border: 0;
    border-radius: 16px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(90deg, #f97316, #ec4899);
    cursor: pointer;
}

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

.section-head.compact {
    align-items: center;
}

.section-head a {
    color: var(--orange);
    font-weight: 900;
}

.soft-section {
    max-width: none;
    padding-left: max(20px, calc((100vw - 1200px) / 2 + 20px));
    padding-right: max(20px, calc((100vw - 1200px) / 2 + 20px));
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff7ed 42%, rgba(255, 255, 255, 0));
}

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

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

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

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

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

.movie-card {
    min-width: 0;
}

.poster-link {
    display: block;
}

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 16 / 10;
    background: var(--slate-100);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

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

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

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

.play-chip {
    width: 52px;
    height: 52px;
    opacity: 0;
    transition: 0.24s ease;
}

.poster-link:hover .play-chip {
    opacity: 1;
}

.duration-chip,
.category-chip,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    padding: 8px 10px;
    backdrop-filter: blur(10px);
}

.duration-chip {
    right: 10px;
    top: 10px;
    background: rgba(15, 23, 42, 0.68);
}

.category-chip {
    left: 10px;
    bottom: 10px;
    background: rgba(249, 115, 22, 0.92);
}

.rank-badge {
    left: 10px;
    top: 10px;
    background: linear-gradient(135deg, #f97316, #ec4899);
}

.movie-title {
    display: -webkit-box;
    margin-top: 14px;
    color: var(--slate-900);
    font-size: 17px;
    font-weight: 900;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.poster-link:hover .movie-title {
    color: var(--orange);
}

.movie-desc {
    display: -webkit-box;
    margin: 8px 0 0;
    color: var(--slate-600);
    font-size: 14px;
    line-height: 1.7;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 11px;
    color: var(--slate-500);
    font-size: 12px;
    font-weight: 700;
}

.movie-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 8px;
    color: var(--slate-400);
}

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

.category-card,
.category-overview-card {
    display: flex;
    min-height: 180px;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border-radius: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #fb923c, #ec4899);
    box-shadow: 0 18px 40px rgba(236, 72, 153, 0.18);
    transition: 0.2s ease;
}

.category-card:nth-child(3n),
.category-overview-card:nth-child(3n) {
    background: linear-gradient(135deg, #f43f5e, #fb923c);
}

.category-card:nth-child(3n + 1),
.category-overview-card:nth-child(3n + 1) {
    background: linear-gradient(135deg, #f97316, #f472b6);
}

.category-card:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
}

.category-card span,
.category-overview-title {
    font-size: 22px;
    font-weight: 950;
}

.category-card strong,
.category-overview-card p {
    display: block;
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    line-height: 1.75;
    font-weight: 600;
}

.category-card em {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-style: normal;
    line-height: 1.6;
}

.category-overview-card div {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 700;
}

.two-column {
    display: grid;
    grid-template-columns: 0.88fr 1.12fr;
    gap: 34px;
    align-items: start;
}

.rank-panel {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 44px 92px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    transition: 0.2s ease;
}

.rank-row:hover {
    background: #fff7ed;
}

.rank-num {
    color: var(--orange);
    font-size: 26px;
    font-weight: 950;
    text-align: center;
}

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

.rank-copy {
    min-width: 0;
}

.rank-copy strong,
.rank-copy em,
.rank-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-copy strong {
    color: var(--slate-900);
    font-size: 15px;
}

.rank-copy em {
    margin-top: 4px;
    color: var(--slate-600);
    font-size: 13px;
    font-style: normal;
}

.rank-copy small {
    margin-top: 4px;
    color: var(--slate-500);
}

.page-hero {
    color: #ffffff;
    background: linear-gradient(135deg, #fb923c, #f472b6, #f43f5e);
}

.page-hero.slim {
    max-width: 1200px;
    margin: 36px auto 0;
    padding: 54px 36px;
    border-radius: 30px;
    box-shadow: 0 25px 60px rgba(244, 63, 94, 0.18);
}

.page-hero h1 {
    font-size: clamp(34px, 5vw, 58px);
}

.page-hero p:not(.eyebrow) {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.8;
}

.filter-bar {
    margin-bottom: 28px;
}

.filter-bar select {
    max-width: 180px;
}

.breadcrumb {
    max-width: 1200px;
    margin: 28px auto 0;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--slate-500);
    font-size: 14px;
    font-weight: 700;
}

.breadcrumb a {
    color: var(--orange);
}

.detail-layout {
    max-width: 1200px;
    margin: 28px auto 0;
    padding: 0 20px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 30px;
    align-items: stretch;
}

.player-panel,
.detail-info,
.detail-text article {
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.player-panel {
    padding: 14px;
}

.video-box {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.video-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #020617;
}

.player-cover {
    position: absolute;
    inset: 0;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.28), rgba(15, 23, 42, 0.82));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    text-align: center;
    padding: 24px;
}

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

.big-play {
    width: 84px;
    height: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #fb923c, #ec4899);
    box-shadow: 0 18px 40px rgba(236, 72, 153, 0.25);
    font-size: 34px;
}

.player-cover strong {
    font-size: clamp(20px, 3vw, 34px);
}

.player-cover em {
    font-style: normal;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.82);
}

.detail-info {
    padding: 30px;
}

.detail-info h1 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
}

.detail-info p:not(.eyebrow) {
    color: var(--slate-600);
    font-size: 16px;
    line-height: 1.9;
}

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

.detail-meta span,
.tag-list span {
    color: var(--slate-700);
    background: var(--slate-100);
}

.detail-meta span {
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 800;
}

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

.detail-text article {
    padding: 28px;
}

.detail-text h2 {
    margin: 0 0 14px;
    font-size: 26px;
    letter-spacing: -0.04em;
}

.detail-text p {
    margin: 0;
    color: var(--slate-700);
    font-size: 16px;
    line-height: 2;
}

.site-footer {
    margin-top: 56px;
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a, #1e293b, #0f172a);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 46px 20px 24px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 34px;
}

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

.footer-brand h2 {
    color: #fb923c;
    font-size: 25px;
}

.footer-brand p,
.footer-links a,
.copyright {
    color: #cbd5e1;
}

.footer-brand p {
    line-height: 1.8;
}

.footer-links div {
    display: grid;
    gap: 10px;
}

.footer-links a:hover {
    color: #ffffff;
}

.copyright {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    font-size: 14px;
}

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

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

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

    .two-column,
    .detail-layout,
    .detail-text,
    .search-band {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .navbar {
        height: auto;
        min-height: 64px;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 0 0 14px;
    }

    .nav-links.is-open {
        display: flex;
    }

    .hero-inner {
        min-height: auto;
        padding: 52px 20px;
    }

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

    .hero-poster {
        max-width: 280px;
        margin: 0 auto;
    }

    .movie-grid,
    .featured-grid,
    .catalog-grid,
    .mini-grid,
    .related-grid,
    .category-grid,
    .category-overview-grid,
    .rank-panel.wide,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .search-band,
    .section {
        padding: 36px 16px;
    }

    .page-hero.slim {
        margin: 18px 16px 0;
        padding: 36px 22px;
    }

    .section-head,
    .filter-bar,
    .inline-search {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-bar select {
        max-width: none;
    }

    .detail-layout,
    .breadcrumb {
        padding-left: 16px;
        padding-right: 16px;
    }

    .detail-info,
    .detail-text article {
        padding: 22px;
    }

    .rank-row {
        grid-template-columns: 34px 82px minmax(0, 1fr);
    }
}
