/*
Theme Name: MyTheme
Theme URI: https://example.com/mytheme
Author: Developer
Author URI: https://example.com
Description: 暗黑视频站风格的 WordPress 主题，严格对齐 moban 模板
Version: 2.0.0
Requires at least: 7.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mytheme
Tags: one-column, custom-colors, custom-menu, featured-images, translation-ready, dark-theme

This theme, like WordPress, is licensed under the GPL.
*/

/* === Reset === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === CSS Variables (moban 一致) === */
:root {
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --accent: #a855f7;
  --bg-main: #0c0c14;
  --bg-secondary: #13131d;
  --bg-card: #1a1a28;
  --bg-hover: #222234;
  --text-white: #ffffff;
  --text-light: #e2e8f0;
  --text-gray: #94a3b8;
  --text-muted: #64748b;
  --border: #2a2a3c;
  --gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', sans-serif;
  background: var(--bg-main);
  color: var(--text-white);
  line-height: 1.5;
  min-height: 100vh;
}

a {
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--text-white);
}

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

ul, ol {
  list-style: none;
}

/* === Site Container === */
.site-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* === Header (moban header-inner 一致) === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(12, 12, 20, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  gap: 48px;
}

/* === Logo (moban logo 一致) === */
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.5px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.logo-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* === Header Nav (moban header-nav 一致) === */
.header-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}

.header-nav-item {
  padding: 10px 20px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-gray);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.header-nav-item.active {
  background: var(--gradient);
  border-color: transparent;
  color: var(--text-white);
}

/* === Menu Toggle (Mobile) === */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-gray);
}

/* === Mobile Nav (moban 一致) === */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(12, 12, 20, 0.95);
  backdrop-filter: blur(20px);
  padding: 20px;
  border-bottom: 1px solid var(--border);
  z-index: 99;
}

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

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

.mobile-nav-item {
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-gray);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  background: var(--gradient);
  border-color: transparent;
  color: var(--text-white);
}

/* === Main Content (moban main 一致) === */
.main-content {
  padding: 120px 40px 60px;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

/* === Hero Banner (moban 一致) === */
.hero-banner {
  padding: 0 0 0 0;
  margin-bottom: 60px;
}

.hero-card {
  display: grid;
  grid-template-columns: 55% 45%;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.3s ease;
}

.hero-card:hover {
  border-color: var(--primary);
}

.hero-card:hover .hero-image img {
  transform: scale(1.03);
}

.hero-card:hover .hero-play {
  opacity: 1;
}

.hero-image {
  position: relative;
  height: 420px;
  overflow: hidden;
}

.hero-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  background: var(--gradient);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-white);
  z-index: 2;
}

.hero-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.play-circle {
  width: 80px;
  height: 80px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.5);
}

.play-circle svg {
  width: 32px;
  height: 32px;
  fill: var(--text-white);
  margin-left: 4px;
}

.hero-content {
  padding: 48px;
  display: flex;
  flex-direction: column;
}

.hero-category {
  color: var(--primary-light);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-title a {
  color: var(--text-white);
}

.hero-title a:hover {
  color: var(--primary-light);
}

.hero-desc {
  color: var(--text-gray);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 32px;
  flex: 1;
}

.hero-meta {
  display: flex;
  gap: 32px;
  color: var(--text-muted);
  font-size: 14px;
  flex-wrap: wrap;
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-meta svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* === Rankings (moban 一致) === */
.rankings-section {
  margin-bottom: 60px;
}

.rankings-header {
  text-align: center;
  margin-bottom: 40px;
}

.rankings-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.rankings-subtitle {
  color: var(--text-gray);
  font-size: 16px;
}

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

.ranking-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  transition: all 0.3s ease;
}

.ranking-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.1);
}

.ranking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.ranking-label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ranking-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ranking-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--text-white);
}

.ranking-name {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-badge {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-light);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.ranking-list {
  list-style: none;
}

.ranking-item {
  display: flex;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(42, 42, 60, 0.5);
  transition: all 0.2s ease;
}

.ranking-item:last-child {
  border-bottom: none;
}

.ranking-item:hover {
  padding-left: 8px;
}

.ranking-item:hover .ranking-item-title {
  color: var(--primary-light);
}

.ranking-num {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  margin-right: 16px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: var(--bg-card);
  color: var(--text-muted);
}

.ranking-item:nth-child(1) .ranking-num {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: var(--text-white);
}

.ranking-item:nth-child(2) .ranking-num {
  background: linear-gradient(135deg, #94a3b8, #cbd5e1);
  color: var(--text-white);
}

.ranking-item:nth-child(3) .ranking-num {
  background: linear-gradient(135deg, #b45309, #d97706);
  color: var(--text-white);
}

.ranking-item-content {
  flex: 1;
  min-width: 0;
  text-decoration: none;
}

.ranking-item-title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
  transition: color 0.2s ease;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-item-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 13px;
}

.ranking-item-cat {
  color: var(--text-gray);
}

.ranking-hot {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #f59e0b;
  font-size: 13px;
  font-weight: 500;
}

.ranking-hot svg {
  width: 14px;
  height: 14px;
  fill: #f59e0b;
}

/* === Section (moban 一致) === */
.section {
  margin-bottom: 60px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
}

.section-more {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-light);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.section-more:hover {
  color: var(--text-white);
}

.section-more svg {
  width: 16px;
  height: 16px;
}

/* === Video Grid (moban 4列) === */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

/* === Video List (moban list.html 一致) === */
.video-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.video-list .video-card {
  height: 100%;
}

.video-list .card-thumb {
  height: 180px;
}

.video-list .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === Video Card (moban 一致) === */
.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.15);
}

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

.video-card:hover .card-overlay {
  opacity: 1;
}

.video-card:hover .card-title {
  color: var(--primary-light);
}

.card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.card-thumb a {
  display: block;
  width: 100%;
  height: 100%;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card-duration {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.85);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-white);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-play {
  width: 56px;
  height: 56px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.card-play svg {
  width: 24px;
  height: 24px;
  fill: var(--text-white);
  margin-left: 3px;
}

.card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-tag {
  display: inline-block;
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-light);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 14px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-white);
  transition: color 0.2s ease;
  flex: 1;
}

.card-title a {
  color: inherit;
}

.card-title a:hover {
  color: var(--primary-light);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #f59e0b;
  font-size: 14px;
  font-weight: 600;
}

.card-rating svg {
  width: 16px;
  height: 16px;
  fill: #f59e0b;
}

.card-meta {
  color: var(--text-muted);
  font-size: 13px;
}

.card-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 28px;
  height: 28px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-white);
  flex-shrink: 0;
}

.author-name {
  color: var(--text-gray);
  font-size: 13px;
}

.card-date {
  color: var(--text-muted);
  font-size: 13px;
}

/* === Player Section (single.php / video.html 一致) === */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
}

.player-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.player-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}

.player-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.play-btn-large {
  position: absolute;
  width: 80px;
  height: 80px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.play-btn-large:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 12px 48px rgba(99, 102, 241, 0.6);
}

.play-btn-large svg {
  width: 32px;
  height: 32px;
  fill: var(--text-white);
  margin-left: 4px;
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.control-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.control-btn {
  width: 40px;
  height: 40px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.control-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.control-btn svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-gray);
}

.control-btn:hover svg {
  stroke: var(--text-white);
}

.progress-bar {
  flex: 1;
  height: 4px;
  background: var(--bg-hover);
  border-radius: 2px;
  margin: 0 16px;
}

.progress-fill {
  height: 100%;
  width: 35%;
  background: var(--gradient);
  border-radius: 2px;
}

.control-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.time-display {
  color: var(--text-gray);
  font-size: 13px;
}

/* === Video Info === */
.video-info {
  padding: 24px;
}

.video-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

.video-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-gray);
  font-size: 14px;
}

.meta-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-gray);
}

.video-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.video-tag {
  padding: 8px 16px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-light);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.video-tag:hover {
  background: var(--primary);
  color: var(--text-white);
}

.video-desc {
  color: var(--text-gray);
  font-size: 15px;
  line-height: 1.7;
}

/* === Related Section === */
.related-section {
  margin-top: 32px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

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

/* === Sidebar (moban 一致) === */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
}

.sidebar-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.sidebar-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--text-white);
}

.sidebar-title {
  font-size: 16px;
  font-weight: 600;
}

.sidebar-list {
  list-style: none;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(42, 42, 60, 0.5);
  transition: all 0.2s ease;
}

.sidebar-item:last-child {
  border-bottom: none;
}

.sidebar-item:hover {
  padding-left: 8px;
}

.sidebar-item:hover .sidebar-item-title {
  color: var(--primary-light);
}

.sidebar-rank {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  flex-shrink: 0;
  background: var(--bg-card);
  color: var(--text-muted);
}

.sidebar-item:nth-child(1) .sidebar-rank {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: var(--text-white);
}

.sidebar-item:nth-child(2) .sidebar-rank {
  background: linear-gradient(135deg, #94a3b8, #cbd5e1);
  color: var(--text-white);
}

.sidebar-item:nth-child(3) .sidebar-rank {
  background: linear-gradient(135deg, #b45309, #d97706);
  color: var(--text-white);
}

.sidebar-item:nth-child(n+4) .sidebar-rank {
  background: var(--bg-card);
  color: var(--text-muted);
}

.sidebar-item-title {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
  color: var(--text-white);
  text-decoration: none;
}

.sidebar-item-title:hover {
  color: var(--primary-light);
}

.sidebar-item-hot {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #f59e0b;
  font-size: 12px;
}

.sidebar-item-hot svg {
  width: 12px;
  height: 12px;
  fill: #f59e0b;
}

/* === Tags Cloud (moban 一致) === */
.tags-cloud {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tags-cloud a {
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-gray);
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tags-cloud a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-white);
}

/* === Breadcrumb === */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-gray);
  text-decoration: none;
}

.breadcrumb .separator {
  color: var(--text-muted);
}

.breadcrumb .current {
  color: var(--text-white);
}

/* === Page Header === */
.page-header {
  margin-bottom: 32px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-desc {
  color: var(--text-gray);
  font-size: 16px;
}

.single-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  line-height: 1.8;
}

.single-content p {
  margin-bottom: 24px;
}

.single-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}


/* === Pagination === */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.pagination a,
.pagination span {
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-gray);
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary-light);
}

.pagination span.current {
  background: var(--gradient);
  border-color: transparent;
  color: var(--text-white);
}

.pagination span.dots {
  background: transparent;
  border-color: transparent;
  cursor: default;
  padding: 0 4px;
  min-width: 20px;
}

.pagination .page-info {
  display: none;
}

/* === Footer (moban copyright 一致) === */
.copyright {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
  font-size: 14px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

/* === 404 === */
.error-page {
  text-align: center;
  padding: 4rem 2rem;
}

.error-code {
  font-size: 8rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 1rem;
}

.error-message {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--text-gray);
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.5rem;
  background: var(--gradient);
  color: var(--text-white);
  border-radius: var(--radius-lg);
  font-weight: 600;
  text-decoration: none;
}

.read-more:hover {
  opacity: 0.85;
  color: var(--text-white);
}

/* === No Results === */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
}

.no-results p {
  color: var(--text-gray);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* === Post Body (single content) === */
.post-body {
  line-height: 1.8;
  color: var(--text-light);
}

.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
  color: var(--text-white);
}

.post-body h2 { font-size: 1.5rem; }
.post-body h3 { font-size: 1.25rem; }

.post-body p {
  margin-bottom: 1.25rem;
}

.post-body ul,
.post-body ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.post-body li {
  margin-bottom: 0.5rem;
}

.post-body blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--primary);
  background: var(--bg-card);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-gray);
}

.post-body pre {
  background: var(--bg-card);
  color: var(--text-light);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-family: "SF Mono", "Fira Code", Consolas, monospace;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
}

.post-body code {
  background: var(--bg-card);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: "SF Mono", "Fira Code", Consolas, monospace;
  font-size: 0.85em;
  border: 1px solid var(--border);
}

.post-body pre code {
  background: none;
  padding: 0;
  border: none;
}

.post-body img {
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
}

.post-body a {
  color: var(--primary-light);
  text-decoration: underline;
}

/* === Screen Reader === */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* === WordPress Alignments === */
.alignleft { float: left; margin: 0.5rem 1.5rem 0.5rem 0; }
.alignright { float: right; margin: 0.5rem 0 0.5rem 1.5rem; }
.aligncenter { clear: both; display: block; margin: 0 auto 1.5rem; }

/* === Responsive: 1200px === */
@media (max-width: 1200px) {
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .video-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rankings-grid { grid-template-columns: 1fr; }
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

/* === Responsive: 900px === */
@media (max-width: 900px) {
  .main-content { padding: 100px 24px 40px; }
  .header-inner { padding: 16px 24px; gap: 24px; }
  .header-nav { display: none; }
  .menu-toggle { display: flex; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-card { grid-template-columns: 1fr; }
  .hero-image { height: 300px; }
  .hero-content { padding: 32px; }
  .hero-title { font-size: 28px; }
  .rankings-section { padding: 40px 20px; }
}

/* === Responsive: 600px === */
@media (max-width: 600px) {
  .header-inner { padding: 16px 20px; gap: 16px; }
  .logo { font-size: 20px; }
  .logo-icon { width: 36px; height: 36px; font-size: 16px; }
  .main-content { padding: 90px 20px 40px; }
  .video-grid { grid-template-columns: 1fr; gap: 16px; }
  .video-list { grid-template-columns: 1fr; gap: 16px; }
  .hero-banner { margin-bottom: 40px; }
  .hero-image { height: 240px; }
  .hero-content { padding: 24px; }
  .hero-title { font-size: 24px; }
  .hero-desc { font-size: 14px; margin-bottom: 24px; }
  .hero-meta { gap: 20px; font-size: 13px; }
  .section-title { font-size: 22px; }
  .rankings-title { font-size: 24px; }
  .mobile-nav-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .related-grid { grid-template-columns: 1fr; }
  .video-title { font-size: 18px; }
  .video-meta { gap: 12px; }
  .page-title { font-size: 24px; }
  .error-code { font-size: 5rem; }
  .player-controls { padding: 12px 16px; flex-wrap: wrap; gap: 12px; }
  .progress-bar { order: 2; flex: 1 1 100%; margin: 8px 0; }
}
