:root {
    --green-50: #f0fdf4;
    --green-100: #dcfce7;
    --green-200: #bbf7d0;
    --green-300: #86efac;
    --green-600: #16a34a;
    --green-700: #15803d;
    --green-800: #166534;
    --green-900: #14532d;
    --text: #1f2937;
    --muted: #64748b;
    --line: #e5e7eb;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, var(--green-50), #ffffff 36%, #f8fafc 100%);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, var(--green-700), var(--green-900));
    box-shadow: 0 12px 30px rgba(20, 83, 45, 0.22);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 24px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.logo-mark {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 12px;
    color: var(--green-900);
    background: #ffffff;
    box-shadow: inset 0 0 0 2px rgba(22, 101, 52, 0.12);
}

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

.main-nav a,
.main-nav button,
.mobile-panel a {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.2s ease, opacity 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active,
.main-nav button:hover,
.mobile-panel a:hover {
    color: var(--green-200);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown button {
    border: 0;
    color: rgba(255, 255, 255, 0.9);
    background: transparent;
}

.nav-dropdown-panel {
    position: absolute;
    top: calc(100% + 16px);
    right: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(110px, 1fr));
    gap: 8px;
    width: 280px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(20, 83, 45, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

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

.nav-dropdown-panel a {
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
}

.nav-search {
    position: relative;
    width: min(260px, 24vw);
}

.nav-search input,
.big-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    outline: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.nav-search input {
    padding: 9px 42px 9px 16px;
    color: #ffffff;
    background: rgba(20, 83, 45, 0.72);
}

.nav-search input::placeholder {
    color: rgba(220, 252, 231, 0.74);
}

.nav-search button {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 28px;
    height: 28px;
    border: 0;
    color: var(--green-200);
    background: transparent;
    transform: translateY(-50%);
}

.mobile-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    padding: 8px 10px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

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

.hero-section {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(90deg, var(--green-800), var(--green-700) 48%, var(--green-900));
}

.hero-light {
    position: absolute;
    border-radius: 999px;
    filter: blur(62px);
    opacity: 0.22;
    animation: pulse 4.8s ease-in-out infinite;
}

.hero-light.one {
    top: 54px;
    left: 8%;
    width: 210px;
    height: 210px;
    background: #ffffff;
}

.hero-light.two {
    right: 9%;
    bottom: 52px;
    width: 320px;
    height: 320px;
    background: #fde047;
    animation-delay: 1.2s;
}

.hero-inner {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    padding: 52px 0 78px;
}

.hero-slide {
    display: none;
    width: 100%;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
    gap: 56px;
    align-items: center;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--green-900);
    background: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    font-weight: 700;
}

.hero-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-copy h2 {
    margin: 0 0 16px;
    font-size: clamp(24px, 3vw, 38px);
    color: var(--green-100);
}

.hero-copy p {
    max-width: 720px;
    margin: 0 0 22px;
    color: var(--green-100);
    font-size: 18px;
}

.hero-tags,
.tag-row,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.primary {
    color: var(--green-900);
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

.btn.ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.32);
    transform: rotate(1deg);
}

.hero-poster img {
    width: 100%;
    height: 430px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.1);
}

.hero-poster span {
    position: absolute;
    top: 18px;
    left: 18px;
    padding: 8px 13px;
    border-radius: 999px;
    color: var(--green-900);
    background: #ffffff;
    font-weight: 900;
}

.hero-dots {
    position: absolute;
    left: 0;
    bottom: 44px;
    display: flex;
    gap: 10px;
}

.hero-dots button {
    width: 36px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
}

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

.hero-wave {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    width: 100%;
}

.quick-search-block {
    padding: 42px 0 20px;
}

.quick-search-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
    align-items: center;
    padding: 28px;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.quick-search-grid h2,
.section-heading h2,
.rank-panel h2,
.side-card h2,
.article-card h2,
.channel-links h2,
.category-overview-card h2 {
    margin: 0;
    color: #1f2937;
    line-height: 1.25;
}

.quick-search-grid p,
.section-heading p,
.category-overview-card p,
.footer-grid p {
    margin: 8px 0 0;
    color: var(--muted);
}

.big-search {
    display: flex;
    gap: 12px;
}

.big-search input {
    min-height: 52px;
    padding: 0 20px;
    color: var(--text);
    border-color: var(--line);
    background: #f8fafc;
}

.big-search button {
    min-width: 112px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: var(--green-600);
    font-weight: 800;
}

.section-block,
.green-band {
    padding: 70px 0;
}

.green-band {
    background: linear-gradient(90deg, var(--green-100), var(--green-50));
}

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

.section-heading h2 {
    font-size: clamp(26px, 3vw, 36px);
}

.section-heading a,
.text-link {
    color: var(--green-600);
    font-weight: 800;
}

.movie-grid {
    display: grid;
    gap: 24px;
}

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

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

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

.grid-auto {
    grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
}

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: var(--card);
    box-shadow: var(--shadow-soft);
    transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--green-100);
}

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

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

.poster-link::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.55));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-link::after {
    opacity: 1;
}

.poster-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--green-600);
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(22, 163, 74, 0.25);
}

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

.movie-meta-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: #6b7280;
    font-size: 13px;
}

.movie-card h3 {
    margin: 0 0 9px;
    font-size: 20px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--green-600);
}

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

.tag-row span {
    color: #374151;
    background: #f3f4f6;
}

.compact-card h3 {
    font-size: 18px;
}

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

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

.category-card {
    position: relative;
    display: grid;
    min-height: 154px;
    overflow: hidden;
    border-radius: 22px;
    padding: 20px;
    align-content: end;
    color: #ffffff;
    background: var(--green-800);
    box-shadow: var(--shadow-soft);
}

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

.category-card:hover img {
    transform: scale(1.08);
}

.category-card::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(20, 83, 45, 0.12), rgba(20, 83, 45, 0.92));
}

.category-card span,
.category-card em {
    position: relative;
    z-index: 2;
}

.category-card span {
    font-size: 20px;
    font-weight: 900;
}

.category-card em {
    margin-top: 6px;
    font-size: 13px;
    font-style: normal;
    color: rgba(255, 255, 255, 0.82);
}

.rank-panel,
.side-card,
.article-card,
.player-card,
.category-overview-card {
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.rank-panel,
.side-card,
.article-card,
.player-card {
    padding: 24px;
}

.rank-panel {
    position: sticky;
    top: 88px;
}

.mini-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.mini-card {
    display: grid;
    grid-template-columns: auto 64px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: #f8fafc;
    transition: background 0.2s ease, transform 0.2s ease;
}

.mini-card:not(:has(.rank-number)) {
    grid-template-columns: 64px 1fr;
}

.mini-card:hover {
    background: var(--green-50);
    transform: translateX(4px);
}

.mini-card img {
    width: 64px;
    height: 54px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--green-100);
}

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

.mini-card strong {
    overflow: hidden;
    color: #1f2937;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mini-card em {
    margin-top: 2px;
    overflow: hidden;
    color: #6b7280;
    font-size: 12px;
    font-style: normal;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-number {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 10px;
    color: #ffffff;
    background: var(--green-600);
    font-weight: 900;
}

.channel-links {
    padding: 54px 0 74px;
}

.channel-links .container {
    padding: 28px;
    border-radius: var(--radius);
    background: linear-gradient(90deg, var(--green-700), var(--green-900));
    color: #ffffff;
}

.channel-links h2 {
    color: #ffffff;
}

.channel-links div div {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.channel-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.page-hero,
.detail-hero {
    color: #ffffff;
    background: linear-gradient(90deg, var(--green-700), var(--green-900));
}

.page-hero .container {
    padding: 54px 0;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 52px);
}

.page-hero p {
    max-width: 760px;
    margin: 12px 0 0;
    color: var(--green-100);
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: var(--green-100);
    font-size: 14px;
}

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

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 220px 180px;
    gap: 14px;
    margin-bottom: 26px;
    padding: 18px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    min-height: 44px;
    padding: 0 14px;
    color: var(--text);
    border-color: var(--line);
    background: #f8fafc;
}

.empty-state {
    display: none;
    margin: 30px 0 0;
    padding: 32px;
    border-radius: 20px;
    color: var(--muted);
    text-align: center;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 20px;
    padding: 18px;
}

.category-overview-cover {
    overflow: hidden;
    border-radius: 18px;
    background: var(--green-100);
}

.category-overview-cover img {
    width: 100%;
    height: 100%;
    min-height: 170px;
    object-fit: cover;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.category-samples a {
    padding: 5px 9px;
    border-radius: 999px;
    color: #374151;
    background: #f3f4f6;
    font-size: 13px;
}

.rank-table-wrap {
    overflow: auto;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.rank-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.rank-table th,
.rank-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.rank-table th {
    color: #14532d;
    background: var(--green-100);
}

.rank-table td:first-child {
    color: var(--green-600);
    font-weight: 900;
}

.rank-table a {
    font-weight: 800;
}

.rank-table a:hover {
    color: var(--green-600);
}

.detail-hero .container {
    padding: 46px 0 58px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 36px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.detail-poster img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.detail-info h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.12;
}

.lead-text {
    max-width: 800px;
    margin: 0 0 22px;
    color: var(--green-100);
    font-size: 20px;
}

.detail-meta span,
.detail-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.detail-tags {
    margin: 16px 0 28px;
}

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

.player-card {
    margin-bottom: 24px;
    padding: 12px;
    background: #0b0f0d;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.movie-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.46));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.92);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.3);
    font-size: 34px;
    transform: translateX(3px);
}

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

.article-card {
    color: #374151;
}

.article-card h2 {
    margin-top: 10px;
    margin-bottom: 12px;
    font-size: 26px;
}

.article-card p {
    margin: 0 0 20px;
    font-size: 17px;
}

.info-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.side-card {
    position: sticky;
    top: 88px;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(90deg, #111827, #1f2937);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 36px;
    padding: 44px 0;
}

.footer-logo {
    color: #ffffff;
}

.footer-grid h2 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 18px;
}

.footer-grid a:hover {
    color: var(--green-300);
}

.footer-bottom {
    padding: 20px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 14px;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.18;
    }

    50% {
        transform: scale(1.08);
        opacity: 0.28;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1080px) {
    .main-nav,
    .nav-search {
        display: none;
    }

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

    .mobile-panel.open {
        display: grid;
        gap: 10px;
    }

    .hero-slide,
    .quick-search-grid,
    .split-layout,
    .detail-layout,
    .detail-content-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        max-width: 420px;
    }

    .rank-panel,
    .side-card {
        position: static;
    }

    .feature-grid,
    .grid-four,
    .grid-three,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .hero-section,
    .hero-inner {
        min-height: auto;
    }

    .hero-inner {
        padding: 42px 0 82px;
    }

    .hero-slide.active {
        display: grid;
    }

    .hero-poster img {
        height: 300px;
    }

    .hero-dots {
        left: 0;
        bottom: 38px;
    }

    .quick-search-grid,
    .filter-panel,
    .category-overview-card {
        grid-template-columns: 1fr;
    }

    .big-search {
        flex-direction: column;
    }

    .feature-grid,
    .grid-four,
    .grid-three,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

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

    .detail-poster img {
        height: 340px;
    }

    .player-overlay span {
        width: 66px;
        height: 66px;
        font-size: 28px;
    }
}
