/* 战地影视 - UI Style 7 - 沉浸式流媒体视觉风 */

/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #141414;
  --color-bg-secondary: #1a1a1a;
  --color-text: #ffffff;
  --color-text-secondary: #b3b3b3;
  --color-accent: #e50914;
  --color-accent-hover: #f40612;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --border-radius: 4px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

body.ui-style-7 {
  font-weight: 400;
}

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

a:hover {
  color: var(--color-accent);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

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

/* S5 骨架专用样式 */
body.skeleton-s5 {
  min-height: 100vh;
}

/* 顶部导航 - S5 透明样式 */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-sm) var(--spacing-lg);
  transition: transform 0.25s ease, background-color 0.3s ease;
}

.top-nav--transparent {
  background-color: transparent;
  border-bottom: none;
}

.top-nav--hidden {
  transform: translateY(-100%);
}

.top-nav--visible {
  transform: translateY(0);
  background-color: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(10px);
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  flex-shrink: 0;
}

.top-nav__menu {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  flex-wrap: nowrap;
  list-style: none;
}

.top-nav__menu li a {
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius);
  transition: background-color 0.2s ease;
}

.top-nav__menu li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* S5 Hero 区域 */
.hero.hero--s5 {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero.hero--s5::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.0) 0%,
    rgba(0,0,0,0.4) 60%,
    rgba(0,0,0,0.85) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  padding: var(--spacing-xl) var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.hero-description {
  font-size: 1.2rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-lg);
  text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

.hero-button {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: var(--color-accent);
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.4);
  transition: all 0.2s ease;
}

.hero-button:hover {
  background-color: var(--color-accent-hover);
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(229, 9, 20, 0.6);
}

/* 主内容区域 */
.home-main {
  position: relative;
  z-index: 1;
}

.home-modules {
  padding: var(--spacing-xl) 0;
  background-color: var(--color-bg);
}

/* 首页模块 */
.home-section {
  margin-bottom: var(--spacing-xl);
  padding: 0 var(--spacing-lg);
}

.home-section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.home-section__title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-text);
}

.home-section__more {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease;
}

.home-section__more::after {
  content: "›";
  font-size: 1.5rem;
}

.home-section__more:hover {
  color: var(--color-accent);
}

.home-section__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

/* 视频卡片 */
.video-card {
  background-color: var(--color-bg-secondary);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.video-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}

.video-card__link {
  display: block;
  color: inherit;
}

.video-cover {
  position: relative;
  width: 100%;
  padding-top: 150%;
  overflow: hidden;
  background-color: #222;
}

.video-cover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-info {
  padding: var(--spacing-sm);
}

.video-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-one-line {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-meta {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.video-meta span {
  padding: 0.2rem 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

/* 列表页样式 */
.page-header {
  padding: var(--spacing-xl) var(--spacing-lg);
  background: linear-gradient(180deg, var(--color-bg-secondary) 0%, var(--color-bg) 100%);
  margin-bottom: var(--spacing-lg);
}

.page-title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
}

.page-intro {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  max-width: 900px;
}

.video-list-section {
  padding: 0 var(--spacing-lg) var(--spacing-xl);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--spacing-lg);
}

/* 详情页样式 */
.video-detail-main {
  padding: var(--spacing-xl) var(--spacing-lg);
  max-width: 1200px;
  margin: 0 auto;
}

/* 播放器模块 */
.video-player-section {
  margin-bottom: var(--spacing-xl);
}

.video-player {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.8);
}

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background-color: rgba(229, 9, 20, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(229, 9, 20, 0.4);
  transition: all 0.3s ease;
}

.player-play-btn:hover {
  background-color: var(--color-accent-hover);
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 24px rgba(229, 9, 20, 0.6);
}

.player-play-icon {
  font-size: 2rem;
  color: white;
  margin-left: 4px;
}

/* 详情内容模块 */
.detail-section {
  background-color: var(--color-bg-secondary);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.detail-section__title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--color-accent);
}

.detail-section__content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.detail-section__content p {
  margin-bottom: var(--spacing-sm);
}

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

.info-list li {
  padding: var(--spacing-xs) 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.info-list li:last-child {
  border-bottom: none;
}

.info-label {
  display: inline-block;
  min-width: 80px;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.info-value {
  color: var(--color-text);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-sm);
}

.tag-item {
  padding: 0.3rem 0.75rem;
  background-color: rgba(229, 9, 20, 0.2);
  color: var(--color-text);
  border-radius: 20px;
  font-size: 0.85rem;
}

/* 相关推荐 */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--spacing-md);
}

.video-card--related {
  background-color: var(--color-bg-secondary);
}

/* 页脚 */
.site-footer {
  background-color: var(--color-bg-secondary);
  padding: var(--spacing-lg);
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin-top: var(--spacing-xl);
}

/* 响应式 - 移动端 */
@media (max-width: 768px) {
  :root {
    --spacing-lg: 1rem;
    --spacing-xl: 2rem;
  }

  .top-nav {
    padding: var(--spacing-xs) var(--spacing-sm);
  }

  .site-logo {
    font-size: 1.2rem;
  }

  .top-nav__menu {
    gap: 0.5rem;
  }

  .top-nav__menu li a {
    font-size: 0.8rem;
    padding: 0.4rem 0.5rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-content {
    padding: var(--spacing-lg) var(--spacing-sm);
  }

  .home-section {
    padding: 0 var(--spacing-sm);
  }

  .home-section__title {
    font-size: 1.4rem;
  }

  .home-section__grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }

  .page-header {
    padding: var(--spacing-lg) var(--spacing-sm);
  }

  .page-title {
    font-size: 1.75rem;
  }

  .page-intro {
    font-size: 0.95rem;
  }

  .video-list-section {
    padding: 0 var(--spacing-sm) var(--spacing-lg);
  }

  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--spacing-md);
  }

  .video-detail-main {
    padding: var(--spacing-lg) var(--spacing-sm);
  }

  .player-play-btn {
    width: 60px;
    height: 60px;
  }

  .player-play-icon {
    font-size: 1.5rem;
  }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.15rem; }

  .detail-section {
    padding: var(--spacing-md);
  }

  .related-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: var(--spacing-sm);
  }

  .video-cover {
    padding-top: 140%;
  }
}

@media (max-width: 480px) {
  .home-section__grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
