:root {
    --bg: #fff7ed;
    --panel: #ffffff;
    --panel-soft: #fffaf3;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #fed7aa;
    --orange: #f97316;
    --amber: #f59e0b;
    --yellow: #facc15;
    --red: #ef4444;
    --shadow: 0 18px 45px rgba(124, 45, 18, 0.12);
    --shadow-strong: 0 24px 80px rgba(124, 45, 18, 0.2);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 26%, #fff7ed 100%);
    line-height: 1.7;
}

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

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

button,
input {
    font: inherit;
}

.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);
    border-bottom: 1px solid rgba(253, 186, 116, 0.45);
    box-shadow: 0 8px 28px rgba(124, 45, 18, 0.08);
    backdrop-filter: blur(18px);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
}

.logo-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
    transition: transform 0.25s ease;
}

.logo:hover .logo-mark {
    transform: scale(1.08) rotate(-5deg);
}

.logo-title {
    display: block;
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1.1;
    color: transparent;
    background: linear-gradient(135deg, #ea580c, #d97706);
    -webkit-background-clip: text;
    background-clip: text;
}

.logo-subtitle {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.78rem;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    color: #374151;
    font-weight: 700;
}

.main-nav a {
    position: relative;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--orange), var(--amber));
    transition: width 0.2s ease;
}

.main-nav a:hover {
    color: var(--orange);
}

.main-nav a:hover::after {
    width: 100%;
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #fff7ed;
    color: #9a3412;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--line);
    padding: 12px 0 18px;
}

.mobile-nav a {
    display: block;
    padding: 12px 0;
    font-weight: 700;
    color: #374151;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 660px;
    background: radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.45), transparent 26%), linear-gradient(135deg, #fb923c 0%, #f59e0b 48%, #facc15 100%);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    filter: blur(1px);
    animation: floaty 8s ease-in-out infinite;
}

.hero::before {
    width: 190px;
    height: 190px;
    left: 8%;
    top: 14%;
}

.hero::after {
    width: 280px;
    height: 280px;
    right: 8%;
    bottom: 10%;
    animation-delay: 1.5s;
}

@keyframes floaty {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-22px);
    }
}

.hero-inner {
    position: relative;
    z-index: 2;
    min-height: 660px;
    display: flex;
    align-items: center;
}

.hero-slide {
    display: none;
    width: 100%;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    align-items: center;
    gap: 48px;
    color: #ffffff;
}

.hero-slide.is-active {
    display: grid;
    animation: fadeUp 0.65s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
    font-weight: 800;
}

.hero h1 {
    margin: 24px 0 16px;
    max-width: 820px;
    font-size: clamp(2.8rem, 7vw, 5.8rem);
    line-height: 1.02;
    letter-spacing: -0.08em;
    text-shadow: 0 16px 36px rgba(124, 45, 18, 0.22);
}

.hero-desc {
    max-width: 680px;
    margin: 0 0 26px;
    font-size: clamp(1.05rem, 2.1vw, 1.35rem);
    color: rgba(255, 255, 255, 0.93);
    text-shadow: 0 8px 24px rgba(124, 45, 18, 0.2);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.hero-meta span,
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
    color: #ea580c;
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(124, 45, 18, 0.22);
}

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

.button:hover {
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    display: grid;
    place-items: center;
}

.hero-poster-wrap {
    position: relative;
    width: min(410px, 78vw);
    aspect-ratio: 3 / 4;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    transform: rotate(2deg);
    background: rgba(255, 255, 255, 0.18);
}

.hero-poster-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.58));
}

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

.hero-poster-wrap:hover img {
    transform: scale(1.06);
}

.hero-poster-caption {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    z-index: 3;
    color: #ffffff;
}

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

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    font-size: 1.6rem;
    line-height: 1;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.section {
    padding: 72px 0;
}

.section-soft {
    background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
}

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

.section-title {
    margin: 0;
    font-size: clamp(1.7rem, 3.4vw, 2.55rem);
    line-height: 1.18;
    letter-spacing: -0.04em;
}

.section-subtitle {
    max-width: 680px;
    margin: 10px 0 0;
    color: var(--muted);
}

.title-line {
    flex: 1;
    height: 4px;
    min-width: 120px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--orange), var(--amber), transparent);
}

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

.category-tile {
    min-height: 140px;
    padding: 24px;
    border-radius: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #fb923c, #f59e0b);
    box-shadow: var(--shadow);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile:nth-child(3n + 2) {
    background: linear-gradient(135deg, #f97316, #ef4444);
}

.category-tile:nth-child(3n) {
    background: linear-gradient(135deg, #f59e0b, #eab308);
}

.category-tile:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-strong);
}

.category-tile strong {
    display: block;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.category-tile span {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.92rem;
}

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

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

.movie-card {
    min-width: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--panel);
    box-shadow: var(--shadow);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.card-poster {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #fed7aa, #fde68a);
}

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

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

.card-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.62));
}

.card-badge,
.card-duration,
.card-rank {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
}

.card-badge {
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    background: linear-gradient(135deg, var(--orange), var(--amber));
}

.card-duration {
    right: 12px;
    bottom: 12px;
    padding: 5px 9px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
}

.card-rank {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.6);
}

.card-body {
    padding: 16px;
}

.card-title {
    margin: 0 0 9px;
    font-size: 1.05rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-desc {
    min-height: 48px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta,
.detail-meta,
.rank-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    color: #78716c;
    font-size: 0.84rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    color: #c2410c;
    background: #ffedd5;
    font-size: 0.8rem;
    font-weight: 800;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin-bottom: 28px;
    padding: 16px;
    border: 1px solid rgba(253, 186, 116, 0.55);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow);
}

.search-input {
    width: 100%;
    min-height: 48px;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    padding: 0 18px;
    outline: 0;
    color: var(--text);
    background: #ffffff;
}

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

.page-hero {
    padding: 72px 0 54px;
    color: #ffffff;
    background: linear-gradient(135deg, #fb923c, #f59e0b 52%, #facc15);
}

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

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.08rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.82);
}

.breadcrumb a:hover {
    color: #ffffff;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 86px 100px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 20px;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange), var(--amber));
}

.rank-thumb {
    width: 100px;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    object-fit: cover;
    background: #fed7aa;
}

.rank-title {
    margin: 0 0 6px;
    font-size: 1.08rem;
}

.rank-desc {
    margin: 0 0 8px;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.detail-hero {
    padding: 48px 0 54px;
    color: #ffffff;
    background: radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.28), transparent 24%), linear-gradient(135deg, #fb923c, #f59e0b, #facc15);
}

.detail-title {
    max-width: 900px;
    margin: 0 0 16px;
    font-size: clamp(2.15rem, 4.8vw, 4.6rem);
    line-height: 1.08;
    letter-spacing: -0.07em;
}

.player-section {
    margin-top: -34px;
    position: relative;
    z-index: 3;
}

.video-frame {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: var(--shadow-strong);
    aspect-ratio: 16 / 9;
}

.video-frame video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.62));
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-overlay-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-weight: 900;
}

.play-icon {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ea580c;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}

.video-frame.is-playing .play-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

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

.detail-poster {
    position: sticky;
    top: 96px;
    overflow: hidden;
    border-radius: 28px;
    background: #fed7aa;
    box-shadow: var(--shadow);
}

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

.detail-panel,
.content-panel {
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.detail-panel {
    padding: 18px;
}

.content-panel {
    padding: 28px;
}

.content-panel h2 {
    margin: 0 0 12px;
    font-size: 1.45rem;
}

.content-panel p {
    margin: 0 0 22px;
    color: #4b5563;
}

.info-table {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.info-row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ffedd5;
    font-size: 0.95rem;
}

.info-row span:first-child {
    color: #9a3412;
    font-weight: 900;
}

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

.related-grid .card-body {
    padding: 12px;
}

.related-grid .card-desc,
.related-grid .card-meta {
    display: none;
}

.site-footer {
    margin-top: 48px;
    color: #d1d5db;
    background: linear-gradient(180deg, #111827, #1f2937);
}

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

.footer-title {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 1.15rem;
}

.footer-text {
    margin: 0;
    color: #9ca3af;
    font-size: 0.95rem;
}

.footer-links {
    display: grid;
    gap: 8px;
    color: #9ca3af;
    font-size: 0.95rem;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #9ca3af;
    font-size: 0.88rem;
}

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

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

@media (max-width: 860px) {
    .main-nav {
        display: none;
    }
    .menu-button {
        display: grid;
        place-items: center;
    }
    .mobile-nav.is-open {
        display: block;
    }
    .hero-slide.is-active {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 52px 0 88px;
    }
    .hero-inner,
    .hero {
        min-height: auto;
    }
    .hero-visual {
        justify-content: start;
    }
    .hero-poster-wrap {
        width: min(310px, 86vw);
    }
    .section-head {
        display: block;
    }
    .title-line {
        margin-top: 16px;
    }
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .detail-poster {
        position: static;
        max-width: 360px;
    }
    .rank-item {
        grid-template-columns: 56px 78px minmax(0, 1fr);
    }
    .rank-item .button {
        grid-column: 2 / -1;
        justify-self: start;
    }
    .rank-number {
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }
    .rank-thumb {
        width: 78px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1180px);
    }
    .header-inner {
        min-height: 64px;
    }
    .logo {
        min-width: 0;
    }
    .logo-title {
        font-size: 1.06rem;
    }
    .logo-subtitle {
        display: none;
    }
    .hero h1 {
        letter-spacing: -0.05em;
    }
    .movie-grid,
    .movie-grid.compact,
    .category-grid,
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
    .card-body {
        padding: 12px;
    }
    .card-desc {
        min-height: auto;
    }
    .search-panel {
        grid-template-columns: 1fr;
    }
    .section {
        padding: 52px 0;
    }
    .page-hero {
        padding: 52px 0 42px;
    }
    .content-panel {
        padding: 20px;
    }
    .footer-grid,
    .footer-bottom {
        grid-template-columns: 1fr;
        display: grid;
    }
}
