* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #1f2937;
    background: #fff7ed;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 32px rgba(124, 45, 18, 0.11);
}

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

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

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.36);
    transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08) rotate(8deg);
}

.brand-text {
    display: grid;
    gap: 1px;
}

.brand-text strong {
    font-size: 22px;
    line-height: 1;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #ea580c, #d97706);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text em {
    color: #6b7280;
    font-size: 12px;
    font-style: normal;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-weight: 700;
    color: #4b5563;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link.active {
    color: #ea580c;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #ffedd5;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #c2410c;
}

.mobile-nav {
    display: none;
    padding: 0 24px 18px;
    border-top: 1px solid #fed7aa;
}

.mobile-nav.open {
    display: grid;
}

.mobile-nav-link {
    padding: 12px 0;
    font-weight: 700;
    color: #4b5563;
}

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 690px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #fb923c 0%, #f59e0b 48%, #fde047 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.74;
    background:
        radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.42), transparent 27%),
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.24), transparent 28%),
        linear-gradient(135deg, rgba(194, 65, 12, 0.25), transparent 55%);
}

.float-shape {
    position: absolute;
    z-index: 1;
    color: rgba(255, 255, 255, 0.32);
    font-size: 64px;
    filter: drop-shadow(0 18px 28px rgba(124, 45, 18, 0.22));
    animation: floatY 7s ease-in-out infinite;
}

.shape-one {
    top: 74px;
    left: 9%;
}

.shape-two {
    right: 13%;
    top: 120px;
    animation-delay: 1.5s;
}

.shape-three {
    bottom: 96px;
    left: 24%;
    animation-delay: 2.8s;
}

.hero-shell {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 80px 0 70px;
}

.hero-carousel {
    position: relative;
    min-height: 460px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 54px;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transform: translateX(24px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.hero-copy {
    color: #ffffff;
    text-shadow: 0 12px 30px rgba(124, 45, 18, 0.2);
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #fff7ed;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section-kicker {
    color: #f97316;
    text-shadow: none;
}

.hero-copy h1 {
    margin: 0 0 20px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 1.03;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-desc {
    max-width: 680px;
    margin: 0 0 22px;
    font-size: clamp(17px, 2vw, 22px);
    color: rgba(255, 255, 255, 0.94);
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    color: #9a3412;
    background: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 700;
}

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

.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.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

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

.btn.primary {
    color: #ea580c;
    background: #ffffff;
    box-shadow: 0 18px 34px rgba(124, 45, 18, 0.22);
}

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

.hero-poster {
    position: relative;
    display: block;
    height: 460px;
    overflow: hidden;
    border-radius: 34px;
    box-shadow: 0 30px 70px rgba(124, 45, 18, 0.35);
    transform: rotate(2deg);
    transition: transform 0.28s ease;
    background: rgba(255, 255, 255, 0.28);
}

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

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

.hero-poster span {
    position: absolute;
    right: 20px;
    bottom: 20px;
    padding: 10px 18px;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.hero-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.54);
}

.hero-dot.active {
    width: 38px;
    background: #ffffff;
}

.hero-search,
.page-search {
    width: min(760px, 100%);
    margin: 34px auto 0;
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    box-shadow: 0 22px 48px rgba(124, 45, 18, 0.2);
    backdrop-filter: blur(18px);
}

.hero-search input,
.page-search input,
.search-inline input {
    width: 100%;
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    outline: 0;
    border-radius: 999px;
    color: #7c2d12;
    background: rgba(255, 255, 255, 0.92);
}

.hero-search button {
    flex: 0 0 auto;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #d97706);
    font-weight: 800;
}

.section-wrap {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
    padding: 74px 0;
}

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

.section-title h2,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    color: #1f2937;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-more {
    color: #ea580c;
    font-weight: 800;
}

.soft-panel {
    width: min(1320px, calc(100% - 28px));
    padding: 52px 32px;
    border-radius: 36px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 24px 60px rgba(124, 45, 18, 0.08);
}

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(124, 45, 18, 0.09);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 28px 64px rgba(124, 45, 18, 0.15);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #fed7aa, #fef3c7);
}

.poster-link img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.poster-shade {
    position: absolute;
    inset: auto 0 0;
    height: 46%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.58), transparent);
}

.play-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(249, 115, 22, 0.92);
    font-size: 13px;
    font-weight: 800;
}

.movie-info {
    padding: 18px;
}

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

.movie-info h3 a:hover,
.rank-body h3 a:hover,
.sitemap-group a:hover {
    color: #ea580c;
}

.movie-meta,
.movie-desc {
    margin: 0 0 10px;
    color: #6b7280;
    font-size: 14px;
}

.movie-desc {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 280px;
    padding: 24px;
    border-radius: 30px;
    background: linear-gradient(145deg, #ffffff, #fff7ed);
    box-shadow: 0 22px 56px rgba(124, 45, 18, 0.1);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 34px 70px rgba(124, 45, 18, 0.16);
}

.category-glow {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background: radial-gradient(circle at 70% 18%, #f97316, transparent 28%);
}

.category-posters {
    position: relative;
    display: flex;
    height: 122px;
    margin-bottom: 20px;
}

.category-posters img {
    width: 86px;
    height: 122px;
    object-fit: cover;
    border: 4px solid #ffffff;
    border-radius: 18px;
    box-shadow: 0 14px 28px rgba(124, 45, 18, 0.18);
}

.category-posters img + img {
    margin-left: -22px;
}

.category-card h2 {
    position: relative;
    margin: 0 0 10px;
    color: #111827;
    font-size: 24px;
}

.category-card p {
    position: relative;
    margin: 0 0 18px;
    color: #6b7280;
}

.category-more {
    position: relative;
    color: #ea580c;
    font-weight: 800;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 94px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 16px 42px rgba(124, 45, 18, 0.08);
}

.rank-number {
    color: #f97316;
    font-size: 24px;
    font-weight: 900;
}

.rank-poster {
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    background: #fed7aa;
}

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

.rank-body h3 {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.25;
}

.rank-body p {
    margin: 0 0 8px;
    color: #6b7280;
    font-size: 14px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #9a3412;
    font-size: 13px;
    font-weight: 700;
}

.page-hero {
    position: relative;
    overflow: hidden;
    width: min(1280px, calc(100% - 40px));
    margin: 38px auto 0;
    padding: 56px;
    border-radius: 36px;
    color: #ffffff;
    background: linear-gradient(135deg, #fb923c, #f59e0b 55%, #facc15);
    box-shadow: 0 28px 70px rgba(124, 45, 18, 0.16);
}

.page-hero h1,
.page-hero p {
    color: #ffffff;
}

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

.category-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.category-hero .page-search,
.compact-hero .page-search {
    width: min(440px, 100%);
    margin: 0;
}

.search-inline {
    width: min(360px, 100%);
}

.search-inline input {
    border: 1px solid #fed7aa;
    box-shadow: 0 12px 32px rgba(124, 45, 18, 0.08);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #1f2937;
}

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

.detail-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(124, 45, 18, 0.72));
}

.detail-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 42px 0 72px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 46px;
    align-items: center;
}

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

.detail-poster img {
    aspect-ratio: 3 / 4;
    height: auto;
    object-fit: cover;
}

.detail-copy h1 {
    color: #ffffff;
    font-size: clamp(38px, 6vw, 72px);
}

.detail-line {
    max-width: 760px;
    margin: 18px 0 18px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
}

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

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.16);
}

.detail-tags {
    margin-bottom: 28px;
}

.player-section {
    padding-bottom: 34px;
}

.player-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 32px;
    background: #111827;
    box-shadow: 0 32px 80px rgba(17, 24, 39, 0.2);
}

.video-player {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: #000000;
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.65;
}

.player-cover span {
    position: relative;
    z-index: 2;
    width: 94px;
    height: 94px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ea580c;
    background: rgba(255, 255, 255, 0.94);
    font-size: 36px;
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.28);
}

.player-cover.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.detail-article {
    max-width: 920px;
    margin: 0 auto;
    padding: 42px;
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 20px 58px rgba(124, 45, 18, 0.08);
}

.detail-article h2 {
    margin: 0 0 14px;
    color: #111827;
    font-size: 28px;
}

.detail-article h2:not(:first-child) {
    margin-top: 34px;
}

.detail-article p {
    margin: 0;
    color: #4b5563;
    font-size: 17px;
}

.sitemap-wrap {
    display: grid;
    gap: 24px;
}

.sitemap-group {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    padding: 24px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 16px 42px rgba(124, 45, 18, 0.07);
}

.sitemap-group a {
    overflow: hidden;
    color: #374151;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.site-footer {
    margin-top: 30px;
    color: #ffffff;
    background: linear-gradient(180deg, #1f2937, #111827);
}

.footer-inner {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
    padding: 46px 0;
    display: flex;
    justify-content: space-between;
    gap: 34px;
}

.footer-brand {
    max-width: 520px;
}

.footer-brand p {
    margin: 18px 0 0;
    color: #d1d5db;
}

.brand.compact .brand-text strong {
    color: #ffffff;
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
}

.brand.compact .brand-text em {
    color: #d1d5db;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-content: start;
    justify-content: flex-end;
}

.footer-links a {
    color: #e5e7eb;
}

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

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

@keyframes floatY {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

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

    .hero-slide {
        grid-template-columns: 1fr 300px;
        gap: 30px;
    }

    .hero-poster {
        height: 390px;
    }

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

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

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

    .menu-toggle {
        display: inline-flex;
    }

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

    .hero-shell {
        padding: 58px 0;
    }

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

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

    .hero-poster {
        width: min(330px, 100%);
        height: 430px;
        margin: 0 auto;
    }

    .hero-search,
    .page-search {
        border-radius: 26px;
        flex-direction: column;
    }

    .hero-search button {
        width: 100%;
    }

    .section-title,
    .category-hero,
    .footer-inner,
    .detail-layout {
        flex-direction: column;
        display: flex;
        align-items: flex-start;
    }

    .detail-layout {
        gap: 28px;
    }

    .detail-poster {
        width: min(300px, 100%);
    }

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

    .page-hero,
    .soft-panel,
    .detail-article {
        padding: 32px 22px;
        border-radius: 26px;
    }

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

@media (max-width: 560px) {
    .header-inner {
        height: 66px;
        padding: 0 16px;
    }

    .brand-text strong {
        font-size: 18px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .hero-shell,
    .section-wrap,
    .detail-inner,
    .page-hero,
    .footer-inner {
        width: min(100% - 24px, 1280px);
    }

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

    .hero-copy h1 {
        font-size: 42px;
    }

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

    .rank-item {
        grid-template-columns: 42px 82px minmax(0, 1fr);
        gap: 12px;
        padding: 14px;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .player-cover span {
        width: 72px;
        height: 72px;
        font-size: 28px;
    }
}
