:root {
    --ink: #111827;
    --muted: #6b7280;
    --soft: #f8fafc;
    --line: #e5e7eb;
    --amber: #f59e0b;
    --orange: #f97316;
    --blue: #2563eb;
    --green: #16a34a;
    --slate: #0f172a;
    --card: #ffffff;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.07);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    max-width: 1280px;
    height: 68px;
    margin: 0 auto;
    padding: 0 22px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    white-space: nowrap;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    border-radius: 12px;
    box-shadow: 0 12px 26px rgba(245, 158, 11, 0.32);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    font-size: 14px;
    color: #374151;
}

.nav-links a {
    padding: 8px 0;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--orange);
}

.nav-search {
    display: flex;
    align-items: center;
    width: 280px;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.nav-search input,
.large-search input,
.catalog-controls input,
.catalog-controls select {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

.nav-search input {
    padding: 10px 14px;
}

.nav-search button,
.large-search button {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    font-weight: 700;
    cursor: pointer;
}

.nav-search button {
    padding: 10px 16px;
}

.menu-button {
    display: none;
    margin-left: auto;
    border: 0;
    background: transparent;
    font-size: 24px;
}

.hero-section {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(circle at 20% 10%, rgba(245, 158, 11, 0.22), transparent 30%), linear-gradient(135deg, #0f172a 0%, #111827 48%, #1f2937 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
    background-size: 32px 32px;
}

.hero-inner {
    position: relative;
    max-width: 1280px;
    min-height: 650px;
    margin: 0 auto;
    padding: 74px 22px 78px;
}

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

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

.hero-copy h1 {
    max-width: 760px;
    margin: 16px 0 18px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.05em;
    background: linear-gradient(90deg, #fde68a, #fb923c, #fef3c7);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero-copy p {
    max-width: 720px;
    color: #d1d5db;
    font-size: 18px;
}

.hero-line {
    color: #fff4d6 !important;
    font-size: 22px !important;
    font-weight: 700;
}

.eyebrow,
.soft-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 13px;
    font-weight: 700;
}

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

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
    color: #fff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 16px 34px rgba(249, 115, 22, 0.32);
}

.ghost-btn {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

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

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
    transform: perspective(1100px) rotateY(-6deg);
    transition: transform 0.45s ease;
}

.hero-poster:hover {
    transform: perspective(1100px) rotateY(0deg) translateY(-4px);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.18), transparent 46%);
}

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

.hero-dot {
    width: 34px;
    height: 7px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
}

.hero-dot.active {
    background: linear-gradient(90deg, var(--amber), var(--orange));
}

.section-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 22px;
}

.quick-search {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
    align-items: center;
    gap: 28px;
}

.quick-search h2,
.section-heading h2,
.ranking-panel h2,
.page-hero h1,
.detail-info h1,
.detail-content h2 {
    margin: 0;
    color: #111827;
    font-weight: 900;
    line-height: 1.15;
}

.quick-search h2,
.section-heading h2,
.ranking-panel h2 {
    font-size: 32px;
}

.quick-search p,
.section-heading p,
.page-hero p,
.detail-content p,
.movie-body p,
.wide-content p,
.rank-card p {
    color: var(--muted);
}

.large-search {
    display: flex;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

.large-search input {
    padding: 18px 20px;
    font-size: 16px;
}

.large-search button {
    min-width: 128px;
    padding: 0 22px;
}

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

.section-heading a {
    color: var(--orange);
    font-weight: 800;
}

.movie-grid {
    display: grid;
    gap: 24px;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    background: var(--card);
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #111827;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.badge {
    position: absolute;
    top: 14px;
    right: 14px;
    max-width: calc(100% - 28px);
    padding: 6px 10px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.movie-body {
    padding: 18px;
}

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

.movie-body h3 a:hover,
.wide-content h3 a:hover,
.rank-card h2 a:hover {
    color: var(--orange);
}

.movie-body p {
    min-height: 48px;
    margin: 0 0 14px;
    font-size: 14px;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: #6b7280;
    font-size: 13px;
}

.soft-section {
    background: linear-gradient(135deg, #f8fafc, #f3f4f6);
}

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

.category-tile {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    color: #fff;
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.category-tile:hover img {
    transform: scale(1.08);
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.16));
}

.category-tile span,
.category-tile p {
    position: relative;
    z-index: 1;
    display: block;
    padding: 0 22px;
}

.category-tile span {
    margin-top: 112px;
    font-size: 24px;
    font-weight: 900;
}

.category-tile p {
    margin: 8px 0 0;
    color: #e5e7eb;
    font-size: 14px;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 34px;
    align-items: start;
}

.ranking-panel {
    position: sticky;
    top: 88px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.ranking-panel ol {
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.ranking-panel li + li {
    border-top: 1px solid var(--line);
}

.ranking-panel li a {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    padding: 13px 0;
}

.rank-no {
    color: var(--orange);
    font-weight: 900;
}

.ranking-panel small {
    display: block;
    grid-column: 2;
    color: var(--muted);
}

.wide-list {
    display: grid;
    gap: 22px;
}

.wide-card {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.wide-cover img {
    width: 100%;
    height: 100%;
    min-height: 230px;
    object-fit: cover;
}

.wide-content {
    padding: 28px;
}

.wide-content h3 {
    margin: 14px 0 10px;
    font-size: 26px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.tag-row span {
    padding: 6px 10px;
    color: #374151;
    background: #f3f4f6;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.page-main {
    min-height: 70vh;
}

.page-hero {
    color: #fff;
    background: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.24), transparent 32%), linear-gradient(135deg, #0f172a, #111827 52%, #1f2937);
}

.page-hero > div {
    max-width: 1280px;
    margin: 0 auto;
    padding: 88px 22px;
}

.page-hero h1 {
    margin-top: 14px;
    color: #fff;
    font-size: clamp(36px, 6vw, 64px);
}

.page-hero p {
    max-width: 760px;
    color: #d1d5db;
    font-size: 18px;
}

.small-hero > div {
    padding: 62px 22px;
}

.category-block {
    max-width: 1280px;
    margin: 0 auto;
    padding: 46px 22px;
}

.catalog-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px 190px;
    gap: 14px;
    padding-bottom: 0;
}

.catalog-controls input,
.catalog-controls select {
    height: 50px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.rank-list {
    display: grid;
    gap: 14px;
}

.rank-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 20px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.rank-cover img {
    width: 150px;
    height: 98px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-card h2 {
    margin: 6px 0 4px;
    font-size: 22px;
}

.rank-card p {
    margin: 0 0 10px;
}

.detail-main {
    background: #fff;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 22px;
    color: var(--muted);
    font-size: 14px;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.24fr) minmax(320px, 0.76fr);
    gap: 34px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 22px 50px;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    background: #020617;
    border-radius: 24px;
    box-shadow: 0 26px 68px rgba(15, 23, 42, 0.26);
}

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

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    border: 0;
    color: #fff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.58));
    cursor: pointer;
}

.play-layer span {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    padding-left: 5px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    border-radius: 999px;
    box-shadow: 0 16px 40px rgba(249, 115, 22, 0.42);
    font-size: 30px;
}

.play-layer strong {
    font-size: 18px;
}

.play-layer.is-hidden {
    display: none;
}

.detail-info {
    align-self: center;
}

.detail-info h1 {
    margin: 18px 0 14px;
    font-size: clamp(34px, 5vw, 56px);
}

.lead-text {
    color: #374151;
    font-size: 20px;
    font-weight: 700;
}

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

.detail-meta span {
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #374151;
    font-size: 13px;
    font-weight: 800;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 10px;
}

.detail-content article {
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.detail-content h2 {
    margin-bottom: 12px;
    font-size: 28px;
}

.detail-content p {
    margin: 0;
    color: #374151;
    font-size: 17px;
}

.site-footer {
    margin-top: 40px;
    color: #d1d5db;
    background: #0f172a;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 42px 22px;
}

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

.footer-inner p {
    max-width: 620px;
    margin: 8px 0 0;
    color: #9ca3af;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

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

.hidden-card {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

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

    .feature-grid,
    .compact-grid,
    .latest-grid,
    .catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

    .ranking-panel {
        position: static;
    }
}

@media (max-width: 860px) {
    .main-nav {
        flex-wrap: wrap;
        height: auto;
        min-height: 64px;
        padding: 14px 18px;
    }

    .menu-button {
        display: block;
    }

    .nav-links {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding-top: 14px;
    }

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

    .hero-inner {
        min-height: 0;
        padding: 56px 18px 60px;
    }

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

    .hero-poster {
        transform: none;
    }

    .quick-search,
    .wide-card,
    .catalog-controls,
    .rank-card {
        grid-template-columns: 1fr;
    }

    .large-search {
        flex-direction: column;
        border-radius: 18px;
    }

    .large-search button {
        min-height: 50px;
    }

    .feature-grid,
    .compact-grid,
    .latest-grid,
    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wide-cover img,
    .rank-cover img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
    }

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

@media (max-width: 560px) {
    .logo {
        font-size: 18px;
    }

    .section-shell,
    .category-block,
    .page-hero > div,
    .detail-hero,
    .breadcrumb {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-copy p,
    .page-hero p {
        font-size: 16px;
    }

    .feature-grid,
    .compact-grid,
    .latest-grid,
    .catalog-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .movie-body p {
        min-height: auto;
    }
}
