* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: #1f2937;
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 46%, #f8fafc 100%);
    line-height: 1.6;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(251, 191, 36, 0.24);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

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

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #d97706, #ea580c, #b45309);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 14px 26px rgba(234, 88, 12, 0.28);
    font-size: 16px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-nav a {
    padding: 10px 16px;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 700;
    transition: 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 12px 24px rgba(234, 88, 12, 0.18);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: #fff7ed;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: #b45309;
    border-radius: 10px;
}

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    padding: 64px 0;
    background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 42%, #ffffff 100%);
}

.hero-blob {
    position: absolute;
    width: 310px;
    height: 310px;
    border-radius: 999px;
    filter: blur(28px);
    opacity: 0.34;
    animation: floatBlob 12s ease-in-out infinite;
}

.blob-one {
    top: 70px;
    left: 6%;
    background: #fcd34d;
}

.blob-two {
    top: 150px;
    right: 8%;
    background: #fdba74;
    animation-delay: 2s;
}

.blob-three {
    bottom: -120px;
    left: 44%;
    background: #fbbf24;
    animation-delay: 4s;
}

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

.hero-slide {
    display: none;
    min-height: 430px;
    align-items: center;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
    gap: 48px;
}

.hero-slide.active {
    display: grid;
    animation: fadeIn 0.55s ease both;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 20px 0 8px;
    font-size: clamp(38px, 6vw, 66px);
    line-height: 1.06;
    letter-spacing: -0.04em;
    color: #111827;
}

.hero-copy h2 {
    margin: 0 0 18px;
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.12;
    background: linear-gradient(90deg, #d97706, #ea580c, #b45309);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy p {
    max-width: 720px;
    margin: 0 0 28px;
    color: #4b5563;
    font-size: 19px;
}

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

.primary-btn,
.ghost-btn,
.home-search button,
.search-row button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    border: 0;
    font-weight: 800;
    cursor: pointer;
    transition: 0.25s ease;
}

.primary-btn,
.home-search button {
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 18px 30px rgba(234, 88, 12, 0.22);
}

.primary-btn:hover,
.home-search button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 24px 40px rgba(234, 88, 12, 0.3);
}

.ghost-btn,
.search-row button {
    color: #b45309;
    background: #ffffff;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.ghost-btn:hover,
.search-row button:hover {
    color: #ffffff;
    background: #d97706;
}

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

.hero-tags span,
.detail-tags span {
    padding: 6px 11px;
    border-radius: 999px;
    color: #92400e;
    background: rgba(251, 191, 36, 0.16);
    font-size: 13px;
    font-weight: 700;
}

.hero-poster {
    position: relative;
    justify-self: end;
    width: min(360px, 100%);
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 32px 70px rgba(120, 53, 15, 0.28);
    transform: rotate(2deg);
    isolation: isolate;
}

.hero-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0) 42%, rgba(17, 24, 39, 0.58) 100%);
}

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

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

.hero-poster span {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    padding: 7px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(245, 158, 11, 0.92);
    font-weight: 800;
}

.hero-dots {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.hero-dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #fed7aa;
    cursor: pointer;
    transition: 0.25s ease;
}

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

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

.section-white {
    width: 100%;
    padding-left: max(16px, calc((100% - 1180px) / 2));
    padding-right: max(16px, calc((100% - 1180px) / 2));
    background: #ffffff;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 34px;
    text-align: center;
}

.section-heading.align-left {
    margin-left: 0;
    text-align: left;
}

.section-heading span {
    color: #d97706;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-heading h2,
.page-hero h1,
.detail-meta-card h1 {
    margin: 8px 0 12px;
    color: #111827;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.section-heading p,
.page-hero p,
.detail-meta-card p {
    margin: 0;
    color: #6b7280;
    font-size: 17px;
}

.intro-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: end;
    padding-top: 40px;
    padding-bottom: 40px;
}

.home-search,
.search-panel {
    padding: 22px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.22);
}

.home-search label,
.search-label {
    display: block;
    margin-bottom: 10px;
    color: #92400e;
    font-weight: 900;
}

.home-search div,
.search-row {
    display: flex;
    gap: 10px;
}

.home-search input,
.search-row input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 999px;
    outline: none;
    color: #1f2937;
    font-size: 15px;
}

.home-search input:focus,
.search-row input:focus {
    border-color: #ea580c;
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12);
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-links a {
    padding: 12px 16px;
    border-radius: 999px;
    background: #fff7ed;
    color: #b45309;
    font-weight: 800;
}

.quick-links a:hover {
    background: #fed7aa;
}

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

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

.category-tile {
    overflow: hidden;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    transition: 0.28s ease;
    border: 1px solid rgba(251, 191, 36, 0.18);
}

.category-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 58px rgba(120, 53, 15, 0.16);
}

.category-covers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 118px;
    background: #fffbeb;
}

.category-covers img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-copy {
    padding: 20px;
}

.category-copy h2 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 22px;
}

.category-copy p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    transition: 0.28s ease;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 22px 46px rgba(120, 53, 15, 0.15);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #fffbeb;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0);
    transition: 0.28s ease;
}

.movie-card:hover .poster-shade {
    background: rgba(15, 23, 42, 0.38);
}

.play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(245, 158, 11, 0.92);
    transform: translate(-50%, -50%) scale(0.72);
    opacity: 0;
    transition: 0.28s ease;
}

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

.year-badge,
.region-badge {
    position: absolute;
    top: 10px;
    padding: 4px 8px;
    border-radius: 8px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.year-badge {
    right: 10px;
    background: #f59e0b;
}

.region-badge {
    left: 10px;
    background: rgba(17, 24, 39, 0.68);
}

.card-body {
    padding: 13px;
}

.card-body h2 {
    margin: 0 0 5px;
    font-size: 15px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-body h2 a:hover {
    color: #d97706;
}

.card-body p {
    margin: 0;
    color: #6b7280;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-preview {
    padding-top: 76px;
}

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

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

.compact-card {
    position: relative;
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
    border: 1px solid rgba(226, 232, 240, 0.85);
    transition: 0.25s ease;
}

.compact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.42);
}

.compact-card img {
    width: 68px;
    height: 90px;
    border-radius: 12px;
    object-fit: cover;
    background: #fffbeb;
}

.compact-card strong,
.compact-card em {
    display: block;
}

.compact-card strong {
    margin-bottom: 5px;
    color: #111827;
    font-size: 15px;
}

.compact-card em {
    color: #6b7280;
    font-size: 12px;
    font-style: normal;
}

.rank-num {
    position: absolute;
    top: -8px;
    left: -8px;
    min-width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 10px 18px rgba(234, 88, 12, 0.22);
}

.center-action {
    margin-top: 34px;
    text-align: center;
}

.page-hero {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 36px auto 0;
    padding: 62px;
    overflow: hidden;
    border-radius: 34px;
    background: linear-gradient(135deg, #fffbeb, #fff7ed 54%, #ffffff);
    border: 1px solid rgba(251, 191, 36, 0.25);
    box-shadow: 0 22px 60px rgba(120, 53, 15, 0.1);
}

.compact-hero::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -70px;
    bottom: -100px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.2);
    filter: blur(10px);
}

.search-panel {
    margin-bottom: 28px;
}

.no-result {
    display: none;
    padding: 26px;
    text-align: center;
    border-radius: 18px;
    color: #92400e;
    background: #fff7ed;
    font-weight: 800;
}

.no-result.show {
    display: block;
}

.breadcrumb {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: #6b7280;
    font-size: 14px;
}

.breadcrumb a {
    color: #b45309;
    font-weight: 800;
}

.watch-layout {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
    gap: 24px;
    align-items: stretch;
}

.player-card,
.watch-side,
.story-card,
.info-panel {
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.09);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.player-card {
    overflow: hidden;
    background: #050505;
}

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

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

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    cursor: pointer;
    overflow: hidden;
    background: #000000;
}

.player-cover.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.74;
}

.big-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 78px;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 20px 36px rgba(234, 88, 12, 0.3);
    transform: translate(-50%, -50%);
    font-size: 28px;
}

.watch-side {
    overflow: hidden;
}

.detail-poster {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    background: #fffbeb;
}

.detail-meta-card {
    padding: 24px;
}

.detail-meta-card h1 {
    font-size: clamp(28px, 3vw, 40px);
}

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

.detail-main {
    display: grid;
    gap: 20px;
}

.story-card {
    padding: 28px;
}

.story-card h2,
.info-panel h2 {
    margin: 0 0 14px;
    color: #111827;
    font-size: 24px;
}

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

.info-panel {
    padding: 24px;
    position: sticky;
    top: 96px;
}

.info-panel dl {
    margin: 0;
}

.info-panel dt {
    margin-top: 12px;
    color: #92400e;
    font-size: 13px;
    font-weight: 900;
}

.info-panel dd {
    margin: 2px 0 0;
    color: #374151;
}

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

.prev-next a {
    display: block;
    padding: 16px;
    border-radius: 18px;
    color: #92400e;
    background: #fff7ed;
    font-weight: 800;
}

.prev-next a:hover {
    color: #ffffff;
    background: #d97706;
}

.site-footer {
    margin-top: 56px;
    background: linear-gradient(135deg, #fffbeb, #fff7ed);
    border-top: 1px solid rgba(251, 191, 36, 0.28);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0;
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.8fr;
    gap: 34px;
}

.site-footer p {
    max-width: 430px;
    margin: 14px 0 0;
    color: #6b7280;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #111827;
    font-size: 18px;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-links a {
    color: #6b7280;
}

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

.copyright {
    padding: 18px 16px;
    text-align: center;
    color: #6b7280;
    border-top: 1px solid rgba(251, 191, 36, 0.22);
    font-size: 14px;
}

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

@keyframes floatBlob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(24px, -16px) scale(1.08);
    }
}

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

    .hero-slide,
    .watch-layout,
    .detail-section,
    .intro-strip {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        justify-self: start;
        width: min(320px, 100%);
    }

    .info-panel {
        position: static;
    }
}

@media (max-width: 760px) {
    .header-inner {
        height: 64px;
    }

    .logo,
    .footer-logo {
        font-size: 18px;
    }

    .logo-mark {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 64px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 18px;
        background: #ffffff;
        box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
    }

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

    .main-nav a {
        text-align: center;
    }

    .hero-section {
        min-height: auto;
        padding: 40px 0;
    }

    .hero-slide {
        min-height: auto;
        gap: 28px;
    }

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

    .hero-actions,
    .home-search div,
    .search-row,
    .prev-next {
        flex-direction: column;
        display: flex;
    }

    .section-wrap {
        padding: 48px 0;
    }

    .section-white {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .category-grid,
    .category-grid.wide,
    .ranking-grid,
    .ranking-list,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

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

    .watch-layout,
    .detail-section,
    .breadcrumb {
        width: min(100% - 24px, 1180px);
    }

    .story-card,
    .info-panel,
    .detail-meta-card {
        padding: 20px;
    }

    .big-play {
        width: 62px;
        height: 62px;
        font-size: 23px;
    }
}
