* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: #111827;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, #ea580c 0%, #dc2626 100%);
    box-shadow: 0 18px 40px rgba(124, 45, 18, 0.22);
}

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

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    flex: 0 0 auto;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text strong {
    font-size: 20px;
    letter-spacing: 0.02em;
}

.logo-text small {
    margin-top: 3px;
    font-size: 12px;
    opacity: 0.88;
}

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

.desktop-nav > a,
.nav-dropdown > a {
    color: #ffffff;
    font-weight: 700;
    opacity: 0.94;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: #ffedd5;
    opacity: 1;
}

.nav-dropdown {
    position: relative;
    padding: 20px 0;
}

.nav-dropdown-menu {
    position: absolute;
    top: 58px;
    left: 0;
    width: 220px;
    padding: 8px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

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

.nav-dropdown-menu a {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    color: #374151;
    font-weight: 700;
}

.nav-dropdown-menu a:hover {
    color: #ea580c;
    background: #fff7ed;
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 280px;
}

.header-search input,
.mobile-search input,
.search-page-form input,
.filter-search input {
    width: 100%;
    border: 0;
    outline: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    padding: 10px 88px 10px 16px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.header-search input::placeholder,
.mobile-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.header-search button,
.mobile-search button,
.search-page-form button {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    border: 0;
    border-radius: 999px;
    padding: 0 16px;
    color: #ea580c;
    background: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

.mobile-menu-button {
    display: none;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    padding: 8px 10px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
}

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

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

.mobile-panel nav {
    display: grid;
    gap: 6px;
    margin-top: 14px;
}

.mobile-panel nav a {
    color: #ffffff;
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 700;
}

.mobile-panel nav a:hover {
    background: rgba(255, 255, 255, 0.12);
}

.mobile-search {
    position: relative;
}

.hero-carousel {
    position: relative;
    height: 520px;
    overflow: hidden;
    background: linear-gradient(90deg, #111827 0%, #1f2937 100%);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.is-active {
    opacity: 1;
    z-index: 1;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.55) 48%, rgba(0, 0, 0, 0.05) 100%);
}

.hero-content {
    position: absolute;
    inset: 0;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #ffffff;
    z-index: 2;
}

.hero-content h1 {
    max-width: 720px;
    margin: 16px 0;
    font-size: clamp(36px, 7vw, 62px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.hero-content p {
    max-width: 650px;
    margin: 0 0 28px;
    font-size: 19px;
    color: #e5e7eb;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 14px;
    color: #ffffff;
    background: #ea580c;
    font-size: 14px;
    font-weight: 800;
}

.hero-actions,
.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    padding: 0 24px;
    font-weight: 800;
    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(90deg, #ea580c 0%, #dc2626 100%);
    box-shadow: 0 14px 26px rgba(234, 88, 12, 0.28);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
}

.page-hero .btn-ghost,
.category-overview .btn-ghost {
    color: #ea580c;
    background: #fff7ed;
    box-shadow: none;
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
    width: 34px;
    background: #ffffff;
}

.page-shell {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.page-shell--top {
    padding-top: 40px;
    padding-bottom: 56px;
}

.content-section {
    margin: 52px 0;
}

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

.section-heading h2,
.page-hero h1,
.article-panel h2 {
    margin: 0;
    color: #111827;
    font-weight: 900;
}

.section-heading h2 {
    font-size: clamp(28px, 4vw, 36px);
}

.section-heading p,
.page-hero p {
    margin: 8px 0 0;
    color: #6b7280;
}

.section-link {
    color: #ea580c;
    font-weight: 900;
}

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

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

.movie-card {
    min-width: 0;
}

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    height: 260px;
    background: #111827;
}

.movie-card--compact .poster-wrap {
    height: 190px;
}

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

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

.badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.badge-primary {
    top: 12px;
    left: 12px;
    color: #ffffff;
    background: #ea580c;
}

.badge-dark {
    right: 12px;
    bottom: 12px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(8px);
}

.movie-card-body {
    display: grid;
    gap: 8px;
    padding: 18px;
}

.movie-card-body strong {
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-body span {
    color: #6b7280;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-body em {
    color: #9ca3af;
    font-size: 13px;
    font-style: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.category-card,
.category-overview,
.page-hero {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.category-card {
    min-height: 230px;
    padding: 24px;
    color: #ffffff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card--orange {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.category-card--blue {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.category-card--green {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.category-card--red {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
}

.category-icon {
    display: block;
    font-size: 34px;
    margin-bottom: 18px;
}

.category-card strong {
    display: block;
    font-size: 24px;
    font-weight: 900;
}

.category-card em {
    display: block;
    margin-top: 6px;
    font-style: normal;
    opacity: 0.9;
}

.category-thumbs {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 20px;
    display: flex;
}

.category-thumbs img {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.category-thumbs img + img {
    margin-left: -12px;
}

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

.ranking-row,
.ranking-page-row {
    display: grid;
    align-items: center;
    gap: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
    transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-row {
    grid-template-columns: 48px 90px 1fr 46px;
    padding: 14px;
}

.ranking-row:hover,
.ranking-page-row:hover {
    background: #fff7ed;
    transform: translateY(-2px);
}

.ranking-number {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #facc15 0%, #f97316 100%);
    font-weight: 900;
}

.ranking-row img {
    width: 90px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
}

.ranking-row strong,
.ranking-page-row strong {
    display: block;
    color: #111827;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-row em,
.ranking-page-row em {
    display: block;
    color: #6b7280;
    font-size: 13px;
    font-style: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-row b,
.ranking-page-row b {
    color: #ea580c;
    font-size: 18px;
}

.page-hero {
    padding: clamp(32px, 6vw, 64px);
    margin-bottom: 38px;
}

.page-hero--simple {
    text-align: center;
}

.page-hero--simple h1,
.page-hero--category h1 {
    font-size: clamp(34px, 6vw, 54px);
}

.page-hero--category {
    color: #ffffff;
}

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

.page-hero-icon {
    display: block;
    font-size: 44px;
    margin-bottom: 14px;
}

.category-overview {
    padding: 28px;
    margin: 32px 0;
}

.category-overview-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.category-overview-header > span {
    font-size: 42px;
}

.category-overview-header h2 {
    margin: 0;
    font-size: 30px;
}

.category-overview-header p {
    margin: 6px 0 0;
    color: #4b5563;
}

.filter-panel,
.search-page-panel,
.article-panel,
.info-grid article {
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.filter-panel,
.search-page-panel {
    padding: 22px;
    margin-bottom: 34px;
}

.filter-search input,
.search-page-form input {
    color: #111827;
    background: #f3f4f6;
    box-shadow: inset 0 0 0 1px #e5e7eb;
}

.filter-search input::placeholder,
.search-page-form input::placeholder {
    color: #9ca3af;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.filter-chips button {
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    color: #374151;
    background: #f3f4f6;
    font-weight: 800;
    cursor: pointer;
}

.filter-chips button:hover,
.filter-chips button.is-active {
    color: #ffffff;
    background: #ea580c;
}

.search-page-form {
    position: relative;
}

.search-page-form input {
    height: 52px;
    padding-right: 110px;
}

.ranking-page-list {
    display: grid;
    gap: 14px;
}

.ranking-page-row {
    grid-template-columns: 54px 120px 1fr 54px;
    padding: 16px;
}

.ranking-page-row img {
    width: 120px;
    height: 78px;
    border-radius: 14px;
    object-fit: cover;
}

.ranking-info small {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.breadcrumb a {
    color: #ea580c;
}

.detail-hero {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    align-items: stretch;
    margin-bottom: 34px;
    border-radius: 26px;
    padding: 28px;
    color: #ffffff;
    background: linear-gradient(135deg, #111827 0%, #7c2d12 100%);
    box-shadow: 0 24px 58px rgba(15, 23, 42, 0.18);
}

.detail-poster {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.3);
}

.detail-poster img {
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
}

.detail-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-intro h1 {
    margin: 18px 0 16px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.08;
}

.detail-intro p {
    max-width: 760px;
    margin: 0 0 20px;
    color: #f3f4f6;
    font-size: 18px;
}

.detail-meta,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-meta span,
.tag-list span {
    border-radius: 999px;
    padding: 7px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    font-weight: 800;
    font-size: 13px;
}

.tag-list {
    margin-top: 18px;
}

.player-panel {
    margin-bottom: 34px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #020617;
    box-shadow: 0 24px 58px rgba(15, 23, 42, 0.28);
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(234, 88, 12, 0.28) 0%, rgba(2, 6, 23, 0.56) 52%, rgba(2, 6, 23, 0.72) 100%);
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover-icon {
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ea580c;
    background: #ffffff;
    font-size: 34px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.player-cover-text {
    font-size: 20px;
    font-weight: 900;
}

.article-panel {
    padding: clamp(24px, 5vw, 42px);
    margin-bottom: 36px;
}

.article-panel h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

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

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

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

.info-grid article {
    padding: 28px;
}

.info-grid h2 {
    margin: 0 0 10px;
    color: #111827;
}

.info-grid p {
    margin: 0;
    color: #4b5563;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
}

.footer-inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 26px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 28px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 20px;
}

.footer-grid h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 18px;
}

.footer-grid p {
    color: #9ca3af;
}

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

.footer-grid a:hover {
    color: #fb923c;
}

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

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

.empty-state {
    grid-column: 1 / -1;
    border-radius: 18px;
    padding: 32px;
    color: #6b7280;
    background: #ffffff;
    text-align: center;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

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

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

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

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

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

    .hero-carousel {
        height: 560px;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.36) 0%, rgba(0, 0, 0, 0.82) 100%);
    }

    .hero-content {
        justify-content: flex-end;
        padding-bottom: 86px;
    }

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

    .movie-grid,
    .movie-grid--small,
    .category-grid,
    .ranking-grid,
    .info-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-overview-header,
    .detail-hero {
        grid-template-columns: 1fr;
    }

    .detail-poster img {
        min-height: 320px;
    }

    .ranking-page-row {
        grid-template-columns: 46px 86px 1fr;
    }

    .ranking-page-row b {
        display: none;
    }
}

@media (max-width: 560px) {
    .header-inner,
    .page-shell,
    .footer-inner {
        width: min(100% - 24px, 1200px);
    }

    .logo-text small {
        display: none;
    }

    .hero-content h1 {
        font-size: 36px;
    }

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

    .movie-grid,
    .movie-grid--small,
    .category-grid,
    .ranking-grid,
    .info-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .poster-wrap,
    .movie-card--compact .poster-wrap {
        height: 240px;
    }

    .ranking-row {
        grid-template-columns: 42px 78px 1fr;
    }

    .ranking-row b {
        display: none;
    }

    .ranking-page-row {
        grid-template-columns: 42px 74px 1fr;
        gap: 10px;
        padding: 12px;
    }

    .ranking-page-row img {
        width: 74px;
        height: 56px;
    }

    .category-overview,
    .page-hero,
    .filter-panel,
    .search-page-panel,
    .article-panel {
        border-radius: 18px;
    }

    .player-cover-icon {
        width: 64px;
        height: 64px;
        font-size: 28px;
    }
}
