* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #292524;
    background: linear-gradient(180deg, #fff7ed 0%, #f5f5f4 48%, #fef3c7 100%);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #fff7ed;
    background: linear-gradient(90deg, #78350f 0%, #92400e 52%, #78350f 100%);
    box-shadow: 0 14px 35px rgba(69, 26, 3, 0.28);
}

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

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

.brand-mark,
.footer-brand span {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #78350f;
    background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.32);
    font-size: 15px;
}

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

.brand-text span {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.brand-text small {
    margin-top: 4px;
    color: #fcd34d;
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-weight: 650;
    font-size: 15px;
}

.nav-link {
    position: relative;
    padding: 9px 0;
    color: #fffbeb;
    transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fcd34d;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    transform: scaleX(0);
    transform-origin: center;
    background: #fcd34d;
    transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 251, 235, 0.12);
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 2px;
    background: #fff7ed;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
}

.mobile-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: #fff7ed;
}

.mobile-nav a:hover {
    background: rgba(255, 251, 235, 0.12);
}

.feature-slider {
    position: relative;
    height: 560px;
    overflow: hidden;
    background: #1c1917;
}

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

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

.feature-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.feature-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(28, 25, 23, 0.98) 0%, rgba(28, 25, 23, 0.56) 48%, rgba(28, 25, 23, 0.08) 100%);
}

.feature-content {
    position: absolute;
    left: 50%;
    bottom: 58px;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
    color: #fff7ed;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #fcd34d;
    background: rgba(120, 53, 15, 0.62);
    backdrop-filter: blur(12px);
    font-weight: 700;
    font-size: 14px;
}

.feature-content h1 {
    max-width: 860px;
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.04em;
    text-shadow: 0 10px 35px rgba(0, 0, 0, 0.42);
}

.feature-content p {
    max-width: 780px;
    margin: 0 0 26px;
    color: #e7e5e4;
    font-size: clamp(17px, 2.2vw, 22px);
    line-height: 1.75;
}

.feature-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.primary-button,
.secondary-button,
.section-more,
.filter-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 750;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.filter-form button {
    color: #fff7ed;
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    box-shadow: 0 14px 28px rgba(180, 83, 9, 0.28);
}

.primary-button:hover,
.filter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(180, 83, 9, 0.34);
}

.secondary-button {
    color: #fff7ed;
    border: 1px solid rgba(255, 251, 235, 0.34);
    background: rgba(255, 251, 235, 0.11);
    backdrop-filter: blur(10px);
}

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

.slider-button {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(0, 0, 0, 0.46);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transform: translateY(-50%);
    font-size: 24px;
}

.slider-button:hover {
    background: rgba(0, 0, 0, 0.68);
}

.slider-prev {
    left: 24px;
}

.slider-next {
    right: 24px;
}

.slider-dots {
    position: absolute;
    left: 50%;
    bottom: 24px;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

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

.slider-dots button.active {
    width: 32px;
    background: #f59e0b;
}

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

.page-block {
    padding: 54px 0;
}

.page-intro {
    padding: 56px 0 24px;
}

.page-intro h1 {
    margin: 0 0 12px;
    color: #1c1917;
    font-size: clamp(30px, 4.5vw, 50px);
    letter-spacing: -0.03em;
}

.page-intro p {
    max-width: 790px;
    margin: 0;
    color: #57534e;
    font-size: 17px;
    line-height: 1.8;
}

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

.section-heading > div {
    position: relative;
    padding-left: 18px;
}

.heading-line {
    position: absolute;
    left: 0;
    top: 4px;
    width: 5px;
    height: 34px;
    border-radius: 4px;
    background: #d97706;
}

.section-heading h2 {
    margin: 0;
    color: #1c1917;
    font-size: clamp(24px, 3.2vw, 34px);
}

.section-heading p {
    margin: 7px 0 0;
    color: #78716c;
    line-height: 1.7;
}

.section-more {
    min-width: max-content;
    color: #92400e;
    background: #fffbeb;
    box-shadow: 0 10px 24px rgba(120, 53, 15, 0.08);
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(214, 211, 209, 0.8);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 30px rgba(68, 64, 60, 0.09);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(217, 119, 6, 0.34);
    box-shadow: 0 24px 42px rgba(68, 64, 60, 0.16);
}

.poster-link {
    position: relative;
    display: block;
    height: 280px;
    overflow: hidden;
    background: #292524;
}

.movie-card-compact .poster-link {
    height: 210px;
}

.movie-card-wide {
    display: grid;
    grid-template-columns: 220px 1fr;
}

.movie-card-wide .poster-link {
    height: auto;
    min-height: 220px;
}

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

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

.play-glow {
    position: absolute;
    left: 50%;
    top: 50%;
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(180, 83, 9, 0.9);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    display: inline-flex;
    min-width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff7ed;
    background: linear-gradient(135deg, #ef4444 0%, #b45309 100%);
    box-shadow: 0 10px 22px rgba(127, 29, 29, 0.25);
}

.card-body {
    padding: 16px;
}

.card-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: #78716c;
    font-size: 13px;
}

.card-meta span,
.detail-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
}

.movie-card h3 {
    margin: 0 0 8px;
    color: #1c1917;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: #b45309;
}

.movie-card p {
    display: -webkit-box;
    min-height: 47px;
    margin: 0 0 14px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #57534e;
    font-size: 14px;
    line-height: 1.65;
}

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

.tag-row span,
.tag-pill {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    color: #57534e;
    background: #f5f5f4;
    font-size: 12px;
}

.highlight-panel {
    padding: 34px;
    border-radius: 28px;
    background: linear-gradient(135deg, #ffedd5 0%, #fef3c7 100%);
    box-shadow: 0 18px 40px rgba(120, 53, 15, 0.12);
}

.dark-panel {
    padding: 34px;
    border-radius: 28px;
    color: #fff7ed;
    background: linear-gradient(135deg, #292524 0%, #1c1917 100%);
    box-shadow: 0 18px 40px rgba(28, 25, 23, 0.2);
}

.dark-panel .section-heading h2,
.dark-panel .section-heading p {
    color: #fff7ed;
}

.dark-panel .movie-card {
    border-color: rgba(255, 251, 235, 0.08);
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    border-radius: 24px;
    background: #292524;
    color: #fff7ed;
    box-shadow: 0 18px 36px rgba(68, 64, 60, 0.15);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-card:hover img {
    opacity: 0.72;
    transform: scale(1.05);
}

.category-card .category-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    background: linear-gradient(0deg, rgba(28, 25, 23, 0.86), rgba(28, 25, 23, 0.18));
}

.category-card h2 {
    margin: 0 0 9px;
    font-size: 25px;
}

.category-card p {
    margin: 0;
    color: #e7e5e4;
    line-height: 1.65;
}

.filter-panel {
    margin: 8px 0 32px;
    padding: 20px;
    border: 1px solid rgba(214, 211, 209, 0.75);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 30px rgba(68, 64, 60, 0.08);
}

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

.filter-form input,
.filter-form select {
    width: 100%;
    height: 44px;
    border: 1px solid #d6d3d1;
    border-radius: 12px;
    padding: 0 13px;
    color: #292524;
    background: #fff;
    outline: none;
}

.filter-form input:focus,
.filter-form select:focus {
    border-color: #d97706;
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.13);
}

.empty-state {
    display: none;
    padding: 28px;
    border-radius: 18px;
    color: #57534e;
    background: #fff;
    text-align: center;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: #78716c;
    font-size: 14px;
}

.breadcrumb a {
    color: #92400e;
}

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

.watch-shell {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #0c0a09;
    box-shadow: 0 24px 54px rgba(28, 25, 23, 0.27);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0c0a09;
}

.video-start {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 0;
    border-radius: 999px;
    padding: 15px 22px;
    color: #fff7ed;
    background: rgba(180, 83, 9, 0.94);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.26);
    cursor: pointer;
    transform: translate(-50%, -50%);
    font-weight: 800;
}

.watch-shell.playing .video-start {
    display: none;
}

.detail-card,
.side-card {
    border: 1px solid rgba(214, 211, 209, 0.75);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 34px rgba(68, 64, 60, 0.1);
}

.detail-card {
    margin-top: 24px;
    padding: 28px;
}

.detail-card h1 {
    margin: 0 0 14px;
    color: #1c1917;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.2;
}

.detail-card h2,
.side-card h2 {
    margin: 24px 0 12px;
    color: #1c1917;
    font-size: 22px;
}

.detail-card p {
    color: #44403c;
    font-size: 16px;
    line-height: 1.9;
}

.side-card {
    overflow: hidden;
}

.side-card img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    background: #292524;
}

.side-card-body {
    padding: 20px;
}

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

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

.site-footer {
    margin-top: 56px;
    color: #d6d3d1;
    background: linear-gradient(90deg, #1c1917 0%, #292524 52%, #1c1917 100%);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 34px;
    padding-bottom: 28px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: #fffbeb;
    font-size: 19px;
    font-weight: 800;
}

.site-footer p {
    margin: 0;
    color: #a8a29e;
    line-height: 1.8;
}

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

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer li + li {
    margin-top: 9px;
}

.site-footer a:hover {
    color: #fcd34d;
}

.copyright {
    border-top: 1px solid rgba(214, 211, 209, 0.14);
    padding-top: 22px;
    color: #a8a29e;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 1060px) {
    .desktop-nav {
        gap: 12px;
        font-size: 14px;
    }

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

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

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

    .side-card {
        max-width: 360px;
    }
}

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

    .menu-button {
        display: block;
    }

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

    .feature-slider {
        height: 510px;
    }

    .feature-content {
        bottom: 46px;
    }

    .slider-button {
        display: none;
    }

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

    .filter-form {
        grid-template-columns: 1fr;
    }

    .movie-card-wide {
        grid-template-columns: 150px 1fr;
    }

    .movie-card-wide .poster-link {
        min-height: 190px;
    }

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

@media (max-width: 620px) {
    .nav-wrap {
        height: 66px;
    }

    .brand-text span {
        font-size: 18px;
    }

    .brand-text small {
        display: none;
    }

    .feature-slider {
        height: 470px;
    }

    .feature-content p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }

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

    .poster-link {
        height: 220px;
    }

    .movie-card-compact .poster-link {
        height: 190px;
    }

    .movie-card-wide {
        display: block;
    }

    .movie-card h3 {
        font-size: 16px;
    }

    .card-body {
        padding: 13px;
    }

    .highlight-panel,
    .dark-panel,
    .detail-card {
        padding: 22px;
        border-radius: 22px;
    }

    .side-card img {
        height: 360px;
    }
}

@media (max-width: 420px) {
    .card-grid,
    .card-grid.compact-grid,
    .category-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }
}
