html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: #451a03;
    background:
        radial-gradient(circle at 15% 5%, rgba(251, 191, 36, 0.25), transparent 28rem),
        radial-gradient(circle at 85% 12%, rgba(249, 115, 22, 0.18), transparent 30rem),
        linear-gradient(180deg, #fff7ed 0%, #fffbeb 42%, #ffffff 100%);
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

a {
    color: inherit;
}

img {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.20), rgba(217, 119, 6, 0.18));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(245, 158, 11, 0.28);
    background: rgba(255, 251, 235, 0.92);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 32px rgba(146, 64, 14, 0.10);
}

.header-inner {
    max-width: 1280px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #f59e0b, #b45309);
    box-shadow: 0 12px 26px rgba(180, 83, 9, 0.28);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-name {
    font-size: 22px;
    font-weight: 900;
    color: #78350f;
    letter-spacing: 0.02em;
}

.brand-sub {
    margin-top: 2px;
    font-size: 12px;
    color: #b45309;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #78350f;
    font-size: 15px;
    font-weight: 700;
}

.primary-nav a {
    position: relative;
    padding: 8px 0;
}

.primary-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    border-radius: 999px;
    background: #d97706;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.24s ease;
}

.primary-nav a:hover::after,
.primary-nav a.is-current::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-search {
    position: relative;
    width: 260px;
}

.header-search input,
.search-panel input,
.local-search {
    width: 100%;
    border: 1px solid rgba(217, 119, 6, 0.30);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #78350f;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
    height: 40px;
    padding: 0 44px 0 18px;
    font-size: 14px;
}

.header-search input:focus,
.search-panel input:focus,
.local-search:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
    background: #ffffff;
}

.header-search button {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #ffffff;
    background: #d97706;
    border: none;
}

.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: #78350f;
    background: #fffbeb;
    border: 1px solid rgba(217, 119, 6, 0.25);
    font-size: 22px;
}

.mobile-nav {
    display: none;
    border-top: 1px solid rgba(217, 119, 6, 0.18);
    padding: 12px 24px 20px;
    background: rgba(255, 251, 235, 0.98);
}

.mobile-nav.is-open {
    display: grid;
    gap: 10px;
}

.mobile-nav a {
    padding: 10px 12px;
    border-radius: 12px;
    color: #78350f;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.58);
}

.section-wrap,
.page-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-carousel {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    isolation: isolate;
    background: #78350f;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.8s ease, transform 0.8s ease;
    pointer-events: none;
}

.hero-slide:focus {
    outline: none;
}

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

.hero-image {
    position: absolute;
    inset: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.46;
}

.hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(69, 26, 3, 0.94) 0%, rgba(120, 53, 15, 0.78) 42%, rgba(180, 83, 9, 0.18) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(69, 26, 3, 0.56));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    min-height: 620px;
    margin: 0 auto;
    padding: 120px 24px 92px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    gap: 40px;
    align-items: center;
}

.hero-copy {
    max-width: 760px;
    color: #ffffff;
}

.hero-kicker,
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.18);
    color: #fde68a;
    border: 1px solid rgba(253, 230, 138, 0.30);
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 800;
}

.hero-copy h1,
.hero-copy h2 {
    margin-top: 20px;
    font-size: clamp(40px, 6vw, 76px);
    line-height: 0.96;
    font-weight: 950;
    letter-spacing: -0.055em;
    text-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

.hero-copy p {
    margin-top: 22px;
    max-width: 660px;
    color: #ffedd5;
    font-size: 19px;
    line-height: 1.8;
}

.hero-tags {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #b45309);
    box-shadow: 0 18px 40px rgba(180, 83, 9, 0.32);
}

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

.hero-side-card {
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255, 251, 235, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(18px);
}

.hero-side-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.hero-side-info {
    padding: 18px;
    color: #ffffff;
}

.hero-side-info strong {
    display: block;
    font-size: 20px;
    line-height: 1.25;
}

.hero-side-info span {
    display: block;
    margin-top: 6px;
    color: #fde68a;
    font-size: 14px;
}

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

.hero-dot {
    width: 32px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.40);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 52px;
    background: #fbbf24;
}

.category-strip {
    margin-top: -42px;
    position: relative;
    z-index: 6;
}

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

.category-tile {
    position: relative;
    min-height: 150px;
    border-radius: 24px;
    overflow: hidden;
    color: #ffffff;
    background: #92400e;
    box-shadow: 0 18px 46px rgba(146, 64, 14, 0.18);
}

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

.category-tile:hover img {
    transform: scale(1.1);
    opacity: 0.56;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(69, 26, 3, 0.10), rgba(69, 26, 3, 0.86));
}

.category-tile-content {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 2;
}

.category-tile h3 {
    font-size: 20px;
    font-weight: 950;
}

.category-tile p {
    margin-top: 6px;
    color: #ffedd5;
    font-size: 13px;
    line-height: 1.5;
}

.section-block {
    padding: 76px 0 0;
}

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

.section-heading h2,
.page-title h1 {
    color: #78350f;
    font-size: clamp(28px, 3.2vw, 44px);
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.035em;
}

.section-heading p,
.page-title p {
    margin-top: 10px;
    max-width: 720px;
    color: #92400e;
    font-size: 16px;
    line-height: 1.75;
}

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

.movie-card {
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 38px rgba(146, 64, 14, 0.10);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.46);
    box-shadow: 0 26px 58px rgba(146, 64, 14, 0.18);
}

.movie-cover-link {
    display: block;
    position: relative;
    overflow: hidden;
    background: #fef3c7;
}

.movie-cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.card-badge,
.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(180, 83, 9, 0.92);
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(69, 26, 3, 0.18);
}

.rank-badge {
    right: 12px;
    left: auto;
    background: rgba(220, 38, 38, 0.92);
}

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

.movie-title {
    display: -webkit-box;
    min-height: 44px;
    color: #451a03;
    font-size: 17px;
    font-weight: 950;
    line-height: 1.32;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-title:hover {
    color: #b45309;
}

.movie-meta {
    margin-top: 10px;
    color: #b45309;
    font-size: 13px;
    font-weight: 750;
}

.movie-desc {
    margin-top: 10px;
    color: #78350f;
    font-size: 14px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.tag-row span {
    border-radius: 999px;
    padding: 4px 9px;
    color: #92400e;
    background: #fef3c7;
    font-size: 12px;
    font-weight: 800;
}

.toolbar {
    margin-bottom: 26px;
    display: grid;
    grid-template-columns: minmax(260px, 420px) 1fr;
    gap: 16px;
    align-items: center;
}

.local-search {
    height: 46px;
    padding: 0 18px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.filter-btn {
    min-height: 38px;
    border: 1px solid rgba(217, 119, 6, 0.24);
    border-radius: 999px;
    padding: 0 14px;
    color: #78350f;
    background: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    font-weight: 850;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-btn:hover,
.filter-btn.is-active {
    color: #ffffff;
    background: #d97706;
    border-color: #d97706;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 16px;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 20px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.80);
    box-shadow: 0 16px 34px rgba(146, 64, 14, 0.08);
}

.rank-item img {
    width: 96px;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    object-fit: cover;
}

.rank-item strong {
    display: block;
    color: #451a03;
    font-size: 17px;
    line-height: 1.35;
}

.rank-item p {
    margin-top: 8px;
    color: #78350f;
    font-size: 14px;
    line-height: 1.55;
}

.page-hero {
    padding: 76px 0 38px;
    background:
        linear-gradient(135deg, rgba(254, 243, 199, 0.92), rgba(255, 247, 237, 0.85)),
        radial-gradient(circle at 80% 10%, rgba(245, 158, 11, 0.22), transparent 28rem);
    border-bottom: 1px solid rgba(217, 119, 6, 0.16);
}

.breadcrumbs {
    margin-bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #b45309;
    font-size: 14px;
    font-weight: 800;
}

.breadcrumbs a:hover {
    color: #78350f;
}

.detail-hero {
    padding: 56px 0 36px;
    background:
        radial-gradient(circle at 22% 0%, rgba(251, 191, 36, 0.28), transparent 30rem),
        linear-gradient(135deg, #451a03 0%, #78350f 55%, #b45309 100%);
    color: #ffffff;
}

.detail-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 34px;
    align-items: start;
}

.detail-poster {
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

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

.detail-info h1 {
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.detail-meta {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-meta span {
    border-radius: 999px;
    padding: 6px 12px;
    color: #fde68a;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.20);
    font-size: 13px;
    font-weight: 850;
}

.detail-lead {
    margin-top: 24px;
    color: #ffedd5;
    font-size: 18px;
    line-height: 1.8;
}

.player-section {
    padding-top: 54px;
}

.video-shell {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background: #111827;
    box-shadow: 0 24px 70px rgba(69, 26, 3, 0.24);
}

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

.video-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    color: #ffffff;
    background:
        radial-gradient(circle at center, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.66)),
        linear-gradient(135deg, rgba(120, 53, 15, 0.30), rgba(0, 0, 0, 0.20));
    border: 0;
    text-align: center;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-ring {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #b45309);
    box-shadow: 0 18px 48px rgba(245, 158, 11, 0.36);
    font-size: 38px;
    padding-left: 5px;
}

.video-overlay strong {
    font-size: 20px;
    font-weight: 950;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    padding-top: 40px;
}

.article-panel,
.side-panel,
.search-panel {
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 42px rgba(146, 64, 14, 0.08);
}

.article-panel {
    padding: 28px;
}

.article-panel h2,
.side-panel h2 {
    color: #78350f;
    font-size: 24px;
    font-weight: 950;
}

.article-panel p {
    margin-top: 14px;
    color: #451a03;
    font-size: 16px;
    line-height: 1.9;
}

.side-panel {
    padding: 20px;
}

.side-related {
    margin-top: 16px;
    display: grid;
    gap: 12px;
}

.side-related a {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 16px;
    background: #fff7ed;
}

.side-related img {
    width: 74px;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    object-fit: cover;
}

.side-related strong {
    color: #451a03;
    font-size: 14px;
    line-height: 1.35;
}

.side-related span {
    display: block;
    margin-top: 5px;
    color: #b45309;
    font-size: 12px;
    font-weight: 800;
}

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

.search-panel form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.search-panel input {
    height: 48px;
    padding: 0 18px;
}

.search-panel button {
    border: 0;
}

.site-footer {
    margin-top: 88px;
    padding: 36px 24px;
    color: #92400e;
    background: #fffbeb;
    border-top: 1px solid rgba(217, 119, 6, 0.16);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 14px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-weight: 800;
}

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

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

    .hero-content {
        grid-template-columns: 1fr 300px;
    }
}

@media (max-width: 920px) {
    .primary-nav,
    .header-search {
        display: none;
    }

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

    .hero-content,
    .detail-layout,
    .detail-content,
    .toolbar {
        grid-template-columns: 1fr;
    }

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

    .hero-side-card {
        display: none;
    }

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

    .filter-row {
        justify-content: flex-start;
    }

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

@media (max-width: 640px) {
    .header-inner,
    .section-wrap,
    .page-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    .brand-name {
        font-size: 18px;
    }

    .brand-sub {
        font-size: 11px;
    }

    .hero-carousel,
    .hero-content {
        min-height: 560px;
    }

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

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

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

    .movie-title {
        font-size: 15px;
    }

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

    .rank-item img {
        width: 80px;
    }

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

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 430px) {
    .category-grid,
    .movie-grid,
    .rank-list {
        grid-template-columns: 1fr;
    }
}
