* {
    box-sizing: border-box;
}

:root {
    --teal: #0d9488;
    --teal-dark: #0f766e;
    --blue: #2563eb;
    --indigo: #4338ca;
    --slate: #0f172a;
    --muted: #64748b;
    --soft: #f1f5f9;
    --line: #e2e8f0;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: #111827;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 48%, #ecfdf5 100%);
}

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

button,
input,
select {
    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.94);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    white-space: nowrap;
    background: linear-gradient(90deg, var(--teal), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal), var(--blue));
    box-shadow: 0 10px 22px rgba(13, 148, 136, 0.24);
    font-size: 15px;
}

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

.nav-link {
    border: 0;
    cursor: pointer;
    color: #334155;
    background: transparent;
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--teal);
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: 34px;
    left: -18px;
    min-width: 180px;
    padding: 10px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.18s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: #475569;
    font-weight: 700;
}

.dropdown-panel a:hover {
    color: var(--teal);
    background: #ecfdf5;
}

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

.header-search input,
.mobile-search input,
.large-search input,
.filter-toolbar input,
.filter-toolbar select {
    border: 1px solid var(--line);
    outline: 0;
    background: #ffffff;
    color: #0f172a;
}

.header-search input {
    width: 220px;
    padding: 10px 14px;
    border-radius: 999px;
}

.header-search button,
.mobile-search button,
.large-search button {
    border: 0;
    color: #ffffff;
    cursor: pointer;
    font-weight: 800;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--teal), var(--blue));
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.2);
}

.header-search button {
    padding: 10px 16px;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #f1f5f9;
    color: #0f172a;
    cursor: pointer;
    font-size: 22px;
}

.mobile-panel {
    display: none;
    padding: 0 16px 18px;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

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

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

.mobile-panel a {
    padding: 10px 12px;
    border-radius: 12px;
    color: #334155;
    background: #f8fafc;
    font-weight: 700;
}

.mobile-search {
    display: flex;
    gap: 8px;
    padding-top: 14px;
}

.mobile-search input {
    flex: 1;
    padding: 11px 14px;
    border-radius: 999px;
}

.mobile-search button {
    padding: 10px 18px;
}

.hero {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal), var(--blue), var(--indigo));
}

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

.hero-slide {
    opacity: 0;
    transition: opacity 0.7s ease;
    background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.9), rgba(13, 148, 136, 0.68), rgba(37, 99, 235, 0.36)), var(--hero-bg);
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.16), transparent 26%), radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.12), transparent 22%), linear-gradient(0deg, rgba(15, 23, 42, 0.42), transparent 58%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 1180px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 14px;
    border-radius: 999px;
    color: #ecfeff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.eyebrow.dark {
    color: var(--teal-dark);
    background: #ccfbf1;
    border-color: transparent;
}

.hero h1,
.hero h2.hero-movie-title {
    margin: 18px 0 0;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero h2.hero-movie-title {
    font-size: clamp(28px, 4vw, 50px);
    letter-spacing: -0.03em;
}

.hero p {
    max-width: 680px;
    margin: 22px 0 0;
    color: #dbeafe;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.8;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-meta span {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #f8fafc;
    font-weight: 700;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 900;
    transition: all 0.2s ease;
}

.button.primary {
    color: var(--teal-dark);
    background: #ffffff;
    box-shadow: 0 15px 32px rgba(255, 255, 255, 0.2);
}

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

.button.ghost {
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.08);
}

.button.ghost:hover {
    color: var(--teal-dark);
    background: #ffffff;
}

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

.hero-dots button {
    width: 36px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.4);
}

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

.raised-panel {
    position: relative;
    z-index: 6;
    margin-top: -54px;
}

.feature-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 24px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.feature-strip div {
    padding: 12px 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fafc, #ecfeff);
}

.feature-strip strong,
.feature-strip span {
    display: block;
}

.feature-strip strong {
    color: #0f172a;
    font-size: 18px;
}

.feature-strip span {
    margin-top: 6px;
    color: var(--muted);
}

.section {
    padding: 72px 0;
}

.soft-bg {
    background: rgba(241, 245, 249, 0.88);
}

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

.section-head h2 {
    margin: 10px 0 0;
    color: #0f172a;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
}

.inline-head {
    align-items: center;
}

.section-more {
    color: var(--teal-dark);
    font-weight: 900;
}

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

.category-movie-grid {
    margin-top: 26px;
}

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

.movie-card a {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card a:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.16);
}

.card-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: #0f172a;
}

.card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.22s ease;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.1));
}

.movie-card a:hover .card-cover::after {
    opacity: 1;
}

.card-badge,
.card-year {
    position: absolute;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(13, 148, 136, 0.92);
}

.card-badge {
    top: 12px;
    left: 12px;
}

.card-year {
    right: 12px;
    bottom: 12px;
    background: rgba(15, 23, 42, 0.72);
}

.card-play {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--teal);
    background: rgba(255, 255, 255, 0.92);
    transform: translate(-50%, -50%) scale(0.65);
    opacity: 0;
    transition: all 0.24s ease;
    font-size: 22px;
}

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

.card-body {
    padding: 18px;
}

.card-body h3 {
    margin: 0 0 9px;
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-body p {
    min-height: 48px;
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tags,
.detail-tags,
.quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag,
.quick-tags a {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--teal-dark);
    background: #ccfbf1;
    font-size: 12px;
    font-weight: 800;
}

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

.category-tile {
    position: relative;
    min-height: 180px;
    overflow: hidden;
    padding: 22px;
    border-radius: 22px;
    color: #ffffff;
    background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.78), rgba(13, 148, 136, 0.72)), var(--tile-bg);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
}

.category-tile span {
    display: block;
    font-size: 22px;
    font-weight: 900;
}

.category-tile p {
    margin: 12px 0 0;
    color: #dbeafe;
    line-height: 1.7;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
    gap: 32px;
    align-items: start;
}

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

.rank-card a {
    display: grid;
    grid-template-columns: 46px 120px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-card a:hover {
    transform: translateX(4px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.rank-number {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--teal), var(--blue));
}

.rank-cover {
    width: 120px;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    background-color: #0f172a;
}

.rank-content h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #0f172a;
}

.rank-content p {
    margin: 0 0 8px;
    color: #64748b;
    line-height: 1.65;
}

.rank-meta {
    color: var(--teal-dark);
    font-weight: 800;
    font-size: 13px;
}

.search-panel {
    position: sticky;
    top: 92px;
    padding: 28px;
    border-radius: var(--radius);
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal), var(--blue));
    box-shadow: var(--shadow);
}

.search-panel h2 {
    margin: 0 0 12px;
    font-size: 28px;
}

.search-panel p {
    color: #dbeafe;
    line-height: 1.75;
}

.large-search {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.large-search input {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    border-radius: 999px;
}

.large-search button {
    padding: 0 22px;
}

.page-hero {
    color: #ffffff;
    background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.16), transparent 26%), linear-gradient(135deg, #0f766e, #2563eb 58%, #4338ca);
}

.compact-hero {
    padding: 82px 0;
}

.page-hero h1 {
    margin: 16px 0 12px;
    font-size: clamp(36px, 6vw, 58px);
    line-height: 1.1;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
}

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

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

.category-card-large {
    overflow: hidden;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.category-card-large > a {
    display: block;
    min-height: 210px;
    padding: 30px;
    color: #ffffff;
    background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(13, 148, 136, 0.72)), var(--tile-bg);
    background-size: cover;
    background-position: center;
}

.category-card-large h2 {
    margin: 16px 0 10px;
    font-size: 34px;
}

.category-card-large p {
    margin: 0;
    color: #dbeafe;
    line-height: 1.75;
}

.category-card-large ul {
    margin: 0;
    padding: 18px 28px 26px;
    columns: 2;
    color: #334155;
}

.category-card-large li {
    margin-bottom: 8px;
}

.category-card-large li a:hover {
    color: var(--teal);
}

.filter-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(150px, 190px));
    gap: 12px;
    padding: 18px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.filter-toolbar input,
.filter-toolbar select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
}

.pager-links {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 34px;
}

.pager-links a {
    flex: 1;
    padding: 16px 18px;
    border-radius: 18px;
    color: var(--teal-dark);
    background: #ffffff;
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(13, 148, 136, 0.75)), var(--detail-bg);
    background-size: cover;
    background-position: center;
}

.detail-shade {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.14), transparent 24%);
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 44px;
    align-items: center;
    padding: 78px 0;
}

.detail-poster {
    aspect-ratio: 3 / 4;
    border-radius: 26px;
    background-size: cover;
    background-position: center;
    background-color: #0f172a;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.detail-intro h1 {
    margin: 18px 0;
    font-size: clamp(36px, 6vw, 60px);
    line-height: 1.06;
}

.detail-intro p {
    max-width: 820px;
    color: #dbeafe;
    font-size: 19px;
    line-height: 1.8;
}

.detail-actions .button.primary {
    color: #0f766e;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.26);
}

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

.player-start {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.36), rgba(2, 6, 23, 0.68));
}

.player-start span {
    width: 92px;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--teal-dark);
    background: #ffffff;
    font-size: 36px;
    box-shadow: 0 18px 40px rgba(255, 255, 255, 0.16);
}

.player-start strong {
    font-size: 22px;
}

.player-box.is-playing .player-start,
.player-box.is-loaded .player-start.hidden {
    display: none;
}

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

.detail-article,
.detail-side {
    padding: 30px;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.detail-article h2,
.detail-side h2 {
    margin: 0 0 16px;
    color: #0f172a;
    font-size: 28px;
}

.detail-article h2:not(:first-child) {
    margin-top: 28px;
}

.detail-article p {
    margin: 0;
    color: #334155;
    font-size: 17px;
    line-height: 1.9;
    white-space: pre-line;
}

.detail-side dl {
    margin: 0;
    display: grid;
    gap: 14px;
}

.detail-side dl div {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.detail-side dt {
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.detail-side dd {
    margin: 4px 0 0;
    color: #0f172a;
    font-weight: 800;
}

.search-results-section {
    padding-bottom: 20px;
}

.site-footer {
    color: #e2e8f0;
    background: linear-gradient(135deg, #1e293b, #0f172a 58%, #0f766e);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
}

.footer-logo {
    font-size: 22px;
}

.footer-brand p {
    max-width: 440px;
    color: #cbd5e1;
    line-height: 1.75;
}

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

.footer-links a {
    color: #cbd5e1;
    font-weight: 700;
}

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

.footer-bottom {
    padding: 18px 16px;
    border-top: 1px solid rgba(226, 232, 240, 0.14);
    text-align: center;
    color: #94a3b8;
}

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

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

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

    .feature-strip,
    .movie-grid,
    .category-grid,
    .split-section,
    .detail-hero-inner,
    .detail-grid,
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .search-panel {
        position: static;
    }

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

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

    .brand {
        font-size: 20px;
    }

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

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

    .hero-actions,
    .large-search,
    .pager-links {
        flex-direction: column;
    }

    .button,
    .large-search button {
        width: 100%;
    }

    .feature-strip,
    .movie-grid,
    .category-grid,
    .split-section,
    .detail-hero-inner,
    .detail-grid,
    .category-large-grid,
    .footer-inner,
    .filter-toolbar {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 48px 0;
    }

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

    .rank-card a {
        grid-template-columns: 42px 96px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-cover {
        width: 96px;
    }

    .detail-hero-inner {
        padding: 48px 0;
    }

    .detail-poster {
        max-width: 280px;
    }

    .category-card-large ul {
        columns: 1;
    }
}
