* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: #111827;
    background: #f9fafb;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

.site-nav {
    max-width: 1280px;
    height: 64px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #14b8a6, #0891b2);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(20, 184, 166, 0.28);
}

.brand-text {
    font-size: 22px;
    line-height: 1;
    color: #0f766e;
    background: linear-gradient(90deg, #0d9488, #0891b2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-link,
.mobile-nav-link {
    color: #374151;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    color: #0d9488;
}

.header-search,
.mobile-search,
.search-page-form,
.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-search input,
.mobile-search input,
.search-page-form input,
.filter-bar input,
.filter-bar select {
    min-width: 0;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    padding: 10px 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
}

.header-search button,
.mobile-search button,
.search-page-form button,
.primary-button {
    border: 0;
    color: #ffffff;
    background: #0d9488;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.search-page-form button:hover,
.primary-button:hover {
    background: #0f766e;
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    border: 0;
    background: #f3f4f6;
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
}

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

.mobile-nav.is-open {
    display: grid;
    gap: 16px;
}

.hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: linear-gradient(135deg, #134e4a, #164e63);
}

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

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

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

.hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.55), rgba(17, 24, 39, 0.18));
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
    transform: scale(1.04);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    height: 100%;
    margin: 0 auto;
    padding: 72px 24px 96px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: #ffffff;
    background: rgba(20, 184, 166, 0.92);
    border-radius: 999px;
    padding: 8px 16px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.hero h1 {
    max-width: 760px;
    margin: 18px 0 18px;
    color: #ffffff;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1.05;
    font-weight: 900;
}

.hero p {
    max-width: 760px;
    margin: 0 0 24px;
    color: #e5e7eb;
    font-size: 20px;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.hero-meta span,
.detail-meta span {
    color: #ffffff;
    background: rgba(13, 148, 136, 0.82);
    border-radius: 999px;
    padding: 7px 12px;
    font-weight: 700;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    border-radius: 12px;
    padding: 14px 26px;
}

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

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-arrow {
    width: 38px;
    height: 38px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 999px;
    font-size: 28px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
}

.hero-dot.is-active {
    width: 28px;
    background: #14b8a6;
}

.content-section,
.listing-section,
.category-overview,
.search-panel,
.filter-bar,
.more-recommend {
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 24px;
}

.soft-section,
.category-strip,
.editor-section {
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
}

.soft-section .content-section,
.category-strip-inner,
.editor-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 24px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}

.heading-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.heading-title span {
    color: #0d9488;
    font-size: 24px;
}

.heading-title h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(24px, 4vw, 34px);
    font-weight: 900;
}

.section-more {
    color: #0d9488;
    font-weight: 800;
}

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

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

.movie-card {
    min-width: 0;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
}

.movie-cover {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #e5e7eb, #f3f4f6);
}

.movie-card-compact .movie-cover {
    height: 160px;
}

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

.movie-card:hover .movie-cover img,
.related-item:hover img,
.editor-card:hover img,
.category-card:hover img {
    transform: scale(1.08);
}

.movie-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.28s ease;
}

.movie-card:hover .movie-cover::after {
    background: rgba(0, 0, 0, 0.36);
}

.movie-type,
.movie-year,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 10px;
    color: #ffffff;
    border-radius: 7px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 800;
}

.movie-type {
    left: 10px;
    background: rgba(17, 24, 39, 0.76);
}

.movie-year {
    right: 10px;
    background: rgba(13, 148, 136, 0.88);
}

.rank-badge {
    left: 10px;
    top: 42px;
    background: rgba(245, 158, 11, 0.92);
}

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 54px;
    height: 54px;
    transform: translate(-50%, -50%) scale(0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: #0d9488;
    border-radius: 999px;
    opacity: 0;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

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

.movie-info {
    padding: 18px;
}

.movie-info h3 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 800;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.movie-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #6b7280;
    font-size: 13px;
}

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

.category-mini-grid a {
    color: #0f766e;
    background: #ffffff;
    border: 1px solid #ccfbf1;
    border-radius: 14px;
    padding: 18px;
    font-weight: 800;
    text-align: center;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-mini-grid a:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

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

.editor-card,
.category-card,
.side-card,
.text-panel,
.search-panel,
.filter-bar {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.editor-card {
    overflow: hidden;
}

.editor-cover {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.editor-cover img,
.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.editor-cover span,
.category-count {
    position: absolute;
    right: 14px;
    top: 14px;
    color: #ffffff;
    background: #14b8a6;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 800;
}

.editor-body {
    padding: 22px;
}

.editor-body h3 {
    margin: 0 0 12px;
    font-size: 22px;
}

.editor-body p {
    margin: 0 0 16px;
    color: #4b5563;
    line-height: 1.7;
}

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

.tag-row span {
    color: #0f766e;
    background: #ccfbf1;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
}

.page-main {
    min-height: 72vh;
}

.page-hero {
    background: linear-gradient(135deg, #134e4a, #164e63);
    color: #ffffff;
}

.compact-hero {
    min-height: 260px;
    display: flex;
    align-items: center;
    padding: 56px 24px;
}

.compact-hero > div {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
}

.compact-hero h1 {
    margin: 18px 0 12px;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.08;
}

.compact-hero p {
    max-width: 760px;
    margin: 0;
    color: #d1d5db;
    font-size: 18px;
    line-height: 1.8;
}

.category-card {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 22px;
    color: #ffffff;
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.16), rgba(17, 24, 39, 0.86));
}

.category-card img {
    position: absolute;
    inset: 0;
}

.category-card > div,
.category-count {
    z-index: 2;
}

.category-card h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.category-card p {
    margin: 0;
    color: #e5e7eb;
    line-height: 1.6;
}

.filter-bar {
    margin-top: 36px;
    margin-bottom: 0;
    padding: 20px 24px;
}

.filter-bar input {
    flex: 1;
}

.listing-section {
    padding-top: 32px;
}

.search-panel {
    margin-top: 36px;
    margin-bottom: 0;
    padding: 26px;
}

.search-page-form input {
    flex: 1;
}

.search-result-info {
    color: #4b5563;
    margin-top: 14px;
}

.breadcrumb {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 24px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    color: #6b7280;
    font-size: 14px;
}

.breadcrumb a {
    color: #0d9488;
    font-weight: 700;
}

.detail-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 24px 64px;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 32px;
}

.video-player {
    position: relative;
    overflow: hidden;
    background: #000000;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}

.video-player video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    cursor: pointer;
}

.player-center-button {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 74px;
    height: 74px;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: rgba(13, 148, 136, 0.94);
    border-radius: 999px;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.video-player.is-playing .player-center-button {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.82);
}

.player-message {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: none;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.78);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
}

.player-message.is-visible {
    display: block;
}

.detail-content {
    margin-top: 28px;
}

.detail-content h1 {
    margin: 0 0 16px;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.15;
}

.detail-meta span {
    color: #4b5563;
    background: #f3f4f6;
}

.detail-tags {
    margin-bottom: 24px;
}

.text-panel {
    padding: 26px;
    margin-bottom: 22px;
    border: 1px solid #e5e7eb;
}

.intro-panel {
    background: #f9fafb;
}

.review-panel {
    border: 0;
    background: linear-gradient(135deg, #f0fdfa, #ecfeff);
}

.text-panel h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.text-panel p {
    margin: 0;
    color: #374151;
    font-size: 16px;
    line-height: 1.9;
}

.detail-sidebar {
    min-width: 0;
}

.side-card {
    position: sticky;
    top: 94px;
    padding: 24px;
    border: 1px solid #e5e7eb;
}

.side-card h2 {
    margin: 0 0 18px;
    font-size: 22px;
}

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

.related-item {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.related-item img {
    width: 118px;
    height: 78px;
    border-radius: 12px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.related-item strong {
    display: -webkit-box;
    color: #111827;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-item em {
    display: block;
    margin-top: 6px;
    color: #6b7280;
    font-size: 12px;
    font-style: normal;
}

.site-footer {
    color: #d1d5db;
    background: #111827;
}

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

.footer-brand {
    color: #ffffff;
    font-size: 22px;
    margin-bottom: 14px;
}

.footer-about p {
    max-width: 520px;
    margin: 0;
    color: #9ca3af;
    line-height: 1.75;
}

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

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

.footer-links a {
    color: #d1d5db;
}

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

@media (max-width: 1100px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .mobile-toggle {
        display: inline-flex;
    }

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

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

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

    .side-card {
        position: static;
    }
}

@media (max-width: 780px) {
    .site-nav {
        padding: 0 16px;
    }

    .brand-text {
        font-size: 19px;
    }

    .hero {
        min-height: 520px;
    }

    .hero-content {
        padding: 60px 18px 92px;
    }

    .hero h1 {
        font-size: 40px;
    }

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

    .movie-grid,
    .small-grid,
    .category-mini-grid,
    .category-overview-grid,
    .editor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .movie-cover {
        height: 190px;
    }

    .filter-bar,
    .search-page-form,
    .mobile-search {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-bar input,
    .filter-bar select,
    .search-page-form input,
    .search-page-form button,
    .mobile-search input,
    .mobile-search button {
        width: 100%;
    }

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

@media (max-width: 520px) {
    .movie-grid,
    .small-grid,
    .category-mini-grid,
    .category-overview-grid,
    .editor-grid {
        grid-template-columns: 1fr;
    }

    .movie-cover,
    .movie-card-compact .movie-cover {
        height: 230px;
    }

    .content-section,
    .listing-section,
    .category-overview,
    .search-panel,
    .filter-bar,
    .more-recommend,
    .soft-section .content-section,
    .category-strip-inner,
    .editor-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

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

    .related-item {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .related-item img {
        width: 96px;
        height: 68px;
    }
}
