:root {
    --color-orange: #f97316;
    --color-orange-dark: #ea580c;
    --color-red: #ef4444;
    --color-green: #16a34a;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-500: #6b7280;
    --color-gray-700: #374151;
    --color-gray-900: #111827;
    --shadow-card: 0 10px 30px rgba(17, 24, 39, 0.10);
    --shadow-hover: 0 18px 45px rgba(17, 24, 39, 0.18);
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--color-gray-900);
    background: var(--color-gray-50);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.85);
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-gray-900);
    font-size: 24px;
    font-weight: 800;
    white-space: nowrap;
}

.site-logo__mark {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--color-orange), var(--color-red));
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.32);
    font-size: 16px;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    color: var(--color-gray-700);
    font-weight: 700;
}

.main-nav a {
    position: relative;
    padding: 22px 0;
    transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: var(--color-orange);
}

.main-nav a::after {
    position: absolute;
    right: 0;
    bottom: 14px;
    left: 0;
    height: 3px;
    content: "";
    background: linear-gradient(90deg, var(--color-orange), var(--color-red));
    border-radius: 999px;
    opacity: 0;
    transform: scaleX(0.5);
    transition: all 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 0;
    background: var(--color-gray-100);
    border-radius: 12px;
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--color-gray-900);
    border-radius: 999px;
}

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

.hero::before,
.hero::after {
    position: absolute;
    content: "";
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    filter: blur(4px);
}

.hero::before {
    top: -120px;
    right: -80px;
    width: 340px;
    height: 340px;
}

.hero::after {
    bottom: -170px;
    left: -90px;
    width: 380px;
    height: 380px;
}

.hero-inner {
    position: relative;
    z-index: 2;
    padding: 76px 0 64px;
}

.hero-slider {
    position: relative;
}

.hero-slide {
    display: none;
    align-items: center;
    grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.94fr);
    gap: 48px;
}

.hero-slide.is-active {
    display: grid;
    animation: fade-up 0.5s ease both;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 7px 13px;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

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

.hero p {
    max-width: 700px;
    margin: 0 0 26px;
    color: #fff7ed;
    font-size: clamp(17px, 2.2vw, 22px);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.hero-tags span,
.tag-row span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

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

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

.button,
.section-link,
.search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--color-orange), var(--color-red));
    border-radius: 999px;
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.28);
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover,
.section-link:hover,
.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(249, 115, 22, 0.36);
}

.button--ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.34);
    box-shadow: none;
}

.hero-poster {
    position: relative;
    min-height: 430px;
}

.hero-poster::before {
    position: absolute;
    inset: 34px -16px -18px 36px;
    content: "";
    background: rgba(255, 255, 255, 0.16);
    border-radius: 34px;
    transform: rotate(6deg);
}

.hero-poster a {
    position: relative;
    display: block;
    overflow: hidden;
    height: 430px;
    background: rgba(17, 24, 39, 0.18);
    border: 10px solid rgba(255, 255, 255, 0.22);
    border-radius: 34px;
    box-shadow: 0 35px 80px rgba(127, 29, 29, 0.35);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-poster__label {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    padding: 18px;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.24), rgba(17, 24, 39, 0.86));
    border-radius: 22px;
}

.hero-poster__label strong {
    display: block;
    margin-bottom: 4px;
    font-size: 22px;
}

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

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

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

.section {
    padding: 54px 0;
}

.section--white {
    background: #fff;
}

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

.section-heading h1,
.section-heading h2 {
    margin: 0;
    color: var(--color-gray-900);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.16;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-heading p {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--color-gray-500);
    font-size: 16px;
}

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

.movie-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(229, 231, 235, 0.72);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.movie-card__cover {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 5.3;
    background: #111827;
}

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

.movie-card:hover .movie-card__cover img {
    transform: scale(1.06);
}

.movie-card__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.02), rgba(17, 24, 39, 0.72));
}

.movie-card__play {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 13px;
    color: #fff;
    background: rgba(249, 115, 22, 0.92);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-grid;
    min-width: 34px;
    height: 34px;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--color-orange), var(--color-red));
    border-radius: 10px;
    font-weight: 900;
}

.movie-card__body {
    padding: 16px;
}

.movie-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--color-gray-500);
    font-size: 12px;
    font-weight: 800;
}

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

.movie-card h3 a:hover,
.small-card strong a:hover,
.related-link:hover {
    color: var(--color-orange);
}

.movie-card p {
    display: -webkit-box;
    min-height: 45px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--color-gray-500);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-row span,
.detail-tags span {
    color: #9a3412;
    background: #ffedd5;
}

.feature-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 26px;
}

.small-card-list {
    display: grid;
    gap: 16px;
}

.small-card {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(229, 231, 235, 0.72);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
}

.small-card__image {
    height: 128px;
    background: #111827;
}

.small-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.small-card div:last-child {
    padding: 12px 14px 12px 0;
}

.small-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
    line-height: 1.35;
}

.small-card span,
.small-card p {
    display: block;
    margin: 0;
    color: var(--color-gray-500);
    font-size: 13px;
}

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

.category-card {
    display: flex;
    min-height: 156px;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    color: #fff;
    background: linear-gradient(135deg, #fb923c, #ef4444);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card strong {
    font-size: 22px;
    font-weight: 900;
}

.category-card span {
    color: #fff7ed;
    font-size: 14px;
}

.page-hero {
    color: #fff;
    background: linear-gradient(135deg, #fb923c, #f97316 46%, #ef4444);
}

.page-hero .container {
    padding: 56px 0;
}

.page-hero h1 {
    max-width: 880px;
    margin: 12px 0 14px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: #fff7ed;
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 700;
}

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

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 180px auto;
    gap: 12px;
    margin: 0 0 26px;
    padding: 18px;
    background: #fff;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 26px rgba(17, 24, 39, 0.06);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    color: var(--color-gray-900);
    background: var(--color-gray-50);
    border: 1px solid var(--color-gray-200);
    border-radius: 12px;
    outline: none;
    font: inherit;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--color-orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.no-results {
    display: none;
    padding: 28px;
    color: var(--color-gray-500);
    text-align: center;
    background: #fff;
    border-radius: var(--radius-lg);
}

.no-results.is-visible {
    display: block;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    gap: 30px;
    align-items: start;
}

.player-card,
.detail-card {
    background: #fff;
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 24px;
    box-shadow: var(--shadow-card);
}

.player-card {
    overflow: hidden;
}

.player-shell {
    position: relative;
    overflow: hidden;
    background: #030712;
    aspect-ratio: 16 / 9;
}

.player-shell video {
    display: block;
    width: 100%;
    height: 100%;
    background: #030712;
    object-fit: contain;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #fff;
    background: radial-gradient(circle at center, rgba(17, 24, 39, 0.12), rgba(3, 7, 18, 0.55));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-overlay span {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 0 26px;
    background: linear-gradient(135deg, var(--color-orange), var(--color-red));
    border-radius: 999px;
    box-shadow: 0 18px 42px rgba(249, 115, 22, 0.38);
    font-size: 18px;
    font-weight: 900;
}

.player-caption {
    padding: 18px 20px;
}

.player-caption h2 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 900;
}

.player-caption p {
    margin: 0;
    color: var(--color-gray-500);
}

.detail-card {
    padding: 24px;
}

.poster-detail {
    overflow: hidden;
    margin-bottom: 20px;
    background: #111827;
    border-radius: 20px;
    aspect-ratio: 4 / 4.8;
}

.poster-detail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.detail-meta div {
    padding: 12px;
    background: var(--color-gray-50);
    border-radius: 14px;
}

.detail-meta span {
    display: block;
    color: var(--color-gray-500);
    font-size: 12px;
    font-weight: 800;
}

.detail-meta strong {
    display: block;
    margin-top: 2px;
    font-size: 15px;
}

.article-block {
    margin-top: 34px;
    padding: 28px;
    background: #fff;
    border: 1px solid rgba(229, 231, 235, 0.82);
    border-radius: 24px;
    box-shadow: var(--shadow-card);
}

.article-block h2 {
    margin: 0 0 12px;
    font-size: 26px;
    font-weight: 900;
}

.article-block p {
    margin: 0 0 16px;
    color: var(--color-gray-700);
    font-size: 16px;
}

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

.related-link {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    background: var(--color-gray-50);
    border-radius: 18px;
}

.related-link img {
    width: 82px;
    height: 108px;
    object-fit: cover;
    background: #111827;
    border-radius: 12px;
}

.related-link strong {
    display: block;
    margin-bottom: 5px;
    line-height: 1.35;
}

.related-link span {
    display: block;
    color: var(--color-gray-500);
    font-size: 13px;
}

.site-footer {
    margin-top: 30px;
    color: #d1d5db;
    background: var(--color-gray-900);
}

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

.site-footer h2,
.site-footer h3 {
    margin: 0 0 14px;
    color: #fff;
}

.site-footer p {
    max-width: 420px;
    margin: 0;
    color: #9ca3af;
}

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

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

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

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

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

@media (max-width: 980px) {
    .mobile-menu-button {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 68px;
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        background: #fff;
        border: 1px solid var(--color-gray-200);
        border-radius: 18px;
        box-shadow: var(--shadow-hover);
    }

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

    .main-nav a {
        padding: 12px 14px;
        border-radius: 12px;
    }

    .main-nav a::after {
        display: none;
    }

    .hero-slide,
    .feature-layout,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        min-height: auto;
    }

    .hero-poster a {
        height: 360px;
    }

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

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

    .filter-panel {
        grid-template-columns: 1fr 1fr;
    }

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

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

    .site-logo {
        font-size: 20px;
    }

    .hero-inner {
        padding: 48px 0 42px;
    }

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

    .hero-poster a {
        height: 300px;
        border-width: 6px;
        border-radius: 24px;
    }

    .movie-grid,
    .category-grid,
    .footer-grid,
    .related-grid,
    .filter-panel,
    .detail-meta {
        grid-template-columns: 1fr;
    }

    .small-card {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .small-card__image {
        height: 116px;
    }

    .article-block,
    .detail-card {
        padding: 20px;
    }
}
