/* 松烟铜焰：与紫蓝玻璃模板拉开差异，覆盖全站 */
:root {
  --ink: #0a110f;
  --ink-2: #101916;
  --pine: #17342c;
  --moss: #21463b;
  --card: #15221d;
  --card-2: #1b2c26;
  --fog: #d5ddd6;
  --mist: #8d9c94;
  --copper: #c4783a;
  --copper-2: #e09a55;
  --ember: #d45a2a;
  --paper: #f2ebe1;
  --line: rgba(196, 120, 58, 0.38);
  --glass: rgba(21, 34, 29, 0.92);
}

html {
  color-scheme: dark;
}

body {
  background: var(--ink);
  color: var(--fog);
}

::-webkit-scrollbar-track {
  background: #12201b;
}

::-webkit-scrollbar-thumb {
  background: rgba(196, 120, 58, 0.55);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(196, 120, 58, 0.8);
}

.app-bootstrap {
  color: var(--fog);
}

.app-bootstrap__spinner {
  border-color: rgba(196, 120, 58, 0.18);
  border-top-color: var(--copper);
}

.app-bootstrap__msg {
  color: var(--mist);
}

/* ── 全局底：去掉紫蓝斜向渐变 ── */
.min-h-screen.bg-gradient-to-br.from-purple-900,
.min-h-screen.bg-gradient-to-br.from-purple-900.via-blue-900.to-indigo-900 {
  background-image: none !important;
  background-color: var(--ink) !important;
  background:
    radial-gradient(980px 420px at 8% -8%, rgba(196, 120, 58, 0.14), transparent 56%),
    radial-gradient(820px 380px at 100% 8%, rgba(23, 52, 44, 0.9), transparent 50%),
    linear-gradient(180deg, #0c1613 0%, var(--ink) 28%, #08100e 100%) !important;
}

/* ── 头部：双行实心底栏，不再用毛玻璃紫条 ── */
.hnyj-header {
  background: var(--ink-2) !important;
  backdrop-filter: none !important;
  border-bottom: 3px solid var(--copper);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.hnyj-header__bar {
  height: auto;
  min-height: 4.25rem;
  flex-wrap: wrap;
  padding: 0.7rem 0 0.85rem;
  row-gap: 0.65rem;
}

.hnyj-header__logo:hover {
  color: var(--copper-2);
}

.hnyj-header__logo svg {
  color: var(--copper) !important;
}

.hnyj-header__brand {
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  color: var(--paper) !important;
  letter-spacing: 0.04em;
}

.hnyj-header nav.hidden.md\:flex a,
.hnyj-header nav a {
  position: relative;
  padding: 0.2rem 0.1rem 0.35rem;
  color: var(--mist) !important;
}

.hnyj-header nav a:hover,
.hnyj-header nav a.text-white {
  color: var(--paper) !important;
}

.hnyj-header nav a.text-white::after,
.hnyj-header nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--copper);
}

.hnyj-header .hidden.md\:flex.items-center.space-x-2 {
  margin-left: auto;
}

.hnyj-header form.hidden.md\:flex,
.hnyj-header form.md\:flex,
.hnyj-header form.hnyj-search {
  display: flex !important;
  order: 5;
  flex: 1 1 100%;
}

.hnyj-skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 80;
  padding: 0.5rem 0.75rem;
  background: var(--copper);
  color: #1a0e08;
}

.hnyj-skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.hnyj-movie-grid,
.hnyj-featured-grid,
.hnyj-hot-grid {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hnyj-header form .relative {
  width: 100%;
}

.hnyj-header input[type="text"],
.hnyj-header input[aria-label="搜索视频"] {
  width: 100% !important;
  border-radius: 3px !important;
  border: 1px solid rgba(196, 120, 58, 0.28) !important;
  background: #0d1613 !important;
  color: var(--paper) !important;
  padding: 0.62rem 2.6rem 0.62rem 0.9rem !important;
}

.hnyj-header input:focus {
  outline: none;
  border-color: var(--copper) !important;
  box-shadow: 0 0 0 2px rgba(196, 120, 58, 0.22);
}

.hnyj-header .hidden.md\:flex.items-center.space-x-2 a,
.hnyj-header a[href="/login"],
.hnyj-header a[href="/register"] {
  color: var(--copper-2) !important;
}

.hnyj-header a[href="/login"]:hover,
.hnyj-header a[href="/register"]:hover,
.hnyj-header button.md\:hidden {
  color: var(--paper) !important;
}

.hnyj-mobile-nav {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
}

.hnyj-nav-overlay {
  background: rgba(8, 14, 12, 0.72);
}

/* ── 首屏：缩短、左对齐，告别居中全屏轮播气质 ── */
.hnyj-hero {
  min-height: 0 !important;
}

.hnyj-hero__content {
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
  padding: 5.5rem 1rem 2.4rem !important;
}

.hnyj-hero__inner {
  max-width: 40rem;
  margin: 0;
  padding: 1.1rem 1.15rem 1.15rem;
  background: linear-gradient(180deg, rgba(10, 17, 15, 0.18), rgba(10, 17, 15, 0.72));
  border-left: 4px solid var(--copper);
}

.hnyj-hero__title {
  padding-left: 0;
  border-left: none;
}

.hnyj-hero__title {
  padding-left: 0.95rem;
  border-left: 4px solid var(--copper);
}

.hnyj-hero__title-line {
  font-size: 1.7rem;
  letter-spacing: 0.01em;
}

.hnyj-hero__title-sub {
  color: var(--copper-2) !important;
  font-weight: 650;
}

.hnyj-hero__lead {
  margin-left: 0;
  margin-right: 0;
  color: rgba(213, 221, 214, 0.82) !important;
}

.hnyj-hero__actions {
  justify-content: flex-start;
}

.hnyj-hero .from-purple-900\/90,
.hnyj-hero .bg-gradient-to-t.from-purple-900\/90 {
  --tw-gradient-from: rgba(10, 17, 15, 0.2) !important;
  --tw-gradient-to: rgba(10, 17, 15, 0.94) !important;
  --tw-gradient-stops: rgba(10, 17, 15, 0.15), rgba(10, 17, 15, 0.42), rgba(10, 17, 15, 0.94) !important;
  background-image: linear-gradient(to top, rgba(10, 17, 15, 0.94), rgba(10, 17, 15, 0.38), transparent) !important;
}

.hnyj-hero-dots--bottom {
  bottom: 0.85rem;
  left: 1.25rem;
  transform: none;
  justify-content: flex-start;
}

.hnyj-hero-dot {
  width: 0.7rem;
  height: 0.22rem;
  border-radius: 1px;
  background: rgba(242, 235, 225, 0.28);
}

.hnyj-hero-dot.is-active {
  width: 1.7rem;
  background: var(--copper);
}

@media (min-width: 768px) {
  .hnyj-hero__content {
    padding: 6.5rem 1.5rem 2.8rem !important;
  }

  .hnyj-hero__title-line {
    font-size: 2.45rem;
  }
}

/* ── 按钮 ── */
.hnyj-btn {
  border-radius: 3px !important;
  letter-spacing: 0.06em;
}

.hnyj-btn--primary {
  background: linear-gradient(90deg, var(--ember), var(--copper)) !important;
  color: #1a0e08 !important;
}

.hnyj-btn--ghost {
  background: transparent !important;
  border: 1px solid var(--line) !important;
  color: var(--paper) !important;
}

.hnyj-btn--ghost:hover {
  background: rgba(196, 120, 58, 0.12) !important;
  border-color: var(--copper) !important;
}

.hnyj-btn--accent {
  background: linear-gradient(90deg, var(--pine), var(--moss)) !important;
  border: 1px solid var(--line);
  color: var(--paper) !important;
}

/* ── 中部区块 ── */
.hnyj-section {
  padding-top: 2.4rem;
  padding-bottom: 2.6rem;
}

.hnyj-section-head {
  align-items: flex-end;
  border-bottom: 1px solid rgba(196, 120, 58, 0.22);
  padding-bottom: 0.75rem;
  margin-bottom: 1.4rem;
}

.hnyj-section-head__title {
  color: var(--paper) !important;
  font-size: 1.35rem !important;
  letter-spacing: 0.08em;
}

.hnyj-section-head__title::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 0.55rem;
  background: var(--copper);
  transform: rotate(45deg);
  vertical-align: 0.05em;
}

.hnyj-section-head__more {
  color: var(--copper) !important;
}

.hnyj-section-head__more:hover {
  color: var(--copper-2) !important;
}

/* ── 分类入口卡片：左图右文横条（只作用于分类砖，不套影片卡） ── */
.grid.grid-cols-2.md\:grid-cols-3.lg\:grid-cols-5.gap-6 > a.group.text-center,
.grid.grid-cols-2 > a.group.bg-white\/10.text-center {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
  text-align: left !important;
  padding: 0.95rem 1rem !important;
  border-radius: 4px !important;
  border: 1px solid rgba(196, 120, 58, 0.16) !important;
  border-left: 4px solid var(--copper) !important;
  background: var(--card) !important;
  backdrop-filter: none !important;
  transform: none !important;
}

.grid.grid-cols-2.md\:grid-cols-3.lg\:grid-cols-5.gap-6 > a.group.text-center:hover {
  background: var(--card-2) !important;
  transform: translateX(4px) !important;
}

.grid.grid-cols-2.md\:grid-cols-3.lg\:grid-cols-5.gap-6 > a.group.text-center > div.w-16 {
  width: 2.6rem !important;
  height: 2.6rem !important;
  margin: 0 !important;
  border-radius: 4px !important;
  background: rgba(196, 120, 58, 0.16) !important;
  color: var(--copper) !important;
}

.grid.grid-cols-2.md\:grid-cols-3.lg\:grid-cols-5.gap-6 > a.group.text-center h3 {
  margin-bottom: 0.15rem !important;
  color: var(--paper) !important;
}

.grid.grid-cols-2.md\:grid-cols-3.lg\:grid-cols-5.gap-6 > a.group.text-center p {
  color: var(--mist) !important;
}

/* ── 影片卡片：直角铜边，取消放大 ── */
a.group.bg-white\/10.backdrop-blur-md.rounded-2xl.overflow-hidden {
  border-radius: 5px !important;
  background: var(--card) !important;
  backdrop-filter: none !important;
  border: 1px solid rgba(196, 120, 58, 0.16) !important;
  transform: none !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

a.group.bg-white\/10.backdrop-blur-md.rounded-2xl.overflow-hidden:hover {
  background: var(--card-2) !important;
  border-color: var(--copper) !important;
  transform: translateY(-4px) !important;
}

a.group.bg-white\/10.rounded-2xl.overflow-hidden img.w-full.h-48 {
  height: 16.25rem !important;
  width: 100% !important;
  object-fit: cover !important;
  filter: saturate(0.92) contrast(1.04);
}

.hnyj-movie-grid {
  gap: 1.7rem !important;
}

.hnyj-featured-grid > li,
.hnyj-movie-grid > li,
.hnyj-hot-grid > li {
  min-width: 0;
}

.hnyj-movie-grid > li > a.group,
.hnyj-featured-grid > li > a.group,
.hnyj-movie-grid > a.group {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0;
  height: 100%;
}

.hnyj-movie-grid .p-4,
.hnyj-featured-grid .p-4 {
  padding: 1.05rem 1.1rem 1.2rem !important;
}

.hnyj-movie-grid h3,
.hnyj-featured-grid h3 {
  margin-bottom: 0.45rem !important;
  line-height: 1.45 !important;
}

.hnyj-movie-grid p.line-clamp-2,
.hnyj-featured-grid p.line-clamp-2 {
  margin-bottom: 0.85rem !important;
  line-height: 1.6 !important;
}

.hnyj-featured-grid {
  gap: 1.85rem !important;
}

a.group.bg-white\/10.rounded-2xl.overflow-hidden h3,
a.group.bg-white\/10.rounded-2xl.overflow-hidden .text-white.font-semibold {
  color: var(--paper) !important;
}

a.group.bg-white\/10.rounded-2xl.overflow-hidden:hover h3,
.group:hover .group-hover\:text-blue-400 {
  color: var(--copper-2) !important;
}

a.group.bg-white\/10.rounded-2xl .absolute.top-4.right-4 {
  top: 0 !important;
  right: 0 !important;
  border-radius: 0 0 0 6px !important;
  background: var(--copper) !important;
  color: #1a0e08 !important;
}

a.group.bg-white\/10.rounded-2xl .absolute.top-4.right-4 span {
  color: #1a0e08 !important;
  font-weight: 700;
}

.text-yellow-400 {
  color: var(--copper-2) !important;
}

.text-blue-400,
.hover\:text-blue-400:hover,
.group:hover .group-hover\:text-blue-400 {
  color: var(--copper) !important;
}

/* ── 热门排行 ── */
.hnyj-hot-rank {
  border-radius: 4px !important;
  background: var(--card) !important;
  border: 1px solid rgba(196, 120, 58, 0.14) !important;
  border-left: 3px solid var(--copper);
}

.hnyj-hot-rank:hover {
  background: var(--card-2) !important;
  transform: translateX(3px);
}

.hnyj-hot-rank__num,
.hnyj-hot-rank__num.is-top {
  color: var(--copper) !important;
  font-variant-numeric: tabular-nums;
}

.hnyj-hot-rank .rounded-lg {
  border-radius: 3px !important;
}

/* ── 底部 CTA / 页脚 ── */
.hnyj-cta {
  border-radius: 4px !important;
  border: 1px solid var(--line) !important;
  background: linear-gradient(135deg, #17342c, #0f1c18) !important;
  backdrop-filter: none !important;
  text-align: left;
}

.hnyj-cta__title {
  color: var(--paper) !important;
}

.hnyj-cta__text {
  color: var(--mist) !important;
}

.hnyj-footer {
  margin-top: 2rem;
  border-top: 3px solid var(--copper);
  background: #070c0a !important;
  backdrop-filter: none !important;
}

.hnyj-footer__glow {
  display: none;
}

.hnyj-footer__logo-icon {
  border-radius: 4px;
  background: linear-gradient(135deg, var(--ember), var(--copper)) !important;
  color: #1a0e08;
  box-shadow: none;
}

.hnyj-footer__title {
  color: var(--paper);
  border-image: none !important;
  border-bottom: 2px solid var(--copper) !important;
}

.hnyj-footer__link:hover {
  color: var(--copper-2);
}

.hnyj-footer__tagline {
  color: var(--copper-2);
}

.hnyj-ababseo__text {
  background: linear-gradient(90deg, #e09a55, #f2ebe1, #c4783a, #e09a55);
  background-size: 200% auto;
}

/* ── 分类页顶栏 ── */
.hnyj-page-top > section.py-12.bg-black\/20 {
  background: #101916 !important;
  backdrop-filter: none !important;
  border-bottom: 1px solid var(--line);
}

.hnyj-page-top > section.py-12.bg-black\/20 .text-center {
  text-align: left !important;
}

.hnyj-page-title {
  color: var(--paper) !important;
  padding-left: 0.85rem;
  border-left: 4px solid var(--copper);
}

.hnyj-page-top .flex.flex-col.md\:flex-row {
  justify-content: flex-start !important;
}

.hnyj-cat-select,
.hnyj-page-btn {
  border-radius: 3px !important;
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  color: var(--paper) !important;
}

.hnyj-pagination {
  border-radius: 4px !important;
  background: var(--card) !important;
  border: 1px solid rgba(196, 120, 58, 0.16) !important;
  backdrop-filter: none !important;
}

.hnyj-pagination__info strong {
  color: var(--copper-2);
}

.hnyj-pagination__btn:hover:not(:disabled),
.hnyj-pagination__num:hover {
  background: rgba(196, 120, 58, 0.16);
  border-color: var(--copper);
}

.hnyj-pagination__num.is-active {
  background: linear-gradient(135deg, var(--ember), var(--copper)) !important;
  color: #1a0e08 !important;
  box-shadow: none;
}

/* ── 播放页 ── */
.hnyj-watch-ad {
  background: linear-gradient(90deg, #17342c, #c4783a) !important;
}

.hnyj-watch-player {
  border-radius: 4px;
  outline: 1px solid var(--line);
}

.hnyj-watch-panel,
.hnyj-info-panel,
.max-w-md.w-full,
.bg-white\/10.backdrop-blur-md.rounded-2xl.p-8 {
  background: var(--card) !important;
  backdrop-filter: none !important;
  border: 1px solid rgba(196, 120, 58, 0.18) !important;
  border-radius: 5px !important;
}

.hnyj-watch-title,
.hnyj-info-body h2 {
  color: var(--paper);
}

.hnyj-watch-tag,
.hnyj-watch-meta span {
  border-radius: 3px;
  background: rgba(196, 120, 58, 0.12);
  border-color: var(--line);
  color: var(--copper-2);
}

.hnyj-watch-meta .is-score {
  color: var(--copper-2);
  background: rgba(196, 120, 58, 0.16);
}

.hnyj-related-item:hover {
  background: rgba(196, 120, 58, 0.1);
}

.hnyj-related-item:hover .hnyj-related-item__title {
  color: var(--copper-2);
}

.hnyj-related-item__thumb {
  border-radius: 3px;
}

.hnyj-info-body a,
.hnyj-info-body a:hover {
  color: var(--copper);
}

.hnyj-info-lead {
  color: var(--mist);
}

/* ── 表单 / 搜索 / 登录 ── */
.filter-section,
.content-main {
  color: var(--fog);
}

input.flex-1.bg-white\/10,
input.bg-white\/10,
textarea.bg-white\/10 {
  background: #0d1613 !important;
  border: 1px solid rgba(196, 120, 58, 0.24) !important;
  border-radius: 3px !important;
  color: var(--paper) !important;
}

.focus\:ring-blue-400:focus {
  --tw-ring-color: rgb(196 120 58) !important;
}

.slider::-webkit-slider-thumb,
.slider::-moz-range-thumb {
  background: var(--copper);
}

/* 登录注册页主按钮 */
.min-h-screen.flex.items-center.justify-center button[type="submit"],
.min-h-screen.hnyj-page-top button[type="submit"] {
  background: linear-gradient(90deg, var(--ember), var(--copper)) !important;
  color: #1a0e08 !important;
  border-radius: 3px !important;
}

@media (max-width: 767px) {
  .hnyj-hero__content {
    padding-top: 5rem !important;
  }

  .hnyj-header__bar {
    padding-top: 0.55rem;
  }
}
