:root {
    --orange: #f97316;
    --orange-dark: #ea580c;
    --pink: #ec4899;
    --yellow: #facc15;
    --text: #1f2937;
    --muted: #6b7280;
    --soft: #f8fafc;
    --line: #e5e7eb;
    --card: #ffffff;
    --dark: #111827;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.10);
}

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: var(--text);
    background: linear-gradient(180deg, #fff7ed 0, #f9fafb 360px, #f8fafc 100%);
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: var(--dark);
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.32);
}

.brand-name {
    font-size: 20px;
    letter-spacing: -0.02em;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: #fff7ed;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.mobile-menu-button span {
    width: 22px;
    height: 2px;
    background: var(--orange-dark);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

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

.mobile-nav-link {
    padding: 12px 14px;
    border-radius: 12px;
    color: #374151;
    font-weight: 700;
}

.mobile-nav-link:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
}

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

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

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.62) 44%, rgba(17, 24, 39, 0.22) 100%), linear-gradient(0deg, rgba(17, 24, 39, 0.85) 0%, rgba(17, 24, 39, 0.10) 42%);
}

.hero-content {
    position: absolute;
    left: max(32px, calc((100% - 1180px) / 2));
    top: 50%;
    width: min(620px, calc(100% - 64px));
    transform: translateY(-50%);
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 7px 13px;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(249, 115, 22, 0.88);
    font-weight: 900;
    letter-spacing: 0.04em;
}

.hero-content h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.03;
    letter-spacing: -0.06em;
}

.hero-content p {
    margin: 0 0 22px;
    color: #e5e7eb;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

.hero-meta,
.detail-meta,
.card-meta-line,
.card-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-meta span,
.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    font-weight: 700;
}

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

.primary-button,
.ghost-button,
.hero-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    font-weight: 900;
    box-shadow: 0 16px 32px rgba(236, 72, 153, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button:hover,
.ghost-button:hover,
.hero-search button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 20px 42px rgba(236, 72, 153, 0.32);
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: none;
    backdrop-filter: blur(16px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(16px);
    font-size: 38px;
    line-height: 1;
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-50%) scale(1.05);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 38px;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    width: 34px;
    background: #ffffff;
}

.hero-search {
    position: absolute;
    left: 50%;
    bottom: 88px;
    display: flex;
    width: min(720px, calc(100% - 32px));
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(20px);
    transform: translateX(-50%);
}

.hero-search input,
.filter-panel input {
    width: 100%;
    border: 0;
    outline: none;
    color: var(--text);
    background: #ffffff;
    border-radius: 999px;
    font-size: 16px;
}

.hero-search input {
    padding: 0 18px;
}

.page-stack {
    display: grid;
    gap: 72px;
    padding: 72px 0;
}

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

.section-head h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 38px);
    letter-spacing: -0.04em;
    color: var(--text);
}

.section-head p {
    margin: 8px 0 0;
    color: var(--muted);
}

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--orange-dark);
    font-weight: 900;
}

.highlight-section,
.page-hero,
.filter-panel,
.detail-content,
.player-section,
.related-section {
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
}

.highlight-section {
    padding: 32px;
    background: linear-gradient(135deg, #fff7ed, #fdf2f8);
}

.movie-grid {
    display: grid;
    gap: 24px;
}

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

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

.compact-gap {
    margin-top: 24px;
}

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: var(--card);
    box-shadow: 0 12px 30px 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 22px 45px rgba(15, 23, 42, 0.14);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #374151);
}

.poster-link img,
.horizontal-cover img,
.detail-poster img,
.category-list-poster img,
.category-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-link img,
.horizontal-cover img {
    transition: transform 0.45s ease;
}

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

.poster-mask {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.10), rgba(17, 24, 39, 0.70));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-mask {
    opacity: 1;
}

.play-icon,
.big-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    color: var(--orange);
    background: rgba(255, 255, 255, 0.92);
    font-weight: 900;
    transform: scale(0.86);
    transition: transform 0.25s ease;
}

.movie-card:hover .play-icon {
    transform: scale(1);
}

.category-pill,
.year-pill,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.category-pill {
    top: 12px;
    left: 12px;
    max-width: calc(100% - 88px);
    overflow: hidden;
    padding: 6px 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--orange), var(--pink));
}

.year-pill {
    right: 12px;
    bottom: 12px;
    padding: 5px 9px;
    background: rgba(17, 24, 39, 0.78);
}

.rank-badge {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #facc15, var(--orange));
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.30);
}

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

.movie-card-body h3,
.horizontal-body h3 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 18px;
    line-height: 1.35;
}

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

.movie-card-body p,
.horizontal-body p,
.page-hero p,
.detail-one-line,
.detail-content p,
.category-list-card p {
    color: var(--muted);
    line-height: 1.78;
}

.movie-card-body p,
.horizontal-body p {
    display: -webkit-box;
    min-height: 50px;
    margin: 0 0 14px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-foot,
.card-meta-line {
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
}

.horizontal-list {
    display: grid;
    gap: 18px;
}

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

.horizontal-cover {
    position: relative;
    min-height: 160px;
    overflow: hidden;
    background: #111827;
}

.horizontal-cover .play-icon {
    position: absolute;
    inset: 0;
    margin: auto;
    opacity: 0;
}

.horizontal-card:hover .play-icon {
    opacity: 1;
}

.horizontal-body {
    padding: 24px;
}

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

.category-card,
.category-list-card {
    display: block;
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.category-list-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.14);
}

.category-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    height: 132px;
    background: linear-gradient(135deg, var(--orange), var(--pink));
}

.category-card h3,
.category-card p,
.category-card span {
    margin-left: 18px;
    margin-right: 18px;
}

.category-card h3 {
    margin-top: 18px;
    margin-bottom: 8px;
    font-size: 20px;
}

.category-card p {
    min-height: 76px;
    margin-top: 0;
    margin-bottom: 16px;
    color: var(--muted);
    line-height: 1.7;
}

.category-card span {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--orange-dark);
    font-weight: 900;
}

.inner-page {
    padding: 40px 0 76px;
}

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

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

.page-hero {
    margin-bottom: 28px;
    padding: 38px;
    background: linear-gradient(135deg, #fff7ed, #ffffff 42%, #fdf2f8);
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 54px);
    letter-spacing: -0.06em;
}

.filter-panel {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding: 14px;
}

.filter-panel input {
    min-height: 52px;
    padding: 0 18px;
    border: 1px solid var(--line);
}

.filter-count {
    flex: 0 0 auto;
    color: var(--orange-dark);
    font-weight: 900;
}

.empty-state {
    display: none;
    margin: 36px 0 0;
    padding: 24px;
    border-radius: 20px;
    color: var(--muted);
    text-align: center;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.empty-state.show {
    display: block;
}

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

.category-list-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: stretch;
}

.category-list-poster {
    position: relative;
    min-height: 150px;
    background: linear-gradient(135deg, #111827, #374151);
}

.category-list-poster span {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.76);
    font-weight: 900;
}

.category-list-card div:last-child {
    padding: 20px;
}

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

.detail-page {
    display: grid;
    gap: 28px;
}

.detail-hero {
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    padding: 32px;
    border-radius: 34px;
    color: #ffffff;
    background: radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.85), transparent 34%), linear-gradient(135deg, #111827, #1f2937 58%, #831843);
    box-shadow: var(--shadow);
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 26px;
    background: #111827;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}

.detail-info h1 {
    margin: 0 0 16px;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.1;
    letter-spacing: -0.06em;
}

.detail-one-line {
    margin: 0 0 20px;
    color: #e5e7eb;
    font-size: 18px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

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

.player-section,
.detail-content,
.related-section {
    padding: 28px;
}

.player-section h2,
.detail-content h2 {
    margin: 0 0 18px;
    font-size: 28px;
    letter-spacing: -0.04em;
}

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.20), rgba(17, 24, 39, 0.78));
    cursor: pointer;
}

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

.big-play {
    width: 86px;
    height: 86px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    font-size: 28px;
    box-shadow: 0 20px 40px rgba(236, 72, 153, 0.34);
}

.player-overlay strong {
    max-width: min(760px, calc(100% - 48px));
    font-size: clamp(22px, 4vw, 40px);
    text-align: center;
}

.detail-content p {
    margin: 0 0 26px;
    font-size: 17px;
}

.compact-card .movie-card-body p {
    display: none;
}

.site-footer {
    color: #d1d5db;
    background: #111827;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0;
    display: flex;
    justify-content: space-between;
    gap: 28px;
}

.footer-brand p {
    max-width: 520px;
    margin: 14px 0 0;
    color: #9ca3af;
    line-height: 1.8;
}

.footer-logo {
    color: #ffffff;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 12px 20px;
}

.footer-links a:hover {
    color: #ffffff;
}

@media (max-width: 1024px) {
    .movie-grid.four-col,
    .category-grid,
    .category-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 760px) {
    .desktop-nav {
        display: none;
    }

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

    .hero {
        height: 680px;
    }

    .hero-content {
        top: 44%;
        left: 20px;
        width: calc(100% - 40px);
    }

    .hero-search {
        bottom: 72px;
        border-radius: 26px;
        flex-direction: column;
    }

    .hero-search input {
        min-height: 48px;
    }

    .hero-arrow {
        display: none;
    }

    .section-head,
    .footer-inner,
    .filter-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .movie-grid.four-col,
    .movie-grid.two-col,
    .category-grid,
    .category-list-grid {
        grid-template-columns: 1fr;
    }

    .horizontal-card,
    .category-list-card {
        grid-template-columns: 1fr;
    }

    .horizontal-cover,
    .category-list-poster {
        min-height: 210px;
    }

    .page-hero,
    .highlight-section,
    .detail-hero,
    .player-section,
    .detail-content,
    .related-section {
        padding: 22px;
        border-radius: 24px;
    }
}
