/* ============================================
   CINEFLIX - Dark Cinematic Video Platform
   A distinctive, production-grade UI redesign
   ============================================ */

/* === Reset & Base === */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }
body { line-height: 1; }
ol, ul { list-style: none; }
table { border-collapse: collapse; border-spacing: 0; }
* { box-sizing: border-box; }
*:before, *:after { box-sizing: border-box; }
html { font-size: 10px; -webkit-tap-highlight-color: rgba(0,0,0,0); -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img { border: 0; vertical-align: middle; max-width: 100%; }

/* === Design Tokens === */
:root {
  /* Deep cinematic palette */
  --cf-bg: #0a0a0f;
  --cf-bg-elevated: #12121a;
  --cf-bg-card: #161620;
  --cf-bg-glass: rgba(22, 22, 32, 0.75);
  --cf-surface: #1e1e2d;
  --cf-surface-hover: #252536;

  /* Accent - electric amber */
  --cf-accent: #ff9f43;
  --cf-accent-soft: rgba(255, 159, 67, 0.15);
  --cf-accent-glow: rgba(255, 159, 67, 0.4);
  --cf-accent-hover: #ffb366;

  /* Text */
  --cf-text: #e8e8f0;
  --cf-text-secondary: #9ca3af;
  --cf-text-muted: #6b7280;
  --cf-text-inverse: #0a0a0f;

  /* Borders & Effects */
  --cf-border: rgba(255,255,255,0.06);
  --cf-border-hover: rgba(255,255,255,0.12);
  --cf-shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --cf-shadow: 0 4px 20px rgba(0,0,0,0.4);
  --cf-shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --cf-glow: 0 0 20px var(--cf-accent-glow);

  /* Geometry */
  --cf-radius: 12px;
  --cf-radius-sm: 8px;
  --cf-radius-lg: 16px;
  --cf-nav-height: 64px;
  --cf-container: 1280px;

  /* Typography */
  --cf-font-display: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --cf-font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* === Body === */
body {
  font-family: var(--cf-font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--cf-text);
  background: var(--cf-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--cf-text); text-decoration: none; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); }
a:hover { color: var(--cf-accent); }

input, button, select, textarea { font-family: inherit; font-size: inherit; line-height: inherit; }

/* === Grid === */
.container { width: 100%; max-width: var(--cf-container); margin: 0 auto; padding: 0 24px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -8px; }
.row > [class*="col-"] { padding: 0 8px; }
.col-md-12 { flex: 0 0 100%; max-width: 100%; }
.col-md-9  { flex: 0 0 75%; max-width: 75%; }
.col-md-8  { flex: 0 0 66.666%; max-width: 66.666%; }
.col-md-6  { flex: 0 0 50%; max-width: 50%; }
.col-md-4  { flex: 0 0 33.333%; max-width: 33.333%; }
.col-md-3  { flex: 0 0 25%; max-width: 25%; }
.col-xs-12 { flex: 0 0 100%; max-width: 100%; }
.col-xs-6  { flex: 0 0 50%; max-width: 50%; }

@media (max-width: 768px) {
  .col-md-9, .col-md-8, .col-md-6, .col-md-4, .col-md-3 { flex: 0 0 100%; max-width: 100%; }
  .container { padding: 0 16px; }
}

/* ============================================
   Header - Glassmorphism Navigation
   ============================================ */
.th_header {
  height: var(--cf-nav-height);
  background: linear-gradient(180deg, rgba(10,10,15,0.95) 0%, rgba(10,10,15,0.8) 100%);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--cf-border);
  width: 100%;
  position: fixed;
  z-index: 1000;
  top: 0; left: 0;
}
.th_header .container {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 0;
}

/* Logo */
.wap_headerlogo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 32px;
}
.wap_headerlogo a { display: flex; align-items: center; }
.wap_headerlogo img { height: 32px; width: auto; display: block; filter: brightness(1.1); }
.wap_headerclick { display: none; cursor: pointer; color: var(--cf-text); font-size: 20px; padding: 4px; }

/* Nav Links */
.wap_headernav { flex: 1; min-width: 0; }
.th_nav { display: flex; align-items: center; gap: 0; }
.th_nav li { position: relative; }
.th_nav li a {
  line-height: var(--cf-nav-height);
  height: var(--cf-nav-height);
  padding: 0 18px;
  font-size: 14px;
  color: var(--cf-text-secondary);
  display: inline-block;
  transition: all 0.25s;
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.th_nav li a:hover, .th_nav li.act a { color: var(--cf-accent); }
.th_nav li.act a { font-weight: 600; }
.th_nav li a i { margin-left: 4px; font-size: 10px; opacity: 0.6; }

/* Dropdown */
.th_nav li ul {
  background: var(--cf-bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: none;
  position: absolute;
  top: calc(var(--cf-nav-height) - 4px); left: 0;
  min-width: 160px;
  padding: 8px 0;
  border-radius: var(--cf-radius-sm);
  border: 1px solid var(--cf-border);
  box-shadow: var(--cf-shadow-lg);
  z-index: 1001;
}
.th_nav li:hover > ul { display: block; animation: fadeInDown 0.2s ease-out; }
.th_nav li ul li a {
  line-height: 40px; height: 40px;
  padding: 0 18px; font-size: 13px;
  color: var(--cf-text-secondary); display: block; width: 100%;
}
.th_nav li ul li a:hover { background: var(--cf-accent-soft); color: var(--cf-accent); }

/* Search */
.wap_headersearch { flex-shrink: 0; }
.searchpanel form { display: flex; align-items: center; }
.searchpanel input[name='keyword'] {
  width: 240px; height: 36px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--cf-border);
  border-radius: 18px 0 0 18px;
  padding: 0 16px; font-size: 13px;
  color: var(--cf-text); border-right: none; outline: none;
  transition: all 0.25s;
}
.searchpanel input[name='keyword']::placeholder { color: var(--cf-text-muted); }
.searchpanel input[name='keyword']:focus { background: rgba(255,255,255,0.08); border-color: var(--cf-accent); }
.searchpanel button[type='submit'] {
  height: 36px; padding: 0 16px;
  border: 1px solid var(--cf-border);
  border-left: none; border-radius: 0 18px 18px 0;
  background: rgba(255,255,255,0.05);
  color: var(--cf-text-secondary); font-size: 13px;
  cursor: pointer; transition: all 0.25s;
}
.searchpanel button[type='submit']:hover { background: var(--cf-accent); border-color: var(--cf-accent); color: var(--cf-text-inverse); }

.pheaderpad { height: var(--cf-nav-height); }

@media (max-width: 768px) {
  .wap_headerclick { display: block; }
  .wap_headernav, .wap_headersearch { display: none !important; }
  .searchpanel input[name='keyword'] { width: 160px; }
  .th_nav li a { padding: 0 12px; font-size: 13px; }
}

/* === Skip Link === */
.skip-link { position: absolute; top: -100%; left: 0; background: var(--cf-accent); color: var(--cf-text-inverse); padding: 8px 16px; z-index: 10000; font-size: 14px; font-weight: 600; border-radius: 0 0 4px 0; }
.skip-link:focus { top: 0; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--cf-accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

/* ============================================
   Hero Banner Section
   ============================================ */
.hero-section {
  background: linear-gradient(180deg, var(--cf-bg-elevated) 0%, var(--cf-bg) 100%);
  padding: 24px 0 32px;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -50%; left: -20%;
  width: 60%; height: 100%;
  background: radial-gradient(ellipse, rgba(255,159,67,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-banner { position: relative; border-radius: var(--cf-radius); overflow: hidden; box-shadow: var(--cf-shadow-lg); }
.thbanner { height: 400px; }
.thbanner-img-height { width: 100%; height: 400px; object-fit: cover; display: block; }
.thbn-title {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 80px 28px 24px;
  background: linear-gradient(transparent, rgba(10,10,15,0.95));
}
.thbn-title span { font-size: 22px; font-weight: 700; color: #fff; display: block; text-shadow: 0 2px 8px rgba(0,0,0,0.6); letter-spacing: 0.02em; }
.thbn-subtitle { font-size: 14px; color: rgba(255,255,255,0.7); margin-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Swiper Controls */
.swiper-button-next, .swiper-button-prev {
  color: #fff !important; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0,0,0,0.3); backdrop-filter: blur(8px); transition: all 0.25s;
  border: 1px solid rgba(255,255,255,0.1);
}
.swiper-button-next:hover, .swiper-button-prev:hover { background: var(--cf-accent); border-color: var(--cf-accent); transform: scale(1.1); }
.swiper-button-next::after, .swiper-button-prev::after { font-size: 16px !important; font-weight: 700; }
.swiper-pagination-bullet { background: rgba(255,255,255,0.3) !important; opacity: 1 !important; width: 8px; height: 8px; transition: all 0.3s; }
.swiper-pagination-bullet-active { background: var(--cf-accent) !important; width: 24px; border-radius: 4px; }

@media (max-width: 768px) {
  .thbanner { height: 200px; }
  .thbanner-img-height { height: 200px; }
  .thbn-title { padding: 40px 16px 16px; }
  .thbn-title span { font-size: 16px; }
}

/* ============================================
   Hot Ranking Sidebar
   ============================================ */
.hot-section {
  background: var(--cf-bg-card);
  border-radius: var(--cf-radius);
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--cf-border);
  box-shadow: var(--cf-shadow);
}
.hot-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--cf-border);
}
.hot-header i { color: var(--cf-accent); font-size: 18px; }
.hot-header span { font-size: 16px; font-weight: 700; color: var(--cf-text); }
.hot-more { margin-left: auto; font-size: 12px; color: var(--cf-text-muted); transition: color 0.2s; }
.hot-more:hover { color: var(--cf-accent); }

.hot-list { flex: 1; overflow-y: auto; }
.hot-list dl {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--cf-border);
  transition: all 0.2s;
}
.hot-list dl:hover { background: var(--cf-accent-soft); margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: var(--cf-radius-sm); }
.hot-list dl:last-child { border-bottom: none; }
.hot-rank {
  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--cf-text-muted); flex-shrink: 0;
  border-radius: 4px;
}
.hot-rank.top3 { color: #fff; background: linear-gradient(135deg, var(--cf-accent), #ff6b35); box-shadow: 0 2px 8px rgba(255,159,67,0.3); }
.hot-list dt { flex: 1; min-width: 0; }
.hot-list dt a {
  font-size: 13px; color: var(--cf-text-secondary); font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block;
}
.hot-list dt a:hover { color: var(--cf-accent); }
.hot-heat { font-size: 11px; color: var(--cf-text-muted); white-space: nowrap; flex-shrink: 0; }
.hot-heat i { margin-right: 3px; font-size: 10px; color: var(--cf-accent); }

/* ============================================
   Category Tags Bar
   ============================================ */
.category-bar {
  background: var(--cf-bg-card);
  padding: 14px 0;
  border-bottom: 1px solid var(--cf-border);
  position: sticky;
  top: var(--cf-nav-height);
  z-index: 100;
  backdrop-filter: blur(12px);
}
.category-scroll {
  display: flex; gap: 10px; overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none;
}
.category-scroll::-webkit-scrollbar { display: none; }
.category-tag {
  display: inline-flex; align-items: center;
  padding: 8px 20px; background: var(--cf-surface);
  border-radius: 20px; font-size: 13px; color: var(--cf-text-secondary);
  font-weight: 500; white-space: nowrap; transition: all 0.25s;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
}
.category-tag:hover {
  background: var(--cf-surface-hover);
  color: var(--cf-text);
  border-color: var(--cf-border-hover);
  transform: translateY(-1px);
}
.category-tag.active {
  background: linear-gradient(135deg, var(--cf-accent), #ff6b35);
  color: var(--cf-text-inverse);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(255,159,67,0.3);
}

/* ============================================
   Section Headers
   ============================================ */
.main-content { padding: 16px 0 48px; }
.video-section { margin-bottom: 32px; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; min-height: 36px;
}
.section-title {
  font-size: 22px; font-weight: 700; color: var(--cf-text);
  position: relative; padding-left: 16px; line-height: 36px;
  letter-spacing: 0.02em;
}
.section-title::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 4px; background: linear-gradient(180deg, var(--cf-accent), #ff6b35); border-radius: 2px;
}
.section-tabs {
  display: flex; gap: 4px; margin: 0 auto 0 20px; flex-wrap: wrap;
}
.tab-item {
  padding: 5px 14px; border-radius: 14px; font-size: 12px;
  color: var(--cf-text-muted); background: transparent;
  transition: all 0.25s; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
}
.tab-item:hover { color: var(--cf-accent); background: var(--cf-accent-soft); }
.tab-item.active { color: var(--cf-accent); background: var(--cf-accent-soft); border-color: rgba(255,159,67,0.3); }
.section-more {
  font-size: 13px; color: var(--cf-text-muted); transition: all 0.25s;
  display: flex; align-items: center; gap: 4px;
}
.section-more:hover { color: var(--cf-accent); }
.section-more i { font-size: 11px; }

@media (max-width: 768px) {
  .section-tabs { display: none; }
  .section-title { font-size: 18px; }
}

/* ============================================
   Video Grid & Cards - Cinematic Style
   ============================================ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
@media (max-width: 1200px) { .video-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 992px) { .video-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (max-width: 768px) { .video-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.video-card { position: relative; }
.video-item { display: block; text-decoration: none; }

/* Thumbnail */
.video-thumb {
  position: relative; overflow: hidden;
  border-radius: var(--cf-radius-sm);
  background: var(--cf-surface);
  aspect-ratio: 16 / 9;
  box-shadow: var(--cf-shadow-sm);
}
.video-thumb-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); display: block;
}
.video-item:hover .video-thumb-img { transform: scale(1.08); }

/* Badges */
.video-badge {
  position: absolute; top: 0; left: 0;
  padding: 3px 8px; border-radius: 0 0 var(--cf-radius-sm) 0;
  font-size: 11px; font-weight: 700; color: #fff; z-index: 2; line-height: 1.5;
  letter-spacing: 0.02em;
}
.badge-exclusive { background: linear-gradient(135deg, var(--cf-accent), #ff6b35); }
.badge-vip { background: linear-gradient(135deg, #ffd700, #ff9500); color: #2a1800; }
.badge-episode {
  position: absolute; top: auto; left: auto; bottom: 0; right: 0;
  padding: 3px 8px; border-radius: var(--cf-radius-sm) 0 0 0;
  background: rgba(10,10,15,0.85); font-size: 11px; font-weight: 600;
  backdrop-filter: blur(4px);
}
.video-duration {
  position: absolute; bottom: 6px; right: 6px;
  background: rgba(10,10,15,0.85); color: #fff;
  font-size: 11px; padding: 2px 6px; border-radius: 4px; line-height: 1.4;
  font-weight: 500; backdrop-filter: blur(4px);
}

/* Play Overlay */
.video-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(10,10,15,0.5); display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}
.video-overlay i { font-size: 44px; color: var(--cf-accent); filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4)); }
.video-item:hover .video-overlay { opacity: 1; }

/* Video Info */
.video-info { padding: 10px 4px 0; }
.video-title {
  font-size: 14px; font-weight: 600; color: var(--cf-text);
  margin: 0; line-height: 1.5;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  min-height: 42px; transition: color 0.25s;
}
.video-item:hover .video-title { color: var(--cf-accent); }
.video-subtitle {
  font-size: 12px; color: var(--cf-text-muted); margin-top: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.4;
}
.video-meta {
  font-size: 12px; color: var(--cf-text-muted); margin-top: 6px;
  display: flex; gap: 12px; align-items: center; line-height: 1.4;
}
.video-meta i { margin-right: 3px; font-size: 10px; }
.meta-badge {
  display: inline-flex; align-items: center;
  padding: 1px 6px; border-radius: 3px; font-size: 10px; font-weight: 600;
  background: var(--cf-accent-soft); color: var(--cf-accent); border: 1px solid rgba(255,159,67,0.2);
}
.meta-score { color: var(--cf-accent); font-weight: 700; }
.meta-score i { color: var(--cf-accent); }

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb-nav { padding: 12px 0; font-size: 13px; color: var(--cf-text-muted); }
.breadcrumb-nav a { color: var(--cf-text-secondary); }
.breadcrumb-nav a:hover { color: var(--cf-accent); }
.breadcrumb-nav .current { color: var(--cf-text-muted); }

/* ============================================
   Page Header Bar
   ============================================ */
.page-header-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; background: var(--cf-bg-card);
  border-radius: var(--cf-radius); margin-bottom: 20px;
  flex-wrap: wrap; gap: 12px;
  border: 1px solid var(--cf-border);
  box-shadow: var(--cf-shadow);
}
.page-title-main { font-size: 20px; font-weight: 700; color: var(--cf-text); margin: 0; }
.page-sort { display: flex; gap: 6px; }
.page-sort a {
  padding: 6px 16px; border-radius: var(--cf-radius-sm);
  font-size: 13px; font-weight: 500; color: var(--cf-text-secondary);
  background: var(--cf-surface); transition: all 0.25s; text-decoration: none;
  border: 1px solid transparent;
}
.page-sort a:hover { color: var(--cf-text); background: var(--cf-surface-hover); }
.page-sort a.active { color: var(--cf-text-inverse); background: linear-gradient(135deg, var(--cf-accent), #ff6b35); box-shadow: 0 2px 8px rgba(255,159,67,0.3); }
.search-result-count { font-size: 13px; color: var(--cf-text-muted); margin: 0; }

/* Subcategory filter bar */
.subcate-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 12px 16px; background: var(--cf-bg-card);
  border-radius: var(--cf-radius); margin-bottom: 20px;
  border: 1px solid var(--cf-border); box-shadow: var(--cf-shadow-sm);
}
.subcate-label {
  font-size: 13px; font-weight: 600; color: var(--cf-text-secondary);
  margin-right: 4px; white-space: nowrap;
}
.subcate-item {
  padding: 5px 14px; border-radius: var(--cf-radius-sm);
  font-size: 13px; color: var(--cf-text-secondary);
  background: var(--cf-surface); transition: all 0.25s;
  text-decoration: none; border: 1px solid transparent;
  white-space: nowrap;
}
.subcate-item:hover { color: var(--cf-text); background: var(--cf-surface-hover); border-color: var(--cf-border-hover); }
.subcate-item.active { color: var(--cf-text-inverse); background: linear-gradient(135deg, var(--cf-accent), #ff6b35); box-shadow: 0 2px 8px rgba(255,159,67,0.3); border-color: transparent; }

/* ============================================
   Video Player Page
   ============================================ */
.player-section {
  background: linear-gradient(180deg, var(--cf-bg-elevated) 0%, var(--cf-bg) 100%);
  padding: 20px 0 28px;
  position: relative;
}
.player-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 300px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,159,67,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.video-show-title { font-size: 22px; font-weight: 700; color: var(--cf-text); margin: 0 0 14px; line-height: 1.3; }
.video-player-wrapper {
  background: #000; border-radius: var(--cf-radius); overflow: hidden;
  margin-bottom: 14px; box-shadow: var(--cf-shadow-lg);
  border: 1px solid var(--cf-border);
}
.video-player { width: 100%; max-height: 540px; display: block; background: #000; }
.video-placeholder { position: relative; width: 100%; aspect-ratio: 16/9; min-height: 400px; }
.video-placeholder img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-placeholder-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(10,10,15,0.6); display: flex; flex-direction: column;
  align-items: center; justify-content: center; color: #fff;
}
.video-placeholder-overlay i { font-size: 64px; margin-bottom: 12px; color: var(--cf-accent); filter: drop-shadow(0 0 16px var(--cf-accent-glow)); }
.video-placeholder-overlay p { font-size: 14px; color: var(--cf-text-secondary); }

.video-detail-meta {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid var(--cf-border);
  margin-bottom: 14px; flex-wrap: wrap; gap: 12px;
}
.video-stats { display: flex; gap: 20px; font-size: 13px; color: var(--cf-text-muted); }
.video-stats i { margin-right: 4px; color: var(--cf-accent); }
.video-actions { display: flex; gap: 8px; }
.btn-action {
  padding: 8px 18px; border: 1px solid var(--cf-border);
  background: var(--cf-surface); border-radius: 20px; font-size: 12px;
  color: var(--cf-text-secondary); font-weight: 500; cursor: pointer;
  transition: all 0.25s;
}
.btn-action:hover { color: var(--cf-accent); border-color: var(--cf-accent); background: var(--cf-accent-soft); transform: translateY(-1px); }
.btn-action i { margin-right: 4px; }

.video-desc {
  padding: 18px; background: var(--cf-bg-card);
  border-radius: var(--cf-radius); margin-bottom: 14px;
  border: 1px solid var(--cf-border);
}
.video-desc h2 { font-size: 15px; font-weight: 700; margin: 0 0 10px; color: var(--cf-text); }
.video-desc p { font-size: 13px; color: var(--cf-text-secondary); line-height: 1.8; margin: 0; }
.video-content { font-size: 13px; color: var(--cf-text-secondary); line-height: 1.9; }

/* ============================================
   Related Videos Sidebar
   ============================================ */
.related-section {
  background: var(--cf-bg-card);
  border-radius: var(--cf-radius);
  padding: 18px;
  border: 1px solid var(--cf-border);
  box-shadow: var(--cf-shadow);
}
.related-section .section-header { margin-bottom: 12px; }
.related-section .section-title { font-size: 16px; }
.related-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--cf-border);
  text-decoration: none; transition: all 0.25s;
}
.related-item:last-child { border-bottom: none; }
.related-item:hover { transform: translateX(4px); }
.related-item img {
  width: 110px; height: 62px; object-fit: cover;
  border-radius: var(--cf-radius-sm); flex-shrink: 0; background: var(--cf-surface); display: block;
}
.related-info { flex: 1; min-width: 0; }
.related-info span {
  display: block; font-size: 13px; color: var(--cf-text); font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  line-height: 1.4; margin-bottom: 4px;
}
.related-item:hover .related-info span { color: var(--cf-accent); }
.related-info small { font-size: 11px; color: var(--cf-text-muted); }
.related-info small i { margin-right: 3px; color: var(--cf-accent); }

/* ============================================
   Comments
   ============================================ */
.comment-section {
  margin-top: 24px; background: var(--cf-bg-card);
  border-radius: var(--cf-radius); padding: 24px;
  border: 1px solid var(--cf-border);
  box-shadow: var(--cf-shadow);
}
.comment-section h2 {
  font-size: 16px; font-weight: 700; margin: 0 0 18px;
  padding-bottom: 12px; border-bottom: 1px solid var(--cf-border); color: var(--cf-text);
}
.comment-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--cf-border); transition: all 0.2s; }
.comment-item:hover { background: var(--cf-surface); margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: var(--cf-radius-sm); }
.comment-item:last-child { border-bottom: none; }
.comment-avatar { flex-shrink: 0; }
.comment-avatar img { width: 40px; height: 40px; border-radius: 50%; background: var(--cf-surface); display: block; border: 2px solid var(--cf-border); }
.comment-body { flex: 1; min-width: 0; }
.comment-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.comment-author { font-size: 13px; font-weight: 700; color: var(--cf-accent); }
.comment-time { font-size: 12px; color: var(--cf-text-muted); }
.comment-text { font-size: 13px; color: var(--cf-text-secondary); line-height: 1.7; }
.comment-empty { text-align: center; padding: 40px 0; color: var(--cf-text-muted); }
.comment-empty i { font-size: 48px; margin-bottom: 12px; display: block; color: var(--cf-surface); }

.comment-form { margin-top: 18px; padding: 18px; background: var(--cf-surface); border-radius: var(--cf-radius); border: 1px solid var(--cf-border); }
.comment-form h3 { font-size: 15px; font-weight: 700; margin: 0 0 14px; color: var(--cf-text); }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--cf-text-secondary); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 10px 14px; background: var(--cf-bg-card);
  border: 1px solid var(--cf-border); border-radius: var(--cf-radius-sm);
  font-size: 13px; color: var(--cf-text); transition: all 0.25s; box-sizing: border-box;
}
.form-control:focus { border-color: var(--cf-accent); outline: none; box-shadow: 0 0 0 3px var(--cf-accent-soft); }
.form-control::placeholder { color: var(--cf-text-muted); }
textarea.form-control { resize: vertical; min-height: 80px; }
.btn-submit {
  padding: 10px 28px; background: linear-gradient(135deg, var(--cf-accent), #ff6b35); color: var(--cf-text-inverse);
  border: none; border-radius: var(--cf-radius-sm); font-size: 13px;
  font-weight: 700; cursor: pointer; transition: all 0.25s;
  box-shadow: 0 4px 12px rgba(255,159,67,0.3);
}
.btn-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(255,159,67,0.4); }

/* ============================================
   Search Empty / Error States
   ============================================ */
.search-empty, .error-page {
  text-align: center; padding: 80px 24px; background: var(--cf-bg-card);
  border-radius: var(--cf-radius); border: 1px solid var(--cf-border);
  box-shadow: var(--cf-shadow);
}
.search-empty i, .error-icon i { font-size: 64px; margin-bottom: 16px; display: block; color: var(--cf-surface); }
.search-empty h2, .error-code { font-size: 48px; font-weight: 800; color: var(--cf-text); margin: 0; }
.search-empty p { font-size: 14px; color: var(--cf-text-muted); margin: 10px 0 0; }
.error-title { font-size: 20px; color: var(--cf-text-secondary); margin: 8px 0; font-weight: 700; }
.error-message { font-size: 13px; color: var(--cf-text-muted); margin: 0 0 28px; }
.error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-home, .btn-search {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 28px; border-radius: var(--cf-radius-sm);
  font-size: 13px; font-weight: 700; text-decoration: none; transition: all 0.25s;
}
.btn-home { background: linear-gradient(135deg, var(--cf-accent), #ff6b35); color: var(--cf-text-inverse); box-shadow: 0 4px 12px rgba(255,159,67,0.3); }
.btn-home:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(255,159,67,0.4); color: var(--cf-text-inverse); }
.btn-search { background: var(--cf-surface); color: var(--cf-text-secondary); border: 1px solid var(--cf-border); }
.btn-search:hover { color: var(--cf-accent); border-color: var(--cf-accent); }

/* ============================================
   Pagination
   ============================================ */
.pagebar {
  margin-top: 32px; display: flex; justify-content: center;
  align-items: center; gap: 6px; flex-wrap: wrap;
}
.pagebar a, .pagebar span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  background: var(--cf-bg-card); border: 1px solid var(--cf-border);
  border-radius: var(--cf-radius-sm); font-size: 13px;
  color: var(--cf-text-secondary); font-weight: 500; transition: all 0.25s;
}
.pagebar a:hover { border-color: var(--cf-accent); color: var(--cf-accent); background: var(--cf-accent-soft); }
.pagebar .current, .pagebar .active { background: linear-gradient(135deg, var(--cf-accent), #ff6b35); border-color: transparent; color: var(--cf-text-inverse); box-shadow: 0 2px 8px rgba(255,159,67,0.3); }

/* ============================================
   Links Section
   ============================================ */
.links-section .th-8 { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.links-section .th-8 li { margin: 0; }
.links-section .th-8 a {
  display: inline-block; padding: 6px 16px; background: var(--cf-surface);
  border: 1px solid var(--cf-border); border-radius: var(--cf-radius-sm);
  font-size: 12px; color: var(--cf-text-secondary); transition: all 0.25s; text-decoration: none;
}
.links-section .th-8 a:hover { border-color: var(--cf-accent); color: var(--cf-accent); background: var(--cf-accent-soft); }

/* ============================================
   Footer - Dark Cinematic
   ============================================ */
.footer1 { background: var(--cf-bg-elevated); padding: 48px 0 32px; border-top: 1px solid var(--cf-border); }
.footer1 .container {
  width: 100%;
  max-width: var(--cf-container);
  margin: 0 auto;
  padding: 0 24px;
}
.footer-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  justify-content: space-between;
  gap: 48px;
  width: 100%;
}
.footer-col {
  flex: 1 1 0 !important;
  min-width: 0;
  max-width: 33.333%;
  box-sizing: border-box;
}

.footcon1, .footcon2 { padding: 0; }
.footcon1 dt, .footcon2 dt {
  font-size: 15px; font-weight: 700; color: var(--cf-text);
  margin-bottom: 16px; letter-spacing: 0.02em;
  position: relative; padding-left: 12px;
}
.footcon1 dt::before, .footcon2 dt::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 3px; background: linear-gradient(180deg, var(--cf-accent), #ff6b35); border-radius: 2px;
}
.footcon1 dd { font-size: 13px; color: var(--cf-text-muted); line-height: 1.8; }
.footcon2 dd { margin-bottom: 10px; }
.footcon2 dd a {
  font-size: 13px; color: var(--cf-text-secondary); transition: all 0.25s;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.footcon2 dd a:hover { color: var(--cf-accent); transform: translateX(4px); }
.footcon2 dd a::before {
  content: ''; display: inline-block; width: 4px; height: 4px;
  background: var(--cf-text-muted); border-radius: 50%; transition: all 0.25s;
}
.footcon2 dd a:hover::before { background: var(--cf-accent); }

.footlianx {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--cf-text-secondary); margin-bottom: 10px;
}
.footlianx i { color: var(--cf-accent); font-size: 14px; width: 16px; text-align: center; }
.footlianx span { color: var(--cf-text); font-weight: 500; }

.footer2 { background: var(--cf-bg); padding: 20px 0; text-align: center; border-top: 1px solid var(--cf-border); }
.footer2 p { font-size: 12px; color: var(--cf-text-muted); margin: 4px 0; }
.footer2 a { color: var(--cf-text-secondary); transition: color 0.25s; text-decoration: none; }
.footer2 a:hover { color: var(--cf-accent); }

/* ============================================
   Back to Top
   ============================================ */
.thgotop { position: fixed; right: 20px; bottom: 20px; z-index: 999; }
.thgotop ul { list-style: none; padding: 0; margin: 0; }
.thgotop li {
  width: 42px; height: 42px; background: var(--cf-bg-card);
  border: 1px solid var(--cf-border); border-radius: 8px;
  margin-bottom: 8px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--cf-text-secondary); font-size: 15px;
  transition: all 0.25s; position: relative; box-shadow: var(--cf-shadow);
  backdrop-filter: blur(8px);
}
.thgotop li:hover { background: var(--cf-accent); border-color: var(--cf-accent); color: var(--cf-text-inverse); transform: translateY(-2px); box-shadow: var(--cf-glow); }
.thgotop li span {
  position: absolute; right: 52px; white-space: nowrap; font-size: 12px;
  color: var(--cf-text-secondary); background: var(--cf-bg-card); padding: 4px 10px;
  border-radius: 4px; border: 1px solid var(--cf-border);
  box-shadow: var(--cf-shadow);
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.thgotop li:hover span { opacity: 1; }
.yewan, .baitian { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; }
.yewan i { font-size: 15px; }
.yewan span, .baitian span { font-size: 9px; margin-top: 1px; display: none; }
.baitian { display: none; }

/* ============================================
   Utilities
   ============================================ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.th-img { display: block; max-width: 100%; }

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ============================================
   Mobile Responsive
   ============================================ */
@media (max-width: 768px) {
  .video-player { max-height: 220px; }
  .video-placeholder { min-height: 200px; }
  .page-title-main { font-size: 17px; }
  .video-show-title { font-size: 18px; }
  .video-detail-meta { flex-direction: column; align-items: flex-start; }
  .video-actions { width: 100%; }
  .btn-action { flex: 1; text-align: center; justify-content: center; }
  .related-item img { width: 80px; height: 45px; }
  .footer-row { flex-wrap: wrap !important; gap: 24px; }
  .footer-col { flex: 0 0 100% !important; max-width: 100% !important; margin-bottom: 0; }
  .thgotop { right: 12px; bottom: 12px; }
  .thgotop li { width: 36px; height: 36px; }
  .hot-section { margin-top: 16px; }
  .category-bar { top: var(--cf-nav-height); }
  .hero-section { padding: 12px 0 18px; }
}

@media (max-width: 480px) {
  .video-meta { gap: 8px; }
  .searchpanel input[name='keyword'] { width: 140px; }
  .page-header-bar { flex-direction: column; align-items: flex-start; }
  .video-title { font-size: 13px; min-height: 39px; }
}
