:root {
    --amber: #f59e0b;
    --amber-dark: #d97706;
    --orange: #f97316;
    --red: #ef4444;
    --green: #10b981;
    --blue: #0ea5e9;
    --purple: #a855f7;
    --ink: #1f2937;
    --muted: #6b7280;
    --soft: #fff7ed;
    --line: #e5e7eb;
    --card: #ffffff;
    --shadow: 0 20px 45px rgba(124, 45, 18, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.7), #ffffff 45%, rgba(254, 243, 199, 0.48));
}

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

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

svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.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);
    border-bottom: 1px solid rgba(251, 191, 36, 0.16);
    box-shadow: 0 10px 30px rgba(124, 45, 18, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 76px;
}

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: white;
    font-size: 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 12px 28px rgba(239, 68, 68, 0.28);
    transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08) rotate(-4deg);
}

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

.brand-text strong {
    font-size: 24px;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, #dc2626, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

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

.desktop-nav a {
    position: relative;
    padding: 10px 14px;
    color: #4b5563;
    font-weight: 700;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 5px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--red), var(--amber));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.desktop-nav a:hover {
    color: var(--amber-dark);
    background: rgba(254, 243, 199, 0.5);
}

.desktop-nav a:hover::after {
    transform: scaleX(1);
}

.header-search {
    position: relative;
    width: min(280px, 26vw);
}

.header-search input,
.mobile-nav input,
.large-search input,
.page-search input,
.search-page-form input {
    width: 100%;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 999px;
    padding: 12px 46px 12px 18px;
    outline: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-search input:focus,
.mobile-nav input:focus,
.large-search input:focus,
.page-search input:focus,
.search-page-form input:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.header-search button {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #9ca3af;
    font-size: 20px;
    cursor: pointer;
}

.mobile-toggle {
    display: none;
    border: 0;
    background: #fff7ed;
    color: var(--amber-dark);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 24px;
}

.mobile-nav {
    display: none;
    padding: 0 16px 18px;
    border-top: 1px solid #f3f4f6;
}

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

.mobile-nav a,
.mobile-nav button {
    display: block;
    border: 0;
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff7ed;
    color: #92400e;
    font-weight: 700;
}

.mobile-nav form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.home-hero {
    position: relative;
    min-height: 630px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

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

.hero-slide > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 6s ease;
}

.hero-slide.active > img {
    transform: scale(1.12);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 25%, rgba(245, 158, 11, 0.36), transparent 28%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.94) 0%, rgba(17, 24, 39, 0.68) 42%, rgba(17, 24, 39, 0.25) 100%),
        linear-gradient(0deg, rgba(17, 24, 39, 0.76), transparent 42%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 132px 0 108px;
    color: white;
}

.hero-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.hero-kicker span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    font-size: 14px;
    font-weight: 700;
}

.hero-content h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(44px, 7vw, 88px);
    line-height: 0.98;
    letter-spacing: -0.07em;
    text-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

.hero-content p {
    max-width: 720px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(17px, 2.2vw, 22px);
    line-height: 1.8;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 14px;
    border: 1px solid transparent;
    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: white;
    background: linear-gradient(90deg, var(--amber), #facc15);
    box-shadow: 0 18px 34px rgba(245, 158, 11, 0.28);
}

.btn.primary:hover {
    box-shadow: 0 22px 42px rgba(245, 158, 11, 0.38);
}

.btn.ghost {
    color: white;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(14px);
}

.btn.full {
    width: 100%;
}

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

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

.hero-dots button.active {
    background: linear-gradient(90deg, var(--amber), #facc15);
}

.quick-search-panel {
    position: relative;
    z-index: 6;
    margin-top: -44px;
    display: grid;
    gap: 18px;
    padding: 26px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.large-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.large-search input {
    min-height: 54px;
    border-radius: 16px;
    padding-right: 18px;
    font-size: 16px;
}

.large-search button,
.page-search button,
.search-page-form button,
.mobile-nav form button {
    border: 0;
    border-radius: 16px;
    padding: 0 24px;
    color: white;
    background: linear-gradient(90deg, var(--amber), #facc15);
    font-weight: 800;
    cursor: pointer;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-links a {
    padding: 9px 14px;
    border-radius: 999px;
    background: #fff7ed;
    color: #92400e;
    font-size: 14px;
    font-weight: 700;
}

.section-block {
    padding: 56px 0 0;
}

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

.section-heading > div {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 12px;
    align-items: center;
}

.section-heading span {
    grid-row: span 2;
    width: 8px;
    height: 40px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--amber), #facc15);
}

.section-heading.red span {
    background: linear-gradient(180deg, var(--red), var(--orange));
}

.section-heading.blue span {
    background: linear-gradient(180deg, var(--blue), #22d3ee);
}

.section-heading.purple span {
    background: linear-gradient(180deg, var(--purple), #ec4899);
}

.section-heading.green span {
    background: linear-gradient(180deg, var(--green), #34d399);
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
    letter-spacing: -0.04em;
}

.section-heading p {
    grid-column: 2;
    margin: 6px 0 0;
    color: var(--muted);
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: white;
    box-shadow: 0 10px 26px rgba(124, 45, 18, 0.09);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 45px rgba(124, 45, 18, 0.16);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

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

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

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

.poster-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #92400e;
    background: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    font-weight: 800;
}

.poster-play {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    color: white;
    font-size: 28px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.92);
    transform: translate(-50%, -50%) scale(0.86);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.meta-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 8px;
    background: #f9fafb;
}

.movie-card h2,
.list-card h2 {
    margin: 12px 0 8px;
    color: #111827;
    font-size: 18px;
    line-height: 1.3;
}

.movie-card h2 a,
.list-card h2 a {
    transition: color 0.2s ease;
}

.movie-card h2 a:hover,
.list-card h2 a:hover {
    color: var(--amber-dark);
}

.movie-card p,
.list-card p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.tag-row span {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    background: #fff7ed;
    color: #b45309;
    font-size: 12px;
    font-weight: 700;
}

.tag-row.large span {
    padding: 8px 12px;
    font-size: 13px;
}

.card-foot {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 12px;
}

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

.movie-card.compact h2 {
    font-size: 15px;
}

.movie-card.compact p,
.movie-card.compact .card-foot {
    display: none;
}

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

.list-card {
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 18px;
    padding: 14px;
    border-radius: 22px;
    background: white;
    box-shadow: 0 10px 26px rgba(124, 45, 18, 0.08);
}

.list-poster {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 16px;
    background: #fef3c7;
}

.list-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 168px;
    padding: 24px;
    border-radius: 22px;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    box-shadow: 0 10px 24px rgba(124, 45, 18, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile::after {
    content: "";
    position: absolute;
    right: -45px;
    bottom: -45px;
    width: 130px;
    height: 130px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.16);
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 38px rgba(124, 45, 18, 0.14);
}

.category-tile span {
    font-size: 34px;
}

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

.category-tile em {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
    line-height: 1.6;
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 28px;
    align-items: start;
}

.ranking-panel {
    position: sticky;
    top: 98px;
    padding: 22px;
    border-radius: 24px;
    background: white;
    box-shadow: var(--shadow);
}

.ranking-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.ranking-title span {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: white;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--red), var(--orange));
}

.ranking-title h2 {
    margin: 0;
    font-size: 24px;
}

.ranking-panel ol {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ranking-panel li a {
    display: grid;
    grid-template-columns: 26px 54px 1fr auto;
    gap: 10px;
    align-items: center;
}

.ranking-panel li span {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: #fff7ed;
    color: #b45309;
    font-weight: 900;
}

.ranking-panel img {
    width: 54px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
}

.ranking-panel strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
}

.ranking-panel em {
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
}

.more-link {
    display: block;
    margin-top: 16px;
    padding: 12px;
    border-radius: 12px;
    background: #fff7ed;
    color: #b45309;
    text-align: center;
    font-weight: 800;
}

.page-hero {
    color: white;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.26), transparent 24%),
        linear-gradient(110deg, #f59e0b, #f97316 52%, #ef4444);
    padding: 58px 0;
}

.page-hero.small {
    padding: 48px 0;
}

.page-hero h1 {
    margin: 8px 0 12px;
    font-size: clamp(34px, 5vw, 56px);
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.page-hero-inner {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.hero-icon {
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 32px;
}

.crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
}

.crumb a:hover {
    color: white;
}

.crumb a::after {
    content: "/";
    margin-left: 9px;
    opacity: 0.55;
}

.detail-crumb {
    color: #6b7280;
    margin-bottom: 20px;
}

.detail-crumb a:hover,
.detail-crumb span {
    color: #b45309;
}

.page-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    min-width: min(430px, 100%);
}

.page-search input {
    border-radius: 16px;
    padding-right: 18px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    padding: 16px;
    border-radius: 20px;
    background: white;
    box-shadow: 0 8px 22px rgba(124, 45, 18, 0.08);
}

.filter-bar button {
    border: 1px solid #fde68a;
    background: #fffbeb;
    color: #92400e;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
}

.filter-bar button.active {
    color: white;
    background: linear-gradient(90deg, var(--amber), #facc15);
    border-color: transparent;
}

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

.category-card-large {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow);
    background: #111827;
}

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

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

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

.category-card-large div {
    position: absolute;
    z-index: 2;
    left: 22px;
    right: 22px;
    bottom: 22px;
    color: white;
}

.category-card-large span {
    font-size: 34px;
}

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

.category-card-large p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.65;
}

.rank-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 22px;
    margin-top: -34px;
}

.rank-hero-card {
    position: relative;
    min-height: 320px;
    overflow: hidden;
    border-radius: 26px;
    background: #111827;
    box-shadow: var(--shadow);
}

.rank-hero-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
}

.rank-hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.82));
}

.rank-hero-card span,
.rank-hero-card strong,
.rank-hero-card em {
    position: absolute;
    z-index: 2;
    left: 22px;
}

.rank-hero-card span {
    top: 22px;
    padding: 8px 12px;
    border-radius: 999px;
    color: white;
    background: linear-gradient(90deg, var(--red), var(--orange));
    font-weight: 900;
}

.rank-hero-card strong {
    right: 22px;
    bottom: 50px;
    color: white;
    font-size: 28px;
    line-height: 1.2;
}

.rank-hero-card em {
    bottom: 22px;
    color: rgba(255, 255, 255, 0.78);
    font-style: normal;
}

.rank-row {
    display: grid;
    grid-template-columns: 54px 94px 1fr auto;
    gap: 18px;
    align-items: center;
    margin-bottom: 14px;
    padding: 14px;
    border-radius: 20px;
    background: white;
    box-shadow: 0 8px 22px rgba(124, 45, 18, 0.08);
}

.rank-num {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, var(--amber), #facc15);
    font-weight: 900;
}

.rank-cover {
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 2 / 3;
}

.rank-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-row h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.rank-row p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-meta {
    display: grid;
    gap: 8px;
    justify-items: end;
    color: var(--muted);
}

.rank-meta strong {
    color: #b45309;
}

.detail-wrap {
    padding: 36px 0 0;
    background: linear-gradient(180deg, #f9fafb, rgba(255, 255, 255, 0));
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
}

.player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 24px;
    background: #050505;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.24);
}

.player-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #050505;
    cursor: pointer;
}

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    width: 100%;
    border: 0;
    color: white;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.54));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-start span {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    padding-left: 5px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.94);
    font-size: 44px;
    box-shadow: 0 20px 44px rgba(245, 158, 11, 0.35);
}

.player-shell.playing .player-start {
    opacity: 0;
    visibility: hidden;
}

.player-actions {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: flex;
    justify-content: space-between;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.player-shell:hover .player-actions,
.player-shell.playing .player-actions {
    opacity: 1;
    pointer-events: auto;
}

.player-actions button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    color: white;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    font-size: 22px;
    cursor: pointer;
}

.player-actions button:first-child {
    margin-right: auto;
    background: var(--amber);
}

.detail-card,
.side-card {
    margin-top: 22px;
    padding: 24px;
    border-radius: 24px;
    background: white;
    box-shadow: 0 10px 28px rgba(124, 45, 18, 0.08);
}

.detail-card h1 {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: -0.05em;
}

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

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

.lead-text {
    color: #374151;
    font-size: 18px;
    line-height: 1.85;
}

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

.detail-card p {
    margin: 0 0 14px;
    color: #4b5563;
    line-height: 1.95;
}

.poster-card img {
    width: 100%;
    border-radius: 18px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    margin-bottom: 16px;
}

.side-list {
    display: grid;
    gap: 10px;
}

.side-list a {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 12px;
    background: #f9fafb;
}

.side-list span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    color: #b45309;
    background: #fff7ed;
    font-weight: 900;
}

.side-list strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.side-list em {
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
}

.search-page-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    max-width: 760px;
    margin-top: 24px;
}

.search-page-form input {
    border-radius: 16px;
    padding-right: 18px;
}

.search-status {
    margin-bottom: 20px;
    padding: 16px 18px;
    border-radius: 16px;
    color: #92400e;
    background: #fff7ed;
    font-weight: 800;
}

.site-footer {
    margin-top: 72px;
    background: linear-gradient(135deg, #f9fafb, #fff7ed);
    border-top: 1px solid rgba(245, 158, 11, 0.16);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 34px;
    padding: 46px 0;
}

.footer-brand {
    display: inline-block;
    margin-bottom: 14px;
    color: #b45309;
    font-size: 24px;
    font-weight: 900;
}

.site-footer p {
    max-width: 480px;
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

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

.footer-links a {
    padding: 8px 10px;
    border-radius: 999px;
    background: white;
    color: #92400e;
    font-size: 13px;
    font-weight: 700;
}

.footer-bottom {
    padding: 18px;
    color: var(--muted);
    text-align: center;
    border-top: 1px solid rgba(245, 158, 11, 0.14);
}

@media (max-width: 1100px) {
    .movie-grid.four-col {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

    .split-section,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .ranking-panel {
        position: static;
    }
}

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

    .mobile-toggle {
        display: grid;
        place-items: center;
    }

    .brand-text strong {
        font-size: 20px;
    }

    .home-hero {
        min-height: 560px;
    }

    .hero-content {
        padding: 104px 0 92px;
    }

    .large-search,
    .page-search,
    .search-page-form {
        grid-template-columns: 1fr;
    }

    .large-search button,
    .page-search button,
    .search-page-form button {
        min-height: 48px;
    }

    .movie-grid.four-col,
    .movie-grid.six-col,
    .category-grid,
    .category-large-grid,
    .list-grid,
    .rank-top,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-hero-inner {
        align-items: start;
        flex-direction: column;
    }

    .rank-row {
        grid-template-columns: 42px 80px 1fr;
    }

    .rank-meta {
        grid-column: 3;
        justify-items: start;
    }
}

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

    .header-inner {
        min-height: 66px;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
    }

    .brand-text small {
        display: none;
    }

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

    .quick-search-panel {
        margin-top: -30px;
        padding: 18px;
        border-radius: 18px;
    }

    .movie-grid.four-col,
    .movie-grid.six-col,
    .category-grid,
    .category-large-grid,
    .list-grid,
    .rank-top,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .list-card {
        grid-template-columns: 94px 1fr;
        gap: 12px;
    }

    .movie-card p,
    .list-card p {
        min-height: unset;
    }

    .rank-row {
        grid-template-columns: 36px 72px 1fr;
        gap: 12px;
    }

    .detail-card,
    .side-card {
        padding: 18px;
    }

    .player-start span {
        width: 70px;
        height: 70px;
        font-size: 36px;
    }
}
