
:root {
    --orange: #f97316;
    --orange-dark: #ea580c;
    --red: #dc2626;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--gray-50);
    color: var(--gray-800);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: var(--white);
    background: linear-gradient(90deg, var(--orange-dark), var(--red));
    box-shadow: 0 10px 25px rgba(185, 28, 28, 0.22);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 64px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
    font-weight: 800;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: var(--orange);
    background: var(--white);
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.45);
}

.brand-name {
    font-size: 24px;
    letter-spacing: 0.01em;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-weight: 600;
}

.desktop-nav a,
.mobile-nav a {
    transition: color 0.2s ease, opacity 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: #fed7aa;
}

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

.header-search input,
.mobile-search input {
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: 10px 70px 10px 16px;
    color: var(--gray-800);
    outline: 0;
}

.header-search input:focus,
.mobile-search input:focus {
    box-shadow: 0 0 0 3px rgba(254, 215, 170, 0.8);
}

.header-search button,
.mobile-search button {
    position: absolute;
    right: 4px;
    border: 0;
    border-radius: 999px;
    padding: 7px 14px;
    color: var(--white);
    background: var(--orange);
    cursor: pointer;
}

.menu-toggle {
    display: none;
    border: 0;
    color: var(--white);
    background: transparent;
    font-size: 28px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
}

.mobile-nav a {
    display: block;
    padding: 10px 0;
    font-weight: 600;
}

.mobile-search {
    position: relative;
    margin: 8px 0 12px;
}

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #000;
}

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

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

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

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.48) 48%, rgba(0, 0, 0, 0.12));
}

.hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 54px 0 74px;
    color: var(--white);
}

.hero-badge,
.card-badge,
.section-label {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 14px;
    color: var(--white);
    background: var(--orange);
    font-size: 14px;
    font-weight: 700;
}

.hero h1,
.hero h2 {
    max-width: 820px;
    margin: 18px 0 16px;
    font-size: clamp(34px, 7vw, 58px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

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

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    padding: 0 24px;
    border: 0;
    color: var(--white);
    background: var(--orange);
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    background: var(--orange-dark);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.3);
}

.btn.secondary {
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.24);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.45);
    font-size: 30px;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease;
}

.hero-control:hover {
    background: rgba(0, 0, 0, 0.72);
}

.hero-control.prev {
    left: 18px;
}

.hero-control.next {
    right: 18px;
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    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.active {
    width: 34px;
    background: var(--orange);
}

.section {
    padding: 56px 0 0;
}

.section.soft {
    margin-top: 56px;
    padding: 40px;
    border-radius: 28px;
    background: linear-gradient(135deg, #fff7ed, #fef2f2);
}

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

.section-head h2,
.page-title h1 {
    margin: 0;
    color: var(--gray-800);
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.2;
}

.section-head p,
.page-title p {
    max-width: 720px;
    margin: 8px 0 0;
    color: var(--gray-500);
}

.grid {
    display: grid;
    gap: 22px;
}

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

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

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

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

.movie-card {
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.card-link {
    display: block;
    height: 100%;
}

.poster-wrap {
    position: relative;
    height: 248px;
    overflow: hidden;
    background: var(--gray-200);
}

.movie-card-large .poster-wrap {
    height: 360px;
}

.movie-card-small .poster-wrap {
    height: 170px;
}

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

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

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}

.movie-card:hover .poster-wrap::after {
    background: rgba(0, 0, 0, 0.4);
}

.play-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(249, 115, 22, 0.92);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    font-size: 13px;
}

.year-pill {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 2;
    border-radius: 8px;
    padding: 4px 8px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.72);
    font-size: 12px;
    font-weight: 700;
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    margin: 0 0 8px;
    color: var(--gray-800);
    font-size: 18px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card:hover h3 {
    color: var(--orange-dark);
}

.card-body p {
    margin: 0 0 12px;
    color: var(--gray-500);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--gray-500);
    font-size: 12px;
}

.meta-row span {
    border-radius: 7px;
    padding: 4px 8px;
    background: var(--gray-100);
}

.meta-row span:first-child {
    color: var(--orange-dark);
    background: #ffedd5;
}

.compact-list {
    display: grid;
    gap: 16px;
}

.compact-card a {
    display: flex;
    gap: 16px;
    padding: 14px;
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.compact-card a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.compact-card img {
    width: 160px;
    height: 96px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--gray-200);
}

.compact-card h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.compact-card p {
    margin: 0 0 8px;
    color: var(--gray-500);
    font-size: 14px;
}

.compact-card span {
    color: var(--gray-500);
    font-size: 12px;
}

.page-hero {
    padding: 70px 0;
    color: var(--white);
    background: radial-gradient(circle at 20% 20%, rgba(255, 237, 213, 0.28), transparent 32%), linear-gradient(120deg, var(--orange-dark), var(--red));
}

.page-title h1 {
    color: var(--white);
}

.page-title p {
    color: #ffedd5;
}

.category-card {
    display: flex;
    flex-direction: column;
    min-height: 220px;
    border-radius: 20px;
    padding: 24px;
    color: var(--gray-800);
    background: var(--white);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-card strong {
    color: var(--orange-dark);
    font-size: 14px;
}

.category-card h2 {
    margin: 8px 0 10px;
    font-size: 22px;
}

.category-card p {
    margin: 0;
    color: var(--gray-500);
    font-size: 14px;
}

.category-card span {
    margin-top: auto;
    color: var(--orange-dark);
    font-weight: 800;
}

.filters {
    display: grid;
    grid-template-columns: 2fr repeat(3, minmax(140px, 1fr));
    gap: 12px;
    margin: 32px 0;
    padding: 18px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

.filters input,
.filters select {
    width: 100%;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 12px 14px;
    outline: 0;
    background: var(--white);
}

.filters input:focus,
.filters select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

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

.ranking-row {
    border-radius: 16px;
}

.ranking-row a {
    display: grid;
    grid-template-columns: 64px 110px 1fr;
    gap: 18px;
    align-items: center;
    padding: 14px 18px;
}

.ranking-row strong {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange), var(--red));
    font-size: 18px;
}

.ranking-row img {
    width: 110px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--gray-200);
}

.ranking-row h2 {
    margin: 0 0 4px;
    font-size: 20px;
}

.ranking-row p {
    margin: 0 0 6px;
    color: var(--gray-500);
}

.ranking-row span {
    color: var(--gray-500);
    font-size: 13px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0;
    color: var(--gray-500);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--orange-dark);
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 28px;
    align-items: start;
    padding: 26px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.player {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #000;
    aspect-ratio: 16 / 9;
}

.player video,
.player-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.player video {
    z-index: 1;
    object-fit: contain;
    background: #000;
}

.player-cover {
    z-index: 2;
    display: grid;
    place-items: center;
    border: 0;
    padding: 0;
    color: var(--white);
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

.player-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.18));
}

.player-cover span {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 999px;
    background: var(--orange);
    font-size: 34px;
    box-shadow: 0 18px 40px rgba(249, 115, 22, 0.35);
}

.player.is-playing .player-cover {
    display: none;
}

.detail-info h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
}

.detail-info .one-line {
    margin: 0 0 18px;
    color: var(--gray-700);
    font-size: 18px;
    font-weight: 600;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 22px;
}

.detail-tags span {
    border-radius: 999px;
    padding: 6px 12px;
    color: var(--orange-dark);
    background: #ffedd5;
    font-size: 13px;
    font-weight: 700;
}

.info-table {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.info-table div {
    border-radius: 12px;
    padding: 10px 12px;
    background: var(--gray-100);
}

.info-table strong {
    display: block;
    color: var(--gray-500);
    font-size: 12px;
}

.info-table span {
    font-weight: 700;
}

.article-box {
    margin-top: 32px;
    padding: 28px;
    border-radius: 22px;
    background: var(--white);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

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

.article-box p {
    margin: 0 0 18px;
    color: var(--gray-700);
}

.site-footer {
    margin-top: 72px;
    color: #d1d5db;
    background: var(--gray-900);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
    gap: 34px;
    padding: 42px 0;
}

.site-footer h2,
.site-footer h3 {
    margin: 0 0 14px;
    color: var(--white);
}

.site-footer p,
.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li + li {
    margin-top: 8px;
}

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

.footer-bottom {
    border-top: 1px solid #1f2937;
    padding: 18px 0;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

.empty-state {
    display: none;
    margin: 26px 0;
    padding: 34px;
    border-radius: 18px;
    text-align: center;
    color: var(--gray-500);
    background: var(--white);
}

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

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

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

    .menu-toggle {
        display: block;
    }

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

    .hero {
        height: 540px;
    }

    .hero-content {
        padding: 42px 0 70px;
    }

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

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

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

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

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

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

    .hero {
        height: 500px;
    }

    .hero-control {
        display: none;
    }

    .section.soft {
        padding: 22px;
    }

    .section-head {
        display: block;
    }

    .grid.featured,
    .grid.four,
    .grid.six,
    .grid.category-grid {
        grid-template-columns: 1fr;
    }

    .movie-card-large .poster-wrap,
    .poster-wrap {
        height: 260px;
    }

    .movie-card-small .poster-wrap {
        height: 220px;
    }

    .compact-card a {
        display: grid;
    }

    .compact-card img {
        width: 100%;
        height: 190px;
    }

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

    .ranking-row a {
        grid-template-columns: 48px 82px 1fr;
        gap: 12px;
        padding: 12px;
    }

    .ranking-row strong {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .ranking-row img {
        width: 82px;
        height: 60px;
    }

    .ranking-row h2 {
        font-size: 17px;
    }

    .ranking-row p {
        display: none;
    }

    .info-table,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
