* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #111827;
    background: linear-gradient(135deg, #f8fafc 0%, #fffbeb 48%, #fff7ed 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #d97706, #ea580c);
    box-shadow: 0 12px 24px rgba(217, 119, 6, 0.24);
}

.brand-text {
    font-size: 24px;
    background: linear-gradient(90deg, #d97706, #ea580c);
    -webkit-background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: auto;
}

.desktop-nav a,
.nav-dropdown button {
    border: 0;
    background: transparent;
    color: #374151;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.nav-dropdown:hover button {
    color: #d97706;
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    width: 190px;
    padding: 8px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.dropdown-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
}

.dropdown-panel a:hover {
    background: #fffbeb;
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-search,
.mobile-search,
.big-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.big-search-form input,
.filter-panel input,
.filter-panel select {
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 11px 16px;
    outline: none;
    background: #ffffff;
    color: #111827;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    width: 210px;
}

.header-search input:focus,
.mobile-search input:focus,
.big-search-form input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.header-search button,
.mobile-search button,
.big-search-form button {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, #d97706, #ea580c);
    cursor: pointer;
}

.mobile-menu-button {
    display: none;
    border: 0;
    border-radius: 12px;
    padding: 9px 12px;
    background: #f3f4f6;
    color: #111827;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    border-top: 1px solid #e5e7eb;
}

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

.mobile-link {
    padding: 10px 0;
    color: #374151;
    font-weight: 700;
}

main {
    min-height: 60vh;
}

.hero-wrap,
.content-section,
.category-band,
.page-hero,
.filter-panel,
.search-page-panel,
.detail-main {
    width: min(1180px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.hero-wrap {
    padding: 32px 0 24px;
}

.hero-carousel {
    position: relative;
    height: 600px;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 34px 80px rgba(15, 23, 42, 0.28);
    background: #0f172a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.08));
}

.hero-content {
    position: absolute;
    left: clamp(24px, 5vw, 56px);
    right: clamp(24px, 5vw, 56px);
    bottom: clamp(30px, 7vw, 70px);
    max-width: 760px;
    color: #ffffff;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #fbbf24;
    font-weight: 900;
}

.hero-content h1 {
    margin: 0 0 16px;
    font-size: clamp(36px, 6vw, 62px);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.hero-meta {
    margin: 0 0 12px;
    color: #fde68a;
    font-size: 18px;
    font-weight: 700;
}

.hero-desc {
    max-width: 680px;
    margin: 0 0 28px;
    color: #e5e7eb;
    font-size: 18px;
    line-height: 1.8;
}

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

.primary-button,
.ghost-button,
.text-button,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 900;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
    padding: 13px 28px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #d97706, #ea580c);
    box-shadow: 0 16px 30px rgba(217, 119, 6, 0.3);
}

.primary-button:hover {
    transform: translateY(-2px) scale(1.02);
}

.ghost-button {
    padding: 12px 26px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

.hero-dots {
    position: absolute;
    right: 34px;
    bottom: 34px;
    z-index: 4;
    display: flex;
    gap: 9px;
}

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

.hero-dot.is-active {
    width: 28px;
    background: #f59e0b;
}

.content-section,
.category-band {
    padding: 48px 0;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.15;
}

.section-heading p,
.page-hero p,
.category-overview-card p,
.footer-about p,
.movie-desc,
.horizontal-card p,
.detail-card p,
.search-page-panel p {
    color: #4b5563;
    line-height: 1.75;
}

.section-link,
.text-button {
    color: #d97706;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #111827;
}

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

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

.poster-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.62), transparent 58%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.play-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    color: #ffffff;
    background: #d97706;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92);
    transition: all 0.25s ease;
}

.movie-card:hover .poster-gradient,
.movie-card:hover .play-circle {
    opacity: 1;
}

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

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    min-width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444, #f97316);
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.28);
}

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

.compact-card .movie-card-body {
    padding: 14px;
}

.movie-card h3,
.horizontal-card h3,
.category-overview-card h2 {
    margin: 0 0 8px;
    line-height: 1.35;
}

.movie-card h3 {
    font-size: 18px;
}

.compact-card h3 {
    font-size: 16px;
}

.movie-card a:hover,
.horizontal-card a:hover,
.category-overview-card a:hover {
    color: #d97706;
}

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

.movie-desc {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 14px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 14px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #92400e;
    background: #fffbeb;
    font-size: 12px;
    font-weight: 800;
}

.category-band {
    padding-left: 24px;
    padding-right: 24px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(14px);
}

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

.category-tile {
    display: grid;
    gap: 10px;
    min-height: 136px;
    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff, #fffbeb);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 42px rgba(15, 23, 42, 0.12);
}

.category-tile span {
    font-size: 20px;
    font-weight: 900;
}

.category-tile small {
    color: #6b7280;
    line-height: 1.65;
}

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

.horizontal-card {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 16px;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.07);
}

.horizontal-cover {
    position: relative;
    display: block;
    height: 138px;
    overflow: hidden;
    border-radius: 12px;
    background: #111827;
}

.horizontal-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-rank {
    position: absolute;
    top: 8px;
    left: 8px;
    display: inline-flex;
    min-width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(217, 119, 6, 0.95);
    font-weight: 900;
}

.page-hero {
    margin-top: 32px;
    padding: clamp(36px, 7vw, 76px);
    border-radius: 28px;
    color: #ffffff;
    background: radial-gradient(circle at 15% 20%, rgba(251, 191, 36, 0.55), transparent 28%), linear-gradient(135deg, #0f172a, #78350f 55%, #ea580c);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
}

.page-hero h1 {
    max-width: 760px;
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: -0.04em;
}

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

.eyebrow {
    margin: 0 0 12px !important;
    color: #fbbf24 !important;
    font-weight: 900;
    letter-spacing: 0.18em;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 22px;
    padding: 20px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.category-poster-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.category-poster-stack img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
    background: #111827;
}

.filter-panel,
.search-page-panel {
    margin-top: 28px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 14px;
}

.big-search-form input {
    flex: 1;
    border-radius: 18px;
    padding: 16px 18px;
}

.big-search-form button {
    border-radius: 18px;
    padding: 16px 28px;
}

.detail-main {
    padding: 32px 0 56px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 24px;
    color: #6b7280;
    font-weight: 700;
}

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

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.detail-primary {
    display: grid;
    gap: 22px;
}

.player-card {
    overflow: hidden;
    border-radius: 24px;
    background: #020617;
    box-shadow: 0 32px 70px rgba(15, 23, 42, 0.32);
}

.video-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.video-shell video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: #ffffff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.58));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-play {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #d97706, #ea580c);
    box-shadow: 0 22px 46px rgba(217, 119, 6, 0.34);
    font-size: 34px;
    cursor: pointer;
}

.player-title {
    max-width: 80%;
    text-align: center;
    font-size: 22px;
    font-weight: 900;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55);
}

.detail-card,
.poster-panel,
.sidebar-rank {
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.detail-card {
    padding: clamp(22px, 4vw, 34px);
}

.detail-card h1 {
    margin: 0 0 16px;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.detail-card h2 {
    margin: 30px 0 12px;
    font-size: 24px;
}

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

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #78350f;
    background: #fef3c7;
    font-weight: 800;
}

.detail-lead {
    font-size: 18px;
    color: #374151 !important;
}

.detail-tags {
    margin: 18px 0 4px;
}

.detail-sidebar {
    display: grid;
    gap: 22px;
}

.poster-panel {
    padding: 18px;
}

.poster-panel img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 16px;
    background: #111827;
}

.full-button {
    width: 100%;
}

.sidebar-rank {
    padding: 18px;
}

.sidebar-rank h2 {
    margin: 0 0 14px;
}

.mini-list {
    grid-template-columns: 1fr;
    gap: 12px;
}

.mini-list .horizontal-card {
    grid-template-columns: 78px minmax(0, 1fr);
    padding: 10px;
    box-shadow: none;
    background: #f9fafb;
}

.mini-list .horizontal-cover {
    height: 104px;
}

.mini-list .horizontal-card p {
    display: none;
}

.related-section {
    width: 100%;
    padding: 12px 0 0;
}

.site-footer {
    margin-top: 40px;
    color: #d1d5db;
    background: linear-gradient(180deg, #111827, #020617);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
}

.footer-brand {
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 20px;
}

.footer-column h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    text-align: center;
}

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

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

    .mobile-menu-button {
        display: inline-flex;
        margin-left: auto;
    }

    .hero-carousel {
        height: 520px;
    }

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

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

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

    .detail-sidebar {
        grid-template-columns: 280px minmax(0, 1fr);
    }

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

@media (max-width: 760px) {
    .header-inner {
        height: 64px;
    }

    .brand-text {
        font-size: 20px;
    }

    .hero-wrap {
        padding-top: 18px;
    }

    .hero-carousel {
        height: 460px;
        border-radius: 22px;
    }

    .hero-content {
        bottom: 34px;
    }

    .hero-meta,
    .hero-desc {
        font-size: 15px;
    }

    .hero-arrow {
        display: none;
    }

    .hero-dots {
        left: 24px;
        right: auto;
        bottom: 20px;
    }

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

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

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

    .movie-desc,
    .tag-row {
        display: none;
    }

    .category-grid,
    .category-overview-grid,
    .horizontal-list,
    .filter-panel,
    .footer-inner,
    .detail-sidebar {
        grid-template-columns: 1fr;
    }

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

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

    .horizontal-card {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .horizontal-cover {
        height: 124px;
    }

    .big-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .player-play {
        width: 68px;
        height: 68px;
        font-size: 28px;
    }
}

@media (max-width: 460px) {
    .movie-grid,
    .small-grid {
        grid-template-columns: 1fr;
    }

    .hero-carousel {
        height: 420px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .primary-button,
    .ghost-button {
        width: 100%;
    }
}
