:root {
    --color-orange: #f97316;
    --color-orange-dark: #ea580c;
    --color-rose: #fb7185;
    --color-pink: #ec4899;
    --color-slate: #0f172a;
    --color-slate-soft: #1e293b;
    --color-text: #1f2937;
    --color-muted: #64748b;
    --color-border: #f1f5f9;
    --shadow-card: 0 18px 50px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--color-text);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fff1f2 100%);
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: #ffffff;
    background: linear-gradient(90deg, var(--color-orange), var(--color-rose), var(--color-pink));
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.28);
}

.nav-container {
    width: min(1280px, calc(100% - 32px));
    min-height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand {
    font-size: 22px;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--color-orange);
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.25);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 9px 15px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.92);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
    border-radius: 99px;
}

.hero-carousel {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

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

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

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.08);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 30%, rgba(249, 115, 22, 0.36), transparent 30%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.72) 45%, rgba(15, 23, 42, 0.24) 100%),
        linear-gradient(0deg, rgba(15, 23, 42, 0.84), rgba(15, 23, 42, 0.05));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 96px 0 82px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fed7aa;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.hero-content h1 {
    max-width: 760px;
    margin: 0 0 18px;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 680px;
    margin: 0 0 28px;
    font-size: clamp(16px, 2vw, 21px);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.88);
}

.hero-actions,
.section-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.button-primary,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button-primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--color-orange), var(--color-pink));
    box-shadow: 0 14px 32px rgba(249, 115, 22, 0.35);
}

.button-secondary {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.button-light {
    color: var(--color-orange);
    background: #ffffff;
}

.button-primary:hover,
.button-secondary:hover,
.button-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
}

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

.hero-dot {
    width: 32px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: width 0.25s ease, background-color 0.25s ease;
}

.hero-dot.active {
    width: 60px;
    background: var(--color-orange);
}

.section {
    padding: 64px 0;
}

.section-soft {
    background: linear-gradient(90deg, #ffedd5 0%, #fce7f3 100%);
}

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

.section-title {
    margin: 0 0 8px;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.18;
    font-weight: 850;
    color: #111827;
}

.section-lead {
    max-width: 760px;
    margin: 0;
    color: var(--color-muted);
    line-height: 1.8;
}

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

.category-card {
    min-height: 150px;
    padding: 24px;
    border-radius: 24px;
    color: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-card);
}

.category-card strong {
    display: block;
    margin: 12px 0 8px;
    font-size: 21px;
}

.category-card span {
    font-size: 34px;
}

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
}

.tone-orange { background: linear-gradient(135deg, #f97316, #fb7185); }
.tone-pink { background: linear-gradient(135deg, #ec4899, #f472b6); }
.tone-red { background: linear-gradient(135deg, #ef4444, #f97316); }
.tone-rose { background: linear-gradient(135deg, #fb7185, #e879f9); }
.tone-slate { background: linear-gradient(135deg, #334155, #0f172a); }
.tone-amber { background: linear-gradient(135deg, #f59e0b, #f97316); }
.tone-violet { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.tone-blue { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.tone-green { background: linear-gradient(135deg, #22c55e, #14b8a6); }
.tone-cyan { background: linear-gradient(135deg, #06b6d4, #2563eb); }

.tool-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
    padding: 16px;
    border: 1px solid rgba(248, 113, 113, 0.18);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
}

.search-box {
    flex: 1 1 380px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 50px;
    padding: 0 16px;
    border-radius: 999px;
    color: var(--color-orange);
    background: #fff7ed;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--color-text);
    background: transparent;
}

.quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-button {
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    color: #475569;
    background: #f8fafc;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-card);
}

.movie-cover-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #ffedd5, #fce7f3);
}

.movie-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover .movie-cover {
    transform: scale(1.07);
}

.movie-year,
.rank-mark {
    position: absolute;
    top: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
}

.movie-year {
    right: 12px;
}

.rank-mark {
    left: 12px;
    background: linear-gradient(90deg, var(--color-orange), var(--color-pink));
}

.movie-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--color-orange);
    background: rgba(255, 255, 255, 0.92);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

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

.movie-card-body h3 a:hover {
    color: var(--color-orange);
}

.movie-meta,
.movie-one-line {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.7;
}

.movie-meta {
    font-size: 13px;
}

.movie-one-line {
    display: -webkit-box;
    min-height: 52px;
    margin-top: 8px;
    overflow: hidden;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tag-row span {
    padding: 5px 9px;
    border-radius: 999px;
    color: #c2410c;
    font-size: 12px;
    background: #ffedd5;
}

.page-hero {
    padding: 64px 0 42px;
    color: #ffffff;
    background:
        radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.55), transparent 34%),
        linear-gradient(115deg, #f97316 0%, #fb7185 45%, #0f172a 100%);
}

.page-hero h1 {
    max-width: 860px;
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.035em;
}

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

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

.breadcrumb a:hover {
    color: #ffffff;
}

.detail-main {
    padding-bottom: 64px;
}

.detail-hero {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    margin-top: -1px;
    padding: 48px 0;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow-card);
    background: linear-gradient(135deg, #ffedd5, #fce7f3);
}

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

.detail-info h1 {
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.detail-intro {
    margin: 0 0 22px;
    color: #475569;
    font-size: 18px;
    line-height: 1.9;
}

.meta-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 20px;
}

.meta-list div {
    padding: 12px 14px;
    border-radius: 18px;
    background: #fff7ed;
}

.meta-list dt {
    margin-bottom: 4px;
    color: #c2410c;
    font-size: 13px;
    font-weight: 800;
}

.meta-list dd {
    margin: 0;
    color: #334155;
}

.player-section,
.detail-content,
.related-section {
    margin-top: 34px;
}

.block-card {
    padding: 28px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.block-card h2,
.player-section h2,
.related-section h2 {
    margin: 0 0 18px;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 850;
}

.block-card p {
    margin: 0 0 18px;
    color: #475569;
    line-height: 2;
    font-size: 16px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: var(--shadow-card);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    border: 0;
    padding: 0;
    overflow: hidden;
    color: #ffffff;
    background: #020617;
    cursor: pointer;
}

.player-overlay img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
    filter: blur(1px) saturate(1.08);
}

.player-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.32), transparent 25%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.22));
}

.player-button {
    position: relative;
    z-index: 2;
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--color-orange);
    font-size: 34px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.player-shell.is-playing .player-overlay {
    display: none;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

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

.rank-item strong {
    display: block;
    margin-bottom: 6px;
    line-height: 1.35;
}

.rank-item p {
    margin: 0;
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.6;
}

.site-footer {
    color: #ffffff;
    background: linear-gradient(90deg, #1e293b, #0f172a);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 30px;
    padding: 48px 0;
}

.footer-grid h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.footer-grid p,
.footer-grid a {
    display: block;
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.75;
}

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

.footer-brand {
    margin-bottom: 14px;
    font-size: 20px;
}

.footer-bottom {
    padding: 18px 16px;
    color: rgba(255, 255, 255, 0.66);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

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

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

    .nav-menu {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border-radius: 22px;
        background: linear-gradient(135deg, var(--color-orange), var(--color-pink));
        box-shadow: var(--shadow-card);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-link {
        padding: 13px 16px;
    }

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

    .section-header,
    .tool-panel {
        align-items: stretch;
        flex-direction: column;
    }

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

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

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

@media (max-width: 560px) {
    .container,
    .nav-container,
    .hero-content {
        width: min(100% - 24px, 1280px);
    }

    .hero-content {
        padding-top: 82px;
    }

    .hero-actions,
    .section-actions,
    .detail-actions,
    .quick-filters {
        align-items: stretch;
        flex-direction: column;
    }

    .button-primary,
    .button-secondary,
    .button-light,
    .filter-button {
        width: 100%;
    }

    .movie-grid,
    .category-grid,
    .movie-grid.compact-grid,
    .rank-list,
    .footer-grid,
    .meta-list {
        grid-template-columns: 1fr;
    }

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

    .rank-item img {
        width: 92px;
        height: 124px;
    }

    .block-card {
        padding: 22px;
    }
}
