* {
    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: #111827;
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 38%, #f9fafb 100%);
    min-height: 100vh;
}

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

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

button,
input {
    font: inherit;
}

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

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 0 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    white-space: nowrap;
}

.logo-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #b45309, #f59e0b);
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(180, 83, 9, 0.25);
    font-size: 14px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.desktop-nav a {
    font-size: 15px;
    font-weight: 600;
    color: #4b5563;
    transition: color 0.2s ease;
}

.desktop-nav a:hover {
    color: #b45309;
}

.header-search,
.mobile-search,
.archive-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.archive-search input {
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 10px 12px;
    outline: none;
    min-width: 190px;
    background: #ffffff;
}

.header-search input:focus,
.mobile-search input:focus,
.archive-search input:focus {
    border-color: #d97706;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.16);
}

.header-search button,
.mobile-search button,
.archive-search button {
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: #b45309;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.archive-search button:hover {
    background: #92400e;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 6px 0;
    background: #374151;
    border-radius: 2px;
}

.mobile-panel {
    border-top: 1px solid #e5e7eb;
    padding: 16px 24px 22px;
    background: #ffffff;
}

.mobile-panel nav {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.mobile-panel a {
    color: #374151;
    font-weight: 600;
}

.hero-slider {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #1f2937, #78350f);
}

.hero-slide img.image-missing {
    opacity: 0;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.12));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    height: 70vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 24px;
    color: #ffffff;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(180, 83, 9, 0.92);
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.hero-content h1,
.hero-content h2 {
    margin: 20px 0 0;
    max-width: 760px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero-title-line {
    margin: 16px 0 0;
    max-width: 760px;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
}

.hero-text {
    max-width: 720px;
    margin: 22px 0 0;
    font-size: 20px;
    line-height: 1.8;
    color: #e5e7eb;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.hero-meta span {
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    padding: 7px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

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

.primary-button,
.ghost-button,
.section-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: #b45309;
    padding: 15px 28px;
    box-shadow: 0 18px 32px rgba(180, 83, 9, 0.28);
}

.primary-button:hover {
    background: #92400e;
    transform: translateY(-2px) scale(1.02);
}

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.1);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

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

.hero-dots button {
    width: 34px;
    height: 7px;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.hero-dots button.is-active {
    background: #f59e0b;
}

.category-strip {
    padding: 28px 24px 8px;
}

.category-strip-inner {
    max-width: 1280px;
    margin: -58px auto 0;
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.category-tile {
    min-height: 142px;
    border: 1px solid rgba(251, 191, 36, 0.24);
    border-radius: 24px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.09);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 56px rgba(180, 83, 9, 0.16);
}

.category-tile span {
    display: inline-block;
    color: #b45309;
    background: #fffbeb;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
}

.category-tile strong {
    display: block;
    margin-top: 15px;
    font-size: 20px;
}

.category-tile em {
    display: block;
    margin-top: 8px;
    color: #6b7280;
    font-size: 14px;
    font-style: normal;
    line-height: 1.5;
}

.content-section,
.genre-cloud-section,
.archive-list,
.detail-layout,
.detail-more {
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 24px;
}

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

.section-heading.compact {
    margin-bottom: 24px;
}

.section-heading .eyebrow,
.archive-hero .eyebrow {
    color: #b45309;
    background: #fffbeb;
}

.section-heading h2,
.archive-hero h1,
.detail-main h1 {
    margin: 14px 0 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-heading p,
.archive-hero p {
    max-width: 720px;
    margin: 12px 0 0;
    color: #6b7280;
    line-height: 1.7;
}

.section-action {
    color: #b45309;
    gap: 8px;
    white-space: nowrap;
}

.section-action:hover {
    color: #92400e;
    transform: translateX(4px);
}

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

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

.movie-card {
    min-width: 0;
}

.poster-link {
    display: block;
    height: 100%;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 22px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.poster-link:hover {
    transform: translateY(-8px);
    border-color: rgba(245, 158, 11, 0.6);
    box-shadow: 0 22px 46px rgba(180, 83, 9, 0.15);
}

.poster-frame {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #92400e);
}

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

.poster-frame img.image-missing {
    opacity: 0;
}

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

.play-chip {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(180, 83, 9, 0.92);
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.poster-link:hover .play-chip {
    opacity: 1;
    transform: scale(1);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #b45309);
    border-radius: 12px;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

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

.movie-card-body h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    margin: 8px 0 0;
    color: #92400e;
    font-size: 13px;
    font-weight: 700;
}

.movie-line {
    min-height: 44px;
    margin: 10px 0 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.tag-row span,
.detail-tags a,
.genre-inline span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: #78350f;
    background: #fffbeb;
    padding: 6px 9px;
    font-size: 12px;
    font-weight: 700;
}

.genre-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.genre-cloud a {
    border: 1px solid #fde68a;
    border-radius: 999px;
    color: #92400e;
    background: #ffffff;
    padding: 11px 18px;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, background 0.2s ease;
}

.genre-cloud a:hover {
    background: #fffbeb;
    transform: translateY(-3px);
}

.archive-hero {
    padding: 76px 24px 58px;
    text-align: center;
    background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.25), transparent 36%), linear-gradient(135deg, #fff7ed, #ffffff);
}

.archive-hero .eyebrow {
    margin: 0 auto;
}

.archive-search {
    justify-content: center;
    margin-top: 26px;
}

.archive-search input {
    width: min(520px, 72vw);
}

.archive-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.archive-tools h2 {
    margin: 0;
    font-size: 28px;
}

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

.search-empty {
    margin: 36px 0 0;
    color: #6b7280;
    text-align: center;
    font-size: 18px;
}

.watch-section {
    background: #030712;
}

.watch-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 24px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    background: #000000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.movie-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: 14px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(180, 83, 9, 0.18), rgba(0, 0, 0, 0.25));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-overlay span {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #b45309;
    box-shadow: 0 18px 36px rgba(180, 83, 9, 0.34);
    font-size: 30px;
    text-indent: 4px;
}

.player-overlay em {
    font-style: normal;
    font-size: 18px;
    font-weight: 800;
}

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

.detail-main,
.detail-side {
    border: 1px solid #e5e7eb;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.07);
}

.detail-main {
    padding: 34px;
}

.detail-side {
    padding: 24px;
    position: sticky;
    top: 92px;
}

.detail-kicker {
    color: #b45309;
    font-weight: 900;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.detail-meta span {
    border: 1px solid #f3f4f6;
    border-radius: 999px;
    color: #4b5563;
    background: #f9fafb;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 700;
}

.detail-lead {
    margin: 24px 0 0;
    color: #374151;
    font-size: 20px;
    line-height: 1.8;
}

.detail-tags,
.genre-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.detail-main h2,
.detail-side h2 {
    margin: 34px 0 14px;
    font-size: 26px;
}

.detail-side h2 {
    margin-top: 0;
}

.detail-main p {
    color: #374151;
    font-size: 17px;
    line-height: 1.9;
}

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

.related-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
    border-radius: 16px;
    padding: 10px;
    background: #f9fafb;
    transition: background 0.2s ease, transform 0.2s ease;
}

.related-item:hover {
    background: #fffbeb;
    transform: translateX(4px);
}

.related-item img {
    width: 72px;
    height: 96px;
    object-fit: cover;
    border-radius: 12px;
    background: linear-gradient(135deg, #111827, #92400e);
}

.related-item img.image-missing {
    opacity: 0;
}

.related-item strong {
    display: block;
    font-size: 15px;
    line-height: 1.45;
}

.related-item em {
    display: block;
    margin-top: 6px;
    color: #92400e;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
}

.site-footer {
    color: #d1d5db;
    background: #111827;
    margin-top: 56px;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding: 48px 24px;
}

.footer-brand h2,
.footer-nav h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

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

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

.footer-nav a {
    color: #9ca3af;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: #f59e0b;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    padding: 18px 24px;
    color: #6b7280;
    font-size: 14px;
}

@media (max-width: 1180px) {
    .header-search {
        display: none;
    }

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

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

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

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .hero-content,
    .hero-slider {
        min-height: 620px;
    }

    .hero-content {
        height: 620px;
    }

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

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

    .detail-side {
        position: static;
    }

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

@media (max-width: 640px) {
    .header-inner {
        height: 62px;
        padding: 0 16px;
    }

    .site-logo {
        font-size: 19px;
    }

    .logo-mark {
        width: 32px;
        height: 32px;
    }

    .hero-content {
        padding: 0 18px;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: 42px;
    }

    .hero-text {
        font-size: 17px;
    }

    .category-strip {
        padding: 20px 16px 0;
    }

    .category-strip-inner {
        margin-top: -34px;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .category-tile {
        min-height: 128px;
        border-radius: 18px;
        padding: 16px;
    }

    .content-section,
    .genre-cloud-section,
    .archive-list,
    .detail-layout,
    .detail-more {
        padding: 48px 16px;
    }

    .section-heading {
        display: block;
    }

    .section-action {
        margin-top: 16px;
    }

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

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

    .movie-line {
        display: none;
    }

    .watch-inner {
        padding: 16px;
    }

    .video-shell {
        border-radius: 16px;
    }

    .detail-main {
        padding: 22px;
    }

    .detail-main h1 {
        font-size: 34px;
    }

    .archive-hero {
        padding: 54px 16px 42px;
    }
}
