html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #1f2937;
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 32%, #fffaf0 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 237, 213, 0.96), rgba(254, 243, 199, 0.96));
    box-shadow: 0 12px 36px rgba(251, 146, 60, 0.15);
    backdrop-filter: blur(18px);
}

.header-inner {
    height: 76px;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 18px;
    background: linear-gradient(135deg, #fb923c, #f59e0b);
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.32);
}

.brand-text strong {
    display: block;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, #ea580c, #d97706);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text small {
    display: block;
    margin-top: 3px;
    color: #6b7280;
    font-size: 12px;
}

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

.nav-link,
.mobile-link {
    color: #4b5563;
    font-weight: 700;
    border-radius: 999px;
    transition: 180ms ease;
}

.nav-link {
    padding: 10px 14px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: #ea580c;
    background: rgba(255, 255, 255, 0.72);
}

.header-search {
    display: flex;
    align-items: center;
    width: 280px;
    padding: 4px;
    border: 2px solid #fed7aa;
    border-radius: 999px;
    background: #ffffff;
}

.header-search input,
.mobile-search input,
.quick-search input,
.inline-filter input,
.advanced-filter input,
.advanced-filter select {
    width: 100%;
    border: 0;
    outline: 0;
    color: #111827;
    background: #ffffff;
}

.header-search input {
    padding: 8px 12px;
}

.header-search button,
.mobile-search button,
.quick-search button,
.inline-filter button,
.advanced-filter button {
    border: 0;
    color: #ffffff;
    font-weight: 800;
    border-radius: 999px;
    background: linear-gradient(135deg, #fb923c, #f59e0b);
    box-shadow: 0 12px 22px rgba(249, 115, 22, 0.25);
    cursor: pointer;
    transition: 180ms ease;
}

.header-search button {
    padding: 8px 14px;
}

.header-search button:hover,
.mobile-search button:hover,
.quick-search button:hover,
.inline-filter button:hover,
.advanced-filter button:hover,
.btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 28px rgba(249, 115, 22, 0.32);
}

.menu-toggle {
    display: none;
    border: 0;
    background: rgba(255, 255, 255, 0.72);
    color: #ea580c;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 22px;
}

.mobile-panel {
    display: none;
    border-top: 1px solid #fed7aa;
    padding: 16px;
    background: rgba(255, 255, 255, 0.96);
}

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

.mobile-search {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.mobile-search input {
    padding: 12px 14px;
    border: 1px solid #fed7aa;
    border-radius: 999px;
}

.mobile-search button {
    padding: 10px 18px;
}

.mobile-panel nav {
    display: grid;
    gap: 8px;
}

.mobile-link {
    padding: 12px 14px;
}

.hero {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    background: #111827;
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
}

.hero-bg::after,
.detail-hero::after,
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 20%, rgba(251, 146, 60, 0.26), transparent 34%),
        linear-gradient(180deg, transparent 52%, rgba(17, 24, 39, 0.52));
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 640px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 48px;
    padding: 72px 0;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fed7aa;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 900;
    font-size: 13px;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 18px 0 20px;
    font-size: clamp(40px, 7vw, 82px);
    line-height: 0.95;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.85;
}

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

.hero-tags {
    margin: 22px 0;
}

.hero-tags span,
.detail-tags a,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-weight: 800;
}

.hero-tags span,
.detail-tags a {
    padding: 8px 12px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.tag-row span {
    padding: 4px 8px;
    color: #c2410c;
    background: #ffedd5;
    font-size: 12px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 900;
    transition: 180ms ease;
}

.btn.primary {
    color: #ffffff;
    background: linear-gradient(135deg, #fb923c, #f59e0b);
    box-shadow: 0 18px 30px rgba(249, 115, 22, 0.30);
}

.btn.ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn.text {
    color: #fed7aa;
}

.hero-poster,
.detail-poster {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.42);
    background: rgba(255, 255, 255, 0.10);
}

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

.hero-poster span,
.detail-poster span,
.play-mini {
    position: absolute;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, #fb923c, #f59e0b);
    box-shadow: 0 18px 30px rgba(249, 115, 22, 0.35);
}

.hero-poster span,
.detail-poster span {
    left: 50%;
    top: 50%;
    width: 72px;
    height: 72px;
    transform: translate(-50%, -50%);
    font-size: 28px;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 14px;
    transform: translateX(-50%);
}

.hero-prev,
.hero-next,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-prev,
.hero-next {
    width: 42px;
    height: 42px;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 28px;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.46);
    transition: 180ms ease;
}

.hero-dot.active {
    width: 30px;
    background: #fb923c;
}

.quick-search-section {
    margin-top: -38px;
    position: relative;
    z-index: 10;
}

.quick-search {
    display: flex;
    padding: 10px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(251, 146, 60, 0.18);
    border: 1px solid #fed7aa;
}

.quick-search input {
    padding: 16px 18px;
    font-size: 16px;
}

.quick-search button {
    min-width: 136px;
    padding: 0 24px;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 18px;
}

.quick-links a,
.more-link,
.reset-link {
    color: #ea580c;
    font-weight: 850;
}

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

.section-heading {
    text-align: center;
    margin-bottom: 28px;
}

.section-heading.align-left {
    text-align: left;
}

.section-heading span {
    color: #f97316;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 950;
}

.section-heading h2 {
    margin: 8px 0 10px;
    color: #111827;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-weight: 950;
}

.section-heading p {
    margin: 0;
    color: #6b7280;
    line-height: 1.8;
}

.category-grid,
.overview-grid {
    display: grid;
    gap: 22px;
}

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

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

.category-card,
.category-overview-card a,
.filter-panel,
.detail-article,
.player-card,
.ranking-panel,
.about-content article {
    border: 1px solid #fed7aa;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 20px 50px rgba(251, 146, 60, 0.12);
}

.category-card,
.category-overview-card a {
    display: block;
    padding: 18px;
    transition: 180ms ease;
}

.category-card:hover,
.category-overview-card a:hover,
.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 60px rgba(251, 146, 60, 0.22);
}

.category-covers,
.overview-covers {
    display: grid;
    gap: 6px;
}

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

.overview-covers {
    grid-template-columns: repeat(6, 1fr);
}

.category-covers img,
.overview-covers img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
    background: #fed7aa;
}

.category-card strong,
.category-overview-card h2 {
    display: block;
    margin-top: 18px;
    font-size: 22px;
    font-weight: 950;
    color: #111827;
}

.category-card p,
.category-overview-card p {
    color: #6b7280;
    line-height: 1.7;
}

.category-card span,
.category-overview-card span {
    color: #ea580c;
    font-weight: 900;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid #fed7aa;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 40px rgba(251, 146, 60, 0.10);
    transition: 180ms ease;
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #fed7aa;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 280ms ease;
}

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

.play-mini {
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    opacity: 0;
    transform: translateY(10px);
    transition: 180ms ease;
}

.movie-card:hover .play-mini {
    opacity: 1;
    transform: translateY(0);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    min-width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    box-shadow: 0 12px 22px rgba(239, 68, 68, 0.28);
}

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

.movie-card h3,
.movie-card h2 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 900;
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    color: #9a3412;
    font-size: 12px;
    font-weight: 800;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    align-items: start;
}

.ranking-panel {
    position: sticky;
    top: 102px;
    padding: 22px;
}

.rank-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rank-row a {
    display: grid;
    grid-template-columns: 38px 54px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: #fff7ed;
    transition: 180ms ease;
}

.rank-row a:hover {
    background: #ffedd5;
}

.rank-number {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 999px;
    background: #f97316;
    font-weight: 950;
}

.rank-row img {
    width: 54px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
}

.rank-row strong {
    overflow: hidden;
    color: #111827;
    font-size: 15px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-row em,
.rank-row small {
    color: #6b7280;
    font-size: 12px;
    font-style: normal;
}

.full-rank .rank-row a {
    grid-template-columns: 54px 70px minmax(0, 1fr) minmax(160px, 0.35fr) 120px;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background-color: #111827;
    background-size: cover;
    background-position: center;
}

.page-hero {
    padding: 86px 0;
}

.simple-hero {
    background-image: linear-gradient(135deg, #111827, #7c2d12 64%, #f97316);
}

.page-hero .container,
.detail-hero .container {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: #fed7aa;
    font-weight: 800;
}

.inline-filter {
    display: flex;
    gap: 10px;
    max-width: 620px;
    margin-top: 28px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
}

.inline-filter input {
    padding: 12px 16px;
    border-radius: 999px;
}

.inline-filter button {
    min-width: 110px;
    padding: 0 20px;
}

.detail-hero {
    padding: 72px 0;
}

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

.detail-copy h1 {
    font-size: clamp(36px, 6vw, 72px);
}

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

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

.detail-main {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
    gap: 28px;
    align-items: start;
}

.player-card {
    position: relative;
    overflow: hidden;
    padding: 0;
    background: #000000;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    color: #ffffff;
    border: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0.58));
    cursor: pointer;
}

.play-overlay span {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #fb923c, #f59e0b);
    font-size: 32px;
    box-shadow: 0 22px 44px rgba(249, 115, 22, 0.35);
}

.play-overlay strong {
    font-size: 22px;
}

.player-card.playing .play-overlay {
    opacity: 0;
    pointer-events: none;
}

.detail-article,
.about-content article,
.filter-panel {
    padding: 26px;
}

.detail-article h2,
.about-content h2,
.filter-panel h2 {
    margin: 0 0 14px;
    color: #111827;
    font-size: 26px;
    font-weight: 950;
}

.detail-article p,
.about-content p {
    color: #4b5563;
    line-height: 1.9;
}

.info-list {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.info-list div {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: #fff7ed;
}

.info-list dt {
    color: #9a3412;
    font-weight: 900;
}

.info-list dd {
    margin: 0;
    color: #374151;
}

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

.filter-panel {
    position: sticky;
    top: 102px;
}

.advanced-filter {
    display: grid;
    gap: 16px;
}

.advanced-filter label {
    display: grid;
    gap: 8px;
    color: #9a3412;
    font-weight: 850;
}

.advanced-filter input,
.advanced-filter select {
    padding: 12px 14px;
    border: 1px solid #fed7aa;
    border-radius: 16px;
}

.advanced-filter button {
    min-height: 44px;
}

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

.site-footer {
    margin-top: 40px;
    color: #ffffff;
    background: #111827;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 28px;
    padding: 52px 0;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #fed7aa;
    font-size: 20px;
    font-weight: 950;
}

.site-footer p,
.site-footer a {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.8;
}

.site-footer a:hover {
    color: #fed7aa;
}

.footer-bottom {
    padding: 18px;
    text-align: center;
    color: rgba(255, 255, 255, 0.62);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.no-result {
    grid-column: 1 / -1;
    padding: 34px;
    color: #9a3412;
    text-align: center;
    border: 1px dashed #fdba74;
    border-radius: 24px;
    background: #fff7ed;
}

@media (max-width: 1120px) {
    .header-search {
        display: none;
    }

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

    .split-layout,
    .detail-main,
    .search-layout {
        grid-template-columns: 1fr;
    }

    .ranking-panel,
    .filter-panel {
        position: static;
    }
}

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

    .main-nav {
        display: none;
    }

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

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

    .brand-text small {
        display: none;
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 52px;
    }

    .hero-poster {
        width: min(260px, 72vw);
    }

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

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

    .detail-poster {
        width: min(280px, 74vw);
    }

    .footer-grid,
    .about-content {
        grid-template-columns: 1fr;
    }

    .quick-search,
    .inline-filter {
        border-radius: 22px;
        flex-direction: column;
    }

    .quick-search button,
    .inline-filter button {
        min-height: 46px;
    }

    .full-rank .rank-row a {
        grid-template-columns: 42px 56px minmax(0, 1fr);
    }

    .rank-row em,
    .rank-row small {
        display: none;
    }
}

@media (max-width: 540px) {
    .container {
        width: min(100% - 20px, 1180px);
    }

    .category-grid,
    .overview-grid,
    .compact-grid,
    .movie-grid {
        gap: 14px;
    }

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

    .movie-card h3,
    .movie-card h2 {
        font-size: 15px;
    }

    .movie-desc {
        font-size: 13px;
    }

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

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