body {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

.mobile-panel {
    display: none;
}

.mobile-panel.is-open {
    display: block;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1000ms ease;
}

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

.hero-copy {
    text-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 10;
    width: 3rem;
    height: 3rem;
    transform: translateY(-50%);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    font-size: 2.5rem;
    line-height: 1;
    transition: background 200ms ease, transform 200ms ease;
}

.hero-control:hover {
    background: rgba(0, 0, 0, 0.72);
    transform: translateY(-50%) scale(1.05);
}

.hero-prev {
    left: 1rem;
}

.hero-next {
    right: 1rem;
}

.hero-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    transition: width 200ms ease, background 200ms ease;
}

.hero-dot.is-active {
    width: 2rem;
    background: #ffffff;
}

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

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

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

.movie-list-two {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
}

.movie-card {
    display: block;
    overflow: hidden;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(120, 53, 15, 0.12);
    transition: transform 240ms ease, box-shadow 240ms ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 44px rgba(120, 53, 15, 0.18);
}

.movie-card-wide {
    display: grid;
    grid-template-columns: 9rem minmax(0, 1fr);
    min-height: 12rem;
}

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

.movie-card-wide .poster-wrap {
    aspect-ratio: auto;
    min-height: 100%;
}

.poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 360ms ease;
}

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

.duration-badge,
.category-badge {
    position: absolute;
    z-index: 2;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    color: #ffffff;
}

.duration-badge {
    right: 0.5rem;
    bottom: 0.5rem;
    background: rgba(0, 0, 0, 0.72);
}

.category-badge {
    left: 0.5rem;
    top: 0.5rem;
    background: linear-gradient(90deg, #f59e0b, #f97316);
}

.movie-card-body {
    padding: 1rem;
}

.movie-card-title {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    color: #111827;
    font-size: 1.05rem;
    font-weight: 800;
    transition: color 200ms ease;
}

.movie-card:hover .movie-card-title {
    color: #d97706;
}

.movie-card-desc {
    overflow: hidden;
    display: -webkit-box;
    min-height: 2.75rem;
    margin-top: 0.5rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.55;
}

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.85rem;
    color: #6b7280;
    font-size: 0.78rem;
}

.movie-meta-line span {
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: #fff7ed;
}

.category-grid,
.category-overview-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.25rem;
}

.category-card,
.category-overview-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(120, 53, 15, 0.14);
}

.category-card {
    min-height: 13rem;
}

.category-card-img,
.category-overview-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 420ms ease;
}

.category-card:hover .category-card-img,
.category-overview-card:hover .category-overview-top img {
    transform: scale(1.08);
}

.category-card-layer,
.category-overview-top div {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18));
}

.category-card-copy {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    color: #ffffff;
}

.category-card-copy span,
.eyebrow {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
}

.category-card-copy strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 900;
}

.category-card-copy em {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-style: normal;
    color: rgba(255, 255, 255, 0.86);
}

.page-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 1.75rem;
    box-shadow: 0 18px 36px rgba(120, 53, 15, 0.1);
}

.page-hero h1 {
    color: #111827;
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.08;
}

.page-hero p {
    max-width: 46rem;
    margin-top: 1rem;
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 1.8;
}

.site-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.35rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.24);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.site-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px rgba(249, 115, 22, 0.32);
}

.category-overview-card {
    display: grid;
    grid-template-columns: 13rem minmax(0, 1fr);
}

.category-overview-top {
    position: relative;
    min-height: 12rem;
}

.category-overview-body {
    padding: 1.25rem;
}

.category-overview-body h2 {
    color: #111827;
    font-size: 1.55rem;
    font-weight: 900;
}

.category-overview-body p {
    margin-top: 0.5rem;
    color: #4b5563;
    line-height: 1.7;
}

.category-preview-list,
.inline-links,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.category-preview-list span,
.inline-links a,
.tag-chip {
    display: inline-flex;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: #fff7ed;
    color: #92400e;
    font-size: 0.8rem;
    font-weight: 700;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(120, 53, 15, 0.12);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid #fed7aa;
    border-radius: 1rem;
    color: #92400e;
}

.search-box input,
.search-panel select {
    width: 100%;
    outline: none;
    color: #111827;
}

.search-panel select {
    padding: 0.85rem 1rem;
    border: 1px solid #fed7aa;
    border-radius: 1rem;
    background: #ffffff;
}

.search-result {
    display: inline-flex;
    align-items: center;
    color: #92400e;
    font-weight: 800;
}

.search-hide {
    display: none !important;
}

.rank-panel {
    align-self: start;
    padding: 1.25rem;
    border-radius: 1.5rem;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(120, 53, 15, 0.12);
}

.rank-panel-large {
    margin-bottom: 2rem;
}

.rank-row {
    display: grid;
    grid-template-columns: 2.6rem 4rem minmax(0, 1fr) 1rem;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem;
    border-radius: 1rem;
    background: #fff7ed;
    transition: transform 200ms ease, background 200ms ease;
}

.rank-row:hover {
    transform: translateX(4px);
    background: #ffedd5;
}

.rank-number {
    color: #f97316;
    font-size: 1.1rem;
    font-weight: 900;
}

.rank-thumb {
    width: 4rem;
    height: 5.2rem;
    border-radius: 0.75rem;
    object-fit: cover;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.rank-info strong,
.rank-info em {
    display: block;
}

.rank-info strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #111827;
    font-weight: 900;
}

.rank-info em {
    margin-top: 0.25rem;
    color: #6b7280;
    font-size: 0.8rem;
    font-style: normal;
}

.rank-arrow {
    color: #d97706;
    font-size: 1.5rem;
}

.rank-list-large {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 0.75rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #92400e;
    font-size: 0.9rem;
}

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

.movie-detail-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 2rem;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    box-shadow: 0 18px 40px rgba(120, 53, 15, 0.14);
}

.detail-poster img {
    width: 100%;
    max-height: 34rem;
    border-radius: 1.5rem;
    object-fit: cover;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.detail-copy h1 {
    color: #111827;
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    font-weight: 950;
    line-height: 1.08;
}

.detail-copy p {
    margin-top: 1rem;
    color: #4b5563;
    font-size: 1.08rem;
    line-height: 1.85;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1rem 0;
}

.detail-meta span {
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    color: #92400e;
    font-size: 0.88rem;
    font-weight: 800;
}

.watch-section {
    margin: 2rem 0;
}

.player-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 1.5rem;
    background: #000000;
    box-shadow: 0 28px 58px rgba(0, 0, 0, 0.28);
}

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

.play-trigger {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.22));
    color: #ffffff;
    transition: opacity 220ms ease, visibility 220ms ease;
}

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

.play-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 18px 36px rgba(249, 115, 22, 0.36);
}

.play-trigger strong {
    font-size: 1.2rem;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.detail-article,
.detail-side {
    padding: 1.5rem;
    border-radius: 1.5rem;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(120, 53, 15, 0.1);
}

.detail-article h2,
.detail-side h2 {
    margin-bottom: 1rem;
    color: #111827;
    font-size: 1.5rem;
    font-weight: 900;
}

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

.detail-article p {
    color: #374151;
    font-size: 1rem;
    line-height: 1.9;
}

.detail-side dl {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr);
    gap: 0.75rem;
    color: #374151;
}

.detail-side dt {
    color: #92400e;
    font-weight: 900;
}

.detail-side a {
    color: #d97706;
    font-weight: 800;
}

@media (min-width: 640px) {
    .movie-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

@media (min-width: 768px) {
    .movie-detail-hero {
        grid-template-columns: minmax(15rem, 24rem) minmax(0, 1fr);
        align-items: center;
    }

    .detail-layout {
        grid-template-columns: minmax(0, 2fr) minmax(18rem, 0.8fr);
    }

    .search-panel {
        grid-template-columns: minmax(0, 1.5fr) 12rem 10rem 10rem auto;
        align-items: center;
    }

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

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

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

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

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

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

@media (max-width: 767px) {
    .page-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.35rem;
    }

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

    .movie-card-wide .poster-wrap {
        aspect-ratio: 16 / 10;
    }

    .hero-control {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 2rem;
    }
}
