:root {
    --cream-50: #fffaf5;
    --cream-100: #fff2e3;
    --cream-200: #f7eadb;
    --frosting-50: #fff7ef;
    --frosting-100: #fdebdc;
    --frosting-300: #f9c29a;
    --frosting-500: #f06c25;
    --frosting-600: #d95a1b;
    --dawn-100: #ffedd5;
    --dawn-200: #fed7aa;
    --dawn-500: #f97316;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #f0dfd0;
    --card: rgba(255, 255, 255, 0.92);
    --shadow: 0 24px 80px rgba(217, 90, 27, 0.13);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, var(--cream-50), #ffffff 34%, var(--frosting-50));
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 50;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.68));
    backdrop-filter: blur(18px);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 34px rgba(31, 41, 55, 0.08);
}

.site-nav {
    width: min(1180px, calc(100% - 32px));
    height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--frosting-500), var(--dawn-500));
    box-shadow: 0 14px 34px rgba(240, 108, 37, 0.28);
}

.brand-copy {
    display: grid;
    line-height: 1.1;
}

.brand-copy strong,
.footer-brand {
    font-size: 20px;
    background: linear-gradient(135deg, var(--frosting-600), var(--dawn-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-copy small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

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

.nav-link {
    position: relative;
    color: #374151;
    font-size: 15px;
    font-weight: 700;
    padding: 8px 0;
}

.nav-link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--frosting-500), var(--dawn-500));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.24s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--frosting-600);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: var(--ink);
    background: var(--frosting-50);
    cursor: pointer;
}

main {
    padding-top: 76px;
}

.section,
.hero-inner,
.detail-layout,
.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.section {
    padding: 56px 0;
}

.hero {
    position: relative;
    min-height: 76vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--frosting-100), var(--cream-100), var(--dawn-100));
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(26px);
    opacity: 0.46;
    mix-blend-mode: multiply;
    animation: float-blob 9s ease-in-out infinite;
}

.hero::before {
    top: 8%;
    left: 8%;
    background: var(--frosting-300);
}

.hero::after {
    right: 8%;
    bottom: 8%;
    background: var(--dawn-200);
    animation-delay: 2.3s;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 46px;
    align-items: center;
    padding: 72px 0;
}

.hero-eyebrow,
.section-kicker,
.badge-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    color: #8b3b12;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(240, 108, 37, 0.18);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(12px);
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
    margin: 18px 0 18px;
    font-size: clamp(36px, 7vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--frosting-600), var(--dawn-500), var(--frosting-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead,
.page-hero p,
.detail-copy .lead {
    max-width: 720px;
    margin: 0 0 28px;
    color: #4b5563;
    font-size: clamp(17px, 2vw, 21px);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    padding: 0 20px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--frosting-500), var(--dawn-500));
    box-shadow: 0 16px 34px rgba(240, 108, 37, 0.26);
}

.btn-soft {
    color: var(--frosting-600);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(240, 108, 37, 0.16);
}

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

.hero-slider {
    position: relative;
    min-height: 500px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(14px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-card {
    position: relative;
    height: 500px;
    overflow: hidden;
    border: 10px solid rgba(255, 255, 255, 0.72);
    border-radius: 34px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-card:hover img {
    transform: scale(1.05);
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.78));
}

.hero-card-copy {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    color: #ffffff;
    padding: 30px;
}

.hero-card-copy strong {
    display: block;
    margin-bottom: 8px;
    font-size: 28px;
    line-height: 1.15;
}

.hero-card-copy span {
    display: -webkit-box;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.88);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hero-dots {
    position: absolute;
    right: 24px;
    bottom: -34px;
    left: 24px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.hero-dot {
    width: 30px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(217, 90, 27, 0.22);
    cursor: pointer;
}

.hero-dot.is-active {
    background: linear-gradient(90deg, var(--frosting-500), var(--dawn-500));
}

.search-panel,
.filter-panel,
.content-card,
.player-card,
.detail-copy,
.category-card,
.rank-panel {
    border: 1px solid rgba(240, 108, 37, 0.13);
    border-radius: 28px;
    background: var(--card);
    box-shadow: 0 20px 70px rgba(31, 41, 55, 0.06);
    backdrop-filter: blur(16px);
}

.search-panel {
    margin-top: -38px;
    padding: 22px;
}

.search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px 160px;
    gap: 12px;
}

.search-row input,
.search-row select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 18px;
    outline: 0;
    background: #ffffff;
    padding: 14px 16px;
}

.search-row input:focus,
.search-row select:focus {
    border-color: var(--frosting-500);
    box-shadow: 0 0 0 4px rgba(240, 108, 37, 0.12);
}

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

.section-heading h2,
.content-card h2,
.related-section h2 {
    margin: 8px 0 0;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.1;
}

.section-heading p,
.content-card p {
    max-width: 720px;
    color: var(--muted);
}

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

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

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(240, 108, 37, 0.12);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 40px rgba(31, 41, 55, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card-link:hover {
    transform: translateY(-5px);
    border-color: rgba(240, 108, 37, 0.36);
    box-shadow: 0 22px 58px rgba(217, 90, 27, 0.14);
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--cream-100);
}

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

.movie-card-link:hover .movie-poster img {
    transform: scale(1.07);
}

.movie-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 34%, rgba(0, 0, 0, 0.6));
    opacity: 0.74;
}

.movie-type,
.movie-time,
.movie-play {
    position: absolute;
    z-index: 2;
}

.movie-type {
    top: 12px;
    left: 12px;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(240, 108, 37, 0.92);
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
}

.movie-time {
    right: 12px;
    bottom: 12px;
    color: #ffffff;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.65);
    padding: 4px 8px;
    font-size: 12px;
}

.movie-play {
    top: 50%;
    left: 50%;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    color: var(--frosting-500);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-card-body {
    display: grid;
    gap: 8px;
    padding: 16px;
}

.movie-card-body strong {
    display: -webkit-box;
    overflow: hidden;
    color: #111827;
    font-size: 18px;
    line-height: 1.25;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card-body span {
    display: -webkit-box;
    overflow: hidden;
    color: #4b5563;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card-body small {
    color: var(--muted);
    font-size: 12px;
}

.movie-card-compact .movie-card-link {
    display: grid;
    grid-template-columns: 142px minmax(0, 1fr);
}

.movie-card-compact .movie-poster {
    height: 100%;
    aspect-ratio: auto;
}

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

.category-card {
    display: grid;
    gap: 14px;
    padding: 24px;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 70px rgba(217, 90, 27, 0.14);
}

.category-card strong {
    font-size: 24px;
}

.category-card p {
    margin: 0;
    color: var(--muted);
}

.category-count {
    width: max-content;
    color: var(--frosting-600);
    border-radius: 999px;
    background: var(--frosting-50);
    padding: 6px 12px;
    font-weight: 800;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 116px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    border: 1px solid rgba(240, 108, 37, 0.1);
    border-radius: 20px;
    background: #ffffff;
    padding: 12px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 45px rgba(31, 41, 55, 0.1);
}

.rank-number {
    color: var(--frosting-600);
    font-size: 24px;
    font-weight: 900;
}

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

.rank-copy {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.rank-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-copy small {
    color: var(--muted);
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 82px 0 56px;
    background: linear-gradient(135deg, var(--frosting-100), var(--cream-100), var(--dawn-100));
}

.page-hero .section {
    padding: 0;
}

.filter-panel {
    padding: 20px;
    margin-bottom: 28px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-button {
    border: 1px solid rgba(240, 108, 37, 0.18);
    border-radius: 999px;
    color: #8b3b12;
    background: #ffffff;
    padding: 9px 15px;
    cursor: pointer;
}

.filter-button.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--frosting-500), var(--dawn-500));
}

.detail-hero {
    position: relative;
    padding: 74px 0 42px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(253, 235, 220, 0.95), rgba(255, 250, 245, 0.96));
}

.detail-bg {
    position: absolute;
    inset: 0;
    opacity: 0.16;
    background-size: cover;
    background-position: center;
    filter: blur(18px);
    transform: scale(1.08);
}

.detail-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 32px;
    align-items: start;
}

.player-card {
    overflow: hidden;
}

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

.player-shell video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.05), rgba(17, 24, 39, 0.72));
    cursor: pointer;
}

.play-overlay span {
    display: grid;
    width: 84px;
    height: 84px;
    place-items: center;
    border-radius: 50%;
    color: var(--frosting-500);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
    font-size: 34px;
    transition: transform 0.25s ease;
}

.play-overlay:hover span {
    transform: scale(1.08);
}

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

.detail-copy {
    padding: 28px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--frosting-600);
    font-weight: 700;
}

.detail-copy h1 {
    font-size: clamp(32px, 5vw, 56px);
}

.meta-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 16px 0;
}

.meta-tags span,
.tag-list span {
    color: #8b3b12;
    border-radius: 999px;
    background: var(--frosting-50);
    padding: 6px 11px;
    font-size: 13px;
    font-weight: 800;
}

.content-card {
    padding: 26px;
    margin-bottom: 24px;
}

.content-card p {
    margin-bottom: 0;
    font-size: 17px;
}

.related-section {
    padding: 24px 0 64px;
}

.no-results {
    display: none;
    padding: 26px;
    color: var(--muted);
    text-align: center;
}

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

.site-footer {
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), var(--frosting-50));
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    padding: 44px 0;
}

.footer-inner p {
    max-width: 560px;
    margin: 10px 0 0;
    color: var(--muted);
}

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

.footer-links a {
    color: var(--muted);
    font-weight: 700;
}

.footer-links a:hover {
    color: var(--frosting-600);
}

@keyframes float-blob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(22px, -26px) scale(1.05);
    }
    66% {
        transform: translate(-18px, 18px) scale(0.96);
    }
}

@media (max-width: 980px) {
    .hero-inner,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-slider {
        min-height: 420px;
    }

    .hero-card {
        height: 420px;
    }

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

    .rank-grid {
        grid-template-columns: 1fr;
    }

    .search-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .site-nav {
        height: 68px;
    }

    main {
        padding-top: 68px;
    }

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .nav-links {
        position: absolute;
        top: 68px;
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.98);
        padding: 12px;
        box-shadow: 0 24px 70px rgba(31, 41, 55, 0.12);
    }

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

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

    .nav-link.active,
    .nav-link:hover {
        background: var(--frosting-50);
    }

    .nav-link::after {
        display: none;
    }

    .hero {
        min-height: auto;
    }

    .hero-inner {
        padding: 46px 0 72px;
    }

    .hero-card,
    .hero-slider {
        height: auto;
        min-height: 360px;
    }

    .hero-card {
        height: 360px;
        border-width: 7px;
        border-radius: 26px;
    }

    .section {
        padding: 42px 0;
    }

    .section-heading {
        display: block;
    }

    .movie-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .movie-card-compact .movie-card-link,
    .rank-item {
        grid-template-columns: 1fr;
    }

    .movie-card-compact .movie-poster,
    .rank-item img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .footer-inner {
        display: block;
    }

    .footer-links {
        margin-top: 22px;
    }
}

.link-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 22px;
    margin: 22px 0 0;
    padding-left: 22px;
}

.link-list a {
    color: #374151;
}

.link-list a:hover {
    color: var(--frosting-600);
}

@media (max-width: 760px) {
    .link-list {
        grid-template-columns: 1fr;
    }
}
