:root {
    --site-bg: #fff7ed;
    --site-bg-soft: #fff1f2;
    --site-card: #ffffff;
    --site-text: #1f2937;
    --site-muted: #6b7280;
    --site-line: #fed7aa;
    --site-orange: #f97316;
    --site-pink: #ec4899;
    --site-red: #ef4444;
    --site-shadow: 0 20px 50px rgba(31, 41, 55, 0.12);
    --site-radius: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--site-text);
    background:
        radial-gradient(circle at top left, rgba(249, 115, 22, 0.14), transparent 34rem),
        linear-gradient(180deg, #fff7ed 0%, #ffffff 46%, #fff1f2 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(251, 146, 60, 0.18);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

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

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

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

.logo-mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--site-orange), var(--site-pink));
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.3);
}

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

.logo-text strong {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--site-orange), var(--site-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-text span {
    margin-top: 4px;
    color: var(--site-muted);
    font-size: 12px;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    font-size: 15px;
    font-weight: 700;
}

.site-nav a,
.mobile-nav a,
.footer-links a {
    color: inherit;
    text-decoration: none;
}

.site-nav a {
    color: #374151;
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--site-orange);
    transform: translateY(-1px);
}

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

.search-form {
    position: relative;
    width: 230px;
}

.search-form input,
.filter-form input,
.filter-form select {
    width: 100%;
    border: 1px solid rgba(251, 146, 60, 0.28);
    border-radius: 999px;
    background: #ffffff;
    color: var(--site-text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form input {
    height: 42px;
    padding: 0 48px 0 18px;
}

.search-form input:focus,
.filter-form input:focus,
.filter-form select:focus {
    border-color: var(--site-orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.16);
}

.search-form button {
    position: absolute;
    top: 50%;
    right: 8px;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(135deg, var(--site-orange), var(--site-pink));
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(135deg, var(--site-orange), var(--site-pink));
}

.mobile-nav {
    display: none;
    padding: 0 0 18px;
    gap: 10px;
    flex-direction: column;
    font-weight: 700;
}

.mobile-nav a {
    padding: 12px 14px;
    border-radius: 14px;
    color: #374151;
    background: rgba(255, 237, 213, 0.7);
}

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

.hero-slides,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    z-index: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 900ms ease;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.06) contrast(1.04);
}

.hero-slide::after {
    position: absolute;
    inset: 0;
    content: "";
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(3, 7, 18, 0.9) 0%, rgba(3, 7, 18, 0.58) 42%, rgba(3, 7, 18, 0.18) 100%),
        linear-gradient(0deg, rgba(3, 7, 18, 0.85) 0%, rgba(3, 7, 18, 0.08) 54%);
}

.hero-content,
.hero-slide-content {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 600px;
    align-items: center;
}

.hero-slide-content {
    position: absolute;
    inset: 0;
}

.hero-panel {
    width: min(660px, 100%);
    padding: 36px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 32px;
    background: rgba(15, 23, 42, 0.38);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #fdba74;
    font-weight: 800;
}

.hero h1 {
    margin: 0 0 16px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 58ch;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
}

.meta-row,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.meta-row {
    margin-bottom: 26px;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    background: rgba(249, 115, 22, 0.9);
}

.pill.soft {
    color: #9a3412;
    background: #ffedd5;
}

.pill.gray {
    color: #374151;
    background: #f3f4f6;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--site-orange), var(--site-pink));
    box-shadow: 0 14px 32px rgba(236, 72, 153, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 38px rgba(236, 72, 153, 0.34);
}

.btn.ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.btn.light {
    color: var(--site-orange);
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    transform: translateY(-50%);
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.24);
}

.hero-arrow.prev {
    left: 24px;
}

.hero-arrow.next {
    right: 24px;
}

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

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

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

.page-shell {
    padding: 54px 0 72px;
}

.section {
    margin-bottom: 58px;
}

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

.section-head h2,
.page-title h1,
.detail-title h1 {
    margin: 0;
    color: var(--site-text);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-head h2 {
    font-size: clamp(26px, 4vw, 38px);
}

.section-head p,
.page-title p,
.detail-title p {
    margin: 8px 0 0;
    color: var(--site-muted);
    line-height: 1.8;
}

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

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

.movie-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 22px;
    color: inherit;
    text-decoration: none;
    background: var(--site-card);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #ffedd5, #fce7f3);
}

.poster-wrap.tall {
    aspect-ratio: 2 / 3;
}

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

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

.poster-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.1));
    transition: opacity 0.25s ease;
}

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

.play-badge {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 50%;
    color: var(--site-orange);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.play-triangle {
    width: 0;
    height: 0;
    margin-left: 4px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid currentColor;
}

.card-body {
    padding: 16px;
}

.movie-card h3 {
    display: -webkit-box;
    min-height: 3.1em;
    margin: 0 0 10px;
    overflow: hidden;
    color: #1f2937;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

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

.card-desc {
    display: -webkit-box;
    min-height: 3.2em;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--site-muted);
    font-size: 13px;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--site-muted);
    font-size: 12px;
}

.card-corner {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.card-year {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    padding: 4px 9px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.62);
}

.feature-band {
    padding: 30px;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(255, 237, 213, 0.95), rgba(252, 231, 243, 0.95));
    box-shadow: var(--site-shadow);
}

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

.horizontal-card {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    overflow: hidden;
    border-radius: 22px;
    color: inherit;
    text-decoration: none;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.horizontal-card:hover {
    transform: translateX(4px);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.14);
}

.horizontal-card .poster-wrap {
    height: 100%;
    min-height: 138px;
    aspect-ratio: auto;
}

.horizontal-body {
    padding: 20px;
}

.horizontal-body h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 900;
}

.horizontal-body p {
    display: -webkit-box;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--site-muted);
    line-height: 1.7;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.category-tile {
    display: flex;
    min-height: 138px;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border-radius: 24px;
    color: #374151;
    text-decoration: none;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, color 0.22s ease, background 0.22s ease;
}

.category-tile:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-orange), var(--site-pink));
    transform: translateY(-5px);
}

.category-tile strong {
    font-size: 22px;
    font-weight: 900;
}

.category-tile span {
    color: currentColor;
    opacity: 0.78;
    font-size: 13px;
    line-height: 1.6;
}

.page-title {
    margin-bottom: 30px;
    padding: 34px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--site-shadow);
}

.page-title h1 {
    font-size: clamp(34px, 5vw, 54px);
}

.filter-bar {
    margin-bottom: 26px;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.filter-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px 170px;
    gap: 12px;
}

.filter-form input,
.filter-form select {
    height: 46px;
    padding: 0 16px;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 64px 150px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: 22px;
    color: inherit;
    text-decoration: none;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ranking-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
}

.rank-no {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 16px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--site-orange), var(--site-pink));
}

.ranking-item img {
    width: 150px;
    height: 90px;
    border-radius: 16px;
    object-fit: cover;
}

.ranking-info h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 900;
}

.ranking-info p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--site-muted);
    line-height: 1.7;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--site-muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--site-orange);
    text-decoration: none;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 46px 0;
    color: #ffffff;
    background: #111827;
}

.detail-hero-bg {
    position: absolute;
    inset: 0;
}

.detail-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px) scale(1.08) brightness(0.7);
}

.detail-hero-bg::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(3, 7, 18, 0.92), rgba(3, 7, 18, 0.58));
}

.detail-layout {
    position: relative;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
}

.detail-cover {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.detail-title h1 {
    color: #ffffff;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.1;
}

.detail-title p {
    max-width: 74ch;
    color: rgba(255, 255, 255, 0.84);
    font-size: 17px;
}

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

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

.player-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.34);
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
}

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

.player-button {
    position: relative;
    z-index: 2;
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: var(--site-orange);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.35);
}

.content-panel {
    padding: 30px;
    border-radius: 30px;
    background: #ffffff;
    box-shadow: var(--site-shadow);
}

.content-panel h2 {
    margin: 0 0 14px;
    font-size: 28px;
    font-weight: 900;
}

.content-panel p {
    margin: 0 0 18px;
    color: #4b5563;
    line-height: 1.9;
}

.tag-row {
    margin-top: 16px;
}

.site-footer {
    color: #e5e7eb;
    background: linear-gradient(135deg, #1f2937, #0f172a);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 26px;
    padding: 46px 0;
}

.footer-inner h3,
.footer-inner h4 {
    margin: 0 0 14px;
    color: #ffffff;
    font-weight: 900;
}

.footer-inner p,
.footer-inner li {
    color: #cbd5e1;
    line-height: 1.8;
}

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

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    text-align: center;
    font-size: 14px;
}

.empty-state {
    display: none;
    padding: 36px;
    border-radius: 24px;
    color: var(--site-muted);
    text-align: center;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.hide-card {
    display: none !important;
}

@media (max-width: 1100px) {
    .site-nav {
        gap: 14px;
        font-size: 14px;
    }

    .search-form {
        width: 190px;
    }

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

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

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

    .menu-button {
        display: grid;
        place-items: center;
    }

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

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

    .hero-panel {
        padding: 26px;
    }

    .hero-arrow {
        display: none;
    }

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

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

    .horizontal-card,
    .detail-layout,
    .filter-form,
    .ranking-item,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .horizontal-card .poster-wrap {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .detail-layout {
        align-items: start;
    }

    .detail-cover {
        width: min(320px, 100%);
    }

    .ranking-item img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

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

    .logo-text span {
        display: none;
    }

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

    .hero-panel {
        padding: 22px;
        border-radius: 24px;
    }

    .hero p {
        font-size: 15px;
    }

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

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

    .feature-band,
    .page-title,
    .content-panel {
        padding: 22px;
        border-radius: 24px;
    }
}
